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/api/Azure.Messaging.EventGrid.netstandard2.0.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/api/Azure.Messaging.EventGrid.netstandard2.0.cs index 083fbf34d9920..96421f735e1cd 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/api/Azure.Messaging.EventGrid.netstandard2.0.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/api/Azure.Messaging.EventGrid.netstandard2.0.cs @@ -51,21 +51,6 @@ public static partial class EventGridModelFactory public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsDeliveryReportReceivedEventData AcsSmsDeliveryReportReceivedEventData(string messageId = null, string from = null, string to = null, string deliveryStatus = null, string deliveryStatusDetails = null, System.Collections.Generic.IReadOnlyList deliveryAttempts = null, System.DateTimeOffset? receivedTimestamp = default(System.DateTimeOffset?), string tag = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsEventBaseProperties AcsSmsEventBaseProperties(string messageId = null, string from = null, string to = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AcsSmsReceivedEventData AcsSmsReceivedEventData(string messageId = null, string from = null, string to = null, string message = null, System.DateTimeOffset? receivedTimestamp = default(System.DateTimeOffset?)) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingApplicationDataChangedEventData AgriFoodFarmingApplicationDataChangedEventData(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? actionType = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType?), string farmerId = null, string status = null, string source = null, System.DateTimeOffset? modifiedDateTime = default(System.DateTimeOffset?), string eTag = null, string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingBoundaryChangedEventData AgriFoodFarmingBoundaryChangedEventData(string farmerId = null, string parentId = null, string parentType = null, bool? isPrimary = default(bool?), Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? actionType = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType?), string status = null, System.DateTimeOffset? modifiedDateTime = default(System.DateTimeOffset?), string eTag = null, string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingCropChangedEventData AgriFoodFarmingCropChangedEventData(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? actionType = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType?), string status = null, System.DateTimeOffset? modifiedDateTime = default(System.DateTimeOffset?), string eTag = null, string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingCropVarietyChangedEventData AgriFoodFarmingCropVarietyChangedEventData(string cropId = null, Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? actionType = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType?), string status = null, System.DateTimeOffset? modifiedDateTime = default(System.DateTimeOffset?), string eTag = null, string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingFarmChangedEventData AgriFoodFarmingFarmChangedEventData(string farmerId = null, Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? actionType = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType?), string status = null, System.DateTimeOffset? modifiedDateTime = default(System.DateTimeOffset?), string eTag = null, string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingFarmerChangedEventData AgriFoodFarmingFarmerChangedEventData(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? actionType = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType?), string status = null, System.DateTimeOffset? modifiedDateTime = default(System.DateTimeOffset?), string eTag = null, string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData(string farmerId = null, string message = null, Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus? status = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus?), System.DateTimeOffset? lastActionDateTime = default(System.DateTimeOffset?), bool? isCancellationRequested = default(bool?), string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingFieldChangedEventData AgriFoodFarmingFieldChangedEventData(string farmerId = null, string farmId = null, Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? actionType = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType?), string status = null, System.DateTimeOffset? modifiedDateTime = default(System.DateTimeOffset?), string eTag = null, string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingHarvestDataChangedEventData AgriFoodFarmingHarvestDataChangedEventData(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? actionType = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType?), string farmerId = null, string status = null, string source = null, System.DateTimeOffset? modifiedDateTime = default(System.DateTimeOffset?), string eTag = null, string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingPlantingDataChangedEventData AgriFoodFarmingPlantingDataChangedEventData(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? actionType = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType?), string farmerId = null, string status = null, string source = null, System.DateTimeOffset? modifiedDateTime = default(System.DateTimeOffset?), string eTag = null, string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData(string farmerId = null, string message = null, Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus? status = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus?), System.DateTimeOffset? lastActionDateTime = default(System.DateTimeOffset?), bool? isCancellationRequested = default(bool?), string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingSeasonalFieldChangedEventData AgriFoodFarmingSeasonalFieldChangedEventData(string farmerId = null, string seasonId = null, string fieldId = null, string farmId = null, Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? actionType = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType?), string status = null, System.DateTimeOffset? modifiedDateTime = default(System.DateTimeOffset?), string eTag = null, string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingSeasonChangedEventData AgriFoodFarmingSeasonChangedEventData(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? actionType = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType?), string status = null, System.DateTimeOffset? modifiedDateTime = default(System.DateTimeOffset?), string eTag = null, string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingTillageDataChangedEventData AgriFoodFarmingTillageDataChangedEventData(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? actionType = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType?), string farmerId = null, string status = null, string source = null, System.DateTimeOffset? modifiedDateTime = default(System.DateTimeOffset?), string eTag = null, string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData(string farmerId = null, string message = null, Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus? status = default(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus?), System.DateTimeOffset? lastActionDateTime = default(System.DateTimeOffset?), bool? isCancellationRequested = default(bool?), string id = null, string name = null, string description = null, System.DateTimeOffset? createdDateTime = default(System.DateTimeOffset?), System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AppConfigurationKeyValueDeletedEventData AppConfigurationKeyValueDeletedEventData(string key = null, string label = null, string etag = null, string syncToken = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AppConfigurationKeyValueModifiedEventData AppConfigurationKeyValueModifiedEventData(string key = null, string label = null, string etag = null, string syncToken = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.AppEventTypeDetail AppEventTypeDetail(Azure.Messaging.EventGrid.SystemEvents.AppAction? action = default(Azure.Messaging.EventGrid.SystemEvents.AppAction?)) { throw null; } @@ -238,21 +223,6 @@ public static partial class SystemEventNames public const string AcsRecordingFileStatusUpdated = "Microsoft.Communication.RecordingFileStatusUpdated"; public const string AcsSmsDeliveryReportReceived = "Microsoft.Communication.SMSDeliveryReportReceived"; public const string AcsSmsReceived = "Microsoft.Communication.SMSReceived"; - public const string AgriFoodFarmingApplicationDataChanged = "Microsoft.AgFoodPlatform.ApplicationDataChanged"; - public const string AgriFoodFarmingBoundaryChanged = "Microsoft.AgFoodPlatform.BoundaryChanged"; - public const string AgriFoodFarmingCropChanged = "Microsoft.AgFoodPlatform.CropChanged"; - public const string AgriFoodFarmingCropVarietyChanged = "Microsoft.AgFoodPlatform.CropVarietyChanged"; - public const string AgriFoodFarmingFarmChanged = "Microsoft.AgFoodPlatform.FarmChanged"; - public const string AgriFoodFarmingFarmerChanged = "Microsoft.AgFoodPlatform.FarmerChanged"; - public const string AgriFoodFarmingFarmOperationDataIngestionJobStatusChanged = "Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged"; - public const string AgriFoodFarmingFieldChanged = "Microsoft.AgFoodPlatform.FieldChanged"; - public const string AgriFoodFarmingHarvestDataChanged = "Microsoft.AgFoodPlatform.HarvestDataChanged"; - public const string AgriFoodFarmingPlantingDataChanged = "Microsoft.AgFoodPlatform.PlantingDataChanged"; - public const string AgriFoodFarmingSatelliteDataIngestionJobStatusChanged = "Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged"; - public const string AgriFoodFarmingSeasonalFieldChanged = "Microsoft.AgFoodPlatform.SeasonalFieldChanged"; - public const string AgriFoodFarmingSeasonChanged = "Microsoft.AgFoodPlatform.SeasonChanged"; - public const string AgriFoodFarmingTillageDataChanged = "Microsoft.AgFoodPlatform.TillageDataChanged"; - public const string AgriFoodFarmingWeatherDataIngestionJobStatusChanged = "Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged"; public const string AppConfigurationKeyValueDeleted = "Microsoft.AppConfiguration.KeyValueDeleted"; public const string AppConfigurationKeyValueModified = "Microsoft.AppConfiguration.KeyValueModified"; public const string ContainerRegistryChartDeleted = "Microsoft.ContainerRegistry.ChartDeleted"; @@ -562,264 +532,6 @@ internal AcsSmsReceivedEventData() { } public string Message { get { throw null; } } public System.DateTimeOffset? ReceivedTimestamp { get { throw null; } } } - public partial class AgriFoodFarmingApplicationDataChangedEventData - { - internal AgriFoodFarmingApplicationDataChangedEventData() { } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string ETag { get { throw null; } } - public string FarmerId { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? ModifiedDateTime { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public string Source { get { throw null; } } - public string Status { get { throw null; } } - } - public partial class AgriFoodFarmingBoundaryChangedEventData - { - internal AgriFoodFarmingBoundaryChangedEventData() { } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string ETag { get { throw null; } } - public string FarmerId { get { throw null; } } - public string Id { get { throw null; } } - public bool? IsPrimary { get { throw null; } } - public System.DateTimeOffset? ModifiedDateTime { get { throw null; } } - public string Name { get { throw null; } } - public string ParentId { get { throw null; } } - public string ParentType { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public string Status { get { throw null; } } - } - public partial class AgriFoodFarmingCropChangedEventData - { - internal AgriFoodFarmingCropChangedEventData() { } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string ETag { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? ModifiedDateTime { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public string Status { get { throw null; } } - } - public partial class AgriFoodFarmingCropVarietyChangedEventData - { - internal AgriFoodFarmingCropVarietyChangedEventData() { } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string CropId { get { throw null; } } - public string Description { get { throw null; } } - public string ETag { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? ModifiedDateTime { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public string Status { get { throw null; } } - } - public partial class AgriFoodFarmingFarmChangedEventData - { - internal AgriFoodFarmingFarmChangedEventData() { } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string ETag { get { throw null; } } - public string FarmerId { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? ModifiedDateTime { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public string Status { get { throw null; } } - } - public partial class AgriFoodFarmingFarmerChangedEventData - { - internal AgriFoodFarmingFarmerChangedEventData() { } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string ETag { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? ModifiedDateTime { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public string Status { get { throw null; } } - } - public partial class AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData - { - internal AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData() { } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string FarmerId { get { throw null; } } - public string Id { get { throw null; } } - public bool? IsCancellationRequested { get { throw null; } } - public System.DateTimeOffset? LastActionDateTime { get { throw null; } } - public string Message { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus? Status { get { throw null; } } - } - public partial class AgriFoodFarmingFieldChangedEventData - { - internal AgriFoodFarmingFieldChangedEventData() { } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string ETag { get { throw null; } } - public string FarmerId { get { throw null; } } - public string FarmId { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? ModifiedDateTime { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public string Status { get { throw null; } } - } - public partial class AgriFoodFarmingHarvestDataChangedEventData - { - internal AgriFoodFarmingHarvestDataChangedEventData() { } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string ETag { get { throw null; } } - public string FarmerId { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? ModifiedDateTime { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public string Source { get { throw null; } } - public string Status { get { throw null; } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AgriFoodFarmingJobStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AgriFoodFarmingJobStatus(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus Cancelled { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus Failed { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus Running { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus Succeeded { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus Waiting { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus left, Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus left, Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus right) { throw null; } - public override string ToString() { throw null; } - } - public partial class AgriFoodFarmingPlantingDataChangedEventData - { - internal AgriFoodFarmingPlantingDataChangedEventData() { } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string ETag { get { throw null; } } - public string FarmerId { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? ModifiedDateTime { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public string Source { get { throw null; } } - public string Status { get { throw null; } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AgriFoodFarmingResourceActionType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AgriFoodFarmingResourceActionType(string value) { throw null; } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType Created { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType Deleted { get { throw null; } } - public static Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType Updated { get { throw null; } } - public bool Equals(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType left, Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType right) { throw null; } - public static implicit operator Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType (string value) { throw null; } - public static bool operator !=(Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType left, Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType right) { throw null; } - public override string ToString() { throw null; } - } - public partial class AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData - { - internal AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData() { } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string FarmerId { get { throw null; } } - public string Id { get { throw null; } } - public bool? IsCancellationRequested { get { throw null; } } - public System.DateTimeOffset? LastActionDateTime { get { throw null; } } - public string Message { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus? Status { get { throw null; } } - } - public partial class AgriFoodFarmingSeasonalFieldChangedEventData - { - internal AgriFoodFarmingSeasonalFieldChangedEventData() { } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string ETag { get { throw null; } } - public string FarmerId { get { throw null; } } - public string FarmId { get { throw null; } } - public string FieldId { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? ModifiedDateTime { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public string SeasonId { get { throw null; } } - public string Status { get { throw null; } } - } - public partial class AgriFoodFarmingSeasonChangedEventData - { - internal AgriFoodFarmingSeasonChangedEventData() { } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string ETag { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? ModifiedDateTime { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public string Status { get { throw null; } } - } - public partial class AgriFoodFarmingTillageDataChangedEventData - { - internal AgriFoodFarmingTillageDataChangedEventData() { } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingResourceActionType? ActionType { get { throw null; } } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string ETag { get { throw null; } } - public string FarmerId { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? ModifiedDateTime { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public string Source { get { throw null; } } - public string Status { get { throw null; } } - } - public partial class AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData - { - internal AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData() { } - public System.DateTimeOffset? CreatedDateTime { get { throw null; } } - public string Description { get { throw null; } } - public string FarmerId { get { throw null; } } - public string Id { get { throw null; } } - public bool? IsCancellationRequested { get { throw null; } } - public System.DateTimeOffset? LastActionDateTime { get { throw null; } } - public string Message { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } - public Azure.Messaging.EventGrid.SystemEvents.AgriFoodFarmingJobStatus? Status { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct AppAction : System.IEquatable { 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 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 AgriFoodFarmingTillageDataChangedEventData(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 AgriFoodFarmingTillageDataChangedEventDataConverter : JsonConverter - { - public override void Write(Utf8JsonWriter writer, AgriFoodFarmingTillageDataChangedEventData model, JsonSerializerOptions options) - { - throw new NotImplementedException(); - } - public override AgriFoodFarmingTillageDataChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - using var document = JsonDocument.ParseValue(ref reader); - return DeserializeAgriFoodFarmingTillageDataChangedEventData(document.RootElement); - } - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingTillageDataChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingTillageDataChangedEventData.cs deleted file mode 100644 index fae3521127759..0000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingTillageDataChangedEventData.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.TillageDataChanged event. - public partial class AgriFoodFarmingTillageDataChangedEventData - { - /// Initializes a new instance of AgriFoodFarmingTillageDataChangedEventData. - internal AgriFoodFarmingTillageDataChangedEventData() - { - Properties = new ChangeTrackingDictionary(); - } - - /// Initializes a new instance of AgriFoodFarmingTillageDataChangedEventData. - /// 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 AgriFoodFarmingTillageDataChangedEventData(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/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.Serialization.cs deleted file mode 100644 index 6004207465a67..0000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.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(AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventDataConverter))] - public partial class AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData - { - internal static AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData DeserializeAgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData(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 AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData(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 AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventDataConverter : JsonConverter - { - public override void Write(Utf8JsonWriter writer, AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData model, JsonSerializerOptions options) - { - throw new NotImplementedException(); - } - public override AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) - { - using var document = JsonDocument.ParseValue(ref reader); - return DeserializeAgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData(document.RootElement); - } - } - } -} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.cs deleted file mode 100644 index 565638e511f39..0000000000000 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.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.WeatherDataIngestionJobStatusChanged event. - public partial class AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData - { - /// Initializes a new instance of AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData. - internal AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData() - { - Properties = new ChangeTrackingDictionary(); - } - - /// Initializes a new instance of AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData. - /// 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 AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData(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/autorest.md b/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md index a2909c85c551f..68cc31e01460f 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md @@ -4,7 +4,7 @@ Run `dotnet build /t:GenerateCode` to generate code. ``` yaml title: EventGridClient -require: https://github.com/Azure/azure-rest-api-specs/blob/822c826ef1e1594d74e097d5d4ff2d15ab6ff499/specification/eventgrid/data-plane/readme.md +require: https://github.com/Azure/azure-rest-api-specs/blob/d78816faeca788910b48ce0cfad89f85396260d6/specification/eventgrid/data-plane/readme.md ```