|   |  | 1 |  | // <auto-generated> | 
|   |  | 2 |  | // Copyright (c) Microsoft Corporation. All rights reserved. | 
|   |  | 3 |  | // Licensed under the MIT License. See License.txt in the project root for | 
|   |  | 4 |  | // license information. | 
|   |  | 5 |  | // | 
|   |  | 6 |  | // Code generated by Microsoft (R) AutoRest Code Generator. | 
|   |  | 7 |  | // Changes may cause incorrect behavior and will be lost if the code is | 
|   |  | 8 |  | // regenerated. | 
|   |  | 9 |  | // </auto-generated> | 
|   |  | 10 |  |  | 
|   |  | 11 |  | namespace Microsoft.Azure.EventGrid.Models | 
|   |  | 12 |  | { | 
|   |  | 13 |  |     using Newtonsoft.Json; | 
|   |  | 14 |  |     using System.Linq; | 
|   |  | 15 |  |  | 
|   |  | 16 |  |     /// <summary> | 
|   |  | 17 |  |     /// Schema of the Data property of an EventGridEvent for a | 
|   |  | 18 |  |     /// Microsoft.EventGrid.SubscriptionValidationEvent. | 
|   |  | 19 |  |     /// </summary> | 
|   |  | 20 |  |     public partial class SubscriptionValidationEventData | 
|   |  | 21 |  |     { | 
|   |  | 22 |  |         /// <summary> | 
|   |  | 23 |  |         /// Initializes a new instance of the SubscriptionValidationEventData | 
|   |  | 24 |  |         /// class. | 
|   |  | 25 |  |         /// </summary> | 
|   | 1 | 26 |  |         public SubscriptionValidationEventData() | 
|   |  | 27 |  |         { | 
|   |  | 28 |  |             CustomInit(); | 
|   | 1 | 29 |  |         } | 
|   |  | 30 |  |  | 
|   |  | 31 |  |         /// <summary> | 
|   |  | 32 |  |         /// Initializes a new instance of the SubscriptionValidationEventData | 
|   |  | 33 |  |         /// class. | 
|   |  | 34 |  |         /// </summary> | 
|   |  | 35 |  |         /// <param name="validationCode">The validation code sent by Azure | 
|   |  | 36 |  |         /// Event Grid to validate an event subscription. To complete the | 
|   |  | 37 |  |         /// validation handshake, the subscriber must either respond with this | 
|   |  | 38 |  |         /// validation code as part of the validation response, or perform a | 
|   |  | 39 |  |         /// GET request on the validationUrl (available starting version | 
|   |  | 40 |  |         /// 2018-05-01-preview).</param> | 
|   |  | 41 |  |         /// <param name="validationUrl">The validation URL sent by Azure Event | 
|   |  | 42 |  |         /// Grid (available starting version 2018-05-01-preview). To complete | 
|   |  | 43 |  |         /// the validation handshake, the subscriber must either respond with | 
|   |  | 44 |  |         /// the validationCode as part of the validation response, or perform a | 
|   |  | 45 |  |         /// GET request on the validationUrl (available starting version | 
|   |  | 46 |  |         /// 2018-05-01-preview).</param> | 
|   | 0 | 47 |  |         public SubscriptionValidationEventData(string validationCode = default(string), string validationUrl = default(s | 
|   |  | 48 |  |         { | 
|   | 0 | 49 |  |             ValidationCode = validationCode; | 
|   | 0 | 50 |  |             ValidationUrl = validationUrl; | 
|   |  | 51 |  |             CustomInit(); | 
|   | 0 | 52 |  |         } | 
|   |  | 53 |  |  | 
|   |  | 54 |  |         /// <summary> | 
|   |  | 55 |  |         /// An initialization method that performs custom operations like setting defaults | 
|   |  | 56 |  |         /// </summary> | 
|   |  | 57 |  |         partial void CustomInit(); | 
|   |  | 58 |  |  | 
|   |  | 59 |  |         /// <summary> | 
|   |  | 60 |  |         /// Gets the validation code sent by Azure Event Grid to validate an | 
|   |  | 61 |  |         /// event subscription. To complete the validation handshake, the | 
|   |  | 62 |  |         /// subscriber must either respond with this validation code as part of | 
|   |  | 63 |  |         /// the validation response, or perform a GET request on the | 
|   |  | 64 |  |         /// validationUrl (available starting version 2018-05-01-preview). | 
|   |  | 65 |  |         /// </summary> | 
|   |  | 66 |  |         [JsonProperty(PropertyName = "validationCode")] | 
|   | 2 | 67 |  |         public string ValidationCode { get; private set; } | 
|   |  | 68 |  |  | 
|   |  | 69 |  |         /// <summary> | 
|   |  | 70 |  |         /// Gets the validation URL sent by Azure Event Grid (available | 
|   |  | 71 |  |         /// starting version 2018-05-01-preview). To complete the validation | 
|   |  | 72 |  |         /// handshake, the subscriber must either respond with the | 
|   |  | 73 |  |         /// validationCode as part of the validation response, or perform a GET | 
|   |  | 74 |  |         /// request on the validationUrl (available starting version | 
|   |  | 75 |  |         /// 2018-05-01-preview). | 
|   |  | 76 |  |         /// </summary> | 
|   |  | 77 |  |         [JsonProperty(PropertyName = "validationUrl")] | 
|   | 0 | 78 |  |         public string ValidationUrl { get; private set; } | 
|   |  | 79 |  |  | 
|   |  | 80 |  |     } | 
|   |  | 81 |  | } |