Class UsageApi

java.lang.Object
com.mypurecloud.sdk.v2.api.UsageApi

public class UsageApi extends Object
  • Constructor Details

    • UsageApi

      public UsageApi()
    • UsageApi

      public UsageApi(ApiClient apiClient)
  • Method Details

    • getOauthClientUsageQueryResult

      public ApiUsageQueryResult getOauthClientUsageQueryResult(String executionId, String clientId) throws IOException, ApiException
      Get the results of a usage query
      Parameters:
      executionId - ID of the query execution (required)
      clientId - Client ID (required)
      Returns:
      ApiUsageQueryResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getOauthClientUsageQueryResultWithHttpInfo

      public ApiResponse<ApiUsageQueryResult> getOauthClientUsageQueryResultWithHttpInfo(String executionId, String clientId) throws IOException
      Get the results of a usage query
      Parameters:
      executionId - ID of the query execution (required)
      clientId - Client ID (required)
      Returns:
      ApiUsageQueryResult
      Throws:
      IOException - if the request fails to be processed
    • getOauthClientUsageQueryResult

      public ApiUsageQueryResult getOauthClientUsageQueryResult(GetOauthClientUsageQueryResultRequest request) throws IOException, ApiException
      Get the results of a usage query
      Parameters:
      request - The request object
      Returns:
      ApiUsageQueryResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getOauthClientUsageQueryResult

      public ApiResponse<ApiUsageQueryResult> getOauthClientUsageQueryResult(ApiRequest<Void> request) throws IOException
      Get the results of a usage query
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getOauthClientUsageSummary

      public UsageExecutionResult getOauthClientUsageSummary(String clientId, String days) throws IOException, ApiException
      Get a summary of OAuth client API usage After calling this method, you will then need to poll for the query results based on the returned execution Id
      Parameters:
      clientId - Client ID (required)
      days - Previous number of days to query (optional, default to 7)
      Returns:
      UsageExecutionResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getOauthClientUsageSummaryWithHttpInfo

      public ApiResponse<UsageExecutionResult> getOauthClientUsageSummaryWithHttpInfo(String clientId, String days) throws IOException
      Get a summary of OAuth client API usage After calling this method, you will then need to poll for the query results based on the returned execution Id
      Parameters:
      clientId - Client ID (required)
      days - Previous number of days to query (optional, default to 7)
      Returns:
      UsageExecutionResult
      Throws:
      IOException - if the request fails to be processed
    • getOauthClientUsageSummary

      public UsageExecutionResult getOauthClientUsageSummary(GetOauthClientUsageSummaryRequest request) throws IOException, ApiException
      Get a summary of OAuth client API usage After calling this method, you will then need to poll for the query results based on the returned execution Id
      Parameters:
      request - The request object
      Returns:
      UsageExecutionResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getOauthClientUsageSummary

      public ApiResponse<UsageExecutionResult> getOauthClientUsageSummary(ApiRequest<Void> request) throws IOException
      Get a summary of OAuth client API usage After calling this method, you will then need to poll for the query results based on the returned execution Id
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getUsageQueryExecutionIdResults

      public ApiUsageQueryResult getUsageQueryExecutionIdResults(String executionId) throws IOException, ApiException
      Get the results of a usage query
      Parameters:
      executionId - ID of the query execution (required)
      Returns:
      ApiUsageQueryResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getUsageQueryExecutionIdResultsWithHttpInfo

      public ApiResponse<ApiUsageQueryResult> getUsageQueryExecutionIdResultsWithHttpInfo(String executionId) throws IOException
      Get the results of a usage query
      Parameters:
      executionId - ID of the query execution (required)
      Returns:
      ApiUsageQueryResult
      Throws:
      IOException - if the request fails to be processed
    • getUsageQueryExecutionIdResults

      public ApiUsageQueryResult getUsageQueryExecutionIdResults(GetUsageQueryExecutionIdResultsRequest request) throws IOException, ApiException
      Get the results of a usage query
      Parameters:
      request - The request object
      Returns:
      ApiUsageQueryResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getUsageQueryExecutionIdResults

      public ApiResponse<ApiUsageQueryResult> getUsageQueryExecutionIdResults(ApiRequest<Void> request) throws IOException
      Get the results of a usage query
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • getUsageSimplesearchExecutionIdResults

      public ApiUsageQueryResult getUsageSimplesearchExecutionIdResults(String executionId) throws IOException, ApiException
      Get the results of a usage search. Number of records to be returned is limited to 20,000 results.
      Parameters:
      executionId - ID of the search execution (required)
      Returns:
      ApiUsageQueryResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getUsageSimplesearchExecutionIdResultsWithHttpInfo

      public ApiResponse<ApiUsageQueryResult> getUsageSimplesearchExecutionIdResultsWithHttpInfo(String executionId) throws IOException
      Get the results of a usage search. Number of records to be returned is limited to 20,000 results.
      Parameters:
      executionId - ID of the search execution (required)
      Returns:
      ApiUsageQueryResult
      Throws:
      IOException - if the request fails to be processed
    • getUsageSimplesearchExecutionIdResults

      public ApiUsageQueryResult getUsageSimplesearchExecutionIdResults(GetUsageSimplesearchExecutionIdResultsRequest request) throws IOException, ApiException
      Get the results of a usage search. Number of records to be returned is limited to 20,000 results.
      Parameters:
      request - The request object
      Returns:
      ApiUsageQueryResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • getUsageSimplesearchExecutionIdResults

      public ApiResponse<ApiUsageQueryResult> getUsageSimplesearchExecutionIdResults(ApiRequest<Void> request) throws IOException
      Get the results of a usage search. Number of records to be returned is limited to 20,000 results.
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • postOauthClientUsageQuery

      public UsageExecutionResult postOauthClientUsageQuery(String clientId, ApiUsageClientQuery body) throws IOException, ApiException
      Query for OAuth client API usage After calling this method, you will then need to poll for the query results based on the returned execution Id
      Parameters:
      clientId - Client ID (required)
      body - Query (required)
      Returns:
      UsageExecutionResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • postOauthClientUsageQueryWithHttpInfo

      public ApiResponse<UsageExecutionResult> postOauthClientUsageQueryWithHttpInfo(String clientId, ApiUsageClientQuery body) throws IOException
      Query for OAuth client API usage After calling this method, you will then need to poll for the query results based on the returned execution Id
      Parameters:
      clientId - Client ID (required)
      body - Query (required)
      Returns:
      UsageExecutionResult
      Throws:
      IOException - if the request fails to be processed
    • postOauthClientUsageQuery

      public UsageExecutionResult postOauthClientUsageQuery(PostOauthClientUsageQueryRequest request) throws IOException, ApiException
      Query for OAuth client API usage After calling this method, you will then need to poll for the query results based on the returned execution Id
      Parameters:
      request - The request object
      Returns:
      UsageExecutionResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • postOauthClientUsageQuery

      public ApiResponse<UsageExecutionResult> postOauthClientUsageQuery(ApiRequest<ApiUsageClientQuery> request) throws IOException
      Query for OAuth client API usage After calling this method, you will then need to poll for the query results based on the returned execution Id
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • postUsageQuery

      Query organization API Usage - After calling this method, you will then need to poll for the query results based on the returned execution Id
      Parameters:
      body - Query (required)
      Returns:
      UsageExecutionResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • postUsageQueryWithHttpInfo

      public ApiResponse<UsageExecutionResult> postUsageQueryWithHttpInfo(ApiUsageOrganizationQuery body) throws IOException
      Query organization API Usage - After calling this method, you will then need to poll for the query results based on the returned execution Id
      Parameters:
      body - Query (required)
      Returns:
      UsageExecutionResult
      Throws:
      IOException - if the request fails to be processed
    • postUsageQuery

      public UsageExecutionResult postUsageQuery(PostUsageQueryRequest request) throws IOException, ApiException
      Query organization API Usage - After calling this method, you will then need to poll for the query results based on the returned execution Id
      Parameters:
      request - The request object
      Returns:
      UsageExecutionResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • postUsageQuery

      Query organization API Usage - After calling this method, you will then need to poll for the query results based on the returned execution Id
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed
    • postUsageSimplesearch

      public UsageExecutionResult postUsageSimplesearch(ApiUsageSimpleSearch body) throws IOException, ApiException
      Search organization API Usage After calling this method, you will then need to poll for the query results based on the returned execution Id. The number of records is limited to 20,000 results
      Parameters:
      body - SimpleSearch (required)
      Returns:
      UsageExecutionResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • postUsageSimplesearchWithHttpInfo

      public ApiResponse<UsageExecutionResult> postUsageSimplesearchWithHttpInfo(ApiUsageSimpleSearch body) throws IOException
      Search organization API Usage After calling this method, you will then need to poll for the query results based on the returned execution Id. The number of records is limited to 20,000 results
      Parameters:
      body - SimpleSearch (required)
      Returns:
      UsageExecutionResult
      Throws:
      IOException - if the request fails to be processed
    • postUsageSimplesearch

      public UsageExecutionResult postUsageSimplesearch(PostUsageSimplesearchRequest request) throws IOException, ApiException
      Search organization API Usage After calling this method, you will then need to poll for the query results based on the returned execution Id. The number of records is limited to 20,000 results
      Parameters:
      request - The request object
      Returns:
      UsageExecutionResult
      Throws:
      ApiException - if the request fails on the server
      IOException - if the request fails to be processed
    • postUsageSimplesearch

      public ApiResponse<UsageExecutionResult> postUsageSimplesearch(ApiRequest<ApiUsageSimpleSearch> request) throws IOException
      Search organization API Usage After calling this method, you will then need to poll for the query results based on the returned execution Id. The number of records is limited to 20,000 results
      Parameters:
      request - The request object
      Returns:
      the response
      Throws:
      IOException - if the request fails to be processed