public class SubscriptionsApi extends Object
| Constructor and Description |
|---|
SubscriptionsApi() |
SubscriptionsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
blockSubscription(String subscriptionId,
String blockState,
String ifMatch)
Block a Subscription
This operation can be used to block a subscription.
|
okhttp3.Call |
blockSubscriptionAsync(String subscriptionId,
String blockState,
String ifMatch,
ApiCallback<Void> _callback)
Block a Subscription (asynchronously)
This operation can be used to block a subscription.
|
okhttp3.Call |
blockSubscriptionCall(String subscriptionId,
String blockState,
String ifMatch,
ApiCallback _callback)
Build call for blockSubscription
|
ApiResponse<Void> |
blockSubscriptionWithHttpInfo(String subscriptionId,
String blockState,
String ifMatch)
Block a Subscription
This operation can be used to block a subscription.
|
ApiClient |
getApiClient() |
SubscriptionListDTO |
getSubscriptions(String apiId,
Integer limit,
Integer offset,
String ifNoneMatch,
String query)
Get all Subscriptions
This operation can be used to retrieve a list of subscriptions of the user associated with the provided access token.
|
okhttp3.Call |
getSubscriptionsAsync(String apiId,
Integer limit,
Integer offset,
String ifNoneMatch,
String query,
ApiCallback<SubscriptionListDTO> _callback)
Get all Subscriptions (asynchronously)
This operation can be used to retrieve a list of subscriptions of the user associated with the provided access token.
|
okhttp3.Call |
getSubscriptionsCall(String apiId,
Integer limit,
Integer offset,
String ifNoneMatch,
String query,
ApiCallback _callback)
Build call for getSubscriptions
|
ApiResponse<SubscriptionListDTO> |
getSubscriptionsWithHttpInfo(String apiId,
Integer limit,
Integer offset,
String ifNoneMatch,
String query)
Get all Subscriptions
This operation can be used to retrieve a list of subscriptions of the user associated with the provided access token.
|
void |
setApiClient(ApiClient apiClient) |
void |
unBlockSubscription(String subscriptionId,
String ifMatch)
Unblock a Subscription
This operation can be used to unblock a subscription specifying the subscription Id.
|
okhttp3.Call |
unBlockSubscriptionAsync(String subscriptionId,
String ifMatch,
ApiCallback<Void> _callback)
Unblock a Subscription (asynchronously)
This operation can be used to unblock a subscription specifying the subscription Id.
|
okhttp3.Call |
unBlockSubscriptionCall(String subscriptionId,
String ifMatch,
ApiCallback _callback)
Build call for unBlockSubscription
|
ApiResponse<Void> |
unBlockSubscriptionWithHttpInfo(String subscriptionId,
String ifMatch)
Unblock a Subscription
This operation can be used to unblock a subscription specifying the subscription Id.
|
public SubscriptionsApi()
public SubscriptionsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call blockSubscriptionCall(String subscriptionId, String blockState, String ifMatch, ApiCallback _callback) throws ApiException
subscriptionId - Subscription Id (required)blockState - Subscription block state. (required)ifMatch - Validator for conditional requests; based on ETag. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic void blockSubscription(String subscriptionId, String blockState, String ifMatch) throws ApiException
subscriptionId - Subscription Id (required)blockState - Subscription block state. (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> blockSubscriptionWithHttpInfo(String subscriptionId, String blockState, String ifMatch) throws ApiException
subscriptionId - Subscription Id (required)blockState - Subscription block state. (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call blockSubscriptionAsync(String subscriptionId, String blockState, String ifMatch, ApiCallback<Void> _callback) throws ApiException
subscriptionId - Subscription Id (required)blockState - Subscription block state. (required)ifMatch - Validator for conditional requests; based on ETag. (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call getSubscriptionsCall(String apiId, Integer limit, Integer offset, String ifNoneMatch, String query, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (optional)limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)query - Keywords to filter subscriptions (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic SubscriptionListDTO getSubscriptions(String apiId, Integer limit, Integer offset, String ifNoneMatch, String query) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (optional)limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)query - Keywords to filter subscriptions (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<SubscriptionListDTO> getSubscriptionsWithHttpInfo(String apiId, Integer limit, Integer offset, String ifNoneMatch, String query) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (optional)limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)query - Keywords to filter subscriptions (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getSubscriptionsAsync(String apiId, Integer limit, Integer offset, String ifNoneMatch, String query, ApiCallback<SubscriptionListDTO> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API I. Should be formatted as **provider-name-version**. (optional)limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)query - Keywords to filter subscriptions (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic okhttp3.Call unBlockSubscriptionCall(String subscriptionId, String ifMatch, ApiCallback _callback) throws ApiException
subscriptionId - Subscription Id (required)ifMatch - Validator for conditional requests; based on ETag. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic void unBlockSubscription(String subscriptionId, String ifMatch) throws ApiException
subscriptionId - Subscription Id (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> unBlockSubscriptionWithHttpInfo(String subscriptionId, String ifMatch) throws ApiException
subscriptionId - Subscription Id (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call unBlockSubscriptionAsync(String subscriptionId, String ifMatch, ApiCallback<Void> _callback) throws ApiException
subscriptionId - Subscription Id (required)ifMatch - Validator for conditional requests; based on ETag. (optional)_callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2021 WSO2 Inc. All rights reserved.