Compute V1 Client - Class RoutePolicyPolicyTerm (1.26.0)

Reference documentation and code samples for the Compute V1 Client class RoutePolicyPolicyTerm.

Generated from protobuf message google.cloud.compute.v1.RoutePolicyPolicyTerm

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ actions array<Expr>

CEL expressions to evaluate to modify a route when this term matches.

↳ match Expr

CEL expression evaluated against a route to determine if this term applies. When not set, the term applies to all routes.

↳ priority int

The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 (exclusive), and unique within the list.

getActions

CEL expressions to evaluate to modify a route when this term matches.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setActions

CEL expressions to evaluate to modify a route when this term matches.

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

getMatch

CEL expression evaluated against a route to determine if this term applies. When not set, the term applies to all routes.

Returns
Type Description
Expr|null

hasMatch

clearMatch

setMatch

CEL expression evaluated against a route to determine if this term applies. When not set, the term applies to all routes.

Parameter
Name Description
var Expr
Returns
Type Description
$this

getPriority

The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 (exclusive), and unique within the list.

Returns
Type Description
int

hasPriority

clearPriority

setPriority

The evaluation priority for this term, which must be between 0 (inclusive) and 2^31 (exclusive), and unique within the list.

Parameter
Name Description
var int
Returns
Type Description
$this