diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/AKSResources.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/AKSResources.tsp new file mode 100644 index 000000000000..e45bf49a50d0 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/AKSResources.tsp @@ -0,0 +1,54 @@ +import "@typespec/versioning"; +import "./AKSResourcesExample.tsp"; +import "./common.tsp"; +using TypeSpec.Versioning; + +/** +Describes the schema of the AKS Fleet Resources events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent. +*/ +namespace Microsoft.EventGrid.SystemEvents; + +/** +Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.AKSResources.FleetGateCreated event. +*/ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." +@example(MicrosoftResourceNotificationsAKSResourcesFleetGateCreatedExample) +model ResourceNotificationsAksResourcesFleetGateCreatedEventData + extends ResourceNotificationsResourceUpdatedEventData {} + +/** +Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.AKSResources.FleetGateUpdated event. +*/ +#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Maintain compatibility with existing models." +@example(MicrosoftResourceNotificationsAKSResourcesFleetGateUpdatedExample) +model ResourceNotificationsAksResourcesFleetGateUpdatedEventData + extends ResourceNotificationsResourceUpdatedEventData {} + +/** +Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.AKSResources.FleetGateDeleted event. +*/ +@example(MicrosoftAKSResourcesFleetGateDeletedExample) +model ResourceNotificationsAksResourcesFleetGateDeletedEventData { + /** resourceInfo details for deleted event */ + resourceInfo: { + /** id of the resource for which the event is being emitted */ + id: string; + + /** name of the resource for which the event is being emitted */ + name: string; + + /** the type of the resource for which the event is being emitted */ + type: string; + + /** properties in the payload of the resource for which the event is being emitted */ + #suppress "@azure-tools/typespec-azure-core/bad-record-type" "The type of properties is object with additionalProperties object" + @visibility(Lifecycle.Read) + properties: Record; + }; + + /** details about operational info */ + operationalInfo: ResourceNotificationsOperationalDetails; + + /** api version of the resource properties bag */ + apiVersion: string; +} diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/AKSResourcesExample.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/AKSResourcesExample.tsp new file mode 100644 index 000000000000..e4382ed4e465 --- /dev/null +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/AKSResourcesExample.tsp @@ -0,0 +1,81 @@ +import "./AKSResources.tsp"; +namespace Microsoft.EventGrid.SystemEvents; + +const MicrosoftResourceNotificationsAKSResourcesFleetGateCreatedExample: ResourceNotificationsAksResourcesFleetGateCreatedEventData = #{ + resourceInfo: #{ + id: "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/9i567df1-jh3a-281j-8eb8-123ac2el0t60", + name: "9i567df1-jh3a-281j-8eb8-123ac2el0t60", + type: "Microsoft.ContainerService/fleets/gates", + properties: #{ + displayName: "before-stage", + gateType: "Approval", + provisioningState: "Succeeded", + state: "Pending", + target: #{ + id: "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/updateRuns/run-1", + updateRunProperties: #{ + name: "run-1", + stage: "stage-1", + timing: "Before", + }, + }, + }, + }, + operationalInfo: #{ + resourceEventTime: utcDateTime.fromISO("2025-09-09T01:10:58.4955907+00:00"), + }, + apiVersion: "2025-04-01-preview", +}; + +const MicrosoftResourceNotificationsAKSResourcesFleetGateUpdatedExample: ResourceNotificationsAksResourcesFleetGateUpdatedEventData = #{ + resourceInfo: #{ + id: "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/1k90uy67-e375-4xv6-z220-5197ekk1aka4", + name: "1k90uy67-e375-4xv6-z220-5197ekk1aka4", + type: "Microsoft.ContainerService/fleets/gates", + properties: #{ + displayName: "before group", + gateType: "Approval", + provisioningState: "Succeeded", + state: "Completed", + target: #{ + id: "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/updateRuns/run-1", + updateRunProperties: #{ + group: "group-1", + name: "run-1", + stage: "stage-1", + timing: "Before", + }, + }, + }, + }, + operationalInfo: #{ + resourceEventTime: utcDateTime.fromISO("2025-09-09T01:12:25.8924289+00:00"), + }, + apiVersion: "2025-04-01-preview", +}; + +const MicrosoftAKSResourcesFleetGateDeletedExample: ResourceNotificationsAksResourcesFleetGateDeletedEventData = #{ + resourceInfo: #{ + id: "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/8a63212d-9dp1-4oa6-8135-14ghghg311ea6", + name: "8a63212d-9dp1-4oa6-8135-14ghghg311ea6", + type: "Microsoft.ContainerService/fleets/gates", + properties: #{ + displayName: "stage-after", + gateType: "Approval", + provisioningState: "Succeeded", + state: "Pending", + target: #{ + id: "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/updateRuns/run-delete", + updateRunProperties: #{ + name: "run-delete", + stage: "stage-1", + timing: "After", + }, + }, + }, + }, + operationalInfo: #{ + resourceEventTime: utcDateTime.fromISO("2025-09-22T09:01:22.5495164+00:00"), + }, + apiVersion: "2025-04-01-preview", +}; diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/client.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/client.tsp index 740625a6d308..2cc7889f9582 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/client.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.ResourceNotifications/client.tsp @@ -2,6 +2,25 @@ import "@azure-tools/typespec-client-generator-core"; using Azure.ClientGenerator.Core; //Models +//Models +@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsAksResourcesFleetGateCreatedEventData, + Usage.output | Usage.json +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsAksResourcesFleetGateCreatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsAksResourcesFleetGateUpdatedEventData, + Usage.output | Usage.json +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsAksResourcesFleetGateUpdatedEventData, + Access.public +); +@@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsAksResourcesFleetGateDeletedEventData, + Usage.output | Usage.json +); +@@access(Microsoft.EventGrid.SystemEvents.ResourceNotificationsAksResourcesFleetGateDeletedEventData, + Access.public +); @@usage(Microsoft.EventGrid.SystemEvents.ResourceNotificationsContainerServiceEventResourcesScheduledEventData, Usage.output | Usage.json ); diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/main.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/main.tsp index 4e308780b59f..d61cbd1ce013 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/main.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/main.tsp @@ -26,6 +26,7 @@ import "./Microsoft.EventGrid/EventGrid.tsp"; import "./Microsoft.ResourceNotifications/HealthResources.tsp"; import "./Microsoft.ResourceNotifications/Resources.tsp"; import "./Microsoft.ResourceNotifications/ContainerServiceEventResources.tsp"; +import "./Microsoft.ResourceNotifications/AKSResources.tsp"; import "./propertyNameOverride.tsp"; diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/GeneratedSystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/GeneratedSystemEvents.json index 0cccd93334e8..3b2ed85b6277 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/GeneratedSystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/GeneratedSystemEvents.json @@ -7636,6 +7636,73 @@ } } }, + "ResourceNotificationsAksResourcesFleetGateCreatedEventData": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.AKSResources.FleetGateCreated event.", + "allOf": [ + { + "$ref": "#/definitions/ResourceNotificationsResourceUpdatedEventData" + } + ] + }, + "ResourceNotificationsAksResourcesFleetGateDeletedEventData": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.AKSResources.FleetGateDeleted event.", + "properties": { + "resourceInfo": { + "type": "object", + "description": "resourceInfo details for deleted event", + "properties": { + "id": { + "type": "string", + "description": "id of the resource for which the event is being emitted" + }, + "name": { + "type": "string", + "description": "name of the resource for which the event is being emitted" + }, + "type": { + "type": "string", + "description": "the type of the resource for which the event is being emitted" + }, + "properties": { + "type": "object", + "description": "properties in the payload of the resource for which the event is being emitted", + "additionalProperties": {}, + "readOnly": true + } + }, + "required": [ + "id", + "name", + "type", + "properties" + ] + }, + "operationalInfo": { + "$ref": "#/definitions/ResourceNotificationsOperationalDetails", + "description": "details about operational info" + }, + "apiVersion": { + "type": "string", + "description": "api version of the resource properties bag" + } + }, + "required": [ + "resourceInfo", + "operationalInfo", + "apiVersion" + ] + }, + "ResourceNotificationsAksResourcesFleetGateUpdatedEventData": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.AKSResources.FleetGateUpdated event.", + "allOf": [ + { + "$ref": "#/definitions/ResourceNotificationsResourceUpdatedEventData" + } + ] + }, "ResourceNotificationsContainerServiceEventResourcesScheduledEventData": { "type": "object", "description": "Schema of the Data property of an event grid event for a Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted preview event.Schema of the Data property of an event grid event for a Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted preview event.", diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2024-01-01/GeneratedSystemEvents.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2024-01-01/GeneratedSystemEvents.json index aeed0c182634..a6b2c036290d 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2024-01-01/GeneratedSystemEvents.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2024-01-01/GeneratedSystemEvents.json @@ -7774,6 +7774,73 @@ } } }, + "ResourceNotificationsAksResourcesFleetGateCreatedEventData": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.AKSResources.FleetGateCreated event.", + "allOf": [ + { + "$ref": "#/definitions/ResourceNotificationsResourceUpdatedEventData" + } + ] + }, + "ResourceNotificationsAksResourcesFleetGateDeletedEventData": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.AKSResources.FleetGateDeleted event.", + "properties": { + "resourceInfo": { + "type": "object", + "description": "resourceInfo details for deleted event", + "properties": { + "id": { + "type": "string", + "description": "id of the resource for which the event is being emitted" + }, + "name": { + "type": "string", + "description": "name of the resource for which the event is being emitted" + }, + "type": { + "type": "string", + "description": "the type of the resource for which the event is being emitted" + }, + "properties": { + "type": "object", + "description": "properties in the payload of the resource for which the event is being emitted", + "additionalProperties": {}, + "readOnly": true + } + }, + "required": [ + "id", + "name", + "type", + "properties" + ] + }, + "operationalInfo": { + "$ref": "#/definitions/ResourceNotificationsOperationalDetails", + "description": "details about operational info" + }, + "apiVersion": { + "type": "string", + "description": "api version of the resource properties bag" + } + }, + "required": [ + "resourceInfo", + "operationalInfo", + "apiVersion" + ] + }, + "ResourceNotificationsAksResourcesFleetGateUpdatedEventData": { + "type": "object", + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.ResourceNotifications.AKSResources.FleetGateUpdated event.", + "allOf": [ + { + "$ref": "#/definitions/ResourceNotificationsResourceUpdatedEventData" + } + ] + }, "ResourceNotificationsContainerServiceEventResourcesScheduledEventData": { "type": "object", "description": "Schema of the Data property of an event grid event for a Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted preview event.Schema of the Data property of an event grid event for a Microsoft.ResourceNotifications.ContainerServiceEventResources.ScheduledEventEmitted preview event.", diff --git a/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/cloud-events-schema/AKSResources_FleetGateCreated.json b/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/cloud-events-schema/AKSResources_FleetGateCreated.json new file mode 100644 index 000000000000..fa2f0f01f8fd --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/cloud-events-schema/AKSResources_FleetGateCreated.json @@ -0,0 +1,35 @@ +[ + { + "source": "/subscriptions/{subscription-id}", + "subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/9i567df1-jh3a-281j-8eb8-123ac2el0t60", + "type": "Microsoft.ResourceNotifications.AksResources.FleetGateCreated", + "time": "2025-09-09T01:10:58.4955907Z", + "id": "m7m4mf0x-740g-4c2d-a0ab-a4r8h4uuf018", + "data": { + "resourceInfo": { + "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/9i567df1-jh3a-281j-8eb8-123ac2el0t60", + "name": "9i567df1-jh3a-281j-8eb8-123ac2el0t60", + "type": "Microsoft.ContainerService/fleets/gates", + "properties": { + "displayName": "before-stage", + "gateType": "Approval", + "provisioningState": "Succeeded", + "state": "Pending", + "target": { + "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/updateRuns/run-1", + "updateRunProperties": { + "name": "run-1", + "stage": "stage-1", + "timing": "Before" + } + } + } + }, + "operationalInfo": { + "resourceEventTime": "2025-09-08T18:10:58.4955907-07:00" + }, + "apiVersion": "2025-04-01-preview" + }, + "specVersion": "1.0" + } +] diff --git a/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/cloud-events-schema/AKSResources_FleetGateDeleted.json b/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/cloud-events-schema/AKSResources_FleetGateDeleted.json new file mode 100644 index 000000000000..ea70733d460d --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/cloud-events-schema/AKSResources_FleetGateDeleted.json @@ -0,0 +1,35 @@ +[ + { + "source": "/subscriptions/{subscription-id}", + "subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/8a63212d-9dp1-4oa6-8135-14ghghg311ea6", + "type": "Microsoft.ResourceNotifications.AksResources.FleetGateDeleted", + "time": "2025-09-22T09:01:22.5495164Z", + "id": "48e92180-a34e-57b2-b989-7056ccd42c0b", + "data": { + "resourceInfo": { + "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/8a63212d-9dp1-4oa6-8135-14ghghg311ea6", + "name": "8a63212d-9dp1-4oa6-8135-14ghghg311ea6", + "type": "Microsoft.ContainerService/fleets/gates", + "properties": { + "displayName": "stage-after", + "gateType": "Approval", + "provisioningState": "Succeeded", + "state": "Pending", + "target": { + "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/updateRuns/run-delete", + "updateRunProperties": { + "name": "run-delete", + "stage": "stage-1", + "timing": "After" + } + } + } + }, + "operationalInfo": { + "resourceEventTime": "2025-09-22T02:01:22.5495164-07:00" + }, + "apiVersion": "2025-04-01-preview" + }, + "specVersion": "1.0" + } +] diff --git a/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/cloud-events-schema/AKSResources_FleetGateUpdated.json b/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/cloud-events-schema/AKSResources_FleetGateUpdated.json new file mode 100644 index 000000000000..62fc1f25e4c8 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/cloud-events-schema/AKSResources_FleetGateUpdated.json @@ -0,0 +1,36 @@ +[ + { + "source": "/subscriptions/{subscription-id}", + "subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/1k90uy67-e375-4xv6-z220-5197ekk1aka4", + "type": "Microsoft.ResourceNotifications.AksResources.FleetGateUpdated", + "time": "2025-09-09T01:12:25.8924289Z", + "id": "a9f8d51g-c114-4565-buee-5q1jb6fb0b08", + "data": { + "resourceInfo": { + "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/1k90uy67-e375-4xv6-z220-5197ekk1aka4", + "name": "1k90uy67-e375-4xv6-z220-5197ekk1aka4", + "type": "Microsoft.ContainerService/fleets/gates", + "properties": { + "displayName": "before group", + "gateType": "Approval", + "provisioningState": "Succeeded", + "state": "Completed", + "target": { + "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/updateRuns/run-1", + "updateRunProperties": { + "group": "group-1", + "name": "run-1", + "stage": "stage-1", + "timing": "Before" + } + } + } + }, + "operationalInfo": { + "resourceEventTime": "2025-09-08T18:12:25.8924289-07:00" + }, + "apiVersion": "2025-04-01-preview" + }, + "specVersion": "1.0" + } +] diff --git a/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/event-grid-schema/AKSResources_FleetGateCreated.json b/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/event-grid-schema/AKSResources_FleetGateCreated.json new file mode 100644 index 000000000000..23e924250295 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/event-grid-schema/AKSResources_FleetGateCreated.json @@ -0,0 +1,34 @@ +{ + "id": "m7m4mf0x-740g-4c2d-a0ab-a4r8h4uuf018", + "topic": "/subscriptions/{subscription-id}", + "subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/9i567df1-jh3a-281j-8eb8-123ac2el0t60", + "data": { + "resourceInfo": { + "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/9i567df1-jh3a-281j-8eb8-123ac2el0t60", + "name": "9i567df1-jh3a-281j-8eb8-123ac2el0t60", + "type": "Microsoft.ContainerService/fleets/gates", + "properties": { + "displayName": "before-stage", + "gateType": "Approval", + "provisioningState": "Succeeded", + "state": "Pending", + "target": { + "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/updateRuns/run-1", + "updateRunProperties": { + "name": "run-1", + "stage": "stage-1", + "timing": "Before" + } + } + } + }, + "operationalInfo": { + "resourceEventTime": "2025-09-09T01:10:58.4955907+00:00" + }, + "apiVersion": "2025-04-01-preview" + }, + "eventType": "Microsoft.ResourceNotifications.AksResources.FleetGateCreated", + "dataVersion": "1", + "metadataVersion": "1", + "eventTime": "2025-09-09T01:10:58.4955907Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/event-grid-schema/AKSResources_FleetGateDeleted.json b/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/event-grid-schema/AKSResources_FleetGateDeleted.json new file mode 100644 index 000000000000..63d0d42c8732 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/event-grid-schema/AKSResources_FleetGateDeleted.json @@ -0,0 +1,34 @@ +{ + "id": "48e92180-a34e-57b2-b989-7056ccd42c0b", + "topic": "/subscriptions/{subscription-id}", + "subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/8a63212d-9dp1-4oa6-8135-14ghghg311ea6", + "data": { + "resourceInfo": { + "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/8a63212d-9dp1-4oa6-8135-14ghghg311ea6", + "name": "8a63212d-9dp1-4oa6-8135-14ghghg311ea6", + "type": "Microsoft.ContainerService/fleets/gates", + "properties": { + "displayName": "stage-after", + "gateType": "Approval", + "provisioningState": "Succeeded", + "state": "Pending", + "target": { + "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/updateRuns/run-delete", + "updateRunProperties": { + "name": "run-delete", + "stage": "stage-1", + "timing": "After" + } + } + } + }, + "operationalInfo": { + "resourceEventTime": "2025-09-22T09:01:22.5495164+00:00" + }, + "apiVersion": "2025-04-01-preview" + }, + "eventType": "Microsoft.ResourceNotifications.AksResources.FleetGateDeleted", + "dataVersion": "1", + "metadataVersion": "1", + "eventTime": "2025-09-22T09:01:22.5495164Z" +} diff --git a/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/event-grid-schema/AKSResources_FleetGateUpdated.json b/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/event-grid-schema/AKSResources_FleetGateUpdated.json new file mode 100644 index 000000000000..e1eed24346ce --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.ResourceNotifications/stable/2018-01-01/examples/event-grid-schema/AKSResources_FleetGateUpdated.json @@ -0,0 +1,35 @@ +{ + "id": "a9f8d51g-c114-4565-buee-5q1jb6fb0b08", + "topic": "/subscriptions/{subscription-id}", + "subject": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/1k90uy67-e375-4xv6-z220-5197ekk1aka4", + "data": { + "resourceInfo": { + "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/gates/1k90uy67-e375-4xv6-z220-5197ekk1aka4", + "name": "1k90uy67-e375-4xv6-z220-5197ekk1aka4", + "type": "Microsoft.ContainerService/fleets/gates", + "properties": { + "displayName": "before group", + "gateType": "Approval", + "provisioningState": "Succeeded", + "state": "Completed", + "target": { + "id": "/subscriptions/{subscription-id}/resourceGroups/{rg-name}/providers/Microsoft.ContainerService/fleets/{fleet-name}/updateRuns/run-1", + "updateRunProperties": { + "group": "group-1", + "name": "run-1", + "stage": "stage-1", + "timing": "Before" + } + } + } + }, + "operationalInfo": { + "resourceEventTime": "2025-09-09T01:12:25.8924289+00:00" + }, + "apiVersion": "2025-04-01-preview" + }, + "eventType": "Microsoft.ResourceNotifications.AksResources.FleetGateUpdated", + "dataVersion": "1", + "metadataVersion": "1", + "eventTime": "2025-09-09T01:12:25.8924289Z" +} diff --git a/specification/eventgrid/data-plane/readme.md b/specification/eventgrid/data-plane/readme.md index c8ad95340473..4074c5ff0d16 100644 --- a/specification/eventgrid/data-plane/readme.md +++ b/specification/eventgrid/data-plane/readme.md @@ -143,6 +143,7 @@ input-file: - Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json - Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json - Microsoft.ResourceNotifications/stable/2018-01-01/ContainerServiceEventResources.json +- Microsoft.ResourceNotifications/stable/2018-01-01/AKSResources.json - Microsoft.AVS/stable/2018-01-01/PrivateCloud.json - Microsoft.ApiCenter/stable/2018-01-01/ApiCenter.json - Microsoft.Edge/stable/2018-01-01/Edge.json @@ -292,6 +293,7 @@ input-file: - $(this-folder)/Microsoft.ResourceNotifications/stable/2018-01-01/common.json - $(this-folder)/Microsoft.ResourceNotifications/stable/2018-01-01/HealthResources.json - $(this-folder)/Microsoft.ResourceNotifications/stable/2018-01-01/Resources.json + - $(this-folder)/Microsoft.ResourceNotifications/stable/2018-01-01/AKSResources.json - $(this-folder)/Microsoft.AVS/stable/2018-01-01/PrivateCloud.json - $(this-folder)/Microsoft.Edge/stable/2018-01-01/Edge.json ```