Class SubscriptionApi

java.lang.Object
dev.restate.admin.api.SubscriptionApi

public class SubscriptionApi extends Object
  • Constructor Details

    • SubscriptionApi

      public SubscriptionApi()
    • SubscriptionApi

      public SubscriptionApi(ApiClient apiClient)
  • 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

      public void deleteSubscription(String subscription) throws ApiException
      Delete subscription Delete subscription.
      Parameters:
      subscription - Subscription identifier (required)
      Throws:
      ApiException - if fails to make API call
    • deleteSubscriptionWithHttpInfo

      public ApiResponse<Void> deleteSubscriptionWithHttpInfo(String subscription) throws ApiException
      Delete subscription Delete subscription.
      Parameters:
      subscription - Subscription identifier (required)
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - if fails to make API call
    • getSubscription

      public SubscriptionResponse getSubscription(String subscription) throws ApiException
      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

      public ListSubscriptionsResponse listSubscriptions(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:
      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