Class: Google::Apis::GkehubV2alpha::ClusterUpgradeGkeUpgrade
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV2alpha::ClusterUpgradeGkeUpgrade
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v2alpha/classes.rb,
lib/google/apis/gkehub_v2alpha/representations.rb,
lib/google/apis/gkehub_v2alpha/representations.rb
Overview
GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade.
Instance Attribute Summary collapse
-
#name ⇒ String
Name of the upgrade, e.g., "k8s_control_plane".
-
#version ⇒ String
Version of the upgrade, e.g., "1.22.1-gke.100".
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClusterUpgradeGkeUpgrade
constructor
A new instance of ClusterUpgradeGkeUpgrade.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClusterUpgradeGkeUpgrade
Returns a new instance of ClusterUpgradeGkeUpgrade.
121 122 123 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 121 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the upgrade, e.g., "k8s_control_plane".
Corresponds to the JSON property name
114 115 116 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 114 def name @name end |
#version ⇒ String
Version of the upgrade, e.g., "1.22.1-gke.100".
Corresponds to the JSON property version
119 120 121 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 119 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
126 127 128 129 |
# File 'lib/google/apis/gkehub_v2alpha/classes.rb', line 126 def update!(**args) @name = args[:name] if args.key?(:name) @version = args[:version] if args.key?(:version) end |