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
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default class AuthorizationManagementClient extends AzureServiceClient {
permissions: operations.Permissions;
roleAssignments: operations.RoleAssignments;
roleDefinitions: operations.RoleDefinitions;
denyAssignments: operations.DenyAssignments;
}

export { AuthorizationManagementClient, models as AuthorizationManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class AuthorizationManagementClient extends ServiceClient {
this.permissions = new operations.Permissions(this);
this.roleAssignments = new operations.RoleAssignments(this);
this.roleDefinitions = new operations.RoleDefinitions(this);
this.denyAssignments = new operations.DenyAssignments(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
165 changes: 165 additions & 0 deletions lib/services/authorizationManagement/lib/models/denyAssignment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Deny Assignment
*
*/
class DenyAssignment {
/**
* Create a DenyAssignment.
* @member {string} [id] The deny assignment ID.
* @member {string} [name] The deny assignment name.
* @member {string} [type] The deny assignment type.
* @member {string} [denyAssignmentName] The display name of the deny
* assignment.
* @member {string} [description] The description of the deny assignment.
* @member {array} [permissions] An array of permissions that are denied by
* the deny assignment.
* @member {string} [scope] The deny assignment scope.
* @member {boolean} [doNotApplyToChildScopes] Determines if the deny
* assignment applies to child scopes. Default value is false.
* @member {array} [principals] Array of principals to which the deny
* assignment applies.
* @member {array} [excludePrincipals] Array of principals to which the deny
* assignment does not apply.
* @member {boolean} [isSystemProtected] Specifies whether this deny
* assignment was created by Azure and cannot be edited or deleted.
*/
constructor() {
}

/**
* Defines the metadata of DenyAssignment
*
* @returns {object} metadata of DenyAssignment
*
*/
mapper() {
return {
required: false,
serializedName: 'DenyAssignment',
type: {
name: 'Composite',
className: 'DenyAssignment',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
denyAssignmentName: {
required: false,
serializedName: 'properties.denyAssignmentName',
type: {
name: 'String'
}
},
description: {
required: false,
serializedName: 'properties.description',
type: {
name: 'String'
}
},
permissions: {
required: false,
serializedName: 'properties.permissions',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'DenyAssignmentPermissionElementType',
type: {
name: 'Composite',
className: 'DenyAssignmentPermission'
}
}
}
},
scope: {
required: false,
serializedName: 'properties.scope',
type: {
name: 'String'
}
},
doNotApplyToChildScopes: {
required: false,
serializedName: 'properties.doNotApplyToChildScopes',
type: {
name: 'Boolean'
}
},
principals: {
required: false,
serializedName: 'properties.principals',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'PrincipalElementType',
type: {
name: 'Composite',
className: 'Principal'
}
}
}
},
excludePrincipals: {
required: false,
serializedName: 'properties.excludePrincipals',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'PrincipalElementType',
type: {
name: 'Composite',
className: 'Principal'
}
}
}
},
isSystemProtected: {
required: false,
serializedName: 'properties.isSystemProtected',
type: {
name: 'Boolean'
}
}
}
}
};
}
}

module.exports = DenyAssignment;
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Deny Assignments filter
*
*/
class DenyAssignmentFilter {
/**
* Create a DenyAssignmentFilter.
* @member {string} [denyAssignmentName] Return deny assignment with
* specified name.
* @member {string} [principalId] Return all deny assignments where the
* specified principal is listed in the principals list of deny assignments.
* @member {string} [gdprExportPrincipalId] Return all deny assignments where
* the specified principal is listed either in the principals list or exclude
* principals list of deny assignments.
*/
constructor() {
}

/**
* Defines the metadata of DenyAssignmentFilter
*
* @returns {object} metadata of DenyAssignmentFilter
*
*/
mapper() {
return {
required: false,
serializedName: 'DenyAssignmentFilter',
type: {
name: 'Composite',
className: 'DenyAssignmentFilter',
modelProperties: {
denyAssignmentName: {
required: false,
serializedName: 'denyAssignmentName',
type: {
name: 'String'
}
},
principalId: {
required: false,
serializedName: 'principalId',
type: {
name: 'String'
}
},
gdprExportPrincipalId: {
required: false,
serializedName: 'gdprExportPrincipalId',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = DenyAssignmentFilter;
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Deny assignment list operation result.
*/
class DenyAssignmentListResult extends Array {
/**
* Create a DenyAssignmentListResult.
* @member {string} [nextLink] The URL to use for getting the next set of
* results.
*/
constructor() {
super();
}

/**
* Defines the metadata of DenyAssignmentListResult
*
* @returns {object} metadata of DenyAssignmentListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'DenyAssignmentListResult',
type: {
name: 'Composite',
className: 'DenyAssignmentListResult',
modelProperties: {
value: {
required: false,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'DenyAssignmentElementType',
type: {
name: 'Composite',
className: 'DenyAssignment'
}
}
}
},
nextLink: {
required: false,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = DenyAssignmentListResult;
Loading