Skip to content

Commit

Permalink
Event grid 4.3.0 regen code (#19025)
Browse files Browse the repository at this point in the history
* Regenerate code

* changelog

* azure arc
  • Loading branch information
Rakshith Bhyravabhotla authored Jun 1, 2021
1 parent d8feed9 commit aff196d
Show file tree
Hide file tree
Showing 9 changed files with 2,238 additions and 3 deletions.
5 changes: 5 additions & 0 deletions sdk/eventgrid/azure-eventgrid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release History

## 4.3.0 (Unreleased)

**New Features**
- Added new event names related to farm beats and blob inventory to the `SystemEventNames` enum.

## 4.2.0 (2021-05-12)

**New Features**
Expand Down
4 changes: 4 additions & 0 deletions sdk/eventgrid/azure-eventgrid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ For complete list of recognizable system topics, visit [System Topics](https://d

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

## Event Grid on Kubernetes with Azure Arc

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).

## Examples

The following sections provide several code snippets covering some of the most common Event Grid tasks, including:
Expand Down
34 changes: 34 additions & 0 deletions sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,36 @@ class SystemEventNames(str, Enum):

EventHubCaptureFileCreatedEventName = 'Microsoft.EventHub.CaptureFileCreated'

FarmBeatsApplicationNameChangedEventName = 'Microsoft.AgFoodPlatform.ApplicationDataChanged'

FarmBeatsBoundaryChangedEventName = 'Microsoft.AgFoodPlatform.BoundaryChanged'

FarmBeatsCropChangedEventName = 'Microsoft.AgFoodPlatform.CropChanged'

FarmBeatsCropVarietyChangedEventName = 'Microsoft.AgFoodPlatform.CropVarietyChanged'

FarmBeatsFarmChangedEventName = 'Microsoft.AgFoodPlatform.FarmChanged'

FarmBeatsFarmOperationNameIngestionJobStatusChangedEventName = 'Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged'

FarmBeatsFarmerChangedEventName = 'Microsoft.AgFoodPlatform.FarmerChanged'

FarmBeatsFieldChangedEventName = 'Microsoft.AgFoodPlatform.FieldChanged'

FarmBeatsHarvestNameChangedEventName = 'Microsoft.AgFoodPlatform.HarvestDataChanged'

FarmBeatsPlantingNameChangedEventName = 'Microsoft.AgFoodPlatform.PlantingDataChanged'

FarmBeatsSatelliteNameIngestionJobStatusChangedEventName = 'Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged'

FarmBeatsSeasonChangedEventName = 'Microsoft.AgFoodPlatform.SeasonChanged'

FarmBeatsSeasonalFieldChangedEventName = 'Microsoft.AgFoodPlatform.SeasonalFieldChanged'

FarmBeatsTillageNameChangedEventName = 'Microsoft.AgFoodPlatform.TillageDataChanged'

FarmBeatsWeatherNameIngestionJobStatusChangedEventName = 'Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged'

IotHubDeviceConnectedEventName = 'Microsoft.Devices.DeviceConnected'

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

ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = 'Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications'

ServiceBusDeadletterMessagesAvailableWithNoListenersEventName = 'Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners'

SignalRServiceClientConnectionConnectedEventName = 'Microsoft.SignalRService.ClientConnectionConnected'

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

StorageBlobDeletedEventName = 'Microsoft.Storage.BlobDeleted'

StorageBlobInventoryPolicyCompletedEventName = 'Microsoft.Storage.BlobInventoryPolicyCompleted'

StorageBlobRenamedEventName = 'Microsoft.Storage.BlobRenamed'

StorageBlobTierChangedEventName = 'Microsoft.Storage.BlobTierChanged'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,21 @@
from ._models_py3 import DeviceTwinProperties
from ._models_py3 import EventGridEvent
from ._models_py3 import EventHubCaptureFileCreatedEventData
from ._models_py3 import FarmBeatsApplicationDataChangedEventData
from ._models_py3 import FarmBeatsBoundaryChangedEventData
from ._models_py3 import FarmBeatsCropChangedEventData
from ._models_py3 import FarmBeatsCropVarietyChangedEventData
from ._models_py3 import FarmBeatsFarmChangedEventData
from ._models_py3 import FarmBeatsFarmOperationDataIngestionJobStatusChangedEventData
from ._models_py3 import FarmBeatsFarmerChangedEventData
from ._models_py3 import FarmBeatsFieldChangedEventData
from ._models_py3 import FarmBeatsHarvestDataChangedEventData
from ._models_py3 import FarmBeatsPlantingDataChangedEventData
from ._models_py3 import FarmBeatsSatelliteDataIngestionJobStatusChangedEventData
from ._models_py3 import FarmBeatsSeasonChangedEventData
from ._models_py3 import FarmBeatsSeasonalFieldChangedEventData
from ._models_py3 import FarmBeatsTillageDataChangedEventData
from ._models_py3 import FarmBeatsWeatherDataIngestionJobStatusChangedEventData
from ._models_py3 import IotHubDeviceConnectedEventData
from ._models_py3 import IotHubDeviceCreatedEventData
from ._models_py3 import IotHubDeviceDeletedEventData
Expand Down Expand Up @@ -146,6 +161,7 @@
from ._models_py3 import StorageAsyncOperationInitiatedEventData
from ._models_py3 import StorageBlobCreatedEventData
from ._models_py3 import StorageBlobDeletedEventData
from ._models_py3 import StorageBlobInventoryPolicyCompletedEventData
from ._models_py3 import StorageBlobRenamedEventData
from ._models_py3 import StorageBlobTierChangedEventData
from ._models_py3 import StorageDirectoryCreatedEventData
Expand Down Expand Up @@ -230,6 +246,21 @@
from ._models import DeviceTwinProperties # type: ignore
from ._models import EventGridEvent # type: ignore
from ._models import EventHubCaptureFileCreatedEventData # type: ignore
from ._models import FarmBeatsApplicationDataChangedEventData # type: ignore
from ._models import FarmBeatsBoundaryChangedEventData # type: ignore
from ._models import FarmBeatsCropChangedEventData # type: ignore
from ._models import FarmBeatsCropVarietyChangedEventData # type: ignore
from ._models import FarmBeatsFarmChangedEventData # type: ignore
from ._models import FarmBeatsFarmOperationDataIngestionJobStatusChangedEventData # type: ignore
from ._models import FarmBeatsFarmerChangedEventData # type: ignore
from ._models import FarmBeatsFieldChangedEventData # type: ignore
from ._models import FarmBeatsHarvestDataChangedEventData # type: ignore
from ._models import FarmBeatsPlantingDataChangedEventData # type: ignore
from ._models import FarmBeatsSatelliteDataIngestionJobStatusChangedEventData # type: ignore
from ._models import FarmBeatsSeasonChangedEventData # type: ignore
from ._models import FarmBeatsSeasonalFieldChangedEventData # type: ignore
from ._models import FarmBeatsTillageDataChangedEventData # type: ignore
from ._models import FarmBeatsWeatherDataIngestionJobStatusChangedEventData # type: ignore
from ._models import IotHubDeviceConnectedEventData # type: ignore
from ._models import IotHubDeviceCreatedEventData # type: ignore
from ._models import IotHubDeviceDeletedEventData # type: ignore
Expand Down Expand Up @@ -310,6 +341,7 @@
from ._models import StorageAsyncOperationInitiatedEventData # type: ignore
from ._models import StorageBlobCreatedEventData # type: ignore
from ._models import StorageBlobDeletedEventData # type: ignore
from ._models import StorageBlobInventoryPolicyCompletedEventData # type: ignore
from ._models import StorageBlobRenamedEventData # type: ignore
from ._models import StorageBlobTierChangedEventData # type: ignore
from ._models import StorageDirectoryCreatedEventData # type: ignore
Expand Down Expand Up @@ -340,10 +372,12 @@
AppServicePlanAction,
AsyncStatus,
CommunicationCloudEnvironmentModel,
JobStatus,
MediaJobErrorCategory,
MediaJobErrorCode,
MediaJobRetry,
MediaJobState,
ResourceActionType,
StampKind,
)

