From af86b363f0481653bbc821eb677a101c1dd64801 Mon Sep 17 00:00:00 2001
From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
Date: Tue, 8 Jun 2021 11:55:23 -0700
Subject: [PATCH] Remove FarmBeats
---
.../Azure.Messaging.EventGrid/CHANGELOG.md | 15 -
.../src/Generated/EventGridModelFactory.cs | 338 ------------------
...ationDataChangedEventData.Serialization.cs | 131 -------
...dFarmingApplicationDataChangedEventData.cs | 81 -----
...gBoundaryChangedEventData.Serialization.cs | 148 --------
...AgriFoodFarmingBoundaryChangedEventData.cs | 89 -----
...rmingCropChangedEventData.Serialization.cs | 119 ------
.../AgriFoodFarmingCropChangedEventData.cs | 73 ----
...opVarietyChangedEventData.Serialization.cs | 125 -------
...iFoodFarmingCropVarietyChangedEventData.cs | 77 ----
...rmingFarmChangedEventData.Serialization.cs | 125 -------
.../AgriFoodFarmingFarmChangedEventData.cs | 77 ----
...JobStatusChangedEventData.Serialization.cs | 130 -------
...nDataIngestionJobStatusChangedEventData.cs | 77 ----
...ingFarmerChangedEventData.Serialization.cs | 119 ------
.../AgriFoodFarmingFarmerChangedEventData.cs | 73 ----
...mingFieldChangedEventData.Serialization.cs | 131 -------
.../AgriFoodFarmingFieldChangedEventData.cs | 81 -----
...rvestDataChangedEventData.Serialization.cs | 131 -------
...iFoodFarmingHarvestDataChangedEventData.cs | 81 -----
.../Models/AgriFoodFarmingJobStatus.cs | 60 ----
...ntingDataChangedEventData.Serialization.cs | 131 -------
...FoodFarmingPlantingDataChangedEventData.cs | 81 -----
.../AgriFoodFarmingResourceActionType.cs | 54 ---
...JobStatusChangedEventData.Serialization.cs | 130 -------
...eDataIngestionJobStatusChangedEventData.cs | 77 ----
...ingSeasonChangedEventData.Serialization.cs | 119 ------
.../AgriFoodFarmingSeasonChangedEventData.cs | 73 ----
...onalFieldChangedEventData.Serialization.cs | 143 --------
...oodFarmingSeasonalFieldChangedEventData.cs | 89 -----
...llageDataChangedEventData.Serialization.cs | 131 -------
...iFoodFarmingTillageDataChangedEventData.cs | 81 -----
...JobStatusChangedEventData.Serialization.cs | 130 -------
...rDataIngestionJobStatusChangedEventData.cs | 77 ----
.../Azure.Messaging.EventGrid/src/autorest.md | 2 +-
35 files changed, 1 insertion(+), 3598 deletions(-)
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingApplicationDataChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingApplicationDataChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingBoundaryChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingBoundaryChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropVarietyChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropVarietyChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmerChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmerChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFieldChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFieldChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingHarvestDataChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingHarvestDataChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingJobStatus.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingPlantingDataChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingPlantingDataChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingResourceActionType.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonalFieldChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonalFieldChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingTillageDataChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingTillageDataChangedEventData.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.Serialization.cs
delete mode 100644 sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.cs
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/CHANGELOG.md b/sdk/eventgrid/Azure.Messaging.EventGrid/CHANGELOG.md
index e27011ddaa51a..54cdb930ed598 100644
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/CHANGELOG.md
+++ b/sdk/eventgrid/Azure.Messaging.EventGrid/CHANGELOG.md
@@ -4,21 +4,6 @@
### New Features
* Added the following new system events:
- - AgriFoodFarmingApplicationDataChangedEventData
- - AgriFoodFarmingBoundaryChangedEventData
- - AgriFoodFarmingCropChangedEventData
- - AgriFoodFarmingCropVarietyChangedEventData
- - AgriFoodFarmingFarmChangedEventData
- - AgriFoodFarmingFarmerChangedEventData
- - AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData
- - AgriFoodFarmingFieldChangedEventData
- - AgriFoodFarmingHarvestDataChangedEventData
- - AgriFoodFarmingPlantingDataChangedEventData
- - AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData
- - AgriFoodFarmingSeasonalFieldChangedEventData
- - AgriFoodFarmingSeasonChangedEventData
- - AgriFoodFarmingTillageDataChangedEventData
- - AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData
- StorageBlobInventoryPolicyCompletedEventData
* Updated existing system events:
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs
index 84df886ceaeef..8a536d53b1b63 100644
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs
+++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs
@@ -1868,343 +1868,5 @@ public static PolicyInsightsPolicyStateDeletedEventData PolicyInsightsPolicyStat
{
return new PolicyInsightsPolicyStateDeletedEventData(timestamp, policyAssignmentId, policyDefinitionId, policyDefinitionReferenceId, complianceState, subscriptionId, complianceReasonCode);
}
-
- /// Initializes new instance of AgriFoodFarmingBoundaryChangedEventData class.
- /// Id of the farmer it belongs to.
- /// Id of the parent(field or seasonalField) it belongs to.
- /// Type of the parent it belongs to.
- /// A boolean flag indicating whether the boundary is primary or not.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingBoundaryChangedEventData AgriFoodFarmingBoundaryChangedEventData(string farmerId = default, string parentId = default, string parentType = default, bool? isPrimary = default, AgriFoodFarmingResourceActionType? actionType = default, string status = default, DateTimeOffset? modifiedDateTime = default, string eTag = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingBoundaryChangedEventData(farmerId, parentId, parentType, isPrimary, actionType, status, modifiedDateTime, eTag, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingCropChangedEventData class.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingCropChangedEventData AgriFoodFarmingCropChangedEventData(AgriFoodFarmingResourceActionType? actionType = default, string status = default, DateTimeOffset? modifiedDateTime = default, string eTag = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingCropChangedEventData(actionType, status, modifiedDateTime, eTag, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingCropVarietyChangedEventData class.
- /// Id of the crop it belongs to.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingCropVarietyChangedEventData AgriFoodFarmingCropVarietyChangedEventData(string cropId = default, AgriFoodFarmingResourceActionType? actionType = default, string status = default, DateTimeOffset? modifiedDateTime = default, string eTag = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingCropVarietyChangedEventData(cropId, actionType, status, modifiedDateTime, eTag, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingFarmChangedEventData class.
- /// Id of the farmer it belongs to.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingFarmChangedEventData AgriFoodFarmingFarmChangedEventData(string farmerId = default, AgriFoodFarmingResourceActionType? actionType = default, string status = default, DateTimeOffset? modifiedDateTime = default, string eTag = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingFarmChangedEventData(farmerId, actionType, status, modifiedDateTime, eTag, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingFarmerChangedEventData class.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingFarmerChangedEventData AgriFoodFarmingFarmerChangedEventData(AgriFoodFarmingResourceActionType? actionType = default, string status = default, DateTimeOffset? modifiedDateTime = default, string eTag = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingFarmerChangedEventData(actionType, status, modifiedDateTime, eTag, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingFieldChangedEventData class.
- /// Farmer Id.
- /// Id of the associated Farm.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingFieldChangedEventData AgriFoodFarmingFieldChangedEventData(string farmerId = default, string farmId = default, AgriFoodFarmingResourceActionType? actionType = default, string status = default, DateTimeOffset? modifiedDateTime = default, string eTag = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingFieldChangedEventData(farmerId, farmId, actionType, status, modifiedDateTime, eTag, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingSeasonalFieldChangedEventData class.
- /// Id of the farmer it belongs to.
- /// Id of the season it belongs to.
- /// Id of the field it belongs to.
- /// Id of the associated Farm.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingSeasonalFieldChangedEventData AgriFoodFarmingSeasonalFieldChangedEventData(string farmerId = default, string seasonId = default, string fieldId = default, string farmId = default, AgriFoodFarmingResourceActionType? actionType = default, string status = default, DateTimeOffset? modifiedDateTime = default, string eTag = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingSeasonalFieldChangedEventData(farmerId, seasonId, fieldId, farmId, actionType, status, modifiedDateTime, eTag, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingSeasonChangedEventData class.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingSeasonChangedEventData AgriFoodFarmingSeasonChangedEventData(AgriFoodFarmingResourceActionType? actionType = default, string status = default, DateTimeOffset? modifiedDateTime = default, string eTag = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingSeasonChangedEventData(actionType, status, modifiedDateTime, eTag, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingApplicationDataChangedEventData class.
- /// Action occurred on a resource.
- /// Id of the farmer it belongs to.
- /// Status of the resource.
- /// Source of the farm operation data.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingApplicationDataChangedEventData AgriFoodFarmingApplicationDataChangedEventData(AgriFoodFarmingResourceActionType? actionType = default, string farmerId = default, string status = default, string source = default, DateTimeOffset? modifiedDateTime = default, string eTag = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingApplicationDataChangedEventData(actionType, farmerId, status, source, modifiedDateTime, eTag, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingPlantingDataChangedEventData class.
- /// Action occurred on a resource.
- /// Id of the farmer it belongs to.
- /// Status of the resource.
- /// Source of the farm operation data.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingPlantingDataChangedEventData AgriFoodFarmingPlantingDataChangedEventData(AgriFoodFarmingResourceActionType? actionType = default, string farmerId = default, string status = default, string source = default, DateTimeOffset? modifiedDateTime = default, string eTag = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingPlantingDataChangedEventData(actionType, farmerId, status, source, modifiedDateTime, eTag, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingHarvestDataChangedEventData class.
- /// Action occurred on a resource.
- /// Id of the farmer it belongs to.
- /// Status of the resource.
- /// Source of the farm operation data.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingHarvestDataChangedEventData AgriFoodFarmingHarvestDataChangedEventData(AgriFoodFarmingResourceActionType? actionType = default, string farmerId = default, string status = default, string source = default, DateTimeOffset? modifiedDateTime = default, string eTag = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingHarvestDataChangedEventData(actionType, farmerId, status, source, modifiedDateTime, eTag, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingTillageDataChangedEventData class.
- /// Action occurred on a resource.
- /// Id of the farmer it belongs to.
- /// Status of the resource.
- /// Source of the farm operation data.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingTillageDataChangedEventData AgriFoodFarmingTillageDataChangedEventData(AgriFoodFarmingResourceActionType? actionType = default, string farmerId = default, string status = default, string source = default, DateTimeOffset? modifiedDateTime = default, string eTag = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingTillageDataChangedEventData(actionType, farmerId, status, source, modifiedDateTime, eTag, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData class.
- /// Farmer id for which job was created.
- /// Status message to capture more details of the job.
- /// Various states a job can be in.
- /// Date-time when last action was taken on job, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// Flag that gets set when job cancellation is requested.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData(string farmerId = default, string message = default, AgriFoodFarmingJobStatus? status = default, DateTimeOffset? lastActionDateTime = default, bool? isCancellationRequested = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData(farmerId, message, status, lastActionDateTime, isCancellationRequested, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData class.
- /// Farmer id for which job was created.
- /// Status message to capture more details of the job.
- /// Various states a job can be in.
- /// Date-time when last action was taken on job, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// Flag that gets set when job cancellation is requested.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData(string farmerId = default, string message = default, AgriFoodFarmingJobStatus? status = default, DateTimeOffset? lastActionDateTime = default, bool? isCancellationRequested = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData(farmerId, message, status, lastActionDateTime, isCancellationRequested, id, name, description, createdDateTime, properties);
- }
-
- /// Initializes new instance of AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData class.
- /// Farmer id for which job was created.
- /// Status message to capture more details of the job.
- /// Various states a job can be in.
- /// Date-time when last action was taken on job, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// Flag that gets set when job cancellation is requested.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- /// A new instance for mocking.
- public static AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData(string farmerId = default, string message = default, AgriFoodFarmingJobStatus? status = default, DateTimeOffset? lastActionDateTime = default, bool? isCancellationRequested = default, string id = default, string name = default, string description = default, DateTimeOffset? createdDateTime = default, IReadOnlyDictionary properties = default)
- {
- properties ??= new Dictionary();
- return new AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData(farmerId, message, status, lastActionDateTime, isCancellationRequested, id, name, description, createdDateTime, properties);
- }
}
}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingApplicationDataChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingApplicationDataChangedEventData.Serialization.cs
deleted file mode 100644
index 17dc76a471d21..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingApplicationDataChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,131 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingApplicationDataChangedEventDataConverter))]
- public partial class AgriFoodFarmingApplicationDataChangedEventData
- {
- internal static AgriFoodFarmingApplicationDataChangedEventData DeserializeAgriFoodFarmingApplicationDataChangedEventData(JsonElement element)
- {
- Optional actionType = default;
- Optional farmerId = default;
- Optional status = default;
- Optional source = default;
- Optional modifiedDateTime = default;
- Optional eTag = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("actionType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- actionType = new AgriFoodFarmingResourceActionType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("farmerId"))
- {
- farmerId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("status"))
- {
- status = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("source"))
- {
- source = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("modifiedDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- modifiedDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("eTag"))
- {
- eTag = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingApplicationDataChangedEventData(Optional.ToNullable(actionType), farmerId.Value, status.Value, source.Value, Optional.ToNullable(modifiedDateTime), eTag.Value, id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingApplicationDataChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingApplicationDataChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingApplicationDataChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingApplicationDataChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingApplicationDataChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingApplicationDataChangedEventData.cs
deleted file mode 100644
index 16c1673f92333..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingApplicationDataChangedEventData.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.ApplicationDataChanged event.
- public partial class AgriFoodFarmingApplicationDataChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingApplicationDataChangedEventData.
- internal AgriFoodFarmingApplicationDataChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingApplicationDataChangedEventData.
- /// Action occurred on a resource.
- /// Id of the farmer it belongs to.
- /// Status of the resource.
- /// Source of the farm operation data.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingApplicationDataChangedEventData(AgriFoodFarmingResourceActionType? actionType, string farmerId, string status, string source, DateTimeOffset? modifiedDateTime, string eTag, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- ActionType = actionType;
- FarmerId = farmerId;
- Status = status;
- Source = source;
- ModifiedDateTime = modifiedDateTime;
- ETag = eTag;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Action occurred on a resource.
- public AgriFoodFarmingResourceActionType? ActionType { get; }
- /// Id of the farmer it belongs to.
- public string FarmerId { get; }
- /// Status of the resource.
- public string Status { get; }
- /// Source of the farm operation data.
- public string Source { get; }
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? ModifiedDateTime { get; }
- /// The ETag value to implement optimistic concurrency.
- public string ETag { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingBoundaryChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingBoundaryChangedEventData.Serialization.cs
deleted file mode 100644
index 40914ac7f303f..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingBoundaryChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,148 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingBoundaryChangedEventDataConverter))]
- public partial class AgriFoodFarmingBoundaryChangedEventData
- {
- internal static AgriFoodFarmingBoundaryChangedEventData DeserializeAgriFoodFarmingBoundaryChangedEventData(JsonElement element)
- {
- Optional farmerId = default;
- Optional parentId = default;
- Optional parentType = default;
- Optional isPrimary = default;
- Optional actionType = default;
- Optional status = default;
- Optional modifiedDateTime = default;
- Optional eTag = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("farmerId"))
- {
- farmerId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("parentId"))
- {
- parentId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("parentType"))
- {
- parentType = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("isPrimary"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- isPrimary = property.Value.GetBoolean();
- continue;
- }
- if (property.NameEquals("actionType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- actionType = new AgriFoodFarmingResourceActionType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("status"))
- {
- status = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("modifiedDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- modifiedDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("eTag"))
- {
- eTag = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingBoundaryChangedEventData(farmerId.Value, parentId.Value, parentType.Value, Optional.ToNullable(isPrimary), Optional.ToNullable(actionType), status.Value, Optional.ToNullable(modifiedDateTime), eTag.Value, id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingBoundaryChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingBoundaryChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingBoundaryChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingBoundaryChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingBoundaryChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingBoundaryChangedEventData.cs
deleted file mode 100644
index f1bc4795ecdac..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingBoundaryChangedEventData.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.BoundaryChanged event.
- public partial class AgriFoodFarmingBoundaryChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingBoundaryChangedEventData.
- internal AgriFoodFarmingBoundaryChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingBoundaryChangedEventData.
- /// Id of the farmer it belongs to.
- /// Id of the parent(field or seasonalField) it belongs to.
- /// Type of the parent it belongs to.
- /// A boolean flag indicating whether the boundary is primary or not.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingBoundaryChangedEventData(string farmerId, string parentId, string parentType, bool? isPrimary, AgriFoodFarmingResourceActionType? actionType, string status, DateTimeOffset? modifiedDateTime, string eTag, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- FarmerId = farmerId;
- ParentId = parentId;
- ParentType = parentType;
- IsPrimary = isPrimary;
- ActionType = actionType;
- Status = status;
- ModifiedDateTime = modifiedDateTime;
- ETag = eTag;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Id of the farmer it belongs to.
- public string FarmerId { get; }
- /// Id of the parent(field or seasonalField) it belongs to.
- public string ParentId { get; }
- /// Type of the parent it belongs to.
- public string ParentType { get; }
- /// A boolean flag indicating whether the boundary is primary or not.
- public bool? IsPrimary { get; }
- /// Action occurred on a resource.
- public AgriFoodFarmingResourceActionType? ActionType { get; }
- /// Status of the resource.
- public string Status { get; }
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? ModifiedDateTime { get; }
- /// The ETag value to implement optimistic concurrency.
- public string ETag { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropChangedEventData.Serialization.cs
deleted file mode 100644
index 6f9d0e5222f9a..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,119 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingCropChangedEventDataConverter))]
- public partial class AgriFoodFarmingCropChangedEventData
- {
- internal static AgriFoodFarmingCropChangedEventData DeserializeAgriFoodFarmingCropChangedEventData(JsonElement element)
- {
- Optional actionType = default;
- Optional status = default;
- Optional modifiedDateTime = default;
- Optional eTag = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("actionType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- actionType = new AgriFoodFarmingResourceActionType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("status"))
- {
- status = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("modifiedDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- modifiedDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("eTag"))
- {
- eTag = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingCropChangedEventData(Optional.ToNullable(actionType), status.Value, Optional.ToNullable(modifiedDateTime), eTag.Value, id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingCropChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingCropChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingCropChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingCropChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropChangedEventData.cs
deleted file mode 100644
index 46a9e197f07f0..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropChangedEventData.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropChanged event.
- public partial class AgriFoodFarmingCropChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingCropChangedEventData.
- internal AgriFoodFarmingCropChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingCropChangedEventData.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingCropChangedEventData(AgriFoodFarmingResourceActionType? actionType, string status, DateTimeOffset? modifiedDateTime, string eTag, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- ActionType = actionType;
- Status = status;
- ModifiedDateTime = modifiedDateTime;
- ETag = eTag;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Action occurred on a resource.
- public AgriFoodFarmingResourceActionType? ActionType { get; }
- /// Status of the resource.
- public string Status { get; }
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? ModifiedDateTime { get; }
- /// The ETag value to implement optimistic concurrency.
- public string ETag { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropVarietyChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropVarietyChangedEventData.Serialization.cs
deleted file mode 100644
index 0d65d5e8ba929..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropVarietyChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,125 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingCropVarietyChangedEventDataConverter))]
- public partial class AgriFoodFarmingCropVarietyChangedEventData
- {
- internal static AgriFoodFarmingCropVarietyChangedEventData DeserializeAgriFoodFarmingCropVarietyChangedEventData(JsonElement element)
- {
- Optional cropId = default;
- Optional actionType = default;
- Optional status = default;
- Optional modifiedDateTime = default;
- Optional eTag = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("cropId"))
- {
- cropId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("actionType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- actionType = new AgriFoodFarmingResourceActionType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("status"))
- {
- status = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("modifiedDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- modifiedDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("eTag"))
- {
- eTag = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingCropVarietyChangedEventData(cropId.Value, Optional.ToNullable(actionType), status.Value, Optional.ToNullable(modifiedDateTime), eTag.Value, id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingCropVarietyChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingCropVarietyChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingCropVarietyChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingCropVarietyChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropVarietyChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropVarietyChangedEventData.cs
deleted file mode 100644
index f67fe5e34bf11..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingCropVarietyChangedEventData.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropVarietyChanged event.
- public partial class AgriFoodFarmingCropVarietyChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingCropVarietyChangedEventData.
- internal AgriFoodFarmingCropVarietyChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingCropVarietyChangedEventData.
- /// Id of the crop it belongs to.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingCropVarietyChangedEventData(string cropId, AgriFoodFarmingResourceActionType? actionType, string status, DateTimeOffset? modifiedDateTime, string eTag, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- CropId = cropId;
- ActionType = actionType;
- Status = status;
- ModifiedDateTime = modifiedDateTime;
- ETag = eTag;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Id of the crop it belongs to.
- public string CropId { get; }
- /// Action occurred on a resource.
- public AgriFoodFarmingResourceActionType? ActionType { get; }
- /// Status of the resource.
- public string Status { get; }
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? ModifiedDateTime { get; }
- /// The ETag value to implement optimistic concurrency.
- public string ETag { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmChangedEventData.Serialization.cs
deleted file mode 100644
index 2f0d6daa3d35b..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,125 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingFarmChangedEventDataConverter))]
- public partial class AgriFoodFarmingFarmChangedEventData
- {
- internal static AgriFoodFarmingFarmChangedEventData DeserializeAgriFoodFarmingFarmChangedEventData(JsonElement element)
- {
- Optional farmerId = default;
- Optional actionType = default;
- Optional status = default;
- Optional modifiedDateTime = default;
- Optional eTag = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("farmerId"))
- {
- farmerId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("actionType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- actionType = new AgriFoodFarmingResourceActionType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("status"))
- {
- status = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("modifiedDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- modifiedDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("eTag"))
- {
- eTag = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingFarmChangedEventData(farmerId.Value, Optional.ToNullable(actionType), status.Value, Optional.ToNullable(modifiedDateTime), eTag.Value, id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingFarmChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingFarmChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingFarmChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingFarmChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmChangedEventData.cs
deleted file mode 100644
index e9a6bb6d4da01..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmChangedEventData.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmChanged event.
- public partial class AgriFoodFarmingFarmChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingFarmChangedEventData.
- internal AgriFoodFarmingFarmChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingFarmChangedEventData.
- /// Id of the farmer it belongs to.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingFarmChangedEventData(string farmerId, AgriFoodFarmingResourceActionType? actionType, string status, DateTimeOffset? modifiedDateTime, string eTag, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- FarmerId = farmerId;
- ActionType = actionType;
- Status = status;
- ModifiedDateTime = modifiedDateTime;
- ETag = eTag;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Id of the farmer it belongs to.
- public string FarmerId { get; }
- /// Action occurred on a resource.
- public AgriFoodFarmingResourceActionType? ActionType { get; }
- /// Status of the resource.
- public string Status { get; }
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? ModifiedDateTime { get; }
- /// The ETag value to implement optimistic concurrency.
- public string ETag { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.Serialization.cs
deleted file mode 100644
index 4bd75b0c06bd9..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,130 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventDataConverter))]
- public partial class AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData
- {
- internal static AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData DeserializeAgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData(JsonElement element)
- {
- Optional farmerId = default;
- Optional message = default;
- Optional status = default;
- Optional lastActionDateTime = default;
- Optional isCancellationRequested = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("farmerId"))
- {
- farmerId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("message"))
- {
- message = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("status"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- status = new AgriFoodFarmingJobStatus(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("lastActionDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- lastActionDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("isCancellationRequested"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- isCancellationRequested = property.Value.GetBoolean();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData(farmerId.Value, message.Value, Optional.ToNullable(status), Optional.ToNullable(lastActionDateTime), Optional.ToNullable(isCancellationRequested), id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.cs
deleted file mode 100644
index ac1e389736828..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged event.
- public partial class AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.
- internal AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.
- /// Farmer id for which job was created.
- /// Status message to capture more details of the job.
- /// Various states a job can be in.
- /// Date-time when last action was taken on job, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// Flag that gets set when job cancellation is requested.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData(string farmerId, string message, AgriFoodFarmingJobStatus? status, DateTimeOffset? lastActionDateTime, bool? isCancellationRequested, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- FarmerId = farmerId;
- Message = message;
- Status = status;
- LastActionDateTime = lastActionDateTime;
- IsCancellationRequested = isCancellationRequested;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Farmer id for which job was created.
- public string FarmerId { get; }
- /// Status message to capture more details of the job.
- public string Message { get; }
- /// Various states a job can be in.
- public AgriFoodFarmingJobStatus? Status { get; }
- /// Date-time when last action was taken on job, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? LastActionDateTime { get; }
- /// Flag that gets set when job cancellation is requested.
- public bool? IsCancellationRequested { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmerChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmerChangedEventData.Serialization.cs
deleted file mode 100644
index 2a3cab0c16c0f..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmerChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,119 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingFarmerChangedEventDataConverter))]
- public partial class AgriFoodFarmingFarmerChangedEventData
- {
- internal static AgriFoodFarmingFarmerChangedEventData DeserializeAgriFoodFarmingFarmerChangedEventData(JsonElement element)
- {
- Optional actionType = default;
- Optional status = default;
- Optional modifiedDateTime = default;
- Optional eTag = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("actionType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- actionType = new AgriFoodFarmingResourceActionType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("status"))
- {
- status = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("modifiedDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- modifiedDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("eTag"))
- {
- eTag = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingFarmerChangedEventData(Optional.ToNullable(actionType), status.Value, Optional.ToNullable(modifiedDateTime), eTag.Value, id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingFarmerChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingFarmerChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingFarmerChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingFarmerChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmerChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmerChangedEventData.cs
deleted file mode 100644
index 9f1c516fbdbb8..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFarmerChangedEventData.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmerChanged event.
- public partial class AgriFoodFarmingFarmerChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingFarmerChangedEventData.
- internal AgriFoodFarmingFarmerChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingFarmerChangedEventData.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingFarmerChangedEventData(AgriFoodFarmingResourceActionType? actionType, string status, DateTimeOffset? modifiedDateTime, string eTag, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- ActionType = actionType;
- Status = status;
- ModifiedDateTime = modifiedDateTime;
- ETag = eTag;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Action occurred on a resource.
- public AgriFoodFarmingResourceActionType? ActionType { get; }
- /// Status of the resource.
- public string Status { get; }
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? ModifiedDateTime { get; }
- /// The ETag value to implement optimistic concurrency.
- public string ETag { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFieldChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFieldChangedEventData.Serialization.cs
deleted file mode 100644
index 33252d8fdbbc0..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFieldChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,131 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingFieldChangedEventDataConverter))]
- public partial class AgriFoodFarmingFieldChangedEventData
- {
- internal static AgriFoodFarmingFieldChangedEventData DeserializeAgriFoodFarmingFieldChangedEventData(JsonElement element)
- {
- Optional farmerId = default;
- Optional farmId = default;
- Optional actionType = default;
- Optional status = default;
- Optional modifiedDateTime = default;
- Optional eTag = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("farmerId"))
- {
- farmerId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("farmId"))
- {
- farmId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("actionType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- actionType = new AgriFoodFarmingResourceActionType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("status"))
- {
- status = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("modifiedDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- modifiedDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("eTag"))
- {
- eTag = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingFieldChangedEventData(farmerId.Value, farmId.Value, Optional.ToNullable(actionType), status.Value, Optional.ToNullable(modifiedDateTime), eTag.Value, id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingFieldChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingFieldChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingFieldChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingFieldChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFieldChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFieldChangedEventData.cs
deleted file mode 100644
index 4687ef3090afc..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingFieldChangedEventData.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FieldChanged event.
- public partial class AgriFoodFarmingFieldChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingFieldChangedEventData.
- internal AgriFoodFarmingFieldChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingFieldChangedEventData.
- /// Farmer Id.
- /// Id of the associated Farm.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingFieldChangedEventData(string farmerId, string farmId, AgriFoodFarmingResourceActionType? actionType, string status, DateTimeOffset? modifiedDateTime, string eTag, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- FarmerId = farmerId;
- FarmId = farmId;
- ActionType = actionType;
- Status = status;
- ModifiedDateTime = modifiedDateTime;
- ETag = eTag;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Farmer Id.
- public string FarmerId { get; }
- /// Id of the associated Farm.
- public string FarmId { get; }
- /// Action occurred on a resource.
- public AgriFoodFarmingResourceActionType? ActionType { get; }
- /// Status of the resource.
- public string Status { get; }
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? ModifiedDateTime { get; }
- /// The ETag value to implement optimistic concurrency.
- public string ETag { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingHarvestDataChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingHarvestDataChangedEventData.Serialization.cs
deleted file mode 100644
index 4cde90531ed43..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingHarvestDataChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,131 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingHarvestDataChangedEventDataConverter))]
- public partial class AgriFoodFarmingHarvestDataChangedEventData
- {
- internal static AgriFoodFarmingHarvestDataChangedEventData DeserializeAgriFoodFarmingHarvestDataChangedEventData(JsonElement element)
- {
- Optional actionType = default;
- Optional farmerId = default;
- Optional status = default;
- Optional source = default;
- Optional modifiedDateTime = default;
- Optional eTag = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("actionType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- actionType = new AgriFoodFarmingResourceActionType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("farmerId"))
- {
- farmerId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("status"))
- {
- status = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("source"))
- {
- source = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("modifiedDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- modifiedDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("eTag"))
- {
- eTag = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingHarvestDataChangedEventData(Optional.ToNullable(actionType), farmerId.Value, status.Value, source.Value, Optional.ToNullable(modifiedDateTime), eTag.Value, id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingHarvestDataChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingHarvestDataChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingHarvestDataChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingHarvestDataChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingHarvestDataChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingHarvestDataChangedEventData.cs
deleted file mode 100644
index 0a65006484127..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingHarvestDataChangedEventData.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.HarvestDataChanged event.
- public partial class AgriFoodFarmingHarvestDataChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingHarvestDataChangedEventData.
- internal AgriFoodFarmingHarvestDataChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingHarvestDataChangedEventData.
- /// Action occurred on a resource.
- /// Id of the farmer it belongs to.
- /// Status of the resource.
- /// Source of the farm operation data.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingHarvestDataChangedEventData(AgriFoodFarmingResourceActionType? actionType, string farmerId, string status, string source, DateTimeOffset? modifiedDateTime, string eTag, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- ActionType = actionType;
- FarmerId = farmerId;
- Status = status;
- Source = source;
- ModifiedDateTime = modifiedDateTime;
- ETag = eTag;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Action occurred on a resource.
- public AgriFoodFarmingResourceActionType? ActionType { get; }
- /// Id of the farmer it belongs to.
- public string FarmerId { get; }
- /// Status of the resource.
- public string Status { get; }
- /// Source of the farm operation data.
- public string Source { get; }
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? ModifiedDateTime { get; }
- /// The ETag value to implement optimistic concurrency.
- public string ETag { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingJobStatus.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingJobStatus.cs
deleted file mode 100644
index 8eb380c7e2fb9..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingJobStatus.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Various states a job can be in.
- public readonly partial struct AgriFoodFarmingJobStatus : IEquatable
- {
- private readonly string _value;
-
- /// Determines if two values are the same.
- /// is null.
- public AgriFoodFarmingJobStatus(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string WaitingValue = "Waiting";
- private const string RunningValue = "Running";
- private const string SucceededValue = "Succeeded";
- private const string FailedValue = "Failed";
- private const string CancelledValue = "Cancelled";
-
- /// Waiting.
- public static AgriFoodFarmingJobStatus Waiting { get; } = new AgriFoodFarmingJobStatus(WaitingValue);
- /// Running.
- public static AgriFoodFarmingJobStatus Running { get; } = new AgriFoodFarmingJobStatus(RunningValue);
- /// Succeeded.
- public static AgriFoodFarmingJobStatus Succeeded { get; } = new AgriFoodFarmingJobStatus(SucceededValue);
- /// Failed.
- public static AgriFoodFarmingJobStatus Failed { get; } = new AgriFoodFarmingJobStatus(FailedValue);
- /// Cancelled.
- public static AgriFoodFarmingJobStatus Cancelled { get; } = new AgriFoodFarmingJobStatus(CancelledValue);
- /// Determines if two values are the same.
- public static bool operator ==(AgriFoodFarmingJobStatus left, AgriFoodFarmingJobStatus right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(AgriFoodFarmingJobStatus left, AgriFoodFarmingJobStatus right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator AgriFoodFarmingJobStatus(string value) => new AgriFoodFarmingJobStatus(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is AgriFoodFarmingJobStatus other && Equals(other);
- ///
- public bool Equals(AgriFoodFarmingJobStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingPlantingDataChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingPlantingDataChangedEventData.Serialization.cs
deleted file mode 100644
index b194d1813926b..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingPlantingDataChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,131 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingPlantingDataChangedEventDataConverter))]
- public partial class AgriFoodFarmingPlantingDataChangedEventData
- {
- internal static AgriFoodFarmingPlantingDataChangedEventData DeserializeAgriFoodFarmingPlantingDataChangedEventData(JsonElement element)
- {
- Optional actionType = default;
- Optional farmerId = default;
- Optional status = default;
- Optional source = default;
- Optional modifiedDateTime = default;
- Optional eTag = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("actionType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- actionType = new AgriFoodFarmingResourceActionType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("farmerId"))
- {
- farmerId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("status"))
- {
- status = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("source"))
- {
- source = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("modifiedDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- modifiedDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("eTag"))
- {
- eTag = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingPlantingDataChangedEventData(Optional.ToNullable(actionType), farmerId.Value, status.Value, source.Value, Optional.ToNullable(modifiedDateTime), eTag.Value, id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingPlantingDataChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingPlantingDataChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingPlantingDataChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingPlantingDataChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingPlantingDataChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingPlantingDataChangedEventData.cs
deleted file mode 100644
index b2e68f416fa16..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingPlantingDataChangedEventData.cs
+++ /dev/null
@@ -1,81 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.PlantingDataChanged event.
- public partial class AgriFoodFarmingPlantingDataChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingPlantingDataChangedEventData.
- internal AgriFoodFarmingPlantingDataChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingPlantingDataChangedEventData.
- /// Action occurred on a resource.
- /// Id of the farmer it belongs to.
- /// Status of the resource.
- /// Source of the farm operation data.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingPlantingDataChangedEventData(AgriFoodFarmingResourceActionType? actionType, string farmerId, string status, string source, DateTimeOffset? modifiedDateTime, string eTag, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- ActionType = actionType;
- FarmerId = farmerId;
- Status = status;
- Source = source;
- ModifiedDateTime = modifiedDateTime;
- ETag = eTag;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Action occurred on a resource.
- public AgriFoodFarmingResourceActionType? ActionType { get; }
- /// Id of the farmer it belongs to.
- public string FarmerId { get; }
- /// Status of the resource.
- public string Status { get; }
- /// Source of the farm operation data.
- public string Source { get; }
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? ModifiedDateTime { get; }
- /// The ETag value to implement optimistic concurrency.
- public string ETag { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingResourceActionType.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingResourceActionType.cs
deleted file mode 100644
index 2fb376333a822..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingResourceActionType.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Action occurred on a resource.
- public readonly partial struct AgriFoodFarmingResourceActionType : IEquatable
- {
- private readonly string _value;
-
- /// Determines if two values are the same.
- /// is null.
- public AgriFoodFarmingResourceActionType(string value)
- {
- _value = value ?? throw new ArgumentNullException(nameof(value));
- }
-
- private const string CreatedValue = "Created";
- private const string UpdatedValue = "Updated";
- private const string DeletedValue = "Deleted";
-
- /// Created.
- public static AgriFoodFarmingResourceActionType Created { get; } = new AgriFoodFarmingResourceActionType(CreatedValue);
- /// Updated.
- public static AgriFoodFarmingResourceActionType Updated { get; } = new AgriFoodFarmingResourceActionType(UpdatedValue);
- /// Deleted.
- public static AgriFoodFarmingResourceActionType Deleted { get; } = new AgriFoodFarmingResourceActionType(DeletedValue);
- /// Determines if two values are the same.
- public static bool operator ==(AgriFoodFarmingResourceActionType left, AgriFoodFarmingResourceActionType right) => left.Equals(right);
- /// Determines if two values are not the same.
- public static bool operator !=(AgriFoodFarmingResourceActionType left, AgriFoodFarmingResourceActionType right) => !left.Equals(right);
- /// Converts a string to a .
- public static implicit operator AgriFoodFarmingResourceActionType(string value) => new AgriFoodFarmingResourceActionType(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is AgriFoodFarmingResourceActionType other && Equals(other);
- ///
- public bool Equals(AgriFoodFarmingResourceActionType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value?.GetHashCode() ?? 0;
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.Serialization.cs
deleted file mode 100644
index b4c61a8875749..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,130 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventDataConverter))]
- public partial class AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData
- {
- internal static AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData DeserializeAgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData(JsonElement element)
- {
- Optional farmerId = default;
- Optional message = default;
- Optional status = default;
- Optional lastActionDateTime = default;
- Optional isCancellationRequested = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("farmerId"))
- {
- farmerId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("message"))
- {
- message = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("status"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- status = new AgriFoodFarmingJobStatus(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("lastActionDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- lastActionDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("isCancellationRequested"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- isCancellationRequested = property.Value.GetBoolean();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData(farmerId.Value, message.Value, Optional.ToNullable(status), Optional.ToNullable(lastActionDateTime), Optional.ToNullable(isCancellationRequested), id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.cs
deleted file mode 100644
index 00772a6362574..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged event.
- public partial class AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.
- internal AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.
- /// Farmer id for which job was created.
- /// Status message to capture more details of the job.
- /// Various states a job can be in.
- /// Date-time when last action was taken on job, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// Flag that gets set when job cancellation is requested.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData(string farmerId, string message, AgriFoodFarmingJobStatus? status, DateTimeOffset? lastActionDateTime, bool? isCancellationRequested, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- FarmerId = farmerId;
- Message = message;
- Status = status;
- LastActionDateTime = lastActionDateTime;
- IsCancellationRequested = isCancellationRequested;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Farmer id for which job was created.
- public string FarmerId { get; }
- /// Status message to capture more details of the job.
- public string Message { get; }
- /// Various states a job can be in.
- public AgriFoodFarmingJobStatus? Status { get; }
- /// Date-time when last action was taken on job, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? LastActionDateTime { get; }
- /// Flag that gets set when job cancellation is requested.
- public bool? IsCancellationRequested { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonChangedEventData.Serialization.cs
deleted file mode 100644
index 613e226e8a9e5..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,119 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingSeasonChangedEventDataConverter))]
- public partial class AgriFoodFarmingSeasonChangedEventData
- {
- internal static AgriFoodFarmingSeasonChangedEventData DeserializeAgriFoodFarmingSeasonChangedEventData(JsonElement element)
- {
- Optional actionType = default;
- Optional status = default;
- Optional modifiedDateTime = default;
- Optional eTag = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("actionType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- actionType = new AgriFoodFarmingResourceActionType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("status"))
- {
- status = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("modifiedDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- modifiedDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("eTag"))
- {
- eTag = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingSeasonChangedEventData(Optional.ToNullable(actionType), status.Value, Optional.ToNullable(modifiedDateTime), eTag.Value, id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingSeasonChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingSeasonChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingSeasonChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingSeasonChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonChangedEventData.cs
deleted file mode 100644
index 7e5bec650aff5..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonChangedEventData.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonChanged event.
- public partial class AgriFoodFarmingSeasonChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingSeasonChangedEventData.
- internal AgriFoodFarmingSeasonChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingSeasonChangedEventData.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingSeasonChangedEventData(AgriFoodFarmingResourceActionType? actionType, string status, DateTimeOffset? modifiedDateTime, string eTag, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- ActionType = actionType;
- Status = status;
- ModifiedDateTime = modifiedDateTime;
- ETag = eTag;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Action occurred on a resource.
- public AgriFoodFarmingResourceActionType? ActionType { get; }
- /// Status of the resource.
- public string Status { get; }
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? ModifiedDateTime { get; }
- /// The ETag value to implement optimistic concurrency.
- public string ETag { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonalFieldChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonalFieldChangedEventData.Serialization.cs
deleted file mode 100644
index a8e4efe845dbb..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonalFieldChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,143 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingSeasonalFieldChangedEventDataConverter))]
- public partial class AgriFoodFarmingSeasonalFieldChangedEventData
- {
- internal static AgriFoodFarmingSeasonalFieldChangedEventData DeserializeAgriFoodFarmingSeasonalFieldChangedEventData(JsonElement element)
- {
- Optional farmerId = default;
- Optional seasonId = default;
- Optional fieldId = default;
- Optional farmId = default;
- Optional actionType = default;
- Optional status = default;
- Optional modifiedDateTime = default;
- Optional eTag = default;
- Optional id = default;
- Optional name = default;
- Optional description = default;
- Optional createdDateTime = default;
- Optional> properties = default;
- foreach (var property in element.EnumerateObject())
- {
- if (property.NameEquals("farmerId"))
- {
- farmerId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("seasonId"))
- {
- seasonId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("fieldId"))
- {
- fieldId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("farmId"))
- {
- farmId = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("actionType"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- actionType = new AgriFoodFarmingResourceActionType(property.Value.GetString());
- continue;
- }
- if (property.NameEquals("status"))
- {
- status = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("modifiedDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- modifiedDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("eTag"))
- {
- eTag = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("id"))
- {
- id = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("name"))
- {
- name = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("description"))
- {
- description = property.Value.GetString();
- continue;
- }
- if (property.NameEquals("createdDateTime"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- createdDateTime = property.Value.GetDateTimeOffset("O");
- continue;
- }
- if (property.NameEquals("properties"))
- {
- if (property.Value.ValueKind == JsonValueKind.Null)
- {
- property.ThrowNonNullablePropertyIsNull();
- continue;
- }
- Dictionary dictionary = new Dictionary();
- foreach (var property0 in property.Value.EnumerateObject())
- {
- dictionary.Add(property0.Name, property0.Value.GetObject());
- }
- properties = dictionary;
- continue;
- }
- }
- return new AgriFoodFarmingSeasonalFieldChangedEventData(farmerId.Value, seasonId.Value, fieldId.Value, farmId.Value, Optional.ToNullable(actionType), status.Value, Optional.ToNullable(modifiedDateTime), eTag.Value, id.Value, name.Value, description.Value, Optional.ToNullable(createdDateTime), Optional.ToDictionary(properties));
- }
-
- internal partial class AgriFoodFarmingSeasonalFieldChangedEventDataConverter : JsonConverter
- {
- public override void Write(Utf8JsonWriter writer, AgriFoodFarmingSeasonalFieldChangedEventData model, JsonSerializerOptions options)
- {
- throw new NotImplementedException();
- }
- public override AgriFoodFarmingSeasonalFieldChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- using var document = JsonDocument.ParseValue(ref reader);
- return DeserializeAgriFoodFarmingSeasonalFieldChangedEventData(document.RootElement);
- }
- }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonalFieldChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonalFieldChangedEventData.cs
deleted file mode 100644
index e254b966bce56..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingSeasonalFieldChangedEventData.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- /// Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonalFieldChanged event.
- public partial class AgriFoodFarmingSeasonalFieldChangedEventData
- {
- /// Initializes a new instance of AgriFoodFarmingSeasonalFieldChangedEventData.
- internal AgriFoodFarmingSeasonalFieldChangedEventData()
- {
- Properties = new ChangeTrackingDictionary();
- }
-
- /// Initializes a new instance of AgriFoodFarmingSeasonalFieldChangedEventData.
- /// Id of the farmer it belongs to.
- /// Id of the season it belongs to.
- /// Id of the field it belongs to.
- /// Id of the associated Farm.
- /// Action occurred on a resource.
- /// Status of the resource.
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- /// The ETag value to implement optimistic concurrency.
- /// Unique id of resource.
- /// Name to identify resource.
- /// Textual description of resource.
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- internal AgriFoodFarmingSeasonalFieldChangedEventData(string farmerId, string seasonId, string fieldId, string farmId, AgriFoodFarmingResourceActionType? actionType, string status, DateTimeOffset? modifiedDateTime, string eTag, string id, string name, string description, DateTimeOffset? createdDateTime, IReadOnlyDictionary properties)
- {
- FarmerId = farmerId;
- SeasonId = seasonId;
- FieldId = fieldId;
- FarmId = farmId;
- ActionType = actionType;
- Status = status;
- ModifiedDateTime = modifiedDateTime;
- ETag = eTag;
- Id = id;
- Name = name;
- Description = description;
- CreatedDateTime = createdDateTime;
- Properties = properties;
- }
-
- /// Id of the farmer it belongs to.
- public string FarmerId { get; }
- /// Id of the season it belongs to.
- public string SeasonId { get; }
- /// Id of the field it belongs to.
- public string FieldId { get; }
- /// Id of the associated Farm.
- public string FarmId { get; }
- /// Action occurred on a resource.
- public AgriFoodFarmingResourceActionType? ActionType { get; }
- /// Status of the resource.
- public string Status { get; }
- /// Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? ModifiedDateTime { get; }
- /// The ETag value to implement optimistic concurrency.
- public string ETag { get; }
- /// Unique id of resource.
- public string Id { get; }
- /// Name to identify resource.
- public string Name { get; }
- /// Textual description of resource.
- public string Description { get; }
- /// Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.
- public DateTimeOffset? CreatedDateTime { get; }
- ///
- /// A list of key value pairs that describe the resource.
- ///
- /// Only string and numeral values are supported.
- ///
- public IReadOnlyDictionary Properties { get; }
- }
-}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingTillageDataChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingTillageDataChangedEventData.Serialization.cs
deleted file mode 100644
index 1c2c039744fda..0000000000000
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingTillageDataChangedEventData.Serialization.cs
+++ /dev/null
@@ -1,131 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-using Azure.Core;
-
-namespace Azure.Messaging.EventGrid.SystemEvents
-{
- [JsonConverter(typeof(AgriFoodFarmingTillageDataChangedEventDataConverter))]
- public partial class AgriFoodFarmingTillageDataChangedEventData
- {
- internal static AgriFoodFarmingTillageDataChangedEventData DeserializeAgriFoodFarmingTillageDataChangedEventData(JsonElement element)
- {
- Optional actionType = default;
- Optional farmerId = default;
- Optional status = default;
- Optional source = default;
- Optional modifiedDateTime = default;
- Optional eTag = default;
- Optional id = default;
- Optional