Interface RoleAssignmentsClient


public interface RoleAssignmentsClient
An instance of this class provides access to all the operations defined in RoleAssignmentsClient.
  • Method Details

    • listByHub

      com.azure.core.http.rest.PagedIterable<RoleAssignmentResourceFormatInner> listByHub(String resourceGroupName, String hubName)
      Gets all the role assignments for the specified hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      Returns:
      all the role assignments for the specified hub 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.
    • listByHub

      com.azure.core.http.rest.PagedIterable<RoleAssignmentResourceFormatInner> listByHub(String resourceGroupName, String hubName, com.azure.core.util.Context context)
      Gets all the role assignments for the specified hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      context - The context to associate with this operation.
      Returns:
      all the role assignments for the specified hub 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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RoleAssignmentResourceFormatInner>,RoleAssignmentResourceFormatInner> beginCreateOrUpdate(String resourceGroupName, String hubName, String assignmentName, RoleAssignmentResourceFormatInner parameters)
      Creates or updates a role assignment in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      assignmentName - The assignment name.
      parameters - Parameters supplied to the CreateOrUpdate RoleAssignment operation.
      Returns:
      the SyncPoller for polling of the Role Assignment resource format.
      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.
    • beginCreateOrUpdate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<RoleAssignmentResourceFormatInner>,RoleAssignmentResourceFormatInner> beginCreateOrUpdate(String resourceGroupName, String hubName, String assignmentName, RoleAssignmentResourceFormatInner parameters, com.azure.core.util.Context context)
      Creates or updates a role assignment in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      assignmentName - The assignment name.
      parameters - Parameters supplied to the CreateOrUpdate RoleAssignment operation.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of the Role Assignment resource format.
      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.
    • createOrUpdate

      RoleAssignmentResourceFormatInner createOrUpdate(String resourceGroupName, String hubName, String assignmentName, RoleAssignmentResourceFormatInner parameters)
      Creates or updates a role assignment in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      assignmentName - The assignment name.
      parameters - Parameters supplied to the CreateOrUpdate RoleAssignment operation.
      Returns:
      the Role Assignment resource format.
      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.
    • createOrUpdate

      RoleAssignmentResourceFormatInner createOrUpdate(String resourceGroupName, String hubName, String assignmentName, RoleAssignmentResourceFormatInner parameters, com.azure.core.util.Context context)
      Creates or updates a role assignment in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      assignmentName - The assignment name.
      parameters - Parameters supplied to the CreateOrUpdate RoleAssignment operation.
      context - The context to associate with this operation.
      Returns:
      the Role Assignment resource format.
      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<RoleAssignmentResourceFormatInner> getWithResponse(String resourceGroupName, String hubName, String assignmentName, com.azure.core.util.Context context)
      Gets the role assignment in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      assignmentName - The name of the role assignment.
      context - The context to associate with this operation.
      Returns:
      the role assignment in the hub 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

      RoleAssignmentResourceFormatInner get(String resourceGroupName, String hubName, String assignmentName)
      Gets the role assignment in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      assignmentName - The name of the role assignment.
      Returns:
      the role assignment in the hub.
      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 resourceGroupName, String hubName, String assignmentName, com.azure.core.util.Context context)
      Deletes the role assignment in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      assignmentName - The name of the role assignment.
      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 resourceGroupName, String hubName, String assignmentName)
      Deletes the role assignment in the hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      assignmentName - The name of the role assignment.
      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.