Interface RoleManagementPoliciesClient

All Superinterfaces:
InnerSupportsDelete<Void>

public interface RoleManagementPoliciesClient extends InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in RoleManagementPoliciesClient.
  • Method Details

    • getWithResponseAsync

      Mono<com.azure.core.http.rest.Response<RoleManagementPolicyInner>> getWithResponseAsync(String scope, String roleManagementPolicyName)
      Get the specified role management policy for a resource scope.
      Parameters:
      scope - The scope of the role management policy.
      roleManagementPolicyName - The name (guid) of the role management policy to get.
      Returns:
      the specified role management policy for a resource scope along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getAsync

      Mono<RoleManagementPolicyInner> getAsync(String scope, String roleManagementPolicyName)
      Get the specified role management policy for a resource scope.
      Parameters:
      scope - The scope of the role management policy.
      roleManagementPolicyName - The name (guid) of the role management policy to get.
      Returns:
      the specified role management policy for a resource scope on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • getWithResponse

      com.azure.core.http.rest.Response<RoleManagementPolicyInner> getWithResponse(String scope, String roleManagementPolicyName, com.azure.core.util.Context context)
      Get the specified role management policy for a resource scope.
      Parameters:
      scope - The scope of the role management policy.
      roleManagementPolicyName - The name (guid) of the role management policy to get.
      context - The context to associate with this operation.
      Returns:
      the specified role management policy for a resource scope along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • get

      RoleManagementPolicyInner get(String scope, String roleManagementPolicyName)
      Get the specified role management policy for a resource scope.
      Parameters:
      scope - The scope of the role management policy.
      roleManagementPolicyName - The name (guid) of the role management policy to get.
      Returns:
      the specified role management policy for a resource scope.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponseAsync

      Mono<com.azure.core.http.rest.Response<RoleManagementPolicyInner>> updateWithResponseAsync(String scope, String roleManagementPolicyName, RoleManagementPolicyInner parameters)
      Update a role management policy.
      Parameters:
      scope - The scope of the role management policy to upsert.
      roleManagementPolicyName - The name (guid) of the role management policy to upsert.
      parameters - Parameters for the role management policy.
      Returns:
      role management policy along with Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateAsync

      Mono<RoleManagementPolicyInner> updateAsync(String scope, String roleManagementPolicyName, RoleManagementPolicyInner parameters)
      Update a role management policy.
      Parameters:
      scope - The scope of the role management policy to upsert.
      roleManagementPolicyName - The name (guid) of the role management policy to upsert.
      parameters - Parameters for the role management policy.
      Returns:
      role management policy on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • updateWithResponse

      com.azure.core.http.rest.Response<RoleManagementPolicyInner> updateWithResponse(String scope, String roleManagementPolicyName, RoleManagementPolicyInner parameters, com.azure.core.util.Context context)
      Update a role management policy.
      Parameters:
      scope - The scope of the role management policy to upsert.
      roleManagementPolicyName - The name (guid) of the role management policy to upsert.
      parameters - Parameters for the role management policy.
      context - The context to associate with this operation.
      Returns:
      role management policy along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      RoleManagementPolicyInner update(String scope, String roleManagementPolicyName, RoleManagementPolicyInner parameters)
      Update a role management policy.
      Parameters:
      scope - The scope of the role management policy to upsert.
      roleManagementPolicyName - The name (guid) of the role management policy to upsert.
      parameters - Parameters for the role management policy.
      Returns:
      role management policy.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponseAsync

      Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String scope, String roleManagementPolicyName)
      Delete a role management policy.
      Parameters:
      scope - The scope of the role management policy to upsert.
      roleManagementPolicyName - The name (guid) of the role management policy to upsert.
      Returns:
      the Response on successful completion of Mono.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteAsync

      Mono<Void> deleteAsync(String scope, String roleManagementPolicyName)
      Delete a role management policy.
      Specified by:
      deleteAsync in interface InnerSupportsDelete<Void>
      Parameters:
      scope - The scope of the role management policy to upsert.
      roleManagementPolicyName - The name (guid) of the role management policy to upsert.
      Returns:
      A Mono that completes when a successful response is received.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • deleteWithResponse

      com.azure.core.http.rest.Response<Void> deleteWithResponse(String scope, String roleManagementPolicyName, com.azure.core.util.Context context)
      Delete a role management policy.
      Parameters:
      scope - The scope of the role management policy to upsert.
      roleManagementPolicyName - The name (guid) of the role management policy to upsert.
      context - The context to associate with this operation.
      Returns:
      the Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • delete

      void delete(String scope, String roleManagementPolicyName)
      Delete a role management policy.
      Parameters:
      scope - The scope of the role management policy to upsert.
      roleManagementPolicyName - The name (guid) of the role management policy to upsert.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listForScopeAsync

      com.azure.core.http.rest.PagedFlux<RoleManagementPolicyInner> listForScopeAsync(String scope)
      Gets role management policies for a resource scope.
      Parameters:
      scope - The scope of the role management policy.
      Returns:
      role management policies for a resource scope as paginated response with PagedFlux.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listForScope

      com.azure.core.http.rest.PagedIterable<RoleManagementPolicyInner> listForScope(String scope)
      Gets role management policies for a resource scope.
      Parameters:
      scope - The scope of the role management policy.
      Returns:
      role management policies for a resource scope as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • listForScope

      com.azure.core.http.rest.PagedIterable<RoleManagementPolicyInner> listForScope(String scope, com.azure.core.util.Context context)
      Gets role management policies for a resource scope.
      Parameters:
      scope - The scope of the role management policy.
      context - The context to associate with this operation.
      Returns:
      role management policies for a resource scope as paginated response with PagedIterable.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.