Cloud Run V2 API - Class Google::Cloud::Run::V2::TrafficTarget (v0.11.0)

Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#percent

def percent() -> ::Integer
Returns
  • (::Integer) — Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.

#percent=

def percent=(value) -> ::Integer
Parameter
  • value (::Integer) — Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.
Returns
  • (::Integer) — Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.

#revision

def revision() -> ::String
Returns
  • (::String) — Revision to which to send this portion of traffic, if traffic allocation is by revision.

#revision=

def revision=(value) -> ::String
Parameter
  • value (::String) — Revision to which to send this portion of traffic, if traffic allocation is by revision.
Returns
  • (::String) — Revision to which to send this portion of traffic, if traffic allocation is by revision.

#tag

def tag() -> ::String
Returns
  • (::String) — Indicates a string to be part of the URI to exclusively reference this target.

#tag=

def tag=(value) -> ::String
Parameter
  • value (::String) — Indicates a string to be part of the URI to exclusively reference this target.
Returns
  • (::String) — Indicates a string to be part of the URI to exclusively reference this target.

#type

def type() -> ::Google::Cloud::Run::V2::TrafficTargetAllocationType
Returns

#type=

def type=(value) -> ::Google::Cloud::Run::V2::TrafficTargetAllocationType
Parameter
Returns