Interface ResourcePoolsClient
public interface ResourcePoolsClient
An instance of this class provides access to all the operations defined in ResourcePoolsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ResourcePoolInner>,
ResourcePoolInner> beginCreate
(String resourceGroupName, String resourcePoolName, ResourcePoolInner body) Implements resourcePool PUT method.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ResourcePoolInner>,
ResourcePoolInner> beginCreate
(String resourceGroupName, String resourcePoolName, ResourcePoolInner body, com.azure.core.util.Context context) Implements resourcePool PUT method.beginDelete
(String resourceGroupName, String resourcePoolName, Boolean force) Deletes an resourcePool.beginDelete
(String resourceGroupName, String resourcePoolName, Boolean force, com.azure.core.util.Context context) Deletes an resourcePool.Implements resourcePool PUT method.create
(String resourceGroupName, String resourcePoolName, ResourcePoolInner body) Implements resourcePool PUT method.create
(String resourceGroupName, String resourcePoolName, ResourcePoolInner body, com.azure.core.util.Context context) Implements resourcePool PUT method.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.getByResourceGroup
(String resourceGroupName, String resourcePoolName) Gets a resourcePool.com.azure.core.http.rest.Response<ResourcePoolInner>
getByResourceGroupWithResponse
(String resourceGroupName, String resourcePoolName, com.azure.core.util.Context context) Gets a resourcePool.com.azure.core.http.rest.PagedIterable<ResourcePoolInner>
list()
Implements GET resourcePools in a subscription.com.azure.core.http.rest.PagedIterable<ResourcePoolInner>
list
(com.azure.core.util.Context context) Implements GET resourcePools in a subscription.com.azure.core.http.rest.PagedIterable<ResourcePoolInner>
listByResourceGroup
(String resourceGroupName) Implements GET resourcePools in a resource group.com.azure.core.http.rest.PagedIterable<ResourcePoolInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Implements GET resourcePools in a resource group.Updates a resourcePool.com.azure.core.http.rest.Response<ResourcePoolInner>
updateWithResponse
(String resourceGroupName, String resourcePoolName, ResourcePatch body, com.azure.core.util.Context context) Updates a resourcePool.
-
Method Details
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ResourcePoolInner>,ResourcePoolInner> beginCreate(String resourceGroupName, String resourcePoolName, ResourcePoolInner body) Implements resourcePool PUT method.Create Or Update resourcePool.
- Parameters:
resourceGroupName
- The Resource Group Name.resourcePoolName
- Name of the resourcePool.body
- Request payload.- Returns:
- the
SyncPoller
for polling of 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ResourcePoolInner>,ResourcePoolInner> beginCreate(String resourceGroupName, String resourcePoolName, ResourcePoolInner body, com.azure.core.util.Context context) Implements resourcePool PUT method.Create Or Update resourcePool.
- Parameters:
resourceGroupName
- The Resource Group Name.resourcePoolName
- Name of the resourcePool.body
- Request payload.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of 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.
-
create
Implements resourcePool PUT method.Create Or Update resourcePool.
- Parameters:
resourceGroupName
- The Resource Group Name.resourcePoolName
- Name of the resourcePool.body
- Request payload.- 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.
-
create
Implements resourcePool PUT method.Create Or Update resourcePool.
- 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.
-
create
ResourcePoolInner create(String resourceGroupName, String resourcePoolName, ResourcePoolInner body, com.azure.core.util.Context context) Implements resourcePool PUT method.Create Or Update resourcePool.
- Parameters:
resourceGroupName
- The Resource Group Name.resourcePoolName
- Name of the resourcePool.body
- Request payload.context
- The context to associate with this operation.- 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.
-
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<ResourcePoolInner> 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.
-
update
Updates a resourcePool.API to update certain properties of the resourcePool resource.
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<ResourcePoolInner> updateWithResponse(String resourceGroupName, String resourcePoolName, ResourcePatch body, com.azure.core.util.Context context) Updates a resourcePool.API to update certain properties of the resourcePool resource.
- Parameters:
resourceGroupName
- The Resource Group Name.resourcePoolName
- Name of the resourcePool.body
- Resource properties to update.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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String resourcePoolName, Boolean force) Deletes an resourcePool.Implements resourcePool DELETE method.
- Parameters:
resourceGroupName
- The Resource Group Name.resourcePoolName
- Name of the resourcePool.force
- Whether force delete was specified.- 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 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.- 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
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<ResourcePoolInner> 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
com.azure.core.http.rest.PagedIterable<ResourcePoolInner> listByResourceGroup(String resourceGroupName) 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<ResourcePoolInner> 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.
-