Skip to content

Commit

Permalink
EventGrid Dataplane: Added schemas corresponding to SubscriptionValid…
Browse files Browse the repository at this point in the history
…ationEvent/Response and SubscriptionDeletedEvent (#3061)

* Added definitions for SubscriptionValidationEventData and SubscriptionDeletedEventData.

* Made the newly introduced properties readonly.

* Added subscription validation response.
  • Loading branch information
kalyanaj authored and sarangan12 committed May 16, 2018
1 parent eb30cb2 commit 9e19974
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 9e19974

Please sign in to comment.