diff --git a/sdk/eventgrid/arm-eventgrid/LICENSE.txt b/sdk/eventgrid/arm-eventgrid/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/eventgrid/arm-eventgrid/LICENSE.txt +++ b/sdk/eventgrid/arm-eventgrid/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/eventgrid/arm-eventgrid/README.md b/sdk/eventgrid/arm-eventgrid/README.md index 7eb240824021..9a71e7ac5a15 100644 --- a/sdk/eventgrid/arm-eventgrid/README.md +++ b/sdk/eventgrid/arm-eventgrid/README.md @@ -15,7 +15,7 @@ npm install @azure/arm-eventgrid ### How to use -#### nodejs - Authentication, client creation and get domains as an example written in TypeScript. +#### nodejs - client creation and get domains as an example written in TypeScript. ##### Install @azure/ms-rest-nodeauth @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0" ##### Sample code +While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package ```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { EventGridManagementClient, EventGridManagementModels, EventGridManagementMappers } from "@azure/arm-eventgrid"; +const msRestNodeAuth = require("@azure/ms-rest-nodeauth"); +const { EventGridManagementClient } = require("@azure/arm-eventgrid"); const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; msRestNodeAuth.interactiveLogin().then((creds) => { diff --git a/sdk/eventgrid/arm-eventgrid/rollup.config.js b/sdk/eventgrid/arm-eventgrid/rollup.config.js index ec1bb9075665..c26f05776166 100644 --- a/sdk/eventgrid/arm-eventgrid/rollup.config.js +++ b/sdk/eventgrid/arm-eventgrid/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts b/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts index c38747ad7094..e8f75e082283 100644 --- a/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts +++ b/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -19,11 +18,19 @@ class EventGridManagementClient extends EventGridManagementClientContext { // Operation groups domains: operations.Domains; domainTopics: operations.DomainTopics; + eventChannels: operations.EventChannels; eventSubscriptions: operations.EventSubscriptions; + systemTopicEventSubscriptions: operations.SystemTopicEventSubscriptions; + partnerTopicEventSubscriptions: operations.PartnerTopicEventSubscriptions; operations: operations.Operations; - topics: operations.Topics; + partnerNamespaces: operations.PartnerNamespaces; + partnerRegistrations: operations.PartnerRegistrations; + partnerTopics: operations.PartnerTopics; privateEndpointConnections: operations.PrivateEndpointConnections; privateLinkResources: operations.PrivateLinkResources; + systemTopics: operations.SystemTopics; + topics: operations.Topics; + extensionTopics: operations.ExtensionTopics; topicTypes: operations.TopicTypes; /** @@ -37,11 +44,19 @@ class EventGridManagementClient extends EventGridManagementClientContext { super(credentials, subscriptionId, options); this.domains = new operations.Domains(this); this.domainTopics = new operations.DomainTopics(this); + this.eventChannels = new operations.EventChannels(this); this.eventSubscriptions = new operations.EventSubscriptions(this); + this.systemTopicEventSubscriptions = new operations.SystemTopicEventSubscriptions(this); + this.partnerTopicEventSubscriptions = new operations.PartnerTopicEventSubscriptions(this); this.operations = new operations.Operations(this); - this.topics = new operations.Topics(this); + this.partnerNamespaces = new operations.PartnerNamespaces(this); + this.partnerRegistrations = new operations.PartnerRegistrations(this); + this.partnerTopics = new operations.PartnerTopics(this); this.privateEndpointConnections = new operations.PrivateEndpointConnections(this); this.privateLinkResources = new operations.PrivateLinkResources(this); + this.systemTopics = new operations.SystemTopics(this); + this.topics = new operations.Topics(this); + this.extensionTopics = new operations.ExtensionTopics(this); this.topicTypes = new operations.TopicTypes(this); } } diff --git a/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClientContext.ts b/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClientContext.ts index 6a789f076bd1..be0862a03de9 100644 --- a/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClientContext.ts +++ b/sdk/eventgrid/arm-eventgrid/src/eventGridManagementClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -45,7 +44,7 @@ export class EventGridManagementClientContext extends msRestAzure.AzureServiceCl super(credentials, options); - this.apiVersion = '2020-06-01'; + this.apiVersion = '2020-10-15-preview'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts index 39b0e128fb63..219e6f9e971b 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -15,41 +15,69 @@ export { CloudError, ConnectionState, DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, Domain, DomainTopic, DomainTopicsListResult, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, EventSubscriptionDestination, EventSubscriptionFilter, + EventSubscriptionIdentity, EventType, + ExtendedLocation, + ExtensionTopic, HybridConnectionEventSubscriptionDestination, + IdentityInfo, InboundIpRule, InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, JsonField, JsonFieldWithDefault, JsonInputSchemaMapping, NumberGreaterThanAdvancedFilter, NumberGreaterThanOrEqualsAdvancedFilter, NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, NumberLessThanAdvancedFilter, NumberLessThanOrEqualsAdvancedFilter, NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerTopic, + PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, + ResourceSku, RetryPolicy, ServiceBusQueueEventSubscriptionDestination, ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, StorageBlobDeadLetterDestination, StorageQueueEventSubscriptionDestination, StringBeginsWithAdvancedFilter, StringContainsAdvancedFilter, StringEndsWithAdvancedFilter, StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, StringNotInAdvancedFilter, + SystemData, + SystemTopic, Topic, TopicTypeInfo, TrackedResource, + UserIdentityProperties, WebHookEventSubscriptionDestination } from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts index fc653eca13b1..5bafd97475ad 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -15,44 +15,72 @@ export { CloudError, ConnectionState, DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, Domain, DomainRegenerateKeyRequest, DomainSharedAccessKeys, DomainsListResult, DomainTopic, DomainUpdateParameters, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, EventSubscriptionDestination, EventSubscriptionFilter, + EventSubscriptionIdentity, EventType, + ExtendedLocation, + ExtensionTopic, HybridConnectionEventSubscriptionDestination, + IdentityInfo, InboundIpRule, InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, JsonField, JsonFieldWithDefault, JsonInputSchemaMapping, NumberGreaterThanAdvancedFilter, NumberGreaterThanOrEqualsAdvancedFilter, NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, NumberLessThanAdvancedFilter, NumberLessThanOrEqualsAdvancedFilter, NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerTopic, + PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, + ResourceSku, RetryPolicy, ServiceBusQueueEventSubscriptionDestination, ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, StorageBlobDeadLetterDestination, StorageQueueEventSubscriptionDestination, StringBeginsWithAdvancedFilter, StringContainsAdvancedFilter, StringEndsWithAdvancedFilter, StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, StringNotInAdvancedFilter, + SystemData, + SystemTopic, Topic, TopicTypeInfo, TrackedResource, + UserIdentityProperties, WebHookEventSubscriptionDestination } from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/eventChannelsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/eventChannelsMappers.ts new file mode 100644 index 000000000000..b78f4a31a6d1 --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/models/eventChannelsMappers.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedFilter, + AzureFunctionEventSubscriptionDestination, + BaseResource, + BoolEqualsAdvancedFilter, + CloudError, + ConnectionState, + DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, + Domain, + DomainTopic, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelsListResult, + EventChannelSource, + EventHubEventSubscriptionDestination, + EventSubscription, + EventSubscriptionDestination, + EventSubscriptionFilter, + EventSubscriptionIdentity, + EventType, + ExtendedLocation, + ExtensionTopic, + HybridConnectionEventSubscriptionDestination, + IdentityInfo, + InboundIpRule, + InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, + JsonField, + JsonFieldWithDefault, + JsonInputSchemaMapping, + NumberGreaterThanAdvancedFilter, + NumberGreaterThanOrEqualsAdvancedFilter, + NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, + NumberLessThanAdvancedFilter, + NumberLessThanOrEqualsAdvancedFilter, + NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerTopic, + PartnerTopicType, + PrivateEndpoint, + PrivateEndpointConnection, + Resource, + ResourceSku, + RetryPolicy, + ServiceBusQueueEventSubscriptionDestination, + ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, + StorageBlobDeadLetterDestination, + StorageQueueEventSubscriptionDestination, + StringBeginsWithAdvancedFilter, + StringContainsAdvancedFilter, + StringEndsWithAdvancedFilter, + StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, + StringNotInAdvancedFilter, + SystemData, + SystemTopic, + Topic, + TopicTypeInfo, + TrackedResource, + UserIdentityProperties, + WebHookEventSubscriptionDestination +} from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/eventSubscriptionsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/eventSubscriptionsMappers.ts index 6f59d38fb4d8..f0ff5301de8e 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/eventSubscriptionsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/eventSubscriptionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -15,43 +15,72 @@ export { CloudError, ConnectionState, DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeListResult, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, Domain, DomainTopic, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, EventSubscriptionDestination, EventSubscriptionFilter, EventSubscriptionFullUrl, + EventSubscriptionIdentity, EventSubscriptionsListResult, EventSubscriptionUpdateParameters, EventType, + ExtendedLocation, + ExtensionTopic, HybridConnectionEventSubscriptionDestination, + IdentityInfo, InboundIpRule, InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, JsonField, JsonFieldWithDefault, JsonInputSchemaMapping, NumberGreaterThanAdvancedFilter, NumberGreaterThanOrEqualsAdvancedFilter, NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, NumberLessThanAdvancedFilter, NumberLessThanOrEqualsAdvancedFilter, NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerTopic, + PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, + ResourceSku, RetryPolicy, ServiceBusQueueEventSubscriptionDestination, ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, StorageBlobDeadLetterDestination, StorageQueueEventSubscriptionDestination, StringBeginsWithAdvancedFilter, StringContainsAdvancedFilter, StringEndsWithAdvancedFilter, StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, StringNotInAdvancedFilter, + SystemData, + SystemTopic, Topic, TopicTypeInfo, TrackedResource, + UserIdentityProperties, WebHookEventSubscriptionDestination } from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/extensionTopicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/extensionTopicsMappers.ts new file mode 100644 index 000000000000..7337a3674a2c --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/models/extensionTopicsMappers.ts @@ -0,0 +1,82 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedFilter, + AzureFunctionEventSubscriptionDestination, + BaseResource, + BoolEqualsAdvancedFilter, + CloudError, + ConnectionState, + DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, + Domain, + DomainTopic, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, + EventHubEventSubscriptionDestination, + EventSubscription, + EventSubscriptionDestination, + EventSubscriptionFilter, + EventSubscriptionIdentity, + EventType, + ExtendedLocation, + ExtensionTopic, + HybridConnectionEventSubscriptionDestination, + IdentityInfo, + InboundIpRule, + InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, + JsonField, + JsonFieldWithDefault, + JsonInputSchemaMapping, + NumberGreaterThanAdvancedFilter, + NumberGreaterThanOrEqualsAdvancedFilter, + NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, + NumberLessThanAdvancedFilter, + NumberLessThanOrEqualsAdvancedFilter, + NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerTopic, + PartnerTopicType, + PrivateEndpoint, + PrivateEndpointConnection, + Resource, + ResourceSku, + RetryPolicy, + ServiceBusQueueEventSubscriptionDestination, + ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, + StorageBlobDeadLetterDestination, + StorageQueueEventSubscriptionDestination, + StringBeginsWithAdvancedFilter, + StringContainsAdvancedFilter, + StringEndsWithAdvancedFilter, + StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, + StringNotInAdvancedFilter, + SystemData, + SystemTopic, + Topic, + TopicTypeInfo, + TrackedResource, + UserIdentityProperties, + WebHookEventSubscriptionDestination +} from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/index.ts b/sdk/eventgrid/arm-eventgrid/src/models/index.ts index c81b2d30e4c8..d05f2b28145b 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/index.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -41,7 +41,7 @@ export interface ConnectionState { } /** - * Definition of a Resource. + * Definition of a Resource */ export interface Resource extends BaseResource { /** @@ -116,6 +116,59 @@ export interface InboundIpRule { action?: IpActionType; } +/** + * Describes an EventGrid Resource Sku. + */ +export interface ResourceSku { + /** + * The Sku name of the resource. The possible values are: Basic or Premium. Possible values + * include: 'Basic', 'Premium' + */ + name?: Sku; +} + +/** + * The information about the user identity. + */ +export interface UserIdentityProperties { + /** + * The principal id of user assigned identity. + */ + principalId?: string; + /** + * The client id of user assigned identity. + */ + clientId?: string; +} + +/** + * The identity information for the resource. + */ +export interface IdentityInfo { + /** + * The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an + * implicitly created identity and a set of user-assigned identities. The type 'None' will remove + * any identity. Possible values include: 'None', 'SystemAssigned', 'UserAssigned', + * 'SystemAssigned, UserAssigned' + */ + type?: IdentityType; + /** + * The principal ID of resource identity. + */ + principalId?: string; + /** + * The tenant ID of resource. + */ + tenantId?: string; + /** + * The list of user identities associated with the resource. The user identity dictionary key + * references will be ARM resource ids in the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. + * This property is currently not used and reserved for future usage. + */ + userAssignedIdentities?: { [propertyName: string]: UserIdentityProperties }; +} + /** * This is used to express the source of an input schema mapping for a single target field in the * Event Grid Event schema. This is currently used in the mappings for the 'id', 'topic' and @@ -242,6 +295,14 @@ export interface Domain extends TrackedResource { * considered only if PublicNetworkAccess is enabled. */ inboundIpRules?: InboundIpRule[]; + /** + * The Sku pricing tier for the domain. + */ + sku?: ResourceSku; + /** + * Identity information for the resource. + */ + identity?: IdentityInfo; } /** @@ -264,6 +325,14 @@ export interface DomainUpdateParameters { * considered only if PublicNetworkAccess is enabled. */ inboundIpRules?: InboundIpRule[]; + /** + * Identity information for the resource. + */ + identity?: IdentityInfo; + /** + * The Sku pricing tier for the domain. + */ + sku?: ResourceSku; } /** @@ -302,24 +371,40 @@ export interface DomainTopic extends Resource { } /** - * Contains the possible cases for EventSubscriptionDestination. + * Properties of the source of an event channel. */ -export type EventSubscriptionDestinationUnion = EventSubscriptionDestination | WebHookEventSubscriptionDestination | EventHubEventSubscriptionDestination | StorageQueueEventSubscriptionDestination | HybridConnectionEventSubscriptionDestination | ServiceBusQueueEventSubscriptionDestination | ServiceBusTopicEventSubscriptionDestination | AzureFunctionEventSubscriptionDestination; +export interface EventChannelSource { + /** + * The identifier of the resource that's the source of the events. + * This represents a unique resource in the partner's resource model. + */ + source?: string; +} /** - * Information about the destination for an event subscription. + * Properties of the destination of an event channel. */ -export interface EventSubscriptionDestination { +export interface EventChannelDestination { /** - * Polymorphic Discriminator + * Azure subscription ID of the customer creating the event channel. The partner topic + * associated with the event channel will be created under this Azure subscription. */ - endpointType: "EventSubscriptionDestination"; + azureSubscriptionId?: string; + /** + * Azure Resource Group of the customer creating the event channel. The partner topic + * associated with the event channel will be created under this resource group. + */ + resourceGroup?: string; + /** + * Name of the partner topic associated with the event channel. + */ + partnerTopicName?: string; } /** * Contains the possible cases for AdvancedFilter. */ -export type AdvancedFilterUnion = AdvancedFilter | NumberInAdvancedFilter | NumberNotInAdvancedFilter | NumberLessThanAdvancedFilter | NumberGreaterThanAdvancedFilter | NumberLessThanOrEqualsAdvancedFilter | NumberGreaterThanOrEqualsAdvancedFilter | BoolEqualsAdvancedFilter | StringInAdvancedFilter | StringNotInAdvancedFilter | StringBeginsWithAdvancedFilter | StringEndsWithAdvancedFilter | StringContainsAdvancedFilter; +export type AdvancedFilterUnion = AdvancedFilter | NumberInAdvancedFilter | NumberNotInAdvancedFilter | NumberLessThanAdvancedFilter | NumberGreaterThanAdvancedFilter | NumberLessThanOrEqualsAdvancedFilter | NumberGreaterThanOrEqualsAdvancedFilter | BoolEqualsAdvancedFilter | StringInAdvancedFilter | StringNotInAdvancedFilter | StringBeginsWithAdvancedFilter | StringEndsWithAdvancedFilter | StringContainsAdvancedFilter | NumberInRangeAdvancedFilter | NumberNotInRangeAdvancedFilter | StringNotBeginsWithAdvancedFilter | StringNotEndsWithAdvancedFilter | StringNotContainsAdvancedFilter | IsNullOrUndefinedAdvancedFilter | IsNotNullAdvancedFilter; /** * This is the base type that represents an advanced filter. To configure an advanced filter, do @@ -339,68 +424,20 @@ export interface AdvancedFilter { } /** - * Filter for the Event Subscription. + * Filter for the Event Channel. */ -export interface EventSubscriptionFilter { - /** - * An optional string to filter events for an event subscription based on a resource path prefix. - * The format of this depends on the publisher of the events. - * Wildcard characters are not supported in this path. - */ - subjectBeginsWith?: string; - /** - * An optional string to filter events for an event subscription based on a resource path suffix. - * Wildcard characters are not supported in this path. - */ - subjectEndsWith?: string; - /** - * A list of applicable event types that need to be part of the event subscription. If it is - * desired to subscribe to all default event types, set the IncludedEventTypes to null. - */ - includedEventTypes?: string[]; +export interface EventChannelFilter { /** - * Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter - * should be compared in a case sensitive manner. Default value: false. + * Allows advanced filters to be evaluated against an array of values instead of expecting a + * singular value. */ - isSubjectCaseSensitive?: boolean; + enableAdvancedFilteringOnArrays?: boolean; /** - * An array of advanced filters that are used for filtering event subscriptions. + * An array of advanced filters that are used for filtering event channels. */ advancedFilters?: AdvancedFilterUnion[]; } -/** - * Information about the retry policy for an event subscription. - */ -export interface RetryPolicy { - /** - * Maximum number of delivery retry attempts for events. - */ - maxDeliveryAttempts?: number; - /** - * Time To Live (in minutes) for events. - */ - eventTimeToLiveInMinutes?: number; -} - -/** - * Contains the possible cases for DeadLetterDestination. - */ -export type DeadLetterDestinationUnion = DeadLetterDestination | StorageBlobDeadLetterDestination; - -/** - * Information about the dead letter destination for an event subscription. To configure a - * deadletter destination, do not directly instantiate an object of this class. Instead, - * instantiate an object of a derived class. Currently, StorageBlobDeadLetterDestination is the - * only class that derives from this class. - */ -export interface DeadLetterDestination { - /** - * Polymorphic Discriminator - */ - endpointType: "DeadLetterDestination"; -} - /** * NumberIn Advanced Filter. */ @@ -419,24 +456,6 @@ export interface NumberInAdvancedFilter { values?: number[]; } -/** - * Information about the storage blob based dead letter destination. - */ -export interface StorageBlobDeadLetterDestination { - /** - * Polymorphic Discriminator - */ - endpointType: "StorageBlob"; - /** - * The Azure Resource ID of the storage account that is the destination of the deadletter events - */ - resourceId?: string; - /** - * The name of the Storage blob container that is the destination of the deadletter events - */ - blobContainerName?: string; -} - /** * NumberNotIn Advanced Filter. */ @@ -636,1049 +655,4141 @@ export interface StringContainsAdvancedFilter { } /** - * Information about the webhook destination for an event subscription. + * NumberInRange Advanced Filter. */ -export interface WebHookEventSubscriptionDestination { +export interface NumberInRangeAdvancedFilter { /** * Polymorphic Discriminator */ - endpointType: "WebHook"; - /** - * The URL that represents the endpoint of the destination of an event subscription. - */ - endpointUrl?: string; + operatorType: "NumberInRange"; /** - * The base URL that represents the endpoint of the destination of an event subscription. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The field/property in the event based on which you want to filter. */ - readonly endpointBaseUrl?: string; + key?: string; /** - * Maximum number of events per batch. + * The set of filter values. */ - maxEventsPerBatch?: number; + values?: number[][]; +} + +/** + * NumberNotInRange Advanced Filter. + */ +export interface NumberNotInRangeAdvancedFilter { /** - * Preferred batch size in Kilobytes. + * Polymorphic Discriminator */ - preferredBatchSizeInKilobytes?: number; + operatorType: "NumberNotInRange"; /** - * The Azure Active Directory Tenant ID to get the access token that will be included as the - * bearer token in delivery requests. + * The field/property in the event based on which you want to filter. */ - azureActiveDirectoryTenantId?: string; + key?: string; /** - * The Azure Active Directory Application ID or URI to get the access token that will be included - * as the bearer token in delivery requests. + * The set of filter values. */ - azureActiveDirectoryApplicationIdOrUri?: string; + values?: number[][]; } /** - * Information about the event hub destination for an event subscription. + * StringNotBeginsWith Advanced Filter. */ -export interface EventHubEventSubscriptionDestination { +export interface StringNotBeginsWithAdvancedFilter { /** * Polymorphic Discriminator */ - endpointType: "EventHub"; + operatorType: "StringNotBeginsWith"; /** - * The Azure Resource Id that represents the endpoint of an Event Hub destination of an event - * subscription. + * The field/property in the event based on which you want to filter. */ - resourceId?: string; + key?: string; + /** + * The set of filter values. + */ + values?: string[]; } /** - * Information about the storage queue destination for an event subscription. + * StringNotEndsWith Advanced Filter. */ -export interface StorageQueueEventSubscriptionDestination { +export interface StringNotEndsWithAdvancedFilter { /** * Polymorphic Discriminator */ - endpointType: "StorageQueue"; + operatorType: "StringNotEndsWith"; /** - * The Azure Resource ID of the storage account that contains the queue that is the destination - * of an event subscription. + * The field/property in the event based on which you want to filter. */ - resourceId?: string; + key?: string; /** - * The name of the Storage queue under a storage account that is the destination of an event - * subscription. + * The set of filter values. */ - queueName?: string; + values?: string[]; } /** - * Information about the HybridConnection destination for an event subscription. + * StringNotContains Advanced Filter. */ -export interface HybridConnectionEventSubscriptionDestination { +export interface StringNotContainsAdvancedFilter { /** * Polymorphic Discriminator */ - endpointType: "HybridConnection"; + operatorType: "StringNotContains"; /** - * The Azure Resource ID of an hybrid connection that is the destination of an event - * subscription. + * The field/property in the event based on which you want to filter. */ - resourceId?: string; + key?: string; + /** + * The set of filter values. + */ + values?: string[]; } /** - * Information about the service bus destination for an event subscription. + * IsNullOrUndefined Advanced Filter. */ -export interface ServiceBusQueueEventSubscriptionDestination { +export interface IsNullOrUndefinedAdvancedFilter { /** * Polymorphic Discriminator */ - endpointType: "ServiceBusQueue"; + operatorType: "IsNullOrUndefined"; /** - * The Azure Resource Id that represents the endpoint of the Service Bus destination of an event - * subscription. + * The field/property in the event based on which you want to filter. */ - resourceId?: string; + key?: string; } /** - * Information about the service bus topic destination for an event subscription. + * IsNotNull Advanced Filter. */ -export interface ServiceBusTopicEventSubscriptionDestination { +export interface IsNotNullAdvancedFilter { /** * Polymorphic Discriminator */ - endpointType: "ServiceBusTopic"; + operatorType: "IsNotNull"; /** - * The Azure Resource Id that represents the endpoint of the Service Bus Topic destination of an - * event subscription. + * The field/property in the event based on which you want to filter. */ - resourceId?: string; + key?: string; } /** - * Information about the azure function destination for an event subscription. + * Metadata pertaining to creation and last modification of the resource. */ -export interface AzureFunctionEventSubscriptionDestination { +export interface SystemData { /** - * Polymorphic Discriminator + * The identity that created the resource. */ - endpointType: "AzureFunction"; + createdBy?: string; /** - * The Azure Resource Id that represents the endpoint of the Azure Function destination of an - * event subscription. + * The type of identity that created the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' */ - resourceId?: string; + createdByType?: CreatedByType; /** - * Maximum number of events per batch. + * The timestamp of resource creation (UTC). */ - maxEventsPerBatch?: number; + createdAt?: Date; /** - * Preferred batch size in Kilobytes. + * The identity that last modified the resource. */ - preferredBatchSizeInKilobytes?: number; + lastModifiedBy?: string; + /** + * The type of identity that last modified the resource. Possible values include: 'User', + * 'Application', 'ManagedIdentity', 'Key' + */ + lastModifiedByType?: CreatedByType; + /** + * The timestamp of resource last modification (UTC) + */ + lastModifiedAt?: Date; } /** - * Event Subscription + * Event Channel. */ -export interface EventSubscription extends Resource { - /** - * Name of the topic of the event subscription. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly topic?: string; +export interface EventChannel extends Resource { /** - * Provisioning state of the event subscription. Possible values include: 'Creating', 'Updating', - * 'Deleting', 'Succeeded', 'Canceled', 'Failed', 'AwaitingManualAction' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Source of the event channel. This represents a unique resource in the partner's resource + * model. */ - readonly provisioningState?: EventSubscriptionProvisioningState; + source?: EventChannelSource; /** - * Information about the destination where events have to be delivered for the event - * subscription. + * Represents the destination of an event channel. */ - destination?: EventSubscriptionDestinationUnion; + destination?: EventChannelDestination; /** - * Information about the filter for the event subscription. + * Provisioning state of the event channel. Possible values include: 'Creating', 'Updating', + * 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: EventSubscriptionFilter; + readonly provisioningState?: EventChannelProvisioningState; /** - * List of user defined labels. + * The readiness state of the corresponding partner topic. Possible values include: + * 'NotActivatedByUserYet', 'ActivatedByUser', 'DeactivatedByUser', 'DeletedByUser' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - labels?: string[]; + readonly partnerTopicReadinessState?: PartnerTopicReadinessState; /** - * Expiration time of the event subscription. + * Expiration time of the event channel. If this timer expires while the corresponding partner + * topic is never activated, + * the event channel and corresponding partner topic are deleted. */ - expirationTimeUtc?: Date; + expirationTimeIfNotActivatedUtc?: Date; /** - * The event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CustomInputSchema', 'CloudEventSchemaV1_0' + * Information about the filter for the event channel. */ - eventDeliverySchema?: EventDeliverySchema; + filter?: EventChannelFilter; /** - * The retry policy for events. This can be used to configure maximum number of delivery attempts - * and time to live for events. + * Friendly description about the topic. This can be set by the publisher/partner to show custom + * description for the customer partner topic. + * This will be helpful to remove any ambiguity of the origin of creation of the partner topic + * for the customer. */ - retryPolicy?: RetryPolicy; + partnerTopicFriendlyDescription?: string; /** - * The DeadLetter destination of the event subscription. + * The system metadata relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - deadLetterDestination?: DeadLetterDestinationUnion; + readonly systemData?: SystemData; } /** - * Properties of the Event Subscription update. + * Contains the possible cases for EventSubscriptionDestination. */ -export interface EventSubscriptionUpdateParameters { - /** - * Information about the destination where events have to be delivered for the event - * subscription. - */ +export type EventSubscriptionDestinationUnion = EventSubscriptionDestination | WebHookEventSubscriptionDestination | EventHubEventSubscriptionDestination | StorageQueueEventSubscriptionDestination | HybridConnectionEventSubscriptionDestination | ServiceBusQueueEventSubscriptionDestination | ServiceBusTopicEventSubscriptionDestination | AzureFunctionEventSubscriptionDestination; + +/** + * Information about the destination for an event subscription. + */ +export interface EventSubscriptionDestination { + /** + * Polymorphic Discriminator + */ + endpointType: "EventSubscriptionDestination"; +} + +/** + * The identity information with the event subscription. + */ +export interface EventSubscriptionIdentity { + /** + * The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an + * implicitly created identity and a set of user-assigned identities. The type 'None' will remove + * any identity. Possible values include: 'SystemAssigned', 'UserAssigned' + */ + type?: EventSubscriptionIdentityType; + /** + * The user identity associated with the resource. + */ + userAssignedIdentity?: string; +} + +/** + * Information about the delivery for an event subscription with resource identity. + */ +export interface DeliveryWithResourceIdentity { + /** + * The identity to use when delivering events. + */ + identity?: EventSubscriptionIdentity; + /** + * Information about the destination where events have to be delivered for the event + * subscription. + * Uses Azure Event Grid's identity to acquire the authentication tokens being used during + * delivery / dead-lettering. + */ destination?: EventSubscriptionDestinationUnion; +} + +/** + * Filter for the Event Subscription. + */ +export interface EventSubscriptionFilter { /** - * Information about the filter for the event subscription. + * An optional string to filter events for an event subscription based on a resource path prefix. + * The format of this depends on the publisher of the events. + * Wildcard characters are not supported in this path. */ - filter?: EventSubscriptionFilter; + subjectBeginsWith?: string; /** - * List of user defined labels. + * An optional string to filter events for an event subscription based on a resource path suffix. + * Wildcard characters are not supported in this path. */ - labels?: string[]; + subjectEndsWith?: string; /** - * Information about the expiration time for the event subscription. + * A list of applicable event types that need to be part of the event subscription. If it is + * desired to subscribe to all default event types, set the IncludedEventTypes to null. */ - expirationTimeUtc?: Date; + includedEventTypes?: string[]; /** - * The event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CustomInputSchema', 'CloudEventSchemaV1_0' + * Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter + * should be compared in a case sensitive manner. Default value: false. */ - eventDeliverySchema?: EventDeliverySchema; + isSubjectCaseSensitive?: boolean; /** - * The retry policy for events. This can be used to configure maximum number of delivery attempts - * and time to live for events. + * Allows advanced filters to be evaluated against an array of values instead of expecting a + * singular value. */ - retryPolicy?: RetryPolicy; + enableAdvancedFilteringOnArrays?: boolean; /** - * The DeadLetter destination of the event subscription. + * An array of advanced filters that are used for filtering event subscriptions. */ - deadLetterDestination?: DeadLetterDestinationUnion; + advancedFilters?: AdvancedFilterUnion[]; } /** - * Full endpoint url of an event subscription + * Information about the retry policy for an event subscription. */ -export interface EventSubscriptionFullUrl { +export interface RetryPolicy { /** - * The URL that represents the endpoint of the destination of an event subscription. + * Maximum number of delivery retry attempts for events. */ - endpointUrl?: string; + maxDeliveryAttempts?: number; + /** + * Time To Live (in minutes) for events. + */ + eventTimeToLiveInMinutes?: number; } /** - * Information about an operation + * Contains the possible cases for DeadLetterDestination. */ -export interface OperationInfo { +export type DeadLetterDestinationUnion = DeadLetterDestination | StorageBlobDeadLetterDestination; + +/** + * Information about the dead letter destination for an event subscription. To configure a + * deadletter destination, do not directly instantiate an object of this class. Instead, + * instantiate an object of a derived class. Currently, StorageBlobDeadLetterDestination is the + * only class that derives from this class. + */ +export interface DeadLetterDestination { /** - * Name of the provider + * Polymorphic Discriminator */ - provider?: string; + endpointType: "DeadLetterDestination"; +} + +/** + * Information about the deadletter destination with resource identity. + */ +export interface DeadLetterWithResourceIdentity { /** - * Name of the resource type + * The identity to use when dead-lettering events. */ - resource?: string; + identity?: EventSubscriptionIdentity; /** - * Name of the operation + * Information about the destination where events have to be delivered for the event + * subscription. + * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire + * the authentication tokens being used during delivery / dead-lettering. */ - operation?: string; + deadLetterDestination?: DeadLetterDestinationUnion; +} + +/** + * Contains the possible cases for DeliveryAttributeMapping. + */ +export type DeliveryAttributeMappingUnion = DeliveryAttributeMapping | StaticDeliveryAttributeMapping | DynamicDeliveryAttributeMapping; + +/** + * Delivery attribute mapping details. + */ +export interface DeliveryAttributeMapping { /** - * Description of the operation + * Polymorphic Discriminator */ - description?: string; + type: "DeliveryAttributeMapping"; + /** + * Name of the delivery attribute or header. + */ + name?: string; } /** - * Represents an operation returned by the GetOperations request + * Static delivery attribute mapping details. */ -export interface Operation { +export interface StaticDeliveryAttributeMapping { /** - * Name of the operation + * Polymorphic Discriminator */ - name?: string; + type: "Static"; /** - * Display name of the operation + * Name of the delivery attribute or header. */ - display?: OperationInfo; + name?: string; /** - * Origin of the operation + * Value of the delivery attribute. */ - origin?: string; + value?: string; /** - * Properties of the operation + * Boolean flag to tell if the attribute contains sensitive information . */ - properties?: any; + isSecret?: boolean; } /** - * Information of the private link resource. + * Dynamic delivery attribute mapping details. */ -export interface PrivateLinkResource { - groupId?: string; - displayName?: string; - requiredMembers?: string[]; - requiredZoneNames?: string[]; +export interface DynamicDeliveryAttributeMapping { /** - * Fully qualified identifier of the resource. + * Polymorphic Discriminator */ - id?: string; + type: "Dynamic"; /** - * Name of the resource + * Name of the delivery attribute or header. */ name?: string; /** - * Type of the resource + * JSON path in the event which contains attribute value. */ - type?: string; + sourceField?: string; } /** - * EventGrid Topic + * Information about the storage blob based dead letter destination. */ -export interface Topic extends TrackedResource { - privateEndpointConnections?: PrivateEndpointConnection[]; +export interface StorageBlobDeadLetterDestination { /** - * Provisioning state of the topic. Possible values include: 'Creating', 'Updating', 'Deleting', - * 'Succeeded', 'Canceled', 'Failed' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Polymorphic Discriminator */ - readonly provisioningState?: TopicProvisioningState; + endpointType: "StorageBlob"; /** - * Endpoint for the topic. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The Azure Resource ID of the storage account that is the destination of the deadletter events */ - readonly endpoint?: string; + resourceId?: string; /** - * This determines the format that Event Grid should expect for incoming events published to the - * topic. Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventSchemaV1_0'. Default value: 'EventGridSchema'. + * The name of the Storage blob container that is the destination of the deadletter events */ - inputSchema?: InputSchema; + blobContainerName?: string; +} + +/** + * Information about the webhook destination for an event subscription. + */ +export interface WebHookEventSubscriptionDestination { /** - * This enables publishing using custom event schemas. An InputSchemaMapping can be specified to - * map various properties of a source schema to various required properties of the EventGridEvent - * schema. + * Polymorphic Discriminator */ - inputSchemaMapping?: InputSchemaMappingUnion; + endpointType: "WebHook"; /** - * Metric resource id for the topic. + * The URL that represents the endpoint of the destination of an event subscription. + */ + endpointUrl?: string; + /** + * The base URL that represents the endpoint of the destination of an event subscription. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly metricResourceId?: string; + readonly endpointBaseUrl?: string; /** - * This determines if traffic is allowed over public network. By default it is enabled. - * You can further restrict to specific IPs by configuring . Possible values include: 'Enabled', 'Disabled' + * Maximum number of events per batch. */ - publicNetworkAccess?: PublicNetworkAccess; + maxEventsPerBatch?: number; /** - * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are - * considered only if PublicNetworkAccess is enabled. + * Preferred batch size in Kilobytes. */ - inboundIpRules?: InboundIpRule[]; -} - -/** - * Properties of the Topic update - */ -export interface TopicUpdateParameters { + preferredBatchSizeInKilobytes?: number; /** - * Tags of the resource. + * The Azure Active Directory Tenant ID to get the access token that will be included as the + * bearer token in delivery requests. */ - tags?: { [propertyName: string]: string }; + azureActiveDirectoryTenantId?: string; /** - * This determines if traffic is allowed over public network. By default it is enabled. - * You can further restrict to specific IPs by configuring . Possible values include: 'Enabled', 'Disabled' + * The Azure Active Directory Application ID or URI to get the access token that will be included + * as the bearer token in delivery requests. */ - publicNetworkAccess?: PublicNetworkAccess; + azureActiveDirectoryApplicationIdOrUri?: string; /** - * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are - * considered only if PublicNetworkAccess is enabled. + * Delivery attribute details. */ - inboundIpRules?: InboundIpRule[]; + deliveryAttributeMappings?: DeliveryAttributeMappingUnion[]; } /** - * Shared access keys of the Topic + * Information about the event hub destination for an event subscription. */ -export interface TopicSharedAccessKeys { +export interface EventHubEventSubscriptionDestination { /** - * Shared access key1 for the topic. + * Polymorphic Discriminator */ - key1?: string; + endpointType: "EventHub"; /** - * Shared access key2 for the topic. + * The Azure Resource Id that represents the endpoint of an Event Hub destination of an event + * subscription. */ - key2?: string; -} - -/** - * Topic regenerate share access key request - */ -export interface TopicRegenerateKeyRequest { + resourceId?: string; /** - * Key name to regenerate key1 or key2 + * Delivery attribute details. */ - keyName: string; + deliveryAttributeMappings?: DeliveryAttributeMappingUnion[]; } /** - * Event Type for a subject under a topic + * Information about the storage queue destination for an event subscription. */ -export interface EventType extends Resource { +export interface StorageQueueEventSubscriptionDestination { /** - * Display name of the event type. + * Polymorphic Discriminator */ - displayName?: string; + endpointType: "StorageQueue"; /** - * Description of the event type. + * The Azure Resource ID of the storage account that contains the queue that is the destination + * of an event subscription. */ - description?: string; + resourceId?: string; /** - * Url of the schema for this event type. + * The name of the Storage queue under a storage account that is the destination of an event + * subscription. */ - schemaUrl?: string; + queueName?: string; /** - * IsInDefaultSet flag of the event type. + * Storage queue message time to live in seconds. */ - isInDefaultSet?: boolean; + queueMessageTimeToLiveInSeconds?: number; } /** - * Properties of a topic type info. + * Information about the HybridConnection destination for an event subscription. */ -export interface TopicTypeInfo extends Resource { - /** - * Namespace of the provider of the topic type. - */ - provider?: string; +export interface HybridConnectionEventSubscriptionDestination { /** - * Display Name for the topic type. + * Polymorphic Discriminator */ - displayName?: string; + endpointType: "HybridConnection"; /** - * Description of the topic type. + * The Azure Resource ID of an hybrid connection that is the destination of an event + * subscription. */ - description?: string; + resourceId?: string; /** - * Region type of the resource. Possible values include: 'RegionalResource', 'GlobalResource' + * Delivery attribute details. */ - resourceRegionType?: ResourceRegionType; + deliveryAttributeMappings?: DeliveryAttributeMappingUnion[]; +} + +/** + * Information about the service bus destination for an event subscription. + */ +export interface ServiceBusQueueEventSubscriptionDestination { /** - * Provisioning state of the topic type. Possible values include: 'Creating', 'Updating', - * 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * Polymorphic Discriminator */ - provisioningState?: TopicTypeProvisioningState; + endpointType: "ServiceBusQueue"; /** - * List of locations supported by this topic type. + * The Azure Resource Id that represents the endpoint of the Service Bus destination of an event + * subscription. */ - supportedLocations?: string[]; + resourceId?: string; /** - * Source resource format. + * Delivery attribute details. */ - sourceResourceFormat?: string; + deliveryAttributeMappings?: DeliveryAttributeMappingUnion[]; } /** - * Optional Parameters. + * Information about the service bus topic destination for an event subscription. */ -export interface DomainsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface ServiceBusTopicEventSubscriptionDestination { /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Polymorphic Discriminator */ - filter?: string; + endpointType: "ServiceBusTopic"; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * The Azure Resource Id that represents the endpoint of the Service Bus Topic destination of an + * event subscription. */ - top?: number; + resourceId?: string; + /** + * Delivery attribute details. + */ + deliveryAttributeMappings?: DeliveryAttributeMappingUnion[]; } /** - * Optional Parameters. + * Information about the azure function destination for an event subscription. */ -export interface DomainsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface AzureFunctionEventSubscriptionDestination { /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Polymorphic Discriminator */ - filter?: string; + endpointType: "AzureFunction"; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * The Azure Resource Id that represents the endpoint of the Azure Function destination of an + * event subscription. */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface DomainTopicsListByDomainOptionalParams extends msRest.RequestOptionsBase { + resourceId?: string; /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Maximum number of events per batch. */ - filter?: string; + maxEventsPerBatch?: number; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * Preferred batch size in Kilobytes. */ - top?: number; + preferredBatchSizeInKilobytes?: number; + /** + * Delivery attribute details. + */ + deliveryAttributeMappings?: DeliveryAttributeMappingUnion[]; } /** - * Optional Parameters. + * Event Subscription */ -export interface EventSubscriptionsListGlobalBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface EventSubscription extends Resource { /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Name of the topic of the event subscription. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly topic?: string; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * Provisioning state of the event subscription. Possible values include: 'Creating', 'Updating', + * 'Deleting', 'Succeeded', 'Canceled', 'Failed', 'AwaitingManualAction' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams extends msRest.RequestOptionsBase { + readonly provisioningState?: EventSubscriptionProvisioningState; /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Information about the destination where events have to be delivered for the event + * subscription. + * Uses Azure Event Grid's identity to acquire the authentication tokens being used during + * delivery / dead-lettering. */ - filter?: string; + destination?: EventSubscriptionDestinationUnion; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * Information about the destination where events have to be delivered for the event + * subscription. + * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire + * the authentication tokens being used during delivery / dead-lettering. */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface EventSubscriptionsListGlobalByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + deliveryWithResourceIdentity?: DeliveryWithResourceIdentity; /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Information about the filter for the event subscription. */ - filter?: string; + filter?: EventSubscriptionFilter; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * List of user defined labels. */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams extends msRest.RequestOptionsBase { + labels?: string[]; /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Expiration time of the event subscription. */ - filter?: string; + expirationTimeUtc?: Date; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * The event delivery schema for the event subscription. Possible values include: + * 'EventGridSchema', 'CustomInputSchema', 'CloudEventSchemaV1_0' */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface EventSubscriptionsListRegionalBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + eventDeliverySchema?: EventDeliverySchema; /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * The retry policy for events. This can be used to configure maximum number of delivery attempts + * and time to live for events. */ - filter?: string; + retryPolicy?: RetryPolicy; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * The dead letter destination of the event subscription. Any event that cannot be delivered to + * its' destination is sent to the dead letter destination. + * Uses Azure Event Grid's identity to acquire the authentication tokens being used during + * delivery / dead-lettering. */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface EventSubscriptionsListRegionalByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + deadLetterDestination?: DeadLetterDestinationUnion; /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * The dead letter destination of the event subscription. Any event that cannot be delivered to + * its' destination is sent to the dead letter destination. + * Uses the managed identity setup on the parent resource (namely, topic or domain) to acquire + * the authentication tokens being used during delivery / dead-lettering. */ - filter?: string; + deadLetterWithResourceIdentity?: DeadLetterWithResourceIdentity; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * The system metadata relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - top?: number; + readonly systemData?: SystemData; } /** - * Optional Parameters. + * Properties of the Event Subscription update. */ -export interface EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams extends msRest.RequestOptionsBase { +export interface EventSubscriptionUpdateParameters { /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Information about the destination where events have to be delivered for the event + * subscription. + * Uses Azure Event Grid's identity to acquire the authentication tokens being used during + * delivery / dead-lettering. */ - filter?: string; + destination?: EventSubscriptionDestinationUnion; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * Information about the destination where events have to be delivered for the event + * subscription. + * Uses the managed identity setup on the parent resource (topic / domain) to acquire the + * authentication tokens being used during delivery / dead-lettering. */ - top?: number; -} - -/** - * Optional Parameters. - */ -export interface EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams extends msRest.RequestOptionsBase { + deliveryWithResourceIdentity?: DeliveryWithResourceIdentity; /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Information about the filter for the event subscription. */ - filter?: string; + filter?: EventSubscriptionFilter; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * List of user defined labels. */ - top?: number; + labels?: string[]; + /** + * Information about the expiration time for the event subscription. + */ + expirationTimeUtc?: Date; + /** + * The event delivery schema for the event subscription. Possible values include: + * 'EventGridSchema', 'CustomInputSchema', 'CloudEventSchemaV1_0' + */ + eventDeliverySchema?: EventDeliverySchema; + /** + * The retry policy for events. This can be used to configure maximum number of delivery attempts + * and time to live for events. + */ + retryPolicy?: RetryPolicy; + /** + * The dead letter destination of the event subscription. Any event that cannot be delivered to + * its' destination is sent to the dead letter destination. + * Uses Azure Event Grid's identity to acquire the authentication tokens being used during + * delivery / dead-lettering. + */ + deadLetterDestination?: DeadLetterDestinationUnion; + /** + * The dead letter destination of the event subscription. Any event that cannot be delivered to + * its' destination is sent to the dead letter destination. + * Uses the managed identity setup on the parent resource (topic / domain) to acquire the + * authentication tokens being used during delivery / dead-lettering. + */ + deadLetterWithResourceIdentity?: DeadLetterWithResourceIdentity; } /** - * Optional Parameters. + * Full endpoint url of an event subscription */ -export interface EventSubscriptionsListByResourceOptionalParams extends msRest.RequestOptionsBase { +export interface EventSubscriptionFullUrl { /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * The URL that represents the endpoint of the destination of an event subscription. */ - filter?: string; + endpointUrl?: string; +} + +/** + * Result of the Get delivery attributes operation. + */ +export interface DeliveryAttributeListResult { /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * A collection of DeliveryAttributeMapping */ - top?: number; + value?: DeliveryAttributeMappingUnion[]; } /** - * Optional Parameters. + * Information about an operation */ -export interface EventSubscriptionsListByDomainTopicOptionalParams extends msRest.RequestOptionsBase { +export interface OperationInfo { /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Name of the provider */ - filter?: string; + provider?: string; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * Name of the resource type */ - top?: number; + resource?: string; + /** + * Name of the operation + */ + operation?: string; + /** + * Description of the operation + */ + description?: string; } /** - * Optional Parameters. + * Represents an operation returned by the GetOperations request */ -export interface TopicsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { +export interface Operation { /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Name of the operation */ - filter?: string; + name?: string; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * Display name of the operation */ - top?: number; + display?: OperationInfo; + /** + * Origin of the operation + */ + origin?: string; + /** + * Properties of the operation + */ + properties?: any; } /** - * Optional Parameters. + * EventGrid Partner Namespace. */ -export interface TopicsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface PartnerNamespace extends TrackedResource { /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Provisioning state of the partner namespace. Possible values include: 'Creating', 'Updating', + * 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - filter?: string; + readonly provisioningState?: PartnerNamespaceProvisioningState; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * The fully qualified ARM Id of the partner registration that should be associated with this + * partner namespace. This takes the following format: + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}. */ - top?: number; + partnerRegistrationFullyQualifiedId?: string; + /** + * Endpoint for the partner namespace. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endpoint?: string; + /** + * The system metadata relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * Optional Parameters. + * Properties of the PartnerNamespace update. */ -export interface PrivateEndpointConnectionsListByResourceOptionalParams extends msRest.RequestOptionsBase { - /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. - */ - filter?: string; +export interface PartnerNamespaceUpdateParameters { /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * Tags of the partner namespace. */ - top?: number; + tags?: { [propertyName: string]: string }; } /** - * Optional Parameters. + * Shared access keys of the partner namespace. */ -export interface PrivateLinkResourcesListByResourceOptionalParams extends msRest.RequestOptionsBase { +export interface PartnerNamespaceSharedAccessKeys { /** - * The query used to filter the search results using OData syntax. Filtering is permitted on the - * 'name' property only and with limited number of OData operations. These operations are: the - * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), - * and ne (for not equal). No arithmetic operations are supported. The following is a valid - * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is - * not a valid filter example: $filter=location eq 'westus'. + * Shared access key1 for the partner namespace. */ - filter?: string; + key1?: string; /** - * The number of results to return per page for the list operation. Valid range for top parameter - * is 1 to 100. If not specified, the default number of results to be returned is 20 items per - * page. + * Shared access key2 for the partner namespace. */ - top?: number; + key2?: string; } /** - * An interface representing EventGridManagementClientOptions. + * PartnerNamespace regenerate shared access key request. */ -export interface EventGridManagementClientOptions extends AzureServiceClientOptions { - baseUri?: string; +export interface PartnerNamespaceRegenerateKeyRequest { + /** + * Key name to regenerate (key1 or key2). + */ + keyName: string; } /** - * @interface - * Result of the List Domains operation. - * @extends Array + * Information about a partner registration. */ -export interface DomainsListResult extends Array { +export interface PartnerRegistration extends TrackedResource { + /** + * Provisioning state of the partner registration. Possible values include: 'Creating', + * 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: PartnerRegistrationProvisioningState; /** - * A link for the next page of domains. + * Official name of the partner name. For example: "Contoso". */ - nextLink?: string; + partnerName?: string; + /** + * Name of the partner resource type. + */ + partnerResourceTypeName?: string; + /** + * Display name of the partner resource type. + */ + partnerResourceTypeDisplayName?: string; + /** + * Short description of the partner resource type. The length of this description should not + * exceed 256 characters. + */ + partnerResourceTypeDescription?: string; + /** + * Long description for the custom scenarios and integration to be displayed in the portal if + * needed. + * Length of this description should not exceed 2048 characters. + */ + longDescription?: string; + /** + * The customer service number of the publisher. The expected phone format should start with a + * '+' sign + * followed by the country code. The remaining digits are then followed. Only digits and spaces + * are allowed and its + * length cannot exceed 16 digits including country code. Examples of valid phone numbers are: +1 + * 515 123 4567 and + * +966 7 5115 2471. Examples of invalid phone numbers are: +1 (515) 123-4567, 1 515 123 4567 and + * +966 121 5115 24 7 551 1234 43 + */ + partnerCustomerServiceNumber?: string; + /** + * The extension of the customer service number of the publisher. Only digits are allowed and + * number of digits should not exceed 10. + */ + partnerCustomerServiceExtension?: string; + /** + * The extension of the customer service URI of the publisher. + */ + customerServiceUri?: string; + /** + * URI of the partner website that can be used by Azure customers to setup Event Grid + * integration on an event source. + */ + setupUri?: string; + /** + * URI of the logo. + */ + logoUri?: string; + /** + * Visibility state of the partner registration. Possible values include: 'Hidden', + * 'PublicPreview', 'GenerallyAvailable' + */ + visibilityState?: PartnerRegistrationVisibilityState; + /** + * List of Azure subscription Ids that are authorized to create a partner namespace + * associated with this partner registration. This is an optional property. Creating + * partner namespaces is always permitted under the same Azure subscription as the one used + * for creating the partner registration. + */ + authorizedAzureSubscriptionIds?: string[]; + /** + * The system metadata relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * @interface - * Result of the List Domain Topics operation. - * @extends Array + * Properties of the Partner Registration update. */ -export interface DomainTopicsListResult extends Array { +export interface PartnerRegistrationUpdateParameters { /** - * A link for the next page of domain topics. + * Tags of the partner registration resource. */ - nextLink?: string; + tags?: { [propertyName: string]: string }; + /** + * Name of the partner topic type. + */ + partnerTopicTypeName?: string; + /** + * Display name of the partner topic type. + */ + partnerTopicTypeDisplayName?: string; + /** + * Description of the partner topic type. + */ + partnerTopicTypeDescription?: string; + /** + * URI of the partner website that can be used by Azure customers to setup Event Grid + * integration on an event source. + */ + setupUri?: string; + /** + * URI of the partner logo. + */ + logoUri?: string; + /** + * List of IDs of Azure AD applications that are authorized to create a partner namespace + * associated with this partner registration. This is an optional property. Creating + * partner namespaces is always permitted under the same Azure subscription as the one used + * for creating the partner registration. + */ + authorizedAzureSubscriptionIds?: string[]; } /** - * @interface - * Result of the List EventSubscriptions operation - * @extends Array + * Event Type for a subject under a topic */ -export interface EventSubscriptionsListResult extends Array { +export interface EventType extends Resource { /** - * A link for the next page of event subscriptions + * Display name of the event type. */ - nextLink?: string; + displayName?: string; + /** + * Description of the event type. + */ + description?: string; + /** + * Url of the schema for this event type. + */ + schemaUrl?: string; + /** + * IsInDefaultSet flag of the event type. + */ + isInDefaultSet?: boolean; } /** - * @interface - * Result of the List Operations operation - * @extends Array + * Result of the List Partner Registration Event Types operation. */ -export interface OperationsListResult extends Array { +export interface PartnerRegistrationEventTypesListResult { + /** + * A collection of partner registration event types. + */ + value?: EventType[]; + /** + * A link for the next page of partner registration event types. + */ + nextLink?: string; } /** - * @interface - * Result of the List Topics operation - * @extends Array + * Properties of the Partner Topic update. */ -export interface TopicsListResult extends Array { +export interface PartnerTopicUpdateParameters { /** - * A link for the next page of topics + * Tags of the partner topic. */ - nextLink?: string; + tags?: { [propertyName: string]: string }; } /** - * @interface - * Result of the List Event Types operation - * @extends Array + * EventGrid Partner Topic. */ -export interface EventTypesListResult extends Array { +export interface PartnerTopic extends TrackedResource { + /** + * Source associated with this partner topic. This represents a unique partner resource. + */ + source?: string; + /** + * Expiration time of the partner topic. If this timer expires while the partner topic is still + * never activated, + * the partner topic and corresponding event channel are deleted. + */ + expirationTimeIfNotActivatedUtc?: Date; + /** + * Provisioning state of the partner topic. Possible values include: 'Creating', 'Updating', + * 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: PartnerTopicProvisioningState; + /** + * Activation state of the partner topic. Possible values include: 'NeverActivated', 'Activated', + * 'Deactivated' + */ + activationState?: PartnerTopicActivationState; + /** + * Friendly description about the topic. This can be set by the publisher/partner to show custom + * description for the customer partner topic. + * This will be helpful to remove any ambiguity of the origin of creation of the partner topic + * for the customer. + */ + partnerTopicFriendlyDescription?: string; + /** + * Identity information for the resource. + */ + identity?: IdentityInfo; + /** + * The system metadata relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; } /** - * @interface - * Result of the list of all private endpoint connections operation. - * @extends Array + * Properties of a partner topic type. */ -export interface PrivateEndpointConnectionListResult extends Array { +export interface PartnerTopicType extends Resource { /** - * A link for the next page of private endpoint connection resources. + * Official name of the partner. */ - nextLink?: string; + partnerName?: string; + /** + * Name of the partner topic type. This name should be unique among all partner topic types + * names. + */ + topicTypeName?: string; + /** + * Display Name for the partner topic type. + */ + displayName?: string; + /** + * Description of the partner topic type. + */ + description?: string; + /** + * URI of the partner website that can be used by Azure customers to setup Event Grid + * integration on an event source. + */ + setupUri?: string; + /** + * Status of whether the customer has authorized a partner to create partner topics + * in the customer's subscription. Possible values include: 'NotApplicable', 'NotAuthorized', + * 'Authorized' + */ + authorizationState?: PartnerTopicTypeAuthorizationState; } /** - * @interface - * Result of the List private link resources operation. - * @extends Array + * Result of the List Partner Topic Types operation. */ -export interface PrivateLinkResourcesListResult extends Array { +export interface PartnerTopicTypesListResult { /** - * A link for the next page of private link resources. + * A collection of partner topic types. */ - nextLink?: string; + value?: PartnerTopicType[]; } /** - * @interface - * Result of the List Topic Types operation - * @extends Array + * Information of the private link resource. */ -export interface TopicTypesListResult extends Array { +export interface PrivateLinkResource { + groupId?: string; + displayName?: string; + requiredMembers?: string[]; + requiredZoneNames?: string[]; + /** + * Fully qualified identifier of the resource. + */ + id?: string; + /** + * Name of the resource. + */ + name?: string; + /** + * Type of the resource. + */ + type?: string; } /** - * Defines values for PersistedConnectionStatus. - * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' - * @readonly - * @enum {string} + * EventGrid System Topic. */ -export type PersistedConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected'; +export interface SystemTopic extends TrackedResource { + /** + * Provisioning state of the system topic. Possible values include: 'Creating', 'Updating', + * 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ResourceProvisioningState; + /** + * Source for the system topic. + */ + source?: string; + /** + * TopicType for the system topic. + */ + topicType?: string; + /** + * Metric resource id for the system topic. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly metricResourceId?: string; + /** + * Identity information for the resource. + */ + identity?: IdentityInfo; + /** + * The system metadata relating to this resource. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly systemData?: SystemData; +} /** - * Defines values for ResourceProvisioningState. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' - * @readonly - * @enum {string} + * Properties of the System Topic update. */ -export type ResourceProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; +export interface SystemTopicUpdateParameters { + /** + * Tags of the system topic. + */ + tags?: { [propertyName: string]: string }; + /** + * Resource identity information. + */ + identity?: IdentityInfo; +} + +/** + * Definition of an Extended Location + */ +export interface ExtendedLocation { + /** + * Fully qualified name of the extended location. + */ + name?: string; + /** + * Type of the extended location. + */ + type?: string; +} + +/** + * EventGrid Topic + */ +export interface Topic extends TrackedResource { + privateEndpointConnections?: PrivateEndpointConnection[]; + /** + * Provisioning state of the topic. Possible values include: 'Creating', 'Updating', 'Deleting', + * 'Succeeded', 'Canceled', 'Failed' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: TopicProvisioningState; + /** + * Endpoint for the topic. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly endpoint?: string; + /** + * This determines the format that Event Grid should expect for incoming events published to the + * topic. Possible values include: 'EventGridSchema', 'CustomEventSchema', + * 'CloudEventSchemaV1_0'. Default value: 'EventGridSchema'. + */ + inputSchema?: InputSchema; + /** + * This enables publishing using custom event schemas. An InputSchemaMapping can be specified to + * map various properties of a source schema to various required properties of the EventGridEvent + * schema. + */ + inputSchemaMapping?: InputSchemaMappingUnion; + /** + * Metric resource id for the topic. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly metricResourceId?: string; + /** + * This determines if traffic is allowed over public network. By default it is enabled. + * You can further restrict to specific IPs by configuring . Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are + * considered only if PublicNetworkAccess is enabled. + */ + inboundIpRules?: InboundIpRule[]; + /** + * The Sku pricing tier for the topic. + */ + sku?: ResourceSku; + /** + * Identity information for the resource. + */ + identity?: IdentityInfo; + /** + * Kind of the resource. Possible values include: 'Azure', 'AzureArc' + */ + kind?: ResourceKind; + /** + * Extended location of the resource. + */ + extendedLocation?: ExtendedLocation; +} + +/** + * Properties of the Topic update + */ +export interface TopicUpdateParameters { + /** + * Tags of the resource. + */ + tags?: { [propertyName: string]: string }; + /** + * Resource identity information. + */ + identity?: IdentityInfo; + /** + * This determines if traffic is allowed over public network. By default it is enabled. + * You can further restrict to specific IPs by configuring . Possible values include: 'Enabled', 'Disabled' + */ + publicNetworkAccess?: PublicNetworkAccess; + /** + * This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are + * considered only if PublicNetworkAccess is enabled. + */ + inboundIpRules?: InboundIpRule[]; + /** + * The Sku pricing tier for the topic. + */ + sku?: ResourceSku; +} + +/** + * Shared access keys of the Topic + */ +export interface TopicSharedAccessKeys { + /** + * Shared access key1 for the topic. + */ + key1?: string; + /** + * Shared access key2 for the topic. + */ + key2?: string; +} + +/** + * Topic regenerate share access key request + */ +export interface TopicRegenerateKeyRequest { + /** + * Key name to regenerate key1 or key2 + */ + keyName: string; +} + +/** + * Event grid Extension Topic. This is used for getting Event Grid related metrics for Azure + * resources. + */ +export interface ExtensionTopic extends Resource { + /** + * Description of the extension topic. + */ + description?: string; + /** + * System topic resource id which is mapped to the source. + */ + systemTopic?: string; +} + +/** + * Properties of a topic type info. + */ +export interface TopicTypeInfo extends Resource { + /** + * Namespace of the provider of the topic type. + */ + provider?: string; + /** + * Display Name for the topic type. + */ + displayName?: string; + /** + * Description of the topic type. + */ + description?: string; + /** + * Region type of the resource. Possible values include: 'RegionalResource', 'GlobalResource' + */ + resourceRegionType?: ResourceRegionType; + /** + * Provisioning state of the topic type. Possible values include: 'Creating', 'Updating', + * 'Deleting', 'Succeeded', 'Canceled', 'Failed' + */ + provisioningState?: TopicTypeProvisioningState; + /** + * List of locations supported by this topic type. + */ + supportedLocations?: string[]; + /** + * Source resource format. + */ + sourceResourceFormat?: string; + /** + * Supported source scopes. + */ + supportedScopesForSource?: string[]; +} + +/** + * Optional Parameters. + */ +export interface DomainsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface DomainsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface DomainsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface DomainsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface DomainTopicsListByDomainOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface DomainTopicsListByDomainNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventChannelsListByPartnerNamespaceOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventChannelsListByPartnerNamespaceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListGlobalBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListGlobalBySubscriptionForTopicTypeOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListGlobalByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListGlobalByResourceGroupForTopicTypeOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListRegionalBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListRegionalByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListRegionalBySubscriptionForTopicTypeOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListRegionalByResourceGroupForTopicTypeOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListByResourceOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListByDomainTopicOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListGlobalBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListGlobalByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListRegionalBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListRegionalByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListByResourceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface EventSubscriptionsListByDomainTopicNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface SystemTopicEventSubscriptionsListBySystemTopicOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface SystemTopicEventSubscriptionsListBySystemTopicNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerTopicEventSubscriptionsListByPartnerTopicOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerTopicEventSubscriptionsListByPartnerTopicNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerNamespacesListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerNamespacesListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerNamespacesListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerNamespacesListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerRegistrationsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerRegistrationsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerRegistrationsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerRegistrationsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerTopicsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerTopicsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerTopicsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PartnerTopicsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PrivateEndpointConnectionsListByResourceOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PrivateEndpointConnectionsListByResourceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PrivateLinkResourcesListByResourceOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface PrivateLinkResourcesListByResourceNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface SystemTopicsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface SystemTopicsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface SystemTopicsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface SystemTopicsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface TopicsListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface TopicsListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface TopicsListBySubscriptionNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * Optional Parameters. + */ +export interface TopicsListByResourceGroupNextOptionalParams extends msRest.RequestOptionsBase { + /** + * The query used to filter the search results using OData syntax. Filtering is permitted on the + * 'name' property only and with limited number of OData operations. These operations are: the + * 'contains' function as well as the following logical operations: not, and, or, eq (for equal), + * and ne (for not equal). No arithmetic operations are supported. The following is a valid + * filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is + * not a valid filter example: $filter=location eq 'westus'. + */ + filter?: string; + /** + * The number of results to return per page for the list operation. Valid range for top parameter + * is 1 to 100. If not specified, the default number of results to be returned is 20 items per + * page. + */ + top?: number; +} + +/** + * An interface representing EventGridManagementClientOptions. + */ +export interface EventGridManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * Result of the List Domains operation + * @extends Array + */ +export interface DomainsListResult extends Array { + /** + * A link for the next page of domains + */ + nextLink?: string; +} + +/** + * @interface + * Result of the List Domain Topics operation + * @extends Array + */ +export interface DomainTopicsListResult extends Array { + /** + * A link for the next page of domain topics + */ + nextLink?: string; +} + +/** + * @interface + * Result of the List Event Channels operation + * @extends Array + */ +export interface EventChannelsListResult extends Array { + /** + * A link for the next page of event channels + */ + nextLink?: string; +} + +/** + * @interface + * Result of the List EventSubscriptions operation + * @extends Array + */ +export interface EventSubscriptionsListResult extends Array { + /** + * A link for the next page of event subscriptions + */ + nextLink?: string; +} + +/** + * @interface + * Result of the List Operations operation + * @extends Array + */ +export interface OperationsListResult extends Array { +} + +/** + * @interface + * Result of the List Partner Namespaces operation + * @extends Array + */ +export interface PartnerNamespacesListResult extends Array { + /** + * A link for the next page of partner namespaces. + */ + nextLink?: string; +} + +/** + * @interface + * Result of the List Partner Registrations operation. + * @extends Array + */ +export interface PartnerRegistrationsListResult extends Array { + /** + * A link for the next page of partner registrations. + */ + nextLink?: string; +} + +/** + * @interface + * Result of the List Partner Topics operation. + * @extends Array + */ +export interface PartnerTopicsListResult extends Array { + /** + * A link for the next page of partner topics. + */ + nextLink?: string; +} + +/** + * @interface + * Result of the list of all private endpoint connections operation. + * @extends Array + */ +export interface PrivateEndpointConnectionListResult extends Array { + /** + * A link for the next page of private endpoint connection resources. + */ + nextLink?: string; +} + +/** + * @interface + * Result of the List private link resources operation. + * @extends Array + */ +export interface PrivateLinkResourcesListResult extends Array { + /** + * A link for the next page of private link resources. + */ + nextLink?: string; +} + +/** + * @interface + * Result of the List System topics operation. + * @extends Array + */ +export interface SystemTopicsListResult extends Array { + /** + * A link for the next page of topics. + */ + nextLink?: string; +} + +/** + * @interface + * Result of the List Topics operation + * @extends Array + */ +export interface TopicsListResult extends Array { + /** + * A link for the next page of topics + */ + nextLink?: string; +} + +/** + * @interface + * Result of the List Event Types operation + * @extends Array + */ +export interface EventTypesListResult extends Array { +} + +/** + * @interface + * Result of the List Topic Types operation + * @extends Array + */ +export interface TopicTypesListResult extends Array { +} + +/** + * Defines values for PersistedConnectionStatus. + * Possible values include: 'Pending', 'Approved', 'Rejected', 'Disconnected' + * @readonly + * @enum {string} + */ +export type PersistedConnectionStatus = 'Pending' | 'Approved' | 'Rejected' | 'Disconnected'; + +/** + * Defines values for ResourceProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * @readonly + * @enum {string} + */ +export type ResourceProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; + +/** + * Defines values for DomainProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * @readonly + * @enum {string} + */ +export type DomainProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; + +/** + * Defines values for InputSchema. + * Possible values include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventSchemaV1_0' + * @readonly + * @enum {string} + */ +export type InputSchema = 'EventGridSchema' | 'CustomEventSchema' | 'CloudEventSchemaV1_0'; + +/** + * Defines values for PublicNetworkAccess. + * Possible values include: 'Enabled', 'Disabled' + * @readonly + * @enum {string} + */ +export type PublicNetworkAccess = 'Enabled' | 'Disabled'; + +/** + * Defines values for IpActionType. + * Possible values include: 'Allow' + * @readonly + * @enum {string} + */ +export type IpActionType = 'Allow'; + +/** + * Defines values for Sku. + * Possible values include: 'Basic', 'Premium' + * @readonly + * @enum {string} + */ +export type Sku = 'Basic' | 'Premium'; + +/** + * Defines values for IdentityType. + * Possible values include: 'None', 'SystemAssigned', 'UserAssigned', 'SystemAssigned, + * UserAssigned' + * @readonly + * @enum {string} + */ +export type IdentityType = 'None' | 'SystemAssigned' | 'UserAssigned' | 'SystemAssigned, UserAssigned'; + +/** + * Defines values for DomainTopicProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * @readonly + * @enum {string} + */ +export type DomainTopicProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; + +/** + * Defines values for EventChannelProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * @readonly + * @enum {string} + */ +export type EventChannelProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; + +/** + * Defines values for PartnerTopicReadinessState. + * Possible values include: 'NotActivatedByUserYet', 'ActivatedByUser', 'DeactivatedByUser', + * 'DeletedByUser' + * @readonly + * @enum {string} + */ +export type PartnerTopicReadinessState = 'NotActivatedByUserYet' | 'ActivatedByUser' | 'DeactivatedByUser' | 'DeletedByUser'; + +/** + * Defines values for CreatedByType. + * Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' + * @readonly + * @enum {string} + */ +export type CreatedByType = 'User' | 'Application' | 'ManagedIdentity' | 'Key'; + +/** + * Defines values for EventSubscriptionProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed', + * 'AwaitingManualAction' + * @readonly + * @enum {string} + */ +export type EventSubscriptionProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed' | 'AwaitingManualAction'; + +/** + * Defines values for EventSubscriptionIdentityType. + * Possible values include: 'SystemAssigned', 'UserAssigned' + * @readonly + * @enum {string} + */ +export type EventSubscriptionIdentityType = 'SystemAssigned' | 'UserAssigned'; + +/** + * Defines values for EventDeliverySchema. + * Possible values include: 'EventGridSchema', 'CustomInputSchema', 'CloudEventSchemaV1_0' + * @readonly + * @enum {string} + */ +export type EventDeliverySchema = 'EventGridSchema' | 'CustomInputSchema' | 'CloudEventSchemaV1_0'; + +/** + * Defines values for PartnerNamespaceProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * @readonly + * @enum {string} + */ +export type PartnerNamespaceProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; + +/** + * Defines values for PartnerRegistrationProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * @readonly + * @enum {string} + */ +export type PartnerRegistrationProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; + +/** + * Defines values for PartnerRegistrationVisibilityState. + * Possible values include: 'Hidden', 'PublicPreview', 'GenerallyAvailable' + * @readonly + * @enum {string} + */ +export type PartnerRegistrationVisibilityState = 'Hidden' | 'PublicPreview' | 'GenerallyAvailable'; + +/** + * Defines values for PartnerTopicProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * @readonly + * @enum {string} + */ +export type PartnerTopicProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; + +/** + * Defines values for PartnerTopicActivationState. + * Possible values include: 'NeverActivated', 'Activated', 'Deactivated' + * @readonly + * @enum {string} + */ +export type PartnerTopicActivationState = 'NeverActivated' | 'Activated' | 'Deactivated'; + +/** + * Defines values for PartnerTopicTypeAuthorizationState. + * Possible values include: 'NotApplicable', 'NotAuthorized', 'Authorized' + * @readonly + * @enum {string} + */ +export type PartnerTopicTypeAuthorizationState = 'NotApplicable' | 'NotAuthorized' | 'Authorized'; + +/** + * Defines values for TopicProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * @readonly + * @enum {string} + */ +export type TopicProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; + +/** + * Defines values for ResourceKind. + * Possible values include: 'Azure', 'AzureArc' + * @readonly + * @enum {string} + */ +export type ResourceKind = 'Azure' | 'AzureArc'; + +/** + * Defines values for ResourceRegionType. + * Possible values include: 'RegionalResource', 'GlobalResource' + * @readonly + * @enum {string} + */ +export type ResourceRegionType = 'RegionalResource' | 'GlobalResource'; + +/** + * Defines values for TopicTypeProvisioningState. + * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' + * @readonly + * @enum {string} + */ +export type TopicTypeProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; + +/** + * Defines values for ParentType. + * Possible values include: 'topics', 'domains' + * @readonly + * @enum {string} + */ +export type ParentType = 'topics' | 'domains'; + +/** + * Defines values for ParentType1. + * Possible values include: 'topics', 'domains' + * @readonly + * @enum {string} + */ +export type ParentType1 = 'topics' | 'domains'; + +/** + * Defines values for ParentType2. + * Possible values include: 'topics', 'domains' + * @readonly + * @enum {string} + */ +export type ParentType2 = 'topics' | 'domains'; + +/** + * Defines values for ParentType3. + * Possible values include: 'topics', 'domains' + * @readonly + * @enum {string} + */ +export type ParentType3 = 'topics' | 'domains'; + +/** + * Contains response data for the get operation. + */ +export type DomainsGetResponse = Domain & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Domain; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DomainsCreateOrUpdateResponse = Domain & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Domain; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type DomainsUpdateResponse = Domain & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Domain; + }; +}; + +/** + * Contains response data for the listBySubscription operation. + */ +export type DomainsListBySubscriptionResponse = DomainsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainsListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroup operation. + */ +export type DomainsListByResourceGroupResponse = DomainsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainsListResult; + }; +}; + +/** + * Contains response data for the listSharedAccessKeys operation. + */ +export type DomainsListSharedAccessKeysResponse = DomainSharedAccessKeys & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainSharedAccessKeys; + }; +}; + +/** + * Contains response data for the regenerateKey operation. + */ +export type DomainsRegenerateKeyResponse = DomainSharedAccessKeys & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainSharedAccessKeys; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DomainsBeginCreateOrUpdateResponse = Domain & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Domain; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type DomainsBeginUpdateResponse = Domain & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: Domain; + }; +}; + +/** + * Contains response data for the listBySubscriptionNext operation. + */ +export type DomainsListBySubscriptionNextResponse = DomainsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainsListResult; + }; +}; + +/** + * Contains response data for the listByResourceGroupNext operation. + */ +export type DomainsListByResourceGroupNextResponse = DomainsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainsListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type DomainTopicsGetResponse = DomainTopic & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainTopic; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DomainTopicsCreateOrUpdateResponse = DomainTopic & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainTopic; + }; +}; + +/** + * Contains response data for the listByDomain operation. + */ +export type DomainTopicsListByDomainResponse = DomainTopicsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainTopicsListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DomainTopicsBeginCreateOrUpdateResponse = DomainTopic & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainTopic; + }; +}; + +/** + * Contains response data for the listByDomainNext operation. + */ +export type DomainTopicsListByDomainNextResponse = DomainTopicsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DomainTopicsListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type EventChannelsGetResponse = EventChannel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventChannel; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type EventChannelsCreateOrUpdateResponse = EventChannel & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventChannel; + }; +}; + +/** + * Contains response data for the listByPartnerNamespace operation. + */ +export type EventChannelsListByPartnerNamespaceResponse = EventChannelsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventChannelsListResult; + }; +}; + +/** + * Contains response data for the listByPartnerNamespaceNext operation. + */ +export type EventChannelsListByPartnerNamespaceNextResponse = EventChannelsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventChannelsListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type EventSubscriptionsGetResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type EventSubscriptionsCreateOrUpdateResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type EventSubscriptionsUpdateResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; + +/** + * Contains response data for the getFullUrl operation. + */ +export type EventSubscriptionsGetFullUrlResponse = EventSubscriptionFullUrl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionFullUrl; + }; +}; + +/** + * Contains response data for the listGlobalBySubscription operation. + */ +export type EventSubscriptionsListGlobalBySubscriptionResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listGlobalBySubscriptionForTopicType operation. + */ +export type EventSubscriptionsListGlobalBySubscriptionForTopicTypeResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listGlobalByResourceGroup operation. + */ +export type EventSubscriptionsListGlobalByResourceGroupResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listGlobalByResourceGroupForTopicType operation. + */ +export type EventSubscriptionsListGlobalByResourceGroupForTopicTypeResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listRegionalBySubscription operation. + */ +export type EventSubscriptionsListRegionalBySubscriptionResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listRegionalByResourceGroup operation. + */ +export type EventSubscriptionsListRegionalByResourceGroupResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listRegionalBySubscriptionForTopicType operation. + */ +export type EventSubscriptionsListRegionalBySubscriptionForTopicTypeResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listRegionalByResourceGroupForTopicType operation. + */ +export type EventSubscriptionsListRegionalByResourceGroupForTopicTypeResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listByResource operation. + */ +export type EventSubscriptionsListByResourceResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listByDomainTopic operation. + */ +export type EventSubscriptionsListByDomainTopicResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the getDeliveryAttributes operation. + */ +export type EventSubscriptionsGetDeliveryAttributesResponse = DeliveryAttributeListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeliveryAttributeListResult; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type EventSubscriptionsBeginCreateOrUpdateResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; + +/** + * Contains response data for the beginUpdate operation. + */ +export type EventSubscriptionsBeginUpdateResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; + +/** + * Contains response data for the listGlobalBySubscriptionNext operation. + */ +export type EventSubscriptionsListGlobalBySubscriptionNextResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listGlobalBySubscriptionForTopicTypeNext operation. + */ +export type EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listGlobalByResourceGroupNext operation. + */ +export type EventSubscriptionsListGlobalByResourceGroupNextResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listGlobalByResourceGroupForTopicTypeNext operation. + */ +export type EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listRegionalBySubscriptionNext operation. + */ +export type EventSubscriptionsListRegionalBySubscriptionNextResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listRegionalByResourceGroupNext operation. + */ +export type EventSubscriptionsListRegionalByResourceGroupNextResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listRegionalBySubscriptionForTopicTypeNext operation. + */ +export type EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listRegionalByResourceGroupForTopicTypeNext operation. + */ +export type EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listByResourceNext operation. + */ +export type EventSubscriptionsListByResourceNextResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the listByDomainTopicNext operation. + */ +export type EventSubscriptionsListByDomainTopicNextResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type SystemTopicEventSubscriptionsGetResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type SystemTopicEventSubscriptionsCreateOrUpdateResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; + +/** + * Contains response data for the update operation. + */ +export type SystemTopicEventSubscriptionsUpdateResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; + +/** + * Contains response data for the getFullUrl operation. + */ +export type SystemTopicEventSubscriptionsGetFullUrlResponse = EventSubscriptionFullUrl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionFullUrl; + }; +}; /** - * Defines values for DomainProvisioningState. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' - * @readonly - * @enum {string} + * Contains response data for the listBySystemTopic operation. */ -export type DomainProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; +export type SystemTopicEventSubscriptionsListBySystemTopicResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for InputSchema. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventSchemaV1_0' - * @readonly - * @enum {string} - */ -export type InputSchema = 'EventGridSchema' | 'CustomEventSchema' | 'CloudEventSchemaV1_0'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; /** - * Defines values for PublicNetworkAccess. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} + * Contains response data for the getDeliveryAttributes operation. */ -export type PublicNetworkAccess = 'Enabled' | 'Disabled'; +export type SystemTopicEventSubscriptionsGetDeliveryAttributesResponse = DeliveryAttributeListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for IpActionType. - * Possible values include: 'Allow' - * @readonly - * @enum {string} - */ -export type IpActionType = 'Allow'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DeliveryAttributeListResult; + }; +}; /** - * Defines values for DomainTopicProvisioningState. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' - * @readonly - * @enum {string} + * Contains response data for the beginCreateOrUpdate operation. */ -export type DomainTopicProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; +export type SystemTopicEventSubscriptionsBeginCreateOrUpdateResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for EventSubscriptionProvisioningState. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed', - * 'AwaitingManualAction' - * @readonly - * @enum {string} - */ -export type EventSubscriptionProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed' | 'AwaitingManualAction'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; /** - * Defines values for EventDeliverySchema. - * Possible values include: 'EventGridSchema', 'CustomInputSchema', 'CloudEventSchemaV1_0' - * @readonly - * @enum {string} + * Contains response data for the beginUpdate operation. */ -export type EventDeliverySchema = 'EventGridSchema' | 'CustomInputSchema' | 'CloudEventSchemaV1_0'; +export type SystemTopicEventSubscriptionsBeginUpdateResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for TopicProvisioningState. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' - * @readonly - * @enum {string} - */ -export type TopicProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; /** - * Defines values for ResourceRegionType. - * Possible values include: 'RegionalResource', 'GlobalResource' - * @readonly - * @enum {string} + * Contains response data for the listBySystemTopicNext operation. */ -export type ResourceRegionType = 'RegionalResource' | 'GlobalResource'; +export type SystemTopicEventSubscriptionsListBySystemTopicNextResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; /** - * Defines values for TopicTypeProvisioningState. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type TopicTypeProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed'; +export type PartnerTopicEventSubscriptionsGetResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; /** - * Defines values for ParentType. - * Possible values include: 'topics', 'domains' - * @readonly - * @enum {string} + * Contains response data for the createOrUpdate operation. */ -export type ParentType = 'topics' | 'domains'; +export type PartnerTopicEventSubscriptionsCreateOrUpdateResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; /** - * Defines values for ParentType1. - * Possible values include: 'topics', 'domains' - * @readonly - * @enum {string} + * Contains response data for the update operation. */ -export type ParentType1 = 'topics' | 'domains'; +export type PartnerTopicEventSubscriptionsUpdateResponse = EventSubscription & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscription; + }; +}; /** - * Defines values for ParentType2. - * Possible values include: 'topics', 'domains' - * @readonly - * @enum {string} + * Contains response data for the getFullUrl operation. */ -export type ParentType2 = 'topics' | 'domains'; +export type PartnerTopicEventSubscriptionsGetFullUrlResponse = EventSubscriptionFullUrl & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionFullUrl; + }; +}; /** - * Defines values for ParentType3. - * Possible values include: 'topics', 'domains' - * @readonly - * @enum {string} + * Contains response data for the listByPartnerTopic operation. */ -export type ParentType3 = 'topics' | 'domains'; +export type PartnerTopicEventSubscriptionsListByPartnerTopicResponse = EventSubscriptionsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: EventSubscriptionsListResult; + }; +}; /** - * Contains response data for the get operation. + * Contains response data for the getDeliveryAttributes operation. */ -export type DomainsGetResponse = Domain & { +export type PartnerTopicEventSubscriptionsGetDeliveryAttributesResponse = DeliveryAttributeListResult & { /** * The underlying HTTP response. */ @@ -1691,14 +4802,14 @@ export type DomainsGetResponse = Domain & { /** * The response body as parsed JSON or XML */ - parsedBody: Domain; + parsedBody: DeliveryAttributeListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DomainsCreateOrUpdateResponse = Domain & { +export type PartnerTopicEventSubscriptionsBeginCreateOrUpdateResponse = EventSubscription & { /** * The underlying HTTP response. */ @@ -1711,14 +4822,14 @@ export type DomainsCreateOrUpdateResponse = Domain & { /** * The response body as parsed JSON or XML */ - parsedBody: Domain; + parsedBody: EventSubscription; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginUpdate operation. */ -export type DomainsUpdateResponse = Domain & { +export type PartnerTopicEventSubscriptionsBeginUpdateResponse = EventSubscription & { /** * The underlying HTTP response. */ @@ -1731,14 +4842,14 @@ export type DomainsUpdateResponse = Domain & { /** * The response body as parsed JSON or XML */ - parsedBody: Domain; + parsedBody: EventSubscription; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the listByPartnerTopicNext operation. */ -export type DomainsListBySubscriptionResponse = DomainsListResult & { +export type PartnerTopicEventSubscriptionsListByPartnerTopicNextResponse = EventSubscriptionsListResult & { /** * The underlying HTTP response. */ @@ -1751,14 +4862,14 @@ export type DomainsListBySubscriptionResponse = DomainsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DomainsListResult; + parsedBody: EventSubscriptionsListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the list operation. */ -export type DomainsListByResourceGroupResponse = DomainsListResult & { +export type OperationsListResponse = OperationsListResult & { /** * The underlying HTTP response. */ @@ -1771,14 +4882,14 @@ export type DomainsListByResourceGroupResponse = DomainsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DomainsListResult; + parsedBody: OperationsListResult; }; }; /** - * Contains response data for the listSharedAccessKeys operation. + * Contains response data for the get operation. */ -export type DomainsListSharedAccessKeysResponse = DomainSharedAccessKeys & { +export type PartnerNamespacesGetResponse = PartnerNamespace & { /** * The underlying HTTP response. */ @@ -1791,14 +4902,14 @@ export type DomainsListSharedAccessKeysResponse = DomainSharedAccessKeys & { /** * The response body as parsed JSON or XML */ - parsedBody: DomainSharedAccessKeys; + parsedBody: PartnerNamespace; }; }; /** - * Contains response data for the regenerateKey operation. + * Contains response data for the createOrUpdate operation. */ -export type DomainsRegenerateKeyResponse = DomainSharedAccessKeys & { +export type PartnerNamespacesCreateOrUpdateResponse = PartnerNamespace & { /** * The underlying HTTP response. */ @@ -1811,14 +4922,14 @@ export type DomainsRegenerateKeyResponse = DomainSharedAccessKeys & { /** * The response body as parsed JSON or XML */ - parsedBody: DomainSharedAccessKeys; + parsedBody: PartnerNamespace; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the update operation. */ -export type DomainsBeginCreateOrUpdateResponse = Domain & { +export type PartnerNamespacesUpdateResponse = PartnerNamespace & { /** * The underlying HTTP response. */ @@ -1831,14 +4942,14 @@ export type DomainsBeginCreateOrUpdateResponse = Domain & { /** * The response body as parsed JSON or XML */ - parsedBody: Domain; + parsedBody: PartnerNamespace; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listBySubscription operation. */ -export type DomainsBeginUpdateResponse = Domain & { +export type PartnerNamespacesListBySubscriptionResponse = PartnerNamespacesListResult & { /** * The underlying HTTP response. */ @@ -1851,14 +4962,14 @@ export type DomainsBeginUpdateResponse = Domain & { /** * The response body as parsed JSON or XML */ - parsedBody: Domain; + parsedBody: PartnerNamespacesListResult; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listByResourceGroup operation. */ -export type DomainsListBySubscriptionNextResponse = DomainsListResult & { +export type PartnerNamespacesListByResourceGroupResponse = PartnerNamespacesListResult & { /** * The underlying HTTP response. */ @@ -1871,14 +4982,14 @@ export type DomainsListBySubscriptionNextResponse = DomainsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DomainsListResult; + parsedBody: PartnerNamespacesListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listSharedAccessKeys operation. */ -export type DomainsListByResourceGroupNextResponse = DomainsListResult & { +export type PartnerNamespacesListSharedAccessKeysResponse = PartnerNamespaceSharedAccessKeys & { /** * The underlying HTTP response. */ @@ -1891,14 +5002,14 @@ export type DomainsListByResourceGroupNextResponse = DomainsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DomainsListResult; + parsedBody: PartnerNamespaceSharedAccessKeys; }; }; /** - * Contains response data for the get operation. + * Contains response data for the regenerateKey operation. */ -export type DomainTopicsGetResponse = DomainTopic & { +export type PartnerNamespacesRegenerateKeyResponse = PartnerNamespaceSharedAccessKeys & { /** * The underlying HTTP response. */ @@ -1911,14 +5022,14 @@ export type DomainTopicsGetResponse = DomainTopic & { /** * The response body as parsed JSON or XML */ - parsedBody: DomainTopic; + parsedBody: PartnerNamespaceSharedAccessKeys; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type DomainTopicsCreateOrUpdateResponse = DomainTopic & { +export type PartnerNamespacesBeginCreateOrUpdateResponse = PartnerNamespace & { /** * The underlying HTTP response. */ @@ -1931,14 +5042,14 @@ export type DomainTopicsCreateOrUpdateResponse = DomainTopic & { /** * The response body as parsed JSON or XML */ - parsedBody: DomainTopic; + parsedBody: PartnerNamespace; }; }; /** - * Contains response data for the listByDomain operation. + * Contains response data for the beginUpdate operation. */ -export type DomainTopicsListByDomainResponse = DomainTopicsListResult & { +export type PartnerNamespacesBeginUpdateResponse = PartnerNamespace & { /** * The underlying HTTP response. */ @@ -1951,14 +5062,14 @@ export type DomainTopicsListByDomainResponse = DomainTopicsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DomainTopicsListResult; + parsedBody: PartnerNamespace; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type DomainTopicsBeginCreateOrUpdateResponse = DomainTopic & { +export type PartnerNamespacesListBySubscriptionNextResponse = PartnerNamespacesListResult & { /** * The underlying HTTP response. */ @@ -1971,14 +5082,14 @@ export type DomainTopicsBeginCreateOrUpdateResponse = DomainTopic & { /** * The response body as parsed JSON or XML */ - parsedBody: DomainTopic; + parsedBody: PartnerNamespacesListResult; }; }; /** - * Contains response data for the listByDomainNext operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type DomainTopicsListByDomainNextResponse = DomainTopicsListResult & { +export type PartnerNamespacesListByResourceGroupNextResponse = PartnerNamespacesListResult & { /** * The underlying HTTP response. */ @@ -1991,14 +5102,14 @@ export type DomainTopicsListByDomainNextResponse = DomainTopicsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: DomainTopicsListResult; + parsedBody: PartnerNamespacesListResult; }; }; /** * Contains response data for the get operation. */ -export type EventSubscriptionsGetResponse = EventSubscription & { +export type PartnerRegistrationsGetResponse = PartnerRegistration & { /** * The underlying HTTP response. */ @@ -2011,14 +5122,14 @@ export type EventSubscriptionsGetResponse = EventSubscription & { /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscription; + parsedBody: PartnerRegistration; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type EventSubscriptionsCreateOrUpdateResponse = EventSubscription & { +export type PartnerRegistrationsCreateOrUpdateResponse = PartnerRegistration & { /** * The underlying HTTP response. */ @@ -2031,14 +5142,14 @@ export type EventSubscriptionsCreateOrUpdateResponse = EventSubscription & { /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscription; + parsedBody: PartnerRegistration; }; }; /** * Contains response data for the update operation. */ -export type EventSubscriptionsUpdateResponse = EventSubscription & { +export type PartnerRegistrationsUpdateResponse = PartnerRegistration & { /** * The underlying HTTP response. */ @@ -2051,14 +5162,14 @@ export type EventSubscriptionsUpdateResponse = EventSubscription & { /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscription; + parsedBody: PartnerRegistration; }; }; /** - * Contains response data for the getFullUrl operation. + * Contains response data for the listBySubscription operation. */ -export type EventSubscriptionsGetFullUrlResponse = EventSubscriptionFullUrl & { +export type PartnerRegistrationsListBySubscriptionResponse = PartnerRegistrationsListResult & { /** * The underlying HTTP response. */ @@ -2071,14 +5182,14 @@ export type EventSubscriptionsGetFullUrlResponse = EventSubscriptionFullUrl & { /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionFullUrl; + parsedBody: PartnerRegistrationsListResult; }; }; /** - * Contains response data for the listGlobalBySubscription operation. + * Contains response data for the listByResourceGroup operation. */ -export type EventSubscriptionsListGlobalBySubscriptionResponse = EventSubscriptionsListResult & { +export type PartnerRegistrationsListByResourceGroupResponse = PartnerRegistrationsListResult & { /** * The underlying HTTP response. */ @@ -2091,14 +5202,14 @@ export type EventSubscriptionsListGlobalBySubscriptionResponse = EventSubscripti /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PartnerRegistrationsListResult; }; }; /** - * Contains response data for the listGlobalBySubscriptionForTopicType operation. + * Contains response data for the list operation. */ -export type EventSubscriptionsListGlobalBySubscriptionForTopicTypeResponse = EventSubscriptionsListResult & { +export type PartnerRegistrationsListResponse = PartnerRegistrationsListResult & { /** * The underlying HTTP response. */ @@ -2111,14 +5222,14 @@ export type EventSubscriptionsListGlobalBySubscriptionForTopicTypeResponse = Eve /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PartnerRegistrationsListResult; }; }; /** - * Contains response data for the listGlobalByResourceGroup operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type EventSubscriptionsListGlobalByResourceGroupResponse = EventSubscriptionsListResult & { +export type PartnerRegistrationsListBySubscriptionNextResponse = PartnerRegistrationsListResult & { /** * The underlying HTTP response. */ @@ -2131,14 +5242,14 @@ export type EventSubscriptionsListGlobalByResourceGroupResponse = EventSubscript /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PartnerRegistrationsListResult; }; }; /** - * Contains response data for the listGlobalByResourceGroupForTopicType operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type EventSubscriptionsListGlobalByResourceGroupForTopicTypeResponse = EventSubscriptionsListResult & { +export type PartnerRegistrationsListByResourceGroupNextResponse = PartnerRegistrationsListResult & { /** * The underlying HTTP response. */ @@ -2151,14 +5262,14 @@ export type EventSubscriptionsListGlobalByResourceGroupForTopicTypeResponse = Ev /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PartnerRegistrationsListResult; }; }; /** - * Contains response data for the listRegionalBySubscription operation. + * Contains response data for the get operation. */ -export type EventSubscriptionsListRegionalBySubscriptionResponse = EventSubscriptionsListResult & { +export type PartnerTopicsGetResponse = PartnerTopic & { /** * The underlying HTTP response. */ @@ -2171,14 +5282,14 @@ export type EventSubscriptionsListRegionalBySubscriptionResponse = EventSubscrip /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PartnerTopic; }; }; /** - * Contains response data for the listRegionalByResourceGroup operation. + * Contains response data for the update operation. */ -export type EventSubscriptionsListRegionalByResourceGroupResponse = EventSubscriptionsListResult & { +export type PartnerTopicsUpdateResponse = PartnerTopic & { /** * The underlying HTTP response. */ @@ -2191,14 +5302,14 @@ export type EventSubscriptionsListRegionalByResourceGroupResponse = EventSubscri /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PartnerTopic; }; }; /** - * Contains response data for the listRegionalBySubscriptionForTopicType operation. + * Contains response data for the listBySubscription operation. */ -export type EventSubscriptionsListRegionalBySubscriptionForTopicTypeResponse = EventSubscriptionsListResult & { +export type PartnerTopicsListBySubscriptionResponse = PartnerTopicsListResult & { /** * The underlying HTTP response. */ @@ -2211,14 +5322,14 @@ export type EventSubscriptionsListRegionalBySubscriptionForTopicTypeResponse = E /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PartnerTopicsListResult; }; }; /** - * Contains response data for the listRegionalByResourceGroupForTopicType operation. + * Contains response data for the listByResourceGroup operation. */ -export type EventSubscriptionsListRegionalByResourceGroupForTopicTypeResponse = EventSubscriptionsListResult & { +export type PartnerTopicsListByResourceGroupResponse = PartnerTopicsListResult & { /** * The underlying HTTP response. */ @@ -2231,14 +5342,14 @@ export type EventSubscriptionsListRegionalByResourceGroupForTopicTypeResponse = /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PartnerTopicsListResult; }; }; /** - * Contains response data for the listByResource operation. + * Contains response data for the activate operation. */ -export type EventSubscriptionsListByResourceResponse = EventSubscriptionsListResult & { +export type PartnerTopicsActivateResponse = PartnerTopic & { /** * The underlying HTTP response. */ @@ -2251,14 +5362,14 @@ export type EventSubscriptionsListByResourceResponse = EventSubscriptionsListRes /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PartnerTopic; }; }; /** - * Contains response data for the listByDomainTopic operation. + * Contains response data for the deactivate operation. */ -export type EventSubscriptionsListByDomainTopicResponse = EventSubscriptionsListResult & { +export type PartnerTopicsDeactivateResponse = PartnerTopic & { /** * The underlying HTTP response. */ @@ -2271,14 +5382,14 @@ export type EventSubscriptionsListByDomainTopicResponse = EventSubscriptionsList /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PartnerTopic; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type EventSubscriptionsBeginCreateOrUpdateResponse = EventSubscription & { +export type PartnerTopicsListBySubscriptionNextResponse = PartnerTopicsListResult & { /** * The underlying HTTP response. */ @@ -2291,14 +5402,14 @@ export type EventSubscriptionsBeginCreateOrUpdateResponse = EventSubscription & /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscription; + parsedBody: PartnerTopicsListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type EventSubscriptionsBeginUpdateResponse = EventSubscription & { +export type PartnerTopicsListByResourceGroupNextResponse = PartnerTopicsListResult & { /** * The underlying HTTP response. */ @@ -2311,14 +5422,14 @@ export type EventSubscriptionsBeginUpdateResponse = EventSubscription & { /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscription; + parsedBody: PartnerTopicsListResult; }; }; /** - * Contains response data for the listGlobalBySubscriptionNext operation. + * Contains response data for the get operation. */ -export type EventSubscriptionsListGlobalBySubscriptionNextResponse = EventSubscriptionsListResult & { +export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -2331,14 +5442,14 @@ export type EventSubscriptionsListGlobalBySubscriptionNextResponse = EventSubscr /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listGlobalBySubscriptionForTopicTypeNext operation. + * Contains response data for the update operation. */ -export type EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextResponse = EventSubscriptionsListResult & { +export type PrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -2351,14 +5462,14 @@ export type EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextResponse = /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listGlobalByResourceGroupNext operation. + * Contains response data for the listByResource operation. */ -export type EventSubscriptionsListGlobalByResourceGroupNextResponse = EventSubscriptionsListResult & { +export type PrivateEndpointConnectionsListByResourceResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -2371,14 +5482,14 @@ export type EventSubscriptionsListGlobalByResourceGroupNextResponse = EventSubsc /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the listGlobalByResourceGroupForTopicTypeNext operation. + * Contains response data for the beginUpdate operation. */ -export type EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextResponse = EventSubscriptionsListResult & { +export type PrivateEndpointConnectionsBeginUpdateResponse = PrivateEndpointConnection & { /** * The underlying HTTP response. */ @@ -2391,14 +5502,14 @@ export type EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextResponse /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PrivateEndpointConnection; }; }; /** - * Contains response data for the listRegionalBySubscriptionNext operation. + * Contains response data for the listByResourceNext operation. */ -export type EventSubscriptionsListRegionalBySubscriptionNextResponse = EventSubscriptionsListResult & { +export type PrivateEndpointConnectionsListByResourceNextResponse = PrivateEndpointConnectionListResult & { /** * The underlying HTTP response. */ @@ -2411,14 +5522,14 @@ export type EventSubscriptionsListRegionalBySubscriptionNextResponse = EventSubs /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PrivateEndpointConnectionListResult; }; }; /** - * Contains response data for the listRegionalByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type EventSubscriptionsListRegionalByResourceGroupNextResponse = EventSubscriptionsListResult & { +export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The underlying HTTP response. */ @@ -2431,14 +5542,14 @@ export type EventSubscriptionsListRegionalByResourceGroupNextResponse = EventSub /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PrivateLinkResource; }; }; /** - * Contains response data for the listRegionalBySubscriptionForTopicTypeNext operation. + * Contains response data for the listByResource operation. */ -export type EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextResponse = EventSubscriptionsListResult & { +export type PrivateLinkResourcesListByResourceResponse = PrivateLinkResourcesListResult & { /** * The underlying HTTP response. */ @@ -2451,14 +5562,14 @@ export type EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextResponse /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PrivateLinkResourcesListResult; }; }; /** - * Contains response data for the listRegionalByResourceGroupForTopicTypeNext operation. + * Contains response data for the listByResourceNext operation. */ -export type EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextResponse = EventSubscriptionsListResult & { +export type PrivateLinkResourcesListByResourceNextResponse = PrivateLinkResourcesListResult & { /** * The underlying HTTP response. */ @@ -2471,14 +5582,14 @@ export type EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextRespons /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: PrivateLinkResourcesListResult; }; }; /** - * Contains response data for the listByResourceNext operation. + * Contains response data for the get operation. */ -export type EventSubscriptionsListByResourceNextResponse = EventSubscriptionsListResult & { +export type SystemTopicsGetResponse = SystemTopic & { /** * The underlying HTTP response. */ @@ -2491,14 +5602,14 @@ export type EventSubscriptionsListByResourceNextResponse = EventSubscriptionsLis /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: SystemTopic; }; }; /** - * Contains response data for the listByDomainTopicNext operation. + * Contains response data for the createOrUpdate operation. */ -export type EventSubscriptionsListByDomainTopicNextResponse = EventSubscriptionsListResult & { +export type SystemTopicsCreateOrUpdateResponse = SystemTopic & { /** * The underlying HTTP response. */ @@ -2511,14 +5622,14 @@ export type EventSubscriptionsListByDomainTopicNextResponse = EventSubscriptions /** * The response body as parsed JSON or XML */ - parsedBody: EventSubscriptionsListResult; + parsedBody: SystemTopic; }; }; /** - * Contains response data for the list operation. + * Contains response data for the update operation. */ -export type OperationsListResponse = OperationsListResult & { +export type SystemTopicsUpdateResponse = SystemTopic & { /** * The underlying HTTP response. */ @@ -2531,14 +5642,14 @@ export type OperationsListResponse = OperationsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: OperationsListResult; + parsedBody: SystemTopic; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listBySubscription operation. */ -export type TopicsGetResponse = Topic & { +export type SystemTopicsListBySubscriptionResponse = SystemTopicsListResult & { /** * The underlying HTTP response. */ @@ -2551,14 +5662,14 @@ export type TopicsGetResponse = Topic & { /** * The response body as parsed JSON or XML */ - parsedBody: Topic; + parsedBody: SystemTopicsListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listByResourceGroup operation. */ -export type TopicsCreateOrUpdateResponse = Topic & { +export type SystemTopicsListByResourceGroupResponse = SystemTopicsListResult & { /** * The underlying HTTP response. */ @@ -2571,14 +5682,14 @@ export type TopicsCreateOrUpdateResponse = Topic & { /** * The response body as parsed JSON or XML */ - parsedBody: Topic; + parsedBody: SystemTopicsListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type TopicsUpdateResponse = Topic & { +export type SystemTopicsBeginCreateOrUpdateResponse = SystemTopic & { /** * The underlying HTTP response. */ @@ -2591,14 +5702,14 @@ export type TopicsUpdateResponse = Topic & { /** * The response body as parsed JSON or XML */ - parsedBody: Topic; + parsedBody: SystemTopic; }; }; /** - * Contains response data for the listBySubscription operation. + * Contains response data for the beginUpdate operation. */ -export type TopicsListBySubscriptionResponse = TopicsListResult & { +export type SystemTopicsBeginUpdateResponse = SystemTopic & { /** * The underlying HTTP response. */ @@ -2611,14 +5722,14 @@ export type TopicsListBySubscriptionResponse = TopicsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TopicsListResult; + parsedBody: SystemTopic; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type TopicsListByResourceGroupResponse = TopicsListResult & { +export type SystemTopicsListBySubscriptionNextResponse = SystemTopicsListResult & { /** * The underlying HTTP response. */ @@ -2631,14 +5742,14 @@ export type TopicsListByResourceGroupResponse = TopicsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TopicsListResult; + parsedBody: SystemTopicsListResult; }; }; /** - * Contains response data for the listSharedAccessKeys operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type TopicsListSharedAccessKeysResponse = TopicSharedAccessKeys & { +export type SystemTopicsListByResourceGroupNextResponse = SystemTopicsListResult & { /** * The underlying HTTP response. */ @@ -2651,14 +5762,14 @@ export type TopicsListSharedAccessKeysResponse = TopicSharedAccessKeys & { /** * The response body as parsed JSON or XML */ - parsedBody: TopicSharedAccessKeys; + parsedBody: SystemTopicsListResult; }; }; /** - * Contains response data for the regenerateKey operation. + * Contains response data for the get operation. */ -export type TopicsRegenerateKeyResponse = TopicSharedAccessKeys & { +export type TopicsGetResponse = Topic & { /** * The underlying HTTP response. */ @@ -2671,14 +5782,14 @@ export type TopicsRegenerateKeyResponse = TopicSharedAccessKeys & { /** * The response body as parsed JSON or XML */ - parsedBody: TopicSharedAccessKeys; + parsedBody: Topic; }; }; /** - * Contains response data for the listEventTypes operation. + * Contains response data for the createOrUpdate operation. */ -export type TopicsListEventTypesResponse = EventTypesListResult & { +export type TopicsCreateOrUpdateResponse = Topic & { /** * The underlying HTTP response. */ @@ -2691,14 +5802,14 @@ export type TopicsListEventTypesResponse = EventTypesListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: EventTypesListResult; + parsedBody: Topic; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the update operation. */ -export type TopicsBeginCreateOrUpdateResponse = Topic & { +export type TopicsUpdateResponse = Topic & { /** * The underlying HTTP response. */ @@ -2716,9 +5827,9 @@ export type TopicsBeginCreateOrUpdateResponse = Topic & { }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listBySubscription operation. */ -export type TopicsBeginUpdateResponse = Topic & { +export type TopicsListBySubscriptionResponse = TopicsListResult & { /** * The underlying HTTP response. */ @@ -2731,14 +5842,14 @@ export type TopicsBeginUpdateResponse = Topic & { /** * The response body as parsed JSON or XML */ - parsedBody: Topic; + parsedBody: TopicsListResult; }; }; /** - * Contains response data for the listBySubscriptionNext operation. + * Contains response data for the listByResourceGroup operation. */ -export type TopicsListBySubscriptionNextResponse = TopicsListResult & { +export type TopicsListByResourceGroupResponse = TopicsListResult & { /** * The underlying HTTP response. */ @@ -2756,9 +5867,9 @@ export type TopicsListBySubscriptionNextResponse = TopicsListResult & { }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the listSharedAccessKeys operation. */ -export type TopicsListByResourceGroupNextResponse = TopicsListResult & { +export type TopicsListSharedAccessKeysResponse = TopicSharedAccessKeys & { /** * The underlying HTTP response. */ @@ -2771,14 +5882,14 @@ export type TopicsListByResourceGroupNextResponse = TopicsListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: TopicsListResult; + parsedBody: TopicSharedAccessKeys; }; }; /** - * Contains response data for the get operation. + * Contains response data for the regenerateKey operation. */ -export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & { +export type TopicsRegenerateKeyResponse = TopicSharedAccessKeys & { /** * The underlying HTTP response. */ @@ -2791,14 +5902,14 @@ export type PrivateEndpointConnectionsGetResponse = PrivateEndpointConnection & /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: TopicSharedAccessKeys; }; }; /** - * Contains response data for the update operation. + * Contains response data for the listEventTypes operation. */ -export type PrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnection & { +export type TopicsListEventTypesResponse = EventTypesListResult & { /** * The underlying HTTP response. */ @@ -2811,14 +5922,14 @@ export type PrivateEndpointConnectionsUpdateResponse = PrivateEndpointConnection /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: EventTypesListResult; }; }; /** - * Contains response data for the listByResource operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type PrivateEndpointConnectionsListByResourceResponse = PrivateEndpointConnectionListResult & { +export type TopicsBeginCreateOrUpdateResponse = Topic & { /** * The underlying HTTP response. */ @@ -2831,14 +5942,14 @@ export type PrivateEndpointConnectionsListByResourceResponse = PrivateEndpointCo /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnectionListResult; + parsedBody: Topic; }; }; /** * Contains response data for the beginUpdate operation. */ -export type PrivateEndpointConnectionsBeginUpdateResponse = PrivateEndpointConnection & { +export type TopicsBeginUpdateResponse = Topic & { /** * The underlying HTTP response. */ @@ -2851,14 +5962,14 @@ export type PrivateEndpointConnectionsBeginUpdateResponse = PrivateEndpointConne /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnection; + parsedBody: Topic; }; }; /** - * Contains response data for the listByResourceNext operation. + * Contains response data for the beginRegenerateKey operation. */ -export type PrivateEndpointConnectionsListByResourceNextResponse = PrivateEndpointConnectionListResult & { +export type TopicsBeginRegenerateKeyResponse = TopicSharedAccessKeys & { /** * The underlying HTTP response. */ @@ -2871,14 +5982,14 @@ export type PrivateEndpointConnectionsListByResourceNextResponse = PrivateEndpoi /** * The response body as parsed JSON or XML */ - parsedBody: PrivateEndpointConnectionListResult; + parsedBody: TopicSharedAccessKeys; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listBySubscriptionNext operation. */ -export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { +export type TopicsListBySubscriptionNextResponse = TopicsListResult & { /** * The underlying HTTP response. */ @@ -2891,14 +6002,14 @@ export type PrivateLinkResourcesGetResponse = PrivateLinkResource & { /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResource; + parsedBody: TopicsListResult; }; }; /** - * Contains response data for the listByResource operation. + * Contains response data for the listByResourceGroupNext operation. */ -export type PrivateLinkResourcesListByResourceResponse = PrivateLinkResourcesListResult & { +export type TopicsListByResourceGroupNextResponse = TopicsListResult & { /** * The underlying HTTP response. */ @@ -2911,14 +6022,14 @@ export type PrivateLinkResourcesListByResourceResponse = PrivateLinkResourcesLis /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResourcesListResult; + parsedBody: TopicsListResult; }; }; /** - * Contains response data for the listByResourceNext operation. + * Contains response data for the get operation. */ -export type PrivateLinkResourcesListByResourceNextResponse = PrivateLinkResourcesListResult & { +export type ExtensionTopicsGetResponse = ExtensionTopic & { /** * The underlying HTTP response. */ @@ -2931,7 +6042,7 @@ export type PrivateLinkResourcesListByResourceNextResponse = PrivateLinkResource /** * The response body as parsed JSON or XML */ - parsedBody: PrivateLinkResourcesListResult; + parsedBody: ExtensionTopic; }; }; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts index 468c72e67071..bc21a5531e3e 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -173,6 +173,84 @@ export const InboundIpRule: msRest.CompositeMapper = { } }; +export const ResourceSku: msRest.CompositeMapper = { + serializedName: "ResourceSku", + type: { + name: "Composite", + className: "ResourceSku", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + } + } + } +}; + +export const UserIdentityProperties: msRest.CompositeMapper = { + serializedName: "UserIdentityProperties", + type: { + name: "Composite", + className: "UserIdentityProperties", + modelProperties: { + principalId: { + serializedName: "principalId", + type: { + name: "String" + } + }, + clientId: { + serializedName: "clientId", + type: { + name: "String" + } + } + } + } +}; + +export const IdentityInfo: msRest.CompositeMapper = { + serializedName: "IdentityInfo", + type: { + name: "Composite", + className: "IdentityInfo", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + principalId: { + serializedName: "principalId", + type: { + name: "String" + } + }, + tenantId: { + serializedName: "tenantId", + type: { + name: "String" + } + }, + userAssignedIdentities: { + serializedName: "userAssignedIdentities", + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "UserIdentityProperties" + } + } + } + } + } + } +}; + export const JsonField: msRest.CompositeMapper = { serializedName: "JsonField", type: { @@ -366,6 +444,20 @@ export const Domain: msRest.CompositeMapper = { } } } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ResourceSku" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityInfo" + } } } } @@ -405,6 +497,20 @@ export const DomainUpdateParameters: msRest.CompositeMapper = { } } } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityInfo" + } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ResourceSku" + } } } } @@ -466,20 +572,42 @@ export const DomainTopic: msRest.CompositeMapper = { } }; -export const EventSubscriptionDestination: msRest.CompositeMapper = { - serializedName: "EventSubscriptionDestination", +export const EventChannelSource: msRest.CompositeMapper = { + serializedName: "EventChannelSource", type: { name: "Composite", - polymorphicDiscriminator: { - serializedName: "endpointType", - clientName: "endpointType" - }, - uberParent: "EventSubscriptionDestination", - className: "EventSubscriptionDestination", + className: "EventChannelSource", modelProperties: { - endpointType: { - required: true, - serializedName: "endpointType", + source: { + serializedName: "source", + type: { + name: "String" + } + } + } + } +}; + +export const EventChannelDestination: msRest.CompositeMapper = { + serializedName: "EventChannelDestination", + type: { + name: "Composite", + className: "EventChannelDestination", + modelProperties: { + azureSubscriptionId: { + serializedName: "azureSubscriptionId", + type: { + name: "String" + } + }, + resourceGroup: { + serializedName: "resourceGroup", + type: { + name: "String" + } + }, + partnerTopicName: { + serializedName: "partnerTopicName", type: { name: "String" } @@ -516,38 +644,14 @@ export const AdvancedFilter: msRest.CompositeMapper = { } }; -export const EventSubscriptionFilter: msRest.CompositeMapper = { - serializedName: "EventSubscriptionFilter", +export const EventChannelFilter: msRest.CompositeMapper = { + serializedName: "EventChannelFilter", type: { name: "Composite", - className: "EventSubscriptionFilter", + className: "EventChannelFilter", modelProperties: { - subjectBeginsWith: { - serializedName: "subjectBeginsWith", - type: { - name: "String" - } - }, - subjectEndsWith: { - serializedName: "subjectEndsWith", - type: { - name: "String" - } - }, - includedEventTypes: { - serializedName: "includedEventTypes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - isSubjectCaseSensitive: { - serializedName: "isSubjectCaseSensitive", - defaultValue: false, + enableAdvancedFilteringOnArrays: { + serializedName: "enableAdvancedFilteringOnArrays", type: { name: "Boolean" } @@ -568,50 +672,6 @@ export const EventSubscriptionFilter: msRest.CompositeMapper = { } }; -export const RetryPolicy: msRest.CompositeMapper = { - serializedName: "RetryPolicy", - type: { - name: "Composite", - className: "RetryPolicy", - modelProperties: { - maxDeliveryAttempts: { - serializedName: "maxDeliveryAttempts", - type: { - name: "Number" - } - }, - eventTimeToLiveInMinutes: { - serializedName: "eventTimeToLiveInMinutes", - type: { - name: "Number" - } - } - } - } -}; - -export const DeadLetterDestination: msRest.CompositeMapper = { - serializedName: "DeadLetterDestination", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "endpointType", - clientName: "endpointType" - }, - uberParent: "DeadLetterDestination", - className: "DeadLetterDestination", - modelProperties: { - endpointType: { - required: true, - serializedName: "endpointType", - type: { - name: "String" - } - } - } - } -}; - export const NumberInAdvancedFilter: msRest.CompositeMapper = { serializedName: "NumberIn", type: { @@ -636,31 +696,6 @@ export const NumberInAdvancedFilter: msRest.CompositeMapper = { } }; -export const StorageBlobDeadLetterDestination: msRest.CompositeMapper = { - serializedName: "StorageBlob", - type: { - name: "Composite", - polymorphicDiscriminator: DeadLetterDestination.type.polymorphicDiscriminator, - uberParent: "DeadLetterDestination", - className: "StorageBlobDeadLetterDestination", - modelProperties: { - ...DeadLetterDestination.type.modelProperties, - resourceId: { - serializedName: "properties.resourceId", - type: { - name: "String" - } - }, - blobContainerName: { - serializedName: "properties.blobContainerName", - type: { - name: "String" - } - } - } - } -}; - export const NumberNotInAdvancedFilter: msRest.CompositeMapper = { serializedName: "NumberNotIn", type: { @@ -900,333 +935,288 @@ export const StringContainsAdvancedFilter: msRest.CompositeMapper = { } }; -export const WebHookEventSubscriptionDestination: msRest.CompositeMapper = { - serializedName: "WebHook", +export const NumberInRangeAdvancedFilter: msRest.CompositeMapper = { + serializedName: "NumberInRange", type: { name: "Composite", - polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, - uberParent: "EventSubscriptionDestination", - className: "WebHookEventSubscriptionDestination", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + uberParent: "AdvancedFilter", + className: "NumberInRangeAdvancedFilter", modelProperties: { - ...EventSubscriptionDestination.type.modelProperties, - endpointUrl: { - serializedName: "properties.endpointUrl", - type: { - name: "String" - } - }, - endpointBaseUrl: { - readOnly: true, - serializedName: "properties.endpointBaseUrl", - type: { - name: "String" - } - }, - maxEventsPerBatch: { - serializedName: "properties.maxEventsPerBatch", - type: { - name: "Number" - } - }, - preferredBatchSizeInKilobytes: { - serializedName: "properties.preferredBatchSizeInKilobytes", - type: { - name: "Number" - } - }, - azureActiveDirectoryTenantId: { - serializedName: "properties.azureActiveDirectoryTenantId", - type: { - name: "String" - } - }, - azureActiveDirectoryApplicationIdOrUri: { - serializedName: "properties.azureActiveDirectoryApplicationIdOrUri", + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + } } } } } }; -export const EventHubEventSubscriptionDestination: msRest.CompositeMapper = { - serializedName: "EventHub", +export const NumberNotInRangeAdvancedFilter: msRest.CompositeMapper = { + serializedName: "NumberNotInRange", type: { name: "Composite", - polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, - uberParent: "EventSubscriptionDestination", - className: "EventHubEventSubscriptionDestination", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + uberParent: "AdvancedFilter", + className: "NumberNotInRangeAdvancedFilter", modelProperties: { - ...EventSubscriptionDestination.type.modelProperties, - resourceId: { - serializedName: "properties.resourceId", + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "Number" + } + } + } + } } } } } }; -export const StorageQueueEventSubscriptionDestination: msRest.CompositeMapper = { - serializedName: "StorageQueue", +export const StringNotBeginsWithAdvancedFilter: msRest.CompositeMapper = { + serializedName: "StringNotBeginsWith", type: { name: "Composite", - polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, - uberParent: "EventSubscriptionDestination", - className: "StorageQueueEventSubscriptionDestination", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + uberParent: "AdvancedFilter", + className: "StringNotBeginsWithAdvancedFilter", modelProperties: { - ...EventSubscriptionDestination.type.modelProperties, - resourceId: { - serializedName: "properties.resourceId", - type: { - name: "String" - } - }, - queueName: { - serializedName: "properties.queueName", + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const HybridConnectionEventSubscriptionDestination: msRest.CompositeMapper = { - serializedName: "HybridConnection", +export const StringNotEndsWithAdvancedFilter: msRest.CompositeMapper = { + serializedName: "StringNotEndsWith", type: { name: "Composite", - polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, - uberParent: "EventSubscriptionDestination", - className: "HybridConnectionEventSubscriptionDestination", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + uberParent: "AdvancedFilter", + className: "StringNotEndsWithAdvancedFilter", modelProperties: { - ...EventSubscriptionDestination.type.modelProperties, - resourceId: { - serializedName: "properties.resourceId", + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ServiceBusQueueEventSubscriptionDestination: msRest.CompositeMapper = { - serializedName: "ServiceBusQueue", +export const StringNotContainsAdvancedFilter: msRest.CompositeMapper = { + serializedName: "StringNotContains", type: { name: "Composite", - polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, - uberParent: "EventSubscriptionDestination", - className: "ServiceBusQueueEventSubscriptionDestination", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + uberParent: "AdvancedFilter", + className: "StringNotContainsAdvancedFilter", modelProperties: { - ...EventSubscriptionDestination.type.modelProperties, - resourceId: { - serializedName: "properties.resourceId", + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } } } } }; -export const ServiceBusTopicEventSubscriptionDestination: msRest.CompositeMapper = { - serializedName: "ServiceBusTopic", +export const IsNullOrUndefinedAdvancedFilter: msRest.CompositeMapper = { + serializedName: "IsNullOrUndefined", type: { name: "Composite", - polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, - uberParent: "EventSubscriptionDestination", - className: "ServiceBusTopicEventSubscriptionDestination", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + uberParent: "AdvancedFilter", + className: "IsNullOrUndefinedAdvancedFilter", modelProperties: { - ...EventSubscriptionDestination.type.modelProperties, - resourceId: { - serializedName: "properties.resourceId", - type: { - name: "String" - } - } + ...AdvancedFilter.type.modelProperties } } }; -export const AzureFunctionEventSubscriptionDestination: msRest.CompositeMapper = { - serializedName: "AzureFunction", +export const IsNotNullAdvancedFilter: msRest.CompositeMapper = { + serializedName: "IsNotNull", type: { name: "Composite", - polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, - uberParent: "EventSubscriptionDestination", - className: "AzureFunctionEventSubscriptionDestination", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + uberParent: "AdvancedFilter", + className: "IsNotNullAdvancedFilter", modelProperties: { - ...EventSubscriptionDestination.type.modelProperties, - resourceId: { - serializedName: "properties.resourceId", - type: { - name: "String" - } - }, - maxEventsPerBatch: { - serializedName: "properties.maxEventsPerBatch", - type: { - name: "Number" - } - }, - preferredBatchSizeInKilobytes: { - serializedName: "properties.preferredBatchSizeInKilobytes", - type: { - name: "Number" - } - } + ...AdvancedFilter.type.modelProperties } } }; -export const EventSubscription: msRest.CompositeMapper = { - serializedName: "EventSubscription", +export const SystemData: msRest.CompositeMapper = { + serializedName: "systemData", type: { name: "Composite", - className: "EventSubscription", + className: "SystemData", modelProperties: { - ...Resource.type.modelProperties, - topic: { - readOnly: true, - serializedName: "properties.topic", + createdBy: { + serializedName: "createdBy", type: { name: "String" } }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", + createdByType: { + serializedName: "createdByType", type: { name: "String" } }, - destination: { - serializedName: "properties.destination", - type: { - name: "Composite", - className: "EventSubscriptionDestination" - } - }, - filter: { - serializedName: "properties.filter", - type: { - name: "Composite", - className: "EventSubscriptionFilter" - } - }, - labels: { - serializedName: "properties.labels", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - expirationTimeUtc: { - serializedName: "properties.expirationTimeUtc", + createdAt: { + serializedName: "createdAt", type: { name: "DateTime" } }, - eventDeliverySchema: { - serializedName: "properties.eventDeliverySchema", + lastModifiedBy: { + serializedName: "lastModifiedBy", type: { name: "String" } }, - retryPolicy: { - serializedName: "properties.retryPolicy", + lastModifiedByType: { + serializedName: "lastModifiedByType", type: { - name: "Composite", - className: "RetryPolicy" + name: "String" } }, - deadLetterDestination: { - serializedName: "properties.deadLetterDestination", + lastModifiedAt: { + serializedName: "lastModifiedAt", type: { - name: "Composite", - className: "DeadLetterDestination" + name: "DateTime" } } } } }; -export const EventSubscriptionUpdateParameters: msRest.CompositeMapper = { - serializedName: "EventSubscriptionUpdateParameters", +export const EventChannel: msRest.CompositeMapper = { + serializedName: "EventChannel", type: { name: "Composite", - className: "EventSubscriptionUpdateParameters", + className: "EventChannel", modelProperties: { - destination: { - serializedName: "destination", + ...Resource.type.modelProperties, + source: { + serializedName: "properties.source", type: { name: "Composite", - className: "EventSubscriptionDestination" + className: "EventChannelSource" } }, - filter: { - serializedName: "filter", + destination: { + serializedName: "properties.destination", type: { name: "Composite", - className: "EventSubscriptionFilter" + className: "EventChannelDestination" } }, - labels: { - serializedName: "labels", + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - expirationTimeUtc: { - serializedName: "expirationTimeUtc", + partnerTopicReadinessState: { + readOnly: true, + serializedName: "properties.partnerTopicReadinessState", type: { - name: "DateTime" + name: "String" } }, - eventDeliverySchema: { - serializedName: "eventDeliverySchema", + expirationTimeIfNotActivatedUtc: { + serializedName: "properties.expirationTimeIfNotActivatedUtc", type: { - name: "String" + name: "DateTime" } }, - retryPolicy: { - serializedName: "retryPolicy", + filter: { + serializedName: "properties.filter", type: { name: "Composite", - className: "RetryPolicy" + className: "EventChannelFilter" } }, - deadLetterDestination: { - serializedName: "deadLetterDestination", + partnerTopicFriendlyDescription: { + serializedName: "properties.partnerTopicFriendlyDescription", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", type: { name: "Composite", - className: "DeadLetterDestination" + className: "SystemData" } } } } }; -export const EventSubscriptionFullUrl: msRest.CompositeMapper = { - serializedName: "EventSubscriptionFullUrl", +export const EventSubscriptionDestination: msRest.CompositeMapper = { + serializedName: "EventSubscriptionDestination", type: { name: "Composite", - className: "EventSubscriptionFullUrl", + polymorphicDiscriminator: { + serializedName: "endpointType", + clientName: "endpointType" + }, + uberParent: "EventSubscriptionDestination", + className: "EventSubscriptionDestination", modelProperties: { - endpointUrl: { - serializedName: "endpointUrl", + endpointType: { + required: true, + serializedName: "endpointType", type: { name: "String" } @@ -1235,32 +1225,20 @@ export const EventSubscriptionFullUrl: msRest.CompositeMapper = { } }; -export const OperationInfo: msRest.CompositeMapper = { - serializedName: "OperationInfo", +export const EventSubscriptionIdentity: msRest.CompositeMapper = { + serializedName: "EventSubscriptionIdentity", type: { name: "Composite", - className: "OperationInfo", + className: "EventSubscriptionIdentity", modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", + type: { + serializedName: "type", type: { name: "String" } }, - description: { - serializedName: "description", + userAssignedIdentity: { + serializedName: "userAssignedIdentity", type: { name: "String" } @@ -1269,11 +1247,166 @@ export const OperationInfo: msRest.CompositeMapper = { } }; -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", +export const DeliveryWithResourceIdentity: msRest.CompositeMapper = { + serializedName: "DeliveryWithResourceIdentity", type: { name: "Composite", - className: "Operation", + className: "DeliveryWithResourceIdentity", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "EventSubscriptionIdentity" + } + }, + destination: { + serializedName: "destination", + type: { + name: "Composite", + className: "EventSubscriptionDestination" + } + } + } + } +}; + +export const EventSubscriptionFilter: msRest.CompositeMapper = { + serializedName: "EventSubscriptionFilter", + type: { + name: "Composite", + className: "EventSubscriptionFilter", + modelProperties: { + subjectBeginsWith: { + serializedName: "subjectBeginsWith", + type: { + name: "String" + } + }, + subjectEndsWith: { + serializedName: "subjectEndsWith", + type: { + name: "String" + } + }, + includedEventTypes: { + serializedName: "includedEventTypes", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + isSubjectCaseSensitive: { + serializedName: "isSubjectCaseSensitive", + defaultValue: false, + type: { + name: "Boolean" + } + }, + enableAdvancedFilteringOnArrays: { + serializedName: "enableAdvancedFilteringOnArrays", + type: { + name: "Boolean" + } + }, + advancedFilters: { + serializedName: "advancedFilters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdvancedFilter" + } + } + } + } + } + } +}; + +export const RetryPolicy: msRest.CompositeMapper = { + serializedName: "RetryPolicy", + type: { + name: "Composite", + className: "RetryPolicy", + modelProperties: { + maxDeliveryAttempts: { + serializedName: "maxDeliveryAttempts", + type: { + name: "Number" + } + }, + eventTimeToLiveInMinutes: { + serializedName: "eventTimeToLiveInMinutes", + type: { + name: "Number" + } + } + } + } +}; + +export const DeadLetterDestination: msRest.CompositeMapper = { + serializedName: "DeadLetterDestination", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "endpointType", + clientName: "endpointType" + }, + uberParent: "DeadLetterDestination", + className: "DeadLetterDestination", + modelProperties: { + endpointType: { + required: true, + serializedName: "endpointType", + type: { + name: "String" + } + } + } + } +}; + +export const DeadLetterWithResourceIdentity: msRest.CompositeMapper = { + serializedName: "DeadLetterWithResourceIdentity", + type: { + name: "Composite", + className: "DeadLetterWithResourceIdentity", + modelProperties: { + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "EventSubscriptionIdentity" + } + }, + deadLetterDestination: { + serializedName: "deadLetterDestination", + type: { + name: "Composite", + className: "DeadLetterDestination" + } + } + } + } +}; + +export const DeliveryAttributeMapping: msRest.CompositeMapper = { + serializedName: "DeliveryAttributeMapping", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + uberParent: "DeliveryAttributeMapping", + className: "DeliveryAttributeMapping", modelProperties: { name: { serializedName: "name", @@ -1281,75 +1414,1248 @@ export const Operation: msRest.CompositeMapper = { name: "String" } }, - display: { - serializedName: "display", + type: { + required: true, + serializedName: "type", type: { - name: "Composite", - className: "OperationInfo" + name: "String" + } + } + } + } +}; + +export const StaticDeliveryAttributeMapping: msRest.CompositeMapper = { + serializedName: "Static", + type: { + name: "Composite", + polymorphicDiscriminator: DeliveryAttributeMapping.type.polymorphicDiscriminator, + uberParent: "DeliveryAttributeMapping", + className: "StaticDeliveryAttributeMapping", + modelProperties: { + ...DeliveryAttributeMapping.type.modelProperties, + value: { + serializedName: "properties.value", + type: { + name: "String" } }, - origin: { - serializedName: "origin", + isSecret: { + serializedName: "properties.isSecret", + type: { + name: "Boolean" + } + } + } + } +}; + +export const DynamicDeliveryAttributeMapping: msRest.CompositeMapper = { + serializedName: "Dynamic", + type: { + name: "Composite", + polymorphicDiscriminator: DeliveryAttributeMapping.type.polymorphicDiscriminator, + uberParent: "DeliveryAttributeMapping", + className: "DynamicDeliveryAttributeMapping", + modelProperties: { + ...DeliveryAttributeMapping.type.modelProperties, + sourceField: { + serializedName: "properties.sourceField", + type: { + name: "String" + } + } + } + } +}; + +export const StorageBlobDeadLetterDestination: msRest.CompositeMapper = { + serializedName: "StorageBlob", + type: { + name: "Composite", + polymorphicDiscriminator: DeadLetterDestination.type.polymorphicDiscriminator, + uberParent: "DeadLetterDestination", + className: "StorageBlobDeadLetterDestination", + modelProperties: { + ...DeadLetterDestination.type.modelProperties, + resourceId: { + serializedName: "properties.resourceId", type: { name: "String" } }, - properties: { - serializedName: "properties", + blobContainerName: { + serializedName: "properties.blobContainerName", type: { - name: "Object" + name: "String" + } + } + } + } +}; + +export const WebHookEventSubscriptionDestination: msRest.CompositeMapper = { + serializedName: "WebHook", + type: { + name: "Composite", + polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, + uberParent: "EventSubscriptionDestination", + className: "WebHookEventSubscriptionDestination", + modelProperties: { + ...EventSubscriptionDestination.type.modelProperties, + endpointUrl: { + serializedName: "properties.endpointUrl", + type: { + name: "String" + } + }, + endpointBaseUrl: { + readOnly: true, + serializedName: "properties.endpointBaseUrl", + type: { + name: "String" + } + }, + maxEventsPerBatch: { + serializedName: "properties.maxEventsPerBatch", + type: { + name: "Number" + } + }, + preferredBatchSizeInKilobytes: { + serializedName: "properties.preferredBatchSizeInKilobytes", + type: { + name: "Number" + } + }, + azureActiveDirectoryTenantId: { + serializedName: "properties.azureActiveDirectoryTenantId", + type: { + name: "String" + } + }, + azureActiveDirectoryApplicationIdOrUri: { + serializedName: "properties.azureActiveDirectoryApplicationIdOrUri", + type: { + name: "String" + } + }, + deliveryAttributeMappings: { + serializedName: "properties.deliveryAttributeMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryAttributeMapping" + } + } + } + } + } + } +}; + +export const EventHubEventSubscriptionDestination: msRest.CompositeMapper = { + serializedName: "EventHub", + type: { + name: "Composite", + polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, + uberParent: "EventSubscriptionDestination", + className: "EventHubEventSubscriptionDestination", + modelProperties: { + ...EventSubscriptionDestination.type.modelProperties, + resourceId: { + serializedName: "properties.resourceId", + type: { + name: "String" + } + }, + deliveryAttributeMappings: { + serializedName: "properties.deliveryAttributeMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryAttributeMapping" + } + } + } + } + } + } +}; + +export const StorageQueueEventSubscriptionDestination: msRest.CompositeMapper = { + serializedName: "StorageQueue", + type: { + name: "Composite", + polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, + uberParent: "EventSubscriptionDestination", + className: "StorageQueueEventSubscriptionDestination", + modelProperties: { + ...EventSubscriptionDestination.type.modelProperties, + resourceId: { + serializedName: "properties.resourceId", + type: { + name: "String" + } + }, + queueName: { + serializedName: "properties.queueName", + type: { + name: "String" + } + }, + queueMessageTimeToLiveInSeconds: { + serializedName: "properties.queueMessageTimeToLiveInSeconds", + type: { + name: "Number" + } + } + } + } +}; + +export const HybridConnectionEventSubscriptionDestination: msRest.CompositeMapper = { + serializedName: "HybridConnection", + type: { + name: "Composite", + polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, + uberParent: "EventSubscriptionDestination", + className: "HybridConnectionEventSubscriptionDestination", + modelProperties: { + ...EventSubscriptionDestination.type.modelProperties, + resourceId: { + serializedName: "properties.resourceId", + type: { + name: "String" + } + }, + deliveryAttributeMappings: { + serializedName: "properties.deliveryAttributeMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryAttributeMapping" + } + } + } + } + } + } +}; + +export const ServiceBusQueueEventSubscriptionDestination: msRest.CompositeMapper = { + serializedName: "ServiceBusQueue", + type: { + name: "Composite", + polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, + uberParent: "EventSubscriptionDestination", + className: "ServiceBusQueueEventSubscriptionDestination", + modelProperties: { + ...EventSubscriptionDestination.type.modelProperties, + resourceId: { + serializedName: "properties.resourceId", + type: { + name: "String" + } + }, + deliveryAttributeMappings: { + serializedName: "properties.deliveryAttributeMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryAttributeMapping" + } + } + } + } + } + } +}; + +export const ServiceBusTopicEventSubscriptionDestination: msRest.CompositeMapper = { + serializedName: "ServiceBusTopic", + type: { + name: "Composite", + polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, + uberParent: "EventSubscriptionDestination", + className: "ServiceBusTopicEventSubscriptionDestination", + modelProperties: { + ...EventSubscriptionDestination.type.modelProperties, + resourceId: { + serializedName: "properties.resourceId", + type: { + name: "String" + } + }, + deliveryAttributeMappings: { + serializedName: "properties.deliveryAttributeMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryAttributeMapping" + } + } + } + } + } + } +}; + +export const AzureFunctionEventSubscriptionDestination: msRest.CompositeMapper = { + serializedName: "AzureFunction", + type: { + name: "Composite", + polymorphicDiscriminator: EventSubscriptionDestination.type.polymorphicDiscriminator, + uberParent: "EventSubscriptionDestination", + className: "AzureFunctionEventSubscriptionDestination", + modelProperties: { + ...EventSubscriptionDestination.type.modelProperties, + resourceId: { + serializedName: "properties.resourceId", + type: { + name: "String" + } + }, + maxEventsPerBatch: { + serializedName: "properties.maxEventsPerBatch", + type: { + name: "Number" + } + }, + preferredBatchSizeInKilobytes: { + serializedName: "properties.preferredBatchSizeInKilobytes", + type: { + name: "Number" + } + }, + deliveryAttributeMappings: { + serializedName: "properties.deliveryAttributeMappings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryAttributeMapping" + } + } + } + } + } + } +}; + +export const EventSubscription: msRest.CompositeMapper = { + serializedName: "EventSubscription", + type: { + name: "Composite", + className: "EventSubscription", + modelProperties: { + ...Resource.type.modelProperties, + topic: { + readOnly: true, + serializedName: "properties.topic", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + destination: { + serializedName: "properties.destination", + type: { + name: "Composite", + className: "EventSubscriptionDestination" + } + }, + deliveryWithResourceIdentity: { + serializedName: "properties.deliveryWithResourceIdentity", + type: { + name: "Composite", + className: "DeliveryWithResourceIdentity" + } + }, + filter: { + serializedName: "properties.filter", + type: { + name: "Composite", + className: "EventSubscriptionFilter" + } + }, + labels: { + serializedName: "properties.labels", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + expirationTimeUtc: { + serializedName: "properties.expirationTimeUtc", + type: { + name: "DateTime" + } + }, + eventDeliverySchema: { + serializedName: "properties.eventDeliverySchema", + type: { + name: "String" + } + }, + retryPolicy: { + serializedName: "properties.retryPolicy", + type: { + name: "Composite", + className: "RetryPolicy" + } + }, + deadLetterDestination: { + serializedName: "properties.deadLetterDestination", + type: { + name: "Composite", + className: "DeadLetterDestination" + } + }, + deadLetterWithResourceIdentity: { + serializedName: "properties.deadLetterWithResourceIdentity", + type: { + name: "Composite", + className: "DeadLetterWithResourceIdentity" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const EventSubscriptionUpdateParameters: msRest.CompositeMapper = { + serializedName: "EventSubscriptionUpdateParameters", + type: { + name: "Composite", + className: "EventSubscriptionUpdateParameters", + modelProperties: { + destination: { + serializedName: "destination", + type: { + name: "Composite", + className: "EventSubscriptionDestination" + } + }, + deliveryWithResourceIdentity: { + serializedName: "deliveryWithResourceIdentity", + type: { + name: "Composite", + className: "DeliveryWithResourceIdentity" + } + }, + filter: { + serializedName: "filter", + type: { + name: "Composite", + className: "EventSubscriptionFilter" + } + }, + labels: { + serializedName: "labels", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + expirationTimeUtc: { + serializedName: "expirationTimeUtc", + type: { + name: "DateTime" + } + }, + eventDeliverySchema: { + serializedName: "eventDeliverySchema", + type: { + name: "String" + } + }, + retryPolicy: { + serializedName: "retryPolicy", + type: { + name: "Composite", + className: "RetryPolicy" + } + }, + deadLetterDestination: { + serializedName: "deadLetterDestination", + type: { + name: "Composite", + className: "DeadLetterDestination" + } + }, + deadLetterWithResourceIdentity: { + serializedName: "deadLetterWithResourceIdentity", + type: { + name: "Composite", + className: "DeadLetterWithResourceIdentity" + } + } + } + } +}; + +export const EventSubscriptionFullUrl: msRest.CompositeMapper = { + serializedName: "EventSubscriptionFullUrl", + type: { + name: "Composite", + className: "EventSubscriptionFullUrl", + modelProperties: { + endpointUrl: { + serializedName: "endpointUrl", + type: { + name: "String" + } + } + } + } +}; + +export const DeliveryAttributeListResult: msRest.CompositeMapper = { + serializedName: "DeliveryAttributeListResult", + type: { + name: "Composite", + className: "DeliveryAttributeListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeliveryAttributeMapping" + } + } + } + } + } + } +}; + +export const OperationInfo: msRest.CompositeMapper = { + serializedName: "OperationInfo", + type: { + name: "Composite", + className: "OperationInfo", + modelProperties: { + provider: { + serializedName: "provider", + type: { + name: "String" + } + }, + resource: { + serializedName: "resource", + type: { + name: "String" + } + }, + operation: { + serializedName: "operation", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", + type: { + name: "Composite", + className: "Operation", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationInfo" + } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Object" + } + } + } + } +}; + +export const PartnerNamespace: msRest.CompositeMapper = { + serializedName: "PartnerNamespace", + type: { + name: "Composite", + className: "PartnerNamespace", + modelProperties: { + ...TrackedResource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + partnerRegistrationFullyQualifiedId: { + serializedName: "properties.partnerRegistrationFullyQualifiedId", + type: { + name: "String" + } + }, + endpoint: { + readOnly: true, + serializedName: "properties.endpoint", + type: { + name: "String" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const PartnerNamespaceUpdateParameters: msRest.CompositeMapper = { + serializedName: "PartnerNamespaceUpdateParameters", + type: { + name: "Composite", + className: "PartnerNamespaceUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PartnerNamespaceSharedAccessKeys: msRest.CompositeMapper = { + serializedName: "PartnerNamespaceSharedAccessKeys", + type: { + name: "Composite", + className: "PartnerNamespaceSharedAccessKeys", + modelProperties: { + key1: { + serializedName: "key1", + type: { + name: "String" + } + }, + key2: { + serializedName: "key2", + type: { + name: "String" + } + } + } + } +}; + +export const PartnerNamespaceRegenerateKeyRequest: msRest.CompositeMapper = { + serializedName: "PartnerNamespaceRegenerateKeyRequest", + type: { + name: "Composite", + className: "PartnerNamespaceRegenerateKeyRequest", + modelProperties: { + keyName: { + required: true, + serializedName: "keyName", + type: { + name: "String" + } + } + } + } +}; + +export const PartnerRegistration: msRest.CompositeMapper = { + serializedName: "PartnerRegistration", + type: { + name: "Composite", + className: "PartnerRegistration", + modelProperties: { + ...TrackedResource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + partnerName: { + serializedName: "properties.partnerName", + type: { + name: "String" + } + }, + partnerResourceTypeName: { + serializedName: "properties.partnerResourceTypeName", + type: { + name: "String" + } + }, + partnerResourceTypeDisplayName: { + serializedName: "properties.partnerResourceTypeDisplayName", + type: { + name: "String" + } + }, + partnerResourceTypeDescription: { + serializedName: "properties.partnerResourceTypeDescription", + type: { + name: "String" + } + }, + longDescription: { + serializedName: "properties.longDescription", + type: { + name: "String" + } + }, + partnerCustomerServiceNumber: { + serializedName: "properties.partnerCustomerServiceNumber", + type: { + name: "String" + } + }, + partnerCustomerServiceExtension: { + serializedName: "properties.partnerCustomerServiceExtension", + type: { + name: "String" + } + }, + customerServiceUri: { + serializedName: "properties.customerServiceUri", + type: { + name: "String" + } + }, + setupUri: { + serializedName: "properties.setupUri", + type: { + name: "String" + } + }, + logoUri: { + serializedName: "properties.logoUri", + type: { + name: "String" + } + }, + visibilityState: { + serializedName: "properties.visibilityState", + type: { + name: "String" + } + }, + authorizedAzureSubscriptionIds: { + serializedName: "properties.authorizedAzureSubscriptionIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const PartnerRegistrationUpdateParameters: msRest.CompositeMapper = { + serializedName: "PartnerRegistrationUpdateParameters", + type: { + name: "Composite", + className: "PartnerRegistrationUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + partnerTopicTypeName: { + serializedName: "partnerTopicTypeName", + type: { + name: "String" + } + }, + partnerTopicTypeDisplayName: { + serializedName: "partnerTopicTypeDisplayName", + type: { + name: "String" + } + }, + partnerTopicTypeDescription: { + serializedName: "partnerTopicTypeDescription", + type: { + name: "String" + } + }, + setupUri: { + serializedName: "setupUri", + type: { + name: "String" + } + }, + logoUri: { + serializedName: "logoUri", + type: { + name: "String" + } + }, + authorizedAzureSubscriptionIds: { + serializedName: "authorizedAzureSubscriptionIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const EventType: msRest.CompositeMapper = { + serializedName: "EventType", + type: { + name: "Composite", + className: "EventType", + modelProperties: { + ...Resource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + schemaUrl: { + serializedName: "properties.schemaUrl", + type: { + name: "String" + } + }, + isInDefaultSet: { + serializedName: "properties.isInDefaultSet", + type: { + name: "Boolean" + } + } + } + } +}; + +export const PartnerRegistrationEventTypesListResult: msRest.CompositeMapper = { + serializedName: "PartnerRegistrationEventTypesListResult", + type: { + name: "Composite", + className: "PartnerRegistrationEventTypesListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EventType" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PartnerTopicUpdateParameters: msRest.CompositeMapper = { + serializedName: "PartnerTopicUpdateParameters", + type: { + name: "Composite", + className: "PartnerTopicUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const PartnerTopic: msRest.CompositeMapper = { + serializedName: "PartnerTopic", + type: { + name: "Composite", + className: "PartnerTopic", + modelProperties: { + ...TrackedResource.type.modelProperties, + source: { + serializedName: "properties.source", + type: { + name: "String" + } + }, + expirationTimeIfNotActivatedUtc: { + serializedName: "properties.expirationTimeIfNotActivatedUtc", + type: { + name: "DateTime" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + activationState: { + serializedName: "properties.activationState", + type: { + name: "String" + } + }, + partnerTopicFriendlyDescription: { + serializedName: "properties.partnerTopicFriendlyDescription", + type: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityInfo" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const PartnerTopicType: msRest.CompositeMapper = { + serializedName: "PartnerTopicType", + type: { + name: "Composite", + className: "PartnerTopicType", + modelProperties: { + ...Resource.type.modelProperties, + partnerName: { + serializedName: "properties.partnerName", + type: { + name: "String" + } + }, + topicTypeName: { + serializedName: "properties.topicTypeName", + type: { + name: "String" + } + }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + description: { + serializedName: "properties.description", + type: { + name: "String" + } + }, + setupUri: { + serializedName: "properties.setupUri", + type: { + name: "String" + } + }, + authorizationState: { + serializedName: "properties.authorizationState", + type: { + name: "String" + } + } + } + } +}; + +export const PartnerTopicTypesListResult: msRest.CompositeMapper = { + serializedName: "PartnerTopicTypesListResult", + type: { + name: "Composite", + className: "PartnerTopicTypesListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartnerTopicType" + } + } + } + } + } + } +}; + +export const PrivateLinkResource: msRest.CompositeMapper = { + serializedName: "PrivateLinkResource", + type: { + name: "Composite", + className: "PrivateLinkResource", + modelProperties: { + groupId: { + serializedName: "properties.groupId", + type: { + name: "String" + } + }, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + requiredMembers: { + serializedName: "properties.requiredMembers", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + requiredZoneNames: { + serializedName: "properties.requiredZoneNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + id: { + serializedName: "id", + type: { + name: "String" + } + }, + name: { + serializedName: "name", + type: { + name: "String" + } + }, + type: { + serializedName: "type", + type: { + name: "String" } } } } }; -export const PrivateLinkResource: msRest.CompositeMapper = { - serializedName: "PrivateLinkResource", +export const SystemTopic: msRest.CompositeMapper = { + serializedName: "SystemTopic", type: { name: "Composite", - className: "PrivateLinkResource", + className: "SystemTopic", modelProperties: { - groupId: { - serializedName: "properties.groupId", + ...TrackedResource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", type: { name: "String" } }, - displayName: { - serializedName: "properties.displayName", + source: { + serializedName: "properties.source", type: { name: "String" } }, - requiredMembers: { - serializedName: "properties.requiredMembers", + topicType: { + serializedName: "properties.topicType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - requiredZoneNames: { - serializedName: "properties.requiredZoneNames", + metricResourceId: { + readOnly: true, + serializedName: "properties.metricResourceId", type: { - name: "Sequence", - element: { + name: "String" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityInfo" + } + }, + systemData: { + readOnly: true, + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + } + } + } +}; + +export const SystemTopicUpdateParameters: msRest.CompositeMapper = { + serializedName: "SystemTopicUpdateParameters", + type: { + name: "Composite", + className: "SystemTopicUpdateParameters", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } } } }, - id: { - serializedName: "id", + identity: { + serializedName: "identity", type: { - name: "String" + name: "Composite", + className: "IdentityInfo" } - }, + } + } + } +}; + +export const ExtendedLocation: msRest.CompositeMapper = { + serializedName: "ExtendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation", + modelProperties: { name: { serializedName: "name", type: { @@ -1437,6 +2743,33 @@ export const Topic: msRest.CompositeMapper = { } } } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ResourceSku" + } + }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityInfo" + } + }, + kind: { + serializedName: "kind", + type: { + name: "String" + } + }, + extendedLocation: { + serializedName: "extendedLocation", + type: { + name: "Composite", + className: "ExtendedLocation" + } } } } @@ -1459,6 +2792,13 @@ export const TopicUpdateParameters: msRest.CompositeMapper = { } } }, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "IdentityInfo" + } + }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { @@ -1476,6 +2816,13 @@ export const TopicUpdateParameters: msRest.CompositeMapper = { } } } + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "ResourceSku" + } } } } @@ -1520,36 +2867,24 @@ export const TopicRegenerateKeyRequest: msRest.CompositeMapper = { } }; -export const EventType: msRest.CompositeMapper = { - serializedName: "EventType", +export const ExtensionTopic: msRest.CompositeMapper = { + serializedName: "ExtensionTopic", type: { name: "Composite", - className: "EventType", + className: "ExtensionTopic", modelProperties: { ...Resource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - type: { - name: "String" - } - }, description: { serializedName: "properties.description", type: { name: "String" } }, - schemaUrl: { - serializedName: "properties.schemaUrl", + systemTopic: { + serializedName: "properties.systemTopic", type: { name: "String" } - }, - isInDefaultSet: { - serializedName: "properties.isInDefaultSet", - type: { - name: "Boolean" - } } } } @@ -1608,6 +2943,17 @@ export const TopicTypeInfo: msRest.CompositeMapper = { type: { name: "String" } + }, + supportedScopesForSource: { + serializedName: "properties.supportedScopesForSource", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -1669,6 +3015,34 @@ export const DomainTopicsListResult: msRest.CompositeMapper = { } }; +export const EventChannelsListResult: msRest.CompositeMapper = { + serializedName: "EventChannelsListResult", + type: { + name: "Composite", + className: "EventChannelsListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EventChannel" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + export const EventSubscriptionsListResult: msRest.CompositeMapper = { serializedName: "EventSubscriptionsListResult", type: { @@ -1719,11 +3093,11 @@ export const OperationsListResult: msRest.CompositeMapper = { } }; -export const TopicsListResult: msRest.CompositeMapper = { - serializedName: "TopicsListResult", +export const PartnerNamespacesListResult: msRest.CompositeMapper = { + serializedName: "PartnerNamespacesListResult", type: { name: "Composite", - className: "TopicsListResult", + className: "PartnerNamespacesListResult", modelProperties: { value: { serializedName: "", @@ -1732,7 +3106,7 @@ export const TopicsListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "Topic" + className: "PartnerNamespace" } } } @@ -1747,11 +3121,11 @@ export const TopicsListResult: msRest.CompositeMapper = { } }; -export const EventTypesListResult: msRest.CompositeMapper = { - serializedName: "EventTypesListResult", +export const PartnerRegistrationsListResult: msRest.CompositeMapper = { + serializedName: "PartnerRegistrationsListResult", type: { name: "Composite", - className: "EventTypesListResult", + className: "PartnerRegistrationsListResult", modelProperties: { value: { serializedName: "", @@ -1760,10 +3134,44 @@ export const EventTypesListResult: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "EventType" + className: "PartnerRegistration" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const PartnerTopicsListResult: msRest.CompositeMapper = { + serializedName: "PartnerTopicsListResult", + type: { + name: "Composite", + className: "PartnerTopicsListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartnerTopic" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } @@ -1825,6 +3233,84 @@ export const PrivateLinkResourcesListResult: msRest.CompositeMapper = { } }; +export const SystemTopicsListResult: msRest.CompositeMapper = { + serializedName: "SystemTopicsListResult", + type: { + name: "Composite", + className: "SystemTopicsListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SystemTopic" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const TopicsListResult: msRest.CompositeMapper = { + serializedName: "TopicsListResult", + type: { + name: "Composite", + className: "TopicsListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Topic" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const EventTypesListResult: msRest.CompositeMapper = { + serializedName: "EventTypesListResult", + type: { + name: "Composite", + className: "EventTypesListResult", + modelProperties: { + value: { + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EventType" + } + } + } + } + } + } +}; + export const TopicTypesListResult: msRest.CompositeMapper = { serializedName: "TopicTypesListResult", type: { @@ -1850,11 +3336,8 @@ export const TopicTypesListResult: msRest.CompositeMapper = { export const discriminators = { 'InputSchemaMapping' : InputSchemaMapping, 'InputSchemaMapping.Json' : JsonInputSchemaMapping, - 'EventSubscriptionDestination' : EventSubscriptionDestination, 'AdvancedFilter' : AdvancedFilter, - 'DeadLetterDestination' : DeadLetterDestination, 'AdvancedFilter.NumberIn' : NumberInAdvancedFilter, - 'DeadLetterDestination.StorageBlob' : StorageBlobDeadLetterDestination, 'AdvancedFilter.NumberNotIn' : NumberNotInAdvancedFilter, 'AdvancedFilter.NumberLessThan' : NumberLessThanAdvancedFilter, 'AdvancedFilter.NumberGreaterThan' : NumberGreaterThanAdvancedFilter, @@ -1866,6 +3349,19 @@ export const discriminators = { 'AdvancedFilter.StringBeginsWith' : StringBeginsWithAdvancedFilter, 'AdvancedFilter.StringEndsWith' : StringEndsWithAdvancedFilter, 'AdvancedFilter.StringContains' : StringContainsAdvancedFilter, + 'AdvancedFilter.NumberInRange' : NumberInRangeAdvancedFilter, + 'AdvancedFilter.NumberNotInRange' : NumberNotInRangeAdvancedFilter, + 'AdvancedFilter.StringNotBeginsWith' : StringNotBeginsWithAdvancedFilter, + 'AdvancedFilter.StringNotEndsWith' : StringNotEndsWithAdvancedFilter, + 'AdvancedFilter.StringNotContains' : StringNotContainsAdvancedFilter, + 'AdvancedFilter.IsNullOrUndefined' : IsNullOrUndefinedAdvancedFilter, + 'AdvancedFilter.IsNotNull' : IsNotNullAdvancedFilter, + 'EventSubscriptionDestination' : EventSubscriptionDestination, + 'DeadLetterDestination' : DeadLetterDestination, + 'DeliveryAttributeMapping' : DeliveryAttributeMapping, + 'DeliveryAttributeMapping.Static' : StaticDeliveryAttributeMapping, + 'DeliveryAttributeMapping.Dynamic' : DynamicDeliveryAttributeMapping, + 'DeadLetterDestination.StorageBlob' : StorageBlobDeadLetterDestination, 'EventSubscriptionDestination.WebHook' : WebHookEventSubscriptionDestination, 'EventSubscriptionDestination.EventHub' : EventHubEventSubscriptionDestination, 'EventSubscriptionDestination.StorageQueue' : StorageQueueEventSubscriptionDestination, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/operationsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/operationsMappers.ts index 73a6f0e22003..5f9a81de2d49 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/operationsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/eventgrid/arm-eventgrid/src/models/parameters.ts b/sdk/eventgrid/arm-eventgrid/src/models/parameters.ts index 377771904a1b..6d927eb66230 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/parameters.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -50,6 +49,16 @@ export const domainTopicName: msRest.OperationURLParameter = { } } }; +export const eventChannelName: msRest.OperationURLParameter = { + parameterPath: "eventChannelName", + mapper: { + required: true, + serializedName: "eventChannelName", + type: { + name: "String" + } + } +}; export const eventSubscriptionName: msRest.OperationURLParameter = { parameterPath: "eventSubscriptionName", mapper: { @@ -113,6 +122,36 @@ export const parentType: msRest.OperationURLParameter = { } } }; +export const partnerNamespaceName: msRest.OperationURLParameter = { + parameterPath: "partnerNamespaceName", + mapper: { + required: true, + serializedName: "partnerNamespaceName", + type: { + name: "String" + } + } +}; +export const partnerRegistrationName: msRest.OperationURLParameter = { + parameterPath: "partnerRegistrationName", + mapper: { + required: true, + serializedName: "partnerRegistrationName", + type: { + name: "String" + } + } +}; +export const partnerTopicName: msRest.OperationURLParameter = { + parameterPath: "partnerTopicName", + mapper: { + required: true, + serializedName: "partnerTopicName", + type: { + name: "String" + } + } +}; export const privateEndpointConnectionName: msRest.OperationURLParameter = { parameterPath: "privateEndpointConnectionName", mapper: { @@ -173,7 +212,7 @@ export const resourceTypeName: msRest.OperationURLParameter = { } } }; -export const scope: msRest.OperationURLParameter = { +export const scope0: msRest.OperationURLParameter = { parameterPath: "scope", mapper: { required: true, @@ -184,6 +223,16 @@ export const scope: msRest.OperationURLParameter = { }, skipEncoding: true }; +export const scope1: msRest.OperationURLParameter = { + parameterPath: "scope", + mapper: { + required: true, + serializedName: "scope", + type: { + name: "String" + } + } +}; export const subscriptionId: msRest.OperationURLParameter = { parameterPath: "subscriptionId", mapper: { @@ -194,6 +243,16 @@ export const subscriptionId: msRest.OperationURLParameter = { } } }; +export const systemTopicName: msRest.OperationURLParameter = { + parameterPath: "systemTopicName", + mapper: { + required: true, + serializedName: "systemTopicName", + type: { + name: "String" + } + } +}; export const top: msRest.OperationQueryParameter = { parameterPath: [ "options", diff --git a/sdk/eventgrid/arm-eventgrid/src/models/partnerNamespacesMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/partnerNamespacesMappers.ts new file mode 100644 index 000000000000..5317a9fa5261 --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/models/partnerNamespacesMappers.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedFilter, + AzureFunctionEventSubscriptionDestination, + BaseResource, + BoolEqualsAdvancedFilter, + CloudError, + ConnectionState, + DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, + Domain, + DomainTopic, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, + EventHubEventSubscriptionDestination, + EventSubscription, + EventSubscriptionDestination, + EventSubscriptionFilter, + EventSubscriptionIdentity, + EventType, + ExtendedLocation, + ExtensionTopic, + HybridConnectionEventSubscriptionDestination, + IdentityInfo, + InboundIpRule, + InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, + JsonField, + JsonFieldWithDefault, + JsonInputSchemaMapping, + NumberGreaterThanAdvancedFilter, + NumberGreaterThanOrEqualsAdvancedFilter, + NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, + NumberLessThanAdvancedFilter, + NumberLessThanOrEqualsAdvancedFilter, + NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerNamespaceRegenerateKeyRequest, + PartnerNamespaceSharedAccessKeys, + PartnerNamespacesListResult, + PartnerNamespaceUpdateParameters, + PartnerRegistration, + PartnerTopic, + PartnerTopicType, + PrivateEndpoint, + PrivateEndpointConnection, + Resource, + ResourceSku, + RetryPolicy, + ServiceBusQueueEventSubscriptionDestination, + ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, + StorageBlobDeadLetterDestination, + StorageQueueEventSubscriptionDestination, + StringBeginsWithAdvancedFilter, + StringContainsAdvancedFilter, + StringEndsWithAdvancedFilter, + StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, + StringNotInAdvancedFilter, + SystemData, + SystemTopic, + Topic, + TopicTypeInfo, + TrackedResource, + UserIdentityProperties, + WebHookEventSubscriptionDestination +} from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/partnerRegistrationsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/partnerRegistrationsMappers.ts new file mode 100644 index 000000000000..a9ede6c017ec --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/models/partnerRegistrationsMappers.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedFilter, + AzureFunctionEventSubscriptionDestination, + BaseResource, + BoolEqualsAdvancedFilter, + CloudError, + ConnectionState, + DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, + Domain, + DomainTopic, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, + EventHubEventSubscriptionDestination, + EventSubscription, + EventSubscriptionDestination, + EventSubscriptionFilter, + EventSubscriptionIdentity, + EventType, + ExtendedLocation, + ExtensionTopic, + HybridConnectionEventSubscriptionDestination, + IdentityInfo, + InboundIpRule, + InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, + JsonField, + JsonFieldWithDefault, + JsonInputSchemaMapping, + NumberGreaterThanAdvancedFilter, + NumberGreaterThanOrEqualsAdvancedFilter, + NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, + NumberLessThanAdvancedFilter, + NumberLessThanOrEqualsAdvancedFilter, + NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerRegistrationsListResult, + PartnerRegistrationUpdateParameters, + PartnerTopic, + PartnerTopicType, + PrivateEndpoint, + PrivateEndpointConnection, + Resource, + ResourceSku, + RetryPolicy, + ServiceBusQueueEventSubscriptionDestination, + ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, + StorageBlobDeadLetterDestination, + StorageQueueEventSubscriptionDestination, + StringBeginsWithAdvancedFilter, + StringContainsAdvancedFilter, + StringEndsWithAdvancedFilter, + StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, + StringNotInAdvancedFilter, + SystemData, + SystemTopic, + Topic, + TopicTypeInfo, + TrackedResource, + UserIdentityProperties, + WebHookEventSubscriptionDestination +} from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicEventSubscriptionsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicEventSubscriptionsMappers.ts new file mode 100644 index 000000000000..f0ff5301de8e --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicEventSubscriptionsMappers.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedFilter, + AzureFunctionEventSubscriptionDestination, + BaseResource, + BoolEqualsAdvancedFilter, + CloudError, + ConnectionState, + DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeListResult, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, + Domain, + DomainTopic, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, + EventHubEventSubscriptionDestination, + EventSubscription, + EventSubscriptionDestination, + EventSubscriptionFilter, + EventSubscriptionFullUrl, + EventSubscriptionIdentity, + EventSubscriptionsListResult, + EventSubscriptionUpdateParameters, + EventType, + ExtendedLocation, + ExtensionTopic, + HybridConnectionEventSubscriptionDestination, + IdentityInfo, + InboundIpRule, + InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, + JsonField, + JsonFieldWithDefault, + JsonInputSchemaMapping, + NumberGreaterThanAdvancedFilter, + NumberGreaterThanOrEqualsAdvancedFilter, + NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, + NumberLessThanAdvancedFilter, + NumberLessThanOrEqualsAdvancedFilter, + NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerTopic, + PartnerTopicType, + PrivateEndpoint, + PrivateEndpointConnection, + Resource, + ResourceSku, + RetryPolicy, + ServiceBusQueueEventSubscriptionDestination, + ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, + StorageBlobDeadLetterDestination, + StorageQueueEventSubscriptionDestination, + StringBeginsWithAdvancedFilter, + StringContainsAdvancedFilter, + StringEndsWithAdvancedFilter, + StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, + StringNotInAdvancedFilter, + SystemData, + SystemTopic, + Topic, + TopicTypeInfo, + TrackedResource, + UserIdentityProperties, + WebHookEventSubscriptionDestination +} from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicsMappers.ts new file mode 100644 index 000000000000..65359234294b --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicsMappers.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedFilter, + AzureFunctionEventSubscriptionDestination, + BaseResource, + BoolEqualsAdvancedFilter, + CloudError, + ConnectionState, + DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, + Domain, + DomainTopic, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, + EventHubEventSubscriptionDestination, + EventSubscription, + EventSubscriptionDestination, + EventSubscriptionFilter, + EventSubscriptionIdentity, + EventType, + ExtendedLocation, + ExtensionTopic, + HybridConnectionEventSubscriptionDestination, + IdentityInfo, + InboundIpRule, + InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, + JsonField, + JsonFieldWithDefault, + JsonInputSchemaMapping, + NumberGreaterThanAdvancedFilter, + NumberGreaterThanOrEqualsAdvancedFilter, + NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, + NumberLessThanAdvancedFilter, + NumberLessThanOrEqualsAdvancedFilter, + NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerTopic, + PartnerTopicsListResult, + PartnerTopicType, + PartnerTopicUpdateParameters, + PrivateEndpoint, + PrivateEndpointConnection, + Resource, + ResourceSku, + RetryPolicy, + ServiceBusQueueEventSubscriptionDestination, + ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, + StorageBlobDeadLetterDestination, + StorageQueueEventSubscriptionDestination, + StringBeginsWithAdvancedFilter, + StringContainsAdvancedFilter, + StringEndsWithAdvancedFilter, + StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, + StringNotInAdvancedFilter, + SystemData, + SystemTopic, + Topic, + TopicTypeInfo, + TrackedResource, + UserIdentityProperties, + WebHookEventSubscriptionDestination +} from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/privateEndpointConnectionsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/privateEndpointConnectionsMappers.ts index 1cd7557c6ae2..100abc468699 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/privateEndpointConnectionsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -15,41 +15,69 @@ export { CloudError, ConnectionState, DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, Domain, DomainTopic, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, EventSubscriptionDestination, EventSubscriptionFilter, + EventSubscriptionIdentity, EventType, + ExtendedLocation, + ExtensionTopic, HybridConnectionEventSubscriptionDestination, + IdentityInfo, InboundIpRule, InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, JsonField, JsonFieldWithDefault, JsonInputSchemaMapping, NumberGreaterThanAdvancedFilter, NumberGreaterThanOrEqualsAdvancedFilter, NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, NumberLessThanAdvancedFilter, NumberLessThanOrEqualsAdvancedFilter, NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerTopic, + PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, PrivateEndpointConnectionListResult, Resource, + ResourceSku, RetryPolicy, ServiceBusQueueEventSubscriptionDestination, ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, StorageBlobDeadLetterDestination, StorageQueueEventSubscriptionDestination, StringBeginsWithAdvancedFilter, StringContainsAdvancedFilter, StringEndsWithAdvancedFilter, StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, StringNotInAdvancedFilter, + SystemData, + SystemTopic, Topic, TopicTypeInfo, TrackedResource, + UserIdentityProperties, WebHookEventSubscriptionDestination } from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/privateLinkResourcesMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/privateLinkResourcesMappers.ts index 6924d859de8c..ff4a4549faff 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/privateLinkResourcesMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/privateLinkResourcesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/eventgrid/arm-eventgrid/src/models/systemTopicEventSubscriptionsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/systemTopicEventSubscriptionsMappers.ts new file mode 100644 index 000000000000..f0ff5301de8e --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/models/systemTopicEventSubscriptionsMappers.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedFilter, + AzureFunctionEventSubscriptionDestination, + BaseResource, + BoolEqualsAdvancedFilter, + CloudError, + ConnectionState, + DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeListResult, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, + Domain, + DomainTopic, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, + EventHubEventSubscriptionDestination, + EventSubscription, + EventSubscriptionDestination, + EventSubscriptionFilter, + EventSubscriptionFullUrl, + EventSubscriptionIdentity, + EventSubscriptionsListResult, + EventSubscriptionUpdateParameters, + EventType, + ExtendedLocation, + ExtensionTopic, + HybridConnectionEventSubscriptionDestination, + IdentityInfo, + InboundIpRule, + InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, + JsonField, + JsonFieldWithDefault, + JsonInputSchemaMapping, + NumberGreaterThanAdvancedFilter, + NumberGreaterThanOrEqualsAdvancedFilter, + NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, + NumberLessThanAdvancedFilter, + NumberLessThanOrEqualsAdvancedFilter, + NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerTopic, + PartnerTopicType, + PrivateEndpoint, + PrivateEndpointConnection, + Resource, + ResourceSku, + RetryPolicy, + ServiceBusQueueEventSubscriptionDestination, + ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, + StorageBlobDeadLetterDestination, + StorageQueueEventSubscriptionDestination, + StringBeginsWithAdvancedFilter, + StringContainsAdvancedFilter, + StringEndsWithAdvancedFilter, + StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, + StringNotInAdvancedFilter, + SystemData, + SystemTopic, + Topic, + TopicTypeInfo, + TrackedResource, + UserIdentityProperties, + WebHookEventSubscriptionDestination +} from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/systemTopicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/systemTopicsMappers.ts new file mode 100644 index 000000000000..0cf533c42022 --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/models/systemTopicsMappers.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedFilter, + AzureFunctionEventSubscriptionDestination, + BaseResource, + BoolEqualsAdvancedFilter, + CloudError, + ConnectionState, + DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, + Domain, + DomainTopic, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, + EventHubEventSubscriptionDestination, + EventSubscription, + EventSubscriptionDestination, + EventSubscriptionFilter, + EventSubscriptionIdentity, + EventType, + ExtendedLocation, + ExtensionTopic, + HybridConnectionEventSubscriptionDestination, + IdentityInfo, + InboundIpRule, + InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, + JsonField, + JsonFieldWithDefault, + JsonInputSchemaMapping, + NumberGreaterThanAdvancedFilter, + NumberGreaterThanOrEqualsAdvancedFilter, + NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, + NumberLessThanAdvancedFilter, + NumberLessThanOrEqualsAdvancedFilter, + NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerTopic, + PartnerTopicType, + PrivateEndpoint, + PrivateEndpointConnection, + Resource, + ResourceSku, + RetryPolicy, + ServiceBusQueueEventSubscriptionDestination, + ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, + StorageBlobDeadLetterDestination, + StorageQueueEventSubscriptionDestination, + StringBeginsWithAdvancedFilter, + StringContainsAdvancedFilter, + StringEndsWithAdvancedFilter, + StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, + StringNotInAdvancedFilter, + SystemData, + SystemTopic, + SystemTopicsListResult, + SystemTopicUpdateParameters, + Topic, + TopicTypeInfo, + TrackedResource, + UserIdentityProperties, + WebHookEventSubscriptionDestination +} from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/topicTypesMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/topicTypesMappers.ts index 521d7fbead01..40f1f1c6813d 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/topicTypesMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/topicTypesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -15,42 +15,70 @@ export { CloudError, ConnectionState, DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, Domain, DomainTopic, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, EventSubscriptionDestination, EventSubscriptionFilter, + EventSubscriptionIdentity, EventType, EventTypesListResult, + ExtendedLocation, + ExtensionTopic, HybridConnectionEventSubscriptionDestination, + IdentityInfo, InboundIpRule, InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, JsonField, JsonFieldWithDefault, JsonInputSchemaMapping, NumberGreaterThanAdvancedFilter, NumberGreaterThanOrEqualsAdvancedFilter, NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, NumberLessThanAdvancedFilter, NumberLessThanOrEqualsAdvancedFilter, NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerTopic, + PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, + ResourceSku, RetryPolicy, ServiceBusQueueEventSubscriptionDestination, ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, StorageBlobDeadLetterDestination, StorageQueueEventSubscriptionDestination, StringBeginsWithAdvancedFilter, StringContainsAdvancedFilter, StringEndsWithAdvancedFilter, StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, StringNotInAdvancedFilter, + SystemData, + SystemTopic, Topic, TopicTypeInfo, TopicTypesListResult, TrackedResource, + UserIdentityProperties, WebHookEventSubscriptionDestination } from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/models/topicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/topicsMappers.ts index c8bc4d81a7cd..89226e19cc01 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/topicsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/topicsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -15,39 +15,66 @@ export { CloudError, ConnectionState, DeadLetterDestination, + DeadLetterWithResourceIdentity, + DeliveryAttributeMapping, + DeliveryWithResourceIdentity, Domain, DomainTopic, + DynamicDeliveryAttributeMapping, + EventChannel, + EventChannelDestination, + EventChannelFilter, + EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, EventSubscriptionDestination, EventSubscriptionFilter, + EventSubscriptionIdentity, EventType, EventTypesListResult, + ExtendedLocation, + ExtensionTopic, HybridConnectionEventSubscriptionDestination, + IdentityInfo, InboundIpRule, InputSchemaMapping, + IsNotNullAdvancedFilter, + IsNullOrUndefinedAdvancedFilter, JsonField, JsonFieldWithDefault, JsonInputSchemaMapping, NumberGreaterThanAdvancedFilter, NumberGreaterThanOrEqualsAdvancedFilter, NumberInAdvancedFilter, + NumberInRangeAdvancedFilter, NumberLessThanAdvancedFilter, NumberLessThanOrEqualsAdvancedFilter, NumberNotInAdvancedFilter, + NumberNotInRangeAdvancedFilter, + PartnerNamespace, + PartnerRegistration, + PartnerTopic, + PartnerTopicType, PrivateEndpoint, PrivateEndpointConnection, Resource, + ResourceSku, RetryPolicy, ServiceBusQueueEventSubscriptionDestination, ServiceBusTopicEventSubscriptionDestination, + StaticDeliveryAttributeMapping, StorageBlobDeadLetterDestination, StorageQueueEventSubscriptionDestination, StringBeginsWithAdvancedFilter, StringContainsAdvancedFilter, StringEndsWithAdvancedFilter, StringInAdvancedFilter, + StringNotBeginsWithAdvancedFilter, + StringNotContainsAdvancedFilter, + StringNotEndsWithAdvancedFilter, StringNotInAdvancedFilter, + SystemData, + SystemTopic, Topic, TopicRegenerateKeyRequest, TopicSharedAccessKeys, @@ -55,5 +82,6 @@ export { TopicTypeInfo, TopicUpdateParameters, TrackedResource, + UserIdentityProperties, WebHookEventSubscriptionDestination } from "../models/mappers"; diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/domainTopics.ts b/sdk/eventgrid/arm-eventgrid/src/operations/domainTopics.ts index b1bcf79aca70..cf39abb48fd9 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/domainTopics.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/domainTopics.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -174,7 +173,7 @@ export class DomainTopics { * @param [options] The optional parameters * @returns Promise */ - listByDomainNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByDomainNext(nextPageLink: string, options?: Models.DomainTopicsListByDomainNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -185,8 +184,8 @@ export class DomainTopics { * @param options The optional parameters * @param callback The callback */ - listByDomainNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDomainNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDomainNext(nextPageLink: string, options: Models.DomainTopicsListByDomainNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDomainNext(nextPageLink: string, options?: Models.DomainTopicsListByDomainNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -310,6 +309,11 @@ const listByDomainNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/domains.ts b/sdk/eventgrid/arm-eventgrid/src/operations/domains.ts index 24c56da98dc3..643757adfeca 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/domains.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/domains.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -293,7 +292,7 @@ export class Domains { * @param [options] The optional parameters * @returns Promise */ - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listBySubscriptionNext(nextPageLink: string, options?: Models.DomainsListBySubscriptionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -304,8 +303,8 @@ export class Domains { * @param options The optional parameters * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: Models.DomainsListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.DomainsListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -322,7 +321,7 @@ export class Domains { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.DomainsListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -333,8 +332,8 @@ export class Domains { * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.DomainsListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.DomainsListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -576,6 +575,11 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], @@ -597,6 +601,11 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/eventChannels.ts b/sdk/eventgrid/arm-eventgrid/src/operations/eventChannels.ts new file mode 100644 index 000000000000..d52903c4f6ad --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/operations/eventChannels.ts @@ -0,0 +1,343 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/eventChannelsMappers"; +import * as Parameters from "../models/parameters"; +import { EventGridManagementClientContext } from "../eventGridManagementClientContext"; + +/** Class representing a EventChannels. */ +export class EventChannels { + private readonly client: EventGridManagementClientContext; + + /** + * Create a EventChannels. + * @param {EventGridManagementClientContext} client Reference to the service client. + */ + constructor(client: EventGridManagementClientContext) { + this.client = client; + } + + /** + * Get properties of an event channel. + * @summary Get an event channel. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param eventChannelName Name of the event channel. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param eventChannelName Name of the event channel. + * @param callback The callback + */ + get(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param eventChannelName Name of the event channel. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerNamespaceName, + eventChannelName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Asynchronously creates a new event channel with the specified parameters. + * @summary Create an event channel. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param eventChannelName Name of the event channel. + * @param eventChannelInfo EventChannel information. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, eventChannelInfo: Models.EventChannel, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param eventChannelName Name of the event channel. + * @param eventChannelInfo EventChannel information. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, eventChannelInfo: Models.EventChannel, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param eventChannelName Name of the event channel. + * @param eventChannelInfo EventChannel information. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, eventChannelInfo: Models.EventChannel, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, eventChannelInfo: Models.EventChannel, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerNamespaceName, + eventChannelName, + eventChannelInfo, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Delete existing event channel. + * @summary Delete an event channel. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param eventChannelName Name of the event channel. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,partnerNamespaceName,eventChannelName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * List all the event channels in a partner namespace. + * @summary List event channels. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param [options] The optional parameters + * @returns Promise + */ + listByPartnerNamespace(resourceGroupName: string, partnerNamespaceName: string, options?: Models.EventChannelsListByPartnerNamespaceOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param callback The callback + */ + listByPartnerNamespace(resourceGroupName: string, partnerNamespaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param options The optional parameters + * @param callback The callback + */ + listByPartnerNamespace(resourceGroupName: string, partnerNamespaceName: string, options: Models.EventChannelsListByPartnerNamespaceOptionalParams, callback: msRest.ServiceCallback): void; + listByPartnerNamespace(resourceGroupName: string, partnerNamespaceName: string, options?: Models.EventChannelsListByPartnerNamespaceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerNamespaceName, + options + }, + listByPartnerNamespaceOperationSpec, + callback) as Promise; + } + + /** + * Delete existing event channel. + * @summary Delete an event channel. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param eventChannelName Name of the event channel. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + partnerNamespaceName, + eventChannelName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * List all the event channels in a partner namespace. + * @summary List event channels. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByPartnerNamespaceNext(nextPageLink: string, options?: Models.EventChannelsListByPartnerNamespaceNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByPartnerNamespaceNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByPartnerNamespaceNext(nextPageLink: string, options: Models.EventChannelsListByPartnerNamespaceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByPartnerNamespaceNext(nextPageLink: string, options?: Models.EventChannelsListByPartnerNamespaceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByPartnerNamespaceNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerNamespaceName, + Parameters.eventChannelName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventChannel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerNamespaceName, + Parameters.eventChannelName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "eventChannelInfo", + mapper: { + ...Mappers.EventChannel, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.EventChannel + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByPartnerNamespaceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerNamespaceName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventChannelsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerNamespaceName, + Parameters.eventChannelName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByPartnerNamespaceNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventChannelsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/eventSubscriptions.ts b/sdk/eventgrid/arm-eventgrid/src/operations/eventSubscriptions.ts index 715e24921409..246592be0af2 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/eventSubscriptions.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/eventSubscriptions.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -531,6 +530,60 @@ export class EventSubscriptions { callback) as Promise; } + /** + * Get all delivery attributes for an event subscription. + * @summary Get 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 optional parameters + * @returns Promise + */ + getDeliveryAttributes(scope: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @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 callback The callback + */ + getDeliveryAttributes(scope: string, eventSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @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 optional parameters + * @param callback The callback + */ + getDeliveryAttributes(scope: string, eventSubscriptionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDeliveryAttributes(scope: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + eventSubscriptionName, + options + }, + getDeliveryAttributesOperationSpec, + callback) as Promise; + } + /** * Asynchronously creates a new event subscription or updates an existing event subscription based * on the specified scope. @@ -624,7 +677,7 @@ export class EventSubscriptions { * @param [options] The optional parameters * @returns Promise */ - listGlobalBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listGlobalBySubscriptionNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalBySubscriptionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -635,8 +688,8 @@ export class EventSubscriptions { * @param options The optional parameters * @param callback The callback */ - listGlobalBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listGlobalBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listGlobalBySubscriptionNext(nextPageLink: string, options: Models.EventSubscriptionsListGlobalBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listGlobalBySubscriptionNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -653,7 +706,7 @@ export class EventSubscriptions { * @param [options] The optional parameters * @returns Promise */ - listGlobalBySubscriptionForTopicTypeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listGlobalBySubscriptionForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -664,8 +717,8 @@ export class EventSubscriptions { * @param options The optional parameters * @param callback The callback */ - listGlobalBySubscriptionForTopicTypeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listGlobalBySubscriptionForTopicTypeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listGlobalBySubscriptionForTopicTypeNext(nextPageLink: string, options: Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextOptionalParams, callback: msRest.ServiceCallback): void; + listGlobalBySubscriptionForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalBySubscriptionForTopicTypeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -682,7 +735,7 @@ export class EventSubscriptions { * @param [options] The optional parameters * @returns Promise */ - listGlobalByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listGlobalByResourceGroupNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -693,8 +746,8 @@ export class EventSubscriptions { * @param options The optional parameters * @param callback The callback */ - listGlobalByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listGlobalByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listGlobalByResourceGroupNext(nextPageLink: string, options: Models.EventSubscriptionsListGlobalByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listGlobalByResourceGroupNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -711,7 +764,7 @@ export class EventSubscriptions { * @param [options] The optional parameters * @returns Promise */ - listGlobalByResourceGroupForTopicTypeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listGlobalByResourceGroupForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -722,8 +775,8 @@ export class EventSubscriptions { * @param options The optional parameters * @param callback The callback */ - listGlobalByResourceGroupForTopicTypeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listGlobalByResourceGroupForTopicTypeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listGlobalByResourceGroupForTopicTypeNext(nextPageLink: string, options: Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextOptionalParams, callback: msRest.ServiceCallback): void; + listGlobalByResourceGroupForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListGlobalByResourceGroupForTopicTypeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -740,7 +793,7 @@ export class EventSubscriptions { * @param [options] The optional parameters * @returns Promise */ - listRegionalBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listRegionalBySubscriptionNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalBySubscriptionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -751,8 +804,8 @@ export class EventSubscriptions { * @param options The optional parameters * @param callback The callback */ - listRegionalBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listRegionalBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listRegionalBySubscriptionNext(nextPageLink: string, options: Models.EventSubscriptionsListRegionalBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listRegionalBySubscriptionNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -770,7 +823,7 @@ export class EventSubscriptions { * @param [options] The optional parameters * @returns Promise */ - listRegionalByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listRegionalByResourceGroupNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -781,8 +834,8 @@ export class EventSubscriptions { * @param options The optional parameters * @param callback The callback */ - listRegionalByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listRegionalByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listRegionalByResourceGroupNext(nextPageLink: string, options: Models.EventSubscriptionsListRegionalByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listRegionalByResourceGroupNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -800,7 +853,7 @@ export class EventSubscriptions { * @param [options] The optional parameters * @returns Promise */ - listRegionalBySubscriptionForTopicTypeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listRegionalBySubscriptionForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -811,8 +864,8 @@ export class EventSubscriptions { * @param options The optional parameters * @param callback The callback */ - listRegionalBySubscriptionForTopicTypeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listRegionalBySubscriptionForTopicTypeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listRegionalBySubscriptionForTopicTypeNext(nextPageLink: string, options: Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextOptionalParams, callback: msRest.ServiceCallback): void; + listRegionalBySubscriptionForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalBySubscriptionForTopicTypeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -831,7 +884,7 @@ export class EventSubscriptions { * @param [options] The optional parameters * @returns Promise */ - listRegionalByResourceGroupForTopicTypeNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listRegionalByResourceGroupForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -842,8 +895,8 @@ export class EventSubscriptions { * @param options The optional parameters * @param callback The callback */ - listRegionalByResourceGroupForTopicTypeNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listRegionalByResourceGroupForTopicTypeNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listRegionalByResourceGroupForTopicTypeNext(nextPageLink: string, options: Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextOptionalParams, callback: msRest.ServiceCallback): void; + listRegionalByResourceGroupForTopicTypeNext(nextPageLink: string, options?: Models.EventSubscriptionsListRegionalByResourceGroupForTopicTypeNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -860,7 +913,7 @@ export class EventSubscriptions { * @param [options] The optional parameters * @returns Promise */ - listByResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceNext(nextPageLink: string, options?: Models.EventSubscriptionsListByResourceNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -871,8 +924,8 @@ export class EventSubscriptions { * @param options The optional parameters * @param callback The callback */ - listByResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceNext(nextPageLink: string, options: Models.EventSubscriptionsListByResourceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceNext(nextPageLink: string, options?: Models.EventSubscriptionsListByResourceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -889,7 +942,7 @@ export class EventSubscriptions { * @param [options] The optional parameters * @returns Promise */ - listByDomainTopicNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByDomainTopicNext(nextPageLink: string, options?: Models.EventSubscriptionsListByDomainTopicNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -900,8 +953,8 @@ export class EventSubscriptions { * @param options The optional parameters * @param callback The callback */ - listByDomainTopicNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByDomainTopicNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByDomainTopicNext(nextPageLink: string, options: Models.EventSubscriptionsListByDomainTopicNextOptionalParams, callback: msRest.ServiceCallback): void; + listByDomainTopicNext(nextPageLink: string, options?: Models.EventSubscriptionsListByDomainTopicNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -918,7 +971,7 @@ const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}", urlParameters: [ - Parameters.scope, + Parameters.scope0, Parameters.eventSubscriptionName ], queryParameters: [ @@ -942,7 +995,7 @@ const getFullUrlOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getFullUrl", urlParameters: [ - Parameters.scope, + Parameters.scope0, Parameters.eventSubscriptionName ], queryParameters: [ @@ -1231,11 +1284,35 @@ const listByDomainTopicOperationSpec: msRest.OperationSpec = { serializer }; +const getDeliveryAttributesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes", + urlParameters: [ + Parameters.scope0, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeliveryAttributeListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}", urlParameters: [ - Parameters.scope, + Parameters.scope0, Parameters.eventSubscriptionName ], queryParameters: [ @@ -1266,7 +1343,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}", urlParameters: [ - Parameters.scope, + Parameters.scope0, Parameters.eventSubscriptionName ], queryParameters: [ @@ -1290,7 +1367,7 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", path: "{scope}/providers/Microsoft.EventGrid/eventSubscriptions/{eventSubscriptionName}", urlParameters: [ - Parameters.scope, + Parameters.scope0, Parameters.eventSubscriptionName ], queryParameters: [ @@ -1324,6 +1401,11 @@ const listGlobalBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1345,6 +1427,11 @@ const listGlobalBySubscriptionForTopicTypeNextOperationSpec: msRest.OperationSpe urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1366,6 +1453,11 @@ const listGlobalByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1387,6 +1479,11 @@ const listGlobalByResourceGroupForTopicTypeNextOperationSpec: msRest.OperationSp urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1408,6 +1505,11 @@ const listRegionalBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1429,6 +1531,11 @@ const listRegionalByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1450,6 +1557,11 @@ const listRegionalBySubscriptionForTopicTypeNextOperationSpec: msRest.OperationS urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1471,6 +1583,11 @@ const listRegionalByResourceGroupForTopicTypeNextOperationSpec: msRest.Operation urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1492,6 +1609,11 @@ const listByResourceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], @@ -1513,6 +1635,11 @@ const listByDomainTopicNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/extensionTopics.ts b/sdk/eventgrid/arm-eventgrid/src/operations/extensionTopics.ts new file mode 100644 index 000000000000..37ca67978ef7 --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/operations/extensionTopics.ts @@ -0,0 +1,96 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/extensionTopicsMappers"; +import * as Parameters from "../models/parameters"; +import { EventGridManagementClientContext } from "../eventGridManagementClientContext"; + +/** Class representing a ExtensionTopics. */ +export class ExtensionTopics { + private readonly client: EventGridManagementClientContext; + + /** + * Create a ExtensionTopics. + * @param {EventGridManagementClientContext} client Reference to the service client. + */ + constructor(client: EventGridManagementClientContext) { + this.client = client; + } + + /** + * Get the properties of an extension topic. + * @summary Get properties of an extension topic. + * @param scope The identifier of the resource to which extension topic is queried. The scope can + * be a subscription, or a resource group, or a top level resource belonging to a resource provider + * namespace. 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 Azure resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(scope: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope The identifier of the resource to which extension topic is queried. The scope can + * be a subscription, or a resource group, or a top level resource belonging to a resource provider + * namespace. 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 Azure resource. + * @param callback The callback + */ + get(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope The identifier of the resource to which extension topic is queried. The scope can + * be a subscription, or a resource group, or a top level resource belonging to a resource provider + * namespace. 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 Azure resource. + * @param options The optional parameters + * @param callback The callback + */ + get(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.EventGrid/extensionTopics/default", + urlParameters: [ + Parameters.scope1 + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ExtensionTopic + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/index.ts b/sdk/eventgrid/arm-eventgrid/src/operations/index.ts index 45156665bc0a..64e27fbdaa42 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/index.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,9 +9,17 @@ export * from "./domains"; export * from "./domainTopics"; +export * from "./eventChannels"; export * from "./eventSubscriptions"; +export * from "./systemTopicEventSubscriptions"; +export * from "./partnerTopicEventSubscriptions"; export * from "./operations"; -export * from "./topics"; +export * from "./partnerNamespaces"; +export * from "./partnerRegistrations"; +export * from "./partnerTopics"; export * from "./privateEndpointConnections"; export * from "./privateLinkResources"; +export * from "./systemTopics"; +export * from "./topics"; +export * from "./extensionTopics"; export * from "./topicTypes"; diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/operations.ts b/sdk/eventgrid/arm-eventgrid/src/operations/operations.ts index d231b2693a30..6b51a6645dbb 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/operations.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/partnerNamespaces.ts b/sdk/eventgrid/arm-eventgrid/src/operations/partnerNamespaces.ts new file mode 100644 index 000000000000..e27640b51bd2 --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/operations/partnerNamespaces.ts @@ -0,0 +1,622 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/partnerNamespacesMappers"; +import * as Parameters from "../models/parameters"; +import { EventGridManagementClientContext } from "../eventGridManagementClientContext"; + +/** Class representing a PartnerNamespaces. */ +export class PartnerNamespaces { + private readonly client: EventGridManagementClientContext; + + /** + * Create a PartnerNamespaces. + * @param {EventGridManagementClientContext} client Reference to the service client. + */ + constructor(client: EventGridManagementClientContext) { + this.client = client; + } + + /** + * Get properties of a partner namespace. + * @summary Get a partner namespace. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, partnerNamespaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param callback The callback + */ + get(resourceGroupName: string, partnerNamespaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, partnerNamespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, partnerNamespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerNamespaceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Asynchronously creates a new partner namespace with the specified parameters. + * @summary Create a partner namespace. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param partnerNamespaceInfo PartnerNamespace information. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, partnerNamespaceName: string, partnerNamespaceInfo: Models.PartnerNamespace, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,partnerNamespaceName,partnerNamespaceInfo,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete existing partner namespace. + * @summary Delete a partner namespace. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, partnerNamespaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,partnerNamespaceName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Asynchronously updates a partner namespace with the specified parameters. + * @summary Update a partner namespace. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param partnerNamespaceUpdateParameters Partner namespace update information. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, partnerNamespaceName: string, partnerNamespaceUpdateParameters: Models.PartnerNamespaceUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,partnerNamespaceName,partnerNamespaceUpdateParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * List all the partner namespaces under an Azure subscription. + * @summary List partner namespaces under an Azure subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: Models.PartnerNamespacesListBySubscriptionOptionalParams): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: Models.PartnerNamespacesListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(options?: Models.PartnerNamespacesListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * List all the partner namespaces under a resource group. + * @summary List partner namespaces under a resource group. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: Models.PartnerNamespacesListByResourceGroupOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: Models.PartnerNamespacesListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.PartnerNamespacesListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * List the two keys used to publish to a partner namespace. + * @summary List keys for a partner namespace. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param [options] The optional parameters + * @returns Promise + */ + listSharedAccessKeys(resourceGroupName: string, partnerNamespaceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param callback The callback + */ + listSharedAccessKeys(resourceGroupName: string, partnerNamespaceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param options The optional parameters + * @param callback The callback + */ + listSharedAccessKeys(resourceGroupName: string, partnerNamespaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listSharedAccessKeys(resourceGroupName: string, partnerNamespaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerNamespaceName, + options + }, + listSharedAccessKeysOperationSpec, + callback) as Promise; + } + + /** + * Regenerate a shared access key for a partner namespace. + * @summary Regenerate key for a partner namespace. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param regenerateKeyRequest Request body to regenerate key. + * @param [options] The optional parameters + * @returns Promise + */ + regenerateKey(resourceGroupName: string, partnerNamespaceName: string, regenerateKeyRequest: Models.PartnerNamespaceRegenerateKeyRequest, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param regenerateKeyRequest Request body to regenerate key. + * @param callback The callback + */ + regenerateKey(resourceGroupName: string, partnerNamespaceName: string, regenerateKeyRequest: Models.PartnerNamespaceRegenerateKeyRequest, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param regenerateKeyRequest Request body to regenerate key. + * @param options The optional parameters + * @param callback The callback + */ + regenerateKey(resourceGroupName: string, partnerNamespaceName: string, regenerateKeyRequest: Models.PartnerNamespaceRegenerateKeyRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + regenerateKey(resourceGroupName: string, partnerNamespaceName: string, regenerateKeyRequest: Models.PartnerNamespaceRegenerateKeyRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerNamespaceName, + regenerateKeyRequest, + options + }, + regenerateKeyOperationSpec, + callback) as Promise; + } + + /** + * Asynchronously creates a new partner namespace with the specified parameters. + * @summary Create a partner namespace. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param partnerNamespaceInfo PartnerNamespace information. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, partnerNamespaceName: string, partnerNamespaceInfo: Models.PartnerNamespace, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + partnerNamespaceName, + partnerNamespaceInfo, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Delete existing partner namespace. + * @summary Delete a partner namespace. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, partnerNamespaceName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + partnerNamespaceName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Asynchronously updates a partner namespace with the specified parameters. + * @summary Update a partner namespace. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerNamespaceName Name of the partner namespace. + * @param partnerNamespaceUpdateParameters Partner namespace update information. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, partnerNamespaceName: string, partnerNamespaceUpdateParameters: Models.PartnerNamespaceUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + partnerNamespaceName, + partnerNamespaceUpdateParameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * List all the partner namespaces under an Azure subscription. + * @summary List partner namespaces under an Azure subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: Models.PartnerNamespacesListBySubscriptionNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: Models.PartnerNamespacesListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.PartnerNamespacesListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } + + /** + * List all the partner namespaces under a resource group. + * @summary List partner namespaces under a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: Models.PartnerNamespacesListByResourceGroupNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: Models.PartnerNamespacesListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.PartnerNamespacesListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerNamespaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerNamespace + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/partnerNamespaces", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerNamespacesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerNamespacesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listSharedAccessKeysOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/listKeys", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerNamespaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerNamespaceSharedAccessKeys + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const regenerateKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/regenerateKey", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerNamespaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "regenerateKeyRequest", + mapper: { + ...Mappers.PartnerNamespaceRegenerateKeyRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PartnerNamespaceSharedAccessKeys + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerNamespaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "partnerNamespaceInfo", + mapper: { + ...Mappers.PartnerNamespace, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.PartnerNamespace + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerNamespaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerNamespaceName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "partnerNamespaceUpdateParameters", + mapper: { + ...Mappers.PartnerNamespaceUpdateParameters, + required: true + } + }, + responses: { + 200: {}, + 201: { + bodyMapper: Mappers.PartnerNamespace + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerNamespacesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerNamespacesListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/partnerRegistrations.ts b/sdk/eventgrid/arm-eventgrid/src/operations/partnerRegistrations.ts new file mode 100644 index 000000000000..b3eab50bd3ed --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/operations/partnerRegistrations.ts @@ -0,0 +1,547 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/partnerRegistrationsMappers"; +import * as Parameters from "../models/parameters"; +import { EventGridManagementClientContext } from "../eventGridManagementClientContext"; + +/** Class representing a PartnerRegistrations. */ +export class PartnerRegistrations { + private readonly client: EventGridManagementClientContext; + + /** + * Create a PartnerRegistrations. + * @param {EventGridManagementClientContext} client Reference to the service client. + */ + constructor(client: EventGridManagementClientContext) { + this.client = client; + } + + /** + * Gets a partner registration with the specified parameters. + * @summary Get a partner registration. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerRegistrationName Name of the partner registration. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, partnerRegistrationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerRegistrationName Name of the partner registration. + * @param callback The callback + */ + get(resourceGroupName: string, partnerRegistrationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerRegistrationName Name of the partner registration. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, partnerRegistrationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, partnerRegistrationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerRegistrationName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates a new partner registration with the specified parameters. + * @summary Create a partner registration. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerRegistrationName Name of the partner registration. + * @param partnerRegistrationInfo PartnerRegistration information. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, partnerRegistrationName: string, partnerRegistrationInfo: Models.PartnerRegistration, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerRegistrationName Name of the partner registration. + * @param partnerRegistrationInfo PartnerRegistration information. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, partnerRegistrationName: string, partnerRegistrationInfo: Models.PartnerRegistration, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerRegistrationName Name of the partner registration. + * @param partnerRegistrationInfo PartnerRegistration information. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, partnerRegistrationName: string, partnerRegistrationInfo: Models.PartnerRegistration, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, partnerRegistrationName: string, partnerRegistrationInfo: Models.PartnerRegistration, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerRegistrationName, + partnerRegistrationInfo, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Deletes a partner registration with the specified parameters. + * @summary Delete a partner registration. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerRegistrationName Name of the partner registration. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, partnerRegistrationName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerRegistrationName Name of the partner registration. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, partnerRegistrationName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerRegistrationName Name of the partner registration. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, partnerRegistrationName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, partnerRegistrationName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerRegistrationName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Updates a partner registration with the specified parameters. + * @summary Update a partner registration. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerRegistrationName Name of the partner registration. + * @param partnerRegistrationUpdateParameters Partner registration update information. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, partnerRegistrationName: string, partnerRegistrationUpdateParameters: Models.PartnerRegistrationUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerRegistrationName Name of the partner registration. + * @param partnerRegistrationUpdateParameters Partner registration update information. + * @param callback The callback + */ + update(resourceGroupName: string, partnerRegistrationName: string, partnerRegistrationUpdateParameters: Models.PartnerRegistrationUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerRegistrationName Name of the partner registration. + * @param partnerRegistrationUpdateParameters Partner registration update information. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, partnerRegistrationName: string, partnerRegistrationUpdateParameters: Models.PartnerRegistrationUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, partnerRegistrationName: string, partnerRegistrationUpdateParameters: Models.PartnerRegistrationUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerRegistrationName, + partnerRegistrationUpdateParameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * List all the partner registrations under an Azure subscription. + * @summary List partner registrations under an Azure subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: Models.PartnerRegistrationsListBySubscriptionOptionalParams): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: Models.PartnerRegistrationsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(options?: Models.PartnerRegistrationsListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * List all the partner registrations under a resource group. + * @summary List partner registrations under a resource group. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: Models.PartnerRegistrationsListByResourceGroupOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: Models.PartnerRegistrationsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.PartnerRegistrationsListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * List all partners registrations. + * @summary List all available partners registrations. + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * List all the partner registrations under an Azure subscription. + * @summary List partner registrations under an Azure subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: Models.PartnerRegistrationsListBySubscriptionNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: Models.PartnerRegistrationsListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.PartnerRegistrationsListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } + + /** + * List all the partner registrations under a resource group. + * @summary List partner registrations under a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: Models.PartnerRegistrationsListByResourceGroupNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: Models.PartnerRegistrationsListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.PartnerRegistrationsListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerRegistrationName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerRegistration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerRegistrationName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "partnerRegistrationInfo", + mapper: { + ...Mappers.PartnerRegistration, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.PartnerRegistration + }, + 202: { + bodyMapper: Mappers.PartnerRegistration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerRegistrationName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerRegistrationName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "partnerRegistrationUpdateParameters", + mapper: { + ...Mappers.PartnerRegistrationUpdateParameters, + required: true + } + }, + responses: { + 200: {}, + 201: { + bodyMapper: Mappers.PartnerRegistration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/partnerRegistrations", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerRegistrationsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerRegistrationsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.EventGrid/partnerRegistrations", + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerRegistrationsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerRegistrationsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerRegistrationsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/partnerTopicEventSubscriptions.ts b/sdk/eventgrid/arm-eventgrid/src/operations/partnerTopicEventSubscriptions.ts new file mode 100644 index 000000000000..70c734bbc835 --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/operations/partnerTopicEventSubscriptions.ts @@ -0,0 +1,556 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/partnerTopicEventSubscriptionsMappers"; +import * as Parameters from "../models/parameters"; +import { EventGridManagementClientContext } from "../eventGridManagementClientContext"; + +/** Class representing a PartnerTopicEventSubscriptions. */ +export class PartnerTopicEventSubscriptions { + private readonly client: EventGridManagementClientContext; + + /** + * Create a PartnerTopicEventSubscriptions. + * @param {EventGridManagementClientContext} client Reference to the service client. + */ + constructor(client: EventGridManagementClientContext) { + this.client = client; + } + + /** + * Get an event subscription of a partner topic. + * @summary Get an event subscription of a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be found. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be found. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param callback The callback + */ + get(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be found. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerTopicName, + eventSubscriptionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Asynchronously creates or updates an event subscription of a partner topic with the specified + * parameters. Existing event subscriptions will be updated with this API. + * @summary Create or update an event subscription of a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param eventSubscriptionInfo Event subscription properties containing the destination and filter + * information. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, eventSubscriptionInfo: Models.EventSubscription, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,partnerTopicName,eventSubscriptionName,eventSubscriptionInfo,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete an event subscription of a partner topic. + * @summary Delete an event subscription of a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,partnerTopicName,eventSubscriptionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Update event subscription of a partner topic. + * @summary Update event subscription of a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param eventSubscriptionUpdateParameters Updated event subscription information. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, eventSubscriptionUpdateParameters: Models.EventSubscriptionUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,partnerTopicName,eventSubscriptionName,eventSubscriptionUpdateParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get the full endpoint URL for an event subscription of a partner topic. + * @summary Get full URL of an event subscription of a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param [options] The optional parameters + * @returns Promise + */ + getFullUrl(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param callback The callback + */ + getFullUrl(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param options The optional parameters + * @param callback The callback + */ + getFullUrl(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getFullUrl(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerTopicName, + eventSubscriptionName, + options + }, + getFullUrlOperationSpec, + callback) as Promise; + } + + /** + * List event subscriptions that belong to a specific partner topic. + * @summary List event subscriptions of a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param [options] The optional parameters + * @returns Promise + */ + listByPartnerTopic(resourceGroupName: string, partnerTopicName: string, options?: Models.PartnerTopicEventSubscriptionsListByPartnerTopicOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param callback The callback + */ + listByPartnerTopic(resourceGroupName: string, partnerTopicName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param options The optional parameters + * @param callback The callback + */ + listByPartnerTopic(resourceGroupName: string, partnerTopicName: string, options: Models.PartnerTopicEventSubscriptionsListByPartnerTopicOptionalParams, callback: msRest.ServiceCallback): void; + listByPartnerTopic(resourceGroupName: string, partnerTopicName: string, options?: Models.PartnerTopicEventSubscriptionsListByPartnerTopicOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerTopicName, + options + }, + listByPartnerTopicOperationSpec, + callback) as Promise; + } + + /** + * Get all delivery attributes for an event subscription of a partner topic. + * @summary Get delivery attributes for an event subscription of a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param [options] The optional parameters + * @returns Promise + */ + getDeliveryAttributes(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param callback The callback + */ + getDeliveryAttributes(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param options The optional parameters + * @param callback The callback + */ + getDeliveryAttributes(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDeliveryAttributes(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerTopicName, + eventSubscriptionName, + options + }, + getDeliveryAttributesOperationSpec, + callback) as Promise; + } + + /** + * Asynchronously creates or updates an event subscription of a partner topic with the specified + * parameters. Existing event subscriptions will be updated with this API. + * @summary Create or update an event subscription of a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param eventSubscriptionInfo Event subscription properties containing the destination and filter + * information. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, eventSubscriptionInfo: Models.EventSubscription, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + partnerTopicName, + eventSubscriptionName, + eventSubscriptionInfo, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Delete an event subscription of a partner topic. + * @summary Delete an event subscription of a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + partnerTopicName, + eventSubscriptionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Update event subscription of a partner topic. + * @summary Update event subscription of a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param eventSubscriptionUpdateParameters Updated event subscription information. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, partnerTopicName: string, eventSubscriptionName: string, eventSubscriptionUpdateParameters: Models.EventSubscriptionUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + partnerTopicName, + eventSubscriptionName, + eventSubscriptionUpdateParameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * List event subscriptions that belong to a specific partner topic. + * @summary List event subscriptions of a partner topic. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByPartnerTopicNext(nextPageLink: string, options?: Models.PartnerTopicEventSubscriptionsListByPartnerTopicNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByPartnerTopicNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByPartnerTopicNext(nextPageLink: string, options: Models.PartnerTopicEventSubscriptionsListByPartnerTopicNextOptionalParams, callback: msRest.ServiceCallback): void; + listByPartnerTopicNext(nextPageLink: string, options?: Models.PartnerTopicEventSubscriptionsListByPartnerTopicNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByPartnerTopicNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerTopicName, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventSubscription + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getFullUrlOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerTopicName, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventSubscriptionFullUrl + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByPartnerTopicOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerTopicName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventSubscriptionsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getDeliveryAttributesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerTopicName, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeliveryAttributeListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerTopicName, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "eventSubscriptionInfo", + mapper: { + ...Mappers.EventSubscription, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.EventSubscription + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerTopicName, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/eventSubscriptions/{eventSubscriptionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerTopicName, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "eventSubscriptionUpdateParameters", + mapper: { + ...Mappers.EventSubscriptionUpdateParameters, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.EventSubscription + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByPartnerTopicNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventSubscriptionsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/partnerTopics.ts b/sdk/eventgrid/arm-eventgrid/src/operations/partnerTopics.ts new file mode 100644 index 000000000000..8abff22a3a01 --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/operations/partnerTopics.ts @@ -0,0 +1,546 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/partnerTopicsMappers"; +import * as Parameters from "../models/parameters"; +import { EventGridManagementClientContext } from "../eventGridManagementClientContext"; + +/** Class representing a PartnerTopics. */ +export class PartnerTopics { + private readonly client: EventGridManagementClientContext; + + /** + * Create a PartnerTopics. + * @param {EventGridManagementClientContext} client Reference to the service client. + */ + constructor(client: EventGridManagementClientContext) { + this.client = client; + } + + /** + * Get properties of a partner topic. + * @summary Get a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, partnerTopicName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param callback The callback + */ + get(resourceGroupName: string, partnerTopicName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, partnerTopicName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, partnerTopicName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerTopicName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Delete existing partner topic. + * @summary Delete a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, partnerTopicName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,partnerTopicName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Asynchronously updates a partner topic with the specified parameters. + * @summary Update a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param partnerTopicUpdateParameters PartnerTopic update information. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, partnerTopicName: string, partnerTopicUpdateParameters: Models.PartnerTopicUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param partnerTopicUpdateParameters PartnerTopic update information. + * @param callback The callback + */ + update(resourceGroupName: string, partnerTopicName: string, partnerTopicUpdateParameters: Models.PartnerTopicUpdateParameters, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param partnerTopicUpdateParameters PartnerTopic update information. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, partnerTopicName: string, partnerTopicUpdateParameters: Models.PartnerTopicUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, partnerTopicName: string, partnerTopicUpdateParameters: Models.PartnerTopicUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerTopicName, + partnerTopicUpdateParameters, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * List all the partner topics under an Azure subscription. + * @summary List partner topics under an Azure subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: Models.PartnerTopicsListBySubscriptionOptionalParams): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: Models.PartnerTopicsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(options?: Models.PartnerTopicsListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * List all the partner topics under a resource group. + * @summary List partner topics under a resource group. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: Models.PartnerTopicsListByResourceGroupOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: Models.PartnerTopicsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.PartnerTopicsListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Activate a newly created partner topic. + * @summary Activate a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param [options] The optional parameters + * @returns Promise + */ + activate(resourceGroupName: string, partnerTopicName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param callback The callback + */ + activate(resourceGroupName: string, partnerTopicName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param options The optional parameters + * @param callback The callback + */ + activate(resourceGroupName: string, partnerTopicName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + activate(resourceGroupName: string, partnerTopicName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerTopicName, + options + }, + activateOperationSpec, + callback) as Promise; + } + + /** + * Deactivate specific partner topic. + * @summary Deactivate a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param [options] The optional parameters + * @returns Promise + */ + deactivate(resourceGroupName: string, partnerTopicName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param callback The callback + */ + deactivate(resourceGroupName: string, partnerTopicName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param options The optional parameters + * @param callback The callback + */ + deactivate(resourceGroupName: string, partnerTopicName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deactivate(resourceGroupName: string, partnerTopicName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + partnerTopicName, + options + }, + deactivateOperationSpec, + callback) as Promise; + } + + /** + * Delete existing partner topic. + * @summary Delete a partner topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param partnerTopicName Name of the partner topic. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, partnerTopicName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + partnerTopicName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * List all the partner topics under an Azure subscription. + * @summary List partner topics under an Azure subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: Models.PartnerTopicsListBySubscriptionNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: Models.PartnerTopicsListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.PartnerTopicsListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } + + /** + * List all the partner topics under a resource group. + * @summary List partner topics under a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: Models.PartnerTopicsListByResourceGroupNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: Models.PartnerTopicsListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.PartnerTopicsListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerTopicName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerTopic + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerTopicName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "partnerTopicUpdateParameters", + mapper: { + ...Mappers.PartnerTopicUpdateParameters, + required: true + } + }, + responses: { + 200: {}, + 201: { + bodyMapper: Mappers.PartnerTopic + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/partnerTopics", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerTopicsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerTopicsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const activateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/activate", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerTopicName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerTopic + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const deactivateOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}/deactivate", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerTopicName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerTopic + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerTopics/{partnerTopicName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.partnerTopicName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerTopicsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.PartnerTopicsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/privateEndpointConnections.ts b/sdk/eventgrid/arm-eventgrid/src/operations/privateEndpointConnections.ts index a31f3267dc45..4a35ad9c8679 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/privateEndpointConnections.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/privateEndpointConnections.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -211,7 +210,7 @@ export class PrivateEndpointConnections { * @param [options] The optional parameters * @returns Promise */ - listByResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceNext(nextPageLink: string, options?: Models.PrivateEndpointConnectionsListByResourceNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -222,8 +221,8 @@ export class PrivateEndpointConnections { * @param options The optional parameters * @param callback The callback */ - listByResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceNext(nextPageLink: string, options: Models.PrivateEndpointConnectionsListByResourceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceNext(nextPageLink: string, options?: Models.PrivateEndpointConnectionsListByResourceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -361,6 +360,11 @@ const listByResourceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/privateLinkResources.ts b/sdk/eventgrid/arm-eventgrid/src/operations/privateLinkResources.ts index 136e50fee0be..eb9e8318d193 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/privateLinkResources.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/privateLinkResources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -117,7 +116,7 @@ export class PrivateLinkResources { * @param [options] The optional parameters * @returns Promise */ - listByResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceNext(nextPageLink: string, options?: Models.PrivateLinkResourcesListByResourceNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -128,8 +127,8 @@ export class PrivateLinkResources { * @param options The optional parameters * @param callback The callback */ - listByResourceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceNext(nextPageLink: string, options: Models.PrivateLinkResourcesListByResourceNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceNext(nextPageLink: string, options?: Models.PrivateLinkResourcesListByResourceNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -204,6 +203,11 @@ const listByResourceNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/systemTopicEventSubscriptions.ts b/sdk/eventgrid/arm-eventgrid/src/operations/systemTopicEventSubscriptions.ts new file mode 100644 index 000000000000..ad06c2d68699 --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/operations/systemTopicEventSubscriptions.ts @@ -0,0 +1,556 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/systemTopicEventSubscriptionsMappers"; +import * as Parameters from "../models/parameters"; +import { EventGridManagementClientContext } from "../eventGridManagementClientContext"; + +/** Class representing a SystemTopicEventSubscriptions. */ +export class SystemTopicEventSubscriptions { + private readonly client: EventGridManagementClientContext; + + /** + * Create a SystemTopicEventSubscriptions. + * @param {EventGridManagementClientContext} client Reference to the service client. + */ + constructor(client: EventGridManagementClientContext) { + this.client = client; + } + + /** + * Get an event subscription. + * @summary Get an event subscription of a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param callback The callback + */ + get(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + systemTopicName, + eventSubscriptionName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Asynchronously creates or updates an event subscription with the specified parameters. Existing + * event subscriptions will be updated with this API. + * @summary Create or update an event subscription for a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param eventSubscriptionInfo Event subscription properties containing the destination and filter + * information. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, eventSubscriptionInfo: Models.EventSubscription, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,systemTopicName,eventSubscriptionName,eventSubscriptionInfo,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete an event subscription of a system topic. + * @summary Delete an event subscription of a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,systemTopicName,eventSubscriptionName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Update event subscription of a system topic. + * @summary Update event subscription of a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param eventSubscriptionUpdateParameters Updated event subscription information. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, eventSubscriptionUpdateParameters: Models.EventSubscriptionUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,systemTopicName,eventSubscriptionName,eventSubscriptionUpdateParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Get the full endpoint URL for an event subscription of a system topic. + * @summary Get full URL of an event subscription of a system topic + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param [options] The optional parameters + * @returns Promise + */ + getFullUrl(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param callback The callback + */ + getFullUrl(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param options The optional parameters + * @param callback The callback + */ + getFullUrl(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getFullUrl(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + systemTopicName, + eventSubscriptionName, + options + }, + getFullUrlOperationSpec, + callback) as Promise; + } + + /** + * List event subscriptions that belong to a specific system topic. + * @summary List event subscriptions of a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param [options] The optional parameters + * @returns Promise + */ + listBySystemTopic(resourceGroupName: string, systemTopicName: string, options?: Models.SystemTopicEventSubscriptionsListBySystemTopicOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param callback The callback + */ + listBySystemTopic(resourceGroupName: string, systemTopicName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param options The optional parameters + * @param callback The callback + */ + listBySystemTopic(resourceGroupName: string, systemTopicName: string, options: Models.SystemTopicEventSubscriptionsListBySystemTopicOptionalParams, callback: msRest.ServiceCallback): void; + listBySystemTopic(resourceGroupName: string, systemTopicName: string, options?: Models.SystemTopicEventSubscriptionsListBySystemTopicOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + systemTopicName, + options + }, + listBySystemTopicOperationSpec, + callback) as Promise; + } + + /** + * Get all delivery attributes for an event subscription. + * @summary Get delivery attributes for an event subscription. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param [options] The optional parameters + * @returns Promise + */ + getDeliveryAttributes(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param callback The callback + */ + getDeliveryAttributes(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param options The optional parameters + * @param callback The callback + */ + getDeliveryAttributes(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getDeliveryAttributes(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + systemTopicName, + eventSubscriptionName, + options + }, + getDeliveryAttributesOperationSpec, + callback) as Promise; + } + + /** + * Asynchronously creates or updates an event subscription with the specified parameters. Existing + * event subscriptions will be updated with this API. + * @summary Create or update an event subscription for a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param eventSubscriptionInfo Event subscription properties containing the destination and filter + * information. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, eventSubscriptionInfo: Models.EventSubscription, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + systemTopicName, + eventSubscriptionName, + eventSubscriptionInfo, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Delete an event subscription of a system topic. + * @summary Delete an event subscription of a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + systemTopicName, + eventSubscriptionName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Update event subscription of a system topic. + * @summary Update event subscription of a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param eventSubscriptionName Name of the event subscription to be created. Event subscription + * names must be between 3 and 100 characters in length and use alphanumeric letters only. + * @param eventSubscriptionUpdateParameters Updated event subscription information. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, systemTopicName: string, eventSubscriptionName: string, eventSubscriptionUpdateParameters: Models.EventSubscriptionUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + systemTopicName, + eventSubscriptionName, + eventSubscriptionUpdateParameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * List event subscriptions that belong to a specific system topic. + * @summary List event subscriptions of a system topic. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySystemTopicNext(nextPageLink: string, options?: Models.SystemTopicEventSubscriptionsListBySystemTopicNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySystemTopicNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySystemTopicNext(nextPageLink: string, options: Models.SystemTopicEventSubscriptionsListBySystemTopicNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySystemTopicNext(nextPageLink: string, options?: Models.SystemTopicEventSubscriptionsListBySystemTopicNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySystemTopicNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.systemTopicName, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventSubscription + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getFullUrlOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}/getFullUrl", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.systemTopicName, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventSubscriptionFullUrl + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySystemTopicOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.systemTopicName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventSubscriptionsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getDeliveryAttributesOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}/getDeliveryAttributes", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.systemTopicName, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DeliveryAttributeListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.systemTopicName, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "eventSubscriptionInfo", + mapper: { + ...Mappers.EventSubscription, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.EventSubscription + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.systemTopicName, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}/eventSubscriptions/{eventSubscriptionName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.systemTopicName, + Parameters.eventSubscriptionName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "eventSubscriptionUpdateParameters", + mapper: { + ...Mappers.EventSubscriptionUpdateParameters, + required: true + } + }, + responses: { + 201: { + bodyMapper: Mappers.EventSubscription + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySystemTopicNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventSubscriptionsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/systemTopics.ts b/sdk/eventgrid/arm-eventgrid/src/operations/systemTopics.ts new file mode 100644 index 000000000000..241a041a3b1e --- /dev/null +++ b/sdk/eventgrid/arm-eventgrid/src/operations/systemTopics.ts @@ -0,0 +1,500 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/systemTopicsMappers"; +import * as Parameters from "../models/parameters"; +import { EventGridManagementClientContext } from "../eventGridManagementClientContext"; + +/** Class representing a SystemTopics. */ +export class SystemTopics { + private readonly client: EventGridManagementClientContext; + + /** + * Create a SystemTopics. + * @param {EventGridManagementClientContext} client Reference to the service client. + */ + constructor(client: EventGridManagementClientContext) { + this.client = client; + } + + /** + * Get properties of a system topic. + * @summary Get a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, systemTopicName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param callback The callback + */ + get(resourceGroupName: string, systemTopicName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, systemTopicName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, systemTopicName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + systemTopicName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Asynchronously creates a new system topic with the specified parameters. + * @summary Create a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param systemTopicInfo System Topic information. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, systemTopicName: string, systemTopicInfo: Models.SystemTopic, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,systemTopicName,systemTopicInfo,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Delete existing system topic. + * @summary Delete a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, systemTopicName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,systemTopicName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Asynchronously updates a system topic with the specified parameters. + * @summary Update a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param systemTopicUpdateParameters SystemTopic update information. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, systemTopicName: string, systemTopicUpdateParameters: Models.SystemTopicUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,systemTopicName,systemTopicUpdateParameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * List all the system topics under an Azure subscription. + * @summary List system topics under an Azure subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(options?: Models.SystemTopicsListBySubscriptionOptionalParams): Promise; + /** + * @param callback The callback + */ + listBySubscription(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(options: Models.SystemTopicsListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(options?: Models.SystemTopicsListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * List all the system topics under a resource group. + * @summary List system topics under a resource group. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, options?: Models.SystemTopicsListByResourceGroupOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, options: Models.SystemTopicsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, options?: Models.SystemTopicsListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Asynchronously creates a new system topic with the specified parameters. + * @summary Create a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param systemTopicInfo System Topic information. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, systemTopicName: string, systemTopicInfo: Models.SystemTopic, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + systemTopicName, + systemTopicInfo, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Delete existing system topic. + * @summary Delete a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, systemTopicName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + systemTopicName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Asynchronously updates a system topic with the specified parameters. + * @summary Update a system topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param systemTopicName Name of the system topic. + * @param systemTopicUpdateParameters SystemTopic update information. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdate(resourceGroupName: string, systemTopicName: string, systemTopicUpdateParameters: Models.SystemTopicUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + systemTopicName, + systemTopicUpdateParameters, + options + }, + beginUpdateOperationSpec, + options); + } + + /** + * List all the system topics under an Azure subscription. + * @summary List system topics under an Azure subscription. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscriptionNext(nextPageLink: string, options?: Models.SystemTopicsListBySubscriptionNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listBySubscriptionNext(nextPageLink: string, options: Models.SystemTopicsListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.SystemTopicsListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySubscriptionNextOperationSpec, + callback) as Promise; + } + + /** + * List all the system topics under a resource group. + * @summary List system topics under a resource group. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroupNext(nextPageLink: string, options?: Models.SystemTopicsListByResourceGroupNextOptionalParams): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroupNext(nextPageLink: string, options: Models.SystemTopicsListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.SystemTopicsListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByResourceGroupNextOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.systemTopicName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SystemTopic + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/systemTopics", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SystemTopicsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SystemTopicsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.systemTopicName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "systemTopicInfo", + mapper: { + ...Mappers.SystemTopic, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SystemTopic + }, + 201: { + bodyMapper: Mappers.SystemTopic + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.systemTopicName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/systemTopics/{systemTopicName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.systemTopicName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "systemTopicUpdateParameters", + mapper: { + ...Mappers.SystemTopicUpdateParameters, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.SystemTopic + }, + 201: { + bodyMapper: Mappers.SystemTopic + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SystemTopicsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SystemTopicsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/topicTypes.ts b/sdk/eventgrid/arm-eventgrid/src/operations/topicTypes.ts index f39e25895e38..085dacf7666b 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/topicTypes.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/topicTypes.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/topics.ts b/sdk/eventgrid/arm-eventgrid/src/operations/topics.ts index 0035293116b9..9775690e886a 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/topics.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/topics.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -197,32 +196,9 @@ export class Topics { * @param [options] The optional parameters * @returns Promise */ - regenerateKey(resourceGroupName: string, topicName: string, regenerateKeyRequest: Models.TopicRegenerateKeyRequest, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. - * @param topicName Name of the topic. - * @param regenerateKeyRequest Request body to regenerate key. - * @param callback The callback - */ - regenerateKey(resourceGroupName: string, topicName: string, regenerateKeyRequest: Models.TopicRegenerateKeyRequest, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. - * @param topicName Name of the topic. - * @param regenerateKeyRequest Request body to regenerate key. - * @param options The optional parameters - * @param callback The callback - */ - regenerateKey(resourceGroupName: string, topicName: string, regenerateKeyRequest: Models.TopicRegenerateKeyRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - regenerateKey(resourceGroupName: string, topicName: string, regenerateKeyRequest: Models.TopicRegenerateKeyRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - topicName, - regenerateKeyRequest, - options - }, - regenerateKeyOperationSpec, - callback) as Promise; + regenerateKey(resourceGroupName: string, topicName: string, regenerateKeyRequest: Models.TopicRegenerateKeyRequest, options?: msRest.RequestOptionsBase): Promise { + return this.beginRegenerateKey(resourceGroupName,topicName,regenerateKeyRequest,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } /** @@ -327,6 +303,27 @@ export class Topics { options); } + /** + * Regenerate a shared access key for a topic. + * @summary Regenerate key for a topic. + * @param resourceGroupName The name of the resource group within the user's subscription. + * @param topicName Name of the topic. + * @param regenerateKeyRequest Request body to regenerate key. + * @param [options] The optional parameters + * @returns Promise + */ + beginRegenerateKey(resourceGroupName: string, topicName: string, regenerateKeyRequest: Models.TopicRegenerateKeyRequest, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + topicName, + regenerateKeyRequest, + options + }, + beginRegenerateKeyOperationSpec, + options); + } + /** * List all the topics under an Azure subscription. * @summary List topics under an Azure subscription. @@ -334,7 +331,7 @@ export class Topics { * @param [options] The optional parameters * @returns Promise */ - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listBySubscriptionNext(nextPageLink: string, options?: Models.TopicsListBySubscriptionNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -345,8 +342,8 @@ export class Topics { * @param options The optional parameters * @param callback The callback */ - listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listBySubscriptionNext(nextPageLink: string, options: Models.TopicsListBySubscriptionNextOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscriptionNext(nextPageLink: string, options?: Models.TopicsListBySubscriptionNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -363,7 +360,7 @@ export class Topics { * @param [options] The optional parameters * @returns Promise */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + listByResourceGroupNext(nextPageLink: string, options?: Models.TopicsListByResourceGroupNextOptionalParams): Promise; /** * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback @@ -374,8 +371,8 @@ export class Topics { * @param options The optional parameters * @param callback The callback */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listByResourceGroupNext(nextPageLink: string, options: Models.TopicsListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroupNext(nextPageLink: string, options?: Models.TopicsListByResourceGroupNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -489,38 +486,6 @@ const listSharedAccessKeysOperationSpec: msRest.OperationSpec = { serializer }; -const regenerateKeyOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/regenerateKey", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.topicName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "regenerateKeyRequest", - mapper: { - ...Mappers.TopicRegenerateKeyRequest, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.TopicSharedAccessKeys - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - const listEventTypesOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{providerNamespace}/{resourceTypeName}/{resourceName}/providers/Microsoft.EventGrid/eventTypes", @@ -637,6 +602,39 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { serializer }; +const beginRegenerateKeyOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}/regenerateKey", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.topicName + ], + queryParameters: [ + Parameters.apiVersion + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "regenerateKeyRequest", + mapper: { + ...Mappers.TopicRegenerateKeyRequest, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.TopicSharedAccessKeys + }, + 202: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -644,6 +642,11 @@ const listBySubscriptionNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ], @@ -665,6 +668,11 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion, + Parameters.filter, + Parameters.top + ], headerParameters: [ Parameters.acceptLanguage ],