RoleManagementPolicyAssignmentsOperations Class

RoleManagementPolicyAssignmentsOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
RoleManagementPolicyAssignmentsOperations

Constructor

RoleManagementPolicyAssignmentsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

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, **kwargs: Any) -> _models.RoleManagementPolicyAssignment

Parameters

scope
str
Required

The scope of the role management policy assignment to upsert.

role_management_policy_assignment_name
str
Required

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

parameters
RoleManagementPolicyAssignment
Required

Parameters for the role management policy assignment.

cls
callable

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

Returns

RoleManagementPolicyAssignment, or the result of cls(response)

Return type

Exceptions

delete

Delete a role management policy assignment.

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

Parameters

scope
str
Required

The scope of the role management policy assignment to delete.

role_management_policy_assignment_name
str
Required

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

cls
callable

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

Returns

None, or the result of cls(response)

Return type

Exceptions

get

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

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

Parameters

scope
str
Required

The scope of the role management policy.

role_management_policy_assignment_name
str
Required

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

cls
callable

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

Returns

RoleManagementPolicyAssignment, or the result of cls(response)

Return type

Exceptions

list_for_scope

Gets role management assignment policies for a resource scope.

list_for_scope(scope: str, **kwargs: Any) -> Iterable[_models.RoleManagementPolicyAssignmentListResult]

Parameters

scope
str
Required

The scope of the role management policy.

cls
callable

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

Returns

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

Return type

Exceptions

Attributes

models

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