Class: Azure::ARM::Network::Models::NetworkInterfaceDnsSettings

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



26
27
28
# File 'lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 26

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



20
21
22
# File 'lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 20

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



30
31
32
# File 'lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 30

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



40
41
42
# File 'lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 40

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



34
35
36
# File 'lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 34

def internal_fqdn
  @internal_fqdn
end

Class Method Details

.mapperObject

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



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
107
# File 'lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 47

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