From f1e4231d48c1557676e8cd08523efade88120f3c Mon Sep 17 00:00:00 2001 From: Eugene Tolmachev Date: Wed, 25 Sep 2024 09:08:31 -0400 Subject: [PATCH 1/2] AVS grid events --- .../Microsoft.AVS/AVS.tsp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AVS/AVS.tsp b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AVS/AVS.tsp index deae256ada7b..b927d21690ed 100644 --- a/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AVS/AVS.tsp +++ b/specification/eventgrid/Azure.Messaging.EventGrid.SystemEvents/Microsoft.AVS/AVS.tsp @@ -65,13 +65,13 @@ model AvsScriptExecutionFailedEventData extends AvsScriptExecutionEventData { /** Schema of the Data property of an EventGridEvent for Microsoft.AVS/privateClouds events. */ model AvsPrivateCloudEventData { /** Id of the operation that caused this event. */ - operationId?: string; + operationId: string; } /** Schema of the Data property of an EventGridEvent for Microsoft.AVS/clusters events. */ model AvsClusterEventData { /** Id of the operation that caused this event. */ - operationId?: string; + operationId: string; /** Hosts added to the cluster in this event, if any. */ addedHostNames?: string[]; @@ -86,10 +86,10 @@ model AvsClusterEventData { /** Schema of the Data property of an EventGridEvent for Microsoft.AVS/scriptExecutions events. */ model AvsScriptExecutionEventData { /** Id of the operation that caused this event. */ - operationId?: string; + operationId: string; /** Cmdlet referenced in the execution that caused this event. */ - cmdletId?: string; + cmdletId: string; /** Stdout outputs from the execution, if any. */ output?: string[]; From 6bb3afb2ceedcc02833472a46551a0491b61df8b Mon Sep 17 00:00:00 2001 From: Eugene Tolmachev Date: Wed, 25 Sep 2024 14:49:38 -0400 Subject: [PATCH 2/2] generated files --- .../stable/2018-01-01/GeneratedSystemEvents.json | 16 +++++++++++++--- .../stable/2024-01-01/GeneratedSystemEvents.json | 16 +++++++++++++--- 2 files changed, 26 insertions(+), 6 deletions(-) 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 0cdd6a187ca5..48945635b761 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 @@ -3037,7 +3037,10 @@ "type": "string" } } - } + }, + "required": [ + "operationId" + ] }, "AvsClusterFailedEventData": { "type": "object", @@ -3080,7 +3083,10 @@ "type": "string", "description": "Id of the operation that caused this event." } - } + }, + "required": [ + "operationId" + ] }, "AvsPrivateCloudFailedEventData": { "type": "object", @@ -3143,7 +3149,11 @@ "type": "string" } } - } + }, + "required": [ + "operationId", + "cmdletId" + ] }, "AvsScriptExecutionFailedEventData": { "type": "object", 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 6d1979e0180c..36bd7e604627 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 @@ -3101,7 +3101,10 @@ "type": "string" } } - } + }, + "required": [ + "operationId" + ] }, "AvsClusterFailedEventData": { "type": "object", @@ -3144,7 +3147,10 @@ "type": "string", "description": "Id of the operation that caused this event." } - } + }, + "required": [ + "operationId" + ] }, "AvsPrivateCloudFailedEventData": { "type": "object", @@ -3207,7 +3213,11 @@ "type": "string" } } - } + }, + "required": [ + "operationId", + "cmdletId" + ] }, "AvsScriptExecutionFailedEventData": { "type": "object",