Class: Azure::TrafficManager::Mgmt::V2018_03_01::Models::DnsConfig

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb

Overview

Class containing DNS settings in a Traffic Manager profile.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#fqdnString

Manager profile. This is formed from the concatenation of the RelativeName with the DNS domain used by Azure Traffic Manager.

Returns:

  • (String)

    The fully-qualified domain name (FQDN) of the Traffic



24
25
26
# File 'lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb', line 24

def fqdn
  @fqdn
end

#relative_nameString

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.

Returns:

  • (String)

    The relative DNS name provided by this Traffic Manager



19
20
21
# File 'lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb', line 19

def relative_name
  @relative_name
end

#ttlInteger

the local DNS resolvers and DNS clients how long to cache DNS responses provided by this Traffic Manager profile.

Returns:

  • (Integer)

    The DNS Time-To-Live (TTL), in seconds. This informs



29
30
31
# File 'lib/2018-03-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb', line 29

def ttl
  @ttl
end

Class Method Details

.mapperObject

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



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/2018-03-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