diff --git a/sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts index d7e870c3f363..d3b4101fcf1c 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/domainTopicsMappers.ts @@ -22,6 +22,7 @@ export { DomainTopicsListResult, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts index f9088a81cb2e..b2bf825e6454 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/domainsMappers.ts @@ -25,6 +25,7 @@ export { DomainUpdateParameters, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/eventChannelsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/eventChannelsMappers.ts index eb72fc3ae578..c6c3c2506591 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/eventChannelsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/eventChannelsMappers.ts @@ -21,6 +21,7 @@ export { DomainTopic, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelsListResult, EventChannelSource, EventHubEventSubscriptionDestination, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/eventSubscriptionsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/eventSubscriptionsMappers.ts index 688bfafd4c9d..ff55e6bb5f66 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/eventSubscriptionsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/eventSubscriptionsMappers.ts @@ -21,6 +21,7 @@ export { DomainTopic, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/extensionTopicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/extensionTopicsMappers.ts index 4bff893083a1..836a4a5d3402 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/extensionTopicsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/extensionTopicsMappers.ts @@ -21,6 +21,7 @@ export { DomainTopic, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/index.ts b/sdk/eventgrid/arm-eventgrid/src/models/index.ts index c8f1bd5020da..536ed5f4c033 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/index.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/index.ts @@ -22,7 +22,7 @@ export interface PrivateEndpoint { } /** - * ConnectionState Information. + * ConnectionState information. */ export interface ConnectionState { /** @@ -62,7 +62,7 @@ export interface Resource extends BaseResource { } /** - * PrivateEndpointConnection resource information. + * An interface representing PrivateEndpointConnection. */ export interface PrivateEndpointConnection extends Resource { /** @@ -401,75 +401,6 @@ export interface EventChannelDestination { partnerTopicName?: string; } -/** - * Event Channel. - */ -export interface EventChannel extends Resource { - /** - * Source of the event channel. This represents a unique resource in the partner's resource - * model. - */ - source?: EventChannelSource; - /** - * Represents the destination of an event channel. - */ - destination?: EventChannelDestination; - /** - * 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.** - */ - readonly provisioningState?: EventChannelProvisioningState; -} - -/** - * Contains the possible cases for EventSubscriptionDestination. - */ -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; -} - /** * Contains the possible cases for AdvancedFilter. */ @@ -493,85 +424,36 @@ export interface AdvancedFilter { } /** - * Filter for the Event Subscription. + * Filter for the Event Channel. */ -export interface EventSubscriptionFilter { +export interface EventChannelFilter { /** - * 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. + * An optional string to filter events for an event channel 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. + * An optional string to filter events for an event channel 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. + * A list of applicable event types that need to be part of the event channel. If it is desired + * to subscribe to all default event types, set the IncludedEventTypes to null. */ includedEventTypes?: string[]; /** * Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter - * should be compared in a case sensitive manner. Default value: false. + * should be compared in a case sensitive manner. */ isSubjectCaseSensitive?: 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"; -} - -/** - * Information about the deadletter destination with resource identity. - */ -export interface DeadLetterWithResourceIdentity { - /** - * The identity to use when dead-lettering events. - */ - identity?: EventSubscriptionIdentity; - /** - * 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. - */ - deadLetterDestination?: DeadLetterDestinationUnion; -} - /** * NumberIn Advanced Filter. */ @@ -590,24 +472,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. */ @@ -806,6 +670,177 @@ export interface StringContainsAdvancedFilter { values?: string[]; } +/** + * Event Channel. + */ +export interface EventChannel extends Resource { + /** + * Source of the event channel. This represents a unique resource in the partner's resource + * model. + */ + source?: EventChannelSource; + /** + * Represents the destination of an event channel. + */ + destination?: EventChannelDestination; + /** + * 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.** + */ + readonly provisioningState?: EventChannelProvisioningState; + /** + * Information about the filter for the event channel. + */ + filter?: EventChannelFilter; +} + +/** + * Contains the possible cases for EventSubscriptionDestination. + */ +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 { + /** + * 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[]; + /** + * Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter + * should be compared in a case sensitive manner. Default value: false. + */ + isSubjectCaseSensitive?: boolean; + /** + * An array of advanced filters that are used for filtering event subscriptions. + */ + 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"; +} + +/** + * Information about the deadletter destination with resource identity. + */ +export interface DeadLetterWithResourceIdentity { + /** + * The identity to use when dead-lettering events. + */ + identity?: EventSubscriptionIdentity; + /** + * 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. + */ + deadLetterDestination?: DeadLetterDestinationUnion; +} + +/** + * 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; +} + /** * Information about the webhook destination for an event subscription. */ @@ -1233,6 +1268,10 @@ export interface PartnerRegistration extends TrackedResource { * Properties of the Partner Registration update. */ export interface PartnerRegistrationUpdateParameters { + /** + * Tags of the partner registration resource. + */ + tags?: { [propertyName: string]: string }; /** * Name of the partner topic type. */ @@ -1299,6 +1338,16 @@ export interface PartnerRegistrationEventTypesListResult { nextLink?: string; } +/** + * Properties of the Partner Topic update. + */ +export interface PartnerTopicUpdateParameters { + /** + * Tags of the partner topic. + */ + tags?: { [propertyName: string]: string }; +} + /** * EventGrid Partner Topic. */ @@ -1320,16 +1369,6 @@ export interface PartnerTopic extends TrackedResource { activationState?: PartnerTopicActivationState; } -/** - * Properties of the Partner Topic update. - */ -export interface PartnerTopicUpdateParameters { - /** - * Tags of the partner topic. - */ - tags?: { [propertyName: string]: string }; -} - /** * Properties of a partner topic type. */ @@ -1396,34 +1435,6 @@ export interface PrivateLinkResource { type?: string; } -/** - * Describes an EventGrid Resource Sku Definition. - */ -export interface SkuDefinitionsForResourceType { - /** - * The Resource Type applicable for the Sku. - */ - resourceType?: string; - /** - * The Sku pricing tiers for the resource type. - */ - skus?: ResourceSku[]; -} - -/** - * List collection of Sku Definitions for each Resource Type. - */ -export interface SkuDefinitionsForResourceTypeListResult { - /** - * A collection of Sku Definitions for each Resource Type. - */ - value?: SkuDefinitionsForResourceType[]; - /** - * A link for the next page of Sku Definitions. - */ - nextLink?: string; -} - /** * EventGrid System Topic. */ @@ -1463,9 +1474,6 @@ export interface SystemTopicUpdateParameters { * EventGrid Topic */ export interface Topic extends TrackedResource { - /** - * List of private endpoint connections. - */ privateEndpointConnections?: PrivateEndpointConnection[]; /** * Provisioning state of the topic. Possible values include: 'Creating', 'Updating', 'Deleting', @@ -1915,6 +1923,48 @@ export interface EventSubscriptionsListByDomainTopicOptionalParams extends msRes 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 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. */ @@ -3568,6 +3618,26 @@ export type SystemTopicEventSubscriptionsBeginUpdateResponse = EventSubscription }; }; +/** + * Contains response data for the listBySystemTopicNext operation. + */ +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; + }; +}; + /** * Contains response data for the get operation. */ @@ -3708,6 +3778,26 @@ export type PartnerTopicEventSubscriptionsBeginUpdateResponse = EventSubscriptio }; }; +/** + * Contains response data for the listByPartnerTopicNext operation. + */ +export type PartnerTopicEventSubscriptionsListByPartnerTopicNextResponse = 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 list operation. */ diff --git a/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts index 15586851b83b..0201d37c2d08 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts @@ -616,106 +616,6 @@ export const EventChannelDestination: msRest.CompositeMapper = { } }; -export const EventChannel: msRest.CompositeMapper = { - serializedName: "EventChannel", - type: { - name: "Composite", - className: "EventChannel", - modelProperties: { - ...Resource.type.modelProperties, - source: { - serializedName: "properties.source", - type: { - name: "Composite", - className: "EventChannelSource" - } - }, - destination: { - serializedName: "properties.destination", - type: { - name: "Composite", - className: "EventChannelDestination" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - } - } - } -}; - -export const EventSubscriptionDestination: msRest.CompositeMapper = { - serializedName: "EventSubscriptionDestination", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "endpointType", - clientName: "endpointType" - }, - uberParent: "EventSubscriptionDestination", - className: "EventSubscriptionDestination", - modelProperties: { - endpointType: { - required: true, - serializedName: "endpointType", - type: { - name: "String" - } - } - } - } -}; - -export const EventSubscriptionIdentity: msRest.CompositeMapper = { - serializedName: "EventSubscriptionIdentity", - type: { - name: "Composite", - className: "EventSubscriptionIdentity", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - userAssignedIdentity: { - serializedName: "userAssignedIdentity", - type: { - name: "String" - } - } - } - } -}; - -export const DeliveryWithResourceIdentity: msRest.CompositeMapper = { - serializedName: "DeliveryWithResourceIdentity", - type: { - name: "Composite", - className: "DeliveryWithResourceIdentity", - modelProperties: { - identity: { - serializedName: "identity", - type: { - name: "Composite", - className: "EventSubscriptionIdentity" - } - }, - destination: { - serializedName: "destination", - type: { - name: "Composite", - className: "EventSubscriptionDestination" - } - } - } - } -}; - export const AdvancedFilter: msRest.CompositeMapper = { serializedName: "AdvancedFilter", type: { @@ -744,11 +644,11 @@ 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", @@ -775,7 +675,6 @@ export const EventSubscriptionFilter: msRest.CompositeMapper = { }, isSubjectCaseSensitive: { serializedName: "isSubjectCaseSensitive", - defaultValue: false, type: { name: "Boolean" } @@ -796,74 +695,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 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 NumberInAdvancedFilter: msRest.CompositeMapper = { serializedName: "NumberIn", type: { @@ -888,31 +719,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: { @@ -1032,17 +838,253 @@ export const BoolEqualsAdvancedFilter: msRest.CompositeMapper = { } }; -export const StringInAdvancedFilter: msRest.CompositeMapper = { - serializedName: "StringIn", +export const StringInAdvancedFilter: msRest.CompositeMapper = { + serializedName: "StringIn", + type: { + name: "Composite", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + uberParent: "AdvancedFilter", + className: "StringInAdvancedFilter", + modelProperties: { + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const StringNotInAdvancedFilter: msRest.CompositeMapper = { + serializedName: "StringNotIn", + type: { + name: "Composite", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + uberParent: "AdvancedFilter", + className: "StringNotInAdvancedFilter", + modelProperties: { + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const StringBeginsWithAdvancedFilter: msRest.CompositeMapper = { + serializedName: "StringBeginsWith", + type: { + name: "Composite", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + uberParent: "AdvancedFilter", + className: "StringBeginsWithAdvancedFilter", + modelProperties: { + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const StringEndsWithAdvancedFilter: msRest.CompositeMapper = { + serializedName: "StringEndsWith", + type: { + name: "Composite", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + uberParent: "AdvancedFilter", + className: "StringEndsWithAdvancedFilter", + modelProperties: { + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const StringContainsAdvancedFilter: msRest.CompositeMapper = { + serializedName: "StringContains", + type: { + name: "Composite", + polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, + uberParent: "AdvancedFilter", + className: "StringContainsAdvancedFilter", + modelProperties: { + ...AdvancedFilter.type.modelProperties, + values: { + serializedName: "values", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const EventChannel: msRest.CompositeMapper = { + serializedName: "EventChannel", + type: { + name: "Composite", + className: "EventChannel", + modelProperties: { + ...Resource.type.modelProperties, + source: { + serializedName: "properties.source", + type: { + name: "Composite", + className: "EventChannelSource" + } + }, + destination: { + serializedName: "properties.destination", + type: { + name: "Composite", + className: "EventChannelDestination" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + filter: { + serializedName: "properties.filter", + type: { + name: "Composite", + className: "EventChannelFilter" + } + } + } + } +}; + +export const EventSubscriptionDestination: msRest.CompositeMapper = { + serializedName: "EventSubscriptionDestination", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "endpointType", + clientName: "endpointType" + }, + uberParent: "EventSubscriptionDestination", + className: "EventSubscriptionDestination", + modelProperties: { + endpointType: { + required: true, + serializedName: "endpointType", + type: { + name: "String" + } + } + } + } +}; + +export const EventSubscriptionIdentity: msRest.CompositeMapper = { + serializedName: "EventSubscriptionIdentity", + type: { + name: "Composite", + className: "EventSubscriptionIdentity", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String" + } + }, + userAssignedIdentity: { + serializedName: "userAssignedIdentity", + type: { + name: "String" + } + } + } + } +}; + +export const DeliveryWithResourceIdentity: msRest.CompositeMapper = { + serializedName: "DeliveryWithResourceIdentity", + type: { + name: "Composite", + 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", - polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, - uberParent: "AdvancedFilter", - className: "StringInAdvancedFilter", + className: "EventSubscriptionFilter", modelProperties: { - ...AdvancedFilter.type.modelProperties, - values: { - serializedName: "values", + subjectBeginsWith: { + serializedName: "subjectBeginsWith", + type: { + name: "String" + } + }, + subjectEndsWith: { + serializedName: "subjectEndsWith", + type: { + name: "String" + } + }, + includedEventTypes: { + serializedName: "includedEventTypes", type: { name: "Sequence", element: { @@ -1051,101 +1093,117 @@ export const StringInAdvancedFilter: msRest.CompositeMapper = { } } } + }, + isSubjectCaseSensitive: { + serializedName: "isSubjectCaseSensitive", + defaultValue: false, + type: { + name: "Boolean" + } + }, + advancedFilters: { + serializedName: "advancedFilters", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AdvancedFilter" + } + } + } } } } }; -export const StringNotInAdvancedFilter: msRest.CompositeMapper = { - serializedName: "StringNotIn", +export const RetryPolicy: msRest.CompositeMapper = { + serializedName: "RetryPolicy", type: { name: "Composite", - polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, - uberParent: "AdvancedFilter", - className: "StringNotInAdvancedFilter", + className: "RetryPolicy", modelProperties: { - ...AdvancedFilter.type.modelProperties, - values: { - serializedName: "values", + maxDeliveryAttempts: { + serializedName: "maxDeliveryAttempts", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" + } + }, + eventTimeToLiveInMinutes: { + serializedName: "eventTimeToLiveInMinutes", + type: { + name: "Number" } } } } }; -export const StringBeginsWithAdvancedFilter: msRest.CompositeMapper = { - serializedName: "StringBeginsWith", +export const DeadLetterDestination: msRest.CompositeMapper = { + serializedName: "DeadLetterDestination", type: { name: "Composite", - polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, - uberParent: "AdvancedFilter", - className: "StringBeginsWithAdvancedFilter", + polymorphicDiscriminator: { + serializedName: "endpointType", + clientName: "endpointType" + }, + uberParent: "DeadLetterDestination", + className: "DeadLetterDestination", modelProperties: { - ...AdvancedFilter.type.modelProperties, - values: { - serializedName: "values", + endpointType: { + required: true, + serializedName: "endpointType", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } } } } }; -export const StringEndsWithAdvancedFilter: msRest.CompositeMapper = { - serializedName: "StringEndsWith", +export const DeadLetterWithResourceIdentity: msRest.CompositeMapper = { + serializedName: "DeadLetterWithResourceIdentity", type: { name: "Composite", - polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, - uberParent: "AdvancedFilter", - className: "StringEndsWithAdvancedFilter", + className: "DeadLetterWithResourceIdentity", modelProperties: { - ...AdvancedFilter.type.modelProperties, - values: { - serializedName: "values", + identity: { + serializedName: "identity", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "EventSubscriptionIdentity" + } + }, + deadLetterDestination: { + serializedName: "deadLetterDestination", + type: { + name: "Composite", + className: "DeadLetterDestination" } } } } }; -export const StringContainsAdvancedFilter: msRest.CompositeMapper = { - serializedName: "StringContains", +export const StorageBlobDeadLetterDestination: msRest.CompositeMapper = { + serializedName: "StorageBlob", type: { name: "Composite", - polymorphicDiscriminator: AdvancedFilter.type.polymorphicDiscriminator, - uberParent: "AdvancedFilter", - className: "StringContainsAdvancedFilter", + polymorphicDiscriminator: DeadLetterDestination.type.polymorphicDiscriminator, + uberParent: "DeadLetterDestination", + className: "StorageBlobDeadLetterDestination", modelProperties: { - ...AdvancedFilter.type.modelProperties, - values: { - serializedName: "values", + ...DeadLetterDestination.type.modelProperties, + resourceId: { + serializedName: "properties.resourceId", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + }, + blobContainerName: { + serializedName: "properties.blobContainerName", + type: { + name: "String" } } } @@ -1752,6 +1810,17 @@ export const PartnerRegistrationUpdateParameters: msRest.CompositeMapper = { name: "Composite", className: "PartnerRegistrationUpdateParameters", modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, partnerTopicTypeName: { serializedName: "partnerTopicTypeName", type: { @@ -1860,6 +1929,27 @@ export const PartnerRegistrationEventTypesListResult: msRest.CompositeMapper = { } }; +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: { @@ -1890,27 +1980,6 @@ export const PartnerTopic: msRest.CompositeMapper = { } }; -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 PartnerTopicType: msRest.CompositeMapper = { serializedName: "PartnerTopicType", type: { @@ -2042,62 +2111,6 @@ export const PrivateLinkResource: msRest.CompositeMapper = { } }; -export const SkuDefinitionsForResourceType: msRest.CompositeMapper = { - serializedName: "SkuDefinitionsForResourceType", - type: { - name: "Composite", - className: "SkuDefinitionsForResourceType", - modelProperties: { - resourceType: { - serializedName: "resourceType", - type: { - name: "String" - } - }, - skus: { - serializedName: "skus", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ResourceSku" - } - } - } - } - } - } -}; - -export const SkuDefinitionsForResourceTypeListResult: msRest.CompositeMapper = { - serializedName: "SkuDefinitionsForResourceTypeListResult", - type: { - name: "Composite", - className: "SkuDefinitionsForResourceTypeListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SkuDefinitionsForResourceType" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const SystemTopic: msRest.CompositeMapper = { serializedName: "SystemTopic", type: { @@ -2796,11 +2809,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, @@ -2812,6 +2822,9 @@ export const discriminators = { 'AdvancedFilter.StringBeginsWith' : StringBeginsWithAdvancedFilter, 'AdvancedFilter.StringEndsWith' : StringEndsWithAdvancedFilter, 'AdvancedFilter.StringContains' : StringContainsAdvancedFilter, + 'EventSubscriptionDestination' : EventSubscriptionDestination, + 'DeadLetterDestination' : DeadLetterDestination, + 'DeadLetterDestination.StorageBlob' : StorageBlobDeadLetterDestination, 'EventSubscriptionDestination.WebHook' : WebHookEventSubscriptionDestination, 'EventSubscriptionDestination.EventHub' : EventHubEventSubscriptionDestination, 'EventSubscriptionDestination.StorageQueue' : StorageQueueEventSubscriptionDestination, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/partnerNamespacesMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/partnerNamespacesMappers.ts index cdea2ce5cb89..c4912cd60125 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/partnerNamespacesMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/partnerNamespacesMappers.ts @@ -21,6 +21,7 @@ export { DomainTopic, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/partnerRegistrationsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/partnerRegistrationsMappers.ts index fd94b0bf476c..b46930ddb076 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/partnerRegistrationsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/partnerRegistrationsMappers.ts @@ -21,6 +21,7 @@ export { DomainTopic, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicEventSubscriptionsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicEventSubscriptionsMappers.ts index 688bfafd4c9d..ff55e6bb5f66 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicEventSubscriptionsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicEventSubscriptionsMappers.ts @@ -21,6 +21,7 @@ export { DomainTopic, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicsMappers.ts index 9cef82757ad6..5c93dfe30da1 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/partnerTopicsMappers.ts @@ -21,6 +21,7 @@ export { DomainTopic, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/privateEndpointConnectionsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/privateEndpointConnectionsMappers.ts index 97799a4ce78f..2a8759c158da 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/privateEndpointConnectionsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/privateEndpointConnectionsMappers.ts @@ -21,6 +21,7 @@ export { DomainTopic, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/systemTopicEventSubscriptionsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/systemTopicEventSubscriptionsMappers.ts index 688bfafd4c9d..ff55e6bb5f66 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/systemTopicEventSubscriptionsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/systemTopicEventSubscriptionsMappers.ts @@ -21,6 +21,7 @@ export { DomainTopic, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/systemTopicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/systemTopicsMappers.ts index 6148e0a25a44..f0e7102aa561 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/systemTopicsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/systemTopicsMappers.ts @@ -21,6 +21,7 @@ export { DomainTopic, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/topicTypesMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/topicTypesMappers.ts index c2df208847c4..6b0089d19dd1 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/topicTypesMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/topicTypesMappers.ts @@ -21,6 +21,7 @@ export { DomainTopic, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/models/topicsMappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/topicsMappers.ts index a9ed047a3cd9..9446ebab98fa 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/topicsMappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/topicsMappers.ts @@ -21,6 +21,7 @@ export { DomainTopic, EventChannel, EventChannelDestination, + EventChannelFilter, EventChannelSource, EventHubEventSubscriptionDestination, EventSubscription, diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/eventChannels.ts b/sdk/eventgrid/arm-eventgrid/src/operations/eventChannels.ts index a86d9401b712..b8e773ce01ba 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/eventChannels.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/eventChannels.ts @@ -9,6 +9,7 @@ */ 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"; @@ -113,32 +114,9 @@ export class EventChannels { * @param [options] The optional parameters * @returns Promise */ - deleteMethod(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 - */ - deleteMethod(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 - */ - deleteMethod(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - partnerNamespaceName, - eventChannelName, - options - }, - deleteMethodOperationSpec, - callback); + deleteMethod(resourceGroupName: string, partnerNamespaceName: string, eventChannelName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,partnerNamespaceName,eventChannelName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); } /** @@ -174,6 +152,27 @@ export class EventChannels { 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. @@ -265,25 +264,26 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels/{eventChannelName}", +const listByPartnerNamespaceOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.partnerNamespaceName, - Parameters.eventChannelName + Parameters.partnerNamespaceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion, + Parameters.filter, + Parameters.top ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: {}, - 202: {}, - 204: {}, + 200: { + bodyMapper: Mappers.EventChannelsListResult + }, default: { bodyMapper: Mappers.CloudError } @@ -291,26 +291,25 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { serializer }; -const listByPartnerNamespaceOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerNamespaces/{partnerNamespaceName}/eventChannels", +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.partnerNamespaceName, + Parameters.eventChannelName ], queryParameters: [ - Parameters.apiVersion, - Parameters.filter, - Parameters.top + Parameters.apiVersion ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: Mappers.EventChannelsListResult - }, + 200: {}, + 202: {}, + 204: {}, default: { bodyMapper: Mappers.CloudError } diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/partnerTopicEventSubscriptions.ts b/sdk/eventgrid/arm-eventgrid/src/operations/partnerTopicEventSubscriptions.ts index 4beb29a52894..c67dafbb27de 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/partnerTopicEventSubscriptions.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/partnerTopicEventSubscriptions.ts @@ -164,7 +164,7 @@ export class PartnerTopicEventSubscriptions { * @param [options] The optional parameters * @returns Promise */ - listByPartnerTopic(resourceGroupName: string, partnerTopicName: string, options?: msRest.RequestOptionsBase): 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. @@ -177,8 +177,8 @@ export class PartnerTopicEventSubscriptions { * @param options The optional parameters * @param callback The callback */ - listByPartnerTopic(resourceGroupName: string, partnerTopicName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByPartnerTopic(resourceGroupName: string, partnerTopicName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + 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, @@ -260,6 +260,35 @@ export class PartnerTopicEventSubscriptions { 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?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listByPartnerTopicNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listByPartnerTopicNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -325,7 +354,9 @@ const listByPartnerTopicOperationSpec: msRest.OperationSpec = { Parameters.partnerTopicName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion, + Parameters.filter, + Parameters.top ], headerParameters: [ Parameters.acceptLanguage @@ -431,3 +462,24 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listByPartnerTopicNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventSubscriptionsListResult + }, + 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 17c2c073d179..799e13c95650 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/privateEndpointConnections.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/privateEndpointConnections.ts @@ -79,11 +79,12 @@ export class PrivateEndpointConnections { * @param parentName The name of the parent resource (namely, either, the topic name or domain * name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. + * @param privateEndpointConnection The private endpoint connection object to update. * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, parentType: string, parentName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { - return this.beginUpdate(resourceGroupName,parentType,parentName,privateEndpointConnectionName,options) + update(resourceGroupName: string, parentType: string, parentName: string, privateEndpointConnectionName: string, privateEndpointConnection: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdate(resourceGroupName,parentType,parentName,privateEndpointConnectionName,privateEndpointConnection,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -151,16 +152,18 @@ export class PrivateEndpointConnections { * @param parentName The name of the parent resource (namely, either, the topic name or domain * name). * @param privateEndpointConnectionName The name of the private endpoint connection connection. + * @param privateEndpointConnection The private endpoint connection object to update. * @param [options] The optional parameters * @returns Promise */ - beginUpdate(resourceGroupName: string, parentType: string, parentName: string, privateEndpointConnectionName: string, options?: msRest.RequestOptionsBase): Promise { + beginUpdate(resourceGroupName: string, parentType: string, parentName: string, privateEndpointConnectionName: string, privateEndpointConnection: Models.PrivateEndpointConnection, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, parentType, parentName, privateEndpointConnectionName, + privateEndpointConnection, options }, beginUpdateOperationSpec, @@ -294,6 +297,13 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "privateEndpointConnection", + mapper: { + ...Mappers.PrivateEndpointConnection, + required: true + } + }, responses: { 200: { bodyMapper: Mappers.PrivateEndpointConnection diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/systemTopicEventSubscriptions.ts b/sdk/eventgrid/arm-eventgrid/src/operations/systemTopicEventSubscriptions.ts index 7a6c703c8dfc..af3d930445c8 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/systemTopicEventSubscriptions.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/systemTopicEventSubscriptions.ts @@ -164,7 +164,7 @@ export class SystemTopicEventSubscriptions { * @param [options] The optional parameters * @returns Promise */ - listBySystemTopic(resourceGroupName: string, systemTopicName: string, options?: msRest.RequestOptionsBase): 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. @@ -177,8 +177,8 @@ export class SystemTopicEventSubscriptions { * @param options The optional parameters * @param callback The callback */ - listBySystemTopic(resourceGroupName: string, systemTopicName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listBySystemTopic(resourceGroupName: string, systemTopicName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + 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, @@ -260,6 +260,35 @@ export class SystemTopicEventSubscriptions { 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?: msRest.RequestOptionsBase): 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: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listBySystemTopicNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + listBySystemTopicNextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -325,7 +354,9 @@ const listBySystemTopicOperationSpec: msRest.OperationSpec = { Parameters.systemTopicName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion, + Parameters.filter, + Parameters.top ], headerParameters: [ Parameters.acceptLanguage @@ -431,3 +462,24 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { }, serializer }; + +const listBySystemTopicNextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.EventSubscriptionsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +};