From 9e1997475adde2f1538ddab3bce76d0e516c13f3 Mon Sep 17 00:00:00 2001 From: "J. Kalyana Sundaram" Date: Wed, 16 May 2018 12:10:55 -0700 Subject: [PATCH] EventGrid Dataplane: Added schemas corresponding to SubscriptionValidationEvent/Response and SubscriptionDeletedEvent (#3061) * Added definitions for SubscriptionValidationEventData and SubscriptionDeletedEventData. * Made the newly introduced properties readonly. * Added subscription validation response. --- .../stable/2018-01-01/EventGrid.json | 37 +++++++++++++++++++ 1 file changed, 37 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..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 @@ -118,6 +118,43 @@ "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", + "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", + "readOnly": true + } + } + }, + "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", + "properties": { + "eventSubscriptionId": { + "description": "The Azure resource ID of the deleted event subscription.", + "type": "string", + "readOnly": true + } + } } }, "parameters": {