Class: Azure::TrafficManager::Mgmt::V2015_11_01::Models::DnsConfig

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-11-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

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

Returns:

  • (String)

    Gets or sets the fully-qualified domain name (FQDN) of



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

def fqdn
  @fqdn
end

#relative_nameString

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.

Returns:

  • (String)

    Gets or sets the relative DNS name provided by this



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

def relative_name
  @relative_name
end

#ttlInteger

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

Returns:

  • (Integer)

    Gets or sets the DNS Time-To-Live (TTL), in seconds.



29
30
31
# File 'lib/2015-11-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
# File 'lib/2015-11-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,
          serialized_name: 'fqdn',
          type: {
            name: 'String'
          }
        },
        ttl: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ttl',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end