GoogleCloudRunV2TrafficTarget class
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.
Constructors
-
GoogleCloudRunV2TrafficTarget({Input<
int> ? percent, Input<String> ? revision, Input<String> ? tag, Input<GoogleCloudRunV2TrafficTargetType> ? type}) -
Creates a new GoogleCloudRunV2TrafficTarget.
percentSpecifies percent of the traffic to this Revision. This defaults to zero if unspecified.revisionRevision to which to send this portion of traffic, if traffic allocation is by revision.tagIndicates a string to be part of the URI to exclusively reference this target.typeThe allocation type for this traffic target.const -
GoogleCloudRunV2TrafficTarget.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
percent
→ Input<
int> ? -
Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.
final
-
revision
→ Input<
String> ? -
Revision to which to send this portion of traffic, if traffic allocation is by revision.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tag
→ Input<
String> ? -
Indicates a string to be part of the URI to exclusively reference this target.
final
-
type
→ Input<
GoogleCloudRunV2TrafficTargetType> ? -
The allocation type for this traffic target.
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