Class SubscriptionsApi

java.lang.Object
org.wso2.am.integration.clients.gateway.api.v2.SubscriptionsApi

public class SubscriptionsApi extends Object
  • Constructor Details

    • SubscriptionsApi

      public SubscriptionsApi()
    • SubscriptionsApi

      public SubscriptionsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getSubscriptionsCall

      public com.squareup.okhttp.Call getSubscriptionsCall(String apiUUID, String applicationUUID, String tenantDomain, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
      Build call for getSubscriptions
      Parameters:
      apiUUID - UUID of the API (required)
      applicationUUID - UUID of the Application (required)
      tenantDomain - Tenant Domain of the API (optional)
      progressListener - Progress listener
      progressRequestListener - Progress request listener
      Returns:
      Call to execute
      Throws:
      ApiException - If fail to serialize the request body object
    • getSubscriptions

      public SubscriptionListDTO getSubscriptions(String apiUUID, String applicationUUID, String tenantDomain) throws ApiException
      Get Subscriptions stored in in-memory This operation is used to get the Subscriptions from the storage. If the Tenant domain is not provided carbon.super will be picked as the Tenant domain.
      Parameters:
      apiUUID - UUID of the API (required)
      applicationUUID - UUID of the Application (required)
      tenantDomain - Tenant Domain of the API (optional)
      Returns:
      SubscriptionListDTO
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getSubscriptionsWithHttpInfo

      public ApiResponse<SubscriptionListDTO> getSubscriptionsWithHttpInfo(String apiUUID, String applicationUUID, String tenantDomain) throws ApiException
      Get Subscriptions stored in in-memory This operation is used to get the Subscriptions from the storage. If the Tenant domain is not provided carbon.super will be picked as the Tenant domain.
      Parameters:
      apiUUID - UUID of the API (required)
      applicationUUID - UUID of the Application (required)
      tenantDomain - Tenant Domain of the API (optional)
      Returns:
      ApiResponse<SubscriptionListDTO>
      Throws:
      ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
    • getSubscriptionsAsync

      public com.squareup.okhttp.Call getSubscriptionsAsync(String apiUUID, String applicationUUID, String tenantDomain, ApiCallback<SubscriptionListDTO> callback) throws ApiException
      Get Subscriptions stored in in-memory (asynchronously) This operation is used to get the Subscriptions from the storage. If the Tenant domain is not provided carbon.super will be picked as the Tenant domain.
      Parameters:
      apiUUID - UUID of the API (required)
      applicationUUID - UUID of the Application (required)
      tenantDomain - Tenant Domain of the API (optional)
      callback - The callback to be executed when the API call finishes
      Returns:
      The request call
      Throws:
      ApiException - If fail to process the API call, e.g. serializing the request body object