Compute V1 Client - Class SecurityPolicyRuleMatcher (1.17.0)

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

Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ config Google\Cloud\Compute\V1\SecurityPolicyRuleMatcherConfig

The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.

↳ expr Google\Cloud\Compute\V1\Expr

User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. Expressions containing evaluateThreatIntelligence require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing evaluatePreconfiguredExpr('sourceiplist-*') require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.

↳ expr_options Google\Cloud\Compute\V1\SecurityPolicyRuleMatcherExprOptions

The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').

↳ versioned_expr string

Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config. Check the VersionedExpr enum for the list of possible values.

getConfig

The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.

Returns
Type Description
Google\Cloud\Compute\V1\SecurityPolicyRuleMatcherConfig|null

hasConfig

clearConfig

setConfig

The configuration options available when specifying versioned_expr. This field must be specified if versioned_expr is specified and cannot be specified if versioned_expr is not specified.

Parameter
Name Description
var Google\Cloud\Compute\V1\SecurityPolicyRuleMatcherConfig
Returns
Type Description
$this

getExpr

User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. Expressions containing evaluateThreatIntelligence require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing evaluatePreconfiguredExpr('sourceiplist-*') require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.

Returns
Type Description
Google\Cloud\Compute\V1\Expr|null

hasExpr

clearExpr

setExpr

User defined CEVAL expression. A CEVAL expression is used to specify match criteria such as origin.ip, source.region_code and contents in the request header. Expressions containing evaluateThreatIntelligence require Cloud Armor Managed Protection Plus tier and are not supported in Edge Policies nor in Regional Policies. Expressions containing evaluatePreconfiguredExpr('sourceiplist-*') require Cloud Armor Managed Protection Plus tier and are only supported in Global Security Policies.

Parameter
Name Description
var Google\Cloud\Compute\V1\Expr
Returns
Type Description
$this

getExprOptions

The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').

Returns
Type Description
Google\Cloud\Compute\V1\SecurityPolicyRuleMatcherExprOptions|null

hasExprOptions

clearExprOptions

setExprOptions

The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr').

Parameter
Name Description
var Google\Cloud\Compute\V1\SecurityPolicyRuleMatcherExprOptions
Returns
Type Description
$this

getVersionedExpr

Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.

Check the VersionedExpr enum for the list of possible values.

Returns
Type Description
string

hasVersionedExpr

clearVersionedExpr

setVersionedExpr

Preconfigured versioned expression. If this field is specified, config must also be specified. Available preconfigured expressions along with their requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range field in config.

Check the VersionedExpr enum for the list of possible values.

Parameter
Name Description
var string
Returns
Type Description
$this