import type { EventMesh } from '../models/EventMesh';
import type { EventMeshesResponse } from '../models/EventMeshesResponse';
import type { EventMeshResponse } from '../models/EventMeshResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
export declare class EventMeshesService {
/**
* Get a list of event meshes
* Use this API to get a list of event meshes that match the given parameters.
Token Permissions: [ `modeled_event_mesh:get:*` ]
* @returns EventMeshesResponse The list of event meshes and the accompanying metadata.
* @throws ApiError
*/
static getEventMeshes({ xContextId, pageSize, pageNumber, name, environmentId, }: {
/** Optional context id the request is running. **/
xContextId?: string;
/** The number of event meshes to get per page. **/
pageSize?: number;
/** The page number to get. **/
pageNumber?: number;
/** Name of the event mesh to match on. **/
name?: string;
/** Match only event meshes in the given environment **/
environmentId?: string;
}): CancelablePromise;
/**
* Create an event mesh
* Create an event mesh.
* @returns EventMeshResponse Created an event mesh. The newly saved event mesh is returned in the response body.
* @throws ApiError
*/
static createEventMesh({ requestBody, xContextId, }: {
/** Event mesh. **/
requestBody: EventMesh;
/** Optional context id the request is running. **/
xContextId?: string;
}): CancelablePromise;
/**
* Get an event mesh
* Get a single event mesh by its ID.
Token Permissions: [ `modeled_event_mesh:get:{id}` ]
* @returns EventMeshResponse The event mesh.
* @throws ApiError
*/
static getEventMesh({ id, xContextId, }: {
/** The ID of the event mesh. **/
id: string;
/** Optional context id the request is running. **/
xContextId?: string;
}): CancelablePromise;
/**
* Delete an event mesh
* Use this API to delete an event mesh.
Token Permissions: [ `modeled_event_mesh:delete:*` ]
* @returns void
* @throws ApiError
*/
static deleteEventMesh({ id, xContextId, }: {
/** The ID of the event mesh. **/
id: string;
/** Optional context id the request is running. **/
xContextId?: string;
}): CancelablePromise;
/**
* Update an event mesh
* Use this API to update an event mesh. You only need to specify the fields that need to be updated.
* @returns EventMeshResponse The updated event mesh.
* @throws ApiError
*/
static updateEventMesh({ id, requestBody, xContextId, }: {
/** The ID of the event mesh to update. **/
id: string;
/** The event mesh. **/
requestBody: EventMesh;
/** Optional context id the request is running. **/
xContextId?: string;
}): CancelablePromise;
}