Skip to content

Commit aff196d

Browse files
author
Rakshith Bhyravabhotla
authored
Event grid 4.3.0 regen code (Azure#19025)
* Regenerate code * changelog * azure arc
1 parent d8feed9 commit aff196d

File tree

9 files changed

+2238
-3
lines changed

9 files changed

+2238
-3
lines changed

sdk/eventgrid/azure-eventgrid/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release History
22

3+
## 4.3.0 (Unreleased)
4+
5+
**New Features**
6+
- Added new event names related to farm beats and blob inventory to the `SystemEventNames` enum.
7+
38
## 4.2.0 (2021-05-12)
49

510
**New Features**

sdk/eventgrid/azure-eventgrid/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ For complete list of recognizable system topics, visit [System Topics](https://d
108108

109109
For more information about the key concepts on Event Grid, see [Concepts in Azure Event Grid][publisher-service-doc].
110110

111+
## Event Grid on Kubernetes with Azure Arc
112+
113+
Event Grid on Kubernetes with Azure Arc is an offering that allows you to run Event Grid on your own Kubernetes cluster. This capability is enabled by the use of Azure Arc enabled Kubernetes. Through Azure Arc enabled Kubernetes, a supported Kubernetes cluster connects to Azure. Once connected, you are able to install Event Grid on it. Learn more about it [here](https://docs.microsoft.com/azure/event-grid/kubernetes/overview).
114+
111115
## Examples
112116

113117
The following sections provide several code snippets covering some of the most common Event Grid tasks, including:

sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,36 @@ class SystemEventNames(str, Enum):
110110

111111
EventHubCaptureFileCreatedEventName = 'Microsoft.EventHub.CaptureFileCreated'
112112

113+
FarmBeatsApplicationNameChangedEventName = 'Microsoft.AgFoodPlatform.ApplicationDataChanged'
114+
115+
FarmBeatsBoundaryChangedEventName = 'Microsoft.AgFoodPlatform.BoundaryChanged'
116+
117+
FarmBeatsCropChangedEventName = 'Microsoft.AgFoodPlatform.CropChanged'
118+
119+
FarmBeatsCropVarietyChangedEventName = 'Microsoft.AgFoodPlatform.CropVarietyChanged'
120+
121+
FarmBeatsFarmChangedEventName = 'Microsoft.AgFoodPlatform.FarmChanged'
122+
123+
FarmBeatsFarmOperationNameIngestionJobStatusChangedEventName = 'Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged'
124+
125+
FarmBeatsFarmerChangedEventName = 'Microsoft.AgFoodPlatform.FarmerChanged'
126+
127+
FarmBeatsFieldChangedEventName = 'Microsoft.AgFoodPlatform.FieldChanged'
128+
129+
FarmBeatsHarvestNameChangedEventName = 'Microsoft.AgFoodPlatform.HarvestDataChanged'
130+
131+
FarmBeatsPlantingNameChangedEventName = 'Microsoft.AgFoodPlatform.PlantingDataChanged'
132+
133+
FarmBeatsSatelliteNameIngestionJobStatusChangedEventName = 'Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged'
134+
135+
FarmBeatsSeasonChangedEventName = 'Microsoft.AgFoodPlatform.SeasonChanged'
136+
137+
FarmBeatsSeasonalFieldChangedEventName = 'Microsoft.AgFoodPlatform.SeasonalFieldChanged'
138+
139+
FarmBeatsTillageNameChangedEventName = 'Microsoft.AgFoodPlatform.TillageDataChanged'
140+
141+
FarmBeatsWeatherNameIngestionJobStatusChangedEventName = 'Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged'
142+
113143
IotHubDeviceConnectedEventName = 'Microsoft.Devices.DeviceConnected'
114144

115145
IotHubDeviceCreatedEventName = 'Microsoft.Devices.DeviceCreated'
@@ -242,6 +272,8 @@ class SystemEventNames(str, Enum):
242272

243273
ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = 'Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications'
244274

275+
ServiceBusDeadletterMessagesAvailableWithNoListenersEventName = 'Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners'
276+
245277
SignalRServiceClientConnectionConnectedEventName = 'Microsoft.SignalRService.ClientConnectionConnected'
246278

247279
SignalRServiceClientConnectionDisconnectedEventName = 'Microsoft.SignalRService.ClientConnectionDisconnected'
@@ -252,6 +284,8 @@ class SystemEventNames(str, Enum):
252284

253285
StorageBlobDeletedEventName = 'Microsoft.Storage.BlobDeleted'
254286

287+
StorageBlobInventoryPolicyCompletedEventName = 'Microsoft.Storage.BlobInventoryPolicyCompleted'
288+
255289
StorageBlobRenamedEventName = 'Microsoft.Storage.BlobRenamed'
256290

257291
StorageBlobTierChangedEventName = 'Microsoft.Storage.BlobTierChanged'

sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/__init__.py

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,21 @@
6666
from ._models_py3 import DeviceTwinProperties
6767
from ._models_py3 import EventGridEvent
6868
from ._models_py3 import EventHubCaptureFileCreatedEventData
69+
from ._models_py3 import FarmBeatsApplicationDataChangedEventData
70+
from ._models_py3 import FarmBeatsBoundaryChangedEventData
71+
from ._models_py3 import FarmBeatsCropChangedEventData
72+
from ._models_py3 import FarmBeatsCropVarietyChangedEventData
73+
from ._models_py3 import FarmBeatsFarmChangedEventData
74+
from ._models_py3 import FarmBeatsFarmOperationDataIngestionJobStatusChangedEventData
75+
from ._models_py3 import FarmBeatsFarmerChangedEventData
76+
from ._models_py3 import FarmBeatsFieldChangedEventData
77+
from ._models_py3 import FarmBeatsHarvestDataChangedEventData
78+
from ._models_py3 import FarmBeatsPlantingDataChangedEventData
79+
from ._models_py3 import FarmBeatsSatelliteDataIngestionJobStatusChangedEventData
80+
from ._models_py3 import FarmBeatsSeasonChangedEventData
81+
from ._models_py3 import FarmBeatsSeasonalFieldChangedEventData
82+
from ._models_py3 import FarmBeatsTillageDataChangedEventData
83+
from ._models_py3 import FarmBeatsWeatherDataIngestionJobStatusChangedEventData
6984
from ._models_py3 import IotHubDeviceConnectedEventData
7085
from ._models_py3 import IotHubDeviceCreatedEventData
7186
from ._models_py3 import IotHubDeviceDeletedEventData
@@ -146,6 +161,7 @@
146161
from ._models_py3 import StorageAsyncOperationInitiatedEventData
147162
from ._models_py3 import StorageBlobCreatedEventData
148163
from ._models_py3 import StorageBlobDeletedEventData
164+
from ._models_py3 import StorageBlobInventoryPolicyCompletedEventData
149165
from ._models_py3 import StorageBlobRenamedEventData
150166
from ._models_py3 import StorageBlobTierChangedEventData
151167
from ._models_py3 import StorageDirectoryCreatedEventData
@@ -230,6 +246,21 @@
230246
from ._models import DeviceTwinProperties # type: ignore
231247
from ._models import EventGridEvent # type: ignore
232248
from ._models import EventHubCaptureFileCreatedEventData # type: ignore
249+
from ._models import FarmBeatsApplicationDataChangedEventData # type: ignore
250+
from ._models import FarmBeatsBoundaryChangedEventData # type: ignore
251+
from ._models import FarmBeatsCropChangedEventData # type: ignore
252+
from ._models import FarmBeatsCropVarietyChangedEventData # type: ignore
253+
from ._models import FarmBeatsFarmChangedEventData # type: ignore
254+
from ._models import FarmBeatsFarmOperationDataIngestionJobStatusChangedEventData # type: ignore
255+
from ._models import FarmBeatsFarmerChangedEventData # type: ignore
256+
from ._models import FarmBeatsFieldChangedEventData # type: ignore
257+
from ._models import FarmBeatsHarvestDataChangedEventData # type: ignore
258+
from ._models import FarmBeatsPlantingDataChangedEventData # type: ignore
259+
from ._models import FarmBeatsSatelliteDataIngestionJobStatusChangedEventData # type: ignore
260+
from ._models import FarmBeatsSeasonChangedEventData # type: ignore
261+
from ._models import FarmBeatsSeasonalFieldChangedEventData # type: ignore
262+
from ._models import FarmBeatsTillageDataChangedEventData # type: ignore
263+
from ._models import FarmBeatsWeatherDataIngestionJobStatusChangedEventData # type: ignore
233264
from ._models import IotHubDeviceConnectedEventData # type: ignore
234265
from ._models import IotHubDeviceCreatedEventData # type: ignore
235266
from ._models import IotHubDeviceDeletedEventData # type: ignore
@@ -310,6 +341,7 @@
310341
from ._models import StorageAsyncOperationInitiatedEventData # type: ignore
311342
from ._models import StorageBlobCreatedEventData # type: ignore
312343
from ._models import StorageBlobDeletedEventData # type: ignore
344+
from ._models import StorageBlobInventoryPolicyCompletedEventData # type: ignore
313345
from ._models import StorageBlobRenamedEventData # type: ignore
314346
from ._models import StorageBlobTierChangedEventData # type: ignore
315347
from ._models import StorageDirectoryCreatedEventData # type: ignore
@@ -340,10 +372,12 @@
340372
AppServicePlanAction,
341373
AsyncStatus,
342374
CommunicationCloudEnvironmentModel,
375+
JobStatus,
343376
MediaJobErrorCategory,
344377
MediaJobErrorCode,
345378
MediaJobRetry,
346379
MediaJobState,
380+
ResourceActionType,
347381
StampKind,
348382
)
349383

@@ -407,6 +441,21 @@
407441
'DeviceTwinProperties',
408442
'EventGridEvent',
409443
'EventHubCaptureFileCreatedEventData',
444+
'FarmBeatsApplicationDataChangedEventData',
445+
'FarmBeatsBoundaryChangedEventData',
446+
'FarmBeatsCropChangedEventData',
447+
'FarmBeatsCropVarietyChangedEventData',
448+
'FarmBeatsFarmChangedEventData',
449+
'FarmBeatsFarmOperationDataIngestionJobStatusChangedEventData',
450+
'FarmBeatsFarmerChangedEventData',
451+
'FarmBeatsFieldChangedEventData',
452+
'FarmBeatsHarvestDataChangedEventData',
453+
'FarmBeatsPlantingDataChangedEventData',
454+
'FarmBeatsSatelliteDataIngestionJobStatusChangedEventData',
455+
'FarmBeatsSeasonChangedEventData',
456+
'FarmBeatsSeasonalFieldChangedEventData',
457+
'FarmBeatsTillageDataChangedEventData',
458+
'FarmBeatsWeatherDataIngestionJobStatusChangedEventData',
410459
'IotHubDeviceConnectedEventData',
411460
'IotHubDeviceCreatedEventData',
412461
'IotHubDeviceDeletedEventData',
@@ -487,6 +536,7 @@
487536
'StorageAsyncOperationInitiatedEventData',
488537
'StorageBlobCreatedEventData',
489538
'StorageBlobDeletedEventData',
539+
'StorageBlobInventoryPolicyCompletedEventData',
490540
'StorageBlobRenamedEventData',
491541
'StorageBlobTierChangedEventData',
492542
'StorageDirectoryCreatedEventData',
@@ -515,9 +565,11 @@
515565
'AppServicePlanAction',
516566
'AsyncStatus',
517567
'CommunicationCloudEnvironmentModel',
568+
'JobStatus',
518569
'MediaJobErrorCategory',
519570
'MediaJobErrorCode',
520571
'MediaJobRetry',
521572
'MediaJobState',
573+
'ResourceActionType',
522574
'StampKind',
523575
]

sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_event_grid_publisher_client_enums.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ class CommunicationCloudEnvironmentModel(with_metaclass(_CaseInsensitiveEnumMeta
6969
DOD = "dod"
7070
GCCH = "gcch"
7171

72+
class JobStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
73+
"""Various states a job can be in.
74+
"""
75+
76+
WAITING = "Waiting"
77+
RUNNING = "Running"
78+
SUCCEEDED = "Succeeded"
79+
FAILED = "Failed"
80+
CANCELLED = "Cancelled"
81+
7282
class MediaJobErrorCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
7383
"""Helps with categorization of errors.
7484
"""
@@ -147,6 +157,14 @@ class MediaJobState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
147157
#: queued and processing states.
148158
SCHEDULED = "Scheduled"
149159

160+
class ResourceActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
161+
"""Action occurred on a resource.
162+
"""
163+
164+
CREATED = "Created"
165+
UPDATED = "Updated"
166+
DELETED = "Deleted"
167+
150168
class StampKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
151169
"""Kind of environment where app service plan is.
152170
"""

0 commit comments

Comments
 (0)