Skip to content

Commit 3bddef7

Browse files
Automated build 'Automated commit 'Merge pull request #2291 from sailpoint/saurabh/ISCARP-16808
ISCARP-16808 - Update pending approvals API documentation to include privilegeLevel' by github action: 17576203245' python sdk: 17576261049
1 parent 58447c2 commit 3bddef7

File tree

12 files changed

+56
-16
lines changed

12 files changed

+56
-16
lines changed

sailpoint/beta/docs/Models/PendingApproval.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Name | Type | Description | Notes
3737
**sod_violation_context** | [**SodViolationContextCheckCompleted1**](sod-violation-context-check-completed1) | | [optional]
3838
**client_metadata** | **map[string]str** | Arbitrary key-value pairs, if any were included in the corresponding access request item | [optional]
3939
**requested_accounts** | [**[]RequestedAccountRef**](requested-account-ref) | The accounts selected by the user for the access to be provisioned on, in case they have multiple accounts on one or more sources. | [optional]
40+
**privilege_level** | **str** | The privilege level of the requested access item, if applicable. | [optional]
4041
}
4142

4243
## Example
@@ -137,7 +138,8 @@ requested_accounts=[
137138
account_uuid = '{fab7119e-004f-4822-9c33-b8d570d6c6a6}',
138139
account_id = 'CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local',
139140
source_name = 'Multi Account AD source name', )
140-
]
141+
],
142+
privilege_level='High'
141143
)
142144

143145
```

sailpoint/beta/models/pending_approval.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ class PendingApproval(BaseModel):
5959
sod_violation_context: Optional[SodViolationContextCheckCompleted1] = Field(default=None, alias="sodViolationContext")
6060
client_metadata: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary key-value pairs, if any were included in the corresponding access request item", alias="clientMetadata")
6161
requested_accounts: Optional[List[RequestedAccountRef]] = Field(default=None, description="The accounts selected by the user for the access to be provisioned on, in case they have multiple accounts on one or more sources.", alias="requestedAccounts")
62-
__properties: ClassVar[List[str]] = ["id", "name", "created", "modified", "requestCreated", "requestType", "requester", "requestedFor", "owner", "requestedObject", "requesterComment", "previousReviewersComments", "forwardHistory", "commentRequiredWhenRejected", "actionInProcess", "removeDate", "removeDateUpdateRequested", "currentRemoveDate", "sodViolationContext", "clientMetadata", "requestedAccounts"]
62+
privilege_level: Optional[StrictStr] = Field(default=None, description="The privilege level of the requested access item, if applicable.", alias="privilegeLevel")
63+
__properties: ClassVar[List[str]] = ["id", "name", "created", "modified", "requestCreated", "requestType", "requester", "requestedFor", "owner", "requestedObject", "requesterComment", "previousReviewersComments", "forwardHistory", "commentRequiredWhenRejected", "actionInProcess", "removeDate", "removeDateUpdateRequested", "currentRemoveDate", "sodViolationContext", "clientMetadata", "requestedAccounts", "privilegeLevel"]
6364

6465
model_config = ConfigDict(
6566
populate_by_name=True,
@@ -159,6 +160,11 @@ def to_dict(self) -> Dict[str, Any]:
159160
if self.requested_accounts is None and "requested_accounts" in self.model_fields_set:
160161
_dict['requestedAccounts'] = None
161162

163+
# set to None if privilege_level (nullable) is None
164+
# and model_fields_set contains the field
165+
if self.privilege_level is None and "privilege_level" in self.model_fields_set:
166+
_dict['privilegeLevel'] = None
167+
162168
return _dict
163169

164170
@classmethod
@@ -191,7 +197,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
191197
"currentRemoveDate": obj.get("currentRemoveDate"),
192198
"sodViolationContext": SodViolationContextCheckCompleted1.from_dict(obj["sodViolationContext"]) if obj.get("sodViolationContext") is not None else None,
193199
"clientMetadata": obj.get("clientMetadata"),
194-
"requestedAccounts": [RequestedAccountRef.from_dict(_item) for _item in obj["requestedAccounts"]] if obj.get("requestedAccounts") is not None else None
200+
"requestedAccounts": [RequestedAccountRef.from_dict(_item) for _item in obj["requestedAccounts"]] if obj.get("requestedAccounts") is not None else None,
201+
"privilegeLevel": obj.get("privilegeLevel")
195202
})
196203
return _obj
197204

sailpoint/beta/test/test_pending_approval.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ def make_instance(self, include_optional) -> PendingApproval:
127127
account_uuid = '{fab7119e-004f-4822-9c33-b8d570d6c6a6}',
128128
account_id = 'CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local',
129129
source_name = 'Multi Account AD source name', )
130-
]
130+
],
131+
privilege_level = 'High'
131132
)
132133
else:
133134
return PendingApproval(

sailpoint/v2024/docs/Models/PendingApproval.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Name | Type | Description | Notes
3838
**sod_violation_context** | [**SodViolationContextCheckCompleted**](sod-violation-context-check-completed) | | [optional]
3939
**client_metadata** | **map[string]str** | Arbitrary key-value pairs, if any were included in the corresponding access request item | [optional]
4040
**requested_accounts** | [**[]RequestedAccountRef**](requested-account-ref) | The accounts selected by the user for the access to be provisioned on, in case they have multiple accounts on one or more sources. | [optional]
41+
**privilege_level** | **str** | The privilege level of the requested access item, if applicable. | [optional]
4142
}
4243

4344
## Example
@@ -139,7 +140,8 @@ requested_accounts=[
139140
account_uuid = '{fab7119e-004f-4822-9c33-b8d570d6c6a6}',
140141
account_id = 'CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local',
141142
source_name = 'Multi Account AD source name', )
142-
]
143+
],
144+
privilege_level='High'
143145
)
144146

145147
```

