Interface QueryTextsClient


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

      • get

        QueryTextInner 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.
      • getWithResponse

        com.azure.core.http.rest.Response<QueryTextInner> 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.
      • listByServer

        com.azure.core.http.rest.PagedIterable<QueryTextInner> 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.
        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<QueryTextInner> 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.
        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.