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 d46b804bc7de..bbc8ff837794 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
@@ -320,6 +320,7 @@ public static partial class EventGridModelFactory
public static Azure.Messaging.EventGrid.SystemEvents.ResourceDeleteFailureEventData ResourceDeleteFailureEventData(string tenantId = null, string subscriptionId = null, string resourceGroup = null, string resourceProvider = null, string resourceUri = null, string operationName = null, string status = null, string authorization = null, string claims = null, string correlationId = null, string httpRequest = null) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.ResourceDeleteSuccessEventData ResourceDeleteSuccessEventData(string tenantId = null, string subscriptionId = null, string resourceGroup = null, string resourceProvider = null, string resourceUri = null, string operationName = null, string status = null, string authorization = null, string claims = null, string correlationId = null, string httpRequest = null) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.ResourceHttpRequest ResourceHttpRequest(string clientRequestId = null, string clientIpAddress = null, Azure.Core.RequestMethod? method = default(Azure.Core.RequestMethod?), string url = null) { throw null; }
+ public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData(Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails resourceDetails = null, Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAnnotatedEventData ResourceNotificationsHealthResourcesAnnotatedEventData(Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails resourceDetails = null, Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventData(Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails resourceDetails = null, Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null) { throw null; }
public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsOperationalDetails ResourceNotificationsOperationalDetails(System.DateTimeOffset? resourceEventTime = default(System.DateTimeOffset?)) { throw null; }
@@ -604,6 +605,7 @@ public static partial class SystemEventNames
public const string ResourceDeleteCancel = "Microsoft.Resources.ResourceDeleteCancel";
public const string ResourceDeleteFailure = "Microsoft.Resources.ResourceDeleteFailure";
public const string ResourceDeleteSuccess = "Microsoft.Resources.ResourceDeleteSuccess";
+ public const string ResourceNotificationsContainerServiceEventResourcesScheduledEventEmitted = "Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted";
public const string ResourceNotificationsHealthResourcesAnnotated = "Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated";
public const string ResourceNotificationsHealthResourcesAvailabilityStatusChanged = "Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged";
public const string ResourceNotificationsResourceManagementCreatedOrUpdated = "Microsoft.ResourceNotifications.Resources.CreatedOrUpdated";
@@ -3171,6 +3173,10 @@ internal ResourceHttpRequest() { }
public Azure.Core.RequestMethod Method { get { throw null; } }
public string Url { get { throw null; } }
}
+ public partial class ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData : Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData
+ {
+ internal ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData() { }
+ }
public partial class ResourceNotificationsHealthResourcesAnnotatedEventData : Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData
{
internal ResourceNotificationsHealthResourcesAnnotatedEventData() { }
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs
index 02ef86bc66ca..7fb903525a2f 100644
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs
+++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs
@@ -4057,6 +4057,16 @@ public static ResourceNotificationsResourceManagementDeletedEventData ResourceNo
return new ResourceNotificationsResourceManagementDeletedEventData(resourceDetails, operationalDetails);
}
+ /// Initializes a new instance of .
+ /// resourceInfo details for update event.
+ /// details about operational info.
+ /// api version of the resource properties bag.
+ /// A new instance for mocking.
+ public static ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails = null, ResourceNotificationsOperationalDetails operationalDetails = null, string apiVersion = null)
+ {
+ return new ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData(resourceDetails, operationalDetails, apiVersion);
+ }
+
/// Initializes a new instance of .
/// Id of the operation that caused this event.
/// A new instance for mocking.
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData.Serialization.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData.Serialization.cs
new file mode 100644
index 000000000000..4aebea1cc60d
--- /dev/null
+++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData.Serialization.cs
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Text.Json;
+using System.Text.Json.Serialization;
+
+namespace Azure.Messaging.EventGrid.SystemEvents
+{
+ [JsonConverter(typeof(ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventDataConverter))]
+ public partial class ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData
+ {
+ internal static ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData DeserializeResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData(JsonElement element)
+ {
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ResourceNotificationsResourceUpdatedDetails resourceInfo = default;
+ ResourceNotificationsOperationalDetails operationalInfo = default;
+ string apiVersion = default;
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("resourceInfo"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ resourceInfo = ResourceNotificationsResourceUpdatedDetails.DeserializeResourceNotificationsResourceUpdatedDetails(property.Value);
+ continue;
+ }
+ if (property.NameEquals("operationalInfo"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ operationalInfo = ResourceNotificationsOperationalDetails.DeserializeResourceNotificationsOperationalDetails(property.Value);
+ continue;
+ }
+ if (property.NameEquals("apiVersion"u8))
+ {
+ apiVersion = property.Value.GetString();
+ continue;
+ }
+ }
+ return new ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData(resourceInfo, operationalInfo, apiVersion);
+ }
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static new ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content);
+ return DeserializeResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData(document.RootElement);
+ }
+
+ internal partial class ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventDataConverter : JsonConverter
+ {
+ public override void Write(Utf8JsonWriter writer, ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData model, JsonSerializerOptions options)
+ {
+ throw new NotImplementedException();
+ }
+
+ public override ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+ {
+ using var document = JsonDocument.ParseValue(ref reader);
+ return DeserializeResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData(document.RootElement);
+ }
+ }
+ }
+}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData.cs
new file mode 100644
index 000000000000..25b6a01a592c
--- /dev/null
+++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData.cs
@@ -0,0 +1,26 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace Azure.Messaging.EventGrid.SystemEvents
+{
+ /// Schema of the Data property of an event grid event for a Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted event.
+ public partial class ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData : ResourceNotificationsResourceUpdatedEventData
+ {
+ /// Initializes a new instance of .
+ internal ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// resourceInfo details for update event.
+ /// details about operational info.
+ /// api version of the resource properties bag.
+ internal ResourceNotificationsContainerServiceEventResourcesScheduledEventEmittedEventData(ResourceNotificationsResourceUpdatedDetails resourceDetails, ResourceNotificationsOperationalDetails operationalDetails, string apiVersion) : base(resourceDetails, operationalDetails, apiVersion)
+ {
+ }
+ }
+}
diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md b/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md
index 93e46b27d82f..b5369fe19c5a 100644
--- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md
+++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/autorest.md
@@ -4,7 +4,9 @@ Run `dotnet build /t:GenerateCode` to generate code.
``` yaml
title: EventGridClient
-require: https://github.com/Azure/azure-rest-api-specs/blob/6c709e5a3325eaa862649acee2252ce1c8166042/specification/eventgrid/data-plane/readme.md
+require:
+- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/eventgrid/data-plane/readme.md
+
generation1-convenience-client: true
model-factory-for-hlc:
- MediaJobOutputAsset
@@ -206,3 +208,4 @@ directive:
$.MediaLiveEventIngestHeartbeatEventData["properties"]["ingestDriftValue"]["x-ms-client-name"] = "IngestDriftValueInternal";
$.MediaLiveEventIngestHeartbeatEventData["properties"]["lastFragmentArrivalTime"]["format"] = "date-time";
```
+