sailpoint/v2024/models/pending_approval.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class PendingApproval(BaseModel):
6060
sod_violation_context: Optional[SodViolationContextCheckCompleted] = Field(default=None, alias="sodViolationContext")
6161
client_metadata: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary key-value pairs, if any were included in the corresponding access request item", alias="clientMetadata")
6262
requested_accounts: Optional[List[RequestedAccountRef]] = Field(default=None, description="The accounts selected by the user for the access to be provisioned on, in case they have multiple accounts on one or more sources.", alias="requestedAccounts")
63-
__properties: ClassVar[List[str]] = ["id", "accessRequestId", "name", "created", "modified", "requestCreated", "requestType", "requester", "requestedFor", "owner", "requestedObject", "requesterComment", "previousReviewersComments", "forwardHistory", "commentRequiredWhenRejected", "actionInProcess", "removeDate", "removeDateUpdateRequested", "currentRemoveDate", "sodViolationContext", "clientMetadata", "requestedAccounts"]
63+
privilege_level: Optional[StrictStr] = Field(default=None, description="The privilege level of the requested access item, if applicable.", alias="privilegeLevel")
64+
__properties: ClassVar[List[str]] = ["id", "accessRequestId", "name", "created", "modified", "requestCreated", "requestType", "requester", "requestedFor", "owner", "requestedObject", "requesterComment", "previousReviewersComments", "forwardHistory", "commentRequiredWhenRejected", "actionInProcess", "removeDate", "removeDateUpdateRequested", "currentRemoveDate", "sodViolationContext", "clientMetadata", "requestedAccounts", "privilegeLevel"]
6465

6566
model_config = ConfigDict(
6667
populate_by_name=True,
@@ -160,6 +161,11 @@ def to_dict(self) -> Dict[str, Any]:
160161
if self.requested_accounts is None and "requested_accounts" in self.model_fields_set:
161162
_dict['requestedAccounts'] = None
162163

164+
# set to None if privilege_level (nullable) is None
165+
# and model_fields_set contains the field
166+
if self.privilege_level is None and "privilege_level" in self.model_fields_set:
167+
_dict['privilegeLevel'] = None
168+
163169
return _dict
164170

165171
@classmethod
@@ -193,7 +199,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
193199
"currentRemoveDate": obj.get("currentRemoveDate"),
194200
"sodViolationContext": SodViolationContextCheckCompleted.from_dict(obj["sodViolationContext"]) if obj.get("sodViolationContext") is not None else None,
195201
"clientMetadata": obj.get("clientMetadata"),
196-
"requestedAccounts": [RequestedAccountRef.from_dict(_item) for _item in obj["requestedAccounts"]] if obj.get("requestedAccounts") is not None else None
202+
"requestedAccounts": [RequestedAccountRef.from_dict(_item) for _item in obj["requestedAccounts"]] if obj.get("requestedAccounts") is not None else None,
203+
"privilegeLevel": obj.get("privilegeLevel")
197204
})
198205
return _obj
199206

sailpoint/v2024/test/test_pending_approval.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ def make_instance(self, include_optional) -> PendingApproval:
128128
account_uuid = '{fab7119e-004f-4822-9c33-b8d570d6c6a6}',
129129
account_id = 'CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local',
130130
source_name = 'Multi Account AD source name', )
131-
]
131+
],
132+
privilege_level = 'High'
132133
)
133134
else:
134135
return PendingApproval(

sailpoint/v2025/docs/Models/PendingApproval.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Name | Type | Description | Notes
3838
**sod_violation_context** | [**SodViolationContextCheckCompleted**](sod-violation-context-check-completed) | | [optional]
3939
**client_metadata** | **map[string]str** | Arbitrary key-value pairs, if any were included in the corresponding access request item | [optional]
4040
**requested_accounts** | [**[]RequestedAccountRef**](requested-account-ref) | The accounts selected by the user for the access to be provisioned on, in case they have multiple accounts on one or more sources. | [optional]
41+
**privilege_level** | **str** | The privilege level of the requested access item, if applicable. | [optional]
4142
}
4243

