Compute V1 Client - Class SecurityPolicyRuleMatcher (1.5.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

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.

Generated from protobuf field optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherConfig config = 255820610;

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.

Generated from protobuf field optional .google.cloud.compute.v1.SecurityPolicyRuleMatcherConfig config = 255820610;

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.

Generated from protobuf field optional .google.cloud.compute.v1.Expr expr = 3127797;

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.

Generated from protobuf field optional .google.cloud.compute.v1.Expr expr = 3127797;

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.

Generated from protobuf field optional string versioned_expr = 322286013;

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.

Generated from protobuf field optional string versioned_expr = 322286013;

Parameter
NameDescription
var string
Returns
TypeDescription
$this