class Google::Apis::RunV1::RouteSpec
RouteSpec
holds the desired state of the Route
(from the client).
Attributes
traffic[RW]
Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations. Cloud Run currently supports a single configurationName. Corresponds to the JSON property `traffic` @return [Array<Google::Apis::RunV1::TrafficTarget>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/run_v1/classes.rb, line 2218 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_v1/classes.rb, line 2223 def update!(**args) @traffic = args[:traffic] if args.key?(:traffic) end