public sealed class TrafficTarget : IMessage<TrafficTarget>, IEquatable<TrafficTarget>, IDeepCloneable<TrafficTarget>, IBufferMessage, IMessage
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.
Implements
IMessage<TrafficTarget>, IEquatable<TrafficTarget>, IDeepCloneable<TrafficTarget>, IBufferMessage, IMessageNamespace
Google.Cloud.Run.V2Assembly
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 |
Int32 |
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 |