Compartilhar via


RoleManagementPolicyAssignmentsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AuthorizationManagementClient's

<xref:role_management_policy_assignments> attribute.

Inheritance
builtins.object
RoleManagementPolicyAssignmentsOperations

Constructor

RoleManagementPolicyAssignmentsOperations(*args, **kwargs)

Methods

create

Create a role management policy assignment.

delete

Delete a role management policy assignment.

get

Get the specified role management policy assignment for a resource scope.

list_for_scope

Gets role management assignment policies for a resource scope.

create

Create a role management policy assignment.

create(scope: str, role_management_policy_assignment_name: str, parameters: _models.RoleManagementPolicyAssignment, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RoleManagementPolicyAssignment

Parameters

Name Description
scope
Required
str

The scope of the role management policy assignment to upsert. Required.

role_management_policy_assignment_name
Required
str

The name of format {guid_guid} the role management policy assignment to upsert. Required.

parameters
Required

Parameters for the role management policy assignment. Is either a RoleManagementPolicyAssignment type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

Returns

Type Description

RoleManagementPolicyAssignment or the result of cls(response)

Exceptions

Type Description

delete

Delete a role management policy assignment.

delete(scope: str, role_management_policy_assignment_name: str, **kwargs: Any) -> None

Parameters

Name Description
scope
Required
str

The scope of the role management policy assignment to delete. Required.

role_management_policy_assignment_name
Required
str

The name of format {guid_guid} the role management policy assignment to delete. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get

Get the specified role management policy assignment for a resource scope.

get(scope: str, role_management_policy_assignment_name: str, **kwargs: Any) -> RoleManagementPolicyAssignment

Parameters

Name Description
scope
Required
str

The scope of the role management policy. Required.

role_management_policy_assignment_name
Required
str

The name of format {guid_guid} the role management policy assignment to get. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

RoleManagementPolicyAssignment or the result of cls(response)

Exceptions

Type Description

list_for_scope

Gets role management assignment policies for a resource scope.

list_for_scope(scope: str, **kwargs: Any) -> Iterable[RoleManagementPolicyAssignment]

Parameters

Name Description
scope
Required
str

The scope of the role management policy. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either RoleManagementPolicyAssignment or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.authorization.v2020_10_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\authorization\\v2020_10_01_preview\\models\\__init__.py'>