public class SubscriptionsApi extends Object
| Constructor and Description |
|---|
SubscriptionsApi() |
SubscriptionsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
SubscriptionResponse |
createSubscription(Subscription body)
createSubscription
Endpoint to create a subscription.
|
SubscriptionResponse |
deleteSubscription(String id)
deleteSubscription
Endpoint to delete a subscription.
|
ApiClient |
getApiClient() |
SubscriptionResponse |
getSubscription(String id)
getSubscription
returns a subscription with a given id
|
DeliveryListResponse |
getSubscriptionDeliveries(String id,
Integer page,
Integer size,
String sort)
getSubscriptionDeliveries
Endpoint to list the deliveries
|
EventListResponse |
getSubscriptionEvents(String id,
Boolean withPayload,
Integer page,
Integer size,
String sort)
getSubscriptionEvents
Endpoint to list the events
|
SubscriptionListResponse |
getSubscriptions(String workspaceId,
String identifier)
getSubscriptions
Endpoint to list the subscriptions.
|
void |
setApiClient(ApiClient apiClient) |
SubscriptionResponse |
updateSubscription(String id,
Subscription body)
updateSubscription
Endpoint to update a subscription.
|
public SubscriptionsApi()
public SubscriptionsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public SubscriptionResponse createSubscription(Subscription body) throws ApiException
body - (required)ApiException - if fails to make API callpublic SubscriptionResponse deleteSubscription(String id) throws ApiException
id - (required)ApiException - if fails to make API callpublic SubscriptionResponse getSubscription(String id) throws ApiException
id - the UUID of the subscription (required)ApiException - if fails to make API callpublic DeliveryListResponse getSubscriptionDeliveries(String id, Integer page, Integer size, String sort) throws ApiException
id - (required)page - The page number to access (1 indexed, defaults to 1) (optional, default to 1)size - The page size requested (defaults to 30, max 100) (optional, default to 30)sort - Comma-separated list of sorting (default createdAt-DESC) (optional, default to createdAt-desc)ApiException - if fails to make API callpublic EventListResponse getSubscriptionEvents(String id, Boolean withPayload, Integer page, Integer size, String sort) throws ApiException
id - (required)withPayload - Include the payload (true by default) (optional, default to true)page - The page number to access (1 indexed, defaults to 1) (optional, default to 1)size - The page size requested (defaults to 100, max 100) (optional, default to 100)sort - Comma-separated list of sorting (default createdAt-ASC) (optional, default to createdAt-ASC)ApiException - if fails to make API callpublic SubscriptionListResponse getSubscriptions(String workspaceId, String identifier) throws ApiException
workspaceId - an optional workspace UUID (optional)identifier - an optional subscription identifier (optional)ApiException - if fails to make API callpublic SubscriptionResponse updateSubscription(String id, Subscription body) throws ApiException
id - (required)body - (required)ApiException - if fails to make API callCopyright © 2017 LeanIX GmbH. All rights reserved.