# 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::ContainerInstance::Mgmt::V2018_10_01
  module Models
    #
    # DNS configuration for the container group.
    #
    class DnsConfiguration

      include MsRestAzure

      # @return [Array<String>] The DNS servers for the container group.
      attr_accessor :name_servers

      # @return [String] The DNS search domains for hostname lookup in the
      # container group.
      attr_accessor :search_domains

      # @return [String] The DNS options for the container group.
      attr_accessor :options


      #
      # Mapper for DnsConfiguration class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'DnsConfiguration',
          type: {
            name: 'Composite',
            class_name: 'DnsConfiguration',
            model_properties: {
              name_servers: {
                client_side_validation: true,
                required: true,
                serialized_name: 'nameServers',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              search_domains: {
                client_side_validation: true,
                required: false,
                serialized_name: 'searchDomains',
                type: {
                  name: 'String'
                }
              },
              options: {
                client_side_validation: true,
                required: false,
                serialized_name: 'options',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
