Added ExpirationTime field to Role Assignment response DTO for version 2026-07-01-preview#49769
Open
denyspanov-public wants to merge 1 commit into
Open
Added ExpirationTime field to Role Assignment response DTO for version 2026-07-01-preview#49769denyspanov-public wants to merge 1 commit into
denyspanov-public wants to merge 1 commit into
Conversation
…n 2026-07-01-preview
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the azure-resourcemanager-authorization management library model layer to include an expirationTime value on role assignment properties (per the 2026-07-01-preview spec update), and documents the feature in the changelog.
Changes:
- Added an
expirationTimefield toRoleAssignmentPropertiesand deserialization support for it. - Added forwarding accessors for
expirationTimeonRoleAssignmentInnerandRoleAssignmentCreateParameters. - Added a changelog entry describing the new property.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| sdk/authorization/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/models/RoleAssignmentCreateParameters.java | Adds an expirationTime() accessor forwarding to inner properties. |
| sdk/authorization/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/fluent/models/RoleAssignmentProperties.java | Introduces expirationTime field + getter and deserializes it from JSON. |
| sdk/authorization/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/fluent/models/RoleAssignmentInner.java | Adds an expirationTime() accessor forwarding to inner properties. |
| sdk/authorization/azure-resourcemanager-authorization/CHANGELOG.md | Documents the newly added expirationTime property. |
| /* | ||
| * Time the role assignment expires | ||
| */ | ||
| private String expirationTime; |
Comment on lines
+290
to
+292
| public String expirationTime() { | ||
| return this.expirationTime; | ||
| } |
Comment on lines
+372
to
374
| } else if ("expirationTime".equals(fieldName)) { | ||
| deserializedRoleAssignmentProperties.expirationTime = reader.getString(); | ||
| } else { |
Comment on lines
+258
to
+260
| public String expirationTime() { | ||
| return this.innerProperties() == null ? null : this.innerProperties().expirationTime(); | ||
| } |
Comment on lines
+316
to
+318
| public String expirationTime() { | ||
| return this.innerProperties() == null ? null : this.innerProperties().expirationTime(); | ||
| } |
|
|
||
| ### Features Added | ||
|
|
||
| - Added read-only `expirationTime` property to `RoleAssignment` returned by role assignment get and list operations. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added ExpirationTime field to Role Assignment response DTO for version 2026-07-01-preview
Azure/azure-rest-api-specs#44421
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines