Class: Azure::Network::Mgmt::V2019_11_01::Models::NetworkInterfaceDnsSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-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/2019-11-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/2019-11-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/2019-11-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/2019-11-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/2019-11-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
107
108
109
110
111
112
113
114
115
116
117
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/network_interface_dns_settings.rb', line 46

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