Class: Google::Apis::GkehubV1alpha::VersionUpgrade
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1alpha::VersionUpgrade
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/representations.rb
Overview
Config for version upgrade of clusters.
Instance Attribute Summary collapse
-
#desired_version ⇒ String
Optional.
-
#type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VersionUpgrade
constructor
A new instance of VersionUpgrade.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VersionUpgrade
Returns a new instance of VersionUpgrade.
7415 7416 7417 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 7415 def initialize(**args) update!(**args) end |
Instance Attribute Details
#desired_version ⇒ String
Optional. Desired version of the component.
Corresponds to the JSON property desiredVersion
7408 7409 7410 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 7408 def desired_version @desired_version end |
#type ⇒ String
Optional. Type of version upgrade specifies which component should be upgraded.
Corresponds to the JSON property type
7413 7414 7415 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 7413 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7420 7421 7422 7423 |
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 7420 def update!(**args) @desired_version = args[:desired_version] if args.key?(:desired_version) @type = args[:type] if args.key?(:type) end |