From 56ab6969a939ebed3fe72dfa10903e5bd71b896f Mon Sep 17 00:00:00 2001 From: Ruchi Bansal Date: Thu, 27 May 2021 20:26:06 +0530 Subject: [PATCH 1/5] Add Eventgrid schema for Blob Inventory --- .../stable/2018-01-01/Storage.json | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json index 0caf38799d41..e5bdba2707ee 100644 --- a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json +++ b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json @@ -389,6 +389,40 @@ "type": "object" } } + }, + "StorageBlobInventoryPolicyCompletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobInventoryPolicyCompleted event.", + "type": "object", + "properties": { + "scheduleTime": { + "description": "The time at which inventory policy was scheduled.", + "type": "string" + }, + "accountName": { + "description": "The account name for which inventory policy is registered.", + "type": "string" + }, + "ruleName": { + "description": "The rule name for inventory policy.", + "type": "string" + }, + "status": { + "description": "The status of inventory run, it can be Succeeded/PartiallySucceeded/Failed.", + "type": "string" + }, + "statusMessage": { + "description": "The status message for inventory run.", + "type": "string" + }, + "policyRunId": { + "description": "The policy run id for inventory run.", + "type": "string" + }, + "manifestBlobUrl": { + "description": "The blob URL for manifest file for inventory run.", + "type": "string" + }, + } } } } From 868b345bdb81c2e9cec37574af654a4428d639ef Mon Sep 17 00:00:00 2001 From: Ruchi Bansal Date: Thu, 27 May 2021 21:03:03 +0530 Subject: [PATCH 2/5] updated schema property name --- .../Microsoft.Storage/stable/2018-01-01/Storage.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json index e5bdba2707ee..f67ad37a4d3e 100644 --- a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json +++ b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json @@ -394,7 +394,7 @@ "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobInventoryPolicyCompleted event.", "type": "object", "properties": { - "scheduleTime": { + "scheduleDateTime": { "description": "The time at which inventory policy was scheduled.", "type": "string" }, @@ -406,11 +406,11 @@ "description": "The rule name for inventory policy.", "type": "string" }, - "status": { + "policyRunStatus": { "description": "The status of inventory run, it can be Succeeded/PartiallySucceeded/Failed.", "type": "string" }, - "statusMessage": { + "policyRunStatusMessage": { "description": "The status message for inventory run.", "type": "string" }, From 8fc90369b001f19f8ad5fd70da41c0025dd03cc8 Mon Sep 17 00:00:00 2001 From: Ruchi Bansal Date: Thu, 27 May 2021 21:15:53 +0530 Subject: [PATCH 3/5] Fix syntax error --- .../data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json index f67ad37a4d3e..222d63253c3f 100644 --- a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json +++ b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json @@ -421,7 +421,7 @@ "manifestBlobUrl": { "description": "The blob URL for manifest file for inventory run.", "type": "string" - }, + } } } } From 01e4b18a3df21a28ec3dab1be7e5620c9a9b94dd Mon Sep 17 00:00:00 2001 From: Ruchi Bansal Date: Thu, 27 May 2021 21:30:54 +0530 Subject: [PATCH 4/5] Prettier check fix --- .../data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json index 222d63253c3f..2aa7a1cc6974 100644 --- a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json +++ b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json @@ -411,7 +411,7 @@ "type": "string" }, "policyRunStatusMessage": { - "description": "The status message for inventory run.", + "description": "The status message for inventory run.", "type": "string" }, "policyRunId": { From 256aa93f75be7d54d2684db31b082c05fbb6fbb2 Mon Sep 17 00:00:00 2001 From: Ruchi Bansal Date: Thu, 27 May 2021 22:39:43 +0530 Subject: [PATCH 5/5] Address review comments --- .../data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json index 2aa7a1cc6974..b552a85f6074 100644 --- a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json +++ b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json @@ -396,6 +396,7 @@ "properties": { "scheduleDateTime": { "description": "The time at which inventory policy was scheduled.", + "format": "date-time", "type": "string" }, "accountName": {