Class RoleDefinitionsAsyncClient

java.lang.Object
com.azure.analytics.synapse.accesscontrol.RoleDefinitionsAsyncClient

public final class RoleDefinitionsAsyncClient extends Object
Initializes a new instance of the asynchronous AccessControlClient type.
  • 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

      public Mono<List<SynapseRoleDefinition>> listRoleDefinitions(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

      public Mono<List<SynapseRoleDefinition>> 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

      public Mono<SynapseRoleDefinition> getRoleDefinitionById(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.
    • listScopesWithResponse

      public Mono<Response<List<String>>> 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

      public Mono<List<String>> 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.