TrafficTarget class
TrafficTarget holds a single entry of the routing table for a Route.
Constructors
-
TrafficTarget({Input<
String> ? configurationName, Input<bool> ? latestRevision, Input<int> ? percent, Input<String> ? revisionName, Input<String> ? tag}) -
Creates a new TrafficTarget.
configurationName Deprecated Not supported in Cloud Run. It must be empty.
latestRevisionUses the "status.latestReadyRevisionName" of the Service to determine the traffic target. When it changes, traffic will automatically migrate from the prior "latest ready" revision to the new one. This field must be false if RevisionName is set. This field defaults to true otherwise. If the field is set to true on Status, this means that the Revision was resolved from the Service's latest ready revision.percentPercent specifies percent of the traffic to this Revision or Configuration. This defaults to zero if unspecified.revisionNamePoints this traffic target to a specific Revision. This field is mutually exclusive with latest_revision.tagTag is used to expose a dedicated url for referencing this target exclusively.const -
TrafficTarget.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
configurationName
→ Input<
String> ? -
Deprecated Not supported in Cloud Run. It must be empty.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
latestRevision
→ Input<
bool> ? -
Uses the "status.latestReadyRevisionName" of the Service to determine the traffic target. When it changes, traffic will automatically migrate from the prior "latest ready" revision to the new one. This field must be false if RevisionName is set. This field defaults to true otherwise. If the field is set to true on Status, this means that the Revision was resolved from the Service's latest ready revision.
final
-
percent
→ Input<
int> ? -
Percent specifies percent of the traffic to this Revision or Configuration. This defaults to zero if unspecified.
final
-
revisionName
→ Input<
String> ? -
Points this traffic target to a specific Revision. This field is mutually exclusive with latest_revision.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tag
→ Input<
String> ? -
Tag is used to expose a dedicated url for referencing this target exclusively.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited