From b1a914e21343205c0f652387d146f594f4147b35 Mon Sep 17 00:00:00 2001 From: Matt Ellis Date: Tue, 5 Oct 2021 11:51:25 -0700 Subject: [PATCH] [EventGrid] Update System Events, Prepare for Release (#17977) Update our swagger reference commit to pull in some new system events and add them to our mappings. --- sdk/eventgrid/eventgrid/CHANGELOG.md | 33 +- .../eventgrid/review/eventgrid.api.md | 107 +++++ .../eventgrid/src/generated/models/index.ts | 134 +++++- .../eventgrid/src/generated/models/mappers.ts | 453 +++++++++++++++--- sdk/eventgrid/eventgrid/src/index.ts | 17 + sdk/eventgrid/eventgrid/src/predicates.ts | 51 ++ sdk/eventgrid/eventgrid/swagger/README.md | 2 +- 7 files changed, 722 insertions(+), 75 deletions(-) diff --git a/sdk/eventgrid/eventgrid/CHANGELOG.md b/sdk/eventgrid/eventgrid/CHANGELOG.md index d2a9c27f8eaa..b45745789848 100644 --- a/sdk/eventgrid/eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/eventgrid/CHANGELOG.md @@ -1,10 +1,39 @@ # Release History -## 4.5.0 (Unreleased) +## 4.5.0 (2021-10-05) ### Features Added -- Added new System Event: `Microsoft.ContainerService.NewKubernetesVersionAvailable` +- Added new properties for the `Microsoft.Media.LiveEventIngestHeartbeat` System Event: + + - `ingestDriftValue` + - `lastFragmentArrivalTime` + - `transcriptionLanguage` + - `transcriptionState` + +- Added new System Events: + - API Management: + - `Microsoft.ApiManagement.APICreated` + - `Microsoft.ApiManagement.APIDeleted` + - `Microsoft.ApiManagement.APIReleaseCreated` + - `Microsoft.ApiManagement.APIReleaseDeleted` + - `Microsoft.ApiManagement.APIReleaseUpdated` + - `Microsoft.ApiManagement.APIUpdated` + - `Microsoft.ApiManagement.ProductCreated` + - `Microsoft.ApiManagement.ProductDeleted` + - `Microsoft.ApiManagement.ProductUpdated` + - `Microsoft.ApiManagement.SubscriptionCreated` + - `Microsoft.ApiManagement.SubscriptionDeleted` + - `Microsoft.ApiManagement.SubscriptionUpdated` + - `Microsoft.ApiManagement.UserCreated` + - `Microsoft.ApiManagement.UserDeleted` + - `Microsoft.ApiManagement.UserUpdated` + - Container Service: + - `Microsoft.ContainerService.NewKubernetesVersionAvailable` + - Communication: + - `Microsoft.Communication.UserDisconnected` + - Media Streaming: + - `Microsoft.Media.LiveEventChannelArchiveHeartbeat` ## 4.4.0 (2021-07-19) diff --git a/sdk/eventgrid/eventgrid/review/eventgrid.api.md b/sdk/eventgrid/eventgrid/review/eventgrid.api.md index c20f7bb7d5d0..93f579bc245e 100644 --- a/sdk/eventgrid/eventgrid/review/eventgrid.api.md +++ b/sdk/eventgrid/eventgrid/review/eventgrid.api.md @@ -206,6 +206,86 @@ export type AcsSmsReceivedEventData = AcsSmsEventBase & { receivedTimestamp: string; }; +// @public +export interface AcsUserDisconnectedEventData { + userCommunicationIdentifier: CommunicationIdentifierModel; +} + +// @public +export interface ApiManagementApiCreatedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementApiDeletedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementApiReleaseCreatedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementApiReleaseDeletedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementApiReleaseUpdatedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementApiUpdatedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementProductCreatedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementProductDeletedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementProductUpdatedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementSubscriptionCreatedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementSubscriptionDeletedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementSubscriptionUpdatedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementUserCreatedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementUserDeletedEventData { + resourceUri: string; +} + +// @public +export interface ApiManagementUserUpdatedEventData { + resourceUri: string; +} + // @public export type AppAction = string; @@ -841,6 +921,12 @@ export interface MediaJobStateChangeEventData { readonly state: MediaJobState; } +// @public +export interface MediaLiveEventChannelArchiveHeartbeatEventData { + readonly channelLatencyMs: string; + readonly latencyResultCode: string; +} + // @public export interface MediaLiveEventConnectionRejectedEventData { readonly encoderIp: string; @@ -915,6 +1001,8 @@ export interface MediaLiveEventIngestHeartbeatEventData { readonly discontinuityCount: number; readonly healthy: boolean; readonly incomingBitrate: number; + readonly ingestDriftValue: string; + readonly lastFragmentArrivalTime: string; readonly lastTimestamp: string; readonly nonincreasingCount: number; readonly overlapCount: number; @@ -922,6 +1010,8 @@ export interface MediaLiveEventIngestHeartbeatEventData { readonly timescale: string; readonly trackName: string; readonly trackType: string; + readonly transcriptionLanguage: string; + readonly transcriptionState: string; readonly unexpectedBitrate: boolean; } @@ -1310,6 +1400,21 @@ export interface SubscriptionValidationEventData { // @public export interface SystemEventNameToEventData { + "Microsoft.ApiManagement.APICreated": ApiManagementApiCreatedEventData; + "Microsoft.ApiManagement.APIDeleted": ApiManagementApiDeletedEventData; + "Microsoft.ApiManagement.APIReleaseCreated": ApiManagementApiReleaseCreatedEventData; + "Microsoft.ApiManagement.APIReleaseDeleted": ApiManagementApiReleaseDeletedEventData; + "Microsoft.ApiManagement.APIReleaseUpdated": ApiManagementApiReleaseUpdatedEventData; + "Microsoft.ApiManagement.APIUpdated": ApiManagementApiUpdatedEventData; + "Microsoft.ApiManagement.ProductCreated": ApiManagementProductCreatedEventData; + "Microsoft.ApiManagement.ProductDeleted": ApiManagementProductDeletedEventData; + "Microsoft.ApiManagement.ProductUpdated": ApiManagementProductUpdatedEventData; + "Microsoft.ApiManagement.SubscriptionCreated": ApiManagementSubscriptionCreatedEventData; + "Microsoft.ApiManagement.SubscriptionDeleted": ApiManagementSubscriptionDeletedEventData; + "Microsoft.ApiManagement.SubscriptionUpdated": ApiManagementSubscriptionUpdatedEventData; + "Microsoft.ApiManagement.UserCreated": ApiManagementUserCreatedEventData; + "Microsoft.ApiManagement.UserDeleted": ApiManagementUserDeletedEventData; + "Microsoft.ApiManagement.UserUpdated": ApiManagementUserUpdatedEventData; "Microsoft.AppConfiguration.KeyValueDeleted": AppConfigurationKeyValueDeletedEventData; "Microsoft.AppConfiguration.KeyValueModified": AppConfigurationKeyValueModifiedEventData; "Microsoft.Communication.ChatMessageDeleted": AcsChatMessageDeletedEventData; @@ -1328,6 +1433,7 @@ export interface SystemEventNameToEventData { "Microsoft.Communication.RecordingFileStatusUpdated": AcsRecordingFileStatusUpdatedEventData; "Microsoft.Communication.SMSDeliveryReportReceived": AcsSmsDeliveryReportReceivedEventData; "Microsoft.Communication.SMSReceived": AcsSmsReceivedEventData; + "Microsoft.Communication.UserDisconnected": AcsUserDisconnectedEventData; "Microsoft.ContainerRegistry.ChartDeleted": ContainerRegistryChartDeletedEventData; "Microsoft.ContainerRegistry.ChartPushed": ContainerRegistryChartPushedEventData; "Microsoft.ContainerRegistry.ImageDeleted": ContainerRegistryImageDeletedEventData; @@ -1374,6 +1480,7 @@ export interface SystemEventNameToEventData { "Microsoft.Media.JobProcessing": MediaJobProcessingEventData; "Microsoft.Media.JobScheduled": MediaJobScheduledEventData; "Microsoft.Media.JobStateChange": MediaJobStateChangeEventData; + "Microsoft.Media.LiveEventChannelArchiveHeartbeat": MediaLiveEventChannelArchiveHeartbeatEventData; "Microsoft.Media.LiveEventConnectionRejected": MediaLiveEventConnectionRejectedEventData; "Microsoft.Media.LiveEventEncoderConnected": MediaLiveEventEncoderConnectedEventData; "Microsoft.Media.LiveEventEncoderDisconnected": MediaLiveEventEncoderDisconnectedEventData; diff --git a/sdk/eventgrid/eventgrid/src/generated/models/index.ts b/sdk/eventgrid/eventgrid/src/generated/models/index.ts index a6a9bce86740..452d89bc6ee1 100644 --- a/sdk/eventgrid/eventgrid/src/generated/models/index.ts +++ b/sdk/eventgrid/eventgrid/src/generated/models/index.ts @@ -1075,7 +1075,7 @@ export interface MediaLiveEventIncomingStreamsOutOfSyncEventData { readonly timescaleOfMaxLastTimestamp: string; } -/** Incoming video stream out of synch event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync event. */ +/** Incoming video stream out of sync event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync event. */ export interface MediaLiveEventIncomingVideoStreamsOutOfSyncEventData { /** * Gets the first timestamp received for one of the quality levels. @@ -1138,7 +1138,7 @@ export interface MediaLiveEventIncomingDataChunkDroppedEventData { readonly trackName: string; } -/** Ingest fragment dropped event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIngestHeartbeat event. */ +/** Ingest heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIngestHeartbeat event. */ export interface MediaLiveEventIngestHeartbeatEventData { /** * Gets the type of the track (Audio / Video). @@ -1150,6 +1150,16 @@ export interface MediaLiveEventIngestHeartbeatEventData { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly trackName: string; + /** + * Gets the Live Transcription language. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly transcriptionLanguage: string; + /** + * Gets the Live Transcription state. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly transcriptionState: string; /** * Gets the bitrate of the track. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1160,6 +1170,16 @@ export interface MediaLiveEventIngestHeartbeatEventData { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly incomingBitrate: number; + /** + * Gets the track ingest drift value. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ingestDriftValue: string; + /** + * Gets the arrival UTC time of the last fragment. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastFragmentArrivalTime: string; /** * Gets the last timestamp. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1241,6 +1261,20 @@ export interface MediaLiveEventTrackDiscontinuityDetectedEventData { readonly discontinuityGap: string; } +/** Channel Archive heartbeat event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventChannelArchiveHeartbeatEventData event. */ +export interface MediaLiveEventChannelArchiveHeartbeatEventData { + /** + * Gets the channel latency in ms. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly channelLatencyMs: string; + /** + * Gets the latency result code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly latencyResultCode: string; +} + /** Schema of the Data property of an EventGridEvent for a Geofence event (GeofenceEntered, GeofenceExited, GeofenceResult). */ export interface MapsGeofenceEvent { /** Lists of the geometry ID of the geofence which is expired relative to the user time in the request. */ @@ -1885,6 +1919,12 @@ export interface WebAppServicePlanUpdatedEventDataSku { capacity?: string; } +/** Schema of the Data property of an EventGridEvent for an Microsoft.Communication.UserDisconnected event. */ +export interface AcsUserDisconnectedEventData { + /** The communication identifier of the user who was disconnected */ + userCommunicationIdentifier: CommunicationIdentifierModel; +} + /** Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set. */ export interface CommunicationIdentifierModel { /** Raw Id of the identifier. Optional in requests, required in responses. */ @@ -2063,6 +2103,96 @@ export interface ContainerServiceNewKubernetesVersionAvailableEventData { latestPreviewKubernetesVersion: string; } +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserCreated event. */ +export interface ApiManagementUserCreatedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserUpdated event. */ +export interface ApiManagementUserUpdatedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.UserDeleted event. */ +export interface ApiManagementUserDeletedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionCreated event. */ +export interface ApiManagementSubscriptionCreatedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionUpdated event. */ +export interface ApiManagementSubscriptionUpdatedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.SubscriptionDeleted event. */ +export interface ApiManagementSubscriptionDeletedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductCreated event. */ +export interface ApiManagementProductCreatedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductUpdated event. */ +export interface ApiManagementProductUpdatedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.ProductDeleted event. */ +export interface ApiManagementProductDeletedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APICreated event. */ +export interface ApiManagementApiCreatedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIUpdated event. */ +export interface ApiManagementApiUpdatedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIDeleted event. */ +export interface ApiManagementApiDeletedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIReleaseCreated event. */ +export interface ApiManagementApiReleaseCreatedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIReleaseUpdated event. */ +export interface ApiManagementApiReleaseUpdatedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + +/** Schema of the Data property of an EventGridEvent for a Microsoft.ApiManagement.APIReleaseDeleted event. */ +export interface ApiManagementApiReleaseDeletedEventData { + /** The fully qualified ID of the resource that the compliance state change is for, including the resource name and resource type. Uses the format, `/subscriptions//resourceGroups//Microsoft.ApiManagement/service///` */ + resourceUri: string; +} + /** Event data for Microsoft.Devices.DeviceCreated event. */ export type IotHubDeviceCreatedEventData = DeviceLifeCycleEvent & {}; diff --git a/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts b/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts index 9fc904c491b8..a2cf04a2a25b 100644 --- a/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts +++ b/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts @@ -3226,6 +3226,22 @@ export const MediaLiveEventIngestHeartbeatEventData: coreClient.CompositeMapper name: "String" } }, + transcriptionLanguage: { + serializedName: "transcriptionLanguage", + required: true, + readOnly: true, + type: { + name: "String" + } + }, + transcriptionState: { + serializedName: "transcriptionState", + required: true, + readOnly: true, + type: { + name: "String" + } + }, bitrate: { serializedName: "bitrate", required: true, @@ -3242,6 +3258,22 @@ export const MediaLiveEventIngestHeartbeatEventData: coreClient.CompositeMapper name: "Number" } }, + ingestDriftValue: { + serializedName: "ingestDriftValue", + required: true, + readOnly: true, + type: { + name: "String" + } + }, + lastFragmentArrivalTime: { + serializedName: "lastFragmentArrivalTime", + required: true, + readOnly: true, + type: { + name: "String" + } + }, lastTimestamp: { serializedName: "lastTimestamp", required: true, @@ -3375,6 +3407,31 @@ export const MediaLiveEventTrackDiscontinuityDetectedEventData: coreClient.Compo } }; +export const MediaLiveEventChannelArchiveHeartbeatEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MediaLiveEventChannelArchiveHeartbeatEventData", + modelProperties: { + channelLatencyMs: { + serializedName: "channelLatencyMs", + required: true, + readOnly: true, + type: { + name: "String" + } + }, + latencyResultCode: { + serializedName: "latencyResultCode", + required: true, + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const MapsGeofenceEvent: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3640,49 +3697,49 @@ export const KeyVaultCertificateNewVersionCreatedEventData: coreClient.Composite className: "KeyVaultCertificateNewVersionCreatedEventData", modelProperties: { id: { - serializedName: "id", + serializedName: "Id", required: true, type: { name: "String" } }, vaultName: { - serializedName: "vaultName", + serializedName: "VaultName", required: true, type: { name: "String" } }, objectType: { - serializedName: "objectType", + serializedName: "ObjectType", required: true, type: { name: "String" } }, objectName: { - serializedName: "objectName", + serializedName: "ObjectName", required: true, type: { name: "String" } }, version: { - serializedName: "version", + serializedName: "Version", required: true, type: { name: "String" } }, nbf: { - serializedName: "nbf", + serializedName: "NBF", required: true, type: { name: "Number" } }, exp: { - serializedName: "exp", + serializedName: "EXP", required: true, type: { name: "Number" @@ -3698,49 +3755,49 @@ export const KeyVaultCertificateNearExpiryEventData: coreClient.CompositeMapper className: "KeyVaultCertificateNearExpiryEventData", modelProperties: { id: { - serializedName: "id", + serializedName: "Id", required: true, type: { name: "String" } }, vaultName: { - serializedName: "vaultName", + serializedName: "VaultName", required: true, type: { name: "String" } }, objectType: { - serializedName: "objectType", + serializedName: "ObjectType", required: true, type: { name: "String" } }, objectName: { - serializedName: "objectName", + serializedName: "ObjectName", required: true, type: { name: "String" } }, version: { - serializedName: "version", + serializedName: "Version", required: true, type: { name: "String" } }, nbf: { - serializedName: "nbf", + serializedName: "NBF", required: true, type: { name: "Number" } }, exp: { - serializedName: "exp", + serializedName: "EXP", required: true, type: { name: "Number" @@ -3756,49 +3813,49 @@ export const KeyVaultCertificateExpiredEventData: coreClient.CompositeMapper = { className: "KeyVaultCertificateExpiredEventData", modelProperties: { id: { - serializedName: "id", + serializedName: "Id", required: true, type: { name: "String" } }, vaultName: { - serializedName: "vaultName", + serializedName: "VaultName", required: true, type: { name: "String" } }, objectType: { - serializedName: "objectType", + serializedName: "ObjectType", required: true, type: { name: "String" } }, objectName: { - serializedName: "objectName", + serializedName: "ObjectName", required: true, type: { name: "String" } }, version: { - serializedName: "version", + serializedName: "Version", required: true, type: { name: "String" } }, nbf: { - serializedName: "nbf", + serializedName: "NBF", required: true, type: { name: "Number" } }, exp: { - serializedName: "exp", + serializedName: "EXP", required: true, type: { name: "Number" @@ -3814,49 +3871,49 @@ export const KeyVaultKeyNewVersionCreatedEventData: coreClient.CompositeMapper = className: "KeyVaultKeyNewVersionCreatedEventData", modelProperties: { id: { - serializedName: "id", + serializedName: "Id", required: true, type: { name: "String" } }, vaultName: { - serializedName: "vaultName", + serializedName: "VaultName", required: true, type: { name: "String" } }, objectType: { - serializedName: "objectType", + serializedName: "ObjectType", required: true, type: { name: "String" } }, objectName: { - serializedName: "objectName", + serializedName: "ObjectName", required: true, type: { name: "String" } }, version: { - serializedName: "version", + serializedName: "Version", required: true, type: { name: "String" } }, nbf: { - serializedName: "nbf", + serializedName: "NBF", required: true, type: { name: "Number" } }, exp: { - serializedName: "exp", + serializedName: "EXP", required: true, type: { name: "Number" @@ -3872,49 +3929,49 @@ export const KeyVaultKeyNearExpiryEventData: coreClient.CompositeMapper = { className: "KeyVaultKeyNearExpiryEventData", modelProperties: { id: { - serializedName: "id", + serializedName: "Id", required: true, type: { name: "String" } }, vaultName: { - serializedName: "vaultName", + serializedName: "VaultName", required: true, type: { name: "String" } }, objectType: { - serializedName: "objectType", + serializedName: "ObjectType", required: true, type: { name: "String" } }, objectName: { - serializedName: "objectName", + serializedName: "ObjectName", required: true, type: { name: "String" } }, version: { - serializedName: "version", + serializedName: "Version", required: true, type: { name: "String" } }, nbf: { - serializedName: "nbf", + serializedName: "NBF", required: true, type: { name: "Number" } }, exp: { - serializedName: "exp", + serializedName: "EXP", required: true, type: { name: "Number" @@ -3930,49 +3987,49 @@ export const KeyVaultKeyExpiredEventData: coreClient.CompositeMapper = { className: "KeyVaultKeyExpiredEventData", modelProperties: { id: { - serializedName: "id", + serializedName: "Id", required: true, type: { name: "String" } }, vaultName: { - serializedName: "vaultName", + serializedName: "VaultName", required: true, type: { name: "String" } }, objectType: { - serializedName: "objectType", + serializedName: "ObjectType", required: true, type: { name: "String" } }, objectName: { - serializedName: "objectName", + serializedName: "ObjectName", required: true, type: { name: "String" } }, version: { - serializedName: "version", + serializedName: "Version", required: true, type: { name: "String" } }, nbf: { - serializedName: "nbf", + serializedName: "NBF", required: true, type: { name: "Number" } }, exp: { - serializedName: "exp", + serializedName: "EXP", required: true, type: { name: "Number" @@ -3988,49 +4045,49 @@ export const KeyVaultSecretNewVersionCreatedEventData: coreClient.CompositeMappe className: "KeyVaultSecretNewVersionCreatedEventData", modelProperties: { id: { - serializedName: "id", + serializedName: "Id", required: true, type: { name: "String" } }, vaultName: { - serializedName: "vaultName", + serializedName: "VaultName", required: true, type: { name: "String" } }, objectType: { - serializedName: "objectType", + serializedName: "ObjectType", required: true, type: { name: "String" } }, objectName: { - serializedName: "objectName", + serializedName: "ObjectName", required: true, type: { name: "String" } }, version: { - serializedName: "version", + serializedName: "Version", required: true, type: { name: "String" } }, nbf: { - serializedName: "nbf", + serializedName: "NBF", required: true, type: { name: "Number" } }, exp: { - serializedName: "exp", + serializedName: "EXP", required: true, type: { name: "Number" @@ -4046,49 +4103,49 @@ export const KeyVaultSecretNearExpiryEventData: coreClient.CompositeMapper = { className: "KeyVaultSecretNearExpiryEventData", modelProperties: { id: { - serializedName: "id", + serializedName: "Id", required: true, type: { name: "String" } }, vaultName: { - serializedName: "vaultName", + serializedName: "VaultName", required: true, type: { name: "String" } }, objectType: { - serializedName: "objectType", + serializedName: "ObjectType", required: true, type: { name: "String" } }, objectName: { - serializedName: "objectName", + serializedName: "ObjectName", required: true, type: { name: "String" } }, version: { - serializedName: "version", + serializedName: "Version", required: true, type: { name: "String" } }, nbf: { - serializedName: "nbf", + serializedName: "NBF", required: true, type: { name: "Number" } }, exp: { - serializedName: "exp", + serializedName: "EXP", required: true, type: { name: "Number" @@ -4104,49 +4161,49 @@ export const KeyVaultSecretExpiredEventData: coreClient.CompositeMapper = { className: "KeyVaultSecretExpiredEventData", modelProperties: { id: { - serializedName: "id", + serializedName: "Id", required: true, type: { name: "String" } }, vaultName: { - serializedName: "vaultName", + serializedName: "VaultName", required: true, type: { name: "String" } }, objectType: { - serializedName: "objectType", + serializedName: "ObjectType", required: true, type: { name: "String" } }, objectName: { - serializedName: "objectName", + serializedName: "ObjectName", required: true, type: { name: "String" } }, version: { - serializedName: "version", + serializedName: "Version", required: true, type: { name: "String" } }, nbf: { - serializedName: "nbf", + serializedName: "NBF", required: true, type: { name: "Number" } }, exp: { - serializedName: "exp", + serializedName: "EXP", required: true, type: { name: "Number" @@ -4162,49 +4219,49 @@ export const KeyVaultAccessPolicyChangedEventData: coreClient.CompositeMapper = className: "KeyVaultAccessPolicyChangedEventData", modelProperties: { id: { - serializedName: "id", + serializedName: "Id", required: true, type: { name: "String" } }, vaultName: { - serializedName: "vaultName", + serializedName: "VaultName", required: true, type: { name: "String" } }, objectType: { - serializedName: "objectType", + serializedName: "ObjectType", required: true, type: { name: "String" } }, objectName: { - serializedName: "objectName", + serializedName: "ObjectName", required: true, type: { name: "String" } }, version: { - serializedName: "version", + serializedName: "Version", required: true, type: { name: "String" } }, nbf: { - serializedName: "nbf", + serializedName: "NBF", required: true, type: { name: "Number" } }, exp: { - serializedName: "exp", + serializedName: "EXP", required: true, type: { name: "Number" @@ -5435,6 +5492,22 @@ export const WebAppServicePlanUpdatedEventDataSku: coreClient.CompositeMapper = } }; +export const AcsUserDisconnectedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AcsUserDisconnectedEventData", + modelProperties: { + userCommunicationIdentifier: { + serializedName: "userCommunicationIdentifier", + type: { + name: "Composite", + className: "CommunicationIdentifierModel" + } + } + } + } +}; + export const CommunicationIdentifierModel: coreClient.CompositeMapper = { type: { name: "Composite", @@ -5982,6 +6055,246 @@ export const ContainerServiceNewKubernetesVersionAvailableEventData: coreClient. } }; +export const ApiManagementUserCreatedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementUserCreatedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementUserUpdatedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementUserUpdatedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementUserDeletedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementUserDeletedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementSubscriptionCreatedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementSubscriptionCreatedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementSubscriptionUpdatedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementSubscriptionUpdatedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementSubscriptionDeletedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementSubscriptionDeletedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementProductCreatedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementProductCreatedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementProductUpdatedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementProductUpdatedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementProductDeletedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementProductDeletedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementApiCreatedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementApiCreatedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementApiUpdatedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementApiUpdatedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementApiDeletedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementApiDeletedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementApiReleaseCreatedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementApiReleaseCreatedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementApiReleaseUpdatedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementApiReleaseUpdatedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiManagementApiReleaseDeletedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiManagementApiReleaseDeletedEventData", + modelProperties: { + resourceUri: { + serializedName: "resourceUri", + required: true, + type: { + name: "String" + } + } + } + } +}; + export const IotHubDeviceCreatedEventData: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/eventgrid/eventgrid/src/index.ts b/sdk/eventgrid/eventgrid/src/index.ts index bbdc9d708729..2dc09da4327c 100644 --- a/sdk/eventgrid/eventgrid/src/index.ts +++ b/sdk/eventgrid/eventgrid/src/index.ts @@ -44,12 +44,28 @@ export { AcsRecordingFileStatusUpdatedEventData, AcsRecordingStorageInfo, AcsRecordingChunkInfo, + ApiManagementApiCreatedEventData, + ApiManagementApiDeletedEventData, + ApiManagementApiReleaseCreatedEventData, + ApiManagementApiReleaseDeletedEventData, + ApiManagementApiReleaseUpdatedEventData, + ApiManagementApiUpdatedEventData, + ApiManagementProductCreatedEventData, + ApiManagementProductDeletedEventData, + ApiManagementProductUpdatedEventData, + ApiManagementSubscriptionCreatedEventData, + ApiManagementSubscriptionDeletedEventData, + ApiManagementSubscriptionUpdatedEventData, + ApiManagementUserCreatedEventData, + ApiManagementUserDeletedEventData, + ApiManagementUserUpdatedEventData, CommunicationIdentifierModel, CommunicationUserIdentifierModel, CommunicationCloudEnvironmentModel, MicrosoftTeamsUserIdentifierModel, PhoneNumberIdentifierModel, AcsChatThreadParticipant, + AcsUserDisconnectedEventData, AcsSmsDeliveryAttempt, AcsSmsDeliveryReportReceivedEventData, AcsSmsEventBase, @@ -118,6 +134,7 @@ export { MediaJobOutputProgressEventData, MediaJobOutputUnion, MediaJobState, + MediaLiveEventChannelArchiveHeartbeatEventData, MediaLiveEventEncoderConnectedEventData, MediaLiveEventConnectionRejectedEventData, MediaLiveEventEncoderDisconnectedEventData, diff --git a/sdk/eventgrid/eventgrid/src/predicates.ts b/sdk/eventgrid/eventgrid/src/predicates.ts index b2e4ded77ef8..65caee638809 100644 --- a/sdk/eventgrid/eventgrid/src/predicates.ts +++ b/sdk/eventgrid/eventgrid/src/predicates.ts @@ -18,6 +18,22 @@ import { AcsRecordingFileStatusUpdatedEventData, AcsSmsDeliveryReportReceivedEventData, AcsSmsReceivedEventData, + AcsUserDisconnectedEventData, + ApiManagementApiCreatedEventData, + ApiManagementApiDeletedEventData, + ApiManagementApiReleaseCreatedEventData, + ApiManagementApiReleaseDeletedEventData, + ApiManagementApiReleaseUpdatedEventData, + ApiManagementApiUpdatedEventData, + ApiManagementProductCreatedEventData, + ApiManagementProductDeletedEventData, + ApiManagementProductUpdatedEventData, + ApiManagementSubscriptionCreatedEventData, + ApiManagementSubscriptionDeletedEventData, + ApiManagementSubscriptionUpdatedEventData, + ApiManagementUserCreatedEventData, + ApiManagementUserDeletedEventData, + ApiManagementUserUpdatedEventData, AppConfigurationKeyValueDeletedEventData, AppConfigurationKeyValueModifiedEventData, ContainerRegistryChartDeletedEventData, @@ -64,6 +80,7 @@ import { MediaJobProcessingEventData, MediaJobScheduledEventData, MediaJobStateChangeEventData, + MediaLiveEventChannelArchiveHeartbeatEventData, MediaLiveEventConnectionRejectedEventData, MediaLiveEventEncoderConnectedEventData, MediaLiveEventEncoderDisconnectedEventData, @@ -126,6 +143,36 @@ export type KnownSystemEventTypes = keyof SystemEventNameToEventData; * A mapping of event type names to event data type interfaces. */ export interface SystemEventNameToEventData { + /** An interface for the event data of a "Microsoft.ApiManagement.UserCreated" event. */ + "Microsoft.ApiManagement.UserCreated": ApiManagementUserCreatedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.UserUpdated" event. */ + "Microsoft.ApiManagement.UserUpdated": ApiManagementUserUpdatedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.UserDeleted" event. */ + "Microsoft.ApiManagement.UserDeleted": ApiManagementUserDeletedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.SubscriptionCreated" event. */ + "Microsoft.ApiManagement.SubscriptionCreated": ApiManagementSubscriptionCreatedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.SubscriptionUpdated" event. */ + "Microsoft.ApiManagement.SubscriptionUpdated": ApiManagementSubscriptionUpdatedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.SubscriptionDeleted" event. */ + "Microsoft.ApiManagement.SubscriptionDeleted": ApiManagementSubscriptionDeletedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.ProductCreated" event. */ + "Microsoft.ApiManagement.ProductCreated": ApiManagementProductCreatedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.ProductUpdated" event. */ + "Microsoft.ApiManagement.ProductUpdated": ApiManagementProductUpdatedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.ProductDeleted" event. */ + "Microsoft.ApiManagement.ProductDeleted": ApiManagementProductDeletedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.APICreated" event. */ + "Microsoft.ApiManagement.APICreated": ApiManagementApiCreatedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.APIUpdated" event. */ + "Microsoft.ApiManagement.APIUpdated": ApiManagementApiUpdatedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.APIDeleted" event. */ + "Microsoft.ApiManagement.APIDeleted": ApiManagementApiDeletedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.APIReleaseCreated" event. */ + "Microsoft.ApiManagement.APIReleaseCreated": ApiManagementApiReleaseCreatedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.APIReleaseUpdated" event. */ + "Microsoft.ApiManagement.APIReleaseUpdated": ApiManagementApiReleaseUpdatedEventData; + /** An interface for the event data of a "Microsoft.ApiManagement.APIReleaseDeleted" event. */ + "Microsoft.ApiManagement.APIReleaseDeleted": ApiManagementApiReleaseDeletedEventData; /** An interface for the event data of a "Microsoft.Communication.ChatMessageReceived" event. */ "Microsoft.Communication.ChatMessageReceived": AcsChatMessageReceivedEventData; /** An interface for the event data of a "Microsoft.Communication.ChatMessageReceivedInThread" event. */ @@ -158,6 +205,8 @@ export interface SystemEventNameToEventData { "Microsoft.Communication.SMSDeliveryReportReceived": AcsSmsDeliveryReportReceivedEventData; /** An interface for the event data of a "Microsoft.Communication.SMSReceived" event. */ "Microsoft.Communication.SMSReceived": AcsSmsReceivedEventData; + /** An interface for the event data of a "Microsoft.Communication.UserDisconnected" event. */ + "Microsoft.Communication.UserDisconnected": AcsUserDisconnectedEventData; /** An interface for the event data of a "Microsoft.ContainerService.NewKubernetesVersionAvailable" event. */ "Microsoft.ContainerService.NewKubernetesVersionAvailable": ContainerServiceNewKubernetesVersionAvailableEventData; /** An interface for the event data of a "Microsoft.AppConfiguration.KeyValueDeleted" event. */ @@ -256,6 +305,8 @@ export interface SystemEventNameToEventData { "Microsoft.Media.JobOutputProgress": MediaJobOutputProgressEventData; /** An interface for the event data of a "Microsoft.Media.LiveEventEncoderConnected" event. */ "Microsoft.Media.LiveEventEncoderConnected": MediaLiveEventEncoderConnectedEventData; + /** An interface for the event data of a "Microsoft.Media.LiveEventChannelArchiveHeartbeat" event. */ + "Microsoft.Media.LiveEventChannelArchiveHeartbeat": MediaLiveEventChannelArchiveHeartbeatEventData; /** An interface for the event data of a "Microsoft.Media.LiveEventConnectionRejected" event. */ "Microsoft.Media.LiveEventConnectionRejected": MediaLiveEventConnectionRejectedEventData; /** An interface for the event data of a "Microsoft.Media.LiveEventEncoderDisconnected" event. */ diff --git a/sdk/eventgrid/eventgrid/swagger/README.md b/sdk/eventgrid/eventgrid/swagger/README.md index 3a648bce666c..d46001fb02d9 100644 --- a/sdk/eventgrid/eventgrid/swagger/README.md +++ b/sdk/eventgrid/eventgrid/swagger/README.md @@ -5,7 +5,7 @@ ## Configuration ```yaml -require: "https://github.com/Azure/azure-rest-api-specs/blob/7026463801584950d4ccbaa6b05b15d29555dd3a/specification/eventgrid/data-plane/readme.md" +require: "https://github.com/Azure/azure-rest-api-specs/blob/b6f4a619bd310870334edd79eaec2d4bfeabdbbe/specification/eventgrid/data-plane/readme.md" package-name: "@azure/eventgrid" package-version: "4.5.0" title: GeneratedClient