Skip to content

Commit 71ee047

Browse files
Automated build 'Automated commit by github action: 21214770443
Original commit message: Merge pull request #2559 from sailpoint/akhandelwal/ISCRP-5070 ISCRP-5070: Added removeDate field in RoleAssignmentRef in listRoleAssignments API response' python sdk: 21214787419
1 parent 27de728 commit 71ee047

File tree

5 files changed

+19
-9
lines changed

5 files changed

+19
-9
lines changed

sailpoint/beta/docs/Models/GetRoleAssignments200ResponseInner.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ Name | Type | Description | Notes
1919
**id** | **str** | Assignment Id | [optional]
2020
**role** | [**BaseRoleReferenceDto**](base-role-reference-dto) | | [optional]
2121
**added_date** | **datetime** | Date that the assignment was added | [optional]
22+
**remove_date** | **datetime** | Date that the assignment will be removed | [optional]
2223
**comments** | **str** | Comments added by the user when the assignment was made | [optional]
2324
**assignment_source** | **str** | Source describing how this assignment was made | [optional]
2425
**assigner** | [**RoleAssignmentDtoAssigner**](role-assignment-dto-assigner) | | [optional]
2526
**assigned_dimensions** | [**[]BaseReferenceDto1**](base-reference-dto1) | Dimensions assigned related to this role | [optional]
2627
**assignment_context** | [**RoleAssignmentDtoAssignmentContext**](role-assignment-dto-assignment-context) | | [optional]
2728
**account_targets** | [**[]RoleTargetDto**](role-target-dto) | | [optional]
28-
**remove_date** | **datetime** | Date that the assignment will be removed | [optional]
2929
}
3030

3131
## Example
@@ -40,6 +40,7 @@ role=sailpoint.beta.models.base_reference_dto.Base Reference Dto(
4040
id = '2c91808568c529c60168cca6f90c1313',
4141
name = 'William Wilson', ),
4242
added_date='2025-07-11T18:45:37.098Z',
43+
remove_date='2026-07-11T18:45:37.098Z',
4344
comments='I'm a new Engineer and need this role to do my work',
4445
assignment_source='UI',
4546
assigner=sailpoint.beta.models.role_assignment_dto_assigner.RoleAssignmentDto_assigner(
@@ -58,8 +59,7 @@ account_targets=[
5859
display_name = 'Abby.Smith',
5960
uuid = '{ad9fc391-246d-40af-b248-b6556a2b7c01}', ),
6061
role_name = 'Marketing', )
61-
],
62-
remove_date='2026-07-11T18:45:37.098Z'
62+
]
6363
)
6464

6565
```

sailpoint/beta/docs/Models/RoleAssignmentRef.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
1919
**id** | **str** | Assignment Id | [optional]
2020
**role** | [**BaseReferenceDto1**](base-reference-dto1) | | [optional]
2121
**added_date** | **datetime** | Date that the assignment was added | [optional]
22+
**remove_date** | **datetime** | Date that the assignment will be removed | [optional]
2223
}
2324

2425
## Example
@@ -31,7 +32,8 @@ id='1cbb0705b38c4226b1334eadd8874086',
3132
role=sailpoint.beta.models.base_reference_dto.Base Reference Dto(
3233
id = 'ff8081814d977c21014da056804a0af3',
3334
name = 'Github', ),
34-
added_date='2025-07-11T18:45:37.098Z'
35+
added_date='2025-07-11T18:45:37.098Z',
36+
remove_date='2026-01-23T19:15Z'
3537
)
3638

3739
```

sailpoint/beta/models/role_assignment_ref.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class RoleAssignmentRef(BaseModel):
3232
id: Optional[StrictStr] = Field(default=None, description="Assignment Id")
3333
role: Optional[BaseReferenceDto1] = None
3434
added_date: Optional[datetime] = Field(default=None, description="Date that the assignment was added", alias="addedDate")
35-
__properties: ClassVar[List[str]] = ["id", "role", "addedDate"]
35+
remove_date: Optional[datetime] = Field(default=None, description="Date that the assignment will be removed", alias="removeDate")
36+
__properties: ClassVar[List[str]] = ["id", "role", "addedDate", "removeDate"]
3637

3738
model_config = ConfigDict(
3839
populate_by_name=True,
@@ -76,6 +77,11 @@ def to_dict(self) -> Dict[str, Any]:
7677
# override the default output from pydantic by calling `to_dict()` of role
7778
if self.role:
7879
_dict['role'] = self.role.to_dict()
80+
# set to None if remove_date (nullable) is None
81+
# and model_fields_set contains the field
82+
if self.remove_date is None and "remove_date" in self.model_fields_set:
83+
_dict['removeDate'] = None
84+
7985
return _dict
8086

8187
@classmethod
@@ -90,7 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
9096
_obj = cls.model_validate({
9197
"id": obj.get("id"),
9298
"role": BaseReferenceDto1.from_dict(obj["role"]) if obj.get("role") is not None else None,
93-
"addedDate": obj.get("addedDate")
99+
"addedDate": obj.get("addedDate"),
100+
"removeDate": obj.get("removeDate")
94101
})
95102
return _obj
96103

sailpoint/beta/test/test_get_role_assignments200_response_inner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def make_instance(self, include_optional) -> GetRoleAssignments200ResponseInner:
4141
id = '2c91808568c529c60168cca6f90c1313',
4242
name = 'William Wilson', ),
4343
added_date = '2025-07-11T18:45:37.098Z',
44+
remove_date = '2026-07-11T18:45:37.098Z',
4445
comments = 'I'm a new Engineer and need this role to do my work',
4546
assignment_source = 'UI',
4647
assigner = sailpoint.beta.models.role_assignment_dto_assigner.RoleAssignmentDto_assigner(
@@ -59,8 +60,7 @@ def make_instance(self, include_optional) -> GetRoleAssignments200ResponseInner:
5960
display_name = 'Abby.Smith',
6061
uuid = '{ad9fc391-246d-40af-b248-b6556a2b7c01}', ),
6162
role_name = 'Marketing', )
62-
],
63-
remove_date = '2026-07-11T18:45:37.098Z'
63+
]
6464
)
6565
else:
6666
return GetRoleAssignments200ResponseInner(

sailpoint/beta/test/test_role_assignment_ref.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ def make_instance(self, include_optional) -> RoleAssignmentRef:
3939
role = sailpoint.beta.models.base_reference_dto.Base Reference Dto(
4040
id = 'ff8081814d977c21014da056804a0af3',
4141
name = 'Github', ),
42-
added_date = '2025-07-11T18:45:37.098Z'
42+
added_date = '2025-07-11T18:45:37.098Z',
43+
remove_date = '2026-01-23T19:15Z'
4344
)
4445
else:
4546
return RoleAssignmentRef(

0 commit comments

Comments
 (0)