class Azure::TrafficManager::Mgmt::V2017_05_01::Models::DnsConfig

Class containing DNS settings in a Traffic Manager profile.

Attributes

fqdn[RW]

@return [String] The fully-qualified domain name (FQDN) of the Traffic Manager profile. This is formed from the concatenation of the RelativeName with the DNS domain used by Azure Traffic Manager.

relative_name[RW]

@return [String] The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile.

ttl[RW]

@return [Integer] The DNS Time-To-Live (TTL), in seconds. This informs the local DNS resolvers and DNS clients how long to cache DNS responses provided by this Traffic Manager profile.

Public Class Methods

mapper() click to toggle source

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

# File lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb, line 36
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DnsConfig',
    type: {
      name: 'Composite',
      class_name: 'DnsConfig',
      model_properties: {
        relative_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'relativeName',
          type: {
            name: 'String'
          }
        },
        fqdn: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'fqdn',
          type: {
            name: 'String'
          }
        },
        ttl: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ttl',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end