class Azure::EventGrid::Mgmt::V2018_05_01_preview::Models::EventHubEventSubscriptionDestination

Information about the event hub destination for an event subscription

Attributes

endpointType[RW]
resource_id[RW]

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

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb, line 31
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EventHub',
    type: {
      name: 'Composite',
      class_name: 'EventHubEventSubscriptionDestination',
      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'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2018-05-01-preview/generated/azure_mgmt_event_grid/models/event_hub_event_subscription_destination.rb, line 16
def initialize
  @endpointType = "EventHub"
end