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.objectRoleManagementPoliciesOperations
Constructor
RoleManagementPoliciesOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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
- 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
- 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
- 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
- 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'>
Feedback
Submit and view feedback for