From aff196dd3aba10d154fe770e9630634fd47b6fd8 Mon Sep 17 00:00:00 2001 From: Rakshith Bhyravabhotla Date: Tue, 1 Jun 2021 15:10:19 -0700 Subject: [PATCH] Event grid 4.3.0 regen code (#19025) * Regenerate code * changelog * azure arc --- sdk/eventgrid/azure-eventgrid/CHANGELOG.md | 5 + sdk/eventgrid/azure-eventgrid/README.md | 4 + .../azure/eventgrid/_event_mappings.py | 34 + .../eventgrid/_generated/models/__init__.py | 52 + .../_event_grid_publisher_client_enums.py | 18 + .../eventgrid/_generated/models/_models.py | 971 +++++++++++++- .../_generated/models/_models_py3.py | 1154 ++++++++++++++++- .../azure/eventgrid/_version.py | 2 +- .../swagger/README.PYTHON_T2.md | 1 + 9 files changed, 2238 insertions(+), 3 deletions(-) diff --git a/sdk/eventgrid/azure-eventgrid/CHANGELOG.md b/sdk/eventgrid/azure-eventgrid/CHANGELOG.md index 2421976a45f9..5ec5738f2696 100644 --- a/sdk/eventgrid/azure-eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/azure-eventgrid/CHANGELOG.md @@ -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** diff --git a/sdk/eventgrid/azure-eventgrid/README.md b/sdk/eventgrid/azure-eventgrid/README.md index 24dda86076f0..713b1f75e622 100644 --- a/sdk/eventgrid/azure-eventgrid/README.md +++ b/sdk/eventgrid/azure-eventgrid/README.md @@ -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: diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py index c53c399f0bad..496857015759 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_event_mappings.py @@ -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' @@ -242,6 +272,8 @@ class SystemEventNames(str, Enum): ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventName = 'Microsoft.ServiceBus.DeadletterMessagesAvailablePeriodicNotifications' + ServiceBusDeadletterMessagesAvailableWithNoListenersEventName = 'Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners' + SignalRServiceClientConnectionConnectedEventName = 'Microsoft.SignalRService.ClientConnectionConnected' SignalRServiceClientConnectionDisconnectedEventName = 'Microsoft.SignalRService.ClientConnectionDisconnected' @@ -252,6 +284,8 @@ class SystemEventNames(str, Enum): StorageBlobDeletedEventName = 'Microsoft.Storage.BlobDeleted' + StorageBlobInventoryPolicyCompletedEventName = 'Microsoft.Storage.BlobInventoryPolicyCompleted' + StorageBlobRenamedEventName = 'Microsoft.Storage.BlobRenamed' StorageBlobTierChangedEventName = 'Microsoft.Storage.BlobTierChanged' diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/__init__.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/__init__.py index 0ee1c448ad4f..5925b9a88c40 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/__init__.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/__init__.py @@ -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 @@ -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 @@ -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 @@ -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 @@ -340,10 +372,12 @@ AppServicePlanAction, AsyncStatus, CommunicationCloudEnvironmentModel, + JobStatus, MediaJobErrorCategory, MediaJobErrorCode, MediaJobRetry, MediaJobState, + ResourceActionType, StampKind, ) @@ -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', @@ -487,6 +536,7 @@ 'StorageAsyncOperationInitiatedEventData', 'StorageBlobCreatedEventData', 'StorageBlobDeletedEventData', + 'StorageBlobInventoryPolicyCompletedEventData', 'StorageBlobRenamedEventData', 'StorageBlobTierChangedEventData', 'StorageDirectoryCreatedEventData', @@ -515,9 +565,11 @@ 'AppServicePlanAction', 'AsyncStatus', 'CommunicationCloudEnvironmentModel', + 'JobStatus', 'MediaJobErrorCategory', 'MediaJobErrorCode', 'MediaJobRetry', 'MediaJobState', + 'ResourceActionType', 'StampKind', ] diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_event_grid_publisher_client_enums.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_event_grid_publisher_client_enums.py index 31d1e2d6d0ff..6166ffbcac77 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_event_grid_publisher_client_enums.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_event_grid_publisher_client_enums.py @@ -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. """ @@ -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. """ diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models.py index 36ae090dd306..1d817689633a 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models.py @@ -957,12 +957,18 @@ class AcsRecordingChunkInfoProperties(msrest.serialization.Model): :type index: long :param end_reason: The reason for ending the recording chunk. :type end_reason: str + :param metadata_location: The location of the metadata for this chunk. + :type metadata_location: str + :param content_location: The location of the content for this chunk. + :type content_location: str """ _attribute_map = { 'document_id': {'key': 'documentId', 'type': 'str'}, 'index': {'key': 'index', 'type': 'long'}, 'end_reason': {'key': 'endReason', 'type': 'str'}, + 'metadata_location': {'key': 'metadataLocation', 'type': 'str'}, + 'content_location': {'key': 'contentLocation', 'type': 'str'}, } def __init__( @@ -973,6 +979,8 @@ def __init__( self.document_id = kwargs.get('document_id', None) self.index = kwargs.get('index', None) self.end_reason = kwargs.get('end_reason', None) + self.metadata_location = kwargs.get('metadata_location', None) + self.content_location = kwargs.get('content_location', None) class AcsRecordingFileStatusUpdatedEventData(msrest.serialization.Model): @@ -2153,6 +2161,923 @@ def __init__( self.last_enqueue_time = kwargs.get('last_enqueue_time', None) +class FarmBeatsApplicationDataChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.ApplicationDataChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param status: Status of the resource. + :type status: str + :param source: Source of the farm operation data. + :type source: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsApplicationDataChangedEventData, self).__init__(**kwargs) + self.action_type = kwargs.get('action_type', None) + self.farmer_id = kwargs.get('farmer_id', None) + self.status = kwargs.get('status', None) + self.source = kwargs.get('source', None) + self.modified_date_time = kwargs.get('modified_date_time', None) + self.e_tag = kwargs.get('e_tag', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsBoundaryChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.BoundaryChanged event. + + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param parent_id: Id of the parent(field or seasonalField) it belongs to. + :type parent_id: str + :param parent_type: Type of the parent it belongs to. + :type parent_type: str + :param is_primary: A boolean flag indicating whether the boundary is primary or not. + :type is_primary: bool + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'parent_id': {'key': 'parentId', 'type': 'str'}, + 'parent_type': {'key': 'parentType', 'type': 'str'}, + 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsBoundaryChangedEventData, self).__init__(**kwargs) + self.farmer_id = kwargs.get('farmer_id', None) + self.parent_id = kwargs.get('parent_id', None) + self.parent_type = kwargs.get('parent_type', None) + self.is_primary = kwargs.get('is_primary', None) + self.action_type = kwargs.get('action_type', None) + self.status = kwargs.get('status', None) + self.modified_date_time = kwargs.get('modified_date_time', None) + self.e_tag = kwargs.get('e_tag', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsCropChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsCropChangedEventData, self).__init__(**kwargs) + self.action_type = kwargs.get('action_type', None) + self.status = kwargs.get('status', None) + self.modified_date_time = kwargs.get('modified_date_time', None) + self.e_tag = kwargs.get('e_tag', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsCropVarietyChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropVarietyChanged event. + + :param crop_id: Id of the crop it belongs to. + :type crop_id: str + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'crop_id': {'key': 'cropId', 'type': 'str'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsCropVarietyChangedEventData, self).__init__(**kwargs) + self.crop_id = kwargs.get('crop_id', None) + self.action_type = kwargs.get('action_type', None) + self.status = kwargs.get('status', None) + self.modified_date_time = kwargs.get('modified_date_time', None) + self.e_tag = kwargs.get('e_tag', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsFarmChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmChanged event. + + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsFarmChangedEventData, self).__init__(**kwargs) + self.farmer_id = kwargs.get('farmer_id', None) + self.action_type = kwargs.get('action_type', None) + self.status = kwargs.get('status', None) + self.modified_date_time = kwargs.get('modified_date_time', None) + self.e_tag = kwargs.get('e_tag', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsFarmerChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmerChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsFarmerChangedEventData, self).__init__(**kwargs) + self.action_type = kwargs.get('action_type', None) + self.status = kwargs.get('status', None) + self.modified_date_time = kwargs.get('modified_date_time', None) + self.e_tag = kwargs.get('e_tag', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsFarmOperationDataIngestionJobStatusChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged event. + + :param farmer_id: Farmer id for which job was created. + :type farmer_id: str + :param message: Status message to capture more details of the job. + :type message: str + :param status: Various states a job can be in. Possible values include: "Waiting", "Running", + "Succeeded", "Failed", "Cancelled". + :type status: str or ~event_grid_publisher_client.models.JobStatus + :param last_action_date_time: Date-time when last action was taken on job, sample format: yyyy- + MM-ddTHH:mm:ssZ. + :type last_action_date_time: ~datetime.datetime + :param is_cancellation_requested: Flag that gets set when job cancellation is requested. + :type is_cancellation_requested: bool + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'last_action_date_time': {'key': 'lastActionDateTime', 'type': 'iso-8601'}, + 'is_cancellation_requested': {'key': 'isCancellationRequested', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsFarmOperationDataIngestionJobStatusChangedEventData, self).__init__(**kwargs) + self.farmer_id = kwargs.get('farmer_id', None) + self.message = kwargs.get('message', None) + self.status = kwargs.get('status', None) + self.last_action_date_time = kwargs.get('last_action_date_time', None) + self.is_cancellation_requested = kwargs.get('is_cancellation_requested', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsFieldChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FieldChanged event. + + :param farmer_id: Farmer Id. + :type farmer_id: str + :param farm_id: Id of the associated Farm. + :type farm_id: str + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'farm_id': {'key': 'farmId', 'type': 'str'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsFieldChangedEventData, self).__init__(**kwargs) + self.farmer_id = kwargs.get('farmer_id', None) + self.farm_id = kwargs.get('farm_id', None) + self.action_type = kwargs.get('action_type', None) + self.status = kwargs.get('status', None) + self.modified_date_time = kwargs.get('modified_date_time', None) + self.e_tag = kwargs.get('e_tag', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsHarvestDataChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.HarvestDataChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param status: Status of the resource. + :type status: str + :param source: Source of the farm operation data. + :type source: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsHarvestDataChangedEventData, self).__init__(**kwargs) + self.action_type = kwargs.get('action_type', None) + self.farmer_id = kwargs.get('farmer_id', None) + self.status = kwargs.get('status', None) + self.source = kwargs.get('source', None) + self.modified_date_time = kwargs.get('modified_date_time', None) + self.e_tag = kwargs.get('e_tag', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsPlantingDataChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.PlantingDataChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param status: Status of the resource. + :type status: str + :param source: Source of the farm operation data. + :type source: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsPlantingDataChangedEventData, self).__init__(**kwargs) + self.action_type = kwargs.get('action_type', None) + self.farmer_id = kwargs.get('farmer_id', None) + self.status = kwargs.get('status', None) + self.source = kwargs.get('source', None) + self.modified_date_time = kwargs.get('modified_date_time', None) + self.e_tag = kwargs.get('e_tag', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsSatelliteDataIngestionJobStatusChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged event. + + :param farmer_id: Farmer id for which job was created. + :type farmer_id: str + :param message: Status message to capture more details of the job. + :type message: str + :param status: Various states a job can be in. Possible values include: "Waiting", "Running", + "Succeeded", "Failed", "Cancelled". + :type status: str or ~event_grid_publisher_client.models.JobStatus + :param last_action_date_time: Date-time when last action was taken on job, sample format: yyyy- + MM-ddTHH:mm:ssZ. + :type last_action_date_time: ~datetime.datetime + :param is_cancellation_requested: Flag that gets set when job cancellation is requested. + :type is_cancellation_requested: bool + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'last_action_date_time': {'key': 'lastActionDateTime', 'type': 'iso-8601'}, + 'is_cancellation_requested': {'key': 'isCancellationRequested', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsSatelliteDataIngestionJobStatusChangedEventData, self).__init__(**kwargs) + self.farmer_id = kwargs.get('farmer_id', None) + self.message = kwargs.get('message', None) + self.status = kwargs.get('status', None) + self.last_action_date_time = kwargs.get('last_action_date_time', None) + self.is_cancellation_requested = kwargs.get('is_cancellation_requested', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsSeasonalFieldChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonalFieldChanged event. + + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param season_id: Id of the season it belongs to. + :type season_id: str + :param field_id: Id of the field it belongs to. + :type field_id: str + :param farm_id: Id of the associated Farm. + :type farm_id: str + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'season_id': {'key': 'seasonId', 'type': 'str'}, + 'field_id': {'key': 'fieldId', 'type': 'str'}, + 'farm_id': {'key': 'farmId', 'type': 'str'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsSeasonalFieldChangedEventData, self).__init__(**kwargs) + self.farmer_id = kwargs.get('farmer_id', None) + self.season_id = kwargs.get('season_id', None) + self.field_id = kwargs.get('field_id', None) + self.farm_id = kwargs.get('farm_id', None) + self.action_type = kwargs.get('action_type', None) + self.status = kwargs.get('status', None) + self.modified_date_time = kwargs.get('modified_date_time', None) + self.e_tag = kwargs.get('e_tag', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsSeasonChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsSeasonChangedEventData, self).__init__(**kwargs) + self.action_type = kwargs.get('action_type', None) + self.status = kwargs.get('status', None) + self.modified_date_time = kwargs.get('modified_date_time', None) + self.e_tag = kwargs.get('e_tag', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsTillageDataChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.TillageDataChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param status: Status of the resource. + :type status: str + :param source: Source of the farm operation data. + :type source: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsTillageDataChangedEventData, self).__init__(**kwargs) + self.action_type = kwargs.get('action_type', None) + self.farmer_id = kwargs.get('farmer_id', None) + self.status = kwargs.get('status', None) + self.source = kwargs.get('source', None) + self.modified_date_time = kwargs.get('modified_date_time', None) + self.e_tag = kwargs.get('e_tag', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + +class FarmBeatsWeatherDataIngestionJobStatusChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged event. + + :param farmer_id: Farmer id for which job was created. + :type farmer_id: str + :param message: Status message to capture more details of the job. + :type message: str + :param status: Various states a job can be in. Possible values include: "Waiting", "Running", + "Succeeded", "Failed", "Cancelled". + :type status: str or ~event_grid_publisher_client.models.JobStatus + :param last_action_date_time: Date-time when last action was taken on job, sample format: yyyy- + MM-ddTHH:mm:ssZ. + :type last_action_date_time: ~datetime.datetime + :param is_cancellation_requested: Flag that gets set when job cancellation is requested. + :type is_cancellation_requested: bool + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'last_action_date_time': {'key': 'lastActionDateTime', 'type': 'iso-8601'}, + 'is_cancellation_requested': {'key': 'isCancellationRequested', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + **kwargs + ): + super(FarmBeatsWeatherDataIngestionJobStatusChangedEventData, self).__init__(**kwargs) + self.farmer_id = kwargs.get('farmer_id', None) + self.message = kwargs.get('message', None) + self.status = kwargs.get('status', None) + self.last_action_date_time = kwargs.get('last_action_date_time', None) + self.is_cancellation_requested = kwargs.get('is_cancellation_requested', None) + self.id = kwargs.get('id', None) + self.name = kwargs.get('name', None) + self.description = kwargs.get('description', None) + self.created_date_time = kwargs.get('created_date_time', None) + self.properties = kwargs.get('properties', None) + + class IotHubDeviceConnectedEventData(DeviceConnectionStateEventProperties): """Event data for Microsoft.Devices.DeviceConnected event. @@ -5214,7 +6139,7 @@ def __init__( class ServiceBusDeadletterMessagesAvailableWithNoListenersEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for a Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListenersEvent event. + """Schema of the Data property of an EventGridEvent for a Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners event. :param namespace_name: The namespace name of the Microsoft.ServiceBus resource. :type namespace_name: str @@ -5511,6 +6436,50 @@ def __init__( self.storage_diagnostics = kwargs.get('storage_diagnostics', None) +class StorageBlobInventoryPolicyCompletedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobInventoryPolicyCompleted event. + + :param schedule_date_time: The time at which inventory policy was scheduled. + :type schedule_date_time: ~datetime.datetime + :param account_name: The account name for which inventory policy is registered. + :type account_name: str + :param rule_name: The rule name for inventory policy. + :type rule_name: str + :param policy_run_status: The status of inventory run, it can be + Succeeded/PartiallySucceeded/Failed. + :type policy_run_status: str + :param policy_run_status_message: The status message for inventory run. + :type policy_run_status_message: str + :param policy_run_id: The policy run id for inventory run. + :type policy_run_id: str + :param manifest_blob_url: The blob URL for manifest file for inventory run. + :type manifest_blob_url: str + """ + + _attribute_map = { + 'schedule_date_time': {'key': 'scheduleDateTime', 'type': 'iso-8601'}, + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'rule_name': {'key': 'ruleName', 'type': 'str'}, + 'policy_run_status': {'key': 'policyRunStatus', 'type': 'str'}, + 'policy_run_status_message': {'key': 'policyRunStatusMessage', 'type': 'str'}, + 'policy_run_id': {'key': 'policyRunId', 'type': 'str'}, + 'manifest_blob_url': {'key': 'manifestBlobUrl', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(StorageBlobInventoryPolicyCompletedEventData, self).__init__(**kwargs) + self.schedule_date_time = kwargs.get('schedule_date_time', None) + self.account_name = kwargs.get('account_name', None) + self.rule_name = kwargs.get('rule_name', None) + self.policy_run_status = kwargs.get('policy_run_status', None) + self.policy_run_status_message = kwargs.get('policy_run_status_message', None) + self.policy_run_id = kwargs.get('policy_run_id', None) + self.manifest_blob_url = kwargs.get('manifest_blob_url', None) + + class StorageBlobRenamedEventData(msrest.serialization.Model): """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobRenamed event. diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models_py3.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models_py3.py index cf0c04a1ef0b..1ed22b53712f 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models_py3.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_generated/models/_models_py3.py @@ -1148,12 +1148,18 @@ class AcsRecordingChunkInfoProperties(msrest.serialization.Model): :type index: long :param end_reason: The reason for ending the recording chunk. :type end_reason: str + :param metadata_location: The location of the metadata for this chunk. + :type metadata_location: str + :param content_location: The location of the content for this chunk. + :type content_location: str """ _attribute_map = { 'document_id': {'key': 'documentId', 'type': 'str'}, 'index': {'key': 'index', 'type': 'long'}, 'end_reason': {'key': 'endReason', 'type': 'str'}, + 'metadata_location': {'key': 'metadataLocation', 'type': 'str'}, + 'content_location': {'key': 'contentLocation', 'type': 'str'}, } def __init__( @@ -1162,12 +1168,16 @@ def __init__( document_id: Optional[str] = None, index: Optional[int] = None, end_reason: Optional[str] = None, + metadata_location: Optional[str] = None, + content_location: Optional[str] = None, **kwargs ): super(AcsRecordingChunkInfoProperties, self).__init__(**kwargs) self.document_id = document_id self.index = index self.end_reason = end_reason + self.metadata_location = metadata_location + self.content_location = content_location class AcsRecordingFileStatusUpdatedEventData(msrest.serialization.Model): @@ -2535,6 +2545,1096 @@ def __init__( self.last_enqueue_time = last_enqueue_time +class FarmBeatsApplicationDataChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.ApplicationDataChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param status: Status of the resource. + :type status: str + :param source: Source of the farm operation data. + :type source: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + action_type: Optional[Union[str, "ResourceActionType"]] = None, + farmer_id: Optional[str] = None, + status: Optional[str] = None, + source: Optional[str] = None, + modified_date_time: Optional[datetime.datetime] = None, + e_tag: Optional[str] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsApplicationDataChangedEventData, self).__init__(**kwargs) + self.action_type = action_type + self.farmer_id = farmer_id + self.status = status + self.source = source + self.modified_date_time = modified_date_time + self.e_tag = e_tag + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsBoundaryChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.BoundaryChanged event. + + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param parent_id: Id of the parent(field or seasonalField) it belongs to. + :type parent_id: str + :param parent_type: Type of the parent it belongs to. + :type parent_type: str + :param is_primary: A boolean flag indicating whether the boundary is primary or not. + :type is_primary: bool + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'parent_id': {'key': 'parentId', 'type': 'str'}, + 'parent_type': {'key': 'parentType', 'type': 'str'}, + 'is_primary': {'key': 'isPrimary', 'type': 'bool'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + farmer_id: Optional[str] = None, + parent_id: Optional[str] = None, + parent_type: Optional[str] = None, + is_primary: Optional[bool] = None, + action_type: Optional[Union[str, "ResourceActionType"]] = None, + status: Optional[str] = None, + modified_date_time: Optional[datetime.datetime] = None, + e_tag: Optional[str] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsBoundaryChangedEventData, self).__init__(**kwargs) + self.farmer_id = farmer_id + self.parent_id = parent_id + self.parent_type = parent_type + self.is_primary = is_primary + self.action_type = action_type + self.status = status + self.modified_date_time = modified_date_time + self.e_tag = e_tag + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsCropChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + action_type: Optional[Union[str, "ResourceActionType"]] = None, + status: Optional[str] = None, + modified_date_time: Optional[datetime.datetime] = None, + e_tag: Optional[str] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsCropChangedEventData, self).__init__(**kwargs) + self.action_type = action_type + self.status = status + self.modified_date_time = modified_date_time + self.e_tag = e_tag + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsCropVarietyChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropVarietyChanged event. + + :param crop_id: Id of the crop it belongs to. + :type crop_id: str + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'crop_id': {'key': 'cropId', 'type': 'str'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + crop_id: Optional[str] = None, + action_type: Optional[Union[str, "ResourceActionType"]] = None, + status: Optional[str] = None, + modified_date_time: Optional[datetime.datetime] = None, + e_tag: Optional[str] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsCropVarietyChangedEventData, self).__init__(**kwargs) + self.crop_id = crop_id + self.action_type = action_type + self.status = status + self.modified_date_time = modified_date_time + self.e_tag = e_tag + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsFarmChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmChanged event. + + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + farmer_id: Optional[str] = None, + action_type: Optional[Union[str, "ResourceActionType"]] = None, + status: Optional[str] = None, + modified_date_time: Optional[datetime.datetime] = None, + e_tag: Optional[str] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsFarmChangedEventData, self).__init__(**kwargs) + self.farmer_id = farmer_id + self.action_type = action_type + self.status = status + self.modified_date_time = modified_date_time + self.e_tag = e_tag + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsFarmerChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmerChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + action_type: Optional[Union[str, "ResourceActionType"]] = None, + status: Optional[str] = None, + modified_date_time: Optional[datetime.datetime] = None, + e_tag: Optional[str] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsFarmerChangedEventData, self).__init__(**kwargs) + self.action_type = action_type + self.status = status + self.modified_date_time = modified_date_time + self.e_tag = e_tag + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsFarmOperationDataIngestionJobStatusChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged event. + + :param farmer_id: Farmer id for which job was created. + :type farmer_id: str + :param message: Status message to capture more details of the job. + :type message: str + :param status: Various states a job can be in. Possible values include: "Waiting", "Running", + "Succeeded", "Failed", "Cancelled". + :type status: str or ~event_grid_publisher_client.models.JobStatus + :param last_action_date_time: Date-time when last action was taken on job, sample format: yyyy- + MM-ddTHH:mm:ssZ. + :type last_action_date_time: ~datetime.datetime + :param is_cancellation_requested: Flag that gets set when job cancellation is requested. + :type is_cancellation_requested: bool + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'last_action_date_time': {'key': 'lastActionDateTime', 'type': 'iso-8601'}, + 'is_cancellation_requested': {'key': 'isCancellationRequested', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + farmer_id: Optional[str] = None, + message: Optional[str] = None, + status: Optional[Union[str, "JobStatus"]] = None, + last_action_date_time: Optional[datetime.datetime] = None, + is_cancellation_requested: Optional[bool] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsFarmOperationDataIngestionJobStatusChangedEventData, self).__init__(**kwargs) + self.farmer_id = farmer_id + self.message = message + self.status = status + self.last_action_date_time = last_action_date_time + self.is_cancellation_requested = is_cancellation_requested + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsFieldChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FieldChanged event. + + :param farmer_id: Farmer Id. + :type farmer_id: str + :param farm_id: Id of the associated Farm. + :type farm_id: str + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'farm_id': {'key': 'farmId', 'type': 'str'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + farmer_id: Optional[str] = None, + farm_id: Optional[str] = None, + action_type: Optional[Union[str, "ResourceActionType"]] = None, + status: Optional[str] = None, + modified_date_time: Optional[datetime.datetime] = None, + e_tag: Optional[str] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsFieldChangedEventData, self).__init__(**kwargs) + self.farmer_id = farmer_id + self.farm_id = farm_id + self.action_type = action_type + self.status = status + self.modified_date_time = modified_date_time + self.e_tag = e_tag + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsHarvestDataChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.HarvestDataChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param status: Status of the resource. + :type status: str + :param source: Source of the farm operation data. + :type source: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + action_type: Optional[Union[str, "ResourceActionType"]] = None, + farmer_id: Optional[str] = None, + status: Optional[str] = None, + source: Optional[str] = None, + modified_date_time: Optional[datetime.datetime] = None, + e_tag: Optional[str] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsHarvestDataChangedEventData, self).__init__(**kwargs) + self.action_type = action_type + self.farmer_id = farmer_id + self.status = status + self.source = source + self.modified_date_time = modified_date_time + self.e_tag = e_tag + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsPlantingDataChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.PlantingDataChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param status: Status of the resource. + :type status: str + :param source: Source of the farm operation data. + :type source: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + action_type: Optional[Union[str, "ResourceActionType"]] = None, + farmer_id: Optional[str] = None, + status: Optional[str] = None, + source: Optional[str] = None, + modified_date_time: Optional[datetime.datetime] = None, + e_tag: Optional[str] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsPlantingDataChangedEventData, self).__init__(**kwargs) + self.action_type = action_type + self.farmer_id = farmer_id + self.status = status + self.source = source + self.modified_date_time = modified_date_time + self.e_tag = e_tag + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsSatelliteDataIngestionJobStatusChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged event. + + :param farmer_id: Farmer id for which job was created. + :type farmer_id: str + :param message: Status message to capture more details of the job. + :type message: str + :param status: Various states a job can be in. Possible values include: "Waiting", "Running", + "Succeeded", "Failed", "Cancelled". + :type status: str or ~event_grid_publisher_client.models.JobStatus + :param last_action_date_time: Date-time when last action was taken on job, sample format: yyyy- + MM-ddTHH:mm:ssZ. + :type last_action_date_time: ~datetime.datetime + :param is_cancellation_requested: Flag that gets set when job cancellation is requested. + :type is_cancellation_requested: bool + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'last_action_date_time': {'key': 'lastActionDateTime', 'type': 'iso-8601'}, + 'is_cancellation_requested': {'key': 'isCancellationRequested', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + farmer_id: Optional[str] = None, + message: Optional[str] = None, + status: Optional[Union[str, "JobStatus"]] = None, + last_action_date_time: Optional[datetime.datetime] = None, + is_cancellation_requested: Optional[bool] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsSatelliteDataIngestionJobStatusChangedEventData, self).__init__(**kwargs) + self.farmer_id = farmer_id + self.message = message + self.status = status + self.last_action_date_time = last_action_date_time + self.is_cancellation_requested = is_cancellation_requested + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsSeasonalFieldChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonalFieldChanged event. + + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param season_id: Id of the season it belongs to. + :type season_id: str + :param field_id: Id of the field it belongs to. + :type field_id: str + :param farm_id: Id of the associated Farm. + :type farm_id: str + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'season_id': {'key': 'seasonId', 'type': 'str'}, + 'field_id': {'key': 'fieldId', 'type': 'str'}, + 'farm_id': {'key': 'farmId', 'type': 'str'}, + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + farmer_id: Optional[str] = None, + season_id: Optional[str] = None, + field_id: Optional[str] = None, + farm_id: Optional[str] = None, + action_type: Optional[Union[str, "ResourceActionType"]] = None, + status: Optional[str] = None, + modified_date_time: Optional[datetime.datetime] = None, + e_tag: Optional[str] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsSeasonalFieldChangedEventData, self).__init__(**kwargs) + self.farmer_id = farmer_id + self.season_id = season_id + self.field_id = field_id + self.farm_id = farm_id + self.action_type = action_type + self.status = status + self.modified_date_time = modified_date_time + self.e_tag = e_tag + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsSeasonChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param status: Status of the resource. + :type status: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + action_type: Optional[Union[str, "ResourceActionType"]] = None, + status: Optional[str] = None, + modified_date_time: Optional[datetime.datetime] = None, + e_tag: Optional[str] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsSeasonChangedEventData, self).__init__(**kwargs) + self.action_type = action_type + self.status = status + self.modified_date_time = modified_date_time + self.e_tag = e_tag + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsTillageDataChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.TillageDataChanged event. + + :param action_type: Action occurred on a resource. Possible values include: "Created", + "Updated", "Deleted". + :type action_type: str or ~event_grid_publisher_client.models.ResourceActionType + :param farmer_id: Id of the farmer it belongs to. + :type farmer_id: str + :param status: Status of the resource. + :type status: str + :param source: Source of the farm operation data. + :type source: str + :param modified_date_time: Date-time when resource was last modified, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type modified_date_time: ~datetime.datetime + :param e_tag: The ETag value to implement optimistic concurrency. + :type e_tag: str + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'action_type': {'key': 'actionType', 'type': 'str'}, + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'source': {'key': 'source', 'type': 'str'}, + 'modified_date_time': {'key': 'modifiedDateTime', 'type': 'iso-8601'}, + 'e_tag': {'key': 'eTag', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + action_type: Optional[Union[str, "ResourceActionType"]] = None, + farmer_id: Optional[str] = None, + status: Optional[str] = None, + source: Optional[str] = None, + modified_date_time: Optional[datetime.datetime] = None, + e_tag: Optional[str] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsTillageDataChangedEventData, self).__init__(**kwargs) + self.action_type = action_type + self.farmer_id = farmer_id + self.status = status + self.source = source + self.modified_date_time = modified_date_time + self.e_tag = e_tag + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + +class FarmBeatsWeatherDataIngestionJobStatusChangedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged event. + + :param farmer_id: Farmer id for which job was created. + :type farmer_id: str + :param message: Status message to capture more details of the job. + :type message: str + :param status: Various states a job can be in. Possible values include: "Waiting", "Running", + "Succeeded", "Failed", "Cancelled". + :type status: str or ~event_grid_publisher_client.models.JobStatus + :param last_action_date_time: Date-time when last action was taken on job, sample format: yyyy- + MM-ddTHH:mm:ssZ. + :type last_action_date_time: ~datetime.datetime + :param is_cancellation_requested: Flag that gets set when job cancellation is requested. + :type is_cancellation_requested: bool + :param id: Unique id of resource. + :type id: str + :param name: Name to identify resource. + :type name: str + :param description: Textual description of resource. + :type description: str + :param created_date_time: Date-time when resource was created, sample format: yyyy-MM- + ddTHH:mm:ssZ. + :type created_date_time: ~datetime.datetime + :param properties: A list of key value pairs that describe the resource. + Only string and numeral values are supported. + :type properties: dict[str, object] + """ + + _attribute_map = { + 'farmer_id': {'key': 'farmerId', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'last_action_date_time': {'key': 'lastActionDateTime', 'type': 'iso-8601'}, + 'is_cancellation_requested': {'key': 'isCancellationRequested', 'type': 'bool'}, + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'properties': {'key': 'properties', 'type': '{object}'}, + } + + def __init__( + self, + *, + farmer_id: Optional[str] = None, + message: Optional[str] = None, + status: Optional[Union[str, "JobStatus"]] = None, + last_action_date_time: Optional[datetime.datetime] = None, + is_cancellation_requested: Optional[bool] = None, + id: Optional[str] = None, + name: Optional[str] = None, + description: Optional[str] = None, + created_date_time: Optional[datetime.datetime] = None, + properties: Optional[Dict[str, object]] = None, + **kwargs + ): + super(FarmBeatsWeatherDataIngestionJobStatusChangedEventData, self).__init__(**kwargs) + self.farmer_id = farmer_id + self.message = message + self.status = status + self.last_action_date_time = last_action_date_time + self.is_cancellation_requested = is_cancellation_requested + self.id = id + self.name = name + self.description = description + self.created_date_time = created_date_time + self.properties = properties + + class IotHubDeviceConnectedEventData(DeviceConnectionStateEventProperties): """Event data for Microsoft.Devices.DeviceConnected event. @@ -5988,7 +7088,7 @@ def __init__( class ServiceBusDeadletterMessagesAvailableWithNoListenersEventData(msrest.serialization.Model): - """Schema of the Data property of an EventGridEvent for a Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListenersEvent event. + """Schema of the Data property of an EventGridEvent for a Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners event. :param namespace_name: The namespace name of the Microsoft.ServiceBus resource. :type namespace_name: str @@ -6337,6 +7437,58 @@ def __init__( self.storage_diagnostics = storage_diagnostics +class StorageBlobInventoryPolicyCompletedEventData(msrest.serialization.Model): + """Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobInventoryPolicyCompleted event. + + :param schedule_date_time: The time at which inventory policy was scheduled. + :type schedule_date_time: ~datetime.datetime + :param account_name: The account name for which inventory policy is registered. + :type account_name: str + :param rule_name: The rule name for inventory policy. + :type rule_name: str + :param policy_run_status: The status of inventory run, it can be + Succeeded/PartiallySucceeded/Failed. + :type policy_run_status: str + :param policy_run_status_message: The status message for inventory run. + :type policy_run_status_message: str + :param policy_run_id: The policy run id for inventory run. + :type policy_run_id: str + :param manifest_blob_url: The blob URL for manifest file for inventory run. + :type manifest_blob_url: str + """ + + _attribute_map = { + 'schedule_date_time': {'key': 'scheduleDateTime', 'type': 'iso-8601'}, + 'account_name': {'key': 'accountName', 'type': 'str'}, + 'rule_name': {'key': 'ruleName', 'type': 'str'}, + 'policy_run_status': {'key': 'policyRunStatus', 'type': 'str'}, + 'policy_run_status_message': {'key': 'policyRunStatusMessage', 'type': 'str'}, + 'policy_run_id': {'key': 'policyRunId', 'type': 'str'}, + 'manifest_blob_url': {'key': 'manifestBlobUrl', 'type': 'str'}, + } + + def __init__( + self, + *, + schedule_date_time: Optional[datetime.datetime] = None, + account_name: Optional[str] = None, + rule_name: Optional[str] = None, + policy_run_status: Optional[str] = None, + policy_run_status_message: Optional[str] = None, + policy_run_id: Optional[str] = None, + manifest_blob_url: Optional[str] = None, + **kwargs + ): + super(StorageBlobInventoryPolicyCompletedEventData, self).__init__(**kwargs) + self.schedule_date_time = schedule_date_time + self.account_name = account_name + self.rule_name = rule_name + self.policy_run_status = policy_run_status + self.policy_run_status_message = policy_run_status_message + self.policy_run_id = policy_run_id + self.manifest_blob_url = manifest_blob_url + + class StorageBlobRenamedEventData(msrest.serialization.Model): """Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobRenamed event. diff --git a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_version.py b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_version.py index 438e8838cdee..7d34055fa91f 100644 --- a/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_version.py +++ b/sdk/eventgrid/azure-eventgrid/azure/eventgrid/_version.py @@ -9,4 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "4.2.0" +VERSION = "4.3.0" diff --git a/sdk/eventgrid/azure-eventgrid/swagger/README.PYTHON_T2.md b/sdk/eventgrid/azure-eventgrid/swagger/README.PYTHON_T2.md index 598285dd3c70..6c7c56935864 100644 --- a/sdk/eventgrid/azure-eventgrid/swagger/README.PYTHON_T2.md +++ b/sdk/eventgrid/azure-eventgrid/swagger/README.PYTHON_T2.md @@ -30,6 +30,7 @@ input-file: - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/eventgrid/data-plane/Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json + - https://github.com/Azure/azure-rest-api-specs/blob/master/specification/eventgrid/data-plane/Microsoft.AgFoodPlatform/stable/2018-01-01/AzureFarmBeats.json python: true v3: true