Class: Google::Apis::DomainsV1beta1::GlueRecord
- Inherits:
-
Object
- Object
- Google::Apis::DomainsV1beta1::GlueRecord
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/domains_v1beta1/classes.rb,
generated/google/apis/domains_v1beta1/representations.rb,
generated/google/apis/domains_v1beta1/representations.rb
Overview
Defines a host on your domain that is a DNS name server for your domain and/or
other domains. Glue records are a way of making the IP address of a name
server known, even when it serves DNS queries for its parent domain. For
example, when ns.example.com
is a name server for example.com
, the host
ns.example.com
must have a glue record to break the circular DNS reference.
Instance Attribute Summary collapse
-
#host_name ⇒ String
Required.
-
#ipv4_addresses ⇒ Array<String>
List of IPv4 addresses corresponding to this host in the standard decimal format (e.g.
198.51.100.1
). -
#ipv6_addresses ⇒ Array<String>
List of IPv6 addresses corresponding to this host in the standard hexadecimal format (e.g.
2001:db8::
).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GlueRecord
constructor
A new instance of GlueRecord.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GlueRecord
Returns a new instance of GlueRecord.
582 583 584 |
# File 'generated/google/apis/domains_v1beta1/classes.rb', line 582 def initialize(**args) update!(**args) end |
Instance Attribute Details
#host_name ⇒ String
Required. Domain name of the host in Punycode format.
Corresponds to the JSON property hostName
566 567 568 |
# File 'generated/google/apis/domains_v1beta1/classes.rb', line 566 def host_name @host_name end |
#ipv4_addresses ⇒ Array<String>
List of IPv4 addresses corresponding to this host in the standard decimal
format (e.g. 198.51.100.1
). At least one of ipv4_address
and ipv6_address
must be set.
Corresponds to the JSON property ipv4Addresses
573 574 575 |
# File 'generated/google/apis/domains_v1beta1/classes.rb', line 573 def ipv4_addresses @ipv4_addresses end |
#ipv6_addresses ⇒ Array<String>
List of IPv6 addresses corresponding to this host in the standard hexadecimal
format (e.g. 2001:db8::
). At least one of ipv4_address
and ipv6_address
must be set.
Corresponds to the JSON property ipv6Addresses
580 581 582 |
# File 'generated/google/apis/domains_v1beta1/classes.rb', line 580 def ipv6_addresses @ipv6_addresses end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
587 588 589 590 591 |
# File 'generated/google/apis/domains_v1beta1/classes.rb', line 587 def update!(**args) @host_name = args[:host_name] if args.key?(:host_name) @ipv4_addresses = args[:ipv4_addresses] if args.key?(:ipv4_addresses) @ipv6_addresses = args[:ipv6_addresses] if args.key?(:ipv6_addresses) end |