# 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::ServiceFabric::V6_5_0_36
  module Models
    #
    # Describes the http configuration for external connectivity for this
    # network.
    #
    class HttpConfig

      include MsRestAzure

      # @return [String] http gateway config name.
      attr_accessor :name

      # @return [Integer] Specifies the port at which the service endpoint
      # below needs to be exposed.
      attr_accessor :port

      # @return [Array<HttpHostConfig>] description for routing.
      attr_accessor :hosts


      #
      # Mapper for HttpConfig class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'HttpConfig',
          type: {
            name: 'Composite',
            class_name: 'HttpConfig',
            model_properties: {
              name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              port: {
                client_side_validation: true,
                required: true,
                serialized_name: 'port',
                type: {
                  name: 'Number'
                }
              },
              hosts: {
                client_side_validation: true,
                required: true,
                serialized_name: 'hosts',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'HttpHostConfigElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'HttpHostConfig'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
