# Class SecurityPolicyRuleMatcher (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

    SecurityPolicyRuleMatcher(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.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. This field is a member of `oneof`_ `_config`. |
| `expr` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.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 a Cloud Armor Enterprise subscription and are not supported in Edge Policies nor in Regional Policies. Expressions containing `evaluatePreconfiguredExpr('sourceiplist-*')` require a Cloud Armor Enterprise subscription and are only supported in Global Security Policies. This field is a member of `oneof`_ `_expr`. |
| `expr_options` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.SecurityPolicyRuleMatcherExprOptions` The configuration options available when specifying a user defined CEVAL expression (i.e., 'expr'). This field is a member of `oneof`_ `_expr_options`. |
| `versioned_expr` | `str` 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. This field is a member of `oneof`_ `_versioned_expr`. |

## Classes

### VersionedExpr

    VersionedExpr(value)

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.