Class RoleDefinitionsAsyncClient
java.lang.Object
com.azure.analytics.synapse.accesscontrol.RoleDefinitionsAsyncClient
Initializes a new instance of the asynchronous AccessControlClient type.
-
Method Summary
Modifier and TypeMethodDescriptiongetRoleDefinitionById
(String roleDefinitionId) Get role definition by role definition Id.getRoleDefinitionByIdWithResponse
(String roleDefinitionId) Get role definition by role definition Id.List role definitions.listRoleDefinitions
(Boolean isBuiltIn, String scope) List role definitions.listRoleDefinitionsWithResponse
(Boolean isBuiltIn, String scope) List role definitions.List rbac scopes.List rbac scopes.
-
Method Details
-
listRoleDefinitionsWithResponse
public Mono<Response<List<SynapseRoleDefinition>>> listRoleDefinitionsWithResponse(Boolean isBuiltIn, String scope) List role definitions.- Parameters:
isBuiltIn
- Is a Synapse Built-In Role or not.scope
- Scope of the Synapse Built-in Role.- Returns:
- a list of Synapse roles available.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listRoleDefinitions
List role definitions.- Parameters:
isBuiltIn
- Is a Synapse Built-In Role or not.scope
- Scope of the Synapse Built-in Role.- Returns:
- a list of Synapse roles available.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listRoleDefinitions
List role definitions.- Returns:
- a list of Synapse roles available.
- Throws:
ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getRoleDefinitionByIdWithResponse
public Mono<Response<SynapseRoleDefinition>> getRoleDefinitionByIdWithResponse(String roleDefinitionId) Get role definition by role definition Id.- Parameters:
roleDefinitionId
- Synapse Built-In Role Definition Id.- Returns:
- role definition by role definition Id.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getRoleDefinitionById
Get role definition by role definition Id.- Parameters:
roleDefinitionId
- Synapse Built-In Role Definition Id.- Returns:
- role definition by role definition Id.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listScopesWithResponse
List rbac scopes.- Returns:
- a list of Synapse rbac scopes available.
- Throws:
ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listScopes
List rbac scopes.- Returns:
- a list of Synapse rbac scopes available.
- Throws:
ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-