class Azure::EventGrid::Mgmt::V2020_01_01_preview::Models::AzureFunctionEventSubscriptionDestination

Information about the azure function destination for an event subscription.

Attributes

endpointType[RW]
max_events_per_batch[RW]

@return [Integer] Maximum number of events per batch.

preferred_batch_size_in_kilobytes[RW]

@return [Integer] Preferred batch size in Kilobytes.

resource_id[RW]

@return [String] The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.

Public Class Methods

mapper() click to toggle source

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

# File lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/azure_function_event_subscription_destination.rb, line 39
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AzureFunction',
    type: {
      name: 'Composite',
      class_name: 'AzureFunctionEventSubscriptionDestination',
      model_properties: {
        endpointType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'endpointType',
          type: {
            name: 'String'
          }
        },
        resource_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.resourceId',
          type: {
            name: 'String'
          }
        },
        max_events_per_batch: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.maxEventsPerBatch',
          type: {
            name: 'Number'
          }
        },
        preferred_batch_size_in_kilobytes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.preferredBatchSizeInKilobytes',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2020-01-01-preview/generated/azure_mgmt_event_grid/models/azure_function_event_subscription_destination.rb, line 17
def initialize
  @endpointType = "AzureFunction"
end