# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::DigitalTwins::Mgmt::V2020_10_31
  module Models
    #
    # Properties related to EventHub.
    #
    class EventHub < DigitalTwinsEndpointResourceProperties

      include MsRestAzure


      def initialize
        @endpointType = "EventHub"
      end

      attr_accessor :endpointType

      # @return [String] PrimaryConnectionString of the endpoint. Will be
      # obfuscated during read.
      attr_accessor :connection_string_primary_key

      # @return [String] SecondaryConnectionString of the endpoint. Will be
      # obfuscated during read.
      attr_accessor :connection_string_secondary_key


      #
      # Mapper for EventHub class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'EventHub',
          type: {
            name: 'Composite',
            class_name: 'EventHub',
            model_properties: {
              provisioning_state: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'provisioningState',
                type: {
                  name: 'String'
                }
              },
              created_time: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'createdTime',
                type: {
                  name: 'DateTime'
                }
              },
              dead_letter_secret: {
                client_side_validation: true,
                required: false,
                serialized_name: 'deadLetterSecret',
                type: {
                  name: 'String'
                }
              },
              endpointType: {
                client_side_validation: true,
                required: true,
                serialized_name: 'endpointType',
                type: {
                  name: 'String'
                }
              },
              connection_string_primary_key: {
                client_side_validation: true,
                required: false,
                serialized_name: 'connectionStringPrimaryKey',
                type: {
                  name: 'String'
                }
              },
              connection_string_secondary_key: {
                client_side_validation: true,
                required: false,
                serialized_name: 'connectionStringSecondaryKey',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
