Class: Google::Apis::RunV1alpha1::RouteSpec
- Inherits:
-
Object
- Object
- Google::Apis::RunV1alpha1::RouteSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/run_v1alpha1/classes.rb,
generated/google/apis/run_v1alpha1/representations.rb,
generated/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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RouteSpec
Returns a new instance of RouteSpec.
3634 3635 3636 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3634 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
3625 3626 3627 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3625 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
3632 3633 3634 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3632 def traffic @traffic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3639 3640 3641 3642 |
# File 'generated/google/apis/run_v1alpha1/classes.rb', line 3639 def update!(**args) @generation = args[:generation] if args.key?(:generation) @traffic = args[:traffic] if args.key?(:traffic) end |