@azure/eventgrid
Version:
An isomorphic client library for the Azure Event Grid service.
35 lines • 2.08 kB
TypeScript
import * as coreClient from "@azure/core-client";
import { GeneratedClientOptionalParams, EventGridEvent, PublishEventGridEventsOptionalParams, CloudEvent, PublishCloudEventEventsOptionalParams, PublishCustomEventEventsOptionalParams } from "./models/index.js";
/** @internal */
export declare class GeneratedClient extends coreClient.ServiceClient {
apiVersion: string;
/**
* Initializes a new instance of the GeneratedClient class.
* @param options The parameter options
*/
constructor(options?: GeneratedClientOptionalParams);
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
private addCustomApiVersionPolicy;
/**
* Publishes a batch of events to an Azure Event Grid topic.
* @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net
* @param events An array of events to be published to Event Grid.
* @param options The options parameters.
*/
publishEventGridEvents(topicHostname: string, events: EventGridEvent[], options?: PublishEventGridEventsOptionalParams): Promise<void>;
/**
* Publishes a batch of events to an Azure Event Grid topic.
* @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net
* @param events An array of events to be published to Event Grid.
* @param options The options parameters.
*/
publishCloudEventEvents(topicHostname: string, events: CloudEvent[], options?: PublishCloudEventEventsOptionalParams): Promise<void>;
/**
* Publishes a batch of events to an Azure Event Grid topic.
* @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net
* @param events An array of events to be published to Event Grid.
* @param options The options parameters.
*/
publishCustomEventEvents(topicHostname: string, events: Record<string, unknown>[], options?: PublishCustomEventEventsOptionalParams): Promise<void>;
}
//# sourceMappingURL=generatedClient.d.ts.map