RoleManagementPoliciesOperations Class

RoleManagementPoliciesOperations 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
RoleManagementPoliciesOperations

Constructor

RoleManagementPoliciesOperations(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

delete

Delete a role management policy.

get

Get the specified role management policy for a resource scope.

list_for_scope

Gets role management policies for a resource scope.

update

Update a role management policy.

delete

Delete a role management policy.

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

Parameters

scope
str
Required

The scope of the role management policy to upsert.

role_management_policy_name
str
Required

The name (guid) of the role management policy to upsert.

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 for a resource scope.

get(scope: str, role_management_policy_name: str, **kwargs: Any) -> _models.RoleManagementPolicy

Parameters

scope
str
Required

The scope of the role management policy.

role_management_policy_name
str
Required

The name (guid) of the role management policy to get.

cls
callable

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

Returns

RoleManagementPolicy, or the result of cls(response)

Return type

Exceptions

list_for_scope

Gets role management policies for a resource scope.

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

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 RoleManagementPolicyListResult or the result of cls(response)

Return type

Exceptions

update

Update a role management policy.

update(scope: str, role_management_policy_name: str, parameters: _models.RoleManagementPolicy, **kwargs: Any) -> _models.RoleManagementPolicy

Parameters

scope
str
Required

The scope of the role management policy to upsert.

role_management_policy_name
str
Required

The name (guid) of the role management policy to upsert.

parameters
RoleManagementPolicy
Required

Parameters for the role management policy.

cls
callable

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

Returns

RoleManagementPolicy, 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'>