All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openmetadata.client.api.EventsApi Maven / Gradle / Ivy

There is a newer version: 1.5.11
Show newest version
package org.openmetadata.client.api;

import org.openmetadata.client.ApiClient;
import org.openmetadata.client.EncodingUtils;
import org.openmetadata.client.model.ApiResponse;

import org.openmetadata.client.model.CreateEventSubscription;
import org.openmetadata.client.model.EntityHistory;
import org.openmetadata.client.model.EventList;
import org.openmetadata.client.model.EventSubscription;
import org.openmetadata.client.model.EventSubscriptionList;
import org.openmetadata.client.model.ResultListFilterResourceDescriptor;
import org.openmetadata.client.model.SubscriptionStatus;
import java.util.UUID;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import feign.*;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-25T06:10:38.496414726Z[Etc/UTC]")
public interface EventsApi extends ApiClient.Api {


  /**
   * Check If the Publisher Processed All Events
   * Return a boolean 'true' or 'false' to indicate if the publisher processed all events
   * @param id Id of the Event Subscription (required)
   * @return EntityHistory
   */
  @RequestLine("GET /v1/events/subscriptions/{id}/processedEvents")
  @Headers({
    "Accept: application/json",
  })
  EntityHistory checkIfThePublisherProcessedALlEvents(@Param("id") UUID id);

  /**
   * Check If the Publisher Processed All Events
   * Similar to checkIfThePublisherProcessedALlEvents but it also returns the http response headers .
   * Return a boolean 'true' or 'false' to indicate if the publisher processed all events
   * @param id Id of the Event Subscription (required)
   * @return A ApiResponse that wraps the response boyd and the http headers.
   */
  @RequestLine("GET /v1/events/subscriptions/{id}/processedEvents")
  @Headers({
    "Accept: application/json",
  })
  ApiResponse checkIfThePublisherProcessedALlEventsWithHttpInfo(@Param("id") UUID id);



  /**
   * Create a new Event Subscription
   * Create a new Event Subscription
   * @param createEventSubscription  (optional)
   * @return CreateEventSubscription
   */
  @RequestLine("POST /v1/events/subscriptions")
  @Headers({
    "Content-Type: application/json",
    "Accept: application/json",
  })
  CreateEventSubscription createEventSubscription(CreateEventSubscription createEventSubscription);

  /**
   * Create a new Event Subscription
   * Similar to createEventSubscription but it also returns the http response headers .
   * Create a new Event Subscription
   * @param createEventSubscription  (optional)
   * @return A ApiResponse that wraps the response boyd and the http headers.
   */
  @RequestLine("POST /v1/events/subscriptions")
  @Headers({
    "Content-Type: application/json",
    "Accept: application/json",
  })
  ApiResponse createEventSubscriptionWithHttpInfo(CreateEventSubscription createEventSubscription);



  /**
   * Updated an existing or create a new Event Subscription
   * Updated an existing or create a new Event Subscription
   * @param createEventSubscription  (optional)
   * @return CreateEventSubscription
   */
  @RequestLine("PUT /v1/events/subscriptions")
  @Headers({
    "Content-Type: application/json",
    "Accept: application/json",
  })
  CreateEventSubscription createOrUpdateEventSubscription(CreateEventSubscription createEventSubscription);

  /**
   * Updated an existing or create a new Event Subscription
   * Similar to createOrUpdateEventSubscription but it also returns the http response headers .
   * Updated an existing or create a new Event Subscription
   * @param createEventSubscription  (optional)
   * @return A ApiResponse that wraps the response boyd and the http headers.
   */
  @RequestLine("PUT /v1/events/subscriptions")
  @Headers({
    "Content-Type: application/json",
    "Accept: application/json",
  })
  ApiResponse createOrUpdateEventSubscriptionWithHttpInfo(CreateEventSubscription createEventSubscription);



  /**
   * Delete an Event Subscription by Id
   * Delete an Event Subscription
   * @param id Id of the Event Subscription (required)
   * @return EventSubscription
   */
  @RequestLine("DELETE /v1/events/subscriptions/{id}")
  @Headers({
    "Accept: application/json",
  })
  EventSubscription deleteEventSubscription(@Param("id") UUID id);

