Class: Google::Apis::VmwareengineV1::ForwardingRule
- Inherits:
-
Object
- Object
- Google::Apis::VmwareengineV1::ForwardingRule
- 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
-
#domain ⇒ String
Required.
-
#name_servers ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ForwardingRule
constructor
A new instance of ForwardingRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#domain ⇒ String
Required. Domain used to resolve a name_servers
list.
Corresponds to the JSON property domain
767 768 769 |
# File 'lib/google/apis/vmwareengine_v1/classes.rb', line 767 def domain @domain end |
#name_servers ⇒ Array<String>
Required. List of DNS servers to use for domain resolution
Corresponds to the JSON property nameServers
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 |