AccessControlOperations Class
AccessControlOperations async 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.objectAccessControlOperations
Constructor
AccessControlOperations(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_role_assignment |
Create role assignment. |
| delete_role_assignment_by_id |
Delete role assignment by role assignment Id. |
| get_caller_role_assignments |
List role assignments of the caller. |
| get_role_assignment_by_id |
Get role assignment by role assignment Id. |
| get_role_assignments |
List role assignments. |
| get_role_definition_by_id |
Get role by role Id. |
| get_role_definitions |
List roles. |
create_role_assignment
Create role assignment.
async create_role_assignment(create_role_assignment_options: azure.synapse.accesscontrol.models._models_py3.RoleAssignmentOptions, **kwargs) -> azure.synapse.accesscontrol.models._models_py3.RoleAssignmentDetails
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
RoleAssignmentDetails, or the result of cls(response)
Return type
Exceptions
delete_role_assignment_by_id
Delete role assignment by role assignment Id.
async delete_role_assignment_by_id(role_assignment_id: str, **kwargs) -> 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_caller_role_assignments
List role assignments of the caller.
async get_caller_role_assignments(**kwargs) -> List[str]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
list of str, or the result of cls(response)
Return type
Exceptions
get_role_assignment_by_id
Get role assignment by role assignment Id.
async get_role_assignment_by_id(role_assignment_id: str, **kwargs) -> azure.synapse.accesscontrol.models._models_py3.RoleAssignmentDetails
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
RoleAssignmentDetails, or the result of cls(response)
Return type
Exceptions
get_role_assignments
List role assignments.
async get_role_assignments(role_id: Optional[str] = None, principal_id: Optional[str] = None, continuation_token_parameter: Optional[str] = None, **kwargs) -> List[azure.synapse.accesscontrol.models._models_py3.RoleAssignmentDetails]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
list of RoleAssignmentDetails, or the result of cls(response)
Return type
Exceptions
get_role_definition_by_id
Get role by role Id.
async get_role_definition_by_id(role_id: str, **kwargs) -> azure.synapse.accesscontrol.models._models_py3.SynapseRole
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SynapseRole, or the result of cls(response)
Return type
Exceptions
get_role_definitions
List roles.
get_role_definitions(**kwargs) -> AsyncIterable[azure.synapse.accesscontrol.models._models_py3.RolesListResponse]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RolesListResponse or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.synapse.accesscontrol.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\synapse\\accesscontrol\\models\\__init__.py'>
Feedback
Submit and view feedback for