Interface QueryTexts


public interface QueryTexts
Resource collection API of QueryTexts.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String resourceGroupName, String serverName, String queryId)
    Retrieve the Query-Store query texts for the queryId.
    com.azure.core.http.rest.Response<QueryText>
    getWithResponse(String resourceGroupName, String serverName, String queryId, com.azure.core.util.Context context)
    Retrieve the Query-Store query texts for the queryId.
    com.azure.core.http.rest.PagedIterable<QueryText>
    listByServer(String resourceGroupName, String serverName, List<String> queryIds)
    Retrieve the Query-Store query texts for specified queryIds.
    com.azure.core.http.rest.PagedIterable<QueryText>
    listByServer(String resourceGroupName, String serverName, List<String> queryIds, com.azure.core.util.Context context)
    Retrieve the Query-Store query texts for specified queryIds.
  • Method Details

    • getWithResponse

      com.azure.core.http.rest.Response<QueryText> getWithResponse(String resourceGroupName, String serverName, String queryId, com.azure.core.util.Context context)
      Retrieve the Query-Store query texts for the queryId.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      queryId - The Query-Store query identifier.
      context - The context to associate with this operation.
      Returns:
      represents a Query Text 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

      QueryText get(String resourceGroupName, String serverName, String queryId)
      Retrieve the Query-Store query texts for the queryId.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      queryId - The Query-Store query identifier.
      Returns:
      represents a Query Text.
      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<QueryText> listByServer(String resourceGroupName, String serverName, List<String> queryIds)
      Retrieve the Query-Store query texts for specified queryIds.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      queryIds - The query identifiers.
      Returns:
      a list of query texts 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.
    • listByServer

      com.azure.core.http.rest.PagedIterable<QueryText> listByServer(String resourceGroupName, String serverName, List<String> queryIds, com.azure.core.util.Context context)
      Retrieve the Query-Store query texts for specified queryIds.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      serverName - The name of the server.
      queryIds - The query identifiers.
      context - The context to associate with this operation.
      Returns:
      a list of query texts 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.