Class: Azure::ARM::Network::Models::PublicIpAddressDnsSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_network/Models/public_ip_address_dns_settings.rb

Overview

Contains FQDN of the DNS record associated with the public IP address

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#domain_name_labelString

of the domain name label and the regionalized DNS zone make up the fully qualified domain name associated with the public IP address. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system.

Returns:

  • (String)

    Gets or sets the Domain name label.The concatenation



20
21
22
# File 'lib/azure_mgmt_network/Models/public_ip_address_dns_settings.rb', line 20

def domain_name_label
  @domain_name_label
end

#fqdnString

DNS record associated with the public IP. This is the concatenation of the domainNameLabel and the regionalized DNS zone.

Returns:

  • (String)

    Gets the FQDN, Fully qualified domain name of the A



25
26
27
# File 'lib/azure_mgmt_network/Models/public_ip_address_dns_settings.rb', line 25

def fqdn
  @fqdn
end

#reverse_fqdnString

qualified domain name that resolves to this public IP address. If the reverseFqdn is specified, then a PTR DNS record is created pointing from the IP address in the in-addr.arpa domain to the reverse FQDN.

Returns:

  • (String)

    Gets or Sests the Reverse FQDN. A user-visible, fully



31
32
33
# File 'lib/azure_mgmt_network/Models/public_ip_address_dns_settings.rb', line 31

def reverse_fqdn
  @reverse_fqdn
end

Class Method Details

.deserialize_object(object) ⇒ PublicIpAddressDnsSettings

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/azure_mgmt_network/Models/public_ip_address_dns_settings.rb', line 66

def self.deserialize_object(object)
  return if object.nil?
  output_object = PublicIpAddressDnsSettings.new

  deserialized_property = object['domainNameLabel']
  output_object.domain_name_label = deserialized_property

  deserialized_property = object['fqdn']
  output_object.fqdn = deserialized_property

  deserialized_property = object['reverseFqdn']
  output_object.reverse_fqdn = deserialized_property

  output_object.validate

  output_object
end

.serialize_object(object) ⇒ Hash

Serializes given Model object into Ruby Hash.

Parameters:

  • object

    Model object to serialize.

Returns:

  • (Hash)

    Serialized object in form of Ruby Hash.



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/azure_mgmt_network/Models/public_ip_address_dns_settings.rb', line 45

def self.serialize_object(object)
  object.validate
  output_object = {}

  serialized_property = object.domain_name_label
  output_object['domainNameLabel'] = serialized_property unless serialized_property.nil?

  serialized_property = object.fqdn
  output_object['fqdn'] = serialized_property unless serialized_property.nil?

  serialized_property = object.reverse_fqdn
  output_object['reverseFqdn'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



36
37
38
# File 'lib/azure_mgmt_network/Models/public_ip_address_dns_settings.rb', line 36

def validate
  # Nothing to validate
end