Skip to content

Commit

Permalink
Add v2 and cc apis
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-mairose-sp committed Oct 25, 2023
1 parent 645ec1b commit f6f2ee6
Show file tree
Hide file tree
Showing 159 changed files with 18,805 additions and 875 deletions.
23 changes: 13 additions & 10 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
from sailpoint.v3.models.transform_read import TransformRead
from sailpoint.v3.rest import ApiException
from pprint import pprint
from sailpoint.cc.api_client import ApiClient
from sailpoint.cc.api.accounts_api import AccountsApi
from sailpoint.cc.api.connectors_api import ConnectorsApi

configuration = Configuration()

# Enter a context with an instance of the API client
with sailpoint.v3.ApiClient(configuration) as api_client:
# Create an instance of the API class
Expand All @@ -24,12 +27,12 @@

api_instance = sailpoint.v3.AccessProfilesApi(api_client)

try:
api_response = api_instance.list_access_profiles()
print("The response of AccessProfilesApi->list_access_profiles:\n")
for access_profile in api_response:
pprint(access_profile.name)
except Exception as e:
print(
"Exception when calling AccessProfilesApi->list_access_profiles: %s\n" % e
)
# try:
# api_response = api_instance.list_access_profiles()
# print("The response of AccessProfilesApi->list_access_profiles:\n")
# for access_profile in api_response:
# pprint(access_profile.name)
# except Exception as e:
# print(
# "Exception when calling AccessProfilesApi->list_access_profiles: %s\n" % e
# )
Loading

0 comments on commit f6f2ee6

Please sign in to comment.