# Class NetworkPolicyTrafficClassificationRuleAction (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `dscp_mode` | `str` DSCP mode. When set to AUTO, the DSCP value will be picked automatically based on selected trafficClass. Otherwise,dscpValue needs to be explicitly specified. Check the DscpMode enum for the list of possible values. This field is a member of `oneof`_ `_dscp_mode`. |
| `dscp_value` | `int` Custom DSCP value from 0-63 range. This field is a member of `oneof`_ `_dscp_value`. |
| `traffic_class` | `str` The traffic class that should be applied to the matching packet. Check the TrafficClass enum for the list of possible values. This field is a member of `oneof`_ `_traffic_class`. |
| `type_` | `str` Always "apply_traffic_classification" for traffic classification rules. This field is a member of `oneof`_ `_type`. |

## Classes

### DscpMode

    DscpMode(value)

DSCP mode. When set to AUTO, the DSCP value will be picked
automatically based on selected trafficClass.
Otherwise,dscpValue needs to be explicitly specified.

### TrafficClass

    TrafficClass(value)

The traffic class that should be applied to the matching
packet.