Class: Azure::ARM::Network::Models::DhcpOptions

Inherits:
Object
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_network/models/dhcp_options.rb

Overview

DhcpOptions contains an array of DNS servers available to VMs deployed in the virtual network. Standard DHCP option for a subnet overrides VNET DHCP options.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#dns_serversArray<String>

Returns The list of DNS servers IP addresses.

Returns:

  • (Array<String>)

    The list of DNS servers IP addresses.



19
20
21
# File 'lib/generated/azure_mgmt_network/models/dhcp_options.rb', line 19

def dns_servers
  @dns_servers
end

Class Method Details

.mapperObject

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



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/generated/azure_mgmt_network/models/dhcp_options.rb', line 26

def self.mapper()
  {
    required: false,
    serialized_name: 'DhcpOptions',
    type: {
      name: 'Composite',
      class_name: 'DhcpOptions',
      model_properties: {
        dns_servers: {
          required: false,
          serialized_name: 'dnsServers',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end