Package dev.restate.admin.api
Class SubscriptionApi
java.lang.Object
dev.restate.admin.api.SubscriptionApi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateSubscription
(CreateSubscriptionRequest createSubscriptionRequest) Create subscription Create subscription.createSubscriptionWithHttpInfo
(CreateSubscriptionRequest createSubscriptionRequest) Create subscription Create subscription.void
deleteSubscription
(String subscription) Delete subscription Delete subscription.deleteSubscriptionWithHttpInfo
(String subscription) Delete subscription Delete subscription.protected ApiException
getApiException
(String operationId, HttpResponse<InputStream> response) getSubscription
(String subscription) Get subscription Get subscriptiongetSubscriptionWithHttpInfo
(String subscription) Get subscription Get subscriptionlistSubscriptions
(String sink, String source) List subscriptions List all subscriptions.listSubscriptionsWithHttpInfo
(String sink, String source) List subscriptions List all subscriptions.
-
Constructor Details
-
SubscriptionApi
public SubscriptionApi() -
SubscriptionApi
-
-
Method Details
-
getApiException
protected ApiException getApiException(String operationId, HttpResponse<InputStream> response) throws IOException - Throws:
IOException
-
createSubscription
public SubscriptionResponse createSubscription(CreateSubscriptionRequest createSubscriptionRequest) throws ApiException Create subscription Create subscription.- Parameters:
createSubscriptionRequest
- (required)- Returns:
- SubscriptionResponse
- Throws:
ApiException
- if fails to make API call
-
createSubscriptionWithHttpInfo
public ApiResponse<SubscriptionResponse> createSubscriptionWithHttpInfo(CreateSubscriptionRequest createSubscriptionRequest) throws ApiException Create subscription Create subscription.- Parameters:
createSubscriptionRequest
- (required)- Returns:
- ApiResponse<SubscriptionResponse>
- Throws:
ApiException
- if fails to make API call
-
deleteSubscription
Delete subscription Delete subscription.- Parameters:
subscription
- Subscription identifier (required)- Throws:
ApiException
- if fails to make API call
-
deleteSubscriptionWithHttpInfo
Delete subscription Delete subscription.- Parameters:
subscription
- Subscription identifier (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException
- if fails to make API call
-
getSubscription
Get subscription Get subscription- Parameters:
subscription
- Subscription identifier (required)- Returns:
- SubscriptionResponse
- Throws:
ApiException
- if fails to make API call
-
getSubscriptionWithHttpInfo
public ApiResponse<SubscriptionResponse> getSubscriptionWithHttpInfo(String subscription) throws ApiException Get subscription Get subscription- Parameters:
subscription
- Subscription identifier (required)- Returns:
- ApiResponse<SubscriptionResponse>
- Throws:
ApiException
- if fails to make API call
-
listSubscriptions
List subscriptions List all subscriptions.- Parameters:
sink
- Filter by the exact specified sink. (optional)source
- Filter by the exact specified source. (optional)- Returns:
- ListSubscriptionsResponse
- Throws:
ApiException
- if fails to make API call
-
listSubscriptionsWithHttpInfo
public ApiResponse<ListSubscriptionsResponse> listSubscriptionsWithHttpInfo(String sink, String source) throws ApiException List subscriptions List all subscriptions.- Parameters:
sink
- Filter by the exact specified sink. (optional)source
- Filter by the exact specified source. (optional)- Returns:
- ApiResponse<ListSubscriptionsResponse>
- Throws:
ApiException
- if fails to make API call
-