Class TrafficTarget
TrafficTarget holds a single entry of the routing table for a Route.
Implements
Inherited Members
Namespace: Google.Apis.CloudRun.v1.Data
Assembly: Google.Apis.CloudRun.v1.dll
Syntax
public class TrafficTarget : IDirectResponseSchema
Properties
ConfigurationName
[Deprecated] Not supported in Cloud Run. It must be empty.
Declaration
[JsonProperty("configurationName")]
public virtual string ConfigurationName { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
LatestRevision
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.
Declaration
[JsonProperty("latestRevision")]
public virtual bool? LatestRevision { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Percent
Percent specifies percent of the traffic to this Revision or Configuration. This defaults to zero if unspecified.
Declaration
[JsonProperty("percent")]
public virtual int? Percent { get; set; }
Property Value
Type | Description |
---|---|
int? |
RevisionName
Points this traffic target to a specific Revision. This field is mutually exclusive with latest_revision.
Declaration
[JsonProperty("revisionName")]
public virtual string RevisionName { get; set; }
Property Value
Type | Description |
---|---|
string |
Tag
Tag is used to expose a dedicated url for referencing this target exclusively.
Declaration
[JsonProperty("tag")]
public virtual string Tag { get; set; }
Property Value
Type | Description |
---|---|
string |
Url
Output only. 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.)
Declaration
[JsonProperty("url")]
public virtual string Url { get; set; }
Property Value
Type | Description |
---|---|
string |