Google Cloud Network Services V1 Client - Class RouteRule (0.3.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< RouteMatch >

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

↳ action
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

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< RouteMatch >
Returns
Type
Description
$this

getAction

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

Returns
Type
Description
RouteAction |null

hasAction

clearAction

setAction

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

Parameter
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: