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

    • createOrUpdateWithResponse

      com.azure.core.http.rest.Response<HubInner> createOrUpdateWithResponse(String resourceGroupName, String hubName, HubInner parameters, com.azure.core.util.Context context)
      Creates a hub, or updates an existing hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the Hub.
      parameters - Parameters supplied to the CreateOrUpdate Hub operation.
      context - The context to associate with this operation.
      Returns:
      hub resource 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.
    • createOrUpdate

      HubInner createOrUpdate(String resourceGroupName, String hubName, HubInner parameters)
      Creates a hub, or updates an existing hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the Hub.
      parameters - Parameters supplied to the CreateOrUpdate Hub operation.
      Returns:
      hub resource.
      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<HubInner> updateWithResponse(String resourceGroupName, String hubName, HubInner parameters, com.azure.core.util.Context context)
      Updates a Hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the Hub.
      parameters - Parameters supplied to the Update Hub operation.
      context - The context to associate with this operation.
      Returns:
      hub resource 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

      HubInner update(String resourceGroupName, String hubName, HubInner parameters)
      Updates a Hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the Hub.
      parameters - Parameters supplied to the Update Hub operation.
      Returns:
      hub resource.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String hubName)
      Deletes the specified hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String hubName, com.azure.core.util.Context context)
      Deletes 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:
      the SyncPoller for polling of long-running operation.
      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)
      Deletes the specified hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of 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.
    • delete

      void delete(String resourceGroupName, String hubName, com.azure.core.util.Context context)
      Deletes 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.
      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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<HubInner> getByResourceGroupWithResponse(String resourceGroupName, String hubName, com.azure.core.util.Context context)
      Gets information about 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:
      information about the specified 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.
    • getByResourceGroup

      HubInner getByResourceGroup(String resourceGroupName, String hubName)
      Gets information about the specified hub.
      Parameters:
      resourceGroupName - The name of the resource group.
      hubName - The name of the hub.
      Returns:
      information about the specified 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<HubInner> listByResourceGroup(String resourceGroupName)
      Gets all the hubs in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      Returns:
      all the hubs in a resource group 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<HubInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Gets all the hubs in a resource group.
      Parameters:
      resourceGroupName - The name of the resource group.
      context - The context to associate with this operation.
      Returns:
      all the hubs in a resource group 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.
    • list

      com.azure.core.http.rest.PagedIterable<HubInner> list()
      Gets all hubs in the specified subscription.
      Returns:
      all hubs in the specified subscription as paginated response with PagedIterable.
      Throws:
      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.
    • list

      com.azure.core.http.rest.PagedIterable<HubInner> list(com.azure.core.util.Context context)
      Gets all hubs in the specified subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      all hubs in the specified subscription 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.