Class: Azure::Network::Mgmt::V2019_11_01::Models::DhcpOptions

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/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.


18
19
20
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/dhcp_options.rb', line 18

def dns_servers
  @dns_servers
end

Class Method Details

.mapperObject

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


25
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
52
53
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/dhcp_options.rb', line 25

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DhcpOptions',
    type: {
      name: 'Composite',
      class_name: 'DhcpOptions',
      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'
                }
            }
          }
        }
      }
    }
  }
end