mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-08 20:37:46 +00:00
Update to python SDK docs: 13820107626
This commit is contained in:
@@ -79,7 +79,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.certifications_api import CertificationsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.permission_dto import PermissionDto
|
||||
@@ -87,6 +86,7 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
certification_id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID
|
||||
item_id = '2c91808671bcbab40171bd945d961227' # str | The certification item ID # str | The certification item ID
|
||||
@@ -98,12 +98,12 @@ with ApiClient(configuration) as api_client:
|
||||
try:
|
||||
# Permissions for Entitlement Certification Item
|
||||
|
||||
results =CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id, item_id, )
|
||||
results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id=certification_id, item_id=item_id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationsApi(api_client).get_identity_certification_item_permissions(certification_id, item_id, filters, limit, offset, count)
|
||||
print("The response of CertificationsApi->get_identity_certification_item_permissions:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationsApi->get_identity_certification_item_permissions: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -144,7 +144,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.certifications_api import CertificationsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.identity_certification_task import IdentityCertificationTask
|
||||
@@ -152,18 +151,19 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'id_example' # str | The identity campaign certification ID # str | The identity campaign certification ID
|
||||
|
||||
try:
|
||||
# Pending Certification Tasks
|
||||
|
||||
results =CertificationsApi(api_client).get_identity_certification_pending_tasks(id)
|
||||
results = CertificationsApi(api_client).get_identity_certification_pending_tasks(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationsApi(api_client).get_identity_certification_pending_tasks(id)
|
||||
print("The response of CertificationsApi->get_identity_certification_pending_tasks:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationsApi->get_identity_certification_pending_tasks: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -205,7 +205,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.certifications_api import CertificationsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.identity_certification_task import IdentityCertificationTask
|
||||
@@ -213,6 +212,7 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'id_example' # str | The identity campaign certification ID # str | The identity campaign certification ID
|
||||
task_id = 'task_id_example' # str | The certification task ID # str | The certification task ID
|
||||
@@ -220,12 +220,12 @@ with ApiClient(configuration) as api_client:
|
||||
try:
|
||||
# Certification Task Status
|
||||
|
||||
results =CertificationsApi(api_client).get_identity_certification_task_status(id, task_id)
|
||||
results = CertificationsApi(api_client).get_identity_certification_task_status(id=id, task_id=task_id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationsApi(api_client).get_identity_certification_task_status(id, task_id)
|
||||
print("The response of CertificationsApi->get_identity_certification_task_status:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationsApi->get_identity_certification_task_status: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -274,7 +274,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.certifications_api import CertificationsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.identity_reference_with_name_and_email import IdentityReferenceWithNameAndEmail
|
||||
@@ -282,6 +281,7 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification ID # str | The certification ID
|
||||
limit = 250 # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250)
|
||||
@@ -293,12 +293,12 @@ with ApiClient(configuration) as api_client:
|
||||
try:
|
||||
# List of Reviewers for certification
|
||||
|
||||
results =CertificationsApi(api_client).list_certification_reviewers(id, )
|
||||
results = CertificationsApi(api_client).list_certification_reviewers(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationsApi(api_client).list_certification_reviewers(id, limit, offset, count, filters, sorters)
|
||||
print("The response of CertificationsApi->list_certification_reviewers:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationsApi->list_certification_reviewers: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -343,7 +343,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.certifications_api import CertificationsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.certification_dto import CertificationDto
|
||||
@@ -351,6 +350,7 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
reviewer_identitiy = 'reviewer_identitiy_example' # str | The ID of reviewer identity. *me* indicates the current user. (optional) # str | The ID of reviewer identity. *me* indicates the current user. (optional)
|
||||
limit = 250 # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250)
|
||||
@@ -362,12 +362,12 @@ with ApiClient(configuration) as api_client:
|
||||
try:
|
||||
# Certifications by IDs
|
||||
|
||||
results =CertificationsApi(api_client).list_certifications()
|
||||
results = CertificationsApi(api_client).list_certifications()
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationsApi(api_client).list_certifications(reviewer_identitiy, limit, offset, count, filters, sorters)
|
||||
print("The response of CertificationsApi->list_certifications:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationsApi->list_certifications: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -412,7 +412,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.beta
|
||||
from sailpoint.beta.api.certifications_api import CertificationsApi
|
||||
from sailpoint.beta.api_client import ApiClient
|
||||
from sailpoint.beta.models.identity_certification_task import IdentityCertificationTask
|
||||
@@ -421,9 +420,10 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'ef38f94347e94562b5bb8424a56397d8' # str | The identity campaign certification ID # str | The identity campaign certification ID
|
||||
review_reassign = {
|
||||
review_reassign = '''{
|
||||
"reason" : "reassigned for some reason",
|
||||
"reassignTo" : "ef38f94347e94562b5bb8424a56397d8",
|
||||
"reassign" : [ {
|
||||
@@ -433,18 +433,17 @@ with ApiClient(configuration) as api_client:
|
||||
"id" : "ef38f94347e94562b5bb8424a56397d8",
|
||||
"type" : "ITEM"
|
||||
} ]
|
||||
} # ReviewReassign |
|
||||
}''' # ReviewReassign |
|
||||
|
||||
try:
|
||||
# Reassign Certifications Asynchronously
|
||||
new_review_reassign = ReviewReassign()
|
||||
new_review_reassign.from_json(review_reassign)
|
||||
results =CertificationsApi(api_client).submit_reassign_certs_async(id, new_review_reassign)
|
||||
new_review_reassign = ReviewReassign.from_json(review_reassign)
|
||||
results = CertificationsApi(api_client).submit_reassign_certs_async(id=id, review_reassign=new_review_reassign)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationsApi(api_client).submit_reassign_certs_async(id, new_review_reassign)
|
||||
print("The response of CertificationsApi->submit_reassign_certs_async:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationsApi->submit_reassign_certs_async: %s\n" % e)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user