Interface ResourcePools
public interface ResourcePools
Resource collection API of ResourcePools.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new ResourcePool resource.void
Deletes an resourcePool.void
Deletes an resourcePool.void
delete
(String resourceGroupName, String resourcePoolName, Boolean force, com.azure.core.util.Context context) Deletes an resourcePool.void
deleteById
(String id) Deletes an resourcePool.void
deleteByIdWithResponse
(String id, Boolean force, com.azure.core.util.Context context) Deletes an resourcePool.Gets a resourcePool.com.azure.core.http.rest.Response<ResourcePool>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a resourcePool.getByResourceGroup
(String resourceGroupName, String resourcePoolName) Gets a resourcePool.com.azure.core.http.rest.Response<ResourcePool>
getByResourceGroupWithResponse
(String resourceGroupName, String resourcePoolName, com.azure.core.util.Context context) Gets a resourcePool.com.azure.core.http.rest.PagedIterable<ResourcePool>
list()
Implements GET resourcePools in a subscription.com.azure.core.http.rest.PagedIterable<ResourcePool>
list
(com.azure.core.util.Context context) Implements GET resourcePools in a subscription.com.azure.core.http.rest.PagedIterable<ResourcePool>
listByResourceGroup
(String resourceGroupName) Implements GET resourcePools in a resource group.com.azure.core.http.rest.PagedIterable<ResourcePool>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Implements GET resourcePools in a resource group.
-
Method Details
-
getByResourceGroup
Gets a resourcePool.Implements resourcePool GET method.
- Parameters:
resourceGroupName
- The Resource Group Name.resourcePoolName
- Name of the resourcePool.- Returns:
- define the resourcePool.
- 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<ResourcePool> getByResourceGroupWithResponse(String resourceGroupName, String resourcePoolName, com.azure.core.util.Context context) Gets a resourcePool.Implements resourcePool GET method.
- Parameters:
resourceGroupName
- The Resource Group Name.resourcePoolName
- Name of the resourcePool.context
- The context to associate with this operation.- Returns:
- define the resourcePool 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.
-
delete
Deletes an resourcePool.Implements resourcePool DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.resourcePoolName
- Name of the resourcePool.force
- Whether force delete was specified.- 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 an resourcePool.Implements resourcePool DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.resourcePoolName
- Name of the resourcePool.- 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 resourcePoolName, Boolean force, com.azure.core.util.Context context) Deletes an resourcePool.Implements resourcePool DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.resourcePoolName
- Name of the resourcePool.force
- Whether force delete was specified.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<ResourcePool> list()Implements GET resourcePools in a subscription.List of resourcePools in a subscription.
- Returns:
- list of ResourcePools 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
Implements GET resourcePools in a subscription.List of resourcePools in a subscription.
- Parameters:
context
- The context to associate with this operation.- Returns:
- list of ResourcePools 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
Implements GET resourcePools in a resource group.List of resourcePools in a resource group.
- Parameters:
resourceGroupName
- The Resource Group Name.- Returns:
- list of ResourcePools 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<ResourcePool> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Implements GET resourcePools in a resource group.List of resourcePools in a resource group.
- Parameters:
resourceGroupName
- The Resource Group Name.context
- The context to associate with this operation.- Returns:
- list of ResourcePools 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.
-
getById
Gets a resourcePool.Implements resourcePool GET method.
- Parameters:
id
- the resource ID.- Returns:
- define the resourcePool 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<ResourcePool> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a resourcePool.Implements resourcePool GET method.
- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- define the resourcePool 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 an resourcePool.Implements resourcePool DELETE method.
- 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 an resourcePool.Implements resourcePool DELETE method.
- Parameters:
id
- the resource ID.force
- Whether force delete was specified.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 ResourcePool resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new ResourcePool definition.
-