  /**
   * Delete an Event Subscription by Id
   * Similar to deleteEventSubscription but it also returns the http response headers .
   * Delete an Event Subscription
   * @param id Id of the Event Subscription (required)
   * @return A ApiResponse that wraps the response boyd and the http headers.
   */
  @RequestLine("DELETE /v1/events/subscriptions/{id}")
  @Headers({
    "Accept: application/json",
  })
  ApiResponse deleteEventSubscriptionWithHttpInfo(@Param("id") UUID id);



  /**
   * Delete an Event Subscription by name
   * Delete an Event Subscription by given `name`.
   * @param name Name of the Event Subscription (required)
   */
  @RequestLine("DELETE /v1/events/subscriptions/name/{name}")
  @Headers({
    "Accept: application/json",
  })
  void deleteEventSubscriptionByName(@Param("name") String name);

  /**
   * Delete an Event Subscription by name
   * Similar to deleteEventSubscriptionByName but it also returns the http response headers .
   * Delete an Event Subscription by given `name`.
   * @param name Name of the Event Subscription (required)
   */
  @RequestLine("DELETE /v1/events/subscriptions/name/{name}")
  @Headers({
    "Accept: application/json",
  })
  ApiResponse deleteEventSubscriptionByNameWithHttpInfo(@Param("name") String name);



  /**
   * Get a event Subscription by ID
   * Get a event Subscription by given Id
   * @param id Id of the Event Subscription (required)
   * @param fields Fields requested in the returned resource (optional)
   * @return EventSubscription
   */
  @RequestLine("GET /v1/events/subscriptions/{id}?fields={fields}")
  @Headers({
    "Accept: application/json",
  })
  EventSubscription getEventSubscriptionByID(@Param("id") UUID id, @Param("fields") String fields);

  /**
   * Get a event Subscription by ID
   * Similar to getEventSubscriptionByID but it also returns the http response headers .
   * Get a event Subscription by given Id
   * @param id Id of the Event Subscription (required)
   * @param fields Fields requested in the returned resource (optional)
   * @return A ApiResponse that wraps the response boyd and the http headers.
   */
  @RequestLine("GET /v1/events/subscriptions/{id}?fields={fields}")
  @Headers({
    "Accept: application/json",
  })
  ApiResponse getEventSubscriptionByIDWithHttpInfo(@Param("id") UUID id, @Param("fields") String fields);


