Interface InstancePoolsClient

    • 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:
        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.
        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.
      • 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:
        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:
        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:
        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.
        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.
        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:
        listAsync in interface InnerSupportsListing<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:
        list in interface InnerSupportsListing<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.