From 1ffff2581b90a82b3bea16747ef55df3684b7799 Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Fri, 1 May 2020 19:36:19 -0700 Subject: [PATCH 01/17] added app service schema --- .../Microsoft.Web/stable/2018-01-01/Web.json | 680 ++++++++++++++++++ 1 file changed, 680 insertions(+) create mode 100644 specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json new file mode 100644 index 000000000000..8b26fa46f582 --- /dev/null +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -0,0 +1,680 @@ +{ + "swagger": "2.0", + "info": { + "version": "2018-01-01", + "title": "Schema of Azure App Service events published to Azure Event Grid", + "description": "Describes the schema of the Azure App Service events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." + }, + "paths": {}, + "definitions": { + "WebAppDeletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppDeleted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebAppUpdatedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppUpdated event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebBackupOperationStartedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationStarted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebBackupOperationCompletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationCompleted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebBackupOperationFailedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationFailed event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebRestoreOperationStartedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationStarted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebRestoreOperationCompletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationCompleted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebRestoreOperationFailedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationFailed event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebSlotSwapStartedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapStarted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebSlotSwapCompletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapCompleted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebSlotSwapFailedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapFailed event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebSlotSwapWithPreviewStartedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewStarted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebSlotSwapWithPreviewCancelledEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewCancelled event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebAppServicePlanDeletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanDeleted event.", + "type": "object", + "properties": { + "AppServicePlanEventTypeDetail": { + "description": "Detail of action on the app service plan", + "type": "object", + "properties": { + "StampKind": { + "description": "Kind of environment where app service plan is.", + "type": "string" + }, + "Action": { + "description": "Type of action on the app service plan.", + "type": "string" + }, + "Status": { + "description": "Status of the operation on the app service plan.", + "type": "string" + } + } + }, + "Sku": { + "description": "sku of app service plan.", + "type": "object", + "properties": { + "Name": { + "description": "name of app service plan sku.", + "type": "string" + }, + "Tier": { + "description": "tier of app service plan sku.", + "type": "string" + }, + "Size": { + "description": "size of app service plan sku.", + "type": "string" + }, + "Family": { + "description": "family of app service plan sku.", + "type": "string" + }, + "Capacity": { + "description": "capacity of app service plan sku.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the app service plan that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the app service plan API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the app service plan API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the app service plan API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + }, + "WebAppServicePlanUpdatedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanUpdated event.", + "type": "object", + "properties": { + "AppServicePlanEventTypeDetail": { + "description": "Detail of action on the app service plan", + "type": "object", + "properties": { + "StampKind": { + "description": "Kind of environment where app service plan is.", + "type": "string" + }, + "Action": { + "description": "Type of action on the app service plan.", + "type": "string" + }, + "Status": { + "description": "Status of the operation on the app service plan.", + "type": "string" + } + } + }, + "Sku": { + "description": "sku of app service plan.", + "type": "object", + "properties": { + "Name": { + "description": "name of app service plan sku.", + "type": "string" + }, + "Tier": { + "description": "tier of app service plan sku.", + "type": "string" + }, + "Size": { + "description": "size of app service plan sku.", + "type": "string" + }, + "Family": { + "description": "family of app service plan sku.", + "type": "string" + }, + "Capacity": { + "description": "capacity of app service plan sku.", + "type": "string" + } + } + }, + "Name": { + "description": "name of the app service plan that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the app service plan API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the app service plan API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the app service plan API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" + } + } + } + } + } + \ No newline at end of file From db7acadedcbd1ea1def6c57128acd1c21bc77527 Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Fri, 1 May 2020 19:48:49 -0700 Subject: [PATCH 02/17] added ref to new file in readme.md --- specification/eventgrid/data-plane/readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/eventgrid/data-plane/readme.md b/specification/eventgrid/data-plane/readme.md index aa5a71eb52c0..fd7eb6016138 100644 --- a/specification/eventgrid/data-plane/readme.md +++ b/specification/eventgrid/data-plane/readme.md @@ -58,6 +58,7 @@ input-file: - Microsoft.KeyVault/stable/2018-01-01/KeyVault.json - Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json - Microsoft.Cache/stable/2018-01-01/RedisCache.json +- Microsoft.Web/stable/2018-01-01/Web.json ``` --- @@ -139,6 +140,7 @@ input-file: - $(this-folder)/Microsoft.KeyVault/stable/2018-01-01/KeyVault.json - $(this-folder)/Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json - $(this-folder)/Microsoft.Cache/stable/2018-01-01/RedisCache.json + - $(this-folder)/Microsoft.Web/stable/2018-01-01/Web.json ``` From 17419024a029e45cf9598b9bef9c6908607ad0c8 Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Fri, 1 May 2020 20:03:50 -0700 Subject: [PATCH 03/17] prettier --- .../Microsoft.Web/stable/2018-01-01/Web.json | 1257 ++++++++--------- 1 file changed, 628 insertions(+), 629 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 8b26fa46f582..737dc04fb9b0 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -1,680 +1,679 @@ { - "swagger": "2.0", - "info": { - "version": "2018-01-01", - "title": "Schema of Azure App Service events published to Azure Event Grid", - "description": "Describes the schema of the Azure App Service events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." - }, - "paths": {}, - "definitions": { - "WebAppDeletedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppDeleted event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + "swagger": "2.0", + "info": { + "version": "2018-01-01", + "title": "Schema of Azure App Service events published to Azure Event Grid", + "description": "Describes the schema of the Azure App Service events published to Azure Event Grid. This corresponds to the Data property of an EventGridEvent." + }, + "paths": {}, + "definitions": { + "WebAppDeletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppDeleted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebAppUpdatedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppUpdated event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + } + }, + "WebAppUpdatedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppUpdated event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebBackupOperationStartedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationStarted event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + } + }, + "WebBackupOperationStartedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationStarted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebBackupOperationCompletedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationCompleted event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + } + }, + "WebBackupOperationCompletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationCompleted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebBackupOperationFailedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationFailed event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + } + }, + "WebBackupOperationFailedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationFailed event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebRestoreOperationStartedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationStarted event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + } + }, + "WebRestoreOperationStartedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationStarted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebRestoreOperationCompletedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationCompleted event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + } + }, + "WebRestoreOperationCompletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationCompleted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebRestoreOperationFailedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationFailed event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + } + }, + "WebRestoreOperationFailedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationFailed event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebSlotSwapStartedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapStarted event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + } + }, + "WebSlotSwapStartedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapStarted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebSlotSwapCompletedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapCompleted event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + } + }, + "WebSlotSwapCompletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapCompleted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebSlotSwapFailedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapFailed event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + } + }, + "WebSlotSwapFailedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapFailed event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebSlotSwapWithPreviewStartedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewStarted event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + } + }, + "WebSlotSwapWithPreviewStartedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewStarted event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebSlotSwapWithPreviewCancelledEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewCancelled event.", - "type": "object", - "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "Action": { - "description": "Type of action of the operation.", - "type": "string" - } + } + }, + "WebSlotSwapWithPreviewCancelledEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewCancelled event.", + "type": "object", + "properties": { + "appEventTypeDetail": { + "description": "Detail of action on the app", + "type": "object", + "properties": { + "Action": { + "description": "Type of action of the operation.", + "type": "string" } - }, - "Name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the web site that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the site API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebAppServicePlanDeletedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanDeleted event.", - "type": "object", - "properties": { - "AppServicePlanEventTypeDetail": { - "description": "Detail of action on the app service plan", - "type": "object", - "properties": { - "StampKind": { - "description": "Kind of environment where app service plan is.", - "type": "string" - }, - "Action": { - "description": "Type of action on the app service plan.", - "type": "string" - }, - "Status": { - "description": "Status of the operation on the app service plan.", - "type": "string" - } + } + }, + "WebAppServicePlanDeletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanDeleted event.", + "type": "object", + "properties": { + "AppServicePlanEventTypeDetail": { + "description": "Detail of action on the app service plan", + "type": "object", + "properties": { + "StampKind": { + "description": "Kind of environment where app service plan is.", + "type": "string" + }, + "Action": { + "description": "Type of action on the app service plan.", + "type": "string" + }, + "Status": { + "description": "Status of the operation on the app service plan.", + "type": "string" } - }, - "Sku": { - "description": "sku of app service plan.", - "type": "object", - "properties": { - "Name": { - "description": "name of app service plan sku.", - "type": "string" - }, - "Tier": { - "description": "tier of app service plan sku.", - "type": "string" - }, - "Size": { - "description": "size of app service plan sku.", - "type": "string" - }, - "Family": { - "description": "family of app service plan sku.", - "type": "string" - }, - "Capacity": { - "description": "capacity of app service plan sku.", - "type": "string" - } + } + }, + "Sku": { + "description": "sku of app service plan.", + "type": "object", + "properties": { + "Name": { + "description": "name of app service plan sku.", + "type": "string" + }, + "Tier": { + "description": "tier of app service plan sku.", + "type": "string" + }, + "Size": { + "description": "size of app service plan sku.", + "type": "string" + }, + "Family": { + "description": "family of app service plan sku.", + "type": "string" + }, + "Capacity": { + "description": "capacity of app service plan sku.", + "type": "string" } - }, - "Name": { - "description": "name of the app service plan that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the app service plan API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the app service plan API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the app service plan API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the app service plan that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the app service plan API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the app service plan API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the app service plan API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } - }, - "WebAppServicePlanUpdatedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanUpdated event.", - "type": "object", - "properties": { - "AppServicePlanEventTypeDetail": { - "description": "Detail of action on the app service plan", - "type": "object", - "properties": { - "StampKind": { - "description": "Kind of environment where app service plan is.", - "type": "string" - }, - "Action": { - "description": "Type of action on the app service plan.", - "type": "string" - }, - "Status": { - "description": "Status of the operation on the app service plan.", - "type": "string" - } + } + }, + "WebAppServicePlanUpdatedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanUpdated event.", + "type": "object", + "properties": { + "AppServicePlanEventTypeDetail": { + "description": "Detail of action on the app service plan", + "type": "object", + "properties": { + "StampKind": { + "description": "Kind of environment where app service plan is.", + "type": "string" + }, + "Action": { + "description": "Type of action on the app service plan.", + "type": "string" + }, + "Status": { + "description": "Status of the operation on the app service plan.", + "type": "string" } - }, - "Sku": { - "description": "sku of app service plan.", - "type": "object", - "properties": { - "Name": { - "description": "name of app service plan sku.", - "type": "string" - }, - "Tier": { - "description": "tier of app service plan sku.", - "type": "string" - }, - "Size": { - "description": "size of app service plan sku.", - "type": "string" - }, - "Family": { - "description": "family of app service plan sku.", - "type": "string" - }, - "Capacity": { - "description": "capacity of app service plan sku.", - "type": "string" - } + } + }, + "Sku": { + "description": "sku of app service plan.", + "type": "object", + "properties": { + "Name": { + "description": "name of app service plan sku.", + "type": "string" + }, + "Tier": { + "description": "tier of app service plan sku.", + "type": "string" + }, + "Size": { + "description": "size of app service plan sku.", + "type": "string" + }, + "Family": { + "description": "family of app service plan sku.", + "type": "string" + }, + "Capacity": { + "description": "capacity of app service plan sku.", + "type": "string" } - }, - "Name": { - "description": "name of the app service plan that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the app service plan API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the app service plan API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the app service plan API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" } + }, + "Name": { + "description": "name of the app service plan that had this event.", + "type": "string" + }, + "clientRequestId": { + "description": "The client request id generated by the app service for the app service plan API operation that triggered this event.", + "type": "string" + }, + "correlationRequestId": { + "description": "The correlation request id generated by the app service for the app service plan API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the app service for the app service plan API operation that triggered this event.", + "type": "string" + }, + "address": { + "description": "HTTP request URL of this operation.", + "type": "string" + }, + "verb": { + "description": "HTTP verb of this operation.", + "type": "string" } } } } - \ No newline at end of file +} From cfd60b95d92d20c0ca7fbcfa3dee7bc334ad860a Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Fri, 1 May 2020 20:14:29 -0700 Subject: [PATCH 04/17] JSON Lint --- .../Microsoft.Web/stable/2018-01-01/Web.json | 80 +++++++++---------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 737dc04fb9b0..ade85642d586 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -15,13 +15,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -55,13 +55,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -95,13 +95,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -135,13 +135,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -175,13 +175,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -215,13 +215,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -255,13 +255,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -295,13 +295,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -335,13 +335,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -375,13 +375,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -415,13 +415,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -455,13 +455,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -495,13 +495,13 @@ "description": "Detail of action on the app", "type": "object", "properties": { - "Action": { + "action": { "description": "Type of action of the operation.", "type": "string" } } }, - "Name": { + "name": { "description": "name of the web site that had this event.", "type": "string" }, @@ -531,29 +531,29 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanDeleted event.", "type": "object", "properties": { - "AppServicePlanEventTypeDetail": { + "appServicePlanEventTypeDetail": { "description": "Detail of action on the app service plan", "type": "object", "properties": { - "StampKind": { + "stampKind": { "description": "Kind of environment where app service plan is.", "type": "string" }, - "Action": { + "action": { "description": "Type of action on the app service plan.", "type": "string" }, - "Status": { + "status": { "description": "Status of the operation on the app service plan.", "type": "string" } } }, - "Sku": { + "sku": { "description": "sku of app service plan.", "type": "object", "properties": { - "Name": { + "name": { "description": "name of app service plan sku.", "type": "string" }, @@ -575,7 +575,7 @@ } } }, - "Name": { + "name": { "description": "name of the app service plan that had this event.", "type": "string" }, @@ -605,29 +605,29 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanUpdated event.", "type": "object", "properties": { - "AppServicePlanEventTypeDetail": { + "appServicePlanEventTypeDetail": { "description": "Detail of action on the app service plan", "type": "object", "properties": { - "StampKind": { + "stampKind": { "description": "Kind of environment where app service plan is.", "type": "string" }, - "Action": { + "action": { "description": "Type of action on the app service plan.", "type": "string" }, - "Status": { + "status": { "description": "Status of the operation on the app service plan.", "type": "string" } } }, - "Sku": { + "sku": { "description": "sku of app service plan.", "type": "object", "properties": { - "Name": { + "name": { "description": "name of app service plan sku.", "type": "string" }, @@ -649,7 +649,7 @@ } } }, - "Name": { + "name": { "description": "name of the app service plan that had this event.", "type": "string" }, From 4723c6a1416e73c3ab5f2e1e5c86a092636855f2 Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Thu, 14 May 2020 15:32:40 -0700 Subject: [PATCH 05/17] created classes for app event type detail --- .../Microsoft.Web/stable/2018-01-01/Web.json | 303 ++++++++---------- 1 file changed, 137 insertions(+), 166 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index ade85642d586..707f04961974 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -11,16 +11,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppDeleted event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -51,16 +42,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppUpdated event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -91,16 +73,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationStarted event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -131,16 +104,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationCompleted event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -171,16 +135,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationFailed event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -211,16 +166,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationStarted event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -251,16 +197,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationCompleted event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -291,16 +228,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationFailed event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -331,16 +259,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapStarted event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -371,16 +290,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapCompleted event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -411,16 +321,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapFailed event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -451,16 +352,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewStarted event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -491,16 +383,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewCancelled event.", "type": "object", "properties": { - "appEventTypeDetail": { - "description": "Detail of action on the app", - "type": "object", - "properties": { - "action": { - "description": "Type of action of the operation.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppEventTypeDetail", "name": { "description": "name of the web site that had this event.", "type": "string" @@ -531,24 +414,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanDeleted event.", "type": "object", "properties": { - "appServicePlanEventTypeDetail": { - "description": "Detail of action on the app service plan", - "type": "object", - "properties": { - "stampKind": { - "description": "Kind of environment where app service plan is.", - "type": "string" - }, - "action": { - "description": "Type of action on the app service plan.", - "type": "string" - }, - "status": { - "description": "Status of the operation on the app service plan.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppServicePlanEventTypeDetail", "sku": { "description": "sku of app service plan.", "type": "object", @@ -605,24 +471,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanUpdated event.", "type": "object", "properties": { - "appServicePlanEventTypeDetail": { - "description": "Detail of action on the app service plan", - "type": "object", - "properties": { - "stampKind": { - "description": "Kind of environment where app service plan is.", - "type": "string" - }, - "action": { - "description": "Type of action on the app service plan.", - "type": "string" - }, - "status": { - "description": "Status of the operation on the app service plan.", - "type": "string" - } - } - }, + "$ref": "#/definitions/AppServicePlanEventTypeDetail", "sku": { "description": "sku of app service plan.", "type": "object", @@ -674,6 +523,128 @@ "type": "string" } } + }, + "AppEventTypeDetail": { + "description": "Detail of action on the app.", + "type": "object", + "properties": { + "action": { + "description": "Type of action of the operation.", + "type": "string", + "enum": [ + "Restarted", + "Stopped", + "ChangedAppSettings", + "Started", + "Completed", + "Failed" + ], + "x-ms-enum": { + "name": "Action", + "values": [ + { + "value": "Restarted", + "description": "Web app was restarted." + }, + { + "value": "Stopped", + "description": "Web app was stopped." + }, + { + "value": "ChangedAppSettings", + "description": "There was an operation to change app setting on the web app." + }, + { + "value": "Started", + "description": "The job has started." + }, + { + "value": "Completed", + "description": "The job has completed." + }, + { + "value": "Failed", + "description": "The job has failed to complete." + } + ] + } + } + } + }, + "AppServicePlanEventTypeDetail": { + "description": "Detail of action on the app service plan.", + "type": "object", + "properties": { + "stampKind": { + "description": "Kind of environment where app service plan is.", + "type": "string", + "enum": [ + "Public", + "AseV1", + "AseV2" + ], + "x-ms-enum": { + "name": "StampKind", + "values": [ + { + "value": "Public", + "description": "App Service Plan is running on a public stamp." + }, + { + "value": "AseV1", + "description": "App Service Plan is running on an App Service Environment V1." + }, + { + "value": "AseV2", + "description": "App Service Plan is running on an App Service Environment V2." + } + ] + } + }, + "action": { + "description": "Type of action on the app service plan.", + "type": "string", + "enum": [ + "Updated" + ], + "x-ms-enum": { + "name": "Action", + "values": [ + { + "value": "Updated", + "description": "App Service plan is being updated." + } + ] + } + }, + "$ref": "#/definitions/AsyncStatus" + } + }, + "AsyncStatus": { + "description": "Asynchronous operation status of the operation on the app service plan.", + "type": "string", + "enum": [ + "Started", + "Completed", + "Failed" + ], + "x-ms-enum": { + "name": "Status", + "values": [ + { + "value": "Started", + "description": "The operation has started." + }, + { + "value": "Completed", + "description": "The operation has completed." + }, + { + "value": "Failed", + "description": "The operation has failed." + } + ] + } } } } From 44826832386deb5dc50a86e44c2941e24d38aabc Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Thu, 14 May 2020 16:28:33 -0700 Subject: [PATCH 06/17] remove delete and create event data --- .../Microsoft.Web/stable/2018-01-01/Web.json | 88 ------------------- 1 file changed, 88 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 707f04961974..85007595659b 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -7,37 +7,6 @@ }, "paths": {}, "definitions": { - "WebAppDeletedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppDeleted event.", - "type": "object", - "properties": { - "$ref": "#/definitions/AppEventTypeDetail", - "name": { - "description": "name of the web site that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the site API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" - } - } - }, "WebAppUpdatedEventData": { "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppUpdated event.", "type": "object", @@ -410,63 +379,6 @@ } } }, - "WebAppServicePlanDeletedEventData": { - "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanDeleted event.", - "type": "object", - "properties": { - "$ref": "#/definitions/AppServicePlanEventTypeDetail", - "sku": { - "description": "sku of app service plan.", - "type": "object", - "properties": { - "name": { - "description": "name of app service plan sku.", - "type": "string" - }, - "Tier": { - "description": "tier of app service plan sku.", - "type": "string" - }, - "Size": { - "description": "size of app service plan sku.", - "type": "string" - }, - "Family": { - "description": "family of app service plan sku.", - "type": "string" - }, - "Capacity": { - "description": "capacity of app service plan sku.", - "type": "string" - } - } - }, - "name": { - "description": "name of the app service plan that had this event.", - "type": "string" - }, - "clientRequestId": { - "description": "The client request id generated by the app service for the app service plan API operation that triggered this event.", - "type": "string" - }, - "correlationRequestId": { - "description": "The correlation request id generated by the app service for the app service plan API operation that triggered this event.", - "type": "string" - }, - "requestId": { - "description": "The request id generated by the app service for the app service plan API operation that triggered this event.", - "type": "string" - }, - "address": { - "description": "HTTP request URL of this operation.", - "type": "string" - }, - "verb": { - "description": "HTTP verb of this operation.", - "type": "string" - } - } - }, "WebAppServicePlanUpdatedEventData": { "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanUpdated event.", "type": "object", From 093a066772ec9d791c2cf4d3a8689f6dde577636 Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Thu, 14 May 2020 16:36:37 -0700 Subject: [PATCH 07/17] fix format --- .../Microsoft.Web/stable/2018-01-01/Web.json | 65 +++++++++++++++---- 1 file changed, 52 insertions(+), 13 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 85007595659b..3613a8d2f28e 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -11,7 +11,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppUpdated event.", "type": "object", "properties": { - "$ref": "#/definitions/AppEventTypeDetail", + "appEventTypeDetail": { + "$ref": "#/definitions/AppEventTypeDetail", + "description":"Detail of the action on the app." + }, "name": { "description": "name of the web site that had this event.", "type": "string" @@ -42,7 +45,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationStarted event.", "type": "object", "properties": { - "$ref": "#/definitions/AppEventTypeDetail", + "appEventTypeDetail": { + "$ref": "#/definitions/AppEventTypeDetail", + "description":"Detail of the action on the app." + }, "name": { "description": "name of the web site that had this event.", "type": "string" @@ -73,7 +79,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationCompleted event.", "type": "object", "properties": { - "$ref": "#/definitions/AppEventTypeDetail", + "appEventTypeDetail": { + "$ref": "#/definitions/AppEventTypeDetail", + "description":"Detail of the action on the app." + }, "name": { "description": "name of the web site that had this event.", "type": "string" @@ -104,7 +113,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.BackupOperationFailed event.", "type": "object", "properties": { - "$ref": "#/definitions/AppEventTypeDetail", + "appEventTypeDetail": { + "$ref": "#/definitions/AppEventTypeDetail", + "description":"Detail of the action on the app." + }, "name": { "description": "name of the web site that had this event.", "type": "string" @@ -135,7 +147,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationStarted event.", "type": "object", "properties": { - "$ref": "#/definitions/AppEventTypeDetail", + "appEventTypeDetail": { + "$ref": "#/definitions/AppEventTypeDetail", + "description":"Detail of the action on the app." + }, "name": { "description": "name of the web site that had this event.", "type": "string" @@ -166,7 +181,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationCompleted event.", "type": "object", "properties": { - "$ref": "#/definitions/AppEventTypeDetail", + "appEventTypeDetail": { + "$ref": "#/definitions/AppEventTypeDetail", + "description":"Detail of the action on the app." + }, "name": { "description": "name of the web site that had this event.", "type": "string" @@ -197,7 +215,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.RestoreOperationFailed event.", "type": "object", "properties": { - "$ref": "#/definitions/AppEventTypeDetail", + "appEventTypeDetail": { + "$ref": "#/definitions/AppEventTypeDetail", + "description":"Detail of the action on the app." + }, "name": { "description": "name of the web site that had this event.", "type": "string" @@ -228,7 +249,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapStarted event.", "type": "object", "properties": { - "$ref": "#/definitions/AppEventTypeDetail", + "appEventTypeDetail": { + "$ref": "#/definitions/AppEventTypeDetail", + "description":"Detail of the action on the app." + }, "name": { "description": "name of the web site that had this event.", "type": "string" @@ -259,7 +283,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapCompleted event.", "type": "object", "properties": { - "$ref": "#/definitions/AppEventTypeDetail", + "appEventTypeDetail": { + "$ref": "#/definitions/AppEventTypeDetail", + "description":"Detail of the action on the app." + }, "name": { "description": "name of the web site that had this event.", "type": "string" @@ -290,7 +317,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapFailed event.", "type": "object", "properties": { - "$ref": "#/definitions/AppEventTypeDetail", + "appEventTypeDetail": { + "$ref": "#/definitions/AppEventTypeDetail", + "description":"Detail of the action on the app." + }, "name": { "description": "name of the web site that had this event.", "type": "string" @@ -321,7 +351,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewStarted event.", "type": "object", "properties": { - "$ref": "#/definitions/AppEventTypeDetail", + "appEventTypeDetail": { + "$ref": "#/definitions/AppEventTypeDetail", + "description":"Detail of the action on the app." + }, "name": { "description": "name of the web site that had this event.", "type": "string" @@ -352,7 +385,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.SlotSwapWithPreviewCancelled event.", "type": "object", "properties": { - "$ref": "#/definitions/AppEventTypeDetail", + "appEventTypeDetail": { + "$ref": "#/definitions/AppEventTypeDetail", + "description":"Detail of the action on the app." + }, "name": { "description": "name of the web site that had this event.", "type": "string" @@ -383,7 +419,10 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Web.AppServicePlanUpdated event.", "type": "object", "properties": { - "$ref": "#/definitions/AppServicePlanEventTypeDetail", + "appServicePlanEventTypeDetail": { + "$ref": "#/definitions/AppServicePlanEventTypeDetail", + "description":"Detail of the action on the app service plan." + }, "sku": { "description": "sku of app service plan.", "type": "object", From 08c36b337c4b83fb1087a0cbe41249ad31913813 Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Thu, 14 May 2020 16:42:49 -0700 Subject: [PATCH 08/17] ran prettier --- .../Microsoft.Web/stable/2018-01-01/Web.json | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 3613a8d2f28e..070d8079de37 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -13,7 +13,7 @@ "properties": { "appEventTypeDetail": { "$ref": "#/definitions/AppEventTypeDetail", - "description":"Detail of the action on the app." + "description": "Detail of the action on the app." }, "name": { "description": "name of the web site that had this event.", @@ -47,7 +47,7 @@ "properties": { "appEventTypeDetail": { "$ref": "#/definitions/AppEventTypeDetail", - "description":"Detail of the action on the app." + "description": "Detail of the action on the app." }, "name": { "description": "name of the web site that had this event.", @@ -81,7 +81,7 @@ "properties": { "appEventTypeDetail": { "$ref": "#/definitions/AppEventTypeDetail", - "description":"Detail of the action on the app." + "description": "Detail of the action on the app." }, "name": { "description": "name of the web site that had this event.", @@ -115,7 +115,7 @@ "properties": { "appEventTypeDetail": { "$ref": "#/definitions/AppEventTypeDetail", - "description":"Detail of the action on the app." + "description": "Detail of the action on the app." }, "name": { "description": "name of the web site that had this event.", @@ -149,7 +149,7 @@ "properties": { "appEventTypeDetail": { "$ref": "#/definitions/AppEventTypeDetail", - "description":"Detail of the action on the app." + "description": "Detail of the action on the app." }, "name": { "description": "name of the web site that had this event.", @@ -183,7 +183,7 @@ "properties": { "appEventTypeDetail": { "$ref": "#/definitions/AppEventTypeDetail", - "description":"Detail of the action on the app." + "description": "Detail of the action on the app." }, "name": { "description": "name of the web site that had this event.", @@ -217,7 +217,7 @@ "properties": { "appEventTypeDetail": { "$ref": "#/definitions/AppEventTypeDetail", - "description":"Detail of the action on the app." + "description": "Detail of the action on the app." }, "name": { "description": "name of the web site that had this event.", @@ -251,7 +251,7 @@ "properties": { "appEventTypeDetail": { "$ref": "#/definitions/AppEventTypeDetail", - "description":"Detail of the action on the app." + "description": "Detail of the action on the app." }, "name": { "description": "name of the web site that had this event.", @@ -285,7 +285,7 @@ "properties": { "appEventTypeDetail": { "$ref": "#/definitions/AppEventTypeDetail", - "description":"Detail of the action on the app." + "description": "Detail of the action on the app." }, "name": { "description": "name of the web site that had this event.", @@ -319,7 +319,7 @@ "properties": { "appEventTypeDetail": { "$ref": "#/definitions/AppEventTypeDetail", - "description":"Detail of the action on the app." + "description": "Detail of the action on the app." }, "name": { "description": "name of the web site that had this event.", @@ -353,7 +353,7 @@ "properties": { "appEventTypeDetail": { "$ref": "#/definitions/AppEventTypeDetail", - "description":"Detail of the action on the app." + "description": "Detail of the action on the app." }, "name": { "description": "name of the web site that had this event.", @@ -387,7 +387,7 @@ "properties": { "appEventTypeDetail": { "$ref": "#/definitions/AppEventTypeDetail", - "description":"Detail of the action on the app." + "description": "Detail of the action on the app." }, "name": { "description": "name of the web site that had this event.", @@ -421,7 +421,7 @@ "properties": { "appServicePlanEventTypeDetail": { "$ref": "#/definitions/AppServicePlanEventTypeDetail", - "description":"Detail of the action on the app service plan." + "description": "Detail of the action on the app service plan." }, "sku": { "description": "sku of app service plan.", From 94ff2deb6cf605e2c146a4311fd019477b4a65fa Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Thu, 14 May 2020 16:45:53 -0700 Subject: [PATCH 09/17] fix async status and remove description from each ref --- .../Microsoft.Web/stable/2018-01-01/Web.json | 43 +++++++------------ 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 070d8079de37..ff1c5a3a7278 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -12,8 +12,7 @@ "type": "object", "properties": { "appEventTypeDetail": { - "$ref": "#/definitions/AppEventTypeDetail", - "description": "Detail of the action on the app." + "$ref": "#/definitions/AppEventTypeDetail" }, "name": { "description": "name of the web site that had this event.", @@ -46,8 +45,7 @@ "type": "object", "properties": { "appEventTypeDetail": { - "$ref": "#/definitions/AppEventTypeDetail", - "description": "Detail of the action on the app." + "$ref": "#/definitions/AppEventTypeDetail" }, "name": { "description": "name of the web site that had this event.", @@ -80,8 +78,7 @@ "type": "object", "properties": { "appEventTypeDetail": { - "$ref": "#/definitions/AppEventTypeDetail", - "description": "Detail of the action on the app." + "$ref": "#/definitions/AppEventTypeDetail" }, "name": { "description": "name of the web site that had this event.", @@ -114,8 +111,7 @@ "type": "object", "properties": { "appEventTypeDetail": { - "$ref": "#/definitions/AppEventTypeDetail", - "description": "Detail of the action on the app." + "$ref": "#/definitions/AppEventTypeDetail" }, "name": { "description": "name of the web site that had this event.", @@ -148,8 +144,7 @@ "type": "object", "properties": { "appEventTypeDetail": { - "$ref": "#/definitions/AppEventTypeDetail", - "description": "Detail of the action on the app." + "$ref": "#/definitions/AppEventTypeDetail" }, "name": { "description": "name of the web site that had this event.", @@ -182,8 +177,7 @@ "type": "object", "properties": { "appEventTypeDetail": { - "$ref": "#/definitions/AppEventTypeDetail", - "description": "Detail of the action on the app." + "$ref": "#/definitions/AppEventTypeDetail" }, "name": { "description": "name of the web site that had this event.", @@ -216,8 +210,7 @@ "type": "object", "properties": { "appEventTypeDetail": { - "$ref": "#/definitions/AppEventTypeDetail", - "description": "Detail of the action on the app." + "$ref": "#/definitions/AppEventTypeDetail" }, "name": { "description": "name of the web site that had this event.", @@ -250,8 +243,7 @@ "type": "object", "properties": { "appEventTypeDetail": { - "$ref": "#/definitions/AppEventTypeDetail", - "description": "Detail of the action on the app." + "$ref": "#/definitions/AppEventTypeDetail" }, "name": { "description": "name of the web site that had this event.", @@ -284,8 +276,7 @@ "type": "object", "properties": { "appEventTypeDetail": { - "$ref": "#/definitions/AppEventTypeDetail", - "description": "Detail of the action on the app." + "$ref": "#/definitions/AppEventTypeDetail" }, "name": { "description": "name of the web site that had this event.", @@ -318,8 +309,7 @@ "type": "object", "properties": { "appEventTypeDetail": { - "$ref": "#/definitions/AppEventTypeDetail", - "description": "Detail of the action on the app." + "$ref": "#/definitions/AppEventTypeDetail" }, "name": { "description": "name of the web site that had this event.", @@ -352,8 +342,7 @@ "type": "object", "properties": { "appEventTypeDetail": { - "$ref": "#/definitions/AppEventTypeDetail", - "description": "Detail of the action on the app." + "$ref": "#/definitions/AppEventTypeDetail" }, "name": { "description": "name of the web site that had this event.", @@ -386,8 +375,7 @@ "type": "object", "properties": { "appEventTypeDetail": { - "$ref": "#/definitions/AppEventTypeDetail", - "description": "Detail of the action on the app." + "$ref": "#/definitions/AppEventTypeDetail" }, "name": { "description": "name of the web site that had this event.", @@ -420,8 +408,7 @@ "type": "object", "properties": { "appServicePlanEventTypeDetail": { - "$ref": "#/definitions/AppServicePlanEventTypeDetail", - "description": "Detail of the action on the app service plan." + "$ref": "#/definitions/AppServicePlanEventTypeDetail" }, "sku": { "description": "sku of app service plan.", @@ -568,7 +555,9 @@ ] } }, - "$ref": "#/definitions/AsyncStatus" + "status": { + "$ref": "#/definitions/AsyncStatus" + } } }, "AsyncStatus": { From 316c2bdd46517bbc2ca4782817a16fab875ea455 Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Thu, 14 May 2020 16:57:15 -0700 Subject: [PATCH 10/17] remove x-ms-enum for some --- .../Microsoft.Web/stable/2018-01-01/Web.json | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index ff1c5a3a7278..9d79a2ec24f8 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -478,7 +478,6 @@ "Failed" ], "x-ms-enum": { - "name": "Action", "values": [ { "value": "Restarted", @@ -522,7 +521,6 @@ "AseV2" ], "x-ms-enum": { - "name": "StampKind", "values": [ { "value": "Public", @@ -544,16 +542,7 @@ "type": "string", "enum": [ "Updated" - ], - "x-ms-enum": { - "name": "Action", - "values": [ - { - "value": "Updated", - "description": "App Service plan is being updated." - } - ] - } + ] }, "status": { "$ref": "#/definitions/AsyncStatus" From 312bc2c0e1310565448d02f02e4af49733ce3c13 Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Thu, 14 May 2020 17:03:58 -0700 Subject: [PATCH 11/17] fix x-ms-enum --- .../Microsoft.Web/stable/2018-01-01/Web.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 9d79a2ec24f8..23a02ab65b71 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -478,6 +478,7 @@ "Failed" ], "x-ms-enum": { + "name": "AppAction", "values": [ { "value": "Restarted", @@ -521,6 +522,7 @@ "AseV2" ], "x-ms-enum": { + "name": "StampKind", "values": [ { "value": "Public", @@ -542,7 +544,16 @@ "type": "string", "enum": [ "Updated" - ] + ], + "x-ms-enum": { + "name": "AppServicePlanAction", + "values": [ + { + "value": "Updated", + "description": "App Service plan is being updated." + } + ] + } }, "status": { "$ref": "#/definitions/AsyncStatus" From 7aa1de70c219abfffaf23b2b10e5c7f0f454085f Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Thu, 14 May 2020 17:57:38 -0700 Subject: [PATCH 12/17] remove x-ms-enum from status --- .../Microsoft.Web/stable/2018-01-01/Web.json | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 23a02ab65b71..2118b2c5a2e3 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -567,24 +567,7 @@ "Started", "Completed", "Failed" - ], - "x-ms-enum": { - "name": "Status", - "values": [ - { - "value": "Started", - "description": "The operation has started." - }, - { - "value": "Completed", - "description": "The operation has completed." - }, - { - "value": "Failed", - "description": "The operation has failed." - } - ] - } + ] } } } From cfc8998dd5e461fb55ecc8df70c44abd31f38058 Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Fri, 15 May 2020 11:58:16 -0700 Subject: [PATCH 13/17] add x-ms-enum to all enum and add model as extensible --- .../Microsoft.Web/stable/2018-01-01/Web.json | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 2118b2c5a2e3..34c15f3d7321 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -505,7 +505,8 @@ "description": "The job has failed to complete." } ] - } + }, + "modelAsExtensible": true } } }, @@ -537,7 +538,8 @@ "description": "App Service Plan is running on an App Service Environment V2." } ] - } + }, + "modelAsExtensible": true }, "action": { "description": "Type of action on the app service plan.", @@ -553,7 +555,8 @@ "description": "App Service plan is being updated." } ] - } + }, + "modelAsExtensible": true }, "status": { "$ref": "#/definitions/AsyncStatus" @@ -567,7 +570,25 @@ "Started", "Completed", "Failed" - ] + ], + "x-ms-enum": { + "name": "AsyncStatus", + "values": [ + { + "value": "Started", + "description": "Async operation has started." + }, + { + "value": "Completed", + "description": "Async operation has completed." + }, + { + "value": "Failed", + "description": "Async operation failed to complete." + } + ] + }, + "modelAsExtensible": true } } } From f6b66ac0e75ce1ba52b900cdb711a3bc457e2720 Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Fri, 15 May 2020 12:38:45 -0700 Subject: [PATCH 14/17] typo to model as string --- .../data-plane/Microsoft.Web/stable/2018-01-01/Web.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 34c15f3d7321..97465a22292f 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -506,7 +506,7 @@ } ] }, - "modelAsExtensible": true + "modelAsString": true } } }, @@ -539,7 +539,7 @@ } ] }, - "modelAsExtensible": true + "modelAsString": true }, "action": { "description": "Type of action on the app service plan.", @@ -556,7 +556,7 @@ } ] }, - "modelAsExtensible": true + "modelAsString": true }, "status": { "$ref": "#/definitions/AsyncStatus" @@ -588,7 +588,7 @@ } ] }, - "modelAsExtensible": true + "modelAsString": true } } } From 5c98a0fbd50515ff44332d3aefcd21f4bec610e2 Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Fri, 15 May 2020 13:11:08 -0700 Subject: [PATCH 15/17] move model as string under x-ms-enum --- .../Microsoft.Web/stable/2018-01-01/Web.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 97465a22292f..69d70d1b6fb5 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -479,6 +479,7 @@ ], "x-ms-enum": { "name": "AppAction", + "modelAsString": true, "values": [ { "value": "Restarted", @@ -505,8 +506,7 @@ "description": "The job has failed to complete." } ] - }, - "modelAsString": true + } } } }, @@ -524,6 +524,7 @@ ], "x-ms-enum": { "name": "StampKind", + "modelAsString": true, "values": [ { "value": "Public", @@ -538,8 +539,7 @@ "description": "App Service Plan is running on an App Service Environment V2." } ] - }, - "modelAsString": true + } }, "action": { "description": "Type of action on the app service plan.", @@ -549,14 +549,14 @@ ], "x-ms-enum": { "name": "AppServicePlanAction", + "modelAsString": true, "values": [ { "value": "Updated", "description": "App Service plan is being updated." } ] - }, - "modelAsString": true + } }, "status": { "$ref": "#/definitions/AsyncStatus" @@ -573,6 +573,7 @@ ], "x-ms-enum": { "name": "AsyncStatus", + "modelAsString": true, "values": [ { "value": "Started", @@ -587,8 +588,7 @@ "description": "Async operation failed to complete." } ] - }, - "modelAsString": true + } } } } From 58e44cefab441eb6a8a5f146a76b9d8f76d310de Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Fri, 15 May 2020 14:29:13 -0700 Subject: [PATCH 16/17] remove last empty line: --- .../data-plane/Microsoft.Web/stable/2018-01-01/Web.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 69d70d1b6fb5..80a939e99b39 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -591,4 +591,4 @@ } } } -} +} \ No newline at end of file From 9bf11ff45176d23e0dae7498bc76ae676e9f1cb4 Mon Sep 17 00:00:00 2001 From: Elle Tojaroon Date: Fri, 15 May 2020 14:34:21 -0700 Subject: [PATCH 17/17] add back last empty line --- .../data-plane/Microsoft.Web/stable/2018-01-01/Web.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json index 80a939e99b39..69d70d1b6fb5 100644 --- a/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +++ b/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json @@ -591,4 +591,4 @@ } } } -} \ No newline at end of file +}