RoleManagementPoliciesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
AuthorizationManagementClient's
<xref:role_management_policies> attribute.
- Inheritance
-
builtins.objectRoleManagementPoliciesOperations
Constructor
RoleManagementPoliciesOperations(*args, **kwargs)
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
Name | Description |
---|---|
scope
Required
|
The scope of the role management policy to upsert. Required. |
role_management_policy_name
Required
|
The name (guid) of the role management policy to upsert. 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 for a resource scope.
get(scope: str, role_management_policy_name: str, **kwargs: Any) -> RoleManagementPolicy
Parameters
Name | Description |
---|---|
scope
Required
|
The scope of the role management policy. Required. |
role_management_policy_name
Required
|
The name (guid) of the role management policy to get. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
RoleManagementPolicy or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_for_scope
Gets role management policies for a resource scope.
list_for_scope(scope: str, **kwargs: Any) -> Iterable[RoleManagementPolicy]
Parameters
Name | Description |
---|---|
scope
Required
|
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 RoleManagementPolicy or the result of cls(response) |
Exceptions
Type | Description |
---|---|
update
Update a role management policy.
update(scope: str, role_management_policy_name: str, parameters: _models.RoleManagementPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RoleManagementPolicy
Parameters
Name | Description |
---|---|
scope
Required
|
The scope of the role management policy to upsert. Required. |
role_management_policy_name
Required
|
The name (guid) of the role management policy to upsert. Required. |
parameters
Required
|
Parameters for the role management policy. Is either a RoleManagementPolicy type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
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 |
---|---|
RoleManagementPolicy or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.authorization.v2020_10_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\authorization\\v2020_10_01\\models\\__init__.py'>
Azure SDK for Python