Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class ForwardingRule.
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.
Generated from protobuf message google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule
Namespace
Google \ Cloud \ VmwareEngine \ V1 \ DnsForwarding
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ domain
string
Required. Domain used to resolve a name_servers list.
↳ name_servers
array
Required. List of DNS servers to use for domain resolution
getDomain
Required. Domain used to resolve a name_servers list.
Returns
Type
Description
string
setDomain
Required. Domain used to resolve a name_servers list.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getNameServers
Required. List of DNS servers to use for domain resolution
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Vmware Engine V1 Client - Class ForwardingRule (1.1.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.4 (latest)](/php/docs/reference/cloud-vmware-engine/latest/V1.DnsForwarding.ForwardingRule)\n- [1.1.3](/php/docs/reference/cloud-vmware-engine/1.1.3/V1.DnsForwarding.ForwardingRule)\n- [1.0.0](/php/docs/reference/cloud-vmware-engine/1.0.0/V1.DnsForwarding.ForwardingRule)\n- [0.5.6](/php/docs/reference/cloud-vmware-engine/0.5.6/V1.DnsForwarding.ForwardingRule)\n- [0.4.0](/php/docs/reference/cloud-vmware-engine/0.4.0/V1.DnsForwarding.ForwardingRule)\n- [0.3.3](/php/docs/reference/cloud-vmware-engine/0.3.3/V1.DnsForwarding.ForwardingRule)\n- [0.2.1](/php/docs/reference/cloud-vmware-engine/0.2.1/V1.DnsForwarding.ForwardingRule)\n- [0.1.4](/php/docs/reference/cloud-vmware-engine/0.1.4/V1.DnsForwarding.ForwardingRule) \nReference documentation and code samples for the Google Cloud Vmware Engine V1 Client class ForwardingRule.\n\nA forwarding rule is a mapping of a `domain` to `name_servers`.\n\nThis mapping allows VMware Engine to resolve domains for attached private\nclouds by forwarding DNS requests for a given domain to the specified\nnameservers.\n\nGenerated from protobuf message `google.cloud.vmwareengine.v1.DnsForwarding.ForwardingRule`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ VmwareEngine \\\\ V1 \\\\ DnsForwarding\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getDomain\n\nRequired. Domain used to resolve a `name_servers` list.\n\n### setDomain\n\nRequired. Domain used to resolve a `name_servers` list.\n\n### getNameServers\n\nRequired. List of DNS servers to use for domain resolution\n\n### setNameServers\n\nRequired. List of DNS servers to use for domain resolution"]]