GoogleCloudRunV2TrafficTargetResponse 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
-
GoogleCloudRunV2TrafficTargetResponse({required Input<
int> percent, required Input<String> revision, required Input<String> tag, required Input<String> type}) -
Creates a new GoogleCloudRunV2TrafficTargetResponse.
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 -
GoogleCloudRunV2TrafficTargetResponse.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<
String> -
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