# 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::ApiManagement::Mgmt::V2018_01_01
  module Models
    #
    # Custom hostname configuration.
    #
    class HostnameConfigurationOld

      include MsRestAzure

      # @return [HostnameType] Hostname type. Possible values include: 'Proxy',
      # 'Portal', 'Management', 'Scm'
      attr_accessor :type

      # @return [String] Hostname to configure.
      attr_accessor :hostname

      # @return [CertificateInformation] Certificate information.
      attr_accessor :certificate


      #
      # Mapper for HostnameConfigurationOld class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'HostnameConfigurationOld',
          type: {
            name: 'Composite',
            class_name: 'HostnameConfigurationOld',
            model_properties: {
              type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'type',
                type: {
                  name: 'Enum',
                  module: 'HostnameType'
                }
              },
              hostname: {
                client_side_validation: true,
                required: true,
                serialized_name: 'hostname',
                type: {
                  name: 'String'
                }
              },
              certificate: {
                client_side_validation: true,
                required: true,
                serialized_name: 'certificate',
                type: {
                  name: 'Composite',
                  class_name: 'CertificateInformation'
                }
              }
            }
          }
        }
      end
    end
  end
end