Expand Down Expand Up @@ -407,6 +441,21 @@
'DeviceTwinProperties',
'EventGridEvent',
'EventHubCaptureFileCreatedEventData',
'FarmBeatsApplicationDataChangedEventData',
'FarmBeatsBoundaryChangedEventData',
'FarmBeatsCropChangedEventData',
'FarmBeatsCropVarietyChangedEventData',
'FarmBeatsFarmChangedEventData',
'FarmBeatsFarmOperationDataIngestionJobStatusChangedEventData',
'FarmBeatsFarmerChangedEventData',
'FarmBeatsFieldChangedEventData',
'FarmBeatsHarvestDataChangedEventData',
'FarmBeatsPlantingDataChangedEventData',
'FarmBeatsSatelliteDataIngestionJobStatusChangedEventData',
'FarmBeatsSeasonChangedEventData',
'FarmBeatsSeasonalFieldChangedEventData',
'FarmBeatsTillageDataChangedEventData',
'FarmBeatsWeatherDataIngestionJobStatusChangedEventData',
'IotHubDeviceConnectedEventData',
'IotHubDeviceCreatedEventData',
'IotHubDeviceDeletedEventData',
Expand Down Expand Up @@ -487,6 +536,7 @@
'StorageAsyncOperationInitiatedEventData',
'StorageBlobCreatedEventData',
'StorageBlobDeletedEventData',
'StorageBlobInventoryPolicyCompletedEventData',
'StorageBlobRenamedEventData',
'StorageBlobTierChangedEventData',
'StorageDirectoryCreatedEventData',
Expand Down Expand Up @@ -515,9 +565,11 @@
'AppServicePlanAction',
'AsyncStatus',
'CommunicationCloudEnvironmentModel',
'JobStatus',
'MediaJobErrorCategory',
'MediaJobErrorCode',
'MediaJobRetry',
'MediaJobState',
'ResourceActionType',
'StampKind',
]
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ class CommunicationCloudEnvironmentModel(with_metaclass(_CaseInsensitiveEnumMeta
DOD = "dod"
GCCH = "gcch"

class JobStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Various states a job can be in.
"""

WAITING = "Waiting"
RUNNING = "Running"
SUCCEEDED = "Succeeded"
FAILED = "Failed"
CANCELLED = "Cancelled"

class MediaJobErrorCategory(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Helps with categorization of errors.
"""
Expand Down Expand Up @@ -147,6 +157,14 @@ class MediaJobState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
#: queued and processing states.
SCHEDULED = "Scheduled"

class ResourceActionType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Action occurred on a resource.
"""

CREATED = "Created"
UPDATED = "Updated"
DELETED = "Deleted"

class StampKind(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""Kind of environment where app service plan is.
"""
Expand Down
Loading

0 comments on commit aff196d

Please sign in to comment.