Interface InstancePoolsClient
-
- All Superinterfaces:
InnerSupportsDelete<Void>,InnerSupportsGet<InstancePoolInner>,InnerSupportsListing<InstancePoolInner>
public interface InstancePoolsClient extends InnerSupportsGet<InstancePoolInner>, InnerSupportsListing<InstancePoolInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in InstancePoolsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<InstancePoolInner>,InstancePoolInner>beginCreateOrUpdate(String resourceGroupName, String instancePoolName, InstancePoolInner parameters)Creates or updates an instance pool.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<InstancePoolInner>,InstancePoolInner>beginCreateOrUpdate(String resourceGroupName, String instancePoolName, InstancePoolInner parameters, com.azure.core.util.Context context)Creates or updates an instance pool.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<InstancePoolInner>,InstancePoolInner>beginCreateOrUpdateAsync(String resourceGroupName, String instancePoolName, InstancePoolInner parameters)Creates or updates an instance pool.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginDelete(String resourceGroupName, String instancePoolName)Deletes an instance pool.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void>beginDelete(String resourceGroupName, String instancePoolName, com.azure.core.util.Context context)Deletes an instance pool.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void>beginDeleteAsync(String resourceGroupName, String instancePoolName)Deletes an instance pool.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<InstancePoolInner>,InstancePoolInner>beginUpdate(String resourceGroupName, String instancePoolName, Map<String,String> tags)Updates an instance pool.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<InstancePoolInner>,InstancePoolInner>beginUpdate(String resourceGroupName, String instancePoolName, Map<String,String> tags, com.azure.core.util.Context context)Updates an instance pool.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<InstancePoolInner>,InstancePoolInner>beginUpdateAsync(String resourceGroupName, String instancePoolName, Map<String,String> tags)Updates an instance pool.InstancePoolInnercreateOrUpdate(String resourceGroupName, String instancePoolName, InstancePoolInner parameters)Creates or updates an instance pool.InstancePoolInnercreateOrUpdate(String resourceGroupName, String instancePoolName, InstancePoolInner parameters, com.azure.core.util.Context context)Creates or updates an instance pool.Mono<InstancePoolInner>createOrUpdateAsync(String resourceGroupName, String instancePoolName, InstancePoolInner parameters)Creates or updates an instance pool.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>createOrUpdateWithResponseAsync(String resourceGroupName, String instancePoolName, InstancePoolInner parameters)Creates or updates an instance pool.voiddelete(String resourceGroupName, String instancePoolName)Deletes an instance pool.voiddelete(String resourceGroupName, String instancePoolName, com.azure.core.util.Context context)Deletes an instance pool.Mono<Void>deleteAsync(String resourceGroupName, String instancePoolName)Deletes an instance pool.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>deleteWithResponseAsync(String resourceGroupName, String instancePoolName)Deletes an instance pool.InstancePoolInnergetByResourceGroup(String resourceGroupName, String instancePoolName)Gets an instance pool.Mono<InstancePoolInner>getByResourceGroupAsync(String resourceGroupName, String instancePoolName)Gets an instance pool.com.azure.core.http.rest.Response<InstancePoolInner>getByResourceGroupWithResponse(String resourceGroupName, String instancePoolName, com.azure.core.util.Context context)Gets an instance pool.Mono<com.azure.core.http.rest.Response<InstancePoolInner>>getByResourceGroupWithResponseAsync(String resourceGroupName, String instancePoolName)Gets an instance pool.com.azure.core.http.rest.PagedIterable<InstancePoolInner>list()Gets a list of all instance pools in the subscription.com.azure.core.http.rest.PagedIterable<InstancePoolInner>list(com.azure.core.util.Context context)Gets a list of all instance pools in the subscription.com.azure.core.http.rest.PagedFlux<InstancePoolInner>listAsync()Gets a list of all instance pools in the subscription.com.azure.core.http.rest.PagedIterable<InstancePoolInner>listByResourceGroup(String resourceGroupName)Gets a list of instance pools in the resource group.com.azure.core.http.rest.PagedIterable<InstancePoolInner>listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)Gets a list of instance pools in the resource group.com.azure.core.http.rest.PagedFlux<InstancePoolInner>listByResourceGroupAsync(String resourceGroupName)Gets a list of instance pools in the resource group.InstancePoolInnerupdate(String resourceGroupName, String instancePoolName)Updates an instance pool.InstancePoolInnerupdate(String resourceGroupName, String instancePoolName, Map<String,String> tags)Updates an instance pool.InstancePoolInnerupdate(String resourceGroupName, String instancePoolName, Map<String,String> tags, com.azure.core.util.Context context)Updates an instance pool.Mono<InstancePoolInner>updateAsync(String resourceGroupName, String instancePoolName)Updates an instance pool.Mono<InstancePoolInner>updateAsync(String resourceGroupName, String instancePoolName, Map<String,String> tags)Updates an instance pool.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>updateWithResponseAsync(String resourceGroupName, String instancePoolName, Map<String,String> tags)Updates an instance pool.
-
-
-
Method Detail
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<InstancePoolInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String instancePoolName)
Gets an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be retrieved.- Returns:
- an instance 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.
-
getByResourceGroupAsync
Mono<InstancePoolInner> getByResourceGroupAsync(String resourceGroupName, String instancePoolName)
Gets an instance pool.- Specified by:
getByResourceGroupAsyncin interfaceInnerSupportsGet<InstancePoolInner>- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be retrieved.- Returns:
- an instance 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.
-
getByResourceGroup
InstancePoolInner getByResourceGroup(String resourceGroupName, String instancePoolName)
Gets an instance pool.- Specified by:
getByResourceGroupin interfaceInnerSupportsGet<InstancePoolInner>- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be retrieved.- Returns:
- an instance 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<InstancePoolInner> getByResourceGroupWithResponse(String resourceGroupName, String instancePoolName, com.azure.core.util.Context context)
Gets an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be retrieved.context- The context to associate with this operation.- Returns:
- an instance 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.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String instancePoolName, InstancePoolInner parameters)
Creates or updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be created or updated.parameters- An Azure SQL instance pool.- Returns:
- an Azure SQL instance 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.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<InstancePoolInner>,InstancePoolInner> beginCreateOrUpdateAsync(String resourceGroupName, String instancePoolName, InstancePoolInner parameters)
Creates or updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be created or updated.parameters- An Azure SQL instance pool.- Returns:
- an Azure SQL instance 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<InstancePoolInner>,InstancePoolInner> beginCreateOrUpdate(String resourceGroupName, String instancePoolName, InstancePoolInner parameters)
Creates or updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be created or updated.parameters- An Azure SQL instance pool.- Returns:
- an Azure SQL instance 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<InstancePoolInner>,InstancePoolInner> beginCreateOrUpdate(String resourceGroupName, String instancePoolName, InstancePoolInner parameters, com.azure.core.util.Context context)
Creates or updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be created or updated.parameters- An Azure SQL instance pool.context- The context to associate with this operation.- Returns:
- an Azure SQL instance 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.
-
createOrUpdateAsync
Mono<InstancePoolInner> createOrUpdateAsync(String resourceGroupName, String instancePoolName, InstancePoolInner parameters)
Creates or updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be created or updated.parameters- An Azure SQL instance pool.- Returns:
- an Azure SQL instance 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
InstancePoolInner createOrUpdate(String resourceGroupName, String instancePoolName, InstancePoolInner parameters)
Creates or updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be created or updated.parameters- An Azure SQL instance pool.- Returns:
- an Azure SQL instance 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
InstancePoolInner createOrUpdate(String resourceGroupName, String instancePoolName, InstancePoolInner parameters, com.azure.core.util.Context context)
Creates or updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be created or updated.parameters- An Azure SQL instance pool.context- The context to associate with this operation.- Returns:
- an Azure SQL instance 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String instancePoolName)
Deletes an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be deleted.- Returns:
- the completion.
- 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.
-
beginDeleteAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,Void> beginDeleteAsync(String resourceGroupName, String instancePoolName)
Deletes an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be deleted.- Returns:
- the completion.
- 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 instancePoolName)
Deletes an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be deleted.- Returns:
- the completion.
- 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 instancePoolName, com.azure.core.util.Context context)
Deletes an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be deleted.context- The context to associate with this operation.- Returns:
- the completion.
- 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.
-
deleteAsync
Mono<Void> deleteAsync(String resourceGroupName, String instancePoolName)
Deletes an instance pool.- Specified by:
deleteAsyncin interfaceInnerSupportsDelete<Void>- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be deleted.- Returns:
- the completion.
- 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 instancePoolName)
Deletes an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be deleted.- 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 instancePoolName, com.azure.core.util.Context context)
Deletes an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be deleted.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.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String instancePoolName, Map<String,String> tags)
Updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be updated.tags- Resource tags.- Returns:
- an Azure SQL instance 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.
-
beginUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<InstancePoolInner>,InstancePoolInner> beginUpdateAsync(String resourceGroupName, String instancePoolName, Map<String,String> tags)
Updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be updated.tags- Resource tags.- Returns:
- an Azure SQL instance 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<InstancePoolInner>,InstancePoolInner> beginUpdate(String resourceGroupName, String instancePoolName, Map<String,String> tags)
Updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be updated.tags- Resource tags.- Returns:
- an Azure SQL instance 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<InstancePoolInner>,InstancePoolInner> beginUpdate(String resourceGroupName, String instancePoolName, Map<String,String> tags, com.azure.core.util.Context context)
Updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be updated.tags- Resource tags.context- The context to associate with this operation.- Returns:
- an Azure SQL instance 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.
-
updateAsync
Mono<InstancePoolInner> updateAsync(String resourceGroupName, String instancePoolName, Map<String,String> tags)
Updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be updated.tags- Resource tags.- Returns:
- an Azure SQL instance 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.
-
updateAsync
Mono<InstancePoolInner> updateAsync(String resourceGroupName, String instancePoolName)
Updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be updated.- Returns:
- an Azure SQL instance 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.
-
update
InstancePoolInner update(String resourceGroupName, String instancePoolName, Map<String,String> tags)
Updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be updated.tags- Resource tags.- Returns:
- an Azure SQL instance 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.
-
update
InstancePoolInner update(String resourceGroupName, String instancePoolName, Map<String,String> tags, com.azure.core.util.Context context)
Updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be updated.tags- Resource tags.context- The context to associate with this operation.- Returns:
- an Azure SQL instance 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.
-
update
InstancePoolInner update(String resourceGroupName, String instancePoolName)
Updates an instance pool.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be updated.- Returns:
- an Azure SQL instance 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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<InstancePoolInner> listByResourceGroupAsync(String resourceGroupName)
Gets a list of instance pools in the resource group.- Specified by:
listByResourceGroupAsyncin interfaceInnerSupportsListing<InstancePoolInner>- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.- Returns:
- a list of instance pools in the resource group.
- 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<InstancePoolInner> listByResourceGroup(String resourceGroupName)
Gets a list of instance pools in the resource group.- Specified by:
listByResourceGroupin interfaceInnerSupportsListing<InstancePoolInner>- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.- Returns:
- a list of instance pools in the resource group.
- 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<InstancePoolInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
Gets a list of instance pools in the resource group.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.context- The context to associate with this operation.- Returns:
- a list of instance pools in the resource group.
- 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<InstancePoolInner> listAsync()
Gets a list of all instance pools in the subscription.- Specified by:
listAsyncin interfaceInnerSupportsListing<InstancePoolInner>- Returns:
- a list of all instance pools in the subscription.
- 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<InstancePoolInner> list()
Gets a list of all instance pools in the subscription.- Specified by:
listin interfaceInnerSupportsListing<InstancePoolInner>- Returns:
- a list of all instance pools in the subscription.
- 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<InstancePoolInner> list(com.azure.core.util.Context context)
Gets a list of all instance pools in the subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- a list of all instance pools in the subscription.
- 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.
-
-