Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

### Features Added

- Added read-only `expirationTime` property to `RoleAssignment` returned by role assignment get and list operations.

### Breaking Changes

### Bugs Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,15 @@ public RoleAssignmentInner withDelegatedManagedIdentityResourceId(String delegat
return this;
}

/**
* Get the expirationTime property: Time the role assignment expires.
*
* @return the expirationTime value.
*/
public String expirationTime() {
return this.innerProperties() == null ? null : this.innerProperties().expirationTime();
}
Comment on lines +316 to +318

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ public final class RoleAssignmentProperties implements JsonSerializable<RoleAssi
*/
private String delegatedManagedIdentityResourceId;

/*
* Time the role assignment expires
*/
private String expirationTime;

/**
* Creates an instance of RoleAssignmentProperties class.
*/
Expand Down Expand Up @@ -277,6 +282,15 @@ public RoleAssignmentProperties withDelegatedManagedIdentityResourceId(String de
return this;
}

/**
* Get the expirationTime property: Time the role assignment expires.
*
* @return the expirationTime value.
*/
public String expirationTime() {
return this.expirationTime;
}
Comment on lines +290 to +292

/**
* Validates the instance.
*
Expand Down Expand Up @@ -355,6 +369,8 @@ public static RoleAssignmentProperties fromJson(JsonReader jsonReader) throws IO
deserializedRoleAssignmentProperties.updatedBy = reader.getString();
} else if ("delegatedManagedIdentityResourceId".equals(fieldName)) {
deserializedRoleAssignmentProperties.delegatedManagedIdentityResourceId = reader.getString();
} else if ("expirationTime".equals(fieldName)) {
deserializedRoleAssignmentProperties.expirationTime = reader.getString();
} else {
Comment on lines +372 to 374
reader.skipChildren();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,15 @@ public String delegatedManagedIdentityResourceId() {
return this;
}

/**
* Get the expirationTime property: Time the role assignment expires.
*
* @return the expirationTime value.
*/
public String expirationTime() {
return this.innerProperties() == null ? null : this.innerProperties().expirationTime();
}
Comment on lines +258 to +260

/**
* Validates the instance.
*
Expand Down
Loading