Skip to content

Commit bb0756b

Browse files
Automated build 'Automated commit by github action: 20439084992
Original commit message: DASDEV-22650 das public owners api #2506 DASDEV-22650 das public owners api' python sdk: 20439095568
1 parent fcf21ff commit bb0756b

22 files changed

Lines changed: 3704 additions & 200 deletions

sailpoint/v2025/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@
344344
from sailpoint.v2025.models.approval_summary import ApprovalSummary
345345
from sailpoint.v2025.models.argument import Argument
346346
from sailpoint.v2025.models.array_inner import ArrayInner
347+
from sailpoint.v2025.models.assign_resource_owner_request import AssignResourceOwnerRequest
347348
from sailpoint.v2025.models.assignment_context_dto import AssignmentContextDto
348349
from sailpoint.v2025.models.attr_sync_source import AttrSyncSource
349350
from sailpoint.v2025.models.attr_sync_source_attribute_config import AttrSyncSourceAttributeConfig
@@ -403,6 +404,7 @@
403404
from sailpoint.v2025.models.bulk_reject_request_dto import BulkRejectRequestDTO
404405
from sailpoint.v2025.models.bulk_remove_tagged_object import BulkRemoveTaggedObject
405406
from sailpoint.v2025.models.bulk_tagged_object_response import BulkTaggedObjectResponse
407+
from sailpoint.v2025.models.business_service_type import BusinessServiceType
406408
from sailpoint.v2025.models.campaign import Campaign
407409
from sailpoint.v2025.models.campaign_activated import CampaignActivated
408410
from sailpoint.v2025.models.campaign_activated_campaign import CampaignActivatedCampaign
@@ -531,6 +533,7 @@
531533
from sailpoint.v2025.models.data_access_impact_score import DataAccessImpactScore
532534
from sailpoint.v2025.models.data_access_policies_inner import DataAccessPoliciesInner
533535
from sailpoint.v2025.models.data_classification_settings import DataClassificationSettings
536+
from sailpoint.v2025.models.data_owner_model import DataOwnerModel
534537
from sailpoint.v2025.models.data_segment import DataSegment
535538
from sailpoint.v2025.models.delete_non_employee_records_in_bulk_request import DeleteNonEmployeeRecordsInBulkRequest
536539
from sailpoint.v2025.models.delete_source202_response import DeleteSource202Response
@@ -995,6 +998,7 @@
995998
from sailpoint.v2025.models.recommendation_response_dto import RecommendationResponseDto
996999
from sailpoint.v2025.models.recommender_calculations import RecommenderCalculations
9971000
from sailpoint.v2025.models.recommender_calculations_identity_attributes_value import RecommenderCalculationsIdentityAttributesValue
1001+
from sailpoint.v2025.models.reelect_request import ReelectRequest
9981002
from sailpoint.v2025.models.ref import Ref
9991003
from sailpoint.v2025.models.reference import Reference
10001004
from sailpoint.v2025.models.remediation_item_details import RemediationItemDetails
@@ -1025,6 +1029,7 @@
10251029
from sailpoint.v2025.models.requested_item_status_requested_for import RequestedItemStatusRequestedFor
10261030
from sailpoint.v2025.models.requested_item_status_requester_comment import RequestedItemStatusRequesterComment
10271031
from sailpoint.v2025.models.requested_item_status_sod_violation_context import RequestedItemStatusSodViolationContext
1032+
from sailpoint.v2025.models.resource_model import ResourceModel
10281033
from sailpoint.v2025.models.resource_object import ResourceObject
10291034
from sailpoint.v2025.models.resource_objects_request import ResourceObjectsRequest
10301035
from sailpoint.v2025.models.resource_objects_response import ResourceObjectsResponse

sailpoint/v2025/api/data_access_security_api.py

Lines changed: 2014 additions & 199 deletions
Large diffs are not rendered by default.

