Class: Google::Apis::VmwareengineV1::ForwardingRule

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

Overview

A forwarding rule is a mapping of a domain to name_servers. This mapping allows VMware Engine to resolve domains for attached private clouds by forwarding DNS requests for a given domain to the specified nameservers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ForwardingRule

Returns a new instance of ForwardingRule.



774
775
776
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 774

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

Instance Attribute Details

#domainString

Required. Domain used to resolve a name_servers list. Corresponds to the JSON property domain

Returns:

  • (String)


767
768
769
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 767

def domain
  @domain
end

#name_serversArray<String>

Required. List of DNS servers to use for domain resolution Corresponds to the JSON property nameServers

Returns:

  • (Array<String>)


772
773
774
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 772

def name_servers
  @name_servers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



779
780
781
782
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 779

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