Google Cloud Network Services V1 Client - Class DnsPeeringConfig (0.10.0)

Reference documentation and code samples for the Google Cloud Network Services V1 Client class DnsPeeringConfig.

DNS peering config for the user VPC network.

Generated from protobuf message google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig

Namespace

Google \ Cloud \ NetworkServices \ V1 \ AgentGateway \ NetworkConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ domains string[]

Required. Domain names for which DNS queries should be forwarded to the target network.

↳ target_project string

Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.

↳ target_network string

Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of projects/{project}/global/networks/{network}.

getDomains

Required. Domain names for which DNS queries should be forwarded to the target network.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setDomains

Required. Domain names for which DNS queries should be forwarded to the target network.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getTargetProject

Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.

Returns
Type Description
string

setTargetProject

Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.

Parameter
Name Description
var string
Returns
Type Description
$this

getTargetNetwork

Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of projects/{project}/global/networks/{network}.

Returns
Type Description
string

setTargetNetwork

Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of projects/{project}/global/networks/{network}.

Parameter
Name Description
var string
Returns
Type Description
$this