Interface ElasticPoolsClient


  • public interface ElasticPoolsClient
    An instance of this class provides access to all the operations defined in ElasticPoolsClient.
    • Method Detail

      • listMetricsAsync

        com.azure.core.http.rest.PagedFlux<MetricInner> listMetricsAsync​(String resourceGroupName,
                                                                         String serverName,
                                                                         String elasticPoolName,
                                                                         String filter)
        Returns elastic pool metrics.
        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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        filter - An OData filter expression that describes a subset of metrics to return.
        Returns:
        the response to a list database metrics request.
        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.
      • listMetrics

        com.azure.core.http.rest.PagedIterable<MetricInner> listMetrics​(String resourceGroupName,
                                                                        String serverName,
                                                                        String elasticPoolName,
                                                                        String filter)
        Returns elastic pool metrics.
        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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        filter - An OData filter expression that describes a subset of metrics to return.
        Returns:
        the response to a list database metrics request.
        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.
      • listMetrics

        com.azure.core.http.rest.PagedIterable<MetricInner> listMetrics​(String resourceGroupName,
                                                                        String serverName,
                                                                        String elasticPoolName,
                                                                        String filter,
                                                                        com.azure.core.util.Context context)
        Returns elastic pool metrics.
        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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        filter - An OData filter expression that describes a subset of metrics to return.
        context - The context to associate with this operation.
        Returns:
        the response to a list database metrics request.
        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.
      • listMetricDefinitionsAsync

        com.azure.core.http.rest.PagedFlux<MetricDefinitionInner> listMetricDefinitionsAsync​(String resourceGroupName,
                                                                                             String serverName,
                                                                                             String elasticPoolName)
        Returns elastic pool metric definitions.
        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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        Returns:
        the response to a list database metric definitions request.
        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.
      • listMetricDefinitions

        com.azure.core.http.rest.PagedIterable<MetricDefinitionInner> listMetricDefinitions​(String resourceGroupName,
                                                                                            String serverName,
                                                                                            String elasticPoolName)
        Returns elastic pool metric definitions.
        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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        Returns:
        the response to a list database metric definitions request.
        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.
      • listMetricDefinitions

        com.azure.core.http.rest.PagedIterable<MetricDefinitionInner> listMetricDefinitions​(String resourceGroupName,
                                                                                            String serverName,
                                                                                            String elasticPoolName,
                                                                                            com.azure.core.util.Context context)
        Returns elastic pool metric definitions.
        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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        context - The context to associate with this operation.
        Returns:
        the response to a list database metric definitions request.
        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.
      • listByServerAsync

        com.azure.core.http.rest.PagedFlux<ElasticPoolInner> listByServerAsync​(String resourceGroupName,
                                                                               String serverName,
                                                                               Integer skip)
        Gets all elastic pools in a server.
        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.
        serverName - The name of the server.
        skip - The number of elements in the collection to skip.
        Returns:
        all elastic pools in a server.
        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.
      • listByServerAsync

        com.azure.core.http.rest.PagedFlux<ElasticPoolInner> listByServerAsync​(String resourceGroupName,
                                                                               String serverName)
        Gets all elastic pools in a server.
        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.
        serverName - The name of the server.
        Returns:
        all elastic pools in a server.
        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.
      • listByServer

        com.azure.core.http.rest.PagedIterable<ElasticPoolInner> listByServer​(String resourceGroupName,
                                                                              String serverName,
                                                                              Integer skip,
                                                                              com.azure.core.util.Context context)
        Gets all elastic pools in a server.
        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.
        serverName - The name of the server.
        skip - The number of elements in the collection to skip.
        context - The context to associate with this operation.
        Returns:
        all elastic pools in a server.
        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.
      • listByServer

        com.azure.core.http.rest.PagedIterable<ElasticPoolInner> listByServer​(String resourceGroupName,
                                                                              String serverName)
        Gets all elastic pools in a server.
        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.
        serverName - The name of the server.
        Returns:
        all elastic pools in a server.
        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.
      • getWithResponseAsync

        Mono<com.azure.core.http.rest.Response<ElasticPoolInner>> getWithResponseAsync​(String resourceGroupName,
                                                                                       String serverName,
                                                                                       String elasticPoolName)
        Gets an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        Returns:
        an elastic 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.
      • getAsync

        Mono<ElasticPoolInner> getAsync​(String resourceGroupName,
                                        String serverName,
                                        String elasticPoolName)
        Gets an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        Returns:
        an elastic 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.
      • get

        ElasticPoolInner get​(String resourceGroupName,
                             String serverName,
                             String elasticPoolName)
        Gets an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        Returns:
        an elastic 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.
      • getWithResponse

        com.azure.core.http.rest.Response<ElasticPoolInner> getWithResponse​(String resourceGroupName,
                                                                            String serverName,
                                                                            String elasticPoolName,
                                                                            com.azure.core.util.Context context)
        Gets an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        context - The context to associate with this operation.
        Returns:
        an elastic 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 serverName,
                                                                                                  String elasticPoolName,
                                                                                                  ElasticPoolInner parameters)
        Creates or updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool.
        Returns:
        an elastic 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<ElasticPoolInner>,​ElasticPoolInner> beginCreateOrUpdateAsync​(String resourceGroupName,
                                                                                                                                                               String serverName,
                                                                                                                                                               String elasticPoolName,
                                                                                                                                                               ElasticPoolInner parameters)
        Creates or updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool.
        Returns:
        an elastic 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<ElasticPoolInner>,​ElasticPoolInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                          String serverName,
                                                                                                                                                          String elasticPoolName,
                                                                                                                                                          ElasticPoolInner parameters)
        Creates or updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool.
        Returns:
        an elastic 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<ElasticPoolInner>,​ElasticPoolInner> beginCreateOrUpdate​(String resourceGroupName,
                                                                                                                                                          String serverName,
                                                                                                                                                          String elasticPoolName,
                                                                                                                                                          ElasticPoolInner parameters,
                                                                                                                                                          com.azure.core.util.Context context)
        Creates or updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool.
        context - The context to associate with this operation.
        Returns:
        an elastic 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<ElasticPoolInner> createOrUpdateAsync​(String resourceGroupName,
                                                   String serverName,
                                                   String elasticPoolName,
                                                   ElasticPoolInner parameters)
        Creates or updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool.
        Returns:
        an elastic 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

        ElasticPoolInner createOrUpdate​(String resourceGroupName,
                                        String serverName,
                                        String elasticPoolName,
                                        ElasticPoolInner parameters)
        Creates or updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool.
        Returns:
        an elastic 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

        ElasticPoolInner createOrUpdate​(String resourceGroupName,
                                        String serverName,
                                        String elasticPoolName,
                                        ElasticPoolInner parameters,
                                        com.azure.core.util.Context context)
        Creates or updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool.
        context - The context to associate with this operation.
        Returns:
        an elastic 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 serverName,
                                                                                          String elasticPoolName)
        Deletes an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        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 serverName,
                                                                                                                               String elasticPoolName)
        Deletes an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        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 serverName,
                                                                                                                          String elasticPoolName)
        Deletes an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        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 serverName,
                                                                                                                          String elasticPoolName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        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 serverName,
                               String elasticPoolName)
        Deletes an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        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 serverName,
                    String elasticPoolName)
        Deletes an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic 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.
      • delete

        void delete​(String resourceGroupName,
                    String serverName,
                    String elasticPoolName,
                    com.azure.core.util.Context context)
        Deletes an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        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 serverName,
                                                                                          String elasticPoolName,
                                                                                          ElasticPoolUpdate parameters)
        Updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool update.
        Returns:
        an elastic 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<ElasticPoolInner>,​ElasticPoolInner> beginUpdateAsync​(String resourceGroupName,
                                                                                                                                                       String serverName,
                                                                                                                                                       String elasticPoolName,
                                                                                                                                                       ElasticPoolUpdate parameters)
        Updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool update.
        Returns:
        an elastic 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<ElasticPoolInner>,​ElasticPoolInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                  String serverName,
                                                                                                                                                  String elasticPoolName,
                                                                                                                                                  ElasticPoolUpdate parameters)
        Updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool update.
        Returns:
        an elastic 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<ElasticPoolInner>,​ElasticPoolInner> beginUpdate​(String resourceGroupName,
                                                                                                                                                  String serverName,
                                                                                                                                                  String elasticPoolName,
                                                                                                                                                  ElasticPoolUpdate parameters,
                                                                                                                                                  com.azure.core.util.Context context)
        Updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool update.
        context - The context to associate with this operation.
        Returns:
        an elastic 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<ElasticPoolInner> updateAsync​(String resourceGroupName,
                                           String serverName,
                                           String elasticPoolName,
                                           ElasticPoolUpdate parameters)
        Updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool update.
        Returns:
        an elastic 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

        ElasticPoolInner update​(String resourceGroupName,
                                String serverName,
                                String elasticPoolName,
                                ElasticPoolUpdate parameters)
        Updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool update.
        Returns:
        an elastic 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

        ElasticPoolInner update​(String resourceGroupName,
                                String serverName,
                                String elasticPoolName,
                                ElasticPoolUpdate parameters,
                                com.azure.core.util.Context context)
        Updates an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool.
        parameters - An elastic pool update.
        context - The context to associate with this operation.
        Returns:
        an elastic 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.
      • failoverWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> failoverWithResponseAsync​(String resourceGroupName,
                                                                                            String serverName,
                                                                                            String elasticPoolName)
        Failovers an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool to failover.
        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.
      • beginFailoverAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginFailoverAsync​(String resourceGroupName,
                                                                                                                                 String serverName,
                                                                                                                                 String elasticPoolName)
        Failovers an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool to failover.
        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.
      • beginFailover

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginFailover​(String resourceGroupName,
                                                                                                                            String serverName,
                                                                                                                            String elasticPoolName)
        Failovers an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool to failover.
        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.
      • beginFailover

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginFailover​(String resourceGroupName,
                                                                                                                            String serverName,
                                                                                                                            String elasticPoolName,
                                                                                                                            com.azure.core.util.Context context)
        Failovers an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool to failover.
        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.
      • failoverAsync

        Mono<Void> failoverAsync​(String resourceGroupName,
                                 String serverName,
                                 String elasticPoolName)
        Failovers an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool to failover.
        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.
      • failover

        void failover​(String resourceGroupName,
                      String serverName,
                      String elasticPoolName)
        Failovers an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool to failover.
        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.
      • failover

        void failover​(String resourceGroupName,
                      String serverName,
                      String elasticPoolName,
                      com.azure.core.util.Context context)
        Failovers an elastic 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.
        serverName - The name of the server.
        elasticPoolName - The name of the elastic pool to failover.
        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.