class Azure::EventGrid::V2018_01_01::Models::SubscriptionValidationEventData

Schema of the Data property of an EventGridEvent for a Microsoft.EventGrid.SubscriptionValidationEvent.

Attributes

validation_code[RW]

@return [String] 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).

validation_url[RW]

@return [String] 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).

Private Class Methods

mapper() click to toggle source

Mapper for SubscriptionValidationEventData class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2018-01-01/generated/azure_event_grid/models/subscription_validation_event_data.rb, line 35
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SubscriptionValidationEventData',
    type: {
      name: 'Composite',
      class_name: 'SubscriptionValidationEventData',
      model_properties: {
        validation_code: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'validationCode',
          type: {
            name: 'String'
          }
        },
        validation_url: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'validationUrl',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end