# Class FirewallPolicyRuleMatcher (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

    FirewallPolicyRuleMatcher(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** |
| `dest_address_groups` | `MutableSequence[str]` Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10. |
| `dest_fqdns` | `MutableSequence[str]` Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 100. |
| `dest_ip_ranges` | `MutableSequence[str]` CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. |
| `dest_network_context` | `str` Network context of the traffic destination. Allowed values are: :: - UNSPECIFIED - INTERNET - NON_INTERNET Check the DestNetworkContext enum for the list of possible values. This field is a member of `oneof`_ `_dest_network_context`. |
| `dest_network_scope` | `str` Network scope of the traffic destination. Check the DestNetworkScope enum for the list of possible values. This field is a member of `oneof`_ `_dest_network_scope`. |
| `dest_network_type` | `str` Network type of the traffic destination. Allowed values are: :: - UNSPECIFIED - INTERNET - NON_INTERNET Check the DestNetworkType enum for the list of possible values. This field is a member of `oneof`_ `_dest_network_type`. |
| `dest_region_codes` | `MutableSequence[str]` Region codes whose IP addresses will be used to match for destination of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is 5000. |
| `dest_threat_intelligences` | `MutableSequence[str]` Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic destination. |
| `layer4_configs` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.FirewallPolicyRuleMatcherLayer4Config]` Pairs of IP protocols and ports that the rule should match. |
| `src_address_groups` | `MutableSequence[str]` Address groups which should be matched against the traffic source. Maximum number of source address groups is 10. |
| `src_fqdns` | `MutableSequence[str]` Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum number of source fqdn allowed is 100. |
| `src_ip_ranges` | `MutableSequence[str]` CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. |
| `src_network_context` | `str` Network context of the traffic source. Allowed values are: :: - UNSPECIFIED - INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS Check the SrcNetworkContext enum for the list of possible values. This field is a member of `oneof`_ `_src_network_context`. |
| `src_network_scope` | `str` Network scope of the traffic source. Check the SrcNetworkScope enum for the list of possible values. This field is a member of `oneof`_ `_src_network_scope`. |
| `src_network_type` | `str` Network type of the traffic source. Allowed values are: :: - UNSPECIFIED - INTERNET - INTRA_VPC - NON_INTERNET - VPC_NETWORKS Check the SrcNetworkType enum for the list of possible values. This field is a member of `oneof`_ `_src_network_type`. |
| `src_networks` | `MutableSequence[str]` Networks of the traffic source. It can be either a full or partial url. |
| `src_region_codes` | `MutableSequence[str]` Region codes whose IP addresses will be used to match for source of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of source region codes allowed is 5000. |
| `src_secure_tags` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.FirewallPolicyRuleSecureTag]` List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256. |
| `src_threat_intelligences` | `MutableSequence[str]` Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic source. |

## Classes

### DestNetworkContext

    DestNetworkContext(value)

Network context of the traffic destination. Allowed values are:

::

     - UNSPECIFIED
     - INTERNET
     - NON_INTERNET

Additional supported values which may be not listed in the enum
directly due to technical reasons: INTERNET INTRA_VPC NON_INTERNET
UNSPECIFIED VPC_NETWORKS

### DestNetworkScope

    DestNetworkScope(value)

Network scope of the traffic destination. Additional supported
values which may be not listed in the enum directly due to technical
reasons: INTERNET INTRA_VPC NON_INTERNET UNSPECIFIED VPC_NETWORKS

### DestNetworkType

    DestNetworkType(value)

Network type of the traffic destination. Allowed values are:

::

     - UNSPECIFIED
     - INTERNET
     - NON_INTERNET

Additional supported values which may be not listed in the enum
directly due to technical reasons: INTERNET INTRA_VPC NON_INTERNET
UNSPECIFIED VPC_NETWORKS

### SrcNetworkContext

    SrcNetworkContext(value)

Network context of the traffic source. Allowed values are:

::

     - UNSPECIFIED
     - INTERNET
     - INTRA_VPC
     - NON_INTERNET
     - VPC_NETWORKS

Additional supported values which may be not listed in the enum
directly due to technical reasons: INTERNET INTRA_VPC NON_INTERNET
UNSPECIFIED VPC_NETWORKS

### SrcNetworkScope

    SrcNetworkScope(value)

Network scope of the traffic source. Additional supported values
which may be not listed in the enum directly due to technical
reasons: INTERNET INTRA_VPC NON_INTERNET UNSPECIFIED VPC_NETWORKS

### SrcNetworkType

    SrcNetworkType(value)

Network type of the traffic source. Allowed values are:

::

     - UNSPECIFIED
     - INTERNET
     - INTRA_VPC
     - NON_INTERNET
     - VPC_NETWORKS

Additional supported values which may be not listed in the enum
directly due to technical reasons: INTERNET INTRA_VPC NON_INTERNET
UNSPECIFIED VPC_NETWORKS