class Google::Apis::DnsV1beta2::PolicyAlternativeNameServerConfigTargetNameServer

Attributes

forwarding_path[RW]

Forwarding path for this TargetNameServer. If unset or set to DEFAULT, Cloud DNS makes forwarding decisions based on address ranges; that is, RFC1918 addresses go to the VPC network, non-RFC1918 addresses go to the internet. When set to PRIVATE, Cloud DNS always sends queries through the VPC network for this target. Corresponds to the JSON property `forwardingPath` @return [String]

ipv4_address[RW]

IPv4 address to forward to. Corresponds to the JSON property `ipv4Address` @return [String]

ipv6_address[RW]

IPv6 address to forward to. Does not accept both fields (ipv4 & ipv6) being populated. Corresponds to the JSON property `ipv6Address` @return [String]

kind[RW]

Corresponds to the JSON property `kind` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dns_v1beta2/classes.rb, line 1238
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dns_v1beta2/classes.rb, line 1243
def update!(**args)
  @forwarding_path = args[:forwarding_path] if args.key?(:forwarding_path)
  @ipv4_address = args[:ipv4_address] if args.key?(:ipv4_address)
  @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address)
  @kind = args[:kind] if args.key?(:kind)
end