# Class NetworkPolicyTrafficClassificationRuleMatcher (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `dest_ip_ranges` | `MutableSequence[str]` CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000. |
| `layer4_configs` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.NetworkPolicyTrafficClassificationRuleMatcherLayer4Config]` Pairs of IP protocols and ports that the rule should match. |
| `src_ip_ranges` | `MutableSequence[str]` CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000. |