Added ExpirationTime field to Role Assignment response DTO for version 2026-07-01-preview#39224
Added ExpirationTime field to Role Assignment response DTO for version 2026-07-01-preview#39224denyspanov-public wants to merge 1 commit into
Conversation
…n 2026-07-01-preview
There was a problem hiding this comment.
Pull request overview
This PR adds a read-only expirationTime property to the RoleAssignment and RoleAssignmentProperties models in the @azure/arm-authorization management SDK, wiring it through both role-assignment property deserializers so the value returned by get/list operations is exposed to consumers. It is described as backing the 2026-07-01-preview api-version.
The change is internally consistent: the read-only field is correctly added to the public API report, excluded from the (input-only) serializers, and documented with a Features Added CHANGELOG entry that matches the current unreleased 10.0.0-beta.4 version. The one concern is functional: the role-assignment operations that produce these models still request api-version=2022-04-01, which does not return expirationTime, so the field will always deserialize to undefined until those operations are regenerated against 2026-07-01-preview.
Changes:
- Added
readonly expirationTime?: stringtoRoleAssignmentandRoleAssignmentProperties, plus the corresponding lines in both property deserializers. - Updated the public API report (
review/*.api.md) to include the new property on both interfaces. - Added a
Features AddedCHANGELOG entry for the new property.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| sdk/authorization/arm-authorization/src/models/microsoft/roleAssignment/models.ts | Adds expirationTime to both interfaces and both deserializers; correctly omitted from serializers since it is read-only. |
| sdk/authorization/arm-authorization/review/arm-authorization-node.api.md | Reflects the new expirationTime property on both public interfaces, keeping the API report in sync. |
| sdk/authorization/arm-authorization/CHANGELOG.md | Documents the new property under Features Added for the unreleased 10.0.0-beta.4. |
| /** Time at which the role assignment expires */ | ||
| readonly expirationTime?: string; |
Added ExpirationTime field to Role Assignment response DTO for version 2026-07-01-preview
Added ExpirationTime field to Role Assignment response DTO for version 2026-07-01-preview
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists