mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-09 04:19:37 +00:00
Update to python SDK docs: 13820107626
This commit is contained in:
@@ -148,7 +148,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.campaign_complete_options import CampaignCompleteOptions
|
||||
@@ -156,21 +155,22 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID.
|
||||
campaign_complete_options = {
|
||||
campaign_complete_options = '''{
|
||||
"autoCompleteAction" : "REVOKE"
|
||||
} # CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional)
|
||||
}''' # CampaignCompleteOptions | Optional. Default behavior is for the campaign to auto-approve upon completion, unless autoCompleteAction=REVOKE (optional)
|
||||
|
||||
try:
|
||||
# Complete a Campaign
|
||||
|
||||
results =CertificationCampaignsApi(api_client).complete_campaign(id, )
|
||||
results = CertificationCampaignsApi(api_client).complete_campaign(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).complete_campaign(id, new_campaign_complete_options)
|
||||
print("The response of CertificationCampaignsApi->complete_campaign:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->complete_campaign: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -211,7 +211,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.campaign import Campaign
|
||||
@@ -219,8 +218,9 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
campaign = {
|
||||
campaign = '''{
|
||||
"totalCertifications" : 100,
|
||||
"sourcesWithOrphanEntitlements" : [ {
|
||||
"name" : "Source with orphan entitlements",
|
||||
@@ -329,18 +329,17 @@ with ApiClient(configuration) as api_client:
|
||||
"deadline" : "2020-03-15T10:00:01.456Z",
|
||||
"status" : "ACTIVE",
|
||||
"correlatedStatus" : "CORRELATED"
|
||||
} # Campaign |
|
||||
}''' # Campaign |
|
||||
|
||||
try:
|
||||
# Create a campaign
|
||||
new_campaign = Campaign()
|
||||
new_campaign.from_json(campaign)
|
||||
results =CertificationCampaignsApi(api_client).create_campaign(new_campaign)
|
||||
new_campaign = Campaign.from_json(campaign)
|
||||
results = CertificationCampaignsApi(api_client).create_campaign(campaign=new_campaign)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).create_campaign(new_campaign)
|
||||
print("The response of CertificationCampaignsApi->create_campaign:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->create_campaign: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -381,7 +380,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.campaign_template import CampaignTemplate
|
||||
@@ -389,8 +387,9 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
campaign_template = {
|
||||
campaign_template = '''{
|
||||
"ownerRef" : {
|
||||
"name" : "Mister Manager",
|
||||
"id" : "2c918086676d3e0601677611dbde220f",
|
||||
@@ -514,18 +513,17 @@ with ApiClient(configuration) as api_client:
|
||||
"correlatedStatus" : "CORRELATED"
|
||||
},
|
||||
"id" : "2c9079b270a266a60170a277bb960008"
|
||||
} # CampaignTemplate |
|
||||
}''' # CampaignTemplate |
|
||||
|
||||
try:
|
||||
# Create a Campaign Template
|
||||
new_campaign_template = CampaignTemplate()
|
||||
new_campaign_template.from_json(campaign_template)
|
||||
results =CertificationCampaignsApi(api_client).create_campaign_template(new_campaign_template)
|
||||
new_campaign_template = CampaignTemplate.from_json(campaign_template)
|
||||
results = CertificationCampaignsApi(api_client).create_campaign_template(campaign_template=new_campaign_template)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).create_campaign_template(new_campaign_template)
|
||||
print("The response of CertificationCampaignsApi->create_campaign_template:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->create_campaign_template: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -567,23 +565,23 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being deleted. # str | ID of the campaign template being deleted.
|
||||
|
||||
try:
|
||||
# Delete a Campaign Template
|
||||
|
||||
CertificationCampaignsApi(api_client).delete_campaign_template(id)
|
||||
CertificationCampaignsApi(api_client).delete_campaign_template(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# CertificationCampaignsApi(api_client).delete_campaign_template(id)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->delete_campaign_template: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -625,23 +623,23 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being deleted. # str | ID of the campaign template whose schedule is being deleted.
|
||||
|
||||
try:
|
||||
# Delete Campaign Template Schedule
|
||||
|
||||
CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id)
|
||||
CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# CertificationCampaignsApi(api_client).delete_campaign_template_schedule(id)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->delete_campaign_template_schedule: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -683,7 +681,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.campaigns_delete_request import CampaignsDeleteRequest
|
||||
@@ -691,21 +688,21 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
campaigns_delete_request = {
|
||||
campaigns_delete_request = '''{
|
||||
"ids" : [ "2c9180887335cee10173490db1776c26", "2c9180836a712436016a7125a90c0021" ]
|
||||
} # CampaignsDeleteRequest | IDs of the campaigns to delete.
|
||||
}''' # CampaignsDeleteRequest | IDs of the campaigns to delete.
|
||||
|
||||
try:
|
||||
# Delete Campaigns
|
||||
new_campaigns_delete_request = CampaignsDeleteRequest()
|
||||
new_campaigns_delete_request.from_json(campaigns_delete_request)
|
||||
results =CertificationCampaignsApi(api_client).delete_campaigns(new_campaigns_delete_request)
|
||||
new_campaigns_delete_request = CampaignsDeleteRequest.from_json(campaigns_delete_request)
|
||||
results = CertificationCampaignsApi(api_client).delete_campaigns(campaigns_delete_request=new_campaigns_delete_request)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).delete_campaigns(new_campaigns_delete_request)
|
||||
print("The response of CertificationCampaignsApi->delete_campaigns:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->delete_campaigns: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -751,7 +748,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.get_active_campaigns200_response_inner import GetActiveCampaigns200ResponseInner
|
||||
@@ -759,6 +755,7 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (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)
|
||||
@@ -770,12 +767,12 @@ with ApiClient(configuration) as api_client:
|
||||
try:
|
||||
# List Campaigns
|
||||
|
||||
results =CertificationCampaignsApi(api_client).get_active_campaigns()
|
||||
results = CertificationCampaignsApi(api_client).get_active_campaigns()
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).get_active_campaigns(detail, limit, offset, count, filters, sorters)
|
||||
print("The response of CertificationCampaignsApi->get_active_campaigns:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->get_active_campaigns: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -818,7 +815,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.get_active_campaigns200_response_inner import GetActiveCampaigns200ResponseInner
|
||||
@@ -826,6 +822,7 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign to be retrieved. # str | ID of the campaign to be retrieved.
|
||||
detail = 'FULL' # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional) # str | Determines whether slim, or increased level of detail is provided for each campaign in the returned list. Slim is the default behavior. (optional)
|
||||
@@ -833,12 +830,12 @@ with ApiClient(configuration) as api_client:
|
||||
try:
|
||||
# Get Campaign
|
||||
|
||||
results =CertificationCampaignsApi(api_client).get_campaign(id, )
|
||||
results = CertificationCampaignsApi(api_client).get_campaign(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).get_campaign(id, detail)
|
||||
print("The response of CertificationCampaignsApi->get_campaign:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->get_campaign: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -880,7 +877,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.campaign_report import CampaignReport
|
||||
@@ -888,18 +884,19 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign whose reports are being fetched. # str | ID of the campaign whose reports are being fetched.
|
||||
|
||||
try:
|
||||
# Get Campaign Reports
|
||||
|
||||
results =CertificationCampaignsApi(api_client).get_campaign_reports(id)
|
||||
results = CertificationCampaignsApi(api_client).get_campaign_reports(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).get_campaign_reports(id)
|
||||
print("The response of CertificationCampaignsApi->get_campaign_reports:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->get_campaign_reports: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -937,7 +934,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.campaign_reports_config import CampaignReportsConfig
|
||||
@@ -945,17 +941,18 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
|
||||
try:
|
||||
# Get Campaign Reports Configuration
|
||||
|
||||
results =CertificationCampaignsApi(api_client).get_campaign_reports_config()
|
||||
results = CertificationCampaignsApi(api_client).get_campaign_reports_config()
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).get_campaign_reports_config()
|
||||
print("The response of CertificationCampaignsApi->get_campaign_reports_config:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->get_campaign_reports_config: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -997,7 +994,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.campaign_template import CampaignTemplate
|
||||
@@ -1005,18 +1001,19 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = '2c9180835d191a86015d28455b4a2329' # str | Requested campaign template's ID. # str | Requested campaign template's ID.
|
||||
|
||||
try:
|
||||
# Get a Campaign Template
|
||||
|
||||
results =CertificationCampaignsApi(api_client).get_campaign_template(id)
|
||||
results = CertificationCampaignsApi(api_client).get_campaign_template(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).get_campaign_template(id)
|
||||
print("The response of CertificationCampaignsApi->get_campaign_template:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->get_campaign_template: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1058,7 +1055,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.schedule import Schedule
|
||||
@@ -1066,18 +1062,19 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template whose schedule is being fetched. # str | ID of the campaign template whose schedule is being fetched.
|
||||
|
||||
try:
|
||||
# Get Campaign Template Schedule
|
||||
|
||||
results =CertificationCampaignsApi(api_client).get_campaign_template_schedule(id)
|
||||
results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).get_campaign_template_schedule(id)
|
||||
print("The response of CertificationCampaignsApi->get_campaign_template_schedule:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->get_campaign_template_schedule: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1124,7 +1121,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.campaign_template import CampaignTemplate
|
||||
@@ -1132,6 +1128,7 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
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)
|
||||
offset = 0 # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0)
|
||||
@@ -1142,12 +1139,12 @@ with ApiClient(configuration) as api_client:
|
||||
try:
|
||||
# List Campaign Templates
|
||||
|
||||
results =CertificationCampaignsApi(api_client).get_campaign_templates()
|
||||
results = CertificationCampaignsApi(api_client).get_campaign_templates()
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).get_campaign_templates(limit, offset, count, sorters, filters)
|
||||
print("The response of CertificationCampaignsApi->get_campaign_templates:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->get_campaign_templates: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1190,7 +1187,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.admin_review_reassign import AdminReviewReassign
|
||||
@@ -1199,27 +1195,27 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'ef38f94347e94562b5bb8424a56397d8' # str | The certification campaign ID # str | The certification campaign ID
|
||||
admin_review_reassign = {
|
||||
admin_review_reassign = '''{
|
||||
"certificationIds" : [ "af3859464779471211bb8424a563abc1", "af3859464779471211bb8424a563abc2", "af3859464779471211bb8424a563abc3" ],
|
||||
"reason" : "reassigned for some reason",
|
||||
"reassignTo" : {
|
||||
"id" : "ef38f94347e94562b5bb8424a56397d8",
|
||||
"type" : "IDENTITY"
|
||||
}
|
||||
} # AdminReviewReassign |
|
||||
}''' # AdminReviewReassign |
|
||||
|
||||
try:
|
||||
# Reassign Certifications
|
||||
new_admin_review_reassign = AdminReviewReassign()
|
||||
new_admin_review_reassign.from_json(admin_review_reassign)
|
||||
results =CertificationCampaignsApi(api_client).move(id, new_admin_review_reassign)
|
||||
new_admin_review_reassign = AdminReviewReassign.from_json(admin_review_reassign)
|
||||
results = CertificationCampaignsApi(api_client).move(id=id, admin_review_reassign=new_admin_review_reassign)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).move(id, new_admin_review_reassign)
|
||||
print("The response of CertificationCampaignsApi->move:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->move: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1262,7 +1258,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.campaign_template import CampaignTemplate
|
||||
@@ -1271,26 +1266,20 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template being modified. # str | ID of the campaign template being modified.
|
||||
[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}] # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create)
|
||||
json_patch_operation = {
|
||||
"op" : "replace",
|
||||
"path" : "/description",
|
||||
"value" : "New description"
|
||||
} # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create)
|
||||
|
||||
json_patch_operation = '''[{op=replace, path=/description, value=Updated description!}, {op=replace, path=/campaign/filter/id, value=ff80818155fe8c080155fe8d925b0316}]''' # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create)
|
||||
|
||||
try:
|
||||
# Update a Campaign Template
|
||||
new_json_patch_operation = JsonPatchOperation()
|
||||
new_json_patch_operation.from_json(json_patch_operation)
|
||||
results =CertificationCampaignsApi(api_client).patch_campaign_template(id, new_json_patch_operation)
|
||||
new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation)
|
||||
results = CertificationCampaignsApi(api_client).patch_campaign_template(id=id, json_patch_operation=new_json_patch_operation)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).patch_campaign_template(id, new_json_patch_operation)
|
||||
print("The response of CertificationCampaignsApi->patch_campaign_template:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->patch_campaign_template: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1331,7 +1320,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.campaign_reports_config import CampaignReportsConfig
|
||||
@@ -1339,21 +1327,21 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
campaign_reports_config = {
|
||||
campaign_reports_config = '''{
|
||||
"identityAttributeColumns" : [ "firstname", "lastname" ]
|
||||
} # CampaignReportsConfig | Campaign report configuration.
|
||||
}''' # CampaignReportsConfig | Campaign report configuration.
|
||||
|
||||
try:
|
||||
# Set Campaign Reports Configuration
|
||||
new_campaign_reports_config = CampaignReportsConfig()
|
||||
new_campaign_reports_config.from_json(campaign_reports_config)
|
||||
results =CertificationCampaignsApi(api_client).set_campaign_reports_config(new_campaign_reports_config)
|
||||
new_campaign_reports_config = CampaignReportsConfig.from_json(campaign_reports_config)
|
||||
results = CertificationCampaignsApi(api_client).set_campaign_reports_config(campaign_reports_config=new_campaign_reports_config)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).set_campaign_reports_config(new_campaign_reports_config)
|
||||
print("The response of CertificationCampaignsApi->set_campaign_reports_config:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->set_campaign_reports_config: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1396,7 +1384,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.schedule import Schedule
|
||||
@@ -1404,9 +1391,10 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = '04bedce387bd47b2ae1f86eb0bb36dee' # str | ID of the campaign template being scheduled. # str | ID of the campaign template being scheduled.
|
||||
schedule = {
|
||||
schedule = '''{
|
||||
"hours" : {
|
||||
"values" : [ "1" ],
|
||||
"interval" : 2,
|
||||
@@ -1425,15 +1413,15 @@ with ApiClient(configuration) as api_client:
|
||||
},
|
||||
"expiration" : "2000-01-23T04:56:07.000+00:00",
|
||||
"type" : "WEEKLY"
|
||||
} # Schedule | (optional)
|
||||
}''' # Schedule | (optional)
|
||||
|
||||
try:
|
||||
# Set Campaign Template Schedule
|
||||
|
||||
CertificationCampaignsApi(api_client).set_campaign_template_schedule(id, )
|
||||
CertificationCampaignsApi(api_client).set_campaign_template_schedule(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# CertificationCampaignsApi(api_client).set_campaign_template_schedule(id, new_schedule)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->set_campaign_template_schedule: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1476,7 +1464,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.activate_campaign_options import ActivateCampaignOptions
|
||||
@@ -1484,21 +1471,22 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = 'ef38f94347e94562b5bb8424a56397d8' # str | Campaign ID. # str | Campaign ID.
|
||||
activate_campaign_options = {
|
||||
activate_campaign_options = '''{
|
||||
"timeZone" : "-05:00"
|
||||
} # ActivateCampaignOptions | Optional. If no timezone is specified, the standard UTC timezone is used (i.e. UTC+00:00). Although this can take any timezone, the intended value is the caller's timezone. The activation time calculated from the given timezone may cause the campaign deadline time to be modified, but it will remain within the original date. The timezone must be in a valid ISO 8601 format. (optional)
|
||||
}''' # ActivateCampaignOptions | Optional. If no timezone is specified, the standard UTC timezone is used (i.e. UTC+00:00). Although this can take any timezone, the intended value is the caller's timezone. The activation time calculated from the given timezone may cause the campaign deadline time to be modified, but it will remain within the original date. The timezone must be in a valid ISO 8601 format. (optional)
|
||||
|
||||
try:
|
||||
# Activate a Campaign
|
||||
|
||||
results =CertificationCampaignsApi(api_client).start_campaign(id, )
|
||||
results = CertificationCampaignsApi(api_client).start_campaign(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).start_campaign(id, new_activate_campaign_options)
|
||||
print("The response of CertificationCampaignsApi->start_campaign:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->start_campaign: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1540,25 +1528,25 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the remediation scan is being run for. # str | ID of the campaign the remediation scan is being run for.
|
||||
|
||||
try:
|
||||
# Run Campaign Remediation Scan
|
||||
|
||||
results =CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id)
|
||||
results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).start_campaign_remediation_scan(id)
|
||||
print("The response of CertificationCampaignsApi->start_campaign_remediation_scan:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->start_campaign_remediation_scan: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1601,7 +1589,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.report_type import ReportType
|
||||
@@ -1609,6 +1596,7 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign the report is being run for. # str | ID of the campaign the report is being run for.
|
||||
type = sailpoint.v2024.ReportType() # ReportType | Type of the report to run. # ReportType | Type of the report to run.
|
||||
@@ -1616,12 +1604,12 @@ with ApiClient(configuration) as api_client:
|
||||
try:
|
||||
# Run Campaign Report
|
||||
|
||||
results =CertificationCampaignsApi(api_client).start_campaign_report(id, type)
|
||||
results = CertificationCampaignsApi(api_client).start_campaign_report(id=id, type=type)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).start_campaign_report(id, type)
|
||||
print("The response of CertificationCampaignsApi->start_campaign_report:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->start_campaign_report: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1672,7 +1660,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.campaign_reference import CampaignReference
|
||||
@@ -1680,18 +1667,19 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = '2c9180835d191a86015d28455b4a2329' # str | ID of the campaign template to use for generation. # str | ID of the campaign template to use for generation.
|
||||
|
||||
try:
|
||||
# Generate a Campaign from Template
|
||||
|
||||
results =CertificationCampaignsApi(api_client).start_generate_campaign_template(id)
|
||||
results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id=id)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).start_generate_campaign_template(id)
|
||||
print("The response of CertificationCampaignsApi->start_generate_campaign_template:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->start_generate_campaign_template: %s\n" % e)
|
||||
```
|
||||
|
||||
@@ -1734,7 +1722,6 @@ Code | Description | Data Type | Response headers |
|
||||
### Example
|
||||
|
||||
```python
|
||||
import sailpoint.v2024
|
||||
from sailpoint.v2024.api.certification_campaigns_api import CertificationCampaignsApi
|
||||
from sailpoint.v2024.api_client import ApiClient
|
||||
from sailpoint.v2024.models.json_patch_operation import JsonPatchOperation
|
||||
@@ -1743,26 +1730,20 @@ from pprint import pprint
|
||||
from sailpoint.configuration import Configuration
|
||||
configuration = Configuration()
|
||||
|
||||
|
||||
with ApiClient(configuration) as api_client:
|
||||
id = '2c91808571bcfcf80171c23e4b4221fc' # str | ID of the campaign template being modified. # str | ID of the campaign template being modified.
|
||||
[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}] # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline
|
||||
json_patch_operation = {
|
||||
"op" : "replace",
|
||||
"path" : "/description",
|
||||
"value" : "New description"
|
||||
} # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline
|
||||
|
||||
json_patch_operation = '''[{op=replace, path=/name, value=This field has been updated!}, {op=copy, from=/name, path=/description}]''' # List[JsonPatchOperation] | A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The fields that can be patched differ based on the status of the campaign. When the campaign is in the *STAGED* status, you can patch these fields: * name * description * recommendationsEnabled * deadline * emailNotificationEnabled * autoRevokeAllowed When the campaign is in the *ACTIVE* status, you can patch these fields: * deadline
|
||||
|
||||
try:
|
||||
# Update a Campaign
|
||||
new_json_patch_operation = JsonPatchOperation()
|
||||
new_json_patch_operation.from_json(json_patch_operation)
|
||||
results =CertificationCampaignsApi(api_client).update_campaign(id, new_json_patch_operation)
|
||||
new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation)
|
||||
results = CertificationCampaignsApi(api_client).update_campaign(id=id, json_patch_operation=new_json_patch_operation)
|
||||
# Below is a request that includes all optional parameters
|
||||
# results = CertificationCampaignsApi(api_client).update_campaign(id, new_json_patch_operation)
|
||||
print("The response of CertificationCampaignsApi->update_campaign:\n")
|
||||
pprint(results)
|
||||
except Exception as e:
|
||||
except Exception as e:
|
||||
print("Exception when calling CertificationCampaignsApi->update_campaign: %s\n" % e)
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user