Google Cloud Network Services V1 Client - Class RouteRule (0.1.0)

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

Specifies how to match traffic and how to route traffic when traffic is matched.

Generated from protobuf message google.cloud.networkservices.v1.TlsRoute.RouteRule

Namespace

Google \ Cloud \ NetworkServices \ V1 \ TlsRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ matches array<Google\Cloud\NetworkServices\V1\TlsRoute\RouteMatch>

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

↳ action Google\Cloud\NetworkServices\V1\TlsRoute\RouteAction

Required. The detailed rule defining how to route matched traffic.

getMatches

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setMatches

Required. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation.

Parameter
Name Description
var array<Google\Cloud\NetworkServices\V1\TlsRoute\RouteMatch>
Returns
Type Description
$this

getAction

Required. The detailed rule defining how to route matched traffic.

Returns
Type Description
Google\Cloud\NetworkServices\V1\TlsRoute\RouteAction|null

hasAction

clearAction

setAction

Required. The detailed rule defining how to route matched traffic.

Parameter
Name Description
var Google\Cloud\NetworkServices\V1\TlsRoute\RouteAction
Returns
Type Description
$this