class Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::WebHookEventSubscriptionDestination

Information about the webhook destination for an event subscription.

Attributes

azure_active_directory_application_id_or_uri[RW]

@return [String] The Azure Active Directory Application ID or URI to get the access token that will be included as the bearer token in delivery requests.

azure_active_directory_tenant_id[RW]

@return [String] The Azure Active Directory Tenant ID to get the access token that will be included as the bearer token in delivery requests.

delivery_attribute_mappings[RW]

@return [Array<DeliveryAttributeMapping>] Delivery attribute details.

endpointType[RW]
endpoint_base_url[RW]

@return [String] The base URL that represents the endpoint of the destination of an event subscription.

endpoint_url[RW]

@return [String] The URL that represents the endpoint of the destination of an event subscription.

max_events_per_batch[RW]

@return [Integer] Maximum number of events per batch. Default value: 1 .

preferred_batch_size_in_kilobytes[RW]

@return [Integer] Preferred batch size in Kilobytes. Default value: 64 .

Private Class Methods

mapper() click to toggle source

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

# File lib/2020-10-15-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb, line 55
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'WebHook',
    type: {
      name: 'Composite',
      class_name: 'WebHookEventSubscriptionDestination',
      model_properties: {
        endpointType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'endpointType',
          type: {
            name: 'String'
          }
        },
        endpoint_url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.endpointUrl',
          type: {
            name: 'String'
          }
        },
        endpoint_base_url: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.endpointBaseUrl',
          type: {
            name: 'String'
          }
        },
        max_events_per_batch: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.maxEventsPerBatch',
          default_value: 1,
          type: {
            name: 'Number'
          }
        },
        preferred_batch_size_in_kilobytes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.preferredBatchSizeInKilobytes',
          default_value: 64,
          type: {
            name: 'Number'
          }
        },
        azure_active_directory_tenant_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.azureActiveDirectoryTenantId',
          type: {
            name: 'String'
          }
        },
        azure_active_directory_application_id_or_uri: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.azureActiveDirectoryApplicationIdOrUri',
          type: {
            name: 'String'
          }
        },
        delivery_attribute_mappings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.deliveryAttributeMappings',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'DeliveryAttributeMappingElementType',
                type: {
                  name: 'Composite',
                  polymorphic_discriminator: 'type',
                  uber_parent: 'DeliveryAttributeMapping',
                  class_name: 'DeliveryAttributeMapping'
                }
            }
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2020-10-15-preview/generated/azure_mgmt_event_grid/models/web_hook_event_subscription_destination.rb, line 16
def initialize
  @endpointType = "WebHook"
end