diff --git a/lib/services/authorizationManagement/lib/models/index.d.ts b/lib/services/authorizationManagement/lib/models/index.d.ts index f53d6c665b..0575694748 100644 --- a/lib/services/authorizationManagement/lib/models/index.d.ts +++ b/lib/services/authorizationManagement/lib/models/index.d.ts @@ -200,9 +200,9 @@ export interface RoleAssignment { * @constructor * Role assignment create parameters. * - * @member {string} [roleDefinitionId] The role definition ID used in the role + * @member {string} roleDefinitionId The role definition ID used in the role * assignment. - * @member {string} [principalId] The principal ID assigned to the role. This + * @member {string} principalId The principal ID assigned to the role. This * maps to the ID inside the Active Directory. It can point to a user, service * principal, or security group. * @member {string} [principalType] The principal type of the assigned @@ -213,8 +213,8 @@ export interface RoleAssignment { * assignment */ export interface RoleAssignmentCreateParameters { - roleDefinitionId?: string; - principalId?: string; + roleDefinitionId: string; + principalId: string; principalType?: string; canDelegate?: boolean; } diff --git a/lib/services/authorizationManagement/lib/models/roleAssignmentCreateParameters.js b/lib/services/authorizationManagement/lib/models/roleAssignmentCreateParameters.js index 0c83bc89d9..645dc8e154 100644 --- a/lib/services/authorizationManagement/lib/models/roleAssignmentCreateParameters.js +++ b/lib/services/authorizationManagement/lib/models/roleAssignmentCreateParameters.js @@ -17,9 +17,9 @@ class RoleAssignmentCreateParameters { /** * Create a RoleAssignmentCreateParameters. - * @member {string} [roleDefinitionId] The role definition ID used in the - * role assignment. - * @member {string} [principalId] The principal ID assigned to the role. This + * @member {string} roleDefinitionId The role definition ID used in the role + * assignment. + * @member {string} principalId The principal ID assigned to the role. This * maps to the ID inside the Active Directory. It can point to a user, * service principal, or security group. * @member {string} [principalType] The principal type of the assigned @@ -47,14 +47,14 @@ class RoleAssignmentCreateParameters { className: 'RoleAssignmentCreateParameters', modelProperties: { roleDefinitionId: { - required: false, + required: true, serializedName: 'properties.roleDefinitionId', type: { name: 'String' } }, principalId: { - required: false, + required: true, serializedName: 'properties.principalId', type: { name: 'String' diff --git a/lib/services/authorizationManagement/lib/operations/index.d.ts b/lib/services/authorizationManagement/lib/operations/index.d.ts index 4572e94368..23d6748379 100644 --- a/lib/services/authorizationManagement/lib/operations/index.d.ts +++ b/lib/services/authorizationManagement/lib/operations/index.d.ts @@ -811,10 +811,10 @@ export interface RoleAssignments { * * @param {object} parameters Parameters for the role assignment. * - * @param {string} [parameters.roleDefinitionId] The role definition ID used in + * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * - * @param {string} [parameters.principalId] The principal ID assigned to the + * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * @@ -855,10 +855,10 @@ export interface RoleAssignments { * * @param {object} parameters Parameters for the role assignment. * - * @param {string} [parameters.roleDefinitionId] The role definition ID used in + * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * - * @param {string} [parameters.principalId] The principal ID assigned to the + * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * @@ -1023,10 +1023,10 @@ export interface RoleAssignments { * * @param {object} parameters Parameters for the role assignment. * - * @param {string} [parameters.roleDefinitionId] The role definition ID used in + * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * - * @param {string} [parameters.principalId] The principal ID assigned to the + * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * @@ -1058,10 +1058,10 @@ export interface RoleAssignments { * * @param {object} parameters Parameters for the role assignment. * - * @param {string} [parameters.roleDefinitionId] The role definition ID used in + * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * - * @param {string} [parameters.principalId] The principal ID assigned to the + * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * diff --git a/lib/services/authorizationManagement/lib/operations/roleAssignments.js b/lib/services/authorizationManagement/lib/operations/roleAssignments.js index 4c4031ad9d..733313d390 100644 --- a/lib/services/authorizationManagement/lib/operations/roleAssignments.js +++ b/lib/services/authorizationManagement/lib/operations/roleAssignments.js @@ -496,10 +496,10 @@ function _deleteMethod(scope, roleAssignmentName, options, callback) { * * @param {object} parameters Parameters for the role assignment. * - * @param {string} [parameters.roleDefinitionId] The role definition ID used in + * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * - * @param {string} [parameters.principalId] The principal ID assigned to the + * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * @@ -939,10 +939,10 @@ function _deleteById(roleId, options, callback) { * * @param {object} parameters Parameters for the role assignment. * - * @param {string} [parameters.roleDefinitionId] The role definition ID used in + * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * - * @param {string} [parameters.principalId] The principal ID assigned to the + * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * @@ -2368,10 +2368,10 @@ class RoleAssignments { * * @param {object} parameters Parameters for the role assignment. * - * @param {string} [parameters.roleDefinitionId] The role definition ID used in + * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * - * @param {string} [parameters.principalId] The principal ID assigned to the + * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * @@ -2424,10 +2424,10 @@ class RoleAssignments { * * @param {object} parameters Parameters for the role assignment. * - * @param {string} [parameters.roleDefinitionId] The role definition ID used in + * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * - * @param {string} [parameters.principalId] The principal ID assigned to the + * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * @@ -2661,10 +2661,10 @@ class RoleAssignments { * * @param {object} parameters Parameters for the role assignment. * - * @param {string} [parameters.roleDefinitionId] The role definition ID used in + * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * - * @param {string} [parameters.principalId] The principal ID assigned to the + * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * @@ -2708,10 +2708,10 @@ class RoleAssignments { * * @param {object} parameters Parameters for the role assignment. * - * @param {string} [parameters.roleDefinitionId] The role definition ID used in + * @param {string} parameters.roleDefinitionId The role definition ID used in * the role assignment. * - * @param {string} [parameters.principalId] The principal ID assigned to the + * @param {string} parameters.principalId The principal ID assigned to the * role. This maps to the ID inside the Active Directory. It can point to a * user, service principal, or security group. * diff --git a/lib/services/authorizationManagement/package.json b/lib/services/authorizationManagement/package.json index 791730b83e..c50780cda2 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": "6.0.0", + "version": "7.0.0", "dependencies": { "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5"