Class: Google::Apis::RunV1alpha1::RouteSpec
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::RouteSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1alpha1/classes.rb,
lib/google/apis/run_v1alpha1/representations.rb,
lib/google/apis/run_v1alpha1/representations.rb
Overview
RouteSpec holds the desired state of the Route (from the client).
Instance Attribute Summary collapse
-
#generation ⇒ Fixnum
Deprecated and not currently populated by Cloud Run.
-
#traffic ⇒ Array<Google::Apis::RunV1alpha1::TrafficTarget>
Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RouteSpec
constructor
A new instance of RouteSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RouteSpec
Returns a new instance of RouteSpec.
3121 3122 3123 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3121 def initialize(**args) update!(**args) end |
Instance Attribute Details
#generation ⇒ Fixnum
Deprecated and not currently populated by Cloud Run. See metadata.generation
instead, which is the sequence number containing the latest generation of the
desired state. Read-only.
Corresponds to the JSON property generation
3112 3113 3114 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3112 def generation @generation end |
#traffic ⇒ Array<Google::Apis::RunV1alpha1::TrafficTarget>
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
3119 3120 3121 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3119 def traffic @traffic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3126 3127 3128 3129 |
# File 'lib/google/apis/run_v1alpha1/classes.rb', line 3126 def update!(**args) @generation = args[:generation] if args.key?(:generation) @traffic = args[:traffic] if args.key?(:traffic) end |