4344
## Example
@@ -139,7 +140,8 @@ requested_accounts=[
139140
account_uuid = '{fab7119e-004f-4822-9c33-b8d570d6c6a6}',
140141
account_id = 'CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local',
141142
source_name = 'Multi Account AD source name', )
142-
]
143+
],
144+
privilege_level='High'
143145
)
144146

145147
```

sailpoint/v2025/models/pending_approval.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class PendingApproval(BaseModel):
6060
sod_violation_context: Optional[SodViolationContextCheckCompleted] = Field(default=None, alias="sodViolationContext")
6161
client_metadata: Optional[Dict[str, StrictStr]] = Field(default=None, description="Arbitrary key-value pairs, if any were included in the corresponding access request item", alias="clientMetadata")
6262
requested_accounts: Optional[List[RequestedAccountRef]] = Field(default=None, description="The accounts selected by the user for the access to be provisioned on, in case they have multiple accounts on one or more sources.", alias="requestedAccounts")
63-
__properties: ClassVar[List[str]] = ["id", "accessRequestId", "name", "created", "modified", "requestCreated", "requestType", "requester", "requestedFor", "owner", "requestedObject", "requesterComment", "previousReviewersComments", "forwardHistory", "commentRequiredWhenRejected", "actionInProcess", "removeDate", "removeDateUpdateRequested", "currentRemoveDate", "sodViolationContext", "clientMetadata", "requestedAccounts"]
63+
privilege_level: Optional[StrictStr] = Field(default=None, description="The privilege level of the requested access item, if applicable.", alias="privilegeLevel")
64+
__properties: ClassVar[List[str]] = ["id", "accessRequestId", "name", "created", "modified", "requestCreated", "requestType", "requester", "requestedFor", "owner", "requestedObject", "requesterComment", "previousReviewersComments", "forwardHistory", "commentRequiredWhenRejected", "actionInProcess", "removeDate", "removeDateUpdateRequested", "currentRemoveDate", "sodViolationContext", "clientMetadata", "requestedAccounts", "privilegeLevel"]
6465

6566
model_config = ConfigDict(
6667
populate_by_name=True,
@@ -160,6 +161,11 @@ def to_dict(self) -> Dict[str, Any]:
160161
if self.requested_accounts is None and "requested_accounts" in self.model_fields_set:
161162
_dict['requestedAccounts'] = None
162163

164+
# set to None if privilege_level (nullable) is None
165+
# and model_fields_set contains the field
166+
if self.privilege_level is None and "privilege_level" in self.model_fields_set:
167+
_dict['privilegeLevel'] = None
168+
163169
return _dict
164170

165171
@classmethod
@@ -193,7 +199,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
193199
"currentRemoveDate": obj.get("currentRemoveDate"),
194200
"sodViolationContext": SodViolationContextCheckCompleted.from_dict(obj["sodViolationContext"]) if obj.get("sodViolationContext") is not None else None,
195201
"clientMetadata": obj.get("clientMetadata"),
196-
"requestedAccounts": [RequestedAccountRef.from_dict(_item) for _item in obj["requestedAccounts"]] if obj.get("requestedAccounts") is not None else None
202+
"requestedAccounts": [RequestedAccountRef.from_dict(_item) for _item in obj["requestedAccounts"]] if obj.get("requestedAccounts") is not None else None,
203+
"privilegeLevel": obj.get("privilegeLevel")
197204
})
198205
return _obj
199206

sailpoint/v2025/test/test_pending_approval.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ def make_instance(self, include_optional) -> PendingApproval:
128128
account_uuid = '{fab7119e-004f-4822-9c33-b8d570d6c6a6}',
129129
account_id = 'CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local',
130130
source_name = 'Multi Account AD source name', )
131-
]
131+
],
132+
privilege_level = 'High'
132133
)
133134
else:
134135
return PendingApproval(

sailpoint/v3/docs/Models/PendingApproval.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Name | Type | Description | Notes
3838
**sod_violation_context** | [**SodViolationContextCheckCompleted**](sod-violation-context-check-completed) | | [optional]
3939
**client_metadata** | **map[string]str** | Arbitrary key-value pairs, if any were included in the corresponding access request item | [optional]
4040
**requested_accounts** | [**[]RequestedAccountRef**](requested-account-ref) | The accounts selected by the user for the access to be provisioned on, in case they have multiple accounts on one or more sources. | [optional]
41+
**privilege_level** | **str** | The privilege level of the requested access item, if applicable. | [optional]
4142
}
4243

4344
## Example
@@ -139,7 +140,8 @@ requested_accounts=[
139140
account_uuid = '{fab7119e-004f-4822-9c33-b8d570d6c6a6}',
140141
account_id = 'CN=Glen 067da3248e914,OU=YOUROU,OU=org-data-service,DC=YOURDC,DC=local',
141142
source_name = 'Multi Account AD source name', )
142-
]
143+
],
144+
privilege_level='High'
143145
)
144146

145147
```

0 commit comments

Comments
 (0)