class Google::Apis::RunV2::GoogleCloudRunV2TrafficTarget

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.

Attributes

percent[RW]

Specifies percent of the traffic to this Revision. This defaults to zero if unspecified. Corresponds to the JSON property ‘percent` @return [Fixnum]

revision[RW]

Revision to which to send this portion of traffic, if traffic allocation is by revision. Corresponds to the JSON property ‘revision` @return [String]

tag[RW]

Indicates a string to be part of the URI to exclusively reference this target. Corresponds to the JSON property ‘tag` @return [String]

type[RW]

The allocation type for this traffic target. Corresponds to the JSON property ‘type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/run_v2/classes.rb, line 1081
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/run_v2/classes.rb, line 1086
def update!(**args)
  @percent = args[:percent] if args.key?(:percent)
  @revision = args[:revision] if args.key?(:revision)
  @tag = args[:tag] if args.key?(:tag)
  @type = args[:type] if args.key?(:type)
end