class Google::Apis::RunV2::GoogleCloudRunV2TrafficTargetStatus
Represents the observed state of a single ‘TrafficTarget` entry.
Attributes
percent[RW]
Specifies percent of the traffic to this Revision. Corresponds to the JSON property ‘percent` @return [Fixnum]
revision[RW]
Revision to which this traffic is sent. Corresponds to the JSON property ‘revision` @return [String]
tag[RW]
Indicates the string used in 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]
uri[RW]
Displays the target URI. Corresponds to the JSON property ‘uri` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/run_v2/classes.rb, line 1123 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 1128 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) @uri = args[:uri] if args.key?(:uri) end