Cloud Run Admin v2 API - Class TrafficTarget (2.0.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

GoogleCloudGoogle.Cloud.RunV2

Assembly

Google.Cloud.Run.V2.dll

Constructors

TrafficTarget()

public TrafficTarget()

TrafficTarget(TrafficTarget)

public TrafficTarget(TrafficTarget other)
Parameter
NameDescription
otherTrafficTarget

Properties

Percent

public int Percent { get; set; }

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

Property Value
TypeDescription
int

Revision

public string Revision { get; set; }

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

Property Value
TypeDescription
string

RevisionAsRevisionName

public RevisionName RevisionAsRevisionName { get; set; }

RevisionName-typed view over the Revision resource name property.

Property Value
TypeDescription
RevisionName

Tag

public string Tag { get; set; }

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

Property Value
TypeDescription
string

Type

public TrafficTargetAllocationType Type { get; set; }

The allocation type for this traffic target.

Property Value
TypeDescription
TrafficTargetAllocationType