From 1ef3345f85722ab1962e26fcc61eb93a22f4b318 Mon Sep 17 00:00:00 2001 From: Rakshith Bhyravabhotla Date: Thu, 29 Apr 2021 01:16:05 -0700 Subject: [PATCH 1/7] Post Process Event Names Scrip --- .../swagger/postprocess_eventnames.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py diff --git a/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py b/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py new file mode 100644 index 000000000000..b4b1c5bed6fc --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py @@ -0,0 +1,23 @@ +import inspect +import re +from azure.eventgrid._generated import models + +def event_tuples(system_events): + tup_list = [] + for event in system_events: + class_name = event[0].replace("EventData", "EventName") + try: + event_name = re.findall("Microsoft.[a-zA-Z]+.[a-zA-Z]+", event[1].__doc__)[0] + except: + print(event[0]) + tup_list.append((class_name, event_name)) + return tup_list + +def generate_enum_content(tuples): + for tup in tup_list: + print(tup[0] + " = '" + tup[1] + "'\n") + +system_events = [m for m in inspect.getmembers(models) if m[0].endswith('EventData')] +tup_list = event_tuples(system_events) + +generate_enum_content(tup_list) From 5ba0694a5a2ff6187ef1bc1197e69753641f2de9 Mon Sep 17 00:00:00 2001 From: Rakshith Bhyravabhotla Date: Tue, 4 May 2021 15:33:55 -0700 Subject: [PATCH 2/7] regen code --- .../azure/eventgrid/_event_mappings.py | 284 +++++------ .../_event_grid_publisher_client.py | 2 +- .../aio/_event_grid_publisher_client.py | 2 +- ..._event_grid_publisher_client_operations.py | 2 +- .../eventgrid/_generated/models/__init__.py | 15 + .../eventgrid/_generated/models/_models.py | 413 +++++++++++---- .../_generated/models/_models_py3.py | 478 ++++++++++++++---- ..._event_grid_publisher_client_operations.py | 2 +- .../swagger/postprocess_eventnames.py | 4 + 9 files changed, 851 insertions(+), 351 deletions(-) diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py index 08466276aa66..4e861b370f9c 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py @@ -11,168 +11,122 @@ class SystemEventNames(str, Enum): Azure Event Grid. To check the list of recognizable system topics, visit https://docs.microsoft.com/azure/event-grid/system-topics. """ - - AcsChatMemberAddedToThreadWithUserEventName = ( - "Microsoft.Communication.ChatMemberAddedToThreadWithUser" - ) - AcsChatMemberRemovedFromThreadWithUserEventName = ( - "Microsoft.Communication.ChatMemberRemovedFromThreadWithUser" - ) - AcsChatMessageDeletedEventName = "Microsoft.Communication.ChatMessageDeleted" - AcsChatMessageEditedEventName = "Microsoft.Communication.ChatMessageEdited" - AcsChatMessageReceivedEventName = "Microsoft.Communication.ChatMessageReceived" - AcsRecordingFileStatusUpdatedEventName = "Microsoft.Communication.RecordingFileStatusUpdated" - AcsChatThreadCreatedWithUserEventName = ( - "Microsoft.Communication.ChatThreadCreatedWithUser" - ) - AcsChatThreadParticipantAddedEventName = "Microsoft.Communication.ChatThreadParticipantAdded" - AcsChatThreadParticipantRemovedEventName = "Microsoft.Communication.ChatThreadParticipantRemoved" - AcsChatThreadPropertiesUpdatedPerUserEventName = ( - "Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser" - ) - AcsChatThreadWithUserDeletedEventName = ( - "Microsoft.Communication.ChatThreadWithUserDeleted" - ) - AcsSmsDeliveryReportReceivedEventName = ( - "Microsoft.Communication.SMSDeliveryReportReceived" - ) - AcsSmsReceivedEventName = "Microsoft.Communication.SMSReceived" - AppConfigurationKeyValueDeletedEventName = ( - "Microsoft.AppConfiguration.KeyValueDeleted" - ) - AppConfigurationKeyValueModifiedEventName = ( - "Microsoft.AppConfiguration.KeyValueModified" - ) - ContainerRegistryChartDeletedEventName = "Microsoft.ContainerRegistry.ChartDeleted" - ContainerRegistryChartPushedEventName = "Microsoft.ContainerRegistry.ChartPushed" - ContainerRegistryImageDeletedEventName = "Microsoft.ContainerRegistry.ImageDeleted" - ContainerRegistryImagePushedEventName = "Microsoft.ContainerRegistry.ImagePushed" - EventGridSubscriptionDeletedEventName = ( - "Microsoft.EventGrid.SubscriptionDeletedEvent" - ) - EventGridSubscriptionValidationEventName = ( - "Microsoft.EventGrid.SubscriptionValidationEvent" - ) - EventHubCaptureFileCreatedEventName = "Microsoft.EventHub.CaptureFileCreated" - IoTHubDeviceConnectedEventName = "Microsoft.Devices.DeviceConnected" - IoTHubDeviceCreatedEventName = "Microsoft.Devices.DeviceCreated" - IoTHubDeviceDeletedEventName = "Microsoft.Devices.DeviceDeleted" - IoTHubDeviceDisconnectedEventName = "Microsoft.Devices.DeviceDisconnected" - IotHubDeviceTelemetryEventName = "Microsoft.Devices.DeviceTelemetry" - KeyVaultAccessPolicyChangedEventName = "Microsoft.KeyVault.VaultAccessPolicyChanged" - KeyVaultCertificateExpiredEventName = "Microsoft.KeyVault.CertificateExpired" - KeyVaultCertificateNearExpiryEventName = "Microsoft.KeyVault.CertificateNearExpiry" - KeyVaultCertificateNewVersionCreatedEventName = ( - "Microsoft.KeyVault.CertificateNewVersionCreated" - ) - KeyVaultKeyExpiredEventName = "Microsoft.KeyVault.KeyExpired" - KeyVaultKeyNearExpiryEventName = "Microsoft.KeyVault.KeyNearExpiry" - KeyVaultKeyNewVersionCreatedEventName = "Microsoft.KeyVault.KeyNewVersionCreated" - KeyVaultSecretExpiredEventName = "Microsoft.KeyVault.SecretExpired" - KeyVaultSecretNearExpiryEventName = "Microsoft.KeyVault.SecretNearExpiry" - KeyVaultSecretNewVersionCreatedEventName = ( - "Microsoft.KeyVault.SecretNewVersionCreated" - ) - MachineLearningServicesDatasetDriftDetectedEventName = ( - "Microsoft.MachineLearningServices.DatasetDriftDetected" - ) - MachineLearningServicesModelDeployedEventName = ( - "Microsoft.MachineLearningServices.ModelDeployed" - ) - MachineLearningServicesModelRegisteredEventName = ( - "Microsoft.MachineLearningServices.ModelRegistered" - ) - MachineLearningServicesRunCompletedEventName = ( - "Microsoft.MachineLearningServices.RunCompleted" - ) - MachineLearningServicesRunStatusChangedEventName = ( - "Microsoft.MachineLearningServices.RunStatusChanged" - ) - MapsGeofenceEnteredEventName = "Microsoft.Maps.GeofenceEntered" - MapsGeofenceExitedEventName = "Microsoft.Maps.GeofenceExited" - MapsGeofenceResultEventName = "Microsoft.Maps.GeofenceResult" - MediaJobCanceledEventName = "Microsoft.Media.JobCanceled" - MediaJobCancelingEventName = "Microsoft.Media.JobCanceling" - MediaJobErroredEventName = "Microsoft.Media.JobErrored" - MediaJobFinishedEventName = "Microsoft.Media.JobFinished" - MediaJobOutputCanceledEventName = "Microsoft.Media.JobOutputCanceled" - MediaJobOutputCancelingEventName = "Microsoft.Media.JobOutputCanceling" - MediaJobOutputErroredEventName = "Microsoft.Media.JobOutputErrored" - MediaJobOutputFinishedEventName = "Microsoft.Media.JobOutputFinished" - MediaJobOutputProcessingEventName = "Microsoft.Media.JobOutputProcessing" - MediaJobOutputProgressEventName = "Microsoft.Media.JobOutputProgress" - MediaJobOutputScheduledEventName = "Microsoft.Media.JobOutputScheduled" - MediaJobOutputStateChangeEventName = "Microsoft.Media.JobOutputStateChange" - MediaJobProcessingEventName = "Microsoft.Media.JobProcessing" - MediaJobScheduledEventName = "Microsoft.Media.JobScheduled" - MediaJobStateChangeEventName = "Microsoft.Media.JobStateChange" - MediaLiveEventConnectionRejectedEventName = ( - "Microsoft.Media.LiveEventConnectionRejected" - ) - MediaLiveEventEncoderConnectedEventName = ( - "Microsoft.Media.LiveEventEncoderConnected" - ) - MediaLiveEventEncoderDisconnectedEventName = ( - "Microsoft.Media.LiveEventEncoderDisconnected" - ) - MediaLiveEventIncomingDataChunkDroppedEventName = ( - "Microsoft.Media.LiveEventIncomingDataChunkDropped" - ) - MediaLiveEventIncomingStreamReceivedEventName = ( - "Microsoft.Media.LiveEventIncomingStreamReceived" - ) - MediaLiveEventIncomingStreamsOutOfSyncEventName = ( - "Microsoft.Media.LiveEventIncomingStreamsOutOfSync" - ) - MediaLiveEventIncomingVideoStreamsOutOfSyncEventName = ( - "Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync" - ) - MediaLiveEventIngestHeartbeatEventName = "Microsoft.Media.LiveEventIngestHeartbeat" - MediaLiveEventTrackDiscontinuityDetectedEventName = ( - "Microsoft.Media.LiveEventTrackDiscontinuityDetected" - ) - ResourceActionCancelEventName = "Microsoft.Resources.ResourceActionCancel" - ResourceActionFailureEventName = "Microsoft.Resources.ResourceActionFailure" - ResourceActionSuccessEventName = "Microsoft.Resources.ResourceActionSuccess" - ResourceDeleteCancelEventName = "Microsoft.Resources.ResourceDeleteCancel" - ResourceDeleteFailureEventName = "Microsoft.Resources.ResourceDeleteFailure" - ResourceDeleteSuccessEventName = "Microsoft.Resources.ResourceDeleteSuccess" - ResourceWriteCancelEventName = "Microsoft.Resources.ResourceWriteCancel" - ResourceWriteFailureEventName = "Microsoft.Resources.ResourceWriteFailure" - ResourceWriteSuccessEventName = "Microsoft.Resources.ResourceWriteSuccess" - ServiceBusActiveMessagesAvailableWithNoListenersEventName = ( - "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners" - ) - ServiceBusDeadletterMessagesAvailableWithNoListenerEventName = ( - "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListener" - ) - ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = ( - "Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications" - ) - ServiceBusActiveMessagesAvailablePeriodicNotificationsEventName = ( - "Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications" - ) - StorageBlobCreatedEventName = "Microsoft.Storage.BlobCreated" - StorageBlobDeletedEventName = "Microsoft.Storage.BlobDeleted" - StorageBlobRenamedEventName = "Microsoft.Storage.BlobRenamed" - StorageDirectoryCreatedEventName = "Microsoft.Storage.DirectoryCreated" - StorageDirectoryDeletedEventName = "Microsoft.Storage.DirectoryDeleted" - StorageDirectoryRenamedEventName = "Microsoft.Storage.DirectoryRenamed" - StorageLifecyclePolicyCompletedEventName = ( - "Microsoft.Storage.LifecyclePolicyCompleted" - ) - WebAppServicePlanUpdatedEventName = "Microsoft.Web.AppServicePlanUpdated" - WebAppUpdatedEventName = "Microsoft.Web.AppUpdated" - WebBackupOperationCompletedEventName = "Microsoft.Web.BackupOperationCompleted" - WebBackupOperationFailedEventName = "Microsoft.Web.BackupOperationFailed" - WebBackupOperationStartedEventName = "Microsoft.Web.BackupOperationStarted" - WebRestoreOperationCompletedEventName = "Microsoft.Web.RestoreOperationCompleted" - WebRestoreOperationFailedEventName = "Microsoft.Web.RestoreOperationFailed" - WebRestoreOperationStartedEventName = "Microsoft.Web.RestoreOperationStarted" - WebSlotSwapCompletedEventName = "Microsoft.Web.SlotSwapCompleted" - WebSlotSwapFailedEventName = "Microsoft.Web.SlotSwapFailed" - WebSlotSwapStartedEventName = "Microsoft.Web.SlotSwapStarted" - WebSlotSwapWithPreviewCancelledEventName = ( - "Microsoft.Web.SlotSwapWithPreviewCancelled" - ) - WebSlotSwapWithPreviewStartedEventName = "Microsoft.Web.SlotSwapWithPreviewStarted" +AcsChatMessageDeletedEventName = 'Microsoft.Communication.ChatMessageDeleted' +AcsChatMessageDeletedInThreadEventName = 'Microsoft.Communication.ChatMessageDeletedInThread' +AcsChatMessageEditedEventName = 'Microsoft.Communication.ChatMessageEdited' +AcsChatMessageEditedInThreadEventName = 'Microsoft.Communication.ChatMessageEditedInThread' +AcsChatMessageReceivedEventName = 'Microsoft.Communication.ChatMessageReceived' +AcsChatMessageReceivedInThreadEventName = 'Microsoft.Communication.ChatMessageReceivedInThread' +AcsChatParticipantAddedToThreadEventName = 'Microsoft.Communication.ChatThreadParticipantAdded' +AcsChatParticipantAddedToThreadWithUserEventName = 'Microsoft.Communication.ChatParticipantAddedToThreadWithUser' +AcsChatParticipantRemovedFromThreadEventName = 'Microsoft.Communication.ChatThreadParticipantRemoved' +AcsChatParticipantRemovedFromThreadWithUserEventName = ( + 'Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser' +) +AcsChatThreadCreatedEventName = 'Microsoft.Communication.ChatThreadCreated' +AcsChatThreadCreatedWithUserEventName = 'Microsoft.Communication.ChatThreadCreatedWithUser' +AcsChatThreadDeletedEventName = 'Microsoft.Communication.ChatThreadDeleted' +AcsChatThreadPropertiesUpdatedEventName = 'Microsoft.Communication.ChatThreadPropertiesUpdated' +AcsChatThreadPropertiesUpdatedPerUserEventName = 'Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser' +AcsChatThreadWithUserDeletedEventName = 'Microsoft.Communication.ChatThreadWithUserDeleted' +AcsRecordingFileStatusUpdatedEventName = 'Microsoft.Communication.RecordingFileStatusUpdated' +AcsSmsDeliveryReportReceivedEventName = 'Microsoft.Communication.SMSDeliveryReportReceived' +AcsSmsReceivedEventName = 'Microsoft.Communication.SMSReceived' +AppConfigurationKeyValueDeletedEventName = 'Microsoft.AppConfiguration.KeyValueDeleted' +AppConfigurationKeyValueModifiedEventName = 'Microsoft.AppConfiguration.KeyValueModified' +ContainerRegistryArtifactEventName = 'Microsoft.AppConfiguration.KeyValueModified' +ContainerRegistryChartDeletedEventName = 'Microsoft.ContainerRegistry.ChartDeleted' +ContainerRegistryChartPushedEventName = 'Microsoft.ContainerRegistry.ChartPushed' +ContainerRegistryEventName = 'Microsoft.ContainerRegistry.ChartPushed' +ContainerRegistryImageDeletedEventName = 'Microsoft.ContainerRegistry.ImageDeleted' +ContainerRegistryImagePushedEventName = 'Microsoft.ContainerRegistry.ImagePushed' +EventHubCaptureFileCreatedEventName = 'Microsoft.EventHub.CaptureFileCreated' +IotHubDeviceConnectedEventName = 'Microsoft.Devices.DeviceConnected' +IotHubDeviceCreatedEventName = 'Microsoft.Devices.DeviceCreated' +IotHubDeviceDeletedEventName = 'Microsoft.Devices.DeviceDeleted' +IotHubDeviceDisconnectedEventName = 'Microsoft.Devices.DeviceDisconnected' +IotHubDeviceTelemetryEventName = 'Microsoft.Devices.DeviceTelemetry' +KeyVaultAccessPolicyChangedEventName = 'Microsoft.KeyVault.VaultAccessPolicyChanged' +KeyVaultCertificateExpiredEventName = 'Microsoft.KeyVault.CertificateExpired' +KeyVaultCertificateNearExpiryEventName = 'Microsoft.KeyVault.CertificateNearExpiry' +KeyVaultCertificateNewVersionCreatedEventName = 'Microsoft.KeyVault.CertificateNewVersionCreated' +KeyVaultKeyExpiredEventName = 'Microsoft.KeyVault.KeyExpired' +KeyVaultKeyNearExpiryEventName = 'Microsoft.KeyVault.KeyNearExpiry' +KeyVaultKeyNewVersionCreatedEventName = 'Microsoft.KeyVault.KeyNewVersionCreated' +KeyVaultSecretExpiredEventName = 'Microsoft.KeyVault.SecretExpired' +KeyVaultSecretNearExpiryEventName = 'Microsoft.KeyVault.SecretNearExpiry' +KeyVaultSecretNewVersionCreatedEventName = 'Microsoft.KeyVault.SecretNewVersionCreated' +MachineLearningServicesDatasetDriftDetectedEventName = 'Microsoft.MachineLearningServices.DatasetDriftDetected' +MachineLearningServicesModelDeployedEventName = 'Microsoft.MachineLearningServices.ModelDeployed' +MachineLearningServicesModelRegisteredEventName = 'Microsoft.MachineLearningServices.ModelRegistered' +MachineLearningServicesRunCompletedEventName = 'Microsoft.MachineLearningServices.RunCompleted' +MachineLearningServicesRunStatusChangedEventName = 'Microsoft.MachineLearningServices.RunStatusChanged' +MapsGeofenceEnteredEventName = 'Microsoft.Maps.GeofenceEntered' +MapsGeofenceExitedEventName = 'Microsoft.Maps.GeofenceExited' +MapsGeofenceResultEventName = 'Microsoft.Maps.GeofenceResult' +MediaJobCanceledEventName = 'Microsoft.Media.JobCanceled' +MediaJobCancelingEventName = 'Microsoft.Media.JobCanceling' +MediaJobErroredEventName = 'Microsoft.Media.JobErrored' +MediaJobFinishedEventName = 'Microsoft.Media.JobFinished' +MediaJobOutputCanceledEventName = 'Microsoft.Media.JobOutputCanceled' +MediaJobOutputCancelingEventName = 'Microsoft.Media.JobOutputCanceling' +MediaJobOutputErroredEventName = 'Microsoft.Media.JobOutputErrored' +MediaJobOutputFinishedEventName = 'Microsoft.Media.JobOutputFinished' +MediaJobOutputProcessingEventName = 'Microsoft.Media.JobOutputProcessing' +MediaJobOutputProgressEventName = 'Microsoft.Media.JobOutputProgress' +MediaJobOutputScheduledEventName = 'Microsoft.Media.JobOutputScheduled' +MediaJobOutputStateChangeEventName = 'Microsoft.Media.JobOutputStateChange' +MediaJobProcessingEventName = 'Microsoft.Media.JobProcessing' +MediaJobScheduledEventName = 'Microsoft.Media.JobScheduled' +MediaJobStateChangeEventName = 'Microsoft.Media.JobStateChange' +MediaLiveEventConnectionRejectedEventName = 'Microsoft.Media.LiveEventConnectionRejected' +MediaLiveEventEncoderConnectedEventName = 'Microsoft.Media.LiveEventEncoderConnected' +MediaLiveEventEncoderDisconnectedEventName = 'Microsoft.Media.LiveEventEncoderDisconnected' +MediaLiveEventIncomingDataChunkDroppedEventName = 'Microsoft.Media.LiveEventIncomingDataChunkDropped' +MediaLiveEventIncomingStreamReceivedEventName = 'Microsoft.Media.LiveEventIncomingStreamReceived' +MediaLiveEventIncomingStreamsOutOfSyncEventName = 'Microsoft.Media.LiveEventIncomingStreamsOutOfSync' +MediaLiveEventIncomingVideoStreamsOutOfSyncEventName = 'Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync' +MediaLiveEventIngestHeartbeatEventName = 'Microsoft.Media.LiveEventIngestHeartbeat' +MediaLiveEventTrackDiscontinuityDetectedEventName = 'Microsoft.Media.LiveEventTrackDiscontinuityDetected' +RedisExportRDBCompletedEventName = 'Microsoft.Cache.ExportRDBCompleted' +RedisImportRDBCompletedEventName = 'Microsoft.Cache.ImportRDBCompleted' +RedisPatchingCompletedEventName = 'Microsoft.Cache.PatchingCompleted' +RedisScalingCompletedEventName = 'Microsoft.Cache.ScalingCompleted' +ServiceBusActiveMessagesAvailablePeriodicNotificationsEventName = ( + 'Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications' +) +ServiceBusActiveMessagesAvailableWithNoListenersEventName = ( + 'Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners' +) +ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = ( + 'Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications' +) +ServiceBusDeadletterMessagesAvailableWithNoListenersEventName = ( + 'Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListenersEvent' +) +SignalRServiceClientConnectionConnectedEventName = 'Microsoft.SignalRService.ClientConnectionConnected' +SignalRServiceClientConnectionDisconnectedEventName = 'Microsoft.SignalRService.ClientConnectionDisconnected' +StorageAsyncOperationInitiatedEventName = 'Microsoft.Storage.AsyncOperationInitiated' +StorageBlobCreatedEventName = 'Microsoft.Storage.BlobCreated' +StorageBlobDeletedEventName = 'Microsoft.Storage.BlobDeleted' +StorageBlobRenamedEventName = 'Microsoft.Storage.BlobRenamed' +StorageBlobTierChangedEventName = 'Microsoft.Storage.BlobTierChanged' +StorageDirectoryCreatedEventName = 'Microsoft.Storage.DirectoryCreated' +StorageDirectoryDeletedEventName = 'Microsoft.Storage.DirectoryDeleted' +StorageDirectoryRenamedEventName = 'Microsoft.Storage.DirectoryRenamed' +StorageLifecyclePolicyCompletedEventName = 'Microsoft.Storage.LifecyclePolicyCompleted' +SubscriptionDeletedEventName = 'Microsoft.EventGrid.SubscriptionDeletedEvent' +SubscriptionValidationEventName = 'Microsoft.EventGrid.SubscriptionValidationEvent' +WebAppServicePlanUpdatedEventName = 'Microsoft.Web.AppServicePlanUpdated' +WebAppUpdatedEventName = 'Microsoft.Web.AppUpdated' +WebBackupOperationCompletedEventName = 'Microsoft.Web.BackupOperationCompleted' +WebBackupOperationFailedEventName = 'Microsoft.Web.BackupOperationFailed' +WebBackupOperationStartedEventName = 'Microsoft.Web.BackupOperationStarted' +WebRestoreOperationCompletedEventName = 'Microsoft.Web.RestoreOperationCompleted' +WebRestoreOperationFailedEventName = 'Microsoft.Web.RestoreOperationFailed' +WebRestoreOperationStartedEventName = 'Microsoft.Web.RestoreOperationStarted' +WebSlotSwapCompletedEventName = 'Microsoft.Web.SlotSwapCompleted' +WebSlotSwapFailedEventName = 'Microsoft.Web.SlotSwapFailed' +WebSlotSwapStartedEventName = 'Microsoft.Web.SlotSwapStarted' +WebSlotSwapWithPreviewCancelledEventName = 'Microsoft.Web.SlotSwapWithPreviewCancelled' +WebSlotSwapWithPreviewStartedEventName = 'Microsoft.Web.SlotSwapWithPreviewStarted' diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/_event_grid_publisher_client.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/_event_grid_publisher_client.py index 1c7169dcfe59..81d2c9bbaeeb 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/_event_grid_publisher_client.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/_event_grid_publisher_client.py @@ -32,7 +32,7 @@ def __init__( **kwargs # type: Any ): # type: (...) -> None - base_url = '{topicHostname}' + base_url = 'https://{topicHostname}' self._config = EventGridPublisherClientConfiguration(**kwargs) self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/aio/_event_grid_publisher_client.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/aio/_event_grid_publisher_client.py index f14d01caf5a7..48616ed868e2 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/aio/_event_grid_publisher_client.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/aio/_event_grid_publisher_client.py @@ -26,7 +26,7 @@ def __init__( self, **kwargs: Any ) -> None: - base_url = '{topicHostname}' + base_url = 'https://{topicHostname}' self._config = EventGridPublisherClientConfiguration(**kwargs) self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/aio/operations/_event_grid_publisher_client_operations.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/aio/operations/_event_grid_publisher_client_operations.py index 0369afe99666..a2a3ee562e89 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/aio/operations/_event_grid_publisher_client_operations.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/aio/operations/_event_grid_publisher_client_operations.py @@ -185,4 +185,4 @@ async def publish_custom_event_events( if cls: return cls(pipeline_response, None, {}) - publish_custom_event_events.metadata = {'url': ''} # type: ignore + publish_custom_event_events.metadata = {'url': '/api/events'} # type: ignore diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/__init__.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/__init__.py index 624c31af936d..792fd132d949 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/__init__.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/__init__.py @@ -30,6 +30,9 @@ from ._models_py3 import AcsChatThreadPropertiesUpdatedEventData from ._models_py3 import AcsChatThreadPropertiesUpdatedPerUserEventData from ._models_py3 import AcsChatThreadWithUserDeletedEventData + from ._models_py3 import AcsRecordingChunkInfoProperties + from ._models_py3 import AcsRecordingFileStatusUpdatedEventData + from ._models_py3 import AcsRecordingStorageInfoProperties from ._models_py3 import AcsSmsDeliveryAttemptProperties from ._models_py3 import AcsSmsDeliveryReportReceivedEventData from ._models_py3 import AcsSmsEventBaseProperties @@ -137,9 +140,11 @@ from ._models_py3 import ServiceBusDeadletterMessagesAvailableWithNoListenersEventData from ._models_py3 import SignalRServiceClientConnectionConnectedEventData from ._models_py3 import SignalRServiceClientConnectionDisconnectedEventData + from ._models_py3 import StorageAsyncOperationInitiatedEventData from ._models_py3 import StorageBlobCreatedEventData from ._models_py3 import StorageBlobDeletedEventData from ._models_py3 import StorageBlobRenamedEventData + from ._models_py3 import StorageBlobTierChangedEventData from ._models_py3 import StorageDirectoryCreatedEventData from ._models_py3 import StorageDirectoryDeletedEventData from ._models_py3 import StorageDirectoryRenamedEventData @@ -186,6 +191,9 @@ from ._models import AcsChatThreadPropertiesUpdatedEventData # type: ignore from ._models import AcsChatThreadPropertiesUpdatedPerUserEventData # type: ignore from ._models import AcsChatThreadWithUserDeletedEventData # type: ignore + from ._models import AcsRecordingChunkInfoProperties # type: ignore + from ._models import AcsRecordingFileStatusUpdatedEventData # type: ignore + from ._models import AcsRecordingStorageInfoProperties # type: ignore from ._models import AcsSmsDeliveryAttemptProperties # type: ignore from ._models import AcsSmsDeliveryReportReceivedEventData # type: ignore from ._models import AcsSmsEventBaseProperties # type: ignore @@ -293,9 +301,11 @@ from ._models import ServiceBusDeadletterMessagesAvailableWithNoListenersEventData # type: ignore from ._models import SignalRServiceClientConnectionConnectedEventData # type: ignore from ._models import SignalRServiceClientConnectionDisconnectedEventData # type: ignore + from ._models import StorageAsyncOperationInitiatedEventData # type: ignore from ._models import StorageBlobCreatedEventData # type: ignore from ._models import StorageBlobDeletedEventData # type: ignore from ._models import StorageBlobRenamedEventData # type: ignore + from ._models import StorageBlobTierChangedEventData # type: ignore from ._models import StorageDirectoryCreatedEventData # type: ignore from ._models import StorageDirectoryDeletedEventData # type: ignore from ._models import StorageDirectoryRenamedEventData # type: ignore @@ -355,6 +365,9 @@ 'AcsChatThreadPropertiesUpdatedEventData', 'AcsChatThreadPropertiesUpdatedPerUserEventData', 'AcsChatThreadWithUserDeletedEventData', + 'AcsRecordingChunkInfoProperties', + 'AcsRecordingFileStatusUpdatedEventData', + 'AcsRecordingStorageInfoProperties', 'AcsSmsDeliveryAttemptProperties', 'AcsSmsDeliveryReportReceivedEventData', 'AcsSmsEventBaseProperties', @@ -462,9 +475,11 @@ 'ServiceBusDeadletterMessagesAvailableWithNoListenersEventData', 'SignalRServiceClientConnectionConnectedEventData', 'SignalRServiceClientConnectionDisconnectedEventData', + 'StorageAsyncOperationInitiatedEventData', 'StorageBlobCreatedEventData', 'StorageBlobDeletedEventData', 'StorageBlobRenamedEventData', + 'StorageBlobTierChangedEventData', 'StorageDirectoryCreatedEventData', 'StorageDirectoryDeletedEventData', 'StorageDirectoryRenamedEventData', diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models.py index e1e8beff6a23..f71b9174bdba 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models.py @@ -40,11 +40,14 @@ def __init__( class AcsChatEventInThreadBaseProperties(msrest.serialization.Model): """Schema of common properties of all thread-level chat events. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, } @@ -53,6 +56,7 @@ def __init__( **kwargs ): super(AcsChatEventInThreadBaseProperties, self).__init__(**kwargs) + self.transaction_id = kwargs.get('transaction_id', None) self.thread_id = kwargs.get('thread_id', None) @@ -107,7 +111,7 @@ def __init__( class AcsChatMessageDeletedEventData(AcsChatMessageEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageDeleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageDeleted event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -157,6 +161,8 @@ def __init__( class AcsChatMessageEventInThreadBaseProperties(AcsChatEventInThreadBaseProperties): """Schema of common properties of all thread-level chat message events. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param message_id: The chat message id. @@ -175,6 +181,7 @@ class AcsChatMessageEventInThreadBaseProperties(AcsChatEventInThreadBaseProperti """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'message_id': {'key': 'messageId', 'type': 'str'}, 'sender_communication_identifier': {'key': 'senderCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, @@ -198,8 +205,10 @@ def __init__( class AcsChatMessageDeletedInThreadEventData(AcsChatMessageEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageDeletedInThread event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageDeletedInThread event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param message_id: The chat message id. @@ -220,6 +229,7 @@ class AcsChatMessageDeletedInThreadEventData(AcsChatMessageEventInThreadBaseProp """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'message_id': {'key': 'messageId', 'type': 'str'}, 'sender_communication_identifier': {'key': 'senderCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, @@ -239,7 +249,7 @@ def __init__( class AcsChatMessageEditedEventData(AcsChatMessageEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageEdited event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEdited event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -291,8 +301,10 @@ def __init__( class AcsChatMessageEditedInThreadEventData(AcsChatMessageEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageEditedInThread event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEditedInThread event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param message_id: The chat message id. @@ -315,6 +327,7 @@ class AcsChatMessageEditedInThreadEventData(AcsChatMessageEventInThreadBasePrope """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'message_id': {'key': 'messageId', 'type': 'str'}, 'sender_communication_identifier': {'key': 'senderCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, @@ -336,7 +349,7 @@ def __init__( class AcsChatMessageReceivedEventData(AcsChatMessageEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageReceived event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageReceived event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -384,8 +397,10 @@ def __init__( class AcsChatMessageReceivedInThreadEventData(AcsChatMessageEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageReceivedInThread event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageReceivedInThread event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param message_id: The chat message id. @@ -406,6 +421,7 @@ class AcsChatMessageReceivedInThreadEventData(AcsChatMessageEventInThreadBasePro """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'message_id': {'key': 'messageId', 'type': 'str'}, 'sender_communication_identifier': {'key': 'senderCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, @@ -425,8 +441,10 @@ def __init__( class AcsChatParticipantAddedToThreadEventData(AcsChatEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantAddedToThread event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadParticipantAdded event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param time: The time at which the user was added to the thread. @@ -442,6 +460,7 @@ class AcsChatParticipantAddedToThreadEventData(AcsChatEventInThreadBasePropertie """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'time': {'key': 'time', 'type': 'iso-8601'}, 'added_by_communication_identifier': {'key': 'addedByCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, @@ -494,7 +513,7 @@ def __init__( class AcsChatParticipantAddedToThreadWithUserEventData(AcsChatThreadEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantAddedToThreadWithUser event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatParticipantAddedToThreadWithUser event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -539,8 +558,10 @@ def __init__( class AcsChatParticipantRemovedFromThreadEventData(AcsChatEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantRemovedFromThread event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadParticipantRemoved event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param time: The time at which the user was removed to the thread. @@ -557,6 +578,7 @@ class AcsChatParticipantRemovedFromThreadEventData(AcsChatEventInThreadBasePrope """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'time': {'key': 'time', 'type': 'iso-8601'}, 'removed_by_communication_identifier': {'key': 'removedByCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, @@ -576,7 +598,7 @@ def __init__( class AcsChatParticipantRemovedFromThreadWithUserEventData(AcsChatThreadEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -624,6 +646,8 @@ def __init__( class AcsChatThreadEventInThreadBaseProperties(AcsChatEventInThreadBaseProperties): """Schema of common properties of all chat thread events. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param create_time: The original creation time of the thread. @@ -633,6 +657,7 @@ class AcsChatThreadEventInThreadBaseProperties(AcsChatEventInThreadBasePropertie """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'create_time': {'key': 'createTime', 'type': 'iso-8601'}, 'version': {'key': 'version', 'type': 'long'}, @@ -648,8 +673,10 @@ def __init__( class AcsChatThreadCreatedEventData(AcsChatThreadEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadCreatedWithUser event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadCreated event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param create_time: The original creation time of the thread. @@ -668,6 +695,7 @@ class AcsChatThreadCreatedEventData(AcsChatThreadEventInThreadBaseProperties): """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'create_time': {'key': 'createTime', 'type': 'iso-8601'}, 'version': {'key': 'version', 'type': 'long'}, @@ -687,7 +715,7 @@ def __init__( class AcsChatThreadCreatedWithUserEventData(AcsChatThreadEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadCreatedWithUser event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadCreatedWithUser event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -733,8 +761,10 @@ def __init__( class AcsChatThreadDeletedEventData(AcsChatThreadEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadDeleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadDeleted event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param create_time: The original creation time of the thread. @@ -750,6 +780,7 @@ class AcsChatThreadDeletedEventData(AcsChatThreadEventInThreadBaseProperties): """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'create_time': {'key': 'createTime', 'type': 'iso-8601'}, 'version': {'key': 'version', 'type': 'long'}, @@ -791,8 +822,10 @@ def __init__( class AcsChatThreadPropertiesUpdatedEventData(AcsChatThreadEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadPropertiesUpdated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadPropertiesUpdated event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param create_time: The original creation time of the thread. @@ -810,6 +843,7 @@ class AcsChatThreadPropertiesUpdatedEventData(AcsChatThreadEventInThreadBaseProp """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'create_time': {'key': 'createTime', 'type': 'iso-8601'}, 'version': {'key': 'version', 'type': 'long'}, @@ -829,7 +863,7 @@ def __init__( class AcsChatThreadPropertiesUpdatedPerUserEventData(AcsChatThreadEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -874,7 +908,7 @@ def __init__( class AcsChatThreadWithUserDeletedEventData(AcsChatThreadEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadWithUserDeleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadWithUserDeleted event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -914,6 +948,85 @@ def __init__( self.delete_time = kwargs.get('delete_time', None) +class AcsRecordingChunkInfoProperties(msrest.serialization.Model): + """Schema for all properties of Recording Chunk Information. + + :param document_id: The documentId of the recording chunk. + :type document_id: str + :param index: The index of the recording chunk. + :type index: long + :param end_reason: The reason for ending the recording chunk. + :type end_reason: str + """ + + _attribute_map = { + 'document_id': {'key': 'documentId', 'type': 'str'}, + 'index': {'key': 'index', 'type': 'long'}, + 'end_reason': {'key': 'endReason', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AcsRecordingChunkInfoProperties, self).__init__(**kwargs) + self.document_id = kwargs.get('document_id', None) + self.index = kwargs.get('index', None) + self.end_reason = kwargs.get('end_reason', None) + + +class AcsRecordingFileStatusUpdatedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RecordingFileStatusUpdated event. + + :param recording_storage_info: The details of recording storage information. + :type recording_storage_info: + ~event_grid_publisher_client.models.AcsRecordingStorageInfoProperties + :param recording_start_time: The time at which the recording started. + :type recording_start_time: ~datetime.datetime + :param recording_duration_ms: The recording duration in milliseconds. + :type recording_duration_ms: long + :param session_end_reason: The reason for ending recording session. + :type session_end_reason: str + """ + + _attribute_map = { + 'recording_storage_info': {'key': 'recordingStorageInfo', 'type': 'AcsRecordingStorageInfoProperties'}, + 'recording_start_time': {'key': 'recordingStartTime', 'type': 'iso-8601'}, + 'recording_duration_ms': {'key': 'recordingDurationMs', 'type': 'long'}, + 'session_end_reason': {'key': 'sessionEndReason', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(AcsRecordingFileStatusUpdatedEventData, self).__init__(**kwargs) + self.recording_storage_info = kwargs.get('recording_storage_info', None) + self.recording_start_time = kwargs.get('recording_start_time', None) + self.recording_duration_ms = kwargs.get('recording_duration_ms', None) + self.session_end_reason = kwargs.get('session_end_reason', None) + + +class AcsRecordingStorageInfoProperties(msrest.serialization.Model): + """Schema for all properties of Recording Storage Information. + + :param recording_chunks: List of details of recording chunks information. + :type recording_chunks: + list[~event_grid_publisher_client.models.AcsRecordingChunkInfoProperties] + """ + + _attribute_map = { + 'recording_chunks': {'key': 'recordingChunks', 'type': '[AcsRecordingChunkInfoProperties]'}, + } + + def __init__( + self, + **kwargs + ): + super(AcsRecordingStorageInfoProperties, self).__init__(**kwargs) + self.recording_chunks = kwargs.get('recording_chunks', None) + + class AcsSmsDeliveryAttemptProperties(msrest.serialization.Model): """Schema for details of a delivery attempt. @@ -969,7 +1082,7 @@ def __init__( class AcsSmsDeliveryReportReceivedEventData(AcsSmsEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.SMSDeliveryReportReceived event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSDeliveryReportReceived event. :param message_id: The identity of the SMS message. :type message_id: str @@ -986,6 +1099,8 @@ class AcsSmsDeliveryReportReceivedEventData(AcsSmsEventBaseProperties): list[~event_grid_publisher_client.models.AcsSmsDeliveryAttemptProperties] :param received_timestamp: The time at which the SMS delivery report was received. :type received_timestamp: ~datetime.datetime + :param tag: Customer Content. + :type tag: str """ _attribute_map = { @@ -996,6 +1111,7 @@ class AcsSmsDeliveryReportReceivedEventData(AcsSmsEventBaseProperties): 'delivery_status_details': {'key': 'deliveryStatusDetails', 'type': 'str'}, 'delivery_attempts': {'key': 'deliveryAttempts', 'type': '[AcsSmsDeliveryAttemptProperties]'}, 'received_timestamp': {'key': 'receivedTimestamp', 'type': 'iso-8601'}, + 'tag': {'key': 'tag', 'type': 'str'}, } def __init__( @@ -1007,10 +1123,11 @@ def __init__( self.delivery_status_details = kwargs.get('delivery_status_details', None) self.delivery_attempts = kwargs.get('delivery_attempts', None) self.received_timestamp = kwargs.get('received_timestamp', None) + self.tag = kwargs.get('tag', None) class AcsSmsReceivedEventData(AcsSmsEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.SMSReceived event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSReceived event. :param message_id: The identity of the SMS message. :type message_id: str @@ -1042,7 +1159,7 @@ def __init__( class AppConfigurationKeyValueDeletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.AppConfiguration.KeyValueDeleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueDeleted event. :param key: The key used to identify the key-value that was deleted. :type key: str @@ -1073,7 +1190,7 @@ def __init__( class AppConfigurationKeyValueModifiedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.AppConfiguration.KeyValueModified event. + """Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueModified event. :param key: The key used to identify the key-value that was modified. :type key: str @@ -1986,7 +2103,7 @@ def __init__( class EventHubCaptureFileCreatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.EventHub.CaptureFileCreated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.EventHub.CaptureFileCreated event. :param fileurl: The path to the capture file. :type fileurl: str @@ -2180,7 +2297,7 @@ def __init__( class KeyVaultAccessPolicyChangedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an VaultAccessPolicyChanged event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.VaultAccessPolicyChanged event. :param id: The id of the object that triggered this event. :type id: str @@ -2223,7 +2340,7 @@ def __init__( class KeyVaultCertificateExpiredEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an CertificateExpired event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateExpired event. :param id: The id of the object that triggered this event. :type id: str @@ -2266,7 +2383,7 @@ def __init__( class KeyVaultCertificateNearExpiryEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an CertificateNearExpiry event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNearExpiry event. :param id: The id of the object that triggered this event. :type id: str @@ -2309,7 +2426,7 @@ def __init__( class KeyVaultCertificateNewVersionCreatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an CertificateNewVersionCreated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNewVersionCreated event. :param id: The id of the object that triggered this event. :type id: str @@ -2352,7 +2469,7 @@ def __init__( class KeyVaultKeyExpiredEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an KeyExpired event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyExpired event. :param id: The id of the object that triggered this event. :type id: str @@ -2395,7 +2512,7 @@ def __init__( class KeyVaultKeyNearExpiryEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an KeyNearExpiry event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyNearExpiry event. :param id: The id of the object that triggered this event. :type id: str @@ -2438,7 +2555,7 @@ def __init__( class KeyVaultKeyNewVersionCreatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an KeyNewVersionCreated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyNewVersionCreated event. :param id: The id of the object that triggered this event. :type id: str @@ -2481,7 +2598,7 @@ def __init__( class KeyVaultSecretExpiredEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an SecretExpired event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretExpired event. :param id: The id of the object that triggered this event. :type id: str @@ -2524,7 +2641,7 @@ def __init__( class KeyVaultSecretNearExpiryEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an SecretNearExpiry event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNearExpiry event. :param id: The id of the object that triggered this event. :type id: str @@ -2567,7 +2684,7 @@ def __init__( class KeyVaultSecretNewVersionCreatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an SecretNewVersionCreated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNewVersionCreated event. :param id: The id of the object that triggered this event. :type id: str @@ -2610,7 +2727,7 @@ def __init__( class MachineLearningServicesDatasetDriftDetectedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.MachineLearningServices.DatasetDriftDetected event. + """Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.DatasetDriftDetected event. :param data_drift_id: The ID of the data drift monitor that triggered the event. :type data_drift_id: str @@ -2659,7 +2776,7 @@ def __init__( class MachineLearningServicesModelDeployedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.MachineLearningServices.ModelDeployed event. + """Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.ModelDeployed event. :param service_name: The name of the deployed service. :type service_name: str @@ -2695,7 +2812,7 @@ def __init__( class MachineLearningServicesModelRegisteredEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.MachineLearningServices.ModelRegistered event. + """Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.ModelRegistered event. :param model_name: The name of the model that was registered. :type model_name: str @@ -2726,7 +2843,7 @@ def __init__( class MachineLearningServicesRunCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.MachineLearningServices.RunCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.RunCompleted event. :param experiment_id: The ID of the experiment that the run belongs to. :type experiment_id: str @@ -2765,7 +2882,7 @@ def __init__( class MachineLearningServicesRunStatusChangedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.MachineLearningServices.RunStatusChanged event. + """Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.RunStatusChanged event. :param experiment_id: The ID of the experiment that the Machine Learning Run belongs to. :type experiment_id: str @@ -3019,7 +3136,7 @@ def __init__( class MediaJobCanceledEventData(MediaJobStateChangeEventData): - """Job canceled event data. + """Job canceled event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobCanceled event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3056,7 +3173,7 @@ def __init__( class MediaJobCancelingEventData(MediaJobStateChangeEventData): - """Job canceling event data. + """Job canceling event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobCanceling event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3170,7 +3287,7 @@ def __init__( class MediaJobErroredEventData(MediaJobStateChangeEventData): - """Job error state event data. + """Job error state event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobErrored event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3207,7 +3324,7 @@ def __init__( class MediaJobFinishedEventData(MediaJobStateChangeEventData): - """Job finished event data. + """Job finished event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobFinished event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3371,7 +3488,7 @@ def __init__( class MediaJobOutputCanceledEventData(MediaJobOutputStateChangeEventData): - """Job output canceled event data. + """Job output canceled event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobOutputCanceled event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3402,7 +3519,7 @@ def __init__( class MediaJobOutputCancelingEventData(MediaJobOutputStateChangeEventData): - """Job output canceling event data. + """Job output canceling event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobOutputCanceling event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3433,7 +3550,7 @@ def __init__( class MediaJobOutputErroredEventData(MediaJobOutputStateChangeEventData): - """Job output error event data. + """Job output error event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobOutputErrored event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3464,7 +3581,7 @@ def __init__( class MediaJobOutputFinishedEventData(MediaJobOutputStateChangeEventData): - """Job output finished event data. + """Job output finished event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobOutputFinished event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3495,7 +3612,7 @@ def __init__( class MediaJobOutputProcessingEventData(MediaJobOutputStateChangeEventData): - """Job output processing event data. + """Job output processing event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobOutputProcessing event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3526,7 +3643,7 @@ def __init__( class MediaJobOutputProgressEventData(msrest.serialization.Model): - """Job Output Progress Event Data. + """Job Output Progress Event Data. Schema of the Data property of an EventGridEvent for a Microsoft.Media.JobOutputProgress event. :param label: Gets the Job output label. :type label: str @@ -3553,7 +3670,7 @@ def __init__( class MediaJobOutputScheduledEventData(MediaJobOutputStateChangeEventData): - """Job output scheduled event data. + """Job output scheduled event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobOutputScheduled event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3584,7 +3701,7 @@ def __init__( class MediaJobProcessingEventData(MediaJobStateChangeEventData): - """Job processing event data. + """Job processing event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobProcessing event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3617,7 +3734,7 @@ def __init__( class MediaJobScheduledEventData(MediaJobStateChangeEventData): - """Job scheduled event data. + """Job scheduled event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobScheduled event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3650,7 +3767,7 @@ def __init__( class MediaLiveEventConnectionRejectedEventData(msrest.serialization.Model): - """Encoder connection rejected event data. + """Encoder connection rejected event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventConnectionRejected event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3695,7 +3812,7 @@ def __init__( class MediaLiveEventEncoderConnectedEventData(msrest.serialization.Model): - """Encoder connect event data. + """Encoder connect event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventEncoderConnected event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3735,7 +3852,7 @@ def __init__( class MediaLiveEventEncoderDisconnectedEventData(msrest.serialization.Model): - """Encoder disconnected event data. + """Encoder disconnected event data. Schema of the Data property of an EventGridEvent for a Microsoft.Media.LiveEventEncoderDisconnected event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3780,7 +3897,7 @@ def __init__( class MediaLiveEventIncomingDataChunkDroppedEventData(msrest.serialization.Model): - """Ingest fragment dropped event data. + """Ingest fragment dropped event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingDataChunkDropped event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3830,7 +3947,7 @@ def __init__( class MediaLiveEventIncomingStreamReceivedEventData(msrest.serialization.Model): - """Encoder connect event data. + """Encoder connect event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingStreamReceived event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3895,7 +4012,7 @@ def __init__( class MediaLiveEventIncomingStreamsOutOfSyncEventData(msrest.serialization.Model): - """Incoming streams out of sync event data. + """Incoming streams out of sync event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingStreamsOutOfSync event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3949,7 +4066,7 @@ def __init__( class MediaLiveEventIncomingVideoStreamsOutOfSyncEventData(msrest.serialization.Model): - """Incoming video stream out of synch event data. + """Incoming video stream out of synch event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3994,7 +4111,7 @@ def __init__( class MediaLiveEventIngestHeartbeatEventData(msrest.serialization.Model): - """Ingest fragment dropped event data. + """Ingest fragment dropped event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIngestHeartbeat event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4074,7 +4191,7 @@ def __init__( class MediaLiveEventTrackDiscontinuityDetectedEventData(msrest.serialization.Model): - """Ingest track discontinuity detected event data. + """Ingest track discontinuity detected event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventTrackDiscontinuityDetected event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4191,7 +4308,7 @@ def __init__( class RedisExportRDBCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Cache.ExportRDBCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Cache.ExportRDBCompleted event. :param timestamp: The time at which the event occurred. :type timestamp: ~datetime.datetime @@ -4218,7 +4335,7 @@ def __init__( class RedisImportRDBCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Cache.ImportRDBCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Cache.ImportRDBCompleted event. :param timestamp: The time at which the event occurred. :type timestamp: ~datetime.datetime @@ -4245,7 +4362,7 @@ def __init__( class RedisPatchingCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Cache.PatchingCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Cache.PatchingCompleted event. :param timestamp: The time at which the event occurred. :type timestamp: ~datetime.datetime @@ -4272,7 +4389,7 @@ def __init__( class RedisScalingCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Cache.ScalingCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Cache.ScalingCompleted event. :param timestamp: The time at which the event occurred. :type timestamp: ~datetime.datetime @@ -4299,7 +4416,7 @@ def __init__( class ResourceActionCancelData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Resources.ResourceActionCancel event. This is raised when a resource action operation is canceled. + """Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionCancel event. This is raised when a resource action operation is canceled. :param tenant_id: The tenant ID of the resource. :type tenant_id: str @@ -4476,7 +4593,7 @@ def __init__( class ResourceDeleteCancelData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Resources.ResourceDeleteCancel event. This is raised when a resource delete operation is canceled. + """Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteCancel event. This is raised when a resource delete operation is canceled. :param tenant_id: The tenant ID of the resource. :type tenant_id: str @@ -5067,8 +5184,70 @@ def __init__( self.error_message = kwargs.get('error_message', None) +class StorageAsyncOperationInitiatedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.AsyncOperationInitiated event. + + :param api: The name of the API/operation that triggered this event. + :type api: str + :param client_request_id: A request id provided by the client of the storage API operation that + triggered this event. + :type client_request_id: str + :param request_id: The request id generated by the Storage service for the storage API + operation that triggered this event. + :type request_id: str + :param content_type: The content type of the blob. This is the same as what would be returned + in the Content-Type header from the blob. + :type content_type: str + :param content_length: The size of the blob in bytes. This is the same as what would be + returned in the Content-Length header from the blob. + :type content_length: long + :param blob_type: The type of blob. + :type blob_type: str + :param url: The path to the blob. + :type url: str + :param sequencer: An opaque string value representing the logical sequence of events for any + particular blob name. Users can use standard string comparison to understand the relative + sequence of two events on the same blob name. + :type sequencer: str + :param identity: The identity of the requester that triggered this event. + :type identity: str + :param storage_diagnostics: For service use only. Diagnostic data occasionally included by the + Azure Storage service. This property should be ignored by event consumers. + :type storage_diagnostics: object + """ + + _attribute_map = { + 'api': {'key': 'api', 'type': 'str'}, + 'client_request_id': {'key': 'clientRequestId', 'type': 'str'}, + 'request_id': {'key': 'requestId', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'content_length': {'key': 'contentLength', 'type': 'long'}, + 'blob_type': {'key': 'blobType', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'sequencer': {'key': 'sequencer', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'str'}, + 'storage_diagnostics': {'key': 'storageDiagnostics', 'type': 'object'}, + } + + def __init__( + self, + **kwargs + ): + super(StorageAsyncOperationInitiatedEventData, self).__init__(**kwargs) + self.api = kwargs.get('api', None) + self.client_request_id = kwargs.get('client_request_id', None) + self.request_id = kwargs.get('request_id', None) + self.content_type = kwargs.get('content_type', None) + self.content_length = kwargs.get('content_length', None) + self.blob_type = kwargs.get('blob_type', None) + self.url = kwargs.get('url', None) + self.sequencer = kwargs.get('sequencer', None) + self.identity = kwargs.get('identity', None) + self.storage_diagnostics = kwargs.get('storage_diagnostics', None) + + class StorageBlobCreatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobCreated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobCreated event. :param api: The name of the API/operation that triggered this event. :type api: str @@ -5138,7 +5317,7 @@ def __init__( class StorageBlobDeletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobDeleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobDeleted event. :param api: The name of the API/operation that triggered this event. :type api: str @@ -5195,7 +5374,7 @@ def __init__( class StorageBlobRenamedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobRenamed event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobRenamed event. :param api: The name of the API/operation that triggered this event. :type api: str @@ -5246,8 +5425,70 @@ def __init__( self.storage_diagnostics = kwargs.get('storage_diagnostics', None) +class StorageBlobTierChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobTierChanged event. + + :param api: The name of the API/operation that triggered this event. + :type api: str + :param client_request_id: A request id provided by the client of the storage API operation that + triggered this event. + :type client_request_id: str + :param request_id: The request id generated by the Storage service for the storage API + operation that triggered this event. + :type request_id: str + :param content_type: The content type of the blob. This is the same as what would be returned + in the Content-Type header from the blob. + :type content_type: str + :param content_length: The size of the blob in bytes. This is the same as what would be + returned in the Content-Length header from the blob. + :type content_length: long + :param blob_type: The type of blob. + :type blob_type: str + :param url: The path to the blob. + :type url: str + :param sequencer: An opaque string value representing the logical sequence of events for any + particular blob name. Users can use standard string comparison to understand the relative + sequence of two events on the same blob name. + :type sequencer: str + :param identity: The identity of the requester that triggered this event. + :type identity: str + :param storage_diagnostics: For service use only. Diagnostic data occasionally included by the + Azure Storage service. This property should be ignored by event consumers. + :type storage_diagnostics: object + """ + + _attribute_map = { + 'api': {'key': 'api', 'type': 'str'}, + 'client_request_id': {'key': 'clientRequestId', 'type': 'str'}, + 'request_id': {'key': 'requestId', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'content_length': {'key': 'contentLength', 'type': 'long'}, + 'blob_type': {'key': 'blobType', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'sequencer': {'key': 'sequencer', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'str'}, + 'storage_diagnostics': {'key': 'storageDiagnostics', 'type': 'object'}, + } + + def __init__( + self, + **kwargs + ): + super(StorageBlobTierChangedEventData, self).__init__(**kwargs) + self.api = kwargs.get('api', None) + self.client_request_id = kwargs.get('client_request_id', None) + self.request_id = kwargs.get('request_id', None) + self.content_type = kwargs.get('content_type', None) + self.content_length = kwargs.get('content_length', None) + self.blob_type = kwargs.get('blob_type', None) + self.url = kwargs.get('url', None) + self.sequencer = kwargs.get('sequencer', None) + self.identity = kwargs.get('identity', None) + self.storage_diagnostics = kwargs.get('storage_diagnostics', None) + + class StorageDirectoryCreatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.DirectoryCreated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryCreated event. :param api: The name of the API/operation that triggered this event. :type api: str @@ -5299,7 +5540,7 @@ def __init__( class StorageDirectoryDeletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.DirectoryDeleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryDeleted event. :param api: The name of the API/operation that triggered this event. :type api: str @@ -5351,7 +5592,7 @@ def __init__( class StorageDirectoryRenamedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.DirectoryRenamed event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryRenamed event. :param api: The name of the API/operation that triggered this event. :type api: str @@ -5430,7 +5671,7 @@ def __init__( class StorageLifecyclePolicyCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.LifecyclePolicyCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.LifecyclePolicyCompleted event. :param schedule_time: The time the policy task was scheduled. :type schedule_time: str @@ -5467,7 +5708,7 @@ def __init__( class SubscriptionDeletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionDeletedEvent. + """Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionDeletedEvent event. Variables are only populated by the server, and will be ignored when sending a request. @@ -5492,7 +5733,7 @@ def __init__( class SubscriptionValidationEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent. + """Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent event. Variables are only populated by the server, and will be ignored when sending a request. @@ -5548,7 +5789,7 @@ def __init__( class WebAppServicePlanUpdatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanUpdated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.AppServicePlanUpdated event. :param app_service_plan_event_type_detail: Detail of action on the app service plan. :type app_service_plan_event_type_detail: @@ -5634,7 +5875,7 @@ def __init__( class WebAppUpdatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppUpdated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.AppUpdated event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -5680,7 +5921,7 @@ def __init__( class WebBackupOperationCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.BackupOperationCompleted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -5726,7 +5967,7 @@ def __init__( class WebBackupOperationFailedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationFailed event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.BackupOperationFailed event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -5772,7 +6013,7 @@ def __init__( class WebBackupOperationStartedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationStarted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.BackupOperationStarted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -5818,7 +6059,7 @@ def __init__( class WebRestoreOperationCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.RestoreOperationCompleted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -5864,7 +6105,7 @@ def __init__( class WebRestoreOperationFailedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationFailed event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.RestoreOperationFailed event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -5910,7 +6151,7 @@ def __init__( class WebRestoreOperationStartedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationStarted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.RestoreOperationStarted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -5956,7 +6197,7 @@ def __init__( class WebSlotSwapCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapCompleted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6002,7 +6243,7 @@ def __init__( class WebSlotSwapFailedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapFailed event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapFailed event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6048,7 +6289,7 @@ def __init__( class WebSlotSwapStartedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapStarted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapStarted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6094,7 +6335,7 @@ def __init__( class WebSlotSwapWithPreviewCancelledEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewCancelled event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapWithPreviewCancelled event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6140,7 +6381,7 @@ def __init__( class WebSlotSwapWithPreviewStartedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewStarted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapWithPreviewStarted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models_py3.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models_py3.py index 43219b81e591..c635d4bb9c95 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models_py3.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models_py3.py @@ -49,21 +49,26 @@ def __init__( class AcsChatEventInThreadBaseProperties(msrest.serialization.Model): """Schema of common properties of all thread-level chat events. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, } def __init__( self, *, + transaction_id: Optional[str] = None, thread_id: Optional[str] = None, **kwargs ): super(AcsChatEventInThreadBaseProperties, self).__init__(**kwargs) + self.transaction_id = transaction_id self.thread_id = thread_id @@ -128,7 +133,7 @@ def __init__( class AcsChatMessageDeletedEventData(AcsChatMessageEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageDeleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageDeleted event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -189,6 +194,8 @@ def __init__( class AcsChatMessageEventInThreadBaseProperties(AcsChatEventInThreadBaseProperties): """Schema of common properties of all thread-level chat message events. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param message_id: The chat message id. @@ -207,6 +214,7 @@ class AcsChatMessageEventInThreadBaseProperties(AcsChatEventInThreadBaseProperti """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'message_id': {'key': 'messageId', 'type': 'str'}, 'sender_communication_identifier': {'key': 'senderCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, @@ -219,6 +227,7 @@ class AcsChatMessageEventInThreadBaseProperties(AcsChatEventInThreadBaseProperti def __init__( self, *, + transaction_id: Optional[str] = None, thread_id: Optional[str] = None, message_id: Optional[str] = None, sender_communication_identifier: Optional["CommunicationIdentifierModel"] = None, @@ -228,7 +237,7 @@ def __init__( version: Optional[int] = None, **kwargs ): - super(AcsChatMessageEventInThreadBaseProperties, self).__init__(thread_id=thread_id, **kwargs) + super(AcsChatMessageEventInThreadBaseProperties, self).__init__(transaction_id=transaction_id, thread_id=thread_id, **kwargs) self.message_id = message_id self.sender_communication_identifier = sender_communication_identifier self.sender_display_name = sender_display_name @@ -238,8 +247,10 @@ def __init__( class AcsChatMessageDeletedInThreadEventData(AcsChatMessageEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageDeletedInThread event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageDeletedInThread event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param message_id: The chat message id. @@ -260,6 +271,7 @@ class AcsChatMessageDeletedInThreadEventData(AcsChatMessageEventInThreadBaseProp """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'message_id': {'key': 'messageId', 'type': 'str'}, 'sender_communication_identifier': {'key': 'senderCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, @@ -273,6 +285,7 @@ class AcsChatMessageDeletedInThreadEventData(AcsChatMessageEventInThreadBaseProp def __init__( self, *, + transaction_id: Optional[str] = None, thread_id: Optional[str] = None, message_id: Optional[str] = None, sender_communication_identifier: Optional["CommunicationIdentifierModel"] = None, @@ -283,12 +296,12 @@ def __init__( delete_time: Optional[datetime.datetime] = None, **kwargs ): - super(AcsChatMessageDeletedInThreadEventData, self).__init__(thread_id=thread_id, message_id=message_id, sender_communication_identifier=sender_communication_identifier, sender_display_name=sender_display_name, compose_time=compose_time, type=type, version=version, **kwargs) + super(AcsChatMessageDeletedInThreadEventData, self).__init__(transaction_id=transaction_id, thread_id=thread_id, message_id=message_id, sender_communication_identifier=sender_communication_identifier, sender_display_name=sender_display_name, compose_time=compose_time, type=type, version=version, **kwargs) self.delete_time = delete_time class AcsChatMessageEditedEventData(AcsChatMessageEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageEdited event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEdited event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -352,8 +365,10 @@ def __init__( class AcsChatMessageEditedInThreadEventData(AcsChatMessageEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageEditedInThread event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEditedInThread event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param message_id: The chat message id. @@ -376,6 +391,7 @@ class AcsChatMessageEditedInThreadEventData(AcsChatMessageEventInThreadBasePrope """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'message_id': {'key': 'messageId', 'type': 'str'}, 'sender_communication_identifier': {'key': 'senderCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, @@ -390,6 +406,7 @@ class AcsChatMessageEditedInThreadEventData(AcsChatMessageEventInThreadBasePrope def __init__( self, *, + transaction_id: Optional[str] = None, thread_id: Optional[str] = None, message_id: Optional[str] = None, sender_communication_identifier: Optional["CommunicationIdentifierModel"] = None, @@ -401,13 +418,13 @@ def __init__( edit_time: Optional[datetime.datetime] = None, **kwargs ): - super(AcsChatMessageEditedInThreadEventData, self).__init__(thread_id=thread_id, message_id=message_id, sender_communication_identifier=sender_communication_identifier, sender_display_name=sender_display_name, compose_time=compose_time, type=type, version=version, **kwargs) + super(AcsChatMessageEditedInThreadEventData, self).__init__(transaction_id=transaction_id, thread_id=thread_id, message_id=message_id, sender_communication_identifier=sender_communication_identifier, sender_display_name=sender_display_name, compose_time=compose_time, type=type, version=version, **kwargs) self.message_body = message_body self.edit_time = edit_time class AcsChatMessageReceivedEventData(AcsChatMessageEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageReceived event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageReceived event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -466,8 +483,10 @@ def __init__( class AcsChatMessageReceivedInThreadEventData(AcsChatMessageEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatMessageReceivedInThread event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageReceivedInThread event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param message_id: The chat message id. @@ -488,6 +507,7 @@ class AcsChatMessageReceivedInThreadEventData(AcsChatMessageEventInThreadBasePro """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'message_id': {'key': 'messageId', 'type': 'str'}, 'sender_communication_identifier': {'key': 'senderCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, @@ -501,6 +521,7 @@ class AcsChatMessageReceivedInThreadEventData(AcsChatMessageEventInThreadBasePro def __init__( self, *, + transaction_id: Optional[str] = None, thread_id: Optional[str] = None, message_id: Optional[str] = None, sender_communication_identifier: Optional["CommunicationIdentifierModel"] = None, @@ -511,13 +532,15 @@ def __init__( message_body: Optional[str] = None, **kwargs ): - super(AcsChatMessageReceivedInThreadEventData, self).__init__(thread_id=thread_id, message_id=message_id, sender_communication_identifier=sender_communication_identifier, sender_display_name=sender_display_name, compose_time=compose_time, type=type, version=version, **kwargs) + super(AcsChatMessageReceivedInThreadEventData, self).__init__(transaction_id=transaction_id, thread_id=thread_id, message_id=message_id, sender_communication_identifier=sender_communication_identifier, sender_display_name=sender_display_name, compose_time=compose_time, type=type, version=version, **kwargs) self.message_body = message_body class AcsChatParticipantAddedToThreadEventData(AcsChatEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantAddedToThread event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadParticipantAdded event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param time: The time at which the user was added to the thread. @@ -533,6 +556,7 @@ class AcsChatParticipantAddedToThreadEventData(AcsChatEventInThreadBasePropertie """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'time': {'key': 'time', 'type': 'iso-8601'}, 'added_by_communication_identifier': {'key': 'addedByCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, @@ -543,6 +567,7 @@ class AcsChatParticipantAddedToThreadEventData(AcsChatEventInThreadBasePropertie def __init__( self, *, + transaction_id: Optional[str] = None, thread_id: Optional[str] = None, time: Optional[datetime.datetime] = None, added_by_communication_identifier: Optional["CommunicationIdentifierModel"] = None, @@ -550,7 +575,7 @@ def __init__( version: Optional[int] = None, **kwargs ): - super(AcsChatParticipantAddedToThreadEventData, self).__init__(thread_id=thread_id, **kwargs) + super(AcsChatParticipantAddedToThreadEventData, self).__init__(transaction_id=transaction_id, thread_id=thread_id, **kwargs) self.time = time self.added_by_communication_identifier = added_by_communication_identifier self.participant_added = participant_added @@ -597,7 +622,7 @@ def __init__( class AcsChatParticipantAddedToThreadWithUserEventData(AcsChatThreadEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantAddedToThreadWithUser event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatParticipantAddedToThreadWithUser event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -651,8 +676,10 @@ def __init__( class AcsChatParticipantRemovedFromThreadEventData(AcsChatEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantRemovedFromThread event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadParticipantRemoved event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param time: The time at which the user was removed to the thread. @@ -669,6 +696,7 @@ class AcsChatParticipantRemovedFromThreadEventData(AcsChatEventInThreadBasePrope """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'time': {'key': 'time', 'type': 'iso-8601'}, 'removed_by_communication_identifier': {'key': 'removedByCommunicationIdentifier', 'type': 'CommunicationIdentifierModel'}, @@ -679,6 +707,7 @@ class AcsChatParticipantRemovedFromThreadEventData(AcsChatEventInThreadBasePrope def __init__( self, *, + transaction_id: Optional[str] = None, thread_id: Optional[str] = None, time: Optional[datetime.datetime] = None, removed_by_communication_identifier: Optional["CommunicationIdentifierModel"] = None, @@ -686,7 +715,7 @@ def __init__( version: Optional[int] = None, **kwargs ): - super(AcsChatParticipantRemovedFromThreadEventData, self).__init__(thread_id=thread_id, **kwargs) + super(AcsChatParticipantRemovedFromThreadEventData, self).__init__(transaction_id=transaction_id, thread_id=thread_id, **kwargs) self.time = time self.removed_by_communication_identifier = removed_by_communication_identifier self.participant_removed = participant_removed @@ -694,7 +723,7 @@ def __init__( class AcsChatParticipantRemovedFromThreadWithUserEventData(AcsChatThreadEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -751,6 +780,8 @@ def __init__( class AcsChatThreadEventInThreadBaseProperties(AcsChatEventInThreadBaseProperties): """Schema of common properties of all chat thread events. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param create_time: The original creation time of the thread. @@ -760,6 +791,7 @@ class AcsChatThreadEventInThreadBaseProperties(AcsChatEventInThreadBasePropertie """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'create_time': {'key': 'createTime', 'type': 'iso-8601'}, 'version': {'key': 'version', 'type': 'long'}, @@ -768,19 +800,22 @@ class AcsChatThreadEventInThreadBaseProperties(AcsChatEventInThreadBasePropertie def __init__( self, *, + transaction_id: Optional[str] = None, thread_id: Optional[str] = None, create_time: Optional[datetime.datetime] = None, version: Optional[int] = None, **kwargs ): - super(AcsChatThreadEventInThreadBaseProperties, self).__init__(thread_id=thread_id, **kwargs) + super(AcsChatThreadEventInThreadBaseProperties, self).__init__(transaction_id=transaction_id, thread_id=thread_id, **kwargs) self.create_time = create_time self.version = version class AcsChatThreadCreatedEventData(AcsChatThreadEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadCreatedWithUser event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadCreated event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param create_time: The original creation time of the thread. @@ -799,6 +834,7 @@ class AcsChatThreadCreatedEventData(AcsChatThreadEventInThreadBaseProperties): """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'create_time': {'key': 'createTime', 'type': 'iso-8601'}, 'version': {'key': 'version', 'type': 'long'}, @@ -810,6 +846,7 @@ class AcsChatThreadCreatedEventData(AcsChatThreadEventInThreadBaseProperties): def __init__( self, *, + transaction_id: Optional[str] = None, thread_id: Optional[str] = None, create_time: Optional[datetime.datetime] = None, version: Optional[int] = None, @@ -818,14 +855,14 @@ def __init__( participants: Optional[List["AcsChatThreadParticipantProperties"]] = None, **kwargs ): - super(AcsChatThreadCreatedEventData, self).__init__(thread_id=thread_id, create_time=create_time, version=version, **kwargs) + super(AcsChatThreadCreatedEventData, self).__init__(transaction_id=transaction_id, thread_id=thread_id, create_time=create_time, version=version, **kwargs) self.created_by_communication_identifier = created_by_communication_identifier self.properties = properties self.participants = participants class AcsChatThreadCreatedWithUserEventData(AcsChatThreadEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadCreatedWithUser event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadCreatedWithUser event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -880,8 +917,10 @@ def __init__( class AcsChatThreadDeletedEventData(AcsChatThreadEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadDeleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadDeleted event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param create_time: The original creation time of the thread. @@ -897,6 +936,7 @@ class AcsChatThreadDeletedEventData(AcsChatThreadEventInThreadBaseProperties): """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'create_time': {'key': 'createTime', 'type': 'iso-8601'}, 'version': {'key': 'version', 'type': 'long'}, @@ -907,6 +947,7 @@ class AcsChatThreadDeletedEventData(AcsChatThreadEventInThreadBaseProperties): def __init__( self, *, + transaction_id: Optional[str] = None, thread_id: Optional[str] = None, create_time: Optional[datetime.datetime] = None, version: Optional[int] = None, @@ -914,7 +955,7 @@ def __init__( delete_time: Optional[datetime.datetime] = None, **kwargs ): - super(AcsChatThreadDeletedEventData, self).__init__(thread_id=thread_id, create_time=create_time, version=version, **kwargs) + super(AcsChatThreadDeletedEventData, self).__init__(transaction_id=transaction_id, thread_id=thread_id, create_time=create_time, version=version, **kwargs) self.deleted_by_communication_identifier = deleted_by_communication_identifier self.delete_time = delete_time @@ -947,8 +988,10 @@ def __init__( class AcsChatThreadPropertiesUpdatedEventData(AcsChatThreadEventInThreadBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadPropertiesUpdated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadPropertiesUpdated event. + :param transaction_id: The transaction id will be used as co-relation vector. + :type transaction_id: str :param thread_id: The chat thread id. :type thread_id: str :param create_time: The original creation time of the thread. @@ -966,6 +1009,7 @@ class AcsChatThreadPropertiesUpdatedEventData(AcsChatThreadEventInThreadBaseProp """ _attribute_map = { + 'transaction_id': {'key': 'transactionId', 'type': 'str'}, 'thread_id': {'key': 'threadId', 'type': 'str'}, 'create_time': {'key': 'createTime', 'type': 'iso-8601'}, 'version': {'key': 'version', 'type': 'long'}, @@ -977,6 +1021,7 @@ class AcsChatThreadPropertiesUpdatedEventData(AcsChatThreadEventInThreadBaseProp def __init__( self, *, + transaction_id: Optional[str] = None, thread_id: Optional[str] = None, create_time: Optional[datetime.datetime] = None, version: Optional[int] = None, @@ -985,14 +1030,14 @@ def __init__( properties: Optional[Dict[str, object]] = None, **kwargs ): - super(AcsChatThreadPropertiesUpdatedEventData, self).__init__(thread_id=thread_id, create_time=create_time, version=version, **kwargs) + super(AcsChatThreadPropertiesUpdatedEventData, self).__init__(transaction_id=transaction_id, thread_id=thread_id, create_time=create_time, version=version, **kwargs) self.edited_by_communication_identifier = edited_by_communication_identifier self.edit_time = edit_time self.properties = properties class AcsChatThreadPropertiesUpdatedPerUserEventData(AcsChatThreadEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -1046,7 +1091,7 @@ def __init__( class AcsChatThreadWithUserDeletedEventData(AcsChatThreadEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.ChatThreadWithUserDeleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatThreadWithUserDeleted event. :param recipient_communication_identifier: The communication identifier of the target user. :type recipient_communication_identifier: @@ -1094,6 +1139,96 @@ def __init__( self.delete_time = delete_time +class AcsRecordingChunkInfoProperties(msrest.serialization.Model): + """Schema for all properties of Recording Chunk Information. + + :param document_id: The documentId of the recording chunk. + :type document_id: str + :param index: The index of the recording chunk. + :type index: long + :param end_reason: The reason for ending the recording chunk. + :type end_reason: str + """ + + _attribute_map = { + 'document_id': {'key': 'documentId', 'type': 'str'}, + 'index': {'key': 'index', 'type': 'long'}, + 'end_reason': {'key': 'endReason', 'type': 'str'}, + } + + def __init__( + self, + *, + document_id: Optional[str] = None, + index: Optional[int] = None, + end_reason: Optional[str] = None, + **kwargs + ): + super(AcsRecordingChunkInfoProperties, self).__init__(**kwargs) + self.document_id = document_id + self.index = index + self.end_reason = end_reason + + +class AcsRecordingFileStatusUpdatedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.RecordingFileStatusUpdated event. + + :param recording_storage_info: The details of recording storage information. + :type recording_storage_info: + ~event_grid_publisher_client.models.AcsRecordingStorageInfoProperties + :param recording_start_time: The time at which the recording started. + :type recording_start_time: ~datetime.datetime + :param recording_duration_ms: The recording duration in milliseconds. + :type recording_duration_ms: long + :param session_end_reason: The reason for ending recording session. + :type session_end_reason: str + """ + + _attribute_map = { + 'recording_storage_info': {'key': 'recordingStorageInfo', 'type': 'AcsRecordingStorageInfoProperties'}, + 'recording_start_time': {'key': 'recordingStartTime', 'type': 'iso-8601'}, + 'recording_duration_ms': {'key': 'recordingDurationMs', 'type': 'long'}, + 'session_end_reason': {'key': 'sessionEndReason', 'type': 'str'}, + } + + def __init__( + self, + *, + recording_storage_info: Optional["AcsRecordingStorageInfoProperties"] = None, + recording_start_time: Optional[datetime.datetime] = None, + recording_duration_ms: Optional[int] = None, + session_end_reason: Optional[str] = None, + **kwargs + ): + super(AcsRecordingFileStatusUpdatedEventData, self).__init__(**kwargs) + self.recording_storage_info = recording_storage_info + self.recording_start_time = recording_start_time + self.recording_duration_ms = recording_duration_ms + self.session_end_reason = session_end_reason + + +class AcsRecordingStorageInfoProperties(msrest.serialization.Model): + """Schema for all properties of Recording Storage Information. + + :param recording_chunks: List of details of recording chunks information. + :type recording_chunks: + list[~event_grid_publisher_client.models.AcsRecordingChunkInfoProperties] + """ + + _attribute_map = { + 'recording_chunks': {'key': 'recordingChunks', 'type': '[AcsRecordingChunkInfoProperties]'}, + } + + def __init__( + self, + *, + recording_chunks: Optional[List["AcsRecordingChunkInfoProperties"]] = None, + **kwargs + ): + super(AcsRecordingStorageInfoProperties, self).__init__(**kwargs) + self.recording_chunks = recording_chunks + + class AcsSmsDeliveryAttemptProperties(msrest.serialization.Model): """Schema for details of a delivery attempt. @@ -1157,7 +1292,7 @@ def __init__( class AcsSmsDeliveryReportReceivedEventData(AcsSmsEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.SMSDeliveryReportReceived event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSDeliveryReportReceived event. :param message_id: The identity of the SMS message. :type message_id: str @@ -1174,6 +1309,8 @@ class AcsSmsDeliveryReportReceivedEventData(AcsSmsEventBaseProperties): list[~event_grid_publisher_client.models.AcsSmsDeliveryAttemptProperties] :param received_timestamp: The time at which the SMS delivery report was received. :type received_timestamp: ~datetime.datetime + :param tag: Customer Content. + :type tag: str """ _attribute_map = { @@ -1184,6 +1321,7 @@ class AcsSmsDeliveryReportReceivedEventData(AcsSmsEventBaseProperties): 'delivery_status_details': {'key': 'deliveryStatusDetails', 'type': 'str'}, 'delivery_attempts': {'key': 'deliveryAttempts', 'type': '[AcsSmsDeliveryAttemptProperties]'}, 'received_timestamp': {'key': 'receivedTimestamp', 'type': 'iso-8601'}, + 'tag': {'key': 'tag', 'type': 'str'}, } def __init__( @@ -1196,6 +1334,7 @@ def __init__( delivery_status_details: Optional[str] = None, delivery_attempts: Optional[List["AcsSmsDeliveryAttemptProperties"]] = None, received_timestamp: Optional[datetime.datetime] = None, + tag: Optional[str] = None, **kwargs ): super(AcsSmsDeliveryReportReceivedEventData, self).__init__(message_id=message_id, from_property=from_property, to=to, **kwargs) @@ -1203,10 +1342,11 @@ def __init__( self.delivery_status_details = delivery_status_details self.delivery_attempts = delivery_attempts self.received_timestamp = received_timestamp + self.tag = tag class AcsSmsReceivedEventData(AcsSmsEventBaseProperties): - """Schema of the Data property of an EventGridEvent for an Microsoft.Communication.SMSReceived event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSReceived event. :param message_id: The identity of the SMS message. :type message_id: str @@ -1244,7 +1384,7 @@ def __init__( class AppConfigurationKeyValueDeletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.AppConfiguration.KeyValueDeleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueDeleted event. :param key: The key used to identify the key-value that was deleted. :type key: str @@ -1280,7 +1420,7 @@ def __init__( class AppConfigurationKeyValueModifiedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.AppConfiguration.KeyValueModified event. + """Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueModified event. :param key: The key used to identify the key-value that was modified. :type key: str @@ -2335,7 +2475,7 @@ def __init__( class EventHubCaptureFileCreatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.EventHub.CaptureFileCreated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.EventHub.CaptureFileCreated event. :param fileurl: The path to the capture file. :type fileurl: str @@ -2561,7 +2701,7 @@ def __init__( class KeyVaultAccessPolicyChangedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an VaultAccessPolicyChanged event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.VaultAccessPolicyChanged event. :param id: The id of the object that triggered this event. :type id: str @@ -2612,7 +2752,7 @@ def __init__( class KeyVaultCertificateExpiredEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an CertificateExpired event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateExpired event. :param id: The id of the object that triggered this event. :type id: str @@ -2663,7 +2803,7 @@ def __init__( class KeyVaultCertificateNearExpiryEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an CertificateNearExpiry event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNearExpiry event. :param id: The id of the object that triggered this event. :type id: str @@ -2714,7 +2854,7 @@ def __init__( class KeyVaultCertificateNewVersionCreatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an CertificateNewVersionCreated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.CertificateNewVersionCreated event. :param id: The id of the object that triggered this event. :type id: str @@ -2765,7 +2905,7 @@ def __init__( class KeyVaultKeyExpiredEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an KeyExpired event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyExpired event. :param id: The id of the object that triggered this event. :type id: str @@ -2816,7 +2956,7 @@ def __init__( class KeyVaultKeyNearExpiryEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an KeyNearExpiry event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyNearExpiry event. :param id: The id of the object that triggered this event. :type id: str @@ -2867,7 +3007,7 @@ def __init__( class KeyVaultKeyNewVersionCreatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an KeyNewVersionCreated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.KeyNewVersionCreated event. :param id: The id of the object that triggered this event. :type id: str @@ -2918,7 +3058,7 @@ def __init__( class KeyVaultSecretExpiredEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an SecretExpired event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretExpired event. :param id: The id of the object that triggered this event. :type id: str @@ -2969,7 +3109,7 @@ def __init__( class KeyVaultSecretNearExpiryEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an SecretNearExpiry event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNearExpiry event. :param id: The id of the object that triggered this event. :type id: str @@ -3020,7 +3160,7 @@ def __init__( class KeyVaultSecretNewVersionCreatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an SecretNewVersionCreated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.KeyVault.SecretNewVersionCreated event. :param id: The id of the object that triggered this event. :type id: str @@ -3071,7 +3211,7 @@ def __init__( class MachineLearningServicesDatasetDriftDetectedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.MachineLearningServices.DatasetDriftDetected event. + """Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.DatasetDriftDetected event. :param data_drift_id: The ID of the data drift monitor that triggered the event. :type data_drift_id: str @@ -3129,7 +3269,7 @@ def __init__( class MachineLearningServicesModelDeployedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.MachineLearningServices.ModelDeployed event. + """Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.ModelDeployed event. :param service_name: The name of the deployed service. :type service_name: str @@ -3171,7 +3311,7 @@ def __init__( class MachineLearningServicesModelRegisteredEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.MachineLearningServices.ModelRegistered event. + """Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.ModelRegistered event. :param model_name: The name of the model that was registered. :type model_name: str @@ -3207,7 +3347,7 @@ def __init__( class MachineLearningServicesRunCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.MachineLearningServices.RunCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.RunCompleted event. :param experiment_id: The ID of the experiment that the run belongs to. :type experiment_id: str @@ -3253,7 +3393,7 @@ def __init__( class MachineLearningServicesRunStatusChangedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.MachineLearningServices.RunStatusChanged event. + """Schema of the Data property of an EventGridEvent for a Microsoft.MachineLearningServices.RunStatusChanged event. :param experiment_id: The ID of the experiment that the Machine Learning Run belongs to. :type experiment_id: str @@ -3544,7 +3684,7 @@ def __init__( class MediaJobCanceledEventData(MediaJobStateChangeEventData): - """Job canceled event data. + """Job canceled event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobCanceled event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3584,7 +3724,7 @@ def __init__( class MediaJobCancelingEventData(MediaJobStateChangeEventData): - """Job canceling event data. + """Job canceling event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobCanceling event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3700,7 +3840,7 @@ def __init__( class MediaJobErroredEventData(MediaJobStateChangeEventData): - """Job error state event data. + """Job error state event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobErrored event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3740,7 +3880,7 @@ def __init__( class MediaJobFinishedEventData(MediaJobStateChangeEventData): - """Job finished event data. + """Job finished event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobFinished event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3921,7 +4061,7 @@ def __init__( class MediaJobOutputCanceledEventData(MediaJobOutputStateChangeEventData): - """Job output canceled event data. + """Job output canceled event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobOutputCanceled event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3955,7 +4095,7 @@ def __init__( class MediaJobOutputCancelingEventData(MediaJobOutputStateChangeEventData): - """Job output canceling event data. + """Job output canceling event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobOutputCanceling event. Variables are only populated by the server, and will be ignored when sending a request. @@ -3989,7 +4129,7 @@ def __init__( class MediaJobOutputErroredEventData(MediaJobOutputStateChangeEventData): - """Job output error event data. + """Job output error event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobOutputErrored event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4023,7 +4163,7 @@ def __init__( class MediaJobOutputFinishedEventData(MediaJobOutputStateChangeEventData): - """Job output finished event data. + """Job output finished event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobOutputFinished event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4057,7 +4197,7 @@ def __init__( class MediaJobOutputProcessingEventData(MediaJobOutputStateChangeEventData): - """Job output processing event data. + """Job output processing event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobOutputProcessing event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4091,7 +4231,7 @@ def __init__( class MediaJobOutputProgressEventData(msrest.serialization.Model): - """Job Output Progress Event Data. + """Job Output Progress Event Data. Schema of the Data property of an EventGridEvent for a Microsoft.Media.JobOutputProgress event. :param label: Gets the Job output label. :type label: str @@ -4122,7 +4262,7 @@ def __init__( class MediaJobOutputScheduledEventData(MediaJobOutputStateChangeEventData): - """Job output scheduled event data. + """Job output scheduled event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobOutputScheduled event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4156,7 +4296,7 @@ def __init__( class MediaJobProcessingEventData(MediaJobStateChangeEventData): - """Job processing event data. + """Job processing event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobProcessing event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4191,7 +4331,7 @@ def __init__( class MediaJobScheduledEventData(MediaJobStateChangeEventData): - """Job scheduled event data. + """Job scheduled event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.JobScheduled event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4226,7 +4366,7 @@ def __init__( class MediaLiveEventConnectionRejectedEventData(msrest.serialization.Model): - """Encoder connection rejected event data. + """Encoder connection rejected event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventConnectionRejected event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4271,7 +4411,7 @@ def __init__( class MediaLiveEventEncoderConnectedEventData(msrest.serialization.Model): - """Encoder connect event data. + """Encoder connect event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventEncoderConnected event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4311,7 +4451,7 @@ def __init__( class MediaLiveEventEncoderDisconnectedEventData(msrest.serialization.Model): - """Encoder disconnected event data. + """Encoder disconnected event data. Schema of the Data property of an EventGridEvent for a Microsoft.Media.LiveEventEncoderDisconnected event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4356,7 +4496,7 @@ def __init__( class MediaLiveEventIncomingDataChunkDroppedEventData(msrest.serialization.Model): - """Ingest fragment dropped event data. + """Ingest fragment dropped event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingDataChunkDropped event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4406,7 +4546,7 @@ def __init__( class MediaLiveEventIncomingStreamReceivedEventData(msrest.serialization.Model): - """Encoder connect event data. + """Encoder connect event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingStreamReceived event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4471,7 +4611,7 @@ def __init__( class MediaLiveEventIncomingStreamsOutOfSyncEventData(msrest.serialization.Model): - """Incoming streams out of sync event data. + """Incoming streams out of sync event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingStreamsOutOfSync event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4525,7 +4665,7 @@ def __init__( class MediaLiveEventIncomingVideoStreamsOutOfSyncEventData(msrest.serialization.Model): - """Incoming video stream out of synch event data. + """Incoming video stream out of synch event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4570,7 +4710,7 @@ def __init__( class MediaLiveEventIngestHeartbeatEventData(msrest.serialization.Model): - """Ingest fragment dropped event data. + """Ingest fragment dropped event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventIngestHeartbeat event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4650,7 +4790,7 @@ def __init__( class MediaLiveEventTrackDiscontinuityDetectedEventData(msrest.serialization.Model): - """Ingest track discontinuity detected event data. + """Ingest track discontinuity detected event data. Schema of the data property of an EventGridEvent for a Microsoft.Media.LiveEventTrackDiscontinuityDetected event. Variables are only populated by the server, and will be ignored when sending a request. @@ -4773,7 +4913,7 @@ def __init__( class RedisExportRDBCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Cache.ExportRDBCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Cache.ExportRDBCompleted event. :param timestamp: The time at which the event occurred. :type timestamp: ~datetime.datetime @@ -4804,7 +4944,7 @@ def __init__( class RedisImportRDBCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Cache.ImportRDBCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Cache.ImportRDBCompleted event. :param timestamp: The time at which the event occurred. :type timestamp: ~datetime.datetime @@ -4835,7 +4975,7 @@ def __init__( class RedisPatchingCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Cache.PatchingCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Cache.PatchingCompleted event. :param timestamp: The time at which the event occurred. :type timestamp: ~datetime.datetime @@ -4866,7 +5006,7 @@ def __init__( class RedisScalingCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Cache.ScalingCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Cache.ScalingCompleted event. :param timestamp: The time at which the event occurred. :type timestamp: ~datetime.datetime @@ -4897,7 +5037,7 @@ def __init__( class ResourceActionCancelData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Resources.ResourceActionCancel event. This is raised when a resource action operation is canceled. + """Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceActionCancel event. This is raised when a resource action operation is canceled. :param tenant_id: The tenant ID of the resource. :type tenant_id: str @@ -5110,7 +5250,7 @@ def __init__( class ResourceDeleteCancelData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Resources.ResourceDeleteCancel event. This is raised when a resource delete operation is canceled. + """Schema of the Data property of an EventGridEvent for a Microsoft.Resources.ResourceDeleteCancel event. This is raised when a resource delete operation is canceled. :param tenant_id: The tenant ID of the resource. :type tenant_id: str @@ -5812,8 +5952,81 @@ def __init__( self.error_message = error_message +class StorageAsyncOperationInitiatedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.AsyncOperationInitiated event. + + :param api: The name of the API/operation that triggered this event. + :type api: str + :param client_request_id: A request id provided by the client of the storage API operation that + triggered this event. + :type client_request_id: str + :param request_id: The request id generated by the Storage service for the storage API + operation that triggered this event. + :type request_id: str + :param content_type: The content type of the blob. This is the same as what would be returned + in the Content-Type header from the blob. + :type content_type: str + :param content_length: The size of the blob in bytes. This is the same as what would be + returned in the Content-Length header from the blob. + :type content_length: long + :param blob_type: The type of blob. + :type blob_type: str + :param url: The path to the blob. + :type url: str + :param sequencer: An opaque string value representing the logical sequence of events for any + particular blob name. Users can use standard string comparison to understand the relative + sequence of two events on the same blob name. + :type sequencer: str + :param identity: The identity of the requester that triggered this event. + :type identity: str + :param storage_diagnostics: For service use only. Diagnostic data occasionally included by the + Azure Storage service. This property should be ignored by event consumers. + :type storage_diagnostics: object + """ + + _attribute_map = { + 'api': {'key': 'api', 'type': 'str'}, + 'client_request_id': {'key': 'clientRequestId', 'type': 'str'}, + 'request_id': {'key': 'requestId', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'content_length': {'key': 'contentLength', 'type': 'long'}, + 'blob_type': {'key': 'blobType', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'sequencer': {'key': 'sequencer', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'str'}, + 'storage_diagnostics': {'key': 'storageDiagnostics', 'type': 'object'}, + } + + def __init__( + self, + *, + api: Optional[str] = None, + client_request_id: Optional[str] = None, + request_id: Optional[str] = None, + content_type: Optional[str] = None, + content_length: Optional[int] = None, + blob_type: Optional[str] = None, + url: Optional[str] = None, + sequencer: Optional[str] = None, + identity: Optional[str] = None, + storage_diagnostics: Optional[object] = None, + **kwargs + ): + super(StorageAsyncOperationInitiatedEventData, self).__init__(**kwargs) + self.api = api + self.client_request_id = client_request_id + self.request_id = request_id + self.content_type = content_type + self.content_length = content_length + self.blob_type = blob_type + self.url = url + self.sequencer = sequencer + self.identity = identity + self.storage_diagnostics = storage_diagnostics + + class StorageBlobCreatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobCreated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobCreated event. :param api: The name of the API/operation that triggered this event. :type api: str @@ -5896,7 +6109,7 @@ def __init__( class StorageBlobDeletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobDeleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobDeleted event. :param api: The name of the API/operation that triggered this event. :type api: str @@ -5963,7 +6176,7 @@ def __init__( class StorageBlobRenamedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobRenamed event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobRenamed event. :param api: The name of the API/operation that triggered this event. :type api: str @@ -6023,8 +6236,81 @@ def __init__( self.storage_diagnostics = storage_diagnostics +class StorageBlobTierChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobTierChanged event. + + :param api: The name of the API/operation that triggered this event. + :type api: str + :param client_request_id: A request id provided by the client of the storage API operation that + triggered this event. + :type client_request_id: str + :param request_id: The request id generated by the Storage service for the storage API + operation that triggered this event. + :type request_id: str + :param content_type: The content type of the blob. This is the same as what would be returned + in the Content-Type header from the blob. + :type content_type: str + :param content_length: The size of the blob in bytes. This is the same as what would be + returned in the Content-Length header from the blob. + :type content_length: long + :param blob_type: The type of blob. + :type blob_type: str + :param url: The path to the blob. + :type url: str + :param sequencer: An opaque string value representing the logical sequence of events for any + particular blob name. Users can use standard string comparison to understand the relative + sequence of two events on the same blob name. + :type sequencer: str + :param identity: The identity of the requester that triggered this event. + :type identity: str + :param storage_diagnostics: For service use only. Diagnostic data occasionally included by the + Azure Storage service. This property should be ignored by event consumers. + :type storage_diagnostics: object + """ + + _attribute_map = { + 'api': {'key': 'api', 'type': 'str'}, + 'client_request_id': {'key': 'clientRequestId', 'type': 'str'}, + 'request_id': {'key': 'requestId', 'type': 'str'}, + 'content_type': {'key': 'contentType', 'type': 'str'}, + 'content_length': {'key': 'contentLength', 'type': 'long'}, + 'blob_type': {'key': 'blobType', 'type': 'str'}, + 'url': {'key': 'url', 'type': 'str'}, + 'sequencer': {'key': 'sequencer', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'str'}, + 'storage_diagnostics': {'key': 'storageDiagnostics', 'type': 'object'}, + } + + def __init__( + self, + *, + api: Optional[str] = None, + client_request_id: Optional[str] = None, + request_id: Optional[str] = None, + content_type: Optional[str] = None, + content_length: Optional[int] = None, + blob_type: Optional[str] = None, + url: Optional[str] = None, + sequencer: Optional[str] = None, + identity: Optional[str] = None, + storage_diagnostics: Optional[object] = None, + **kwargs + ): + super(StorageBlobTierChangedEventData, self).__init__(**kwargs) + self.api = api + self.client_request_id = client_request_id + self.request_id = request_id + self.content_type = content_type + self.content_length = content_length + self.blob_type = blob_type + self.url = url + self.sequencer = sequencer + self.identity = identity + self.storage_diagnostics = storage_diagnostics + + class StorageDirectoryCreatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.DirectoryCreated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryCreated event. :param api: The name of the API/operation that triggered this event. :type api: str @@ -6085,7 +6371,7 @@ def __init__( class StorageDirectoryDeletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.DirectoryDeleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryDeleted event. :param api: The name of the API/operation that triggered this event. :type api: str @@ -6146,7 +6432,7 @@ def __init__( class StorageDirectoryRenamedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.DirectoryRenamed event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.DirectoryRenamed event. :param api: The name of the API/operation that triggered this event. :type api: str @@ -6238,7 +6524,7 @@ def __init__( class StorageLifecyclePolicyCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.LifecyclePolicyCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.LifecyclePolicyCompleted event. :param schedule_time: The time the policy task was scheduled. :type schedule_time: str @@ -6280,7 +6566,7 @@ def __init__( class SubscriptionDeletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionDeletedEvent. + """Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionDeletedEvent event. Variables are only populated by the server, and will be ignored when sending a request. @@ -6305,7 +6591,7 @@ def __init__( class SubscriptionValidationEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent. + """Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent event. Variables are only populated by the server, and will be ignored when sending a request. @@ -6363,7 +6649,7 @@ def __init__( class WebAppServicePlanUpdatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanUpdated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.AppServicePlanUpdated event. :param app_service_plan_event_type_detail: Detail of action on the app service plan. :type app_service_plan_event_type_detail: @@ -6464,7 +6750,7 @@ def __init__( class WebAppUpdatedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppUpdated event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.AppUpdated event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6518,7 +6804,7 @@ def __init__( class WebBackupOperationCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.BackupOperationCompleted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6572,7 +6858,7 @@ def __init__( class WebBackupOperationFailedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationFailed event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.BackupOperationFailed event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6626,7 +6912,7 @@ def __init__( class WebBackupOperationStartedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationStarted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.BackupOperationStarted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6680,7 +6966,7 @@ def __init__( class WebRestoreOperationCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.RestoreOperationCompleted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6734,7 +7020,7 @@ def __init__( class WebRestoreOperationFailedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationFailed event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.RestoreOperationFailed event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6788,7 +7074,7 @@ def __init__( class WebRestoreOperationStartedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationStarted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.RestoreOperationStarted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6842,7 +7128,7 @@ def __init__( class WebSlotSwapCompletedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapCompleted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapCompleted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6896,7 +7182,7 @@ def __init__( class WebSlotSwapFailedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapFailed event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapFailed event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -6950,7 +7236,7 @@ def __init__( class WebSlotSwapStartedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapStarted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapStarted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -7004,7 +7290,7 @@ def __init__( class WebSlotSwapWithPreviewCancelledEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewCancelled event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapWithPreviewCancelled event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail @@ -7058,7 +7344,7 @@ def __init__( class WebSlotSwapWithPreviewStartedEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewStarted event. + """Schema of the Data property of an EventGridEvent for a Microsoft.Web.SlotSwapWithPreviewStarted event. :param app_event_type_detail: Detail of action on the app. :type app_event_type_detail: ~event_grid_publisher_client.models.AppEventTypeDetail diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/operations/_event_grid_publisher_client_operations.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/operations/_event_grid_publisher_client_operations.py index fd34788dd48c..24de6628e62f 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/operations/_event_grid_publisher_client_operations.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/operations/_event_grid_publisher_client_operations.py @@ -192,4 +192,4 @@ def publish_custom_event_events( if cls: return cls(pipeline_response, None, {}) - publish_custom_event_events.metadata = {'url': ''} # type: ignore + publish_custom_event_events.metadata = {'url': '/api/events'} # type: ignore diff --git a/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py b/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py index b4b1c5bed6fc..1b6d5991d72b 100644 --- a/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py +++ b/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py @@ -1,5 +1,7 @@ import inspect import re +import warnings +import sys from azure.eventgrid._generated import models def event_tuples(system_events): @@ -10,6 +12,8 @@ def event_tuples(system_events): event_name = re.findall("Microsoft.[a-zA-Z]+.[a-zA-Z]+", event[1].__doc__)[0] except: print(event[0]) + warnings.warn("Unable to generate the event mapping for {}", event[0]) + sys.exit(1) tup_list.append((class_name, event_name)) return tup_list From 2e1597c60ac715e40bd1f90a14f6fa749261e7f4 Mon Sep 17 00:00:00 2001 From: Rakshith Bhyravabhotla Date: Tue, 4 May 2021 15:35:35 -0700 Subject: [PATCH 3/7] Update sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py --- sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py b/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py index 1b6d5991d72b..7f30a8aa686e 100644 --- a/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py +++ b/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py @@ -11,7 +11,6 @@ def event_tuples(system_events): try: event_name = re.findall("Microsoft.[a-zA-Z]+.[a-zA-Z]+", event[1].__doc__)[0] except: - print(event[0]) warnings.warn("Unable to generate the event mapping for {}", event[0]) sys.exit(1) tup_list.append((class_name, event_name)) From 858f378ba4ac1221172edfe17543787cb239bfff Mon Sep 17 00:00:00 2001 From: Rakshith Bhyravabhotla Date: Wed, 5 May 2021 09:48:11 -0700 Subject: [PATCH 4/7] changes --- .../azure/eventgrid/_event_mappings.py | 378 ++++++++++++------ .../azure-eventgrid/swagger/_event_map.py | 164 ++++++++ .../swagger/postprocess_eventnames.py | 32 +- 3 files changed, 453 insertions(+), 121 deletions(-) create mode 100644 sdk/eventgrid/azure-eventgrid/swagger/_event_map.py diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py index 4e861b370f9c..e2d8431a2deb 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py @@ -4,6 +4,7 @@ # -------------------------------------------------------------------------------------------- from enum import Enum +# pylint: disable=line-too-long class SystemEventNames(str, Enum): """ @@ -11,122 +12,261 @@ class SystemEventNames(str, Enum): Azure Event Grid. To check the list of recognizable system topics, visit https://docs.microsoft.com/azure/event-grid/system-topics. """ -AcsChatMessageDeletedEventName = 'Microsoft.Communication.ChatMessageDeleted' -AcsChatMessageDeletedInThreadEventName = 'Microsoft.Communication.ChatMessageDeletedInThread' -AcsChatMessageEditedEventName = 'Microsoft.Communication.ChatMessageEdited' -AcsChatMessageEditedInThreadEventName = 'Microsoft.Communication.ChatMessageEditedInThread' -AcsChatMessageReceivedEventName = 'Microsoft.Communication.ChatMessageReceived' -AcsChatMessageReceivedInThreadEventName = 'Microsoft.Communication.ChatMessageReceivedInThread' -AcsChatParticipantAddedToThreadEventName = 'Microsoft.Communication.ChatThreadParticipantAdded' -AcsChatParticipantAddedToThreadWithUserEventName = 'Microsoft.Communication.ChatParticipantAddedToThreadWithUser' -AcsChatParticipantRemovedFromThreadEventName = 'Microsoft.Communication.ChatThreadParticipantRemoved' -AcsChatParticipantRemovedFromThreadWithUserEventName = ( - 'Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser' -) -AcsChatThreadCreatedEventName = 'Microsoft.Communication.ChatThreadCreated' -AcsChatThreadCreatedWithUserEventName = 'Microsoft.Communication.ChatThreadCreatedWithUser' -AcsChatThreadDeletedEventName = 'Microsoft.Communication.ChatThreadDeleted' -AcsChatThreadPropertiesUpdatedEventName = 'Microsoft.Communication.ChatThreadPropertiesUpdated' -AcsChatThreadPropertiesUpdatedPerUserEventName = 'Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser' -AcsChatThreadWithUserDeletedEventName = 'Microsoft.Communication.ChatThreadWithUserDeleted' -AcsRecordingFileStatusUpdatedEventName = 'Microsoft.Communication.RecordingFileStatusUpdated' -AcsSmsDeliveryReportReceivedEventName = 'Microsoft.Communication.SMSDeliveryReportReceived' -AcsSmsReceivedEventName = 'Microsoft.Communication.SMSReceived' -AppConfigurationKeyValueDeletedEventName = 'Microsoft.AppConfiguration.KeyValueDeleted' -AppConfigurationKeyValueModifiedEventName = 'Microsoft.AppConfiguration.KeyValueModified' -ContainerRegistryArtifactEventName = 'Microsoft.AppConfiguration.KeyValueModified' -ContainerRegistryChartDeletedEventName = 'Microsoft.ContainerRegistry.ChartDeleted' -ContainerRegistryChartPushedEventName = 'Microsoft.ContainerRegistry.ChartPushed' -ContainerRegistryEventName = 'Microsoft.ContainerRegistry.ChartPushed' -ContainerRegistryImageDeletedEventName = 'Microsoft.ContainerRegistry.ImageDeleted' -ContainerRegistryImagePushedEventName = 'Microsoft.ContainerRegistry.ImagePushed' -EventHubCaptureFileCreatedEventName = 'Microsoft.EventHub.CaptureFileCreated' -IotHubDeviceConnectedEventName = 'Microsoft.Devices.DeviceConnected' -IotHubDeviceCreatedEventName = 'Microsoft.Devices.DeviceCreated' -IotHubDeviceDeletedEventName = 'Microsoft.Devices.DeviceDeleted' -IotHubDeviceDisconnectedEventName = 'Microsoft.Devices.DeviceDisconnected' -IotHubDeviceTelemetryEventName = 'Microsoft.Devices.DeviceTelemetry' -KeyVaultAccessPolicyChangedEventName = 'Microsoft.KeyVault.VaultAccessPolicyChanged' -KeyVaultCertificateExpiredEventName = 'Microsoft.KeyVault.CertificateExpired' -KeyVaultCertificateNearExpiryEventName = 'Microsoft.KeyVault.CertificateNearExpiry' -KeyVaultCertificateNewVersionCreatedEventName = 'Microsoft.KeyVault.CertificateNewVersionCreated' -KeyVaultKeyExpiredEventName = 'Microsoft.KeyVault.KeyExpired' -KeyVaultKeyNearExpiryEventName = 'Microsoft.KeyVault.KeyNearExpiry' -KeyVaultKeyNewVersionCreatedEventName = 'Microsoft.KeyVault.KeyNewVersionCreated' -KeyVaultSecretExpiredEventName = 'Microsoft.KeyVault.SecretExpired' -KeyVaultSecretNearExpiryEventName = 'Microsoft.KeyVault.SecretNearExpiry' -KeyVaultSecretNewVersionCreatedEventName = 'Microsoft.KeyVault.SecretNewVersionCreated' -MachineLearningServicesDatasetDriftDetectedEventName = 'Microsoft.MachineLearningServices.DatasetDriftDetected' -MachineLearningServicesModelDeployedEventName = 'Microsoft.MachineLearningServices.ModelDeployed' -MachineLearningServicesModelRegisteredEventName = 'Microsoft.MachineLearningServices.ModelRegistered' -MachineLearningServicesRunCompletedEventName = 'Microsoft.MachineLearningServices.RunCompleted' -MachineLearningServicesRunStatusChangedEventName = 'Microsoft.MachineLearningServices.RunStatusChanged' -MapsGeofenceEnteredEventName = 'Microsoft.Maps.GeofenceEntered' -MapsGeofenceExitedEventName = 'Microsoft.Maps.GeofenceExited' -MapsGeofenceResultEventName = 'Microsoft.Maps.GeofenceResult' -MediaJobCanceledEventName = 'Microsoft.Media.JobCanceled' -MediaJobCancelingEventName = 'Microsoft.Media.JobCanceling' -MediaJobErroredEventName = 'Microsoft.Media.JobErrored' -MediaJobFinishedEventName = 'Microsoft.Media.JobFinished' -MediaJobOutputCanceledEventName = 'Microsoft.Media.JobOutputCanceled' -MediaJobOutputCancelingEventName = 'Microsoft.Media.JobOutputCanceling' -MediaJobOutputErroredEventName = 'Microsoft.Media.JobOutputErrored' -MediaJobOutputFinishedEventName = 'Microsoft.Media.JobOutputFinished' -MediaJobOutputProcessingEventName = 'Microsoft.Media.JobOutputProcessing' -MediaJobOutputProgressEventName = 'Microsoft.Media.JobOutputProgress' -MediaJobOutputScheduledEventName = 'Microsoft.Media.JobOutputScheduled' -MediaJobOutputStateChangeEventName = 'Microsoft.Media.JobOutputStateChange' -MediaJobProcessingEventName = 'Microsoft.Media.JobProcessing' -MediaJobScheduledEventName = 'Microsoft.Media.JobScheduled' -MediaJobStateChangeEventName = 'Microsoft.Media.JobStateChange' -MediaLiveEventConnectionRejectedEventName = 'Microsoft.Media.LiveEventConnectionRejected' -MediaLiveEventEncoderConnectedEventName = 'Microsoft.Media.LiveEventEncoderConnected' -MediaLiveEventEncoderDisconnectedEventName = 'Microsoft.Media.LiveEventEncoderDisconnected' -MediaLiveEventIncomingDataChunkDroppedEventName = 'Microsoft.Media.LiveEventIncomingDataChunkDropped' -MediaLiveEventIncomingStreamReceivedEventName = 'Microsoft.Media.LiveEventIncomingStreamReceived' -MediaLiveEventIncomingStreamsOutOfSyncEventName = 'Microsoft.Media.LiveEventIncomingStreamsOutOfSync' -MediaLiveEventIncomingVideoStreamsOutOfSyncEventName = 'Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync' -MediaLiveEventIngestHeartbeatEventName = 'Microsoft.Media.LiveEventIngestHeartbeat' -MediaLiveEventTrackDiscontinuityDetectedEventName = 'Microsoft.Media.LiveEventTrackDiscontinuityDetected' -RedisExportRDBCompletedEventName = 'Microsoft.Cache.ExportRDBCompleted' -RedisImportRDBCompletedEventName = 'Microsoft.Cache.ImportRDBCompleted' -RedisPatchingCompletedEventName = 'Microsoft.Cache.PatchingCompleted' -RedisScalingCompletedEventName = 'Microsoft.Cache.ScalingCompleted' -ServiceBusActiveMessagesAvailablePeriodicNotificationsEventName = ( - 'Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications' -) -ServiceBusActiveMessagesAvailableWithNoListenersEventName = ( - 'Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners' -) -ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = ( - 'Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications' -) -ServiceBusDeadletterMessagesAvailableWithNoListenersEventName = ( - 'Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListenersEvent' -) -SignalRServiceClientConnectionConnectedEventName = 'Microsoft.SignalRService.ClientConnectionConnected' -SignalRServiceClientConnectionDisconnectedEventName = 'Microsoft.SignalRService.ClientConnectionDisconnected' -StorageAsyncOperationInitiatedEventName = 'Microsoft.Storage.AsyncOperationInitiated' -StorageBlobCreatedEventName = 'Microsoft.Storage.BlobCreated' -StorageBlobDeletedEventName = 'Microsoft.Storage.BlobDeleted' -StorageBlobRenamedEventName = 'Microsoft.Storage.BlobRenamed' -StorageBlobTierChangedEventName = 'Microsoft.Storage.BlobTierChanged' -StorageDirectoryCreatedEventName = 'Microsoft.Storage.DirectoryCreated' -StorageDirectoryDeletedEventName = 'Microsoft.Storage.DirectoryDeleted' -StorageDirectoryRenamedEventName = 'Microsoft.Storage.DirectoryRenamed' -StorageLifecyclePolicyCompletedEventName = 'Microsoft.Storage.LifecyclePolicyCompleted' -SubscriptionDeletedEventName = 'Microsoft.EventGrid.SubscriptionDeletedEvent' -SubscriptionValidationEventName = 'Microsoft.EventGrid.SubscriptionValidationEvent' -WebAppServicePlanUpdatedEventName = 'Microsoft.Web.AppServicePlanUpdated' -WebAppUpdatedEventName = 'Microsoft.Web.AppUpdated' -WebBackupOperationCompletedEventName = 'Microsoft.Web.BackupOperationCompleted' -WebBackupOperationFailedEventName = 'Microsoft.Web.BackupOperationFailed' -WebBackupOperationStartedEventName = 'Microsoft.Web.BackupOperationStarted' -WebRestoreOperationCompletedEventName = 'Microsoft.Web.RestoreOperationCompleted' -WebRestoreOperationFailedEventName = 'Microsoft.Web.RestoreOperationFailed' -WebRestoreOperationStartedEventName = 'Microsoft.Web.RestoreOperationStarted' -WebSlotSwapCompletedEventName = 'Microsoft.Web.SlotSwapCompleted' -WebSlotSwapFailedEventName = 'Microsoft.Web.SlotSwapFailed' -WebSlotSwapStartedEventName = 'Microsoft.Web.SlotSwapStarted' -WebSlotSwapWithPreviewCancelledEventName = 'Microsoft.Web.SlotSwapWithPreviewCancelled' -WebSlotSwapWithPreviewStartedEventName = 'Microsoft.Web.SlotSwapWithPreviewStarted' + AcsChatMessageDeletedEventName = 'Microsoft.Communication.ChatMessageDeleted' + + AcsChatMessageDeletedInThreadEventName = 'Microsoft.Communication.ChatMessageDeletedInThread' + + AcsChatMessageEditedEventName = 'Microsoft.Communication.ChatMessageEdited' + + AcsChatMessageEditedInThreadEventName = 'Microsoft.Communication.ChatMessageEditedInThread' + + AcsChatMessageReceivedEventName = 'Microsoft.Communication.ChatMessageReceived' + + AcsChatMessageReceivedInThreadEventName = 'Microsoft.Communication.ChatMessageReceivedInThread' + + AcsChatParticipantAddedToThreadEventName = 'Microsoft.Communication.ChatThreadParticipantAdded' + + AcsChatParticipantAddedToThreadWithUserEventName = 'Microsoft.Communication.ChatParticipantAddedToThreadWithUser' + + AcsChatParticipantRemovedFromThreadEventName = 'Microsoft.Communication.ChatThreadParticipantRemoved' + + AcsChatParticipantRemovedFromThreadWithUserEventName = 'Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser' + + AcsChatThreadCreatedEventName = 'Microsoft.Communication.ChatThreadCreated' + + AcsChatThreadCreatedWithUserEventName = 'Microsoft.Communication.ChatThreadCreatedWithUser' + + AcsChatThreadDeletedEventName = 'Microsoft.Communication.ChatThreadDeleted' + + AcsChatThreadPropertiesUpdatedEventName = 'Microsoft.Communication.ChatThreadPropertiesUpdated' + + AcsChatThreadPropertiesUpdatedPerUserEventName = 'Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser' + + AcsChatThreadWithUserDeletedEventName = 'Microsoft.Communication.ChatThreadWithUserDeleted' + + AcsRecordingFileStatusUpdatedEventName = 'Microsoft.Communication.RecordingFileStatusUpdated' + + AcsSmsDeliveryReportReceivedEventName = 'Microsoft.Communication.SMSDeliveryReportReceived' + + AcsSmsReceivedEventName = 'Microsoft.Communication.SMSReceived' + + AppConfigurationKeyValueDeletedEventName = 'Microsoft.AppConfiguration.KeyValueDeleted' + + AppConfigurationKeyValueModifiedEventName = 'Microsoft.AppConfiguration.KeyValueModified' + + ContainerRegistryArtifactEventName = 'Microsoft.AppConfiguration.KeyValueModified' + + ContainerRegistryChartDeletedEventName = 'Microsoft.ContainerRegistry.ChartDeleted' + + ContainerRegistryChartPushedEventName = 'Microsoft.ContainerRegistry.ChartPushed' + + ContainerRegistryEventName = 'Microsoft.ContainerRegistry.ChartPushed' + + ContainerRegistryImageDeletedEventName = 'Microsoft.ContainerRegistry.ImageDeleted' + + ContainerRegistryImagePushedEventName = 'Microsoft.ContainerRegistry.ImagePushed' + + EventHubCaptureFileCreatedEventName = 'Microsoft.EventHub.CaptureFileCreated' + + IotHubDeviceConnectedEventName = 'Microsoft.Devices.DeviceConnected' + + IotHubDeviceCreatedEventName = 'Microsoft.Devices.DeviceCreated' + + IotHubDeviceDeletedEventName = 'Microsoft.Devices.DeviceDeleted' + + IotHubDeviceDisconnectedEventName = 'Microsoft.Devices.DeviceDisconnected' + + IotHubDeviceTelemetryEventName = 'Microsoft.Devices.DeviceTelemetry' + + KeyVaultAccessPolicyChangedEventName = 'Microsoft.KeyVault.VaultAccessPolicyChanged' + + KeyVaultCertificateExpiredEventName = 'Microsoft.KeyVault.CertificateExpired' + + KeyVaultCertificateNearExpiryEventName = 'Microsoft.KeyVault.CertificateNearExpiry' + + KeyVaultCertificateNewVersionCreatedEventName = 'Microsoft.KeyVault.CertificateNewVersionCreated' + + KeyVaultKeyExpiredEventName = 'Microsoft.KeyVault.KeyExpired' + + KeyVaultKeyNearExpiryEventName = 'Microsoft.KeyVault.KeyNearExpiry' + + KeyVaultKeyNewVersionCreatedEventName = 'Microsoft.KeyVault.KeyNewVersionCreated' + + KeyVaultSecretExpiredEventName = 'Microsoft.KeyVault.SecretExpired' + + KeyVaultSecretNearExpiryEventName = 'Microsoft.KeyVault.SecretNearExpiry' + + KeyVaultSecretNewVersionCreatedEventName = 'Microsoft.KeyVault.SecretNewVersionCreated' + + MachineLearningServicesDatasetDriftDetectedEventName = 'Microsoft.MachineLearningServices.DatasetDriftDetected' + + MachineLearningServicesModelDeployedEventName = 'Microsoft.MachineLearningServices.ModelDeployed' + + MachineLearningServicesModelRegisteredEventName = 'Microsoft.MachineLearningServices.ModelRegistered' + + MachineLearningServicesRunCompletedEventName = 'Microsoft.MachineLearningServices.RunCompleted' + + MachineLearningServicesRunStatusChangedEventName = 'Microsoft.MachineLearningServices.RunStatusChanged' + + MapsGeofenceEnteredEventName = 'Microsoft.Maps.GeofenceEntered' + + MapsGeofenceExitedEventName = 'Microsoft.Maps.GeofenceExited' + + MapsGeofenceResultEventName = 'Microsoft.Maps.GeofenceResult' + + MediaJobCanceledEventName = 'Microsoft.Media.JobCanceled' + + MediaJobCancelingEventName = 'Microsoft.Media.JobCanceling' + + MediaJobErroredEventName = 'Microsoft.Media.JobErrored' + + MediaJobFinishedEventName = 'Microsoft.Media.JobFinished' + + MediaJobOutputCanceledEventName = 'Microsoft.Media.JobOutputCanceled' + + MediaJobOutputCancelingEventName = 'Microsoft.Media.JobOutputCanceling' + + MediaJobOutputErroredEventName = 'Microsoft.Media.JobOutputErrored' + + MediaJobOutputFinishedEventName = 'Microsoft.Media.JobOutputFinished' + + MediaJobOutputProcessingEventName = 'Microsoft.Media.JobOutputProcessing' + + MediaJobOutputProgressEventName = 'Microsoft.Media.JobOutputProgress' + + MediaJobOutputScheduledEventName = 'Microsoft.Media.JobOutputScheduled' + + MediaJobOutputStateChangeEventName = 'Microsoft.Media.JobOutputStateChange' + + MediaJobProcessingEventName = 'Microsoft.Media.JobProcessing' + + MediaJobScheduledEventName = 'Microsoft.Media.JobScheduled' + + MediaJobStateChangeEventName = 'Microsoft.Media.JobStateChange' + + MediaLiveEventConnectionRejectedEventName = 'Microsoft.Media.LiveEventConnectionRejected' + + MediaLiveEventEncoderConnectedEventName = 'Microsoft.Media.LiveEventEncoderConnected' + + MediaLiveEventEncoderDisconnectedEventName = 'Microsoft.Media.LiveEventEncoderDisconnected' + + MediaLiveEventIncomingDataChunkDroppedEventName = 'Microsoft.Media.LiveEventIncomingDataChunkDropped' + + MediaLiveEventIncomingStreamReceivedEventName = 'Microsoft.Media.LiveEventIncomingStreamReceived' + + MediaLiveEventIncomingStreamsOutOfSyncEventName = 'Microsoft.Media.LiveEventIncomingStreamsOutOfSync' + + MediaLiveEventIncomingVideoStreamsOutOfSyncEventName = 'Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync' + + MediaLiveEventIngestHeartbeatEventName = 'Microsoft.Media.LiveEventIngestHeartbeat' + + MediaLiveEventTrackDiscontinuityDetectedEventName = 'Microsoft.Media.LiveEventTrackDiscontinuityDetected' + + RedisExportRDBCompletedEventName = 'Microsoft.Cache.ExportRDBCompleted' + + RedisImportRDBCompletedEventName = 'Microsoft.Cache.ImportRDBCompleted' + + RedisPatchingCompletedEventName = 'Microsoft.Cache.PatchingCompleted' + + RedisScalingCompletedEventName = 'Microsoft.Cache.ScalingCompleted' + + ServiceBusActiveMessagesAvailablePeriodicNotificationsEventName = 'Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications' + + ServiceBusActiveMessagesAvailableWithNoListenersEventName = 'Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners' + + ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = 'Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications' + + ServiceBusDeadletterMessagesAvailableWithNoListenersEventName = 'Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListenersEvent' + + SignalRServiceClientConnectionConnectedEventName = 'Microsoft.SignalRService.ClientConnectionConnected' + + SignalRServiceClientConnectionDisconnectedEventName = 'Microsoft.SignalRService.ClientConnectionDisconnected' + + StorageAsyncOperationInitiatedEventName = 'Microsoft.Storage.AsyncOperationInitiated' + + StorageBlobCreatedEventName = 'Microsoft.Storage.BlobCreated' + + StorageBlobDeletedEventName = 'Microsoft.Storage.BlobDeleted' + + StorageBlobRenamedEventName = 'Microsoft.Storage.BlobRenamed' + + StorageBlobTierChangedEventName = 'Microsoft.Storage.BlobTierChanged' + + StorageDirectoryCreatedEventName = 'Microsoft.Storage.DirectoryCreated' + + StorageDirectoryDeletedEventName = 'Microsoft.Storage.DirectoryDeleted' + + StorageDirectoryRenamedEventName = 'Microsoft.Storage.DirectoryRenamed' + + StorageLifecyclePolicyCompletedEventName = 'Microsoft.Storage.LifecyclePolicyCompleted' + + SubscriptionDeletedEventName = 'Microsoft.EventGrid.SubscriptionDeletedEvent' + + SubscriptionValidationEventName = 'Microsoft.EventGrid.SubscriptionValidationEvent' + + WebAppServicePlanUpdatedEventName = 'Microsoft.Web.AppServicePlanUpdated' + + WebAppUpdatedEventName = 'Microsoft.Web.AppUpdated' + + WebBackupOperationCompletedEventName = 'Microsoft.Web.BackupOperationCompleted' + + WebBackupOperationFailedEventName = 'Microsoft.Web.BackupOperationFailed' + + WebBackupOperationStartedEventName = 'Microsoft.Web.BackupOperationStarted' + + WebRestoreOperationCompletedEventName = 'Microsoft.Web.RestoreOperationCompleted' + + WebRestoreOperationFailedEventName = 'Microsoft.Web.RestoreOperationFailed' + + WebRestoreOperationStartedEventName = 'Microsoft.Web.RestoreOperationStarted' + + WebSlotSwapCompletedEventName = 'Microsoft.Web.SlotSwapCompleted' + + WebSlotSwapFailedEventName = 'Microsoft.Web.SlotSwapFailed' + + WebSlotSwapStartedEventName = 'Microsoft.Web.SlotSwapStarted' + + WebSlotSwapWithPreviewCancelledEventName = 'Microsoft.Web.SlotSwapWithPreviewCancelled' + + WebSlotSwapWithPreviewStartedEventName = 'Microsoft.Web.SlotSwapWithPreviewStarted' + + # these names below are for backward compat only - refrain from using them. + AcsChatMemberAddedToThreadWithUserEventName = 'Microsoft.Communication.ChatMemberAddedToThreadWithUser' + + ResourceWriteFailureEventName = 'Microsoft.Resources.ResourceWriteFailure' + + IoTHubDeviceDeletedEventName = 'Microsoft.Devices.DeviceDeleted' + + IoTHubDeviceDisconnectedEventName = 'Microsoft.Devices.DeviceDisconnected' + + ResourceDeleteFailureEventName = 'Microsoft.Resources.ResourceDeleteFailure' + + ResourceDeleteCancelEventName = 'Microsoft.Resources.ResourceDeleteCancel' + + AcsChatThreadParticipantAddedEventName = 'Microsoft.Communication.ChatThreadParticipantAdded' + + ResourceDeleteSuccessEventName = 'Microsoft.Resources.ResourceDeleteSuccess' + + EventGridSubscriptionValidationEventName = 'Microsoft.EventGrid.SubscriptionValidationEvent' + + ResourceWriteSuccessEventName = 'Microsoft.Resources.ResourceWriteSuccess' + + ResourceActionSuccessEventName = 'Microsoft.Resources.ResourceActionSuccess' + + ResourceWriteCancelEventName = 'Microsoft.Resources.ResourceWriteCancel' + + ServiceBusDeadletterMessagesAvailableWithNoListenerEventName = 'Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListener' + + ResourceActionFailureEventName = 'Microsoft.Resources.ResourceActionFailure' + + AcsChatMemberRemovedFromThreadWithUserEventName = 'Microsoft.Communication.ChatMemberRemovedFromThreadWithUser' + + IoTHubDeviceConnectedEventName = 'Microsoft.Devices.DeviceConnected' + + EventGridSubscriptionDeletedEventName = 'Microsoft.EventGrid.SubscriptionDeletedEvent' + + AcsChatThreadParticipantRemovedEventName = 'Microsoft.Communication.ChatThreadParticipantRemoved' + + ResourceActionCancelEventName = 'Microsoft.Resources.ResourceActionCancel' + + IoTHubDeviceCreatedEventName = 'Microsoft.Devices.DeviceCreated' diff --git a/sdk/eventgrid/azure-eventgrid/swagger/_event_map.py b/sdk/eventgrid/azure-eventgrid/swagger/_event_map.py new file mode 100644 index 000000000000..44d77488441a --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/swagger/_event_map.py @@ -0,0 +1,164 @@ + AcsChatMemberAddedToThreadWithUserEventName = ( + "Microsoft.Communication.ChatMemberAddedToThreadWithUser" + ) + AcsChatMemberRemovedFromThreadWithUserEventName = ( + "Microsoft.Communication.ChatMemberRemovedFromThreadWithUser" + ) + AcsChatMessageDeletedEventName = "Microsoft.Communication.ChatMessageDeleted" + AcsChatMessageEditedEventName = "Microsoft.Communication.ChatMessageEdited" + AcsChatMessageReceivedEventName = "Microsoft.Communication.ChatMessageReceived" + AcsRecordingFileStatusUpdatedEventName = "Microsoft.Communication.RecordingFileStatusUpdated" + AcsChatThreadCreatedWithUserEventName = ( + "Microsoft.Communication.ChatThreadCreatedWithUser" + ) + AcsChatThreadParticipantAddedEventName = "Microsoft.Communication.ChatThreadParticipantAdded" + AcsChatThreadParticipantRemovedEventName = "Microsoft.Communication.ChatThreadParticipantRemoved" + AcsChatThreadPropertiesUpdatedPerUserEventName = ( + "Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser" + ) + AcsChatThreadWithUserDeletedEventName = ( + "Microsoft.Communication.ChatThreadWithUserDeleted" + ) + AcsSmsDeliveryReportReceivedEventName = ( + "Microsoft.Communication.SMSDeliveryReportReceived" + ) + AcsSmsReceivedEventName = "Microsoft.Communication.SMSReceived" + AppConfigurationKeyValueDeletedEventName = ( + "Microsoft.AppConfiguration.KeyValueDeleted" + ) + AppConfigurationKeyValueModifiedEventName = ( + "Microsoft.AppConfiguration.KeyValueModified" + ) + ContainerRegistryChartDeletedEventName = "Microsoft.ContainerRegistry.ChartDeleted" + ContainerRegistryChartPushedEventName = "Microsoft.ContainerRegistry.ChartPushed" + ContainerRegistryImageDeletedEventName = "Microsoft.ContainerRegistry.ImageDeleted" + ContainerRegistryImagePushedEventName = "Microsoft.ContainerRegistry.ImagePushed" + EventGridSubscriptionDeletedEventName = ( + "Microsoft.EventGrid.SubscriptionDeletedEvent" + ) + EventGridSubscriptionValidationEventName = ( + "Microsoft.EventGrid.SubscriptionValidationEvent" + ) + EventHubCaptureFileCreatedEventName = "Microsoft.EventHub.CaptureFileCreated" + IoTHubDeviceConnectedEventName = "Microsoft.Devices.DeviceConnected" + IoTHubDeviceCreatedEventName = "Microsoft.Devices.DeviceCreated" + IoTHubDeviceDeletedEventName = "Microsoft.Devices.DeviceDeleted" + IoTHubDeviceDisconnectedEventName = "Microsoft.Devices.DeviceDisconnected" + IotHubDeviceTelemetryEventName = "Microsoft.Devices.DeviceTelemetry" + KeyVaultAccessPolicyChangedEventName = "Microsoft.KeyVault.VaultAccessPolicyChanged" + KeyVaultCertificateExpiredEventName = "Microsoft.KeyVault.CertificateExpired" + KeyVaultCertificateNearExpiryEventName = "Microsoft.KeyVault.CertificateNearExpiry" + KeyVaultCertificateNewVersionCreatedEventName = ( + "Microsoft.KeyVault.CertificateNewVersionCreated" + ) + KeyVaultKeyExpiredEventName = "Microsoft.KeyVault.KeyExpired" + KeyVaultKeyNearExpiryEventName = "Microsoft.KeyVault.KeyNearExpiry" + KeyVaultKeyNewVersionCreatedEventName = "Microsoft.KeyVault.KeyNewVersionCreated" + KeyVaultSecretExpiredEventName = "Microsoft.KeyVault.SecretExpired" + KeyVaultSecretNearExpiryEventName = "Microsoft.KeyVault.SecretNearExpiry" + KeyVaultSecretNewVersionCreatedEventName = ( + "Microsoft.KeyVault.SecretNewVersionCreated" + ) + MachineLearningServicesDatasetDriftDetectedEventName = ( + "Microsoft.MachineLearningServices.DatasetDriftDetected" + ) + MachineLearningServicesModelDeployedEventName = ( + "Microsoft.MachineLearningServices.ModelDeployed" + ) + MachineLearningServicesModelRegisteredEventName = ( + "Microsoft.MachineLearningServices.ModelRegistered" + ) + MachineLearningServicesRunCompletedEventName = ( + "Microsoft.MachineLearningServices.RunCompleted" + ) + MachineLearningServicesRunStatusChangedEventName = ( + "Microsoft.MachineLearningServices.RunStatusChanged" + ) + MapsGeofenceEnteredEventName = "Microsoft.Maps.GeofenceEntered" + MapsGeofenceExitedEventName = "Microsoft.Maps.GeofenceExited" + MapsGeofenceResultEventName = "Microsoft.Maps.GeofenceResult" + MediaJobCanceledEventName = "Microsoft.Media.JobCanceled" + MediaJobCancelingEventName = "Microsoft.Media.JobCanceling" + MediaJobErroredEventName = "Microsoft.Media.JobErrored" + MediaJobFinishedEventName = "Microsoft.Media.JobFinished" + MediaJobOutputCanceledEventName = "Microsoft.Media.JobOutputCanceled" + MediaJobOutputCancelingEventName = "Microsoft.Media.JobOutputCanceling" + MediaJobOutputErroredEventName = "Microsoft.Media.JobOutputErrored" + MediaJobOutputFinishedEventName = "Microsoft.Media.JobOutputFinished" + MediaJobOutputProcessingEventName = "Microsoft.Media.JobOutputProcessing" + MediaJobOutputProgressEventName = "Microsoft.Media.JobOutputProgress" + MediaJobOutputScheduledEventName = "Microsoft.Media.JobOutputScheduled" + MediaJobOutputStateChangeEventName = "Microsoft.Media.JobOutputStateChange" + MediaJobProcessingEventName = "Microsoft.Media.JobProcessing" + MediaJobScheduledEventName = "Microsoft.Media.JobScheduled" + MediaJobStateChangeEventName = "Microsoft.Media.JobStateChange" + MediaLiveEventConnectionRejectedEventName = ( + "Microsoft.Media.LiveEventConnectionRejected" + ) + MediaLiveEventEncoderConnectedEventName = ( + "Microsoft.Media.LiveEventEncoderConnected" + ) + MediaLiveEventEncoderDisconnectedEventName = ( + "Microsoft.Media.LiveEventEncoderDisconnected" + ) + MediaLiveEventIncomingDataChunkDroppedEventName = ( + "Microsoft.Media.LiveEventIncomingDataChunkDropped" + ) + MediaLiveEventIncomingStreamReceivedEventName = ( + "Microsoft.Media.LiveEventIncomingStreamReceived" + ) + MediaLiveEventIncomingStreamsOutOfSyncEventName = ( + "Microsoft.Media.LiveEventIncomingStreamsOutOfSync" + ) + MediaLiveEventIncomingVideoStreamsOutOfSyncEventName = ( + "Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync" + ) + MediaLiveEventIngestHeartbeatEventName = "Microsoft.Media.LiveEventIngestHeartbeat" + MediaLiveEventTrackDiscontinuityDetectedEventName = ( + "Microsoft.Media.LiveEventTrackDiscontinuityDetected" + ) + ResourceActionCancelEventName = "Microsoft.Resources.ResourceActionCancel" + ResourceActionFailureEventName = "Microsoft.Resources.ResourceActionFailure" + ResourceActionSuccessEventName = "Microsoft.Resources.ResourceActionSuccess" + ResourceDeleteCancelEventName = "Microsoft.Resources.ResourceDeleteCancel" + ResourceDeleteFailureEventName = "Microsoft.Resources.ResourceDeleteFailure" + ResourceDeleteSuccessEventName = "Microsoft.Resources.ResourceDeleteSuccess" + ResourceWriteCancelEventName = "Microsoft.Resources.ResourceWriteCancel" + ResourceWriteFailureEventName = "Microsoft.Resources.ResourceWriteFailure" + ResourceWriteSuccessEventName = "Microsoft.Resources.ResourceWriteSuccess" + ServiceBusActiveMessagesAvailableWithNoListenersEventName = ( + "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners" + ) + ServiceBusDeadletterMessagesAvailableWithNoListenerEventName = ( + "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListener" + ) + ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = ( + "Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications" + ) + ServiceBusActiveMessagesAvailablePeriodicNotificationsEventName = ( + "Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications" + ) + StorageBlobCreatedEventName = "Microsoft.Storage.BlobCreated" + StorageBlobDeletedEventName = "Microsoft.Storage.BlobDeleted" + StorageBlobRenamedEventName = "Microsoft.Storage.BlobRenamed" + StorageDirectoryCreatedEventName = "Microsoft.Storage.DirectoryCreated" + StorageDirectoryDeletedEventName = "Microsoft.Storage.DirectoryDeleted" + StorageDirectoryRenamedEventName = "Microsoft.Storage.DirectoryRenamed" + StorageLifecyclePolicyCompletedEventName = ( + "Microsoft.Storage.LifecyclePolicyCompleted" + ) + WebAppServicePlanUpdatedEventName = "Microsoft.Web.AppServicePlanUpdated" + WebAppUpdatedEventName = "Microsoft.Web.AppUpdated" + WebBackupOperationCompletedEventName = "Microsoft.Web.BackupOperationCompleted" + WebBackupOperationFailedEventName = "Microsoft.Web.BackupOperationFailed" + WebBackupOperationStartedEventName = "Microsoft.Web.BackupOperationStarted" + WebRestoreOperationCompletedEventName = "Microsoft.Web.RestoreOperationCompleted" + WebRestoreOperationFailedEventName = "Microsoft.Web.RestoreOperationFailed" + WebRestoreOperationStartedEventName = "Microsoft.Web.RestoreOperationStarted" + WebSlotSwapCompletedEventName = "Microsoft.Web.SlotSwapCompleted" + WebSlotSwapFailedEventName = "Microsoft.Web.SlotSwapFailed" + WebSlotSwapStartedEventName = "Microsoft.Web.SlotSwapStarted" + WebSlotSwapWithPreviewCancelledEventName = ( + "Microsoft.Web.SlotSwapWithPreviewCancelled" + ) + WebSlotSwapWithPreviewStartedEventName = "Microsoft.Web.SlotSwapWithPreviewStarted" \ No newline at end of file diff --git a/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py b/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py index 7f30a8aa686e..580a662e6dd5 100644 --- a/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py +++ b/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py @@ -4,6 +4,29 @@ import sys from azure.eventgrid._generated import models +backward_compat = { + 'AcsChatMemberAddedToThreadWithUserEventName': "Microsoft.Communication.ChatMemberAddedToThreadWithUser", + 'ResourceWriteFailureEventName': "Microsoft.Resources.ResourceWriteFailure", + 'IoTHubDeviceDeletedEventName': "Microsoft.Devices.DeviceDeleted", + 'IoTHubDeviceDisconnectedEventName': "Microsoft.Devices.DeviceDisconnected", + 'ResourceDeleteFailureEventName': "Microsoft.Resources.ResourceDeleteFailure", + 'ResourceDeleteCancelEventName': "Microsoft.Resources.ResourceDeleteCancel", + 'AcsChatThreadParticipantAddedEventName': "Microsoft.Communication.ChatThreadParticipantAdded", + 'ResourceDeleteSuccessEventName': "Microsoft.Resources.ResourceDeleteSuccess", + 'EventGridSubscriptionValidationEventName': "Microsoft.EventGrid.SubscriptionValidationEvent", + 'ResourceWriteSuccessEventName': "Microsoft.Resources.ResourceWriteSuccess", + 'ResourceActionSuccessEventName': "Microsoft.Resources.ResourceActionSuccess", + 'ResourceWriteCancelEventName': "Microsoft.Resources.ResourceWriteCancel", + 'ServiceBusDeadletterMessagesAvailableWithNoListenerEventName': "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListener", + 'ResourceActionFailureEventName': "Microsoft.Resources.ResourceActionFailure", + 'AcsChatMemberRemovedFromThreadWithUserEventName': "Microsoft.Communication.ChatMemberRemovedFromThreadWithUser", + 'IoTHubDeviceConnectedEventName': "Microsoft.Devices.DeviceConnected", + 'EventGridSubscriptionDeletedEventName': "Microsoft.EventGrid.SubscriptionDeletedEvent", + 'AcsChatThreadParticipantRemovedEventName': "Microsoft.Communication.ChatThreadParticipantRemoved", + 'ResourceActionCancelEventName': "Microsoft.Resources.ResourceActionCancel", + 'IoTHubDeviceCreatedEventName': "Microsoft.Devices.DeviceCreated" +} + def event_tuples(system_events): tup_list = [] for event in system_events: @@ -11,14 +34,19 @@ def event_tuples(system_events): try: event_name = re.findall("Microsoft.[a-zA-Z]+.[a-zA-Z]+", event[1].__doc__)[0] except: - warnings.warn("Unable to generate the event mapping for {}", event[0]) - sys.exit(1) + # these two are just superclasses and are known exceptions. + if event[0] not in ('ContainerRegistryArtifactEventData', 'ContainerRegistryEventData'): + warnings.warn("Unable to generate the event mapping for {}".format(event[0])) + sys.exit(1) tup_list.append((class_name, event_name)) return tup_list def generate_enum_content(tuples): for tup in tup_list: print(tup[0] + " = '" + tup[1] + "'\n") + print("# these names below are for backward compat only - refrain from using them.") + for k, v in backward_compat.items(): + print(k + " = '" + v + "'\n") system_events = [m for m in inspect.getmembers(models) if m[0].endswith('EventData')] tup_list = event_tuples(system_events) From 8195566a4796176fa45677df71f1e3174f0d3da3 Mon Sep 17 00:00:00 2001 From: Rakshith Bhyravabhotla Date: Wed, 5 May 2021 10:02:38 -0700 Subject: [PATCH 5/7] include backward compat --- .../azure/eventgrid/_event_mappings.py | 22 +++++++++++++++++-- .../swagger/postprocess_eventnames.py | 4 ++-- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py index e2d8431a2deb..8669a259692f 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py @@ -98,7 +98,7 @@ class SystemEventNames(str, Enum): KeyVaultSecretNewVersionCreatedEventName = 'Microsoft.KeyVault.SecretNewVersionCreated' - MachineLearningServicesDatasetDriftDetectedEventName = 'Microsoft.MachineLearningServices.DatasetDriftDetected' + MachineLearningServicesNamesetDriftDetectedEventName = 'Microsoft.MachineLearningServices.DatasetDriftDetected' MachineLearningServicesModelDeployedEventName = 'Microsoft.MachineLearningServices.ModelDeployed' @@ -150,7 +150,7 @@ class SystemEventNames(str, Enum): MediaLiveEventEncoderDisconnectedEventName = 'Microsoft.Media.LiveEventEncoderDisconnected' - MediaLiveEventIncomingDataChunkDroppedEventName = 'Microsoft.Media.LiveEventIncomingDataChunkDropped' + MediaLiveEventIncomingNameChunkDroppedEventName = 'Microsoft.Media.LiveEventIncomingDataChunkDropped' MediaLiveEventIncomingStreamReceivedEventName = 'Microsoft.Media.LiveEventIncomingStreamReceived' @@ -170,6 +170,24 @@ class SystemEventNames(str, Enum): RedisScalingCompletedEventName = 'Microsoft.Cache.ScalingCompleted' + ResourceActionCancelName = 'Microsoft.Resources.ResourceActionCancel' + + ResourceActionFailureName = 'Microsoft.Resources.ResourceActionFailure' + + ResourceActionSuccessName = 'Microsoft.Resources.ResourceActionSuccess' + + ResourceDeleteCancelName = 'Microsoft.Resources.ResourceDeleteCancel' + + ResourceDeleteFailureName = 'Microsoft.Resources.ResourceDeleteFailure' + + ResourceDeleteSuccessName = 'Microsoft.Resources.ResourceDeleteSuccess' + + ResourceWriteCancelName = 'Microsoft.Resources.ResourceWriteCancel' + + ResourceWriteFailureName = 'Microsoft.Resources.ResourceWriteFailure' + + ResourceWriteSuccessName = 'Microsoft.Resources.ResourceWriteSuccess' + ServiceBusActiveMessagesAvailablePeriodicNotificationsEventName = 'Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications' ServiceBusActiveMessagesAvailableWithNoListenersEventName = 'Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners' diff --git a/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py b/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py index 580a662e6dd5..ad20925542ce 100644 --- a/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py +++ b/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py @@ -30,7 +30,7 @@ def event_tuples(system_events): tup_list = [] for event in system_events: - class_name = event[0].replace("EventData", "EventName") + class_name = event[0].replace("Data", "Name") try: event_name = re.findall("Microsoft.[a-zA-Z]+.[a-zA-Z]+", event[1].__doc__)[0] except: @@ -48,7 +48,7 @@ def generate_enum_content(tuples): for k, v in backward_compat.items(): print(k + " = '" + v + "'\n") -system_events = [m for m in inspect.getmembers(models) if m[0].endswith('EventData')] +system_events = [m for m in inspect.getmembers(models) if m[0].endswith('Data')] tup_list = event_tuples(system_events) generate_enum_content(tup_list) From 9e180ffe9bea4d11fd0f2d9ff7f8ac7f6ccdc4ea Mon Sep 17 00:00:00 2001 From: Rakshith Bhyravabhotla Date: Wed, 5 May 2021 10:55:20 -0700 Subject: [PATCH 6/7] changelog --- sdk/eventgrid/azure-eventgrid/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/eventgrid/azure-eventgrid/CHANGELOG.md b/sdk/eventgrid/azure-eventgrid/CHANGELOG.md index 0c94f2c285fa..520adbd6be3f 100644 --- a/sdk/eventgrid/azure-eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/azure-eventgrid/CHANGELOG.md @@ -2,6 +2,8 @@ ## 4.1.2 (Unreleased) + **New Features** + - Added new event names to the `SystemEventNames` enum. ## 4.1.1 (2021-04-07) From 5cfa3c669bad1a9f4076d5071c5a1b6647e02d9b Mon Sep 17 00:00:00 2001 From: Rakshith Bhyravabhotla Date: Wed, 5 May 2021 11:39:41 -0700 Subject: [PATCH 7/7] delete event map --- .../azure-eventgrid/swagger/_event_map.py | 164 ------------------ 1 file changed, 164 deletions(-) delete mode 100644 sdk/eventgrid/azure-eventgrid/swagger/_event_map.py diff --git a/sdk/eventgrid/azure-eventgrid/swagger/_event_map.py b/sdk/eventgrid/azure-eventgrid/swagger/_event_map.py deleted file mode 100644 index 44d77488441a..000000000000 --- a/sdk/eventgrid/azure-eventgrid/swagger/_event_map.py +++ /dev/null @@ -1,164 +0,0 @@ - AcsChatMemberAddedToThreadWithUserEventName = ( - "Microsoft.Communication.ChatMemberAddedToThreadWithUser" - ) - AcsChatMemberRemovedFromThreadWithUserEventName = ( - "Microsoft.Communication.ChatMemberRemovedFromThreadWithUser" - ) - AcsChatMessageDeletedEventName = "Microsoft.Communication.ChatMessageDeleted" - AcsChatMessageEditedEventName = "Microsoft.Communication.ChatMessageEdited" - AcsChatMessageReceivedEventName = "Microsoft.Communication.ChatMessageReceived" - AcsRecordingFileStatusUpdatedEventName = "Microsoft.Communication.RecordingFileStatusUpdated" - AcsChatThreadCreatedWithUserEventName = ( - "Microsoft.Communication.ChatThreadCreatedWithUser" - ) - AcsChatThreadParticipantAddedEventName = "Microsoft.Communication.ChatThreadParticipantAdded" - AcsChatThreadParticipantRemovedEventName = "Microsoft.Communication.ChatThreadParticipantRemoved" - AcsChatThreadPropertiesUpdatedPerUserEventName = ( - "Microsoft.Communication.ChatThreadPropertiesUpdatedPerUser" - ) - AcsChatThreadWithUserDeletedEventName = ( - "Microsoft.Communication.ChatThreadWithUserDeleted" - ) - AcsSmsDeliveryReportReceivedEventName = ( - "Microsoft.Communication.SMSDeliveryReportReceived" - ) - AcsSmsReceivedEventName = "Microsoft.Communication.SMSReceived" - AppConfigurationKeyValueDeletedEventName = ( - "Microsoft.AppConfiguration.KeyValueDeleted" - ) - AppConfigurationKeyValueModifiedEventName = ( - "Microsoft.AppConfiguration.KeyValueModified" - ) - ContainerRegistryChartDeletedEventName = "Microsoft.ContainerRegistry.ChartDeleted" - ContainerRegistryChartPushedEventName = "Microsoft.ContainerRegistry.ChartPushed" - ContainerRegistryImageDeletedEventName = "Microsoft.ContainerRegistry.ImageDeleted" - ContainerRegistryImagePushedEventName = "Microsoft.ContainerRegistry.ImagePushed" - EventGridSubscriptionDeletedEventName = ( - "Microsoft.EventGrid.SubscriptionDeletedEvent" - ) - EventGridSubscriptionValidationEventName = ( - "Microsoft.EventGrid.SubscriptionValidationEvent" - ) - EventHubCaptureFileCreatedEventName = "Microsoft.EventHub.CaptureFileCreated" - IoTHubDeviceConnectedEventName = "Microsoft.Devices.DeviceConnected" - IoTHubDeviceCreatedEventName = "Microsoft.Devices.DeviceCreated" - IoTHubDeviceDeletedEventName = "Microsoft.Devices.DeviceDeleted" - IoTHubDeviceDisconnectedEventName = "Microsoft.Devices.DeviceDisconnected" - IotHubDeviceTelemetryEventName = "Microsoft.Devices.DeviceTelemetry" - KeyVaultAccessPolicyChangedEventName = "Microsoft.KeyVault.VaultAccessPolicyChanged" - KeyVaultCertificateExpiredEventName = "Microsoft.KeyVault.CertificateExpired" - KeyVaultCertificateNearExpiryEventName = "Microsoft.KeyVault.CertificateNearExpiry" - KeyVaultCertificateNewVersionCreatedEventName = ( - "Microsoft.KeyVault.CertificateNewVersionCreated" - ) - KeyVaultKeyExpiredEventName = "Microsoft.KeyVault.KeyExpired" - KeyVaultKeyNearExpiryEventName = "Microsoft.KeyVault.KeyNearExpiry" - KeyVaultKeyNewVersionCreatedEventName = "Microsoft.KeyVault.KeyNewVersionCreated" - KeyVaultSecretExpiredEventName = "Microsoft.KeyVault.SecretExpired" - KeyVaultSecretNearExpiryEventName = "Microsoft.KeyVault.SecretNearExpiry" - KeyVaultSecretNewVersionCreatedEventName = ( - "Microsoft.KeyVault.SecretNewVersionCreated" - ) - MachineLearningServicesDatasetDriftDetectedEventName = ( - "Microsoft.MachineLearningServices.DatasetDriftDetected" - ) - MachineLearningServicesModelDeployedEventName = ( - "Microsoft.MachineLearningServices.ModelDeployed" - ) - MachineLearningServicesModelRegisteredEventName = ( - "Microsoft.MachineLearningServices.ModelRegistered" - ) - MachineLearningServicesRunCompletedEventName = ( - "Microsoft.MachineLearningServices.RunCompleted" - ) - MachineLearningServicesRunStatusChangedEventName = ( - "Microsoft.MachineLearningServices.RunStatusChanged" - ) - MapsGeofenceEnteredEventName = "Microsoft.Maps.GeofenceEntered" - MapsGeofenceExitedEventName = "Microsoft.Maps.GeofenceExited" - MapsGeofenceResultEventName = "Microsoft.Maps.GeofenceResult" - MediaJobCanceledEventName = "Microsoft.Media.JobCanceled" - MediaJobCancelingEventName = "Microsoft.Media.JobCanceling" - MediaJobErroredEventName = "Microsoft.Media.JobErrored" - MediaJobFinishedEventName = "Microsoft.Media.JobFinished" - MediaJobOutputCanceledEventName = "Microsoft.Media.JobOutputCanceled" - MediaJobOutputCancelingEventName = "Microsoft.Media.JobOutputCanceling" - MediaJobOutputErroredEventName = "Microsoft.Media.JobOutputErrored" - MediaJobOutputFinishedEventName = "Microsoft.Media.JobOutputFinished" - MediaJobOutputProcessingEventName = "Microsoft.Media.JobOutputProcessing" - MediaJobOutputProgressEventName = "Microsoft.Media.JobOutputProgress" - MediaJobOutputScheduledEventName = "Microsoft.Media.JobOutputScheduled" - MediaJobOutputStateChangeEventName = "Microsoft.Media.JobOutputStateChange" - MediaJobProcessingEventName = "Microsoft.Media.JobProcessing" - MediaJobScheduledEventName = "Microsoft.Media.JobScheduled" - MediaJobStateChangeEventName = "Microsoft.Media.JobStateChange" - MediaLiveEventConnectionRejectedEventName = ( - "Microsoft.Media.LiveEventConnectionRejected" - ) - MediaLiveEventEncoderConnectedEventName = ( - "Microsoft.Media.LiveEventEncoderConnected" - ) - MediaLiveEventEncoderDisconnectedEventName = ( - "Microsoft.Media.LiveEventEncoderDisconnected" - ) - MediaLiveEventIncomingDataChunkDroppedEventName = ( - "Microsoft.Media.LiveEventIncomingDataChunkDropped" - ) - MediaLiveEventIncomingStreamReceivedEventName = ( - "Microsoft.Media.LiveEventIncomingStreamReceived" - ) - MediaLiveEventIncomingStreamsOutOfSyncEventName = ( - "Microsoft.Media.LiveEventIncomingStreamsOutOfSync" - ) - MediaLiveEventIncomingVideoStreamsOutOfSyncEventName = ( - "Microsoft.Media.LiveEventIncomingVideoStreamsOutOfSync" - ) - MediaLiveEventIngestHeartbeatEventName = "Microsoft.Media.LiveEventIngestHeartbeat" - MediaLiveEventTrackDiscontinuityDetectedEventName = ( - "Microsoft.Media.LiveEventTrackDiscontinuityDetected" - ) - ResourceActionCancelEventName = "Microsoft.Resources.ResourceActionCancel" - ResourceActionFailureEventName = "Microsoft.Resources.ResourceActionFailure" - ResourceActionSuccessEventName = "Microsoft.Resources.ResourceActionSuccess" - ResourceDeleteCancelEventName = "Microsoft.Resources.ResourceDeleteCancel" - ResourceDeleteFailureEventName = "Microsoft.Resources.ResourceDeleteFailure" - ResourceDeleteSuccessEventName = "Microsoft.Resources.ResourceDeleteSuccess" - ResourceWriteCancelEventName = "Microsoft.Resources.ResourceWriteCancel" - ResourceWriteFailureEventName = "Microsoft.Resources.ResourceWriteFailure" - ResourceWriteSuccessEventName = "Microsoft.Resources.ResourceWriteSuccess" - ServiceBusActiveMessagesAvailableWithNoListenersEventName = ( - "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners" - ) - ServiceBusDeadletterMessagesAvailableWithNoListenerEventName = ( - "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListener" - ) - ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = ( - "Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications" - ) - ServiceBusActiveMessagesAvailablePeriodicNotificationsEventName = ( - "Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications" - ) - StorageBlobCreatedEventName = "Microsoft.Storage.BlobCreated" - StorageBlobDeletedEventName = "Microsoft.Storage.BlobDeleted" - StorageBlobRenamedEventName = "Microsoft.Storage.BlobRenamed" - StorageDirectoryCreatedEventName = "Microsoft.Storage.DirectoryCreated" - StorageDirectoryDeletedEventName = "Microsoft.Storage.DirectoryDeleted" - StorageDirectoryRenamedEventName = "Microsoft.Storage.DirectoryRenamed" - StorageLifecyclePolicyCompletedEventName = ( - "Microsoft.Storage.LifecyclePolicyCompleted" - ) - WebAppServicePlanUpdatedEventName = "Microsoft.Web.AppServicePlanUpdated" - WebAppUpdatedEventName = "Microsoft.Web.AppUpdated" - WebBackupOperationCompletedEventName = "Microsoft.Web.BackupOperationCompleted" - WebBackupOperationFailedEventName = "Microsoft.Web.BackupOperationFailed" - WebBackupOperationStartedEventName = "Microsoft.Web.BackupOperationStarted" - WebRestoreOperationCompletedEventName = "Microsoft.Web.RestoreOperationCompleted" - WebRestoreOperationFailedEventName = "Microsoft.Web.RestoreOperationFailed" - WebRestoreOperationStartedEventName = "Microsoft.Web.RestoreOperationStarted" - WebSlotSwapCompletedEventName = "Microsoft.Web.SlotSwapCompleted" - WebSlotSwapFailedEventName = "Microsoft.Web.SlotSwapFailed" - WebSlotSwapStartedEventName = "Microsoft.Web.SlotSwapStarted" - WebSlotSwapWithPreviewCancelledEventName = ( - "Microsoft.Web.SlotSwapWithPreviewCancelled" - ) - WebSlotSwapWithPreviewStartedEventName = "Microsoft.Web.SlotSwapWithPreviewStarted" \ No newline at end of file