Interface DatabaseAdvisorsClient


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

    • listByDatabaseWithResponseAsync

      Mono<com.azure.core.http.rest.Response<List<AdvisorInner>>> listByDatabaseWithResponseAsync(String resourceGroupName, String serverName, String databaseName, String expand)
      Gets a list of database advisors.
      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.
      databaseName - The name of the database.
      expand - The child resources to include in the response.
      Returns:
      a list of database advisors 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.
    • listByDatabaseAsync

      Mono<List<AdvisorInner>> listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName)
      Gets a list of database advisors.
      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.
      databaseName - The name of the database.
      Returns:
      a list of database advisors 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.
    • listByDatabaseWithResponse

      com.azure.core.http.rest.Response<List<AdvisorInner>> listByDatabaseWithResponse(String resourceGroupName, String serverName, String databaseName, String expand, com.azure.core.util.Context context)
      Gets a list of database advisors.
      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.
      databaseName - The name of the database.
      expand - The child resources to include in the response.
      context - The context to associate with this operation.
      Returns:
      a list of database advisors 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.
    • listByDatabase

      List<AdvisorInner> listByDatabase(String resourceGroupName, String serverName, String databaseName)
      Gets a list of database advisors.
      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.
      databaseName - The name of the database.
      Returns:
      a list of database advisors.
      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<AdvisorInner>> getWithResponseAsync(String resourceGroupName, String serverName, String databaseName, String advisorName)
      Gets a database advisor.
      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.
      databaseName - The name of the database.
      advisorName - The name of the Database Advisor.
      Returns:
      a database advisor 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.
    • getAsync

      Mono<AdvisorInner> getAsync(String resourceGroupName, String serverName, String databaseName, String advisorName)
      Gets a database advisor.
      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.
      databaseName - The name of the database.
      advisorName - The name of the Database Advisor.
      Returns:
      a database advisor 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.
    • getWithResponse

      com.azure.core.http.rest.Response<AdvisorInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, String advisorName, com.azure.core.util.Context context)
      Gets a database advisor.
      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.
      databaseName - The name of the database.
      advisorName - The name of the Database Advisor.
      context - The context to associate with this operation.
      Returns:
      a database advisor 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.
    • get

      AdvisorInner get(String resourceGroupName, String serverName, String databaseName, String advisorName)
      Gets a database advisor.
      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.
      databaseName - The name of the database.
      advisorName - The name of the Database Advisor.
      Returns:
      a database advisor.
      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<AdvisorInner>> updateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, String advisorName, AdvisorInner parameters)
      Updates a database advisor.
      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.
      databaseName - The name of the database.
      advisorName - The name of the Database Advisor.
      parameters - The requested advisor resource state.
      Returns:
      database, Server or Elastic Pool Advisor 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.
    • updateAsync

      Mono<AdvisorInner> updateAsync(String resourceGroupName, String serverName, String databaseName, String advisorName, AdvisorInner parameters)
      Updates a database advisor.
      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.
      databaseName - The name of the database.
      advisorName - The name of the Database Advisor.
      parameters - The requested advisor resource state.
      Returns:
      database, Server or Elastic Pool Advisor 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.
    • updateWithResponse

      com.azure.core.http.rest.Response<AdvisorInner> updateWithResponse(String resourceGroupName, String serverName, String databaseName, String advisorName, AdvisorInner parameters, com.azure.core.util.Context context)
      Updates a database advisor.
      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.
      databaseName - The name of the database.
      advisorName - The name of the Database Advisor.
      parameters - The requested advisor resource state.
      context - The context to associate with this operation.
      Returns:
      database, Server or Elastic Pool Advisor along with Response.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • update

      AdvisorInner update(String resourceGroupName, String serverName, String databaseName, String advisorName, AdvisorInner parameters)
      Updates a database advisor.
      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.
      databaseName - The name of the database.
      advisorName - The name of the Database Advisor.
      parameters - The requested advisor resource state.
      Returns:
      database, Server or Elastic Pool Advisor.
      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.