  /**
   * Get a event Subscription by ID
   * Get a event Subscription by given Id
   * Note, this is equivalent to the other getEventSubscriptionByID method,
   * but with the query parameters collected into a single Map parameter. This
   * is convenient for services with optional query parameters, especially when
   * used with the {@link GetEventSubscriptionByIDQueryParams} class that allows for
   * building up this map in a fluent style.
   * @param id Id of the Event Subscription (required)
   * @param queryParams Map of query parameters as name-value pairs
   *   

The following elements may be specified in the query map:

*
    *
  • fields - Fields requested in the returned resource (optional)
  • *
* @return EventSubscription */ @RequestLine("GET /v1/events/subscriptions/{id}?fields={fields}") @Headers({ "Accept: application/json", }) EventSubscription getEventSubscriptionByID(@Param("id") UUID id, @QueryMap(encoded=true) GetEventSubscriptionByIDQueryParams queryParams); /** * Get a event Subscription by ID * Get a event Subscription by given Id * Note, this is equivalent to the other getEventSubscriptionByID that receives the query parameters as a map, * but this one also exposes the Http response headers * @param id Id of the Event Subscription (required) * @param queryParams Map of query parameters as name-value pairs *

The following elements may be specified in the query map:

*
    *
  • fields - Fields requested in the returned resource (optional)
  • *
* @return EventSubscription */ @RequestLine("GET /v1/events/subscriptions/{id}?fields={fields}") @Headers({ "Accept: application/json", }) ApiResponse getEventSubscriptionByIDWithHttpInfo(@Param("id") UUID id, @QueryMap(encoded=true) GetEventSubscriptionByIDQueryParams queryParams); /** * A convenience class for generating query parameters for the * getEventSubscriptionByID method in a fluent style. */ public static class GetEventSubscriptionByIDQueryParams extends HashMap { public GetEventSubscriptionByIDQueryParams fields(final String value) { put("fields", EncodingUtils.encode(value)); return this; } } /** * Get an Event Subscription by name * Get an Event Subscription by name. * @param eventSubscriptionName Name of the Event Subscription (required) * @param fields Fields requested in the returned resource (optional) * @return EventSubscription */ @RequestLine("GET /v1/events/subscriptions/name/{eventSubscriptionName}?fields={fields}") @Headers({ "Accept: application/json", }) EventSubscription getEventSubscriptionByName(@Param("eventSubscriptionName") String eventSubscriptionName, @Param("fields") String fields); /** * Get an Event Subscription by name * Similar to getEventSubscriptionByName but it also returns the http response headers . * Get an Event Subscription by name. * @param eventSubscriptionName Name of the Event Subscription (required) * @param fields Fields requested in the returned resource (optional) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("GET /v1/events/subscriptions/name/{eventSubscriptionName}?fields={fields}") @Headers({ "Accept: application/json", }) ApiResponse getEventSubscriptionByNameWithHttpInfo(@Param("eventSubscriptionName") String eventSubscriptionName, @Param("fields") String fields); /** * Get an Event Subscription by name * Get an Event Subscription by name. * Note, this is equivalent to the other getEventSubscriptionByName method, * but with the query parameters collected into a single Map parameter. This * is convenient for services with optional query parameters, especially when * used with the {@link GetEventSubscriptionByNameQueryParams} class that allows for * building up this map in a fluent style. * @param eventSubscriptionName Name of the Event Subscription (required) * @param queryParams Map of query parameters as name-value pairs *

The following elements may be specified in the query map:

*
    *
  • fields - Fields requested in the returned resource (optional)
  • *
* @return EventSubscription */ @RequestLine("GET /v1/events/subscriptions/name/{eventSubscriptionName}?fields={fields}") @Headers({ "Accept: application/json", }) EventSubscription getEventSubscriptionByName(@Param("eventSubscriptionName") String eventSubscriptionName, @QueryMap(encoded=true) GetEventSubscriptionByNameQueryParams queryParams); /** * Get an Event Subscription by name * Get an Event Subscription by name. * Note, this is equivalent to the other getEventSubscriptionByName that receives the query parameters as a map, * but this one also exposes the Http response headers * @param eventSubscriptionName Name of the Event Subscription (required) * @param queryParams Map of query parameters as name-value pairs *

The following elements may be specified in the query map:

*
    *
  • fields - Fields requested in the returned resource (optional)
  • *
* @return EventSubscription */ @RequestLine("GET /v1/events/subscriptions/name/{eventSubscriptionName}?fields={fields}") @Headers({ "Accept: application/json", }) ApiResponse getEventSubscriptionByNameWithHttpInfo(@Param("eventSubscriptionName") String eventSubscriptionName, @QueryMap(encoded=true) GetEventSubscriptionByNameQueryParams queryParams); /** * A convenience class for generating query parameters for the * getEventSubscriptionByName method in a fluent style. */ public static class GetEventSubscriptionByNameQueryParams extends HashMap { public GetEventSubscriptionByNameQueryParams fields(final String value) { put("fields", EncodingUtils.encode(value)); return this; } } /** * Get Event Subscription status * Get a event Subscription status by given Name * @param eventSubscriptionName Name of the Event Subscription (required) * @param destinationId Destination Id (required) * @return SubscriptionStatus */ @RequestLine("GET /v1/events/subscriptions/name/{eventSubscriptionName}/status/{destinationId}") @Headers({ "Accept: application/json", }) SubscriptionStatus getEventSubscriptionStatus(@Param("eventSubscriptionName") String eventSubscriptionName, @Param("destinationId") UUID destinationId); /** * Get Event Subscription status * Similar to getEventSubscriptionStatus but it also returns the http response headers . * Get a event Subscription status by given Name * @param eventSubscriptionName Name of the Event Subscription (required) * @param destinationId Destination Id (required) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("GET /v1/events/subscriptions/name/{eventSubscriptionName}/status/{destinationId}") @Headers({ "Accept: application/json", }) ApiResponse getEventSubscriptionStatusWithHttpInfo(@Param("eventSubscriptionName") String eventSubscriptionName, @Param("destinationId") UUID destinationId); /** * Get Event Subscription status by Id * Get a event Subscription status by given Name * @param eventSubscriptionId Name of the Event Subscription (required) * @param destinationId Destination Id (required) * @return SubscriptionStatus */ @RequestLine("GET /v1/events/subscriptions/{eventSubscriptionId}/status/{destinationId}") @Headers({ "Accept: application/json", }) SubscriptionStatus getEventSubscriptionStatusById(@Param("eventSubscriptionId") UUID eventSubscriptionId, @Param("destinationId") UUID destinationId); /** * Get Event Subscription status by Id * Similar to getEventSubscriptionStatusById but it also returns the http response headers . * Get a event Subscription status by given Name * @param eventSubscriptionId Name of the Event Subscription (required) * @param destinationId Destination Id (required) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("GET /v1/events/subscriptions/{eventSubscriptionId}/status/{destinationId}") @Headers({ "Accept: application/json", }) ApiResponse getEventSubscriptionStatusByIdWithHttpInfo(@Param("eventSubscriptionId") UUID eventSubscriptionId, @Param("destinationId") UUID destinationId); /** * Get a version of the Event Subscription * Get a version of the Event Subscription by given `Id` * @param id Id of the Event Subscription (required) * @param version Event Subscription version number in the form `major`.`minor` (required) * @return EventSubscription */ @RequestLine("GET /v1/events/subscriptions/{id}/versions/{version}") @Headers({ "Accept: application/json", }) EventSubscription getSpecificEventSubscriptionVersion(@Param("id") UUID id, @Param("version") String version); /** * Get a version of the Event Subscription * Similar to getSpecificEventSubscriptionVersion but it also returns the http response headers . * Get a version of the Event Subscription by given `Id` * @param id Id of the Event Subscription (required) * @param version Event Subscription version number in the form `major`.`minor` (required) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("GET /v1/events/subscriptions/{id}/versions/{version}") @Headers({ "Accept: application/json", }) ApiResponse getSpecificEventSubscriptionVersionWithHttpInfo(@Param("id") UUID id, @Param("version") String version); /** * List Event Subscription versions * Get a list of all the versions of an Event Subscription identified by `Id` * @param id Id of the Event Subscription (required) * @return EntityHistory */ @RequestLine("GET /v1/events/subscriptions/{id}/versions") @Headers({ "Accept: application/json", }) EntityHistory listAllEventSubscriptionVersion(@Param("id") UUID id); /** * List Event Subscription versions * Similar to listAllEventSubscriptionVersion but it also returns the http response headers . * Get a list of all the versions of an Event Subscription identified by `Id` * @param id Id of the Event Subscription (required) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("GET /v1/events/subscriptions/{id}/versions") @Headers({ "Accept: application/json", }) ApiResponse listAllEventSubscriptionVersionWithHttpInfo(@Param("id") UUID id); /** * Get change events * Get a list of change events matching event types, entity type, from a given date * @param timestamp Events starting from this unix timestamp in milliseconds (required) * @param entityCreated List of comma separated entities requested for `entityCreated` event. When set to `*` all entities will be returned (optional) * @param entityUpdated List of comma separated entities requested for `entityUpdated` event. When set to `*` all entities will be returned (optional) * @param entityRestored List of comma separated entities requested for `entityRestored` event. When set to `*` all entities will be returned (optional) * @param entityDeleted List of comma separated entities requested for `entityCreated` event. When set to `*` all entities will be returned (optional) * @return EventList */ @RequestLine("GET /v1/events?entityCreated={entityCreated}&entityUpdated={entityUpdated}&entityRestored={entityRestored}&entityDeleted={entityDeleted}×tamp={timestamp}") @Headers({ "Accept: application/json", }) EventList listChangeEvents(@Param("timestamp") Long timestamp, @Param("entityCreated") String entityCreated, @Param("entityUpdated") String entityUpdated, @Param("entityRestored") String entityRestored, @Param("entityDeleted") String entityDeleted); /** * Get change events * Similar to listChangeEvents but it also returns the http response headers . * Get a list of change events matching event types, entity type, from a given date * @param timestamp Events starting from this unix timestamp in milliseconds (required) * @param entityCreated List of comma separated entities requested for `entityCreated` event. When set to `*` all entities will be returned (optional) * @param entityUpdated List of comma separated entities requested for `entityUpdated` event. When set to `*` all entities will be returned (optional) * @param entityRestored List of comma separated entities requested for `entityRestored` event. When set to `*` all entities will be returned (optional) * @param entityDeleted List of comma separated entities requested for `entityCreated` event. When set to `*` all entities will be returned (optional) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("GET /v1/events?entityCreated={entityCreated}&entityUpdated={entityUpdated}&entityRestored={entityRestored}&entityDeleted={entityDeleted}×tamp={timestamp}") @Headers({ "Accept: application/json", }) ApiResponse listChangeEventsWithHttpInfo(@Param("timestamp") Long timestamp, @Param("entityCreated") String entityCreated, @Param("entityUpdated") String entityUpdated, @Param("entityRestored") String entityRestored, @Param("entityDeleted") String entityDeleted); /** * Get change events * Get a list of change events matching event types, entity type, from a given date * Note, this is equivalent to the other listChangeEvents method, * but with the query parameters collected into a single Map parameter. This * is convenient for services with optional query parameters, especially when * used with the {@link ListChangeEventsQueryParams} class that allows for * building up this map in a fluent style. * @param queryParams Map of query parameters as name-value pairs *

The following elements may be specified in the query map:

*
    *
  • entityCreated - List of comma separated entities requested for `entityCreated` event. When set to `*` all entities will be returned (optional)
  • *
  • entityUpdated - List of comma separated entities requested for `entityUpdated` event. When set to `*` all entities will be returned (optional)
  • *
  • entityRestored - List of comma separated entities requested for `entityRestored` event. When set to `*` all entities will be returned (optional)
  • *
  • entityDeleted - List of comma separated entities requested for `entityCreated` event. When set to `*` all entities will be returned (optional)
  • *
  • timestamp - Events starting from this unix timestamp in milliseconds (required)
  • *
* @return EventList */ @RequestLine("GET /v1/events?entityCreated={entityCreated}&entityUpdated={entityUpdated}&entityRestored={entityRestored}&entityDeleted={entityDeleted}×tamp={timestamp}") @Headers({ "Accept: application/json", }) EventList listChangeEvents(@QueryMap(encoded=true) ListChangeEventsQueryParams queryParams); /** * Get change events * Get a list of change events matching event types, entity type, from a given date * Note, this is equivalent to the other listChangeEvents that receives the query parameters as a map, * but this one also exposes the Http response headers * @param queryParams Map of query parameters as name-value pairs *

The following elements may be specified in the query map:

*
    *
  • entityCreated - List of comma separated entities requested for `entityCreated` event. When set to `*` all entities will be returned (optional)
  • *
  • entityUpdated - List of comma separated entities requested for `entityUpdated` event. When set to `*` all entities will be returned (optional)
  • *
  • entityRestored - List of comma separated entities requested for `entityRestored` event. When set to `*` all entities will be returned (optional)
  • *
  • entityDeleted - List of comma separated entities requested for `entityCreated` event. When set to `*` all entities will be returned (optional)
  • *
  • timestamp - Events starting from this unix timestamp in milliseconds (required)
  • *
* @return EventList */ @RequestLine("GET /v1/events?entityCreated={entityCreated}&entityUpdated={entityUpdated}&entityRestored={entityRestored}&entityDeleted={entityDeleted}×tamp={timestamp}") @Headers({ "Accept: application/json", }) ApiResponse listChangeEventsWithHttpInfo(@QueryMap(encoded=true) ListChangeEventsQueryParams queryParams); /** * A convenience class for generating query parameters for the * listChangeEvents method in a fluent style. */ public static class ListChangeEventsQueryParams extends HashMap { public ListChangeEventsQueryParams entityCreated(final String value) { put("entityCreated", EncodingUtils.encode(value)); return this; } public ListChangeEventsQueryParams entityUpdated(final String value) { put("entityUpdated", EncodingUtils.encode(value)); return this; } public ListChangeEventsQueryParams entityRestored(final String value) { put("entityRestored", EncodingUtils.encode(value)); return this; } public ListChangeEventsQueryParams entityDeleted(final String value) { put("entityDeleted", EncodingUtils.encode(value)); return this; } public ListChangeEventsQueryParams timestamp(final Long value) { put("timestamp", EncodingUtils.encode(value)); return this; } } /** * Get list of Event Subscriptions Resources used in filtering Event Subscription * Get list of EventSubscription functions used in filtering conditions in Event Subscription * @param alertType AlertType (required) * @return ResultListFilterResourceDescriptor */ @RequestLine("GET /v1/events/subscriptions/{alertType}/resources") @Headers({ "Accept: application/json", }) ResultListFilterResourceDescriptor listEventSubscriptionResources(@Param("alertType") String alertType); /** * Get list of Event Subscriptions Resources used in filtering Event Subscription * Similar to listEventSubscriptionResources but it also returns the http response headers . * Get list of EventSubscription functions used in filtering conditions in Event Subscription * @param alertType AlertType (required) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("GET /v1/events/subscriptions/{alertType}/resources") @Headers({ "Accept: application/json", }) ApiResponse listEventSubscriptionResourcesWithHttpInfo(@Param("alertType") String alertType); /** * List all available Event Subscriptions * Get a list of All available Event Subscriptions * @param fields Fields requested in the returned resource (optional) * @param limit Limit the number event subscriptions returned. (1 to 1000000, default = 10) (optional, default to 10) * @param alertType alertType filter. Notification / Observability (optional) * @param before Returns list of event subscriptions before this cursor (optional) * @param after Returns list of event subscriptions after this cursor (optional) * @return EventSubscriptionList */ @RequestLine("GET /v1/events/subscriptions?fields={fields}&limit={limit}&alertType={alertType}&before={before}&after={after}") @Headers({ "Accept: application/json", }) EventSubscriptionList listEventSubscriptions(@Param("fields") String fields, @Param("limit") Integer limit, @Param("alertType") String alertType, @Param("before") String before, @Param("after") String after); /** * List all available Event Subscriptions * Similar to listEventSubscriptions but it also returns the http response headers . * Get a list of All available Event Subscriptions * @param fields Fields requested in the returned resource (optional) * @param limit Limit the number event subscriptions returned. (1 to 1000000, default = 10) (optional, default to 10) * @param alertType alertType filter. Notification / Observability (optional) * @param before Returns list of event subscriptions before this cursor (optional) * @param after Returns list of event subscriptions after this cursor (optional) * @return A ApiResponse that wraps the response boyd and the http headers. */ @RequestLine("GET /v1/events/subscriptions?fields={fields}&limit={limit}&alertType={alertType}&before={before}&after={after}") @Headers({ "Accept: application/json", }) ApiResponse listEventSubscriptionsWithHttpInfo(@Param("fields") String fields, @Param("limit") Integer limit, @Param("alertType") String alertType, @Param("before") String before, @Param("after") String after); /** * List all available Event Subscriptions * Get a list of All available Event Subscriptions * Note, this is equivalent to the other listEventSubscriptions method, * but with the query parameters collected into a single Map parameter. This * is convenient for services with optional query parameters, especially when * used with the {@link ListEventSubscriptionsQueryParams} class that allows for * building up this map in a fluent style. * @param queryParams Map of query parameters as name-value pairs *

The following elements may be specified in the query map:

*
    *
  • fields - Fields requested in the returned resource (optional)
  • *
  • limit - Limit the number event subscriptions returned. (1 to 1000000, default = 10) (optional, default to 10)
  • *
  • alertType - alertType filter. Notification / Observability (optional)
  • *
  • before - Returns list of event subscriptions before this cursor (optional)
  • *
  • after - Returns list of event subscriptions after this cursor (optional)
  • *
* @return EventSubscriptionList */ @RequestLine("GET /v1/events/subscriptions?fields={fields}&limit={limit}&alertType={alertType}&before={before}&after={after}") @Headers({ "Accept: application/json", }) EventSubscriptionList listEventSubscriptions(@QueryMap(encoded=true) ListEventSubscriptionsQueryParams queryParams); /** * List all available Event Subscriptions * Get a list of All available Event Subscriptions * Note, this is equivalent to the other listEventSubscriptions that receives the query parameters as a map, * but this one also exposes the Http response headers * @param queryParams Map of query parameters as name-value pairs *

The following elements may be specified in the query map:

*
    *
  • fields - Fields requested in the returned resource (optional)
  • *
  • limit - Limit the number event subscriptions returned. (1 to 1000000, default = 10) (optional, default to 10)
  • *
  • alertType - alertType filter. Notification / Observability (optional)
  • *
  • before - Returns list of event subscriptions before this cursor (optional)
  • *
  • after - Returns list of event subscriptions after this cursor (optional)
  • *
* @return EventSubscriptionList */ @RequestLine("GET /v1/events/subscriptions?fields={fields}&limit={limit}&alertType={alertType}&before={before}&after={after}") @Headers({ "Accept: application/json", }) ApiResponse listEventSubscriptionsWithHttpInfo(@QueryMap(encoded=true) ListEventSubscriptionsQueryParams queryParams); /** * A convenience class for generating query parameters for the * listEventSubscriptions method in a fluent style. */ public static class ListEventSubscriptionsQueryParams extends HashMap { public ListEventSubscriptionsQueryParams fields(final String value) { put("fields", EncodingUtils.encode(value)); return this; } public ListEventSubscriptionsQueryParams limit(final Integer value) { put("limit", EncodingUtils.encode(value)); return this; } public ListEventSubscriptionsQueryParams alertType(final String value) { put("alertType", EncodingUtils.encode(value)); return this; } public ListEventSubscriptionsQueryParams before(final String value) { put("before", EncodingUtils.encode(value)); return this; } public ListEventSubscriptionsQueryParams after(final String value) { put("after", EncodingUtils.encode(value)); return this; } } /** * Update an Event Subscriptions by name. * Update an existing Event Subscriptions using JsonPatch. * @param fqn Name of the event Subscription (required) * @param body JsonPatch with array of operations (optional) * JsonPatch RFC * @see Update an Event Subscriptions by name. Documentation */ @RequestLine("PATCH /v1/events/subscriptions/name/{fqn}") @Headers({ "Content-Type: application/json-patch+json", "Accept: application/json", }) void patchEventSubscription(@Param("fqn") String fqn, Object body); /** * Update an Event Subscriptions by name. * Similar to patchEventSubscription but it also returns the http response headers . * Update an existing Event Subscriptions using JsonPatch. * @param fqn Name of the event Subscription (required) * @param body JsonPatch with array of operations (optional) * JsonPatch RFC * @see Update an Event Subscriptions by name. Documentation */ @RequestLine("PATCH /v1/events/subscriptions/name/{fqn}") @Headers({ "Content-Type: application/json-patch+json", "Accept: application/json", }) ApiResponse patchEventSubscriptionWithHttpInfo(@Param("fqn") String fqn, Object body); /** * Update an Event Subscriptions * Update an existing Event Subscriptions using JsonPatch. * @param id Id of the event Subscription (required) * @param body JsonPatch with array of operations (optional) * JsonPatch RFC * @see Update an Event Subscriptions Documentation */ @RequestLine("PATCH /v1/events/subscriptions/{id}") @Headers({ "Content-Type: application/json-patch+json", "Accept: application/json", }) void patchEventSubscription1(@Param("id") UUID id, Object body); /** * Update an Event Subscriptions * Similar to patchEventSubscription1 but it also returns the http response headers . * Update an existing Event Subscriptions using JsonPatch. * @param id Id of the event Subscription (required) * @param body JsonPatch with array of operations (optional) * JsonPatch RFC * @see Update an Event Subscriptions Documentation */ @RequestLine("PATCH /v1/events/subscriptions/{id}") @Headers({ "Content-Type: application/json-patch+json", "Accept: application/json", }) ApiResponse patchEventSubscription1WithHttpInfo(@Param("id") UUID id, Object body); /** * Validate a given condition * Validate a given condition expression used in filtering rules. * @param expression Expression to validate (required) */ @RequestLine("GET /v1/events/subscriptions/validation/condition/{expression}") @Headers({ "Accept: application/json", }) void validateCondition(@Param("expression") String expression); /** * Validate a given condition * Similar to validateCondition but it also returns the http response headers . * Validate a given condition expression used in filtering rules. * @param expression Expression to validate (required) */ @RequestLine("GET /v1/events/subscriptions/validation/condition/{expression}") @Headers({ "Accept: application/json", }) ApiResponse validateConditionWithHttpInfo(@Param("expression") String expression); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy