Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EG] resource notification event #38100

Merged
merged 5 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions sdk/eventgrid/azure-eventgrid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,10 @@ class SystemEventNames(str, Enum, metaclass=CaseInsensitiveEnumMeta):

ResourceDeleteSuccessName = "Microsoft.Resources.ResourceDeleteSuccess"

ResourceNotificationsContainerServiceEventResourcesScheduledEventName = (
"Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted"
)

ResourceNotificationsHealthResourcesAnnotatedEventName = (
"Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

DataType = TypeVar("DataType")


class ReceiveDetails(InternalReceiveDetails, Generic[DataType]):
"""Receive operation details per Cloud Event.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
)
]
Expand Down
1 change: 1 addition & 0 deletions sdk/eventgrid/azure-eventgrid/swagger/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +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/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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
kashifkhan marked this conversation as resolved.
Show resolved Hide resolved
from _constants import files, backward_compat, additional_events, EXCEPTIONS, NAMING_CHANGES


Expand Down