# Class TrafficTarget (0.16.1)

0.16.1 (latest) 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.19 0.9.1 0.8.1 0.7.1 0.6.0 0.5.0 0.4.2 0.3.0 0.2.1 0.1.0

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

Holds a single traffic routing entry for the Service.
Allocations can be done to a specific Revision name, or pointing
to the latest Ready Revision.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `type_` | `https://docs.cloud.google.com/python/docs/reference/run/latest/google.cloud.run_v2.types.TrafficTargetAllocationType` The allocation type for this traffic target. |
| `revision` | `str` Revision to which to send this portion of traffic, if traffic allocation is by revision. |
| `percent` | `int` Specifies percent of the traffic to this Revision. This defaults to zero if unspecified. |
| `tag` | `str` Indicates a string to be part of the URI to exclusively reference this target. |