Interface ClusterPoolsClient


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

    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<ClusterPoolInner> getByResourceGroupWithResponse(String resourceGroupName, String clusterPoolName, com.azure.core.util.Context context)
      Gets a cluster pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      context - The context to associate with this operation.
      Returns:
      a cluster pool 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

      ClusterPoolInner getByResourceGroup(String resourceGroupName, String clusterPoolName)
      Gets a cluster pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      Returns:
      a cluster pool.
      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<ClusterPoolInner>, ClusterPoolInner> beginCreateOrUpdate(String resourceGroupName, String clusterPoolName, ClusterPoolInner clusterPool)
      Creates or updates a cluster pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      clusterPool - The Cluster Pool to create.
      Returns:
      the SyncPoller for polling of cluster pool.
      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<ClusterPoolInner>, ClusterPoolInner> beginCreateOrUpdate(String resourceGroupName, String clusterPoolName, ClusterPoolInner clusterPool, com.azure.core.util.Context context)
      Creates or updates a cluster pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      clusterPool - The Cluster Pool to create.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of cluster pool.
      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

      ClusterPoolInner createOrUpdate(String resourceGroupName, String clusterPoolName, ClusterPoolInner clusterPool)
      Creates or updates a cluster pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      clusterPool - The Cluster Pool to create.
      Returns:
      cluster pool.
      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

      ClusterPoolInner createOrUpdate(String resourceGroupName, String clusterPoolName, ClusterPoolInner clusterPool, com.azure.core.util.Context context)
      Creates or updates a cluster pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      clusterPool - The Cluster Pool to create.
      context - The context to associate with this operation.
      Returns:
      cluster pool.
      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.
    • beginUpdateTags

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ClusterPoolInner>, ClusterPoolInner> beginUpdateTags(String resourceGroupName, String clusterPoolName, TagsObject clusterPoolTags)
      Updates an existing Cluster Pool Tags.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      clusterPoolTags - Parameters supplied to update tags.
      Returns:
      the SyncPoller for polling of cluster pool.
      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.
    • beginUpdateTags

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ClusterPoolInner>, ClusterPoolInner> beginUpdateTags(String resourceGroupName, String clusterPoolName, TagsObject clusterPoolTags, com.azure.core.util.Context context)
      Updates an existing Cluster Pool Tags.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      clusterPoolTags - Parameters supplied to update tags.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of cluster pool.
      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.
    • updateTags

      ClusterPoolInner updateTags(String resourceGroupName, String clusterPoolName, TagsObject clusterPoolTags)
      Updates an existing Cluster Pool Tags.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      clusterPoolTags - Parameters supplied to update tags.
      Returns:
      cluster pool.
      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.
    • updateTags

      ClusterPoolInner updateTags(String resourceGroupName, String clusterPoolName, TagsObject clusterPoolTags, com.azure.core.util.Context context)
      Updates an existing Cluster Pool Tags.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      clusterPoolTags - Parameters supplied to update tags.
      context - The context to associate with this operation.
      Returns:
      cluster pool.
      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 clusterPoolName)
      Deletes a Cluster Pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      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 clusterPoolName, com.azure.core.util.Context context)
      Deletes a Cluster Pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      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 clusterPoolName)
      Deletes a Cluster Pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      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 clusterPoolName, com.azure.core.util.Context context)
      Deletes a Cluster Pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      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.
    • list

      com.azure.core.http.rest.PagedIterable<ClusterPoolInner> list()
      Gets the list of Cluster Pools within a Subscription.
      Returns:
      the list of Cluster Pools within a 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<ClusterPoolInner> list(com.azure.core.util.Context context)
      Gets the list of Cluster Pools within a Subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the list of Cluster Pools within a 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<ClusterPoolInner> listByResourceGroup(String resourceGroupName)
      Lists the HDInsight cluster pools under a resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      the list cluster pools operation response 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<ClusterPoolInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Lists the HDInsight cluster pools under a resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      the list cluster pools operation response 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.
    • beginUpgrade

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ClusterPoolInner>, ClusterPoolInner> beginUpgrade(String resourceGroupName, String clusterPoolName, ClusterPoolUpgrade clusterPoolUpgradeRequest)
      Upgrade a cluster pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      clusterPoolUpgradeRequest - Upgrade a cluster pool.
      Returns:
      the SyncPoller for polling of cluster pool.
      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.
    • beginUpgrade

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ClusterPoolInner>, ClusterPoolInner> beginUpgrade(String resourceGroupName, String clusterPoolName, ClusterPoolUpgrade clusterPoolUpgradeRequest, com.azure.core.util.Context context)
      Upgrade a cluster pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      clusterPoolUpgradeRequest - Upgrade a cluster pool.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of cluster pool.
      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.
    • upgrade

      ClusterPoolInner upgrade(String resourceGroupName, String clusterPoolName, ClusterPoolUpgrade clusterPoolUpgradeRequest)
      Upgrade a cluster pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      clusterPoolUpgradeRequest - Upgrade a cluster pool.
      Returns:
      cluster pool.
      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.
    • upgrade

      ClusterPoolInner upgrade(String resourceGroupName, String clusterPoolName, ClusterPoolUpgrade clusterPoolUpgradeRequest, com.azure.core.util.Context context)
      Upgrade a cluster pool.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      clusterPoolName - The name of the cluster pool.
      clusterPoolUpgradeRequest - Upgrade a cluster pool.
      context - The context to associate with this operation.
      Returns:
      cluster pool.
      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.