Class: Google::Apis::DnsV1beta2::ManagedZoneForwardingConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dns_v1beta2/classes.rb,
generated/google/apis/dns_v1beta2/representations.rb,
generated/google/apis/dns_v1beta2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ManagedZoneForwardingConfig

Returns a new instance of ManagedZoneForwardingConfig



505
506
507
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 505

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kindString

Identifies what kind of resource this is. Value: the fixed string "dns# managedZoneForwardingConfig". Corresponds to the JSON property kind

Returns:

  • (String)


497
498
499
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 497

def kind
  @kind
end

#target_name_serversArray<Google::Apis::DnsV1beta2::ManagedZoneForwardingConfigNameServerTarget>

List of target name servers to forward to. Cloud DNS will select the best available name server if more than one target is given. Corresponds to the JSON property targetNameServers



503
504
505
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 503

def target_name_servers
  @target_name_servers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



510
511
512
513
# File 'generated/google/apis/dns_v1beta2/classes.rb', line 510

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @target_name_servers = args[:target_name_servers] if args.key?(:target_name_servers)
end