Class: Google::Apis::DomainsV1::GlueRecord
- Inherits:
-
Object
- Object
- Google::Apis::DomainsV1::GlueRecord
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/domains_v1/classes.rb,
lib/google/apis/domains_v1/representations.rb,
lib/google/apis/domains_v1/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.
819 820 821 |
# File 'lib/google/apis/domains_v1/classes.rb', line 819 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
803 804 805 |
# File 'lib/google/apis/domains_v1/classes.rb', line 803 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
810 811 812 |
# File 'lib/google/apis/domains_v1/classes.rb', line 810 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
817 818 819 |
# File 'lib/google/apis/domains_v1/classes.rb', line 817 def ipv6_addresses @ipv6_addresses end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
824 825 826 827 828 |
# File 'lib/google/apis/domains_v1/classes.rb', line 824 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 |