Class: Azure::Network::Mgmt::V2017_09_01::Models::NetworkInterfaceDnsSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-09-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb

Overview

DNS settings of a network interface.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#applied_dns_serversArray<String>

Availability Set, then this list will have the union of all DNS servers from all NICs that are part of the Availability Set. This property is what is configured on each of those VMs.

Returns:

  • (Array<String>)

    If the VM that uses this NIC is part of an



25
26
27
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 25

def applied_dns_servers
  @applied_dns_servers
end

#dns_serversArray<String>

‘AzureProvidedDNS’ to switch to azure provided DNS resolution. ‘AzureProvidedDNS’ value cannot be combined with other IPs, it must be the only value in dnsServers collection.

Returns:

  • (Array<String>)

    List of DNS servers IP addresses. Use



19
20
21
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 19

def dns_servers
  @dns_servers
end

#internal_dns_name_labelString

communications between VMs in the same virtual network.

Returns:

  • (String)

    Relative DNS name for this NIC used for internal



29
30
31
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 29

def internal_dns_name_label
  @internal_dns_name_label
end

#internal_domain_name_suffixString

entry is created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM name with the value of internalDomainNameSuffix.

Returns:

  • (String)

    Even if internalDnsNameLabel is not specified, a DNS



39
40
41
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 39

def internal_domain_name_suffix
  @internal_domain_name_suffix
end

#internal_fqdnString

communications between VMs in the same virtual network.

Returns:

  • (String)

    Fully qualified DNS name supporting internal



33
34
35
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 33

def internal_fqdn
  @internal_fqdn
end

Class Method Details

.mapperObject

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



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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/2017-09-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 46

def self.mapper()
  {
    required: false,
    serialized_name: 'NetworkInterfaceDnsSettings',
    type: {
      name: 'Composite',
      class_name: 'NetworkInterfaceDnsSettings',
      model_properties: {
        dns_servers: {
          required: false,
          serialized_name: 'dnsServers',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        applied_dns_servers: {
          required: false,
          serialized_name: 'appliedDnsServers',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        internal_dns_name_label: {
          required: false,
          serialized_name: 'internalDnsNameLabel',
          type: {
            name: 'String'
          }
        },
        internal_fqdn: {
          required: false,
          serialized_name: 'internalFqdn',
          type: {
            name: 'String'
          }
        },
        internal_domain_name_suffix: {
          required: false,
          serialized_name: 'internalDomainNameSuffix',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end