diff --git a/lib/services/authorizationManagement/LICENSE.txt b/lib/services/authorizationManagement/LICENSE.txt index 5431ba98b9..8f3d856145 100644 --- a/lib/services/authorizationManagement/LICENSE.txt +++ b/lib/services/authorizationManagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/services/authorizationManagement/lib/models/index.d.ts b/lib/services/authorizationManagement/lib/models/index.d.ts index f92f1ab7c6..1167897f51 100644 --- a/lib/services/authorizationManagement/lib/models/index.d.ts +++ b/lib/services/authorizationManagement/lib/models/index.d.ts @@ -128,7 +128,7 @@ export interface RoleAssignmentFilter { */ principalId?: string; /** - * The Delegation flag for the roleassignment + * The Delegation flag for the role assignment */ canDelegate?: boolean; } @@ -162,7 +162,13 @@ export interface RoleAssignment { */ principalId?: string; /** - * The Delegation flag for the roleassignment + * 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 role assignment */ canDelegate?: boolean; } @@ -187,7 +193,7 @@ export interface RoleAssignmentCreateParameters { */ principalType?: string; /** - * The delgation flag used for creating a role assignment + * The delegation flag used for creating a role assignment */ canDelegate?: boolean; } diff --git a/lib/services/authorizationManagement/lib/models/roleAssignment.js b/lib/services/authorizationManagement/lib/models/roleAssignment.js index 4defec9cbc..586340b8aa 100644 --- a/lib/services/authorizationManagement/lib/models/roleAssignment.js +++ b/lib/services/authorizationManagement/lib/models/roleAssignment.js @@ -23,8 +23,12 @@ class RoleAssignment { * @property {string} [scope] The role assignment scope. * @property {string} [roleDefinitionId] The role definition ID. * @property {string} [principalId] The principal ID. - * @property {boolean} [canDelegate] The Delegation flag for the - * roleassignment + * @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 role + * assignment */ constructor() { } @@ -88,6 +92,13 @@ class RoleAssignment { name: 'String' } }, + principalType: { + required: false, + serializedName: 'properties.principalType', + type: { + name: 'String' + } + }, canDelegate: { required: false, serializedName: 'properties.canDelegate', diff --git a/lib/services/authorizationManagement/lib/models/roleAssignmentCreateParameters.js b/lib/services/authorizationManagement/lib/models/roleAssignmentCreateParameters.js index bb7d4c3259..0852189d01 100644 --- a/lib/services/authorizationManagement/lib/models/roleAssignmentCreateParameters.js +++ b/lib/services/authorizationManagement/lib/models/roleAssignmentCreateParameters.js @@ -26,7 +26,7 @@ class RoleAssignmentCreateParameters { * principal ID. Possible values include: 'User', 'Group', * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' - * @property {boolean} [canDelegate] The delgation flag used for creating a + * @property {boolean} [canDelegate] The delegation flag used for creating a * role assignment */ constructor() { diff --git a/lib/services/authorizationManagement/lib/models/roleAssignmentFilter.js b/lib/services/authorizationManagement/lib/models/roleAssignmentFilter.js index bae992d105..866c46058f 100644 --- a/lib/services/authorizationManagement/lib/models/roleAssignmentFilter.js +++ b/lib/services/authorizationManagement/lib/models/roleAssignmentFilter.js @@ -19,8 +19,8 @@ class RoleAssignmentFilter { * Create a RoleAssignmentFilter. * @property {string} [principalId] Returns role assignment of the specific * principal. - * @property {boolean} [canDelegate] The Delegation flag for the - * roleassignment + * @property {boolean} [canDelegate] The Delegation flag for the role + * assignment */ constructor() { } diff --git a/lib/services/authorizationManagement/lib/operations/index.d.ts b/lib/services/authorizationManagement/lib/operations/index.d.ts index 0fb02617dd..ff54b00e52 100644 --- a/lib/services/authorizationManagement/lib/operations/index.d.ts +++ b/lib/services/authorizationManagement/lib/operations/index.d.ts @@ -570,7 +570,7 @@ export interface RoleAssignments { * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * - * @param {boolean} [parameters.canDelegate] The delgation flag used for + * @param {boolean} [parameters.canDelegate] The delegation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. @@ -614,7 +614,7 @@ export interface RoleAssignments { * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * - * @param {boolean} [parameters.canDelegate] The delgation flag used for + * @param {boolean} [parameters.canDelegate] The delegation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. @@ -782,7 +782,7 @@ export interface RoleAssignments { * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * - * @param {boolean} [parameters.canDelegate] The delgation flag used for + * @param {boolean} [parameters.canDelegate] The delegation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. @@ -817,7 +817,7 @@ export interface RoleAssignments { * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * - * @param {boolean} [parameters.canDelegate] The delgation flag used for + * @param {boolean} [parameters.canDelegate] The delegation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. diff --git a/lib/services/authorizationManagement/lib/operations/roleAssignments.js b/lib/services/authorizationManagement/lib/operations/roleAssignments.js index 733313d390..a14a5c58a6 100644 --- a/lib/services/authorizationManagement/lib/operations/roleAssignments.js +++ b/lib/services/authorizationManagement/lib/operations/roleAssignments.js @@ -508,7 +508,7 @@ function _deleteMethod(scope, roleAssignmentName, options, callback) { * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * - * @param {boolean} [parameters.canDelegate] The delgation flag used for + * @param {boolean} [parameters.canDelegate] The delegation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. @@ -951,7 +951,7 @@ function _deleteById(roleId, options, callback) { * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * - * @param {boolean} [parameters.canDelegate] The delgation flag used for + * @param {boolean} [parameters.canDelegate] The delegation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. @@ -2380,7 +2380,7 @@ class RoleAssignments { * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * - * @param {boolean} [parameters.canDelegate] The delgation flag used for + * @param {boolean} [parameters.canDelegate] The delegation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. @@ -2436,7 +2436,7 @@ class RoleAssignments { * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * - * @param {boolean} [parameters.canDelegate] The delgation flag used for + * @param {boolean} [parameters.canDelegate] The delegation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. @@ -2673,7 +2673,7 @@ class RoleAssignments { * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * - * @param {boolean} [parameters.canDelegate] The delgation flag used for + * @param {boolean} [parameters.canDelegate] The delegation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. @@ -2720,7 +2720,7 @@ class RoleAssignments { * 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', * 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone' * - * @param {boolean} [parameters.canDelegate] The delgation flag used for + * @param {boolean} [parameters.canDelegate] The delegation flag used for * creating a role assignment * * @param {object} [options] Optional Parameters. diff --git a/lib/services/authorizationManagement/package.json b/lib/services/authorizationManagement/package.json index a086f672b1..e71f07b983 100644 --- a/lib/services/authorizationManagement/package.json +++ b/lib/services/authorizationManagement/package.json @@ -2,7 +2,7 @@ "name": "azure-arm-authorization", "author": "Microsoft Corporation", "description": "AuthorizationManagementClient Library with typescript type definitions for node", - "version": "8.3.1", + "version": "8.4.0", "dependencies": { "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5"