Class: Google::Apis::DomainsV1alpha2::GlueRecord
- Inherits:
-
Object
- Object
- Google::Apis::DomainsV1alpha2::GlueRecord
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/domains_v1alpha2/classes.rb,
lib/google/apis/domains_v1alpha2/representations.rb,
lib/google/apis/domains_v1alpha2/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.
618 619 620 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 618 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
602 603 604 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 602 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
609 610 611 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 609 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
616 617 618 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 616 def ipv6_addresses @ipv6_addresses end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
623 624 625 626 627 |
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 623 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 |