Class: Google::Apis::DomainsV1alpha2::GlueRecord

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

Required. Domain name of the host in Punycode format. Corresponds to the JSON property hostName

Returns:

  • (String)


602
603
604
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 602

def host_name
  @host_name
end

#ipv4_addressesArray<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

Returns:

  • (Array<String>)


609
610
611
# File 'lib/google/apis/domains_v1alpha2/classes.rb', line 609

def ipv4_addresses
  @ipv4_addresses
end

#ipv6_addressesArray<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

Returns:

  • (Array<String>)


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