Google Cloud Network Services V1 Client - Class RouteAction (0.2.1)

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

The specifications for routing traffic and applying associated policies.

Generated from protobuf message google.cloud.networkservices.v1.TcpRoute.RouteAction

Namespace

Google \ Cloud \ NetworkServices \ V1 \ TcpRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ destinations array<RouteDestination>

Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.

↳ original_destination bool

Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.

getDestinations

Optional. The destination services to which traffic should be forwarded.

At least one destination service is required. Only one of route destination or original destination can be set.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDestinations

Optional. The destination services to which traffic should be forwarded.

At least one destination service is required. Only one of route destination or original destination can be set.

Parameter
Name Description
var array<RouteDestination>
Returns
Type Description
$this

getOriginalDestination

Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false.

Only one of route destinations or original destination can be set.

Returns
Type Description
bool

setOriginalDestination

Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false.

Only one of route destinations or original destination can be set.

Parameter
Name Description
var bool
Returns
Type Description
$this