class Azure::Network::Mgmt::V2015_06_15::Models::NetworkInterfaceDnsSettings

DNS settings of a network interface.

Attributes

applied_dns_servers[RW]

@return [Array<String>] If the VM that uses this NIC is part of an 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.

dns_servers[RW]

@return [Array<String>] List of DNS servers IP addresses. Use '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.

internal_dns_name_label[RW]

@return [String] Relative DNS name for this NIC used for internal communications between VMs in the same virtual network.

internal_fqdn[RW]

@return [String] Fully qualified DNS name supporting internal communications between VMs in the same virtual network.

Private Class Methods

mapper() click to toggle source

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

# File lib/2015-06-15/generated/azure_mgmt_network/models/network_interface_dns_settings.rb, line 39
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,
          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,
          serialized_name: 'internalFqdn',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end