TrafficTargetResponse class
TrafficTarget holds a single entry of the routing table for a Route.
Constructors
-
TrafficTargetResponse({required Input<
String> configurationName, required Input<bool> latestRevision, required Input<int> percent, required Input<String> revisionName, required Input<String> tag, required Input<String> url}) -
Creates a new TrafficTargetResponse.
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.urlURL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. https://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)const -
TrafficTargetResponse.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
-
url
→ Input<
String> -
URL displays the URL for accessing tagged traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. https://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc.)
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