From f8ca186013e8f3c85a599e1d662cc6ab2133440a Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Fri, 25 Oct 2024 11:11:52 -0700 Subject: [PATCH 1/5] rn --- .../eventgrid/_legacy/_event_mappings.py | 62 +++++-------------- .../swagger/postprocess_eventnames.py | 2 +- 2 files changed, 18 insertions(+), 46 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 59fbfed265e6..b25ded4b8e21 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py @@ -80,9 +80,7 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): AcsChatParticipantRemovedFromThreadEventName = "Microsoft.Communication.ChatThreadParticipantRemoved" - AcsChatParticipantRemovedFromThreadWithUserEventName = ( - "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser" - ) + AcsChatParticipantRemovedFromThreadWithUserEventName = "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser" AcsChatThreadCreatedEventName = "Microsoft.Communication.ChatThreadCreated" @@ -174,33 +172,21 @@ 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" ApiManagementGatewayUpdatedEventName = "Microsoft.ApiManagement.GatewayUpdated" @@ -424,17 +410,13 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): ResourceDeleteSuccessName = "Microsoft.Resources.ResourceDeleteSuccess" - ResourceNotificationsHealthResourcesAnnotatedEventName = ( - "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated" - ) + ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventName = "Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted" - ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventName = ( - "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged" - ) + ResourceNotificationsHealthResourcesAnnotatedEventName = "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated" - ResourceNotificationsResourceManagementCreatedOrUpdatedEventName = ( - "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated" - ) + ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventName = "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged" + + ResourceNotificationsResourceManagementCreatedOrUpdatedEventName = "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated" ResourceNotificationsResourceManagementDeletedEventName = "Microsoft.ResourceNotifications.Resources.Deleted" @@ -444,21 +426,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" @@ -528,6 +502,4 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): ContainerRegistryEventName = "Microsoft.ContainerRegistry.ChartPushed" - ServiceBusDeadletterMessagesAvailableWithNoListenerEventName = ( - "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" - ) + ServiceBusDeadletterMessagesAvailableWithNoListenerEventName = "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" diff --git a/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py b/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py index 842afcc14797..8ce472bbbc09 100644 --- a/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py +++ b/sdk/eventgrid/azure-eventgrid/swagger/postprocess_eventnames.py @@ -3,7 +3,7 @@ import warnings import sys from urllib.request import urlopen -from azure.eventgrid._generated import models +from azure.eventgrid._legacy._generated import models from _constants import files, backward_compat, additional_events, EXCEPTIONS, NAMING_CHANGES From a152a4d7d1d1fb624f77467592d5829da5a6061f Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Thu, 7 Nov 2024 10:59:45 -0800 Subject: [PATCH 2/5] update --- .../azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py | 2 +- sdk/eventgrid/azure-eventgrid/swagger/_constants.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 b25ded4b8e21..5dec922982c2 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py @@ -410,7 +410,7 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): ResourceDeleteSuccessName = "Microsoft.Resources.ResourceDeleteSuccess" - ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventName = "Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted" + ResourceNotificationsContainerServiceEventResourcesScheduledEventName = "Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted" ResourceNotificationsHealthResourcesAnnotatedEventName = "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated" diff --git a/sdk/eventgrid/azure-eventgrid/swagger/_constants.py b/sdk/eventgrid/azure-eventgrid/swagger/_constants.py index 0a2cfc4503c7..f91dee4f27ea 100644 --- a/sdk/eventgrid/azure-eventgrid/swagger/_constants.py +++ b/sdk/eventgrid/azure-eventgrid/swagger/_constants.py @@ -23,12 +23,14 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json", + "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a33a41393543bb36d5339ba683a9b6121c78a06a/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/ContainerServiceEventResources.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json", "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", + ] From 1a16ef77b97206154e66160547f778a5d967671d Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Mon, 18 Nov 2024 08:58:12 -0800 Subject: [PATCH 3/5] update --- sdk/eventgrid/azure-eventgrid/swagger/_constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/eventgrid/azure-eventgrid/swagger/_constants.py b/sdk/eventgrid/azure-eventgrid/swagger/_constants.py index f91dee4f27ea..79c1336670f2 100644 --- a/sdk/eventgrid/azure-eventgrid/swagger/_constants.py +++ b/sdk/eventgrid/azure-eventgrid/swagger/_constants.py @@ -23,7 +23,7 @@ "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json", - "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a33a41393543bb36d5339ba683a9b6121c78a06a/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/ContainerServiceEventResources.json", + "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/ContainerServiceEventResources.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json", "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json", From 910b9b6732d80202aca94e03a098eda38a780214 Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Mon, 18 Nov 2024 09:00:17 -0800 Subject: [PATCH 4/5] bump --- sdk/eventgrid/azure-eventgrid/CHANGELOG.md | 8 ++------ sdk/eventgrid/azure-eventgrid/azure/eventgrid/_version.py | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/sdk/eventgrid/azure-eventgrid/CHANGELOG.md b/sdk/eventgrid/azure-eventgrid/CHANGELOG.md index 5b7a9b0790dd..375754865e1e 100644 --- a/sdk/eventgrid/azure-eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/azure-eventgrid/CHANGELOG.md @@ -1,14 +1,10 @@ # Release History -## 4.20.1 (Unreleased) +## 4.21.0 (2024-11-19) ### Features Added -### Breaking Changes - -### Bugs Fixed - -### Other Changes +- Added new enum values to `SystemEventNames` related to Azure Resource Notifications. ## 4.20.0 (2024-06-12) diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_version.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_version.py index 9462cc312640..69b8a4d0e5df 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.20.1" +VERSION = "4.21.0" From 9411f90f8330c698467641a9035688cc8e12df9d Mon Sep 17 00:00:00 2001 From: Libba Lawrence Date: Mon, 18 Nov 2024 09:44:24 -0800 Subject: [PATCH 5/5] black --- .../eventgrid/_legacy/_event_mappings.py | 64 ++++++++++++++----- .../azure/eventgrid/models/_patch.py | 1 + .../sample_publish_cncf_events_async.py | 6 +- .../azure-eventgrid/swagger/_constants.py | 1 - 4 files changed, 54 insertions(+), 18 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 5dec922982c2..ed9f5e4d91e3 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_event_mappings.py @@ -80,7 +80,9 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): AcsChatParticipantRemovedFromThreadEventName = "Microsoft.Communication.ChatThreadParticipantRemoved" - AcsChatParticipantRemovedFromThreadWithUserEventName = "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser" + AcsChatParticipantRemovedFromThreadWithUserEventName = ( + "Microsoft.Communication.ChatParticipantRemovedFromThreadWithUser" + ) AcsChatThreadCreatedEventName = "Microsoft.Communication.ChatThreadCreated" @@ -172,21 +174,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" + ) ApiManagementGatewayUpdatedEventName = "Microsoft.ApiManagement.GatewayUpdated" @@ -410,13 +424,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" @@ -426,13 +448,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" @@ -502,4 +532,6 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta): ContainerRegistryEventName = "Microsoft.ContainerRegistry.ChartPushed" - ServiceBusDeadletterMessagesAvailableWithNoListenerEventName = "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" + ServiceBusDeadletterMessagesAvailableWithNoListenerEventName = ( + "Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners" + ) diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/models/_patch.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/models/_patch.py index 8b9dcb1760cb..a552fe3c3125 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/models/_patch.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/models/_patch.py @@ -15,6 +15,7 @@ DataType = TypeVar("DataType") + class ReceiveDetails(InternalReceiveDetails, Generic[DataType]): """Receive operation details per Cloud Event. diff --git a/sdk/eventgrid/azure-eventgrid/samples/namespace/async_samples/sample_publish_cncf_events_async.py b/sdk/eventgrid/azure-eventgrid/samples/namespace/async_samples/sample_publish_cncf_events_async.py index d8b641ddf627..24bf463e44a3 100644 --- a/sdk/eventgrid/azure-eventgrid/samples/namespace/async_samples/sample_publish_cncf_events_async.py +++ b/sdk/eventgrid/azure-eventgrid/samples/namespace/async_samples/sample_publish_cncf_events_async.py @@ -34,7 +34,11 @@ async def publish(): await client.send( [ CloudEvent( - attributes={"type": "cloudevent", "source": "/cncf/cloud/event/1.0", "subject": "testing-cncf-event"}, + attributes={ + "type": "cloudevent", + "source": "/cncf/cloud/event/1.0", + "subject": "testing-cncf-event", + }, data=b"This is a cncf cloud event.", ) ] diff --git a/sdk/eventgrid/azure-eventgrid/swagger/_constants.py b/sdk/eventgrid/azure-eventgrid/swagger/_constants.py index 79c1336670f2..14e790d924c2 100644 --- a/sdk/eventgrid/azure-eventgrid/swagger/_constants.py +++ b/sdk/eventgrid/azure-eventgrid/swagger/_constants.py @@ -30,7 +30,6 @@ "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", - ]