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 33127bb2c852..b8e708697740 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 @@ -283,7 +283,7 @@ public static partial class EventGridModelFactory 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; } - public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails ResourceNotificationsResourceUpdatedDetails(string id = null, string name = null, string type = null, string location = null, string tags = null, System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } + public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedDetails ResourceNotificationsResourceUpdatedDetails(string id = null, string name = null, string resourceType = null, string location = null, string tags = null, System.Collections.Generic.IReadOnlyDictionary properties = null) { throw null; } public static Azure.Messaging.EventGrid.SystemEvents.ResourceNotificationsResourceUpdatedEventData ResourceNotificationsResourceUpdatedEventData(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.ResourceWriteCancelEventData ResourceWriteCancelEventData(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.ResourceWriteFailureEventData ResourceWriteFailureEventData(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; } @@ -2757,8 +2757,8 @@ internal ResourceNotificationsResourceUpdatedDetails() { } public string Location { get { throw null; } } public string Name { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary Properties { get { throw null; } } + public string ResourceType { get { throw null; } } public string Tags { get { throw null; } } - public string Type { get { throw null; } } } public partial class ResourceNotificationsResourceUpdatedEventData { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/ResourceNotificationsResourceUpdatedDetails.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/ResourceNotificationsResourceUpdatedDetails.cs new file mode 100644 index 000000000000..0e0c387be0d8 --- /dev/null +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/ResourceNotificationsResourceUpdatedDetails.cs @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core; + +namespace Azure.Messaging.EventGrid.SystemEvents +{ + /// Describes the schema of the properties under resource info which are common across all ARN system topic events. + public partial class ResourceNotificationsResourceUpdatedDetails + { + /// the type of the resource for which the event is being emitted. + [CodeGenMember("Type")] + public string ResourceType { get; } + } +} \ No newline at end of file diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs index d46869293edf..241b4ce80ab0 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs @@ -3023,16 +3023,16 @@ public static HealthcareDicomImageDeletedEventData HealthcareDicomImageDeletedEv /// Initializes a new instance of ResourceNotificationsResourceUpdatedDetails. /// id of the resource for which the event is being emitted. /// name of the resource for which the event is being emitted. - /// the type of the resource for which the event is being emitted. + /// the type of the resource for which the event is being emitted. /// the location of the resource for which the event is being emitted. /// the tags on the resource for which the event is being emitted. /// properties in the payload of the resource for which the event is being emitted. /// A new instance for mocking. - public static ResourceNotificationsResourceUpdatedDetails ResourceNotificationsResourceUpdatedDetails(string id = null, string name = null, string type = null, string location = null, string tags = null, IReadOnlyDictionary properties = null) + public static ResourceNotificationsResourceUpdatedDetails ResourceNotificationsResourceUpdatedDetails(string id = null, string name = null, string resourceType = null, string location = null, string tags = null, IReadOnlyDictionary properties = null) { properties ??= new Dictionary(); - return new ResourceNotificationsResourceUpdatedDetails(id, name, type, location, tags, properties); + return new ResourceNotificationsResourceUpdatedDetails(id, name, resourceType, location, tags, properties); } /// Initializes a new instance of ResourceNotificationsOperationalDetails. diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceUpdatedDetails.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceUpdatedDetails.cs index fb5f2be7f951..fcd2375d12c6 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceUpdatedDetails.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/Models/ResourceNotificationsResourceUpdatedDetails.cs @@ -22,15 +22,15 @@ internal ResourceNotificationsResourceUpdatedDetails() /// Initializes a new instance of ResourceNotificationsResourceUpdatedDetails. /// id of the resource for which the event is being emitted. /// name of the resource for which the event is being emitted. - /// the type of the resource for which the event is being emitted. + /// the type of the resource for which the event is being emitted. /// the location of the resource for which the event is being emitted. /// the tags on the resource for which the event is being emitted. /// properties in the payload of the resource for which the event is being emitted. - internal ResourceNotificationsResourceUpdatedDetails(string id, string name, string type, string location, string tags, IReadOnlyDictionary properties) + internal ResourceNotificationsResourceUpdatedDetails(string id, string name, string resourceType, string location, string tags, IReadOnlyDictionary properties) { Id = id; Name = name; - Type = type; + ResourceType = resourceType; Location = location; Tags = tags; Properties = properties; @@ -40,8 +40,6 @@ internal ResourceNotificationsResourceUpdatedDetails(string id, string name, str public string Id { get; } /// name of the resource for which the event is being emitted. public string Name { get; } - /// the type of the resource for which the event is being emitted. - public string Type { get; } /// the location of the resource for which the event is being emitted. public string Location { get; } /// the tags on the resource for which the event is being emitted.