Class: Google::Cloud::Run::V2::TrafficTarget
- Inherits:
-
Object
- Object
- Google::Cloud::Run::V2::TrafficTarget
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/run/v2/traffic_target.rb
Overview
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.
Instance Attribute Summary collapse
-
#percent ⇒ ::Integer
Specifies percent of the traffic to this Revision.
-
#revision ⇒ ::String
Revision to which to send this portion of traffic, if traffic allocation is by revision.
-
#tag ⇒ ::String
Indicates a string to be part of the URI to exclusively reference this target.
-
#type ⇒ ::Google::Cloud::Run::V2::TrafficTargetAllocationType
The allocation type for this traffic target.
Instance Attribute Details
#percent ⇒ ::Integer
Returns Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.
41 42 43 44 |
# File 'proto_docs/google/cloud/run/v2/traffic_target.rb', line 41 class TrafficTarget include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#revision ⇒ ::String
Returns Revision to which to send this portion of traffic, if traffic allocation is by revision.
41 42 43 44 |
# File 'proto_docs/google/cloud/run/v2/traffic_target.rb', line 41 class TrafficTarget include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#tag ⇒ ::String
Returns Indicates a string to be part of the URI to exclusively reference this target.
41 42 43 44 |
# File 'proto_docs/google/cloud/run/v2/traffic_target.rb', line 41 class TrafficTarget include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#type ⇒ ::Google::Cloud::Run::V2::TrafficTargetAllocationType
Returns The allocation type for this traffic target.
41 42 43 44 |
# File 'proto_docs/google/cloud/run/v2/traffic_target.rb', line 41 class TrafficTarget include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |