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
    • downloadFileFromResponse

      public File downloadFileFromResponse(HttpResponse<InputStream> response) throws ApiException
      Download file from the given response.
      Parameters:
      response - Response
      Returns:
      File
      Throws:
      ApiException - If fail to read file content from response and write to disk
    • createSubscription

      public SubscriptionResponse createSubscription(@Nonnull CreateSubscriptionRequest createSubscriptionRequest) throws ApiException
      Create subscription Create subscription.
      Parameters:
      createSubscriptionRequest - (required)
      Returns:
      SubscriptionResponse
      Throws:
      ApiException - if fails to make API call
    • createSubscription

      public SubscriptionResponse createSubscription(@Nonnull CreateSubscriptionRequest createSubscriptionRequest, Map<String,String> headers) throws ApiException
      Create subscription Create subscription.
      Parameters:
      createSubscriptionRequest - (required)
      headers - Optional headers to include in the request
      Returns:
      SubscriptionResponse
      Throws:
      ApiException - if fails to make API call
    • createSubscriptionWithHttpInfo

      public ApiResponse<SubscriptionResponse> createSubscriptionWithHttpInfo(@Nonnull CreateSubscriptionRequest createSubscriptionRequest) throws ApiException
      Create subscription Create subscription.
      Parameters:
      createSubscriptionRequest - (required)
      Returns:
      ApiResponse<SubscriptionResponse>
      Throws:
      ApiException - if fails to make API call
    • createSubscriptionWithHttpInfo

      public ApiResponse<SubscriptionResponse> createSubscriptionWithHttpInfo(@Nonnull CreateSubscriptionRequest createSubscriptionRequest, Map<String,String> headers) throws ApiException
      Create subscription Create subscription.
      Parameters:
      createSubscriptionRequest - (required)
      headers - Optional headers to include in the request
      Returns:
      ApiResponse<SubscriptionResponse>
      Throws:
      ApiException - if fails to make API call
    • deleteSubscription

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

      public void deleteSubscription(@Nonnull String subscription, Map<String,String> headers) throws ApiException
      Delete subscription Delete subscription.
      Parameters:
      subscription - Subscription identifier (required)
      headers - Optional headers to include in the request
      Throws:
      ApiException - if fails to make API call
    • deleteSubscriptionWithHttpInfo

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

      public ApiResponse<Void> deleteSubscriptionWithHttpInfo(@Nonnull String subscription, Map<String,String> headers) throws ApiException
      Delete subscription Delete subscription.
      Parameters:
      subscription - Subscription identifier (required)
      headers - Optional headers to include in the request
      Returns:
      ApiResponse<Void>
      Throws:
      ApiException - if fails to make API call
    • getSubscription

      public SubscriptionResponse getSubscription(@Nonnull String subscription) throws ApiException
      Get subscription Get subscription
      Parameters:
      subscription - Subscription identifier (required)
      Returns:
      SubscriptionResponse
      Throws:
      ApiException - if fails to make API call
    • getSubscription

      public SubscriptionResponse getSubscription(@Nonnull String subscription, Map<String,String> headers) throws ApiException
      Get subscription Get subscription
      Parameters:
      subscription - Subscription identifier (required)
      headers - Optional headers to include in the request
      Returns:
      SubscriptionResponse
      Throws:
      ApiException - if fails to make API call
    • getSubscriptionWithHttpInfo

      public ApiResponse<SubscriptionResponse> getSubscriptionWithHttpInfo(@Nonnull String subscription) throws ApiException
      Get subscription Get subscription
      Parameters:
      subscription - Subscription identifier (required)
      Returns:
      ApiResponse<SubscriptionResponse>
      Throws:
      ApiException - if fails to make API call
    • getSubscriptionWithHttpInfo

      public ApiResponse<SubscriptionResponse> getSubscriptionWithHttpInfo(@Nonnull String subscription, Map<String,String> headers) throws ApiException
      Get subscription Get subscription
      Parameters:
      subscription - Subscription identifier (required)
      headers - Optional headers to include in the request
      Returns:
      ApiResponse<SubscriptionResponse>
      Throws:
      ApiException - if fails to make API call
    • listSubscriptions

      public ListSubscriptionsResponse listSubscriptions(@Nullable String sink, @Nullable 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
    • listSubscriptions

      public ListSubscriptionsResponse listSubscriptions(@Nullable String sink, @Nullable String source, Map<String,String> headers) throws ApiException
      List subscriptions List all subscriptions.
      Parameters:
      sink - Filter by the exact specified sink. (optional)
      source - Filter by the exact specified source. (optional)
      headers - Optional headers to include in the request
      Returns:
      ListSubscriptionsResponse
      Throws:
      ApiException - if fails to make API call
    • listSubscriptionsWithHttpInfo

      public ApiResponse<ListSubscriptionsResponse> listSubscriptionsWithHttpInfo(@Nullable String sink, @Nullable 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
    • listSubscriptionsWithHttpInfo

      public ApiResponse<ListSubscriptionsResponse> listSubscriptionsWithHttpInfo(@Nullable String sink, @Nullable String source, Map<String,String> headers) throws ApiException
      List subscriptions List all subscriptions.
      Parameters:
      sink - Filter by the exact specified sink. (optional)
      source - Filter by the exact specified source. (optional)
      headers - Optional headers to include in the request
      Returns:
      ApiResponse<ListSubscriptionsResponse>
      Throws:
      ApiException - if fails to make API call