From f357468f584e763047c3a49aedd0248cbec1ef59 Mon Sep 17 00:00:00 2001 From: "J. Kalyana Sundaram" Date: Fri, 11 May 2018 13:04:39 -0700 Subject: [PATCH 1/3] Added definitions for SubscriptionValidationEventData and SubscriptionDeletedEventData. --- .../stable/2018-01-01/EventGrid.json | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json index 1fb551307aa9..667fedda5eb4 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json @@ -118,6 +118,30 @@ "type": "string" } } + }, + "SubscriptionValidationEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent.", + "type": "object", + "properties": { + "validationCode": { + "description": "The validation code sent by Azure Event Grid to validate an event subscription. To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", + "type": "string" + }, + "validationUrl": { + "description": "The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", + "type": "string" + } + } + }, + "SubscriptionDeletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionDeletedEvent.", + "type": "object", + "properties": { + "eventSubscriptionId": { + "description": "The Azure resource ID of the deleted event subscription.", + "type": "string" + } + } } }, "parameters": { From fa82d75364c0338bd6db01d3361a10a1066b9fa5 Mon Sep 17 00:00:00 2001 From: "J. Kalyana Sundaram" Date: Fri, 11 May 2018 15:03:20 -0700 Subject: [PATCH 2/3] Made the newly introduced properties readonly. --- .../Microsoft.EventGrid/stable/2018-01-01/EventGrid.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json index 667fedda5eb4..8dc35f2aff6d 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json @@ -125,11 +125,13 @@ "properties": { "validationCode": { "description": "The validation code sent by Azure Event Grid to validate an event subscription. To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", - "type": "string" + "type": "string", + "readOnly": true }, "validationUrl": { "description": "The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview).", - "type": "string" + "type": "string", + "readOnly": true } } }, @@ -139,7 +141,8 @@ "properties": { "eventSubscriptionId": { "description": "The Azure resource ID of the deleted event subscription.", - "type": "string" + "type": "string", + "readOnly": true } } } From a7ae120aeccf96b91aeeb0a9cba5428cd39f5352 Mon Sep 17 00:00:00 2001 From: "J. Kalyana Sundaram" Date: Fri, 11 May 2018 15:15:27 -0700 Subject: [PATCH 3/3] Added subscription validation response. --- .../stable/2018-01-01/EventGrid.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json index 8dc35f2aff6d..ab3336be3486 100644 --- a/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json +++ b/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json @@ -135,6 +135,16 @@ } } }, + "SubscriptionValidationResponse": { + "description": "To complete an event subscription validation handshake, a subscriber can use either the validationCode or the validationUrl received in a SubscriptionValidationEvent. When the validationCode is used, the SubscriptionValidationResponse can be used to build the response.", + "type": "object", + "properties": { + "validationResponse": { + "description": "The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription.", + "type": "string" + } + } + }, "SubscriptionDeletedEventData": { "description": "Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionDeletedEvent.", "type": "object",