From 55dffe11e2605d9f22073b49aa0ec26e173c3777 Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Wed, 14 May 2025 10:12:52 -0700 Subject: [PATCH 1/2] update --- sdk/eventgrid/azure-eventgrid/CHANGELOG.md | 8 +- .../eventgrid/_legacy/_event_mappings.py | 86 ++++++++----------- .../azure/eventgrid/_version.py | 2 +- .../azure-eventgrid/swagger/_constants.py | 2 + 4 files changed, 43 insertions(+), 55 deletions(-) diff --git a/sdk/eventgrid/azure-eventgrid/CHANGELOG.md b/sdk/eventgrid/azure-eventgrid/CHANGELOG.md index cf88dfb32d41..d0f5965f119f 100644 --- a/sdk/eventgrid/azure-eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/azure-eventgrid/CHANGELOG.md @@ -1,14 +1,10 @@ # Release History -## 4.21.1 (Unreleased) +## 4.22.0 (2025-05-14) ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Added new enum values to `SystemEventNames` related to Azure Communication Services and Azure Edge. ## 4.21.0 (2024-11-19) diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py index bdd1b51a3b13..e513b85d5f71 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py @@ -61,6 +61,16 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): AcsAdvancedMessageReceivedEventName = "Microsoft.Communication.AdvancedMessageReceived" + AcsCallEndedEventName = "Microsoft.Communication.CallEnded" + + AcsCallParticipantAddedEventName = "Microsoft.Communication.CallParticipantAdded" + + AcsCallParticipantRemovedEventName = "Microsoft.Communication.CallParticipantRemoved" + + AcsCallStartedEventName = "Microsoft.Communication.CallStarted" + + AcsChatAzureBotCommandReceivedInThreadEventName = "Microsoft.Communication.ChatAzureBotCommandReceivedInThread" + AcsChatMessageDeletedEventName = "Microsoft.Communication.ChatMessageDeleted" AcsChatMessageDeletedInThreadEventName = "Microsoft.Communication.ChatMessageDeletedInThread" @@ -79,9 +89,7 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): AcsChatParticipantRemovedFromThreadEventName = "Microsoft.Communication.ChatThreadParticipantRemoved" - AcsChatParticipantRemovedFromThreadWithUserEventName = ( - "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser" - ) + AcsChatParticipantRemovedFromThreadWithUserEventName = "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser" AcsChatThreadCreatedEventName = "Microsoft.Communication.ChatThreadCreated" @@ -95,6 +103,8 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): AcsChatThreadWithUserDeletedEventName = "Microsoft.Communication.ChatThreadWithUserDeleted" + AcsChatTypingIndicatorReceivedInThreadEventName = "Microsoft.Communication.ChatTypingIndicatorReceivedInThread" + AcsEmailDeliveryReportReceivedEventName = "Microsoft.Communication.EmailDeliveryReportReceived" AcsEmailEngagementTrackingReportReceivedEventName = "Microsoft.Communication.EmailEngagementTrackingReportReceived" @@ -169,37 +179,33 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): ApiManagementApiUpdatedEventName = "Microsoft.ApiManagement.APIUpdated" + ApiManagementCircuitBreakerClosedEventName = "Microsoft.ApiManagement.CircuitBreaker.Closed" + + ApiManagementCircuitBreakerOpenedEventName = "Microsoft.ApiManagement.CircuitBreaker.Opened" + ApiManagementGatewayApiAddedEventName = "Microsoft.ApiManagement.GatewayAPIAdded" ApiManagementGatewayApiRemovedEventName = "Microsoft.ApiManagement.GatewayAPIRemoved" - ApiManagementGatewayCertificateAuthorityCreatedEventName = ( - "Microsoft.ApiManagement.GatewayCertificateAuthorityCreated" - ) + ApiManagementGatewayCertificateAuthorityCreatedEventName = "Microsoft.ApiManagement.GatewayCertificateAuthorityCreated" - ApiManagementGatewayCertificateAuthorityDeletedEventName = ( - "Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted" - ) + ApiManagementGatewayCertificateAuthorityDeletedEventName = "Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted" - ApiManagementGatewayCertificateAuthorityUpdatedEventName = ( - "Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated" - ) + ApiManagementGatewayCertificateAuthorityUpdatedEventName = "Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated" ApiManagementGatewayCreatedEventName = "Microsoft.ApiManagement.GatewayCreated" ApiManagementGatewayDeletedEventName = "Microsoft.ApiManagement.GatewayDeleted" - ApiManagementGatewayHostnameConfigurationCreatedEventName = ( - "Microsoft.ApiManagement.GatewayHostnameConfigurationCreated" - ) + ApiManagementGatewayHostnameConfigurationCreatedEventName = "Microsoft.ApiManagement.GatewayHostnameConfigurationCreated" + + ApiManagementGatewayHostnameConfigurationDeletedEventName = "Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted" - ApiManagementGatewayHostnameConfigurationDeletedEventName = ( - "Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted" - ) + ApiManagementGatewayHostnameConfigurationUpdatedEventName = "Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated" - ApiManagementGatewayHostnameConfigurationUpdatedEventName = ( - "Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated" - ) + ApiManagementGatewayTokenExpiredEventName = "Microsoft.ApiManagement.GatewayTokenExpired" + + ApiManagementGatewayTokenNearExpiryEventName = "Microsoft.ApiManagement.GatewayTokenNearExpiry" ApiManagementGatewayUpdatedEventName = "Microsoft.ApiManagement.GatewayUpdated" @@ -279,6 +285,8 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): DataBoxOrderCompletedEventName = "Microsoft.DataBox.OrderCompleted" + EdgeSolutionVersionPublishedEventName = "Microsoft.Edge.SolutionVersionPublished" + EventGridMQTTClientCreatedOrUpdatedEventName = "Microsoft.EventGrid.MQTTClientCreatedOrUpdated" EventGridMQTTClientDeletedEventName = "Microsoft.EventGrid.MQTTClientDeleted" @@ -423,21 +431,13 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): ResourceDeleteSuccessName = "Microsoft.Resources.ResourceDeleteSuccess" - ResourceNotificationsContainerServiceEventResourcesScheduledEventName = ( - "Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted" - ) + ResourceNotificationsContainerServiceEventResourcesScheduledEventName = "Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted" - ResourceNotificationsHealthResourcesAnnotatedEventName = ( - "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated" - ) + ResourceNotificationsHealthResourcesAnnotatedEventName = "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated" - ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventName = ( - "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged" - ) + ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventName = "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged" - ResourceNotificationsResourceManagementCreatedOrUpdatedEventName = ( - "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated" - ) + ResourceNotificationsResourceManagementCreatedOrUpdatedEventName = "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated" ResourceNotificationsResourceManagementDeletedEventName = "Microsoft.ResourceNotifications.Resources.Deleted" @@ -447,21 +447,13 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): ResourceWriteSuccessName = "Microsoft.Resources.ResourceWriteSuccess" - ServiceBusActiveMessagesAvailablePeriodicNotificationsEventName = ( - "Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications" - ) + ServiceBusActiveMessagesAvailablePeriodicNotificationsEventName = "Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications" - ServiceBusActiveMessagesAvailableWithNoListenersEventName = ( - "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners" - ) + ServiceBusActiveMessagesAvailableWithNoListenersEventName = "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners" - ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = ( - "Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications" - ) + ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = "Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications" - ServiceBusDeadletterMessagesAvailableWithNoListenersEventName = ( - "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" - ) + ServiceBusDeadletterMessagesAvailableWithNoListenersEventName = "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" SignalRServiceClientConnectionConnectedEventName = "Microsoft.SignalRService.ClientConnectionConnected" @@ -531,6 +523,4 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): ContainerRegistryEventName = "Microsoft.ContainerRegistry.ChartPushed" - ServiceBusDeadletterMessagesAvailableWithNoListenerEventName = ( - "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" - ) + ServiceBusDeadletterMessagesAvailableWithNoListenerEventName = "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" \ No newline at end of file diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_version.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_version.py index 5b0fb6c42327..215940119a6c 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_version.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "4.21.1" +VERSION = "4.22.0" diff --git a/sdk/eventgrid/azure-eventgrid/swagger/_constants.py b/sdk/eventgrid/azure-eventgrid/swagger/_constants.py index 14e790d924c2..d38d04039264 100644 --- a/sdk/eventgrid/azure-eventgrid/swagger/_constants.py +++ b/sdk/eventgrid/azure-eventgrid/swagger/_constants.py @@ -30,6 +30,7 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.HealthcareApis/stable/2018-01-01/HealthcareApis.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.ApiCenter/stable/2018-01-01/ApiCenter.json", + "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.Edge/stable/2018-01-01/Edge.json", ] @@ -80,6 +81,7 @@ "AvsPrivateCloudEventData", "AvsScriptExecutionEventData", "AcsMessageEventData", + "AcsCallParticipantEventData", ] NAMING_CHANGES = ["AcsMessageDeliveryStatusUpdatedEventName", "AcsMessageReceivedEventName"] From ec1999d1ff2febc5b118263c6a4f64566d4b4f94 Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Wed, 14 May 2025 10:19:30 -0700 Subject: [PATCH 2/2] run black --- .../eventgrid/_legacy/_event_mappings.py | 64 ++++++++++++++----- 1 file changed, 48 insertions(+), 16 deletions(-) diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py index e513b85d5f71..934fa0517023 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py @@ -89,7 +89,9 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): AcsChatParticipantRemovedFromThreadEventName = "Microsoft.Communication.ChatThreadParticipantRemoved" - AcsChatParticipantRemovedFromThreadWithUserEventName = "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser" + AcsChatParticipantRemovedFromThreadWithUserEventName = ( + "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser" + ) AcsChatThreadCreatedEventName = "Microsoft.Communication.ChatThreadCreated" @@ -187,21 +189,33 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): ApiManagementGatewayApiRemovedEventName = "Microsoft.ApiManagement.GatewayAPIRemoved" - ApiManagementGatewayCertificateAuthorityCreatedEventName = "Microsoft.ApiManagement.GatewayCertificateAuthorityCreated" + ApiManagementGatewayCertificateAuthorityCreatedEventName = ( + "Microsoft.ApiManagement.GatewayCertificateAuthorityCreated" + ) - ApiManagementGatewayCertificateAuthorityDeletedEventName = "Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted" + ApiManagementGatewayCertificateAuthorityDeletedEventName = ( + "Microsoft.ApiManagement.GatewayCertificateAuthorityDeleted" + ) - ApiManagementGatewayCertificateAuthorityUpdatedEventName = "Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated" + ApiManagementGatewayCertificateAuthorityUpdatedEventName = ( + "Microsoft.ApiManagement.GatewayCertificateAuthorityUpdated" + ) ApiManagementGatewayCreatedEventName = "Microsoft.ApiManagement.GatewayCreated" ApiManagementGatewayDeletedEventName = "Microsoft.ApiManagement.GatewayDeleted" - ApiManagementGatewayHostnameConfigurationCreatedEventName = "Microsoft.ApiManagement.GatewayHostnameConfigurationCreated" + ApiManagementGatewayHostnameConfigurationCreatedEventName = ( + "Microsoft.ApiManagement.GatewayHostnameConfigurationCreated" + ) - ApiManagementGatewayHostnameConfigurationDeletedEventName = "Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted" + ApiManagementGatewayHostnameConfigurationDeletedEventName = ( + "Microsoft.ApiManagement.GatewayHostnameConfigurationDeleted" + ) - ApiManagementGatewayHostnameConfigurationUpdatedEventName = "Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated" + ApiManagementGatewayHostnameConfigurationUpdatedEventName = ( + "Microsoft.ApiManagement.GatewayHostnameConfigurationUpdated" + ) ApiManagementGatewayTokenExpiredEventName = "Microsoft.ApiManagement.GatewayTokenExpired" @@ -431,13 +445,21 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): ResourceDeleteSuccessName = "Microsoft.Resources.ResourceDeleteSuccess" - ResourceNotificationsContainerServiceEventResourcesScheduledEventName = "Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted" + ResourceNotificationsContainerServiceEventResourcesScheduledEventName = ( + "Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted" + ) - ResourceNotificationsHealthResourcesAnnotatedEventName = "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated" + ResourceNotificationsHealthResourcesAnnotatedEventName = ( + "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated" + ) - ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventName = "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged" + ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventName = ( + "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged" + ) - ResourceNotificationsResourceManagementCreatedOrUpdatedEventName = "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated" + ResourceNotificationsResourceManagementCreatedOrUpdatedEventName = ( + "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated" + ) ResourceNotificationsResourceManagementDeletedEventName = "Microsoft.ResourceNotifications.Resources.Deleted" @@ -447,13 +469,21 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): ResourceWriteSuccessName = "Microsoft.Resources.ResourceWriteSuccess" - ServiceBusActiveMessagesAvailablePeriodicNotificationsEventName = "Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications" + ServiceBusActiveMessagesAvailablePeriodicNotificationsEventName = ( + "Microsoft.ServiceBus.ActiveMessagesAvailablePeriodicNotifications" + ) - ServiceBusActiveMessagesAvailableWithNoListenersEventName = "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners" + ServiceBusActiveMessagesAvailableWithNoListenersEventName = ( + "Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners" + ) - ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = "Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications" + ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = ( + "Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications" + ) - ServiceBusDeadletterMessagesAvailableWithNoListenersEventName = "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" + ServiceBusDeadletterMessagesAvailableWithNoListenersEventName = ( + "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" + ) SignalRServiceClientConnectionConnectedEventName = "Microsoft.SignalRService.ClientConnectionConnected" @@ -523,4 +553,6 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): ContainerRegistryEventName = "Microsoft.ContainerRegistry.ChartPushed" - ServiceBusDeadletterMessagesAvailableWithNoListenerEventName = "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" \ No newline at end of file + ServiceBusDeadletterMessagesAvailableWithNoListenerEventName = ( + "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" + )