Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
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
6 changes: 6 additions & 0 deletions lib/services/authorizationManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ export interface RoleAssignment {
* The principal ID.
*/
principalId?: string;
/**
* The principal type of the assigned principal ID. Possible values include: 'User', 'Group',
* 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI',
* 'DirectoryObjectOrGroup', 'Everyone'
*/
principalType?: string;
/**
* The Delegation flag for the roleassignment
*/
Expand Down
11 changes: 11 additions & 0 deletions lib/services/authorizationManagement/lib/models/roleAssignment.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class RoleAssignment {
* @property {string} [scope] The role assignment scope.
* @property {string} [roleDefinitionId] The role definition ID.
* @property {string} [principalId] The principal ID.
* @property {string} [principalType] The principal type of the assigned
* principal ID. Possible values include: 'User', 'Group',
* 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup',
* 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone'
* @property {boolean} [canDelegate] The Delegation flag for the
* roleassignment
*/
Expand Down Expand Up @@ -88,6 +92,13 @@ class RoleAssignment {
name: 'String'
}
},
principalType: {
required: false,
serializedName: 'properties.principalType',
type: {
name: 'String'
}
},
canDelegate: {
required: false,
serializedName: 'properties.canDelegate',
Expand Down