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

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.TlsRoute.RouteAction

Namespace

Google \ Cloud \ NetworkServices \ V1 \ TlsRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ destinations array<RouteDestination>

Required. The destination services to which traffic should be forwarded. At least one destination service is required.

↳ idle_timeout Google\Protobuf\Duration

Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.

getDestinations

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

At least one destination service is required.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setDestinations

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

At least one destination service is required.

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

getIdleTimeout

Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.

Returns
Type Description
Google\Protobuf\Duration|null

hasIdleTimeout

clearIdleTimeout

setIdleTimeout

Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 1 hour. If set to 0s, the timeout will be disabled.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this