Cloud Run Admin v2 API - Class TrafficTarget (2.9.0)

public sealed class TrafficTarget : IMessage<TrafficTarget>, IEquatable<TrafficTarget>, IDeepCloneable<TrafficTarget>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Run Admin v2 API class TrafficTarget.

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.

Inheritance

object > TrafficTarget

Namespace

Google.Cloud.Run.V2

Assembly

Google.Cloud.Run.V2.dll

Constructors

TrafficTarget()

public TrafficTarget()

TrafficTarget(TrafficTarget)

public TrafficTarget(TrafficTarget other)
Parameter
Name Description
other TrafficTarget

Properties

Percent

public int Percent { get; set; }

Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.

Property Value
Type Description
int

Revision

public string Revision { get; set; }

Revision to which to send this portion of traffic, if traffic allocation is by revision.

Property Value
Type Description
string

RevisionAsRevisionName

public RevisionName RevisionAsRevisionName { get; set; }

RevisionName-typed view over the Revision resource name property.

Property Value
Type Description
RevisionName

Tag

public string Tag { get; set; }

Indicates a string to be part of the URI to exclusively reference this target.

Property Value
Type Description
string

Type

public TrafficTargetAllocationType Type { get; set; }

The allocation type for this traffic target.

Property Value
Type Description
TrafficTargetAllocationType