Compute V1 Client - Class SecurityPolicyRuleMatcher (1.8.3)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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.

↳ 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
TypeDescription
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
NameDescription
var Google\Cloud\Compute\V1\SecurityPolicyRuleMatcherConfig
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var Google\Cloud\Compute\V1\Expr
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this