class Google::Apis::RunV1::ServiceSpec
ServiceSpec
holds the desired state of the Route
(from the client), which is used to manipulate the underlying Route
and Configuration(s).
Attributes
template[RW]
RevisionTemplateSpec describes the data a revision should have when created from a template. Based on: github.com/kubernetes/api/blob/e771f807/ core/v1/types.go#L3179-L3190 Corresponds to the JSON property `template` @return [Google::Apis::RunV1::RevisionTemplate]
traffic[RW]
Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations. 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 2521 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 2526 def update!(**args) @template = args[:template] if args.key?(:template) @traffic = args[:traffic] if args.key?(:traffic) end