sailpoint/v2025/docs/Examples/python_code_examples_overlay.yaml

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7268,6 +7268,144 @@
72687268
print(results.model_dump_json(by_alias=True, indent=4))
72697269
except Exception as e:
72707270
print("Exception when calling DataAccessSecurityApi->create_schedule: %s\n" % e)
7271+
- path: /das/owners/assign
7272+
method: POST
7273+
xCodeSample:
7274+
- lang: Python
7275+
label: SDK_tools/sdk/python/v2025/methods/data-access-security#das-owners-assign-post
7276+
source: |
7277+
from sailpoint.v2025.api.data_access_security_api import DataAccessSecurityApi
7278+
from sailpoint.v2025.api_client import ApiClient
7279+
from sailpoint.v2025.models.assign_resource_owner_request import AssignResourceOwnerRequest
7280+
from sailpoint.configuration import Configuration
7281+
configuration = Configuration()
7282+
7283+
7284+
with ApiClient(configuration) as api_client:
7285+
assign_resource_owner_request = '''{
7286+
"fullPath" : "/shared/hr/documents/employee-records.pdf",
7287+
"identityId" : "d290f1ee-6c54-4b01-90e6-d701748f0851",
7288+
"appId" : 12345
7289+
}''' # AssignResourceOwnerRequest |
7290+
try:
7291+
# Assign owner to application resource.
7292+
new_assign_resource_owner_request = AssignResourceOwnerRequest.from_json(assign_resource_owner_request)
7293+
results = DataAccessSecurityApi(api_client).das_owners_assign_post(assign_resource_owner_request=new_assign_resource_owner_request)
7294+
# Below is a request that includes all optional parameters
7295+
# results = DataAccessSecurityApi(api_client).das_owners_assign_post(new_assign_resource_owner_request)
7296+
print("The response of DataAccessSecurityApi->das_owners_assign_post:\n")
7297+
print(results.model_dump_json(by_alias=True, indent=4))
7298+
except Exception as e:
7299+
print("Exception when calling DataAccessSecurityApi->das_owners_assign_post: %s\n" % e)
7300+
- path: /das/owners/{ownerIdentityId}/resources
7301+
method: GET
7302+
xCodeSample:
7303+
- lang: Python
7304+
label: SDK_tools/sdk/python/v2025/methods/data-access-security#das-owners-owner-identity-id-resources-get
7305+
source: |
7306+
from sailpoint.v2025.api.data_access_security_api import DataAccessSecurityApi
7307+
from sailpoint.v2025.api_client import ApiClient
7308+
from sailpoint.v2025.models.resource_model import ResourceModel
7309+
from sailpoint.configuration import Configuration
7310+
configuration = Configuration()
7311+
7312+
7313+
with ApiClient(configuration) as api_client:
7314+
owner_identity_id = 'a3f1c2d4-5678-4e9b-8c2d-123456789abc' # str | Unique identifier for the owner. This should be a UUID representing the owner's identity. # str | Unique identifier for the owner. This should be a UUID representing the owner's identity.
7315+
limit = 250 # int | Not applicable for this endpoint. Do not use. (optional) (default to 250) # int | Not applicable for this endpoint. Do not use. (optional) (default to 250)
7316+
offset = 0 # int | Not applicable for this endpoint. Do not use. (optional) (default to 0) # int | Not applicable for this endpoint. Do not use. (optional) (default to 0)
7317+
try:
7318+
# List resources for owner.
7319+
7320+
results = DataAccessSecurityApi(api_client).das_owners_owner_identity_id_resources_get(owner_identity_id=owner_identity_id)
7321+
# Below is a request that includes all optional parameters
7322+
# results = DataAccessSecurityApi(api_client).das_owners_owner_identity_id_resources_get(owner_identity_id, limit, offset)
7323+
print("The response of DataAccessSecurityApi->das_owners_owner_identity_id_resources_get:\n")
7324+
for item in results:
7325+
print(item.model_dump_json(by_alias=True, indent=4))
7326+
except Exception as e:
7327+
print("Exception when calling DataAccessSecurityApi->das_owners_owner_identity_id_resources_get: %s\n" % e)
7328+
- path: /das/owners/reelect
7329+
method: POST
7330+
xCodeSample:
7331+
- lang: Python
7332+
label: SDK_tools/sdk/python/v2025/methods/data-access-security#das-owners-reelect-post
7333+
source: |
7334+
from sailpoint.v2025.api.data_access_security_api import DataAccessSecurityApi
7335+
from sailpoint.v2025.api_client import ApiClient
7336+
from sailpoint.v2025.models.reelect_request import ReelectRequest
7337+
from sailpoint.configuration import Configuration
7338+
configuration = Configuration()
7339+
7340+
7341+
with ApiClient(configuration) as api_client:
7342+
reelect_request = '''{
7343+
"ownerId" : "c1a2b3d4-e5f6-7890-abcd-1234567890ab",
7344+
"campaignName" : "Annual Resource Owner Election",
7345+
"reviewers" : [ "d4e5f6a7-b8c9-0123-4567-89abcdef0123", "e7f8g9h0-i1j2-3456-7890-klmnopqrstuv" ]
7346+
}''' # ReelectRequest | The request body must contain details for re-electing a resource owner. Date/time fields should use epoch format in seconds.
7347+
try:
7348+
# Re-elect resource owner.
7349+
new_reelect_request = ReelectRequest.from_json(reelect_request)
7350+
results = DataAccessSecurityApi(api_client).das_owners_reelect_post(reelect_request=new_reelect_request)
7351+
# Below is a request that includes all optional parameters
7352+
# results = DataAccessSecurityApi(api_client).das_owners_reelect_post(new_reelect_request)
7353+
print("The response of DataAccessSecurityApi->das_owners_reelect_post:\n")
7354+
print(results.model_dump_json(by_alias=True, indent=4))
7355+
except Exception as e:
7356+
print("Exception when calling DataAccessSecurityApi->das_owners_reelect_post: %s\n" % e)
7357+
- path: /das/owners/resources/{resourceId}
7358+
method: GET
7359+
xCodeSample:
7360+
- lang: Python
7361+
label: SDK_tools/sdk/python/v2025/methods/data-access-security#das-owners-resources-resource-id-get
7362+
source: |
7363+
from sailpoint.v2025.api.data_access_security_api import DataAccessSecurityApi
7364+
from sailpoint.v2025.api_client import ApiClient
7365+
from sailpoint.configuration import Configuration
7366+
configuration = Configuration()
7367+
7368+
7369+
with ApiClient(configuration) as api_client:
7370+
resource_id = 101 # int | Unique identifier for the resource. # int | Unique identifier for the resource.
7371+
limit = 250 # int | Not applicable for this endpoint. Do not use. (optional) (default to 250) # int | Not applicable for this endpoint. Do not use. (optional) (default to 250)
7372+
offset = 0 # int | Not applicable for this endpoint. Do not use. (optional) (default to 0) # int | Not applicable for this endpoint. Do not use. (optional) (default to 0)
7373+
try:
7374+
# List owners for resource.
7375+
7376+
results = DataAccessSecurityApi(api_client).das_owners_resources_resource_id_get(resource_id=resource_id)
7377+
# Below is a request that includes all optional parameters
7378+
# results = DataAccessSecurityApi(api_client).das_owners_resources_resource_id_get(resource_id, limit, offset)
7379+
print("The response of DataAccessSecurityApi->das_owners_resources_resource_id_get:\n")
7380+
for item in results:
7381+
print(item.model_dump_json(by_alias=True, indent=4))
7382+
except Exception as e:
7383+
print("Exception when calling DataAccessSecurityApi->das_owners_resources_resource_id_get: %s\n" % e)
7384+
- path: /das/owners/{sourceIdentityId}/reassign/{destinationIdentityId}
7385+
method: POST
7386+
xCodeSample:
7387+
- lang: Python
7388+
label: SDK_tools/sdk/python/v2025/methods/data-access-security#das-owners-source-identity-id-reassign-destination-identity-id-post
7389+
source: |
7390+
from sailpoint.v2025.api.data_access_security_api import DataAccessSecurityApi
7391+
from sailpoint.v2025.api_client import ApiClient
7392+
from sailpoint.configuration import Configuration
7393+
configuration = Configuration()
7394+
7395+
7396+
with ApiClient(configuration) as api_client:
7397+
source_identity_id = 'a3f1c2d4-5678-4e9b-8c2d-123456789abc' # str | Unique identifier for the source owner. This should be a UUID representing the identity to reassign from. # str | Unique identifier for the source owner. This should be a UUID representing the identity to reassign from.
7398+
destination_identity_id = 'b4e2d3c5-6789-4f0a-9d3e-234567890bcd' # str | Unique identifier for the destination owner. This should be a UUID representing the identity to reassign to. # str | Unique identifier for the destination owner. This should be a UUID representing the identity to reassign to.
7399+
try:
7400+
# Reassign resource owner.
7401+
7402+
results = DataAccessSecurityApi(api_client).das_owners_source_identity_id_reassign_destination_identity_id_post(source_identity_id=source_identity_id, destination_identity_id=destination_identity_id)
7403+
# Below is a request that includes all optional parameters
7404+
# results = DataAccessSecurityApi(api_client).das_owners_source_identity_id_reassign_destination_identity_id_post(source_identity_id, destination_identity_id)
7405+
print("The response of DataAccessSecurityApi->das_owners_source_identity_id_reassign_destination_identity_id_post:\n")
7406+
print(results.model_dump_json(by_alias=True, indent=4))
7407+
except Exception as e:
7408+
print("Exception when calling DataAccessSecurityApi->das_owners_source_identity_id_reassign_destination_identity_id_post: %s\n" % e)
72717409
- path: /das/applications/{id}
72727410
method: DELETE
72737411
xCodeSample:
@@ -7388,6 +7526,34 @@
73887526
print(item.model_dump_json(by_alias=True, indent=4))
73897527
except Exception as e:
73907528
print("Exception when calling DataAccessSecurityApi->get_applications: %s\n" % e)
7529+
- path: /das/owners/applications/{appId}
7530+
method: GET
7531+
xCodeSample:
7532+
- lang: Python
7533+
label: SDK_tools/sdk/python/v2025/methods/data-access-security#get-owners
7534+
source: |
7535+
from sailpoint.v2025.api.data_access_security_api import DataAccessSecurityApi
7536+
from sailpoint.v2025.api_client import ApiClient
7537+
from sailpoint.v2025.models.data_owner_model import DataOwnerModel
7538+
from sailpoint.configuration import Configuration
7539+
configuration = Configuration()
7540+
7541+
7542+
with ApiClient(configuration) as api_client:
7543+
app_id = 2001 # int | The unique identifier of the application for which to retrieve owners. # int | The unique identifier of the application for which to retrieve owners.
7544+
limit = 250 # int | Not applicable for this endpoint. Do not use. (optional) (default to 250) # int | Not applicable for this endpoint. Do not use. (optional) (default to 250)
7545+
offset = 0 # int | Not applicable for this endpoint. Do not use. (optional) (default to 0) # int | Not applicable for this endpoint. Do not use. (optional) (default to 0)
7546+
try:
7547+
# Retrieve owners per application.
7548+
7549+
results = DataAccessSecurityApi(api_client).get_owners(app_id=app_id)
7550+
# Below is a request that includes all optional parameters
7551+
# results = DataAccessSecurityApi(api_client).get_owners(app_id, limit, offset)
7552+
print("The response of DataAccessSecurityApi->get_owners:\n")
7553+
for item in results:
7554+
print(item.model_dump_json(by_alias=True, indent=4))
7555+
except Exception as e:
7556+
print("Exception when calling DataAccessSecurityApi->get_owners: %s\n" % e)
73917557
- path: /das/tasks/schedules/{id}
73927558
method: GET
73937559
xCodeSample:

0 commit comments

Comments
 (0)