public final class RoleDefinitionsClient extends Object
Modifier and Type | Method and Description |
---|---|
SynapseRoleDefinition |
getRoleDefinitionById(String roleDefinitionId)
Get role definition by role definition Id.
|
com.azure.core.http.rest.Response<SynapseRoleDefinition> |
getRoleDefinitionByIdWithResponse(String roleDefinitionId,
com.azure.core.util.Context context)
Get role definition by role definition Id.
|
List<SynapseRoleDefinition> |
listRoleDefinitions()
List role definitions.
|
List<SynapseRoleDefinition> |
listRoleDefinitions(Boolean isBuiltIn,
String scope)
List role definitions.
|
com.azure.core.http.rest.Response<List<SynapseRoleDefinition>> |
listRoleDefinitionsWithResponse(Boolean isBuiltIn,
String scope,
com.azure.core.util.Context context)
List role definitions.
|
List<String> |
listScopes()
List rbac scopes.
|
com.azure.core.http.rest.Response<List<String>> |
listScopesWithResponse(com.azure.core.util.Context context)
List rbac scopes.
|
public List<SynapseRoleDefinition> listRoleDefinitions(Boolean isBuiltIn, String scope)
isBuiltIn
- Is a Synapse Built-In Role or not.scope
- Scope of the Synapse Built-in Role.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.public List<SynapseRoleDefinition> listRoleDefinitions()
ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<List<SynapseRoleDefinition>> listRoleDefinitionsWithResponse(Boolean isBuiltIn, String scope, com.azure.core.util.Context context)
isBuiltIn
- Is a Synapse Built-In Role or not.scope
- Scope of the Synapse Built-in Role.context
- The context to associate with this operation.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.public SynapseRoleDefinition getRoleDefinitionById(String roleDefinitionId)
roleDefinitionId
- Synapse Built-In Role Definition Id.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.public com.azure.core.http.rest.Response<SynapseRoleDefinition> getRoleDefinitionByIdWithResponse(String roleDefinitionId, com.azure.core.util.Context context)
roleDefinitionId
- Synapse Built-In Role Definition Id.context
- The context to associate with this operation.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.public List<String> listScopes()
ErrorContractException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<List<String>> listScopesWithResponse(com.azure.core.util.Context context)
context
- The context to associate with this operation.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.Copyright © 2021 Microsoft Corporation. All rights reserved.