import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { EventSubscriptions } from "../operationsInterfaces/index.js"; import { EventGridManagementClient } from "../eventGridManagementClient.js"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { EventSubscription, EventSubscriptionsListGlobalBySubscriptionOptionalParams, EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams, EventSubscriptionsListGlobalByResourceGroupOptionalParams, EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams, EventSubscriptionsListRegionalBySubscriptionOptionalParams, EventSubscriptionsListRegionalByResourceGroupOptionalParams, EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams, EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams, EventSubscriptionsListByResourceOptionalParams, EventSubscriptionsListByDomainTopicOptionalParams, EventSubscriptionsGetOptionalParams, EventSubscriptionsGetResponse, EventSubscriptionsCreateOrUpdateOptionalParams, EventSubscriptionsCreateOrUpdateResponse, EventSubscriptionsDeleteOptionalParams, EventSubscriptionUpdateParameters, EventSubscriptionsUpdateOptionalParams, EventSubscriptionsUpdateResponse, EventSubscriptionsGetFullUrlOptionalParams, EventSubscriptionsGetFullUrlResponse, EventSubscriptionsGetDeliveryAttributesOptionalParams, EventSubscriptionsGetDeliveryAttributesResponse } from "../models/index.js"; /** Class containing EventSubscriptions operations. */ export declare class EventSubscriptionsImpl implements EventSubscriptions { private readonly client; /** * Initialize a new instance of the class EventSubscriptions class. * @param client Reference to the service client */ constructor(client: EventGridManagementClient); /** * List all aggregated global event subscriptions under a specific Azure subscription. * @param options The options parameters. */ listGlobalBySubscription(options?: EventSubscriptionsListGlobalBySubscriptionOptionalParams): PagedAsyncIterableIterator; private listGlobalBySubscriptionPagingPage; private listGlobalBySubscriptionPagingAll; /** * List all global event subscriptions under an Azure subscription for a topic type. * @param topicTypeName Name of the topic type. * @param options The options parameters. */ listGlobalBySubscriptionForTopicType(topicTypeName: string, options?: EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams): PagedAsyncIterableIterator; private listGlobalBySubscriptionForTopicTypePagingPage; private listGlobalBySubscriptionForTopicTypePagingAll; /** * List all global event subscriptions under a specific Azure subscription and resource group. * @param resourceGroupName The name of the resource group within the user's subscription. * @param options The options parameters. */ listGlobalByResourceGroup(resourceGroupName: string, options?: EventSubscriptionsListGlobalByResourceGroupOptionalParams): PagedAsyncIterableIterator; private listGlobalByResourceGroupPagingPage; private listGlobalByResourceGroupPagingAll; /** * List all global event subscriptions under a resource group for a specific topic type. * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. * @param options The options parameters. */ listGlobalByResourceGroupForTopicType(resourceGroupName: string, topicTypeName: string, options?: EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams): PagedAsyncIterableIterator; private listGlobalByResourceGroupForTopicTypePagingPage; private listGlobalByResourceGroupForTopicTypePagingAll; /** * List all event subscriptions from the given location under a specific Azure subscription. * @param location Name of the location. * @param options The options parameters. */ listRegionalBySubscription(location: string, options?: EventSubscriptionsListRegionalBySubscriptionOptionalParams): PagedAsyncIterableIterator; private listRegionalBySubscriptionPagingPage; private listRegionalBySubscriptionPagingAll; /** * List all event subscriptions from the given location under a specific Azure subscription and * resource group. * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. * @param options The options parameters. */ listRegionalByResourceGroup(resourceGroupName: string, location: string, options?: EventSubscriptionsListRegionalByResourceGroupOptionalParams): PagedAsyncIterableIterator; private listRegionalByResourceGroupPagingPage; private listRegionalByResourceGroupPagingAll; /** * List all event subscriptions from the given location under a specific Azure subscription and topic * type. * @param location Name of the location. * @param topicTypeName Name of the topic type. * @param options The options parameters. */ listRegionalBySubscriptionForTopicType(location: string, topicTypeName: string, options?: EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams): PagedAsyncIterableIterator; private listRegionalBySubscriptionForTopicTypePagingPage; private listRegionalBySubscriptionForTopicTypePagingAll; /** * List all event subscriptions from the given location under a specific Azure subscription and * resource group and topic type. * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. * @param topicTypeName Name of the topic type. * @param options The options parameters. */ listRegionalByResourceGroupForTopicType(resourceGroupName: string, location: string, topicTypeName: string, options?: EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams): PagedAsyncIterableIterator; private listRegionalByResourceGroupForTopicTypePagingPage; private listRegionalByResourceGroupForTopicTypePagingAll; /** * List all event subscriptions that have been created for a specific resource. * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. * @param resourceTypeName Name of the resource type. * @param resourceName Name of the resource. * @param options The options parameters. */ listByResource(resourceGroupName: string, providerNamespace: string, resourceTypeName: string, resourceName: string, options?: EventSubscriptionsListByResourceOptionalParams): PagedAsyncIterableIterator; private listByResourcePagingPage; private listByResourcePagingAll; /** * List all event subscriptions that have been created for a specific domain topic. * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param options The options parameters. */ listByDomainTopic(resourceGroupName: string, domainName: string, topicName: string, options?: EventSubscriptionsListByDomainTopicOptionalParams): PagedAsyncIterableIterator; private listByDomainTopicPagingPage; private listByDomainTopicPagingAll; /** * Get properties of an event subscription. * @param scope The scope of the event subscription. The scope can be a subscription, or a resource * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. * For example, use '/subscriptions/{subscriptionId}/' for a subscription, * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for a resource, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription to be found. * @param options The options parameters. */ get(scope: string, eventSubscriptionName: string, options?: EventSubscriptionsGetOptionalParams): Promise; /** * Asynchronously creates a new event subscription or updates an existing event subscription based on * the specified scope. * @param scope The identifier of the resource to which the event subscription needs to be created or * updated. The scope can be a subscription, or a resource group, or a top level resource belonging to * a resource provider namespace, or an EventGrid topic. For example, use * '/subscriptions/{subscriptionId}/' for a subscription, * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for a resource, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names * must be between 3 and 64 characters in length and should use alphanumeric letters only. * @param eventSubscriptionInfo Event subscription properties containing the destination and filter * information. * @param options The options parameters. */ beginCreateOrUpdate(scope: string, eventSubscriptionName: string, eventSubscriptionInfo: EventSubscription, options?: EventSubscriptionsCreateOrUpdateOptionalParams): Promise, EventSubscriptionsCreateOrUpdateResponse>>; /** * Asynchronously creates a new event subscription or updates an existing event subscription based on * the specified scope. * @param scope The identifier of the resource to which the event subscription needs to be created or * updated. The scope can be a subscription, or a resource group, or a top level resource belonging to * a resource provider namespace, or an EventGrid topic. For example, use * '/subscriptions/{subscriptionId}/' for a subscription, * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for a resource, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription to be created. Event subscription names * must be between 3 and 64 characters in length and should use alphanumeric letters only. * @param eventSubscriptionInfo Event subscription properties containing the destination and filter * information. * @param options The options parameters. */ beginCreateOrUpdateAndWait(scope: string, eventSubscriptionName: string, eventSubscriptionInfo: EventSubscription, options?: EventSubscriptionsCreateOrUpdateOptionalParams): Promise; /** * Delete an existing event subscription. * @param scope The scope of the event subscription. The scope can be a subscription, or a resource * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. * For example, use '/subscriptions/{subscriptionId}/' for a subscription, * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for a resource, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription to be deleted. * @param options The options parameters. */ beginDelete(scope: string, eventSubscriptionName: string, options?: EventSubscriptionsDeleteOptionalParams): Promise, void>>; /** * Delete an existing event subscription. * @param scope The scope of the event subscription. The scope can be a subscription, or a resource * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. * For example, use '/subscriptions/{subscriptionId}/' for a subscription, * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for a resource, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription to be deleted. * @param options The options parameters. */ beginDeleteAndWait(scope: string, eventSubscriptionName: string, options?: EventSubscriptionsDeleteOptionalParams): Promise; /** * Asynchronously updates an existing event subscription. * @param scope The scope of existing event subscription. The scope can be a subscription, or a * resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for a resource, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription to be updated. * @param eventSubscriptionUpdateParameters Updated event subscription information. * @param options The options parameters. */ beginUpdate(scope: string, eventSubscriptionName: string, eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters, options?: EventSubscriptionsUpdateOptionalParams): Promise, EventSubscriptionsUpdateResponse>>; /** * Asynchronously updates an existing event subscription. * @param scope The scope of existing event subscription. The scope can be a subscription, or a * resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid * topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for a resource, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription to be updated. * @param eventSubscriptionUpdateParameters Updated event subscription information. * @param options The options parameters. */ beginUpdateAndWait(scope: string, eventSubscriptionName: string, eventSubscriptionUpdateParameters: EventSubscriptionUpdateParameters, options?: EventSubscriptionsUpdateOptionalParams): Promise; /** * Get the full endpoint URL for an event subscription. * @param scope The scope of the event subscription. The scope can be a subscription, or a resource * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. * For example, use '/subscriptions/{subscriptionId}/' for a subscription, * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for a resource, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. * @param options The options parameters. */ getFullUrl(scope: string, eventSubscriptionName: string, options?: EventSubscriptionsGetFullUrlOptionalParams): Promise; /** * List all aggregated global event subscriptions under a specific Azure subscription. * @param options The options parameters. */ private _listGlobalBySubscription; /** * List all global event subscriptions under an Azure subscription for a topic type. * @param topicTypeName Name of the topic type. * @param options The options parameters. */ private _listGlobalBySubscriptionForTopicType; /** * List all global event subscriptions under a specific Azure subscription and resource group. * @param resourceGroupName The name of the resource group within the user's subscription. * @param options The options parameters. */ private _listGlobalByResourceGroup; /** * List all global event subscriptions under a resource group for a specific topic type. * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. * @param options The options parameters. */ private _listGlobalByResourceGroupForTopicType; /** * List all event subscriptions from the given location under a specific Azure subscription. * @param location Name of the location. * @param options The options parameters. */ private _listRegionalBySubscription; /** * List all event subscriptions from the given location under a specific Azure subscription and * resource group. * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. * @param options The options parameters. */ private _listRegionalByResourceGroup; /** * List all event subscriptions from the given location under a specific Azure subscription and topic * type. * @param location Name of the location. * @param topicTypeName Name of the topic type. * @param options The options parameters. */ private _listRegionalBySubscriptionForTopicType; /** * List all event subscriptions from the given location under a specific Azure subscription and * resource group and topic type. * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. * @param topicTypeName Name of the topic type. * @param options The options parameters. */ private _listRegionalByResourceGroupForTopicType; /** * List all event subscriptions that have been created for a specific resource. * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. * @param resourceTypeName Name of the resource type. * @param resourceName Name of the resource. * @param options The options parameters. */ private _listByResource; /** * List all event subscriptions that have been created for a specific domain topic. * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param options The options parameters. */ private _listByDomainTopic; /** * Get all delivery attributes for an event subscription. * @param scope The scope of the event subscription. The scope can be a subscription, or a resource * group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. * For example, use '/subscriptions/{subscriptionId}/' for a subscription, * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' * for a resource, and * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' * for an EventGrid topic. * @param eventSubscriptionName Name of the event subscription. * @param options The options parameters. */ getDeliveryAttributes(scope: string, eventSubscriptionName: string, options?: EventSubscriptionsGetDeliveryAttributesOptionalParams): Promise; /** * ListGlobalBySubscriptionNext * @param nextLink The nextLink from the previous successful call to the ListGlobalBySubscription * method. * @param options The options parameters. */ private _listGlobalBySubscriptionNext; /** * ListGlobalBySubscriptionForTopicTypeNext * @param topicTypeName Name of the topic type. * @param nextLink The nextLink from the previous successful call to the * ListGlobalBySubscriptionForTopicType method. * @param options The options parameters. */ private _listGlobalBySubscriptionForTopicTypeNext; /** * ListGlobalByResourceGroupNext * @param resourceGroupName The name of the resource group within the user's subscription. * @param nextLink The nextLink from the previous successful call to the ListGlobalByResourceGroup * method. * @param options The options parameters. */ private _listGlobalByResourceGroupNext; /** * ListGlobalByResourceGroupForTopicTypeNext * @param resourceGroupName The name of the resource group within the user's subscription. * @param topicTypeName Name of the topic type. * @param nextLink The nextLink from the previous successful call to the * ListGlobalByResourceGroupForTopicType method. * @param options The options parameters. */ private _listGlobalByResourceGroupForTopicTypeNext; /** * ListRegionalBySubscriptionNext * @param location Name of the location. * @param nextLink The nextLink from the previous successful call to the ListRegionalBySubscription * method. * @param options The options parameters. */ private _listRegionalBySubscriptionNext; /** * ListRegionalByResourceGroupNext * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. * @param nextLink The nextLink from the previous successful call to the ListRegionalByResourceGroup * method. * @param options The options parameters. */ private _listRegionalByResourceGroupNext; /** * ListRegionalBySubscriptionForTopicTypeNext * @param location Name of the location. * @param topicTypeName Name of the topic type. * @param nextLink The nextLink from the previous successful call to the * ListRegionalBySubscriptionForTopicType method. * @param options The options parameters. */ private _listRegionalBySubscriptionForTopicTypeNext; /** * ListRegionalByResourceGroupForTopicTypeNext * @param resourceGroupName The name of the resource group within the user's subscription. * @param location Name of the location. * @param topicTypeName Name of the topic type. * @param nextLink The nextLink from the previous successful call to the * ListRegionalByResourceGroupForTopicType method. * @param options The options parameters. */ private _listRegionalByResourceGroupForTopicTypeNext; /** * ListByResourceNext * @param resourceGroupName The name of the resource group within the user's subscription. * @param providerNamespace Namespace of the provider of the topic. * @param resourceTypeName Name of the resource type. * @param resourceName Name of the resource. * @param nextLink The nextLink from the previous successful call to the ListByResource method. * @param options The options parameters. */ private _listByResourceNext; /** * ListByDomainTopicNext * @param resourceGroupName The name of the resource group within the user's subscription. * @param domainName Name of the top level domain. * @param topicName Name of the domain topic. * @param nextLink The nextLink from the previous successful call to the ListByDomainTopic method. * @param options The options parameters. */ private _listByDomainTopicNext; } //# sourceMappingURL=eventSubscriptions.d.ts.map