Interface ClusterPools
public interface ClusterPools
Resource collection API of ClusterPools.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ClusterPool resource.voidDeletes a Cluster Pool.voiddeleteById(String id) Deletes a Cluster Pool.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a Cluster Pool.voiddeleteByResourceGroup(String resourceGroupName, String clusterPoolName) Deletes a Cluster Pool.Gets a cluster pool.com.azure.core.http.rest.Response<ClusterPool> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a cluster pool.getByResourceGroup(String resourceGroupName, String clusterPoolName) Gets a cluster pool.com.azure.core.http.rest.Response<ClusterPool> getByResourceGroupWithResponse(String resourceGroupName, String clusterPoolName, com.azure.core.util.Context context) Gets a cluster pool.com.azure.core.http.rest.PagedIterable<ClusterPool> list()Gets the list of Cluster Pools within a Subscription.com.azure.core.http.rest.PagedIterable<ClusterPool> list(com.azure.core.util.Context context) Gets the list of Cluster Pools within a Subscription.com.azure.core.http.rest.PagedIterable<ClusterPool> listByResourceGroup(String resourceGroupName) Lists the HDInsight cluster pools under a resource group.com.azure.core.http.rest.PagedIterable<ClusterPool> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists the HDInsight cluster pools under a resource group.upgrade(String resourceGroupName, String clusterPoolName, ClusterPoolUpgrade clusterPoolUpgradeRequest) Upgrade a cluster pool.upgrade(String resourceGroupName, String clusterPoolName, ClusterPoolUpgrade clusterPoolUpgradeRequest, com.azure.core.util.Context context) Upgrade a cluster pool.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ClusterPool> 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
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.
-
deleteByResourceGroup
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
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<ClusterPool> 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
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
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<ClusterPool> 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.
-
upgrade
ClusterPool 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
ClusterPool 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.
-
getById
Gets a cluster pool.- Parameters:
id- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<ClusterPool> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a cluster pool.- Parameters:
id- the resource ID.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.
-
deleteById
Deletes a Cluster Pool.- Parameters:
id- the resource ID.- 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.
-
deleteByIdWithResponse
Deletes a Cluster Pool.- Parameters:
id- the resource ID.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.
-
define
Begins definition for a new ClusterPool resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new ClusterPool definition.
-