Interface InstancePoolsClient

All Superinterfaces:
InnerSupportsDelete<Void>, InnerSupportsGet<InstancePoolInner>, InnerSupportsListing<InstancePoolInner>

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

    • listAsync

      com.azure.core.http.rest.PagedFlux<InstancePoolInner> listAsync()
      Gets a list of all instance pools in the subscription.
      Specified by:
      listAsync in interface InnerSupportsListing<InstancePoolInner>
      Returns:
      a list of all instance pools in the subscription as paginated response with PagedFlux.
      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:
      list in interface InnerSupportsListing<InstancePoolInner>
      Returns:
      a list of all instance pools in the 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<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 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.
    • listByResourceGroupAsync

      com.azure.core.http.rest.PagedFlux<InstancePoolInner> listByResourceGroupAsync(String resourceGroupName)
      Gets a list of instance pools in the resource group.
      Specified by:
      listByResourceGroupAsync in interface InnerSupportsListing<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 as paginated response with PagedFlux.
      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:
      listByResourceGroup in interface InnerSupportsListing<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 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<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 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.
    • 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 along with Response on successful completion of Mono.
      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:
      getByResourceGroupAsync in interface InnerSupportsGet<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 on successful completion of Mono.
      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 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

      InstancePoolInner getByResourceGroup(String resourceGroupName, String instancePoolName)
      Gets an instance pool.
      Specified by:
      getByResourceGroup in interface InnerSupportsGet<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.
    • 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 - The requested instance pool resource state.
      Returns:
      an Azure SQL instance pool along with Response on successful completion of Mono.
      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 - The requested instance pool resource state.
      Returns:
      the PollerFlux for polling of 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 - The requested instance pool resource state.
      Returns:
      the SyncPoller for polling of 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 - The requested instance pool resource state.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of 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 - The requested instance pool resource state.
      Returns:
      an Azure SQL instance pool on successful completion of Mono.
      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 - The requested instance pool resource state.
      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 - The requested instance pool resource state.
      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 Response on successful completion of Mono.
      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 PollerFlux 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 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 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 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 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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String instancePoolName)
      Deletes an instance pool.
      Specified by:
      deleteAsync in interface InnerSupportsDelete<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:
      A Mono that completes when a successful response is received.
      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, InstancePoolUpdate parameters)
      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.
      parameters - The requested instance pool resource state.
      Returns:
      an Azure SQL instance pool along with Response on successful completion of Mono.
      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, InstancePoolUpdate parameters)
      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.
      parameters - The requested instance pool resource state.
      Returns:
      the PollerFlux for polling of 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, InstancePoolUpdate parameters)
      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.
      parameters - The requested instance pool resource state.
      Returns:
      the SyncPoller for polling of 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, InstancePoolUpdate parameters, 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.
      parameters - The requested instance pool resource state.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of 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, InstancePoolUpdate parameters)
      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.
      parameters - The requested instance pool resource state.
      Returns:
      an Azure SQL instance pool on successful completion of Mono.
      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, InstancePoolUpdate parameters)
      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.
      parameters - The requested instance pool resource state.
      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, InstancePoolUpdate parameters, 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.
      parameters - The requested instance pool resource state.
      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.