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.objectRoleManagementPolicyAssignmentsOperations
Constructor
RoleManagementPolicyAssignmentsOperations(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
| 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
- role_management_policy_assignment_name
- str
The name of format {guid_guid} the role management policy assignment to upsert.
- parameters
- RoleManagementPolicyAssignment
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
- role_management_policy_assignment_name
- str
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
- role_management_policy_assignment_name
- str
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
- 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'>
Feedback
Submit and view feedback for