Class: Google::Apis::GkehubV1::ClusterUpgradeGkeUpgrade
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1::ClusterUpgradeGkeUpgrade
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1/classes.rb,
lib/google/apis/gkehub_v1/representations.rb,
lib/google/apis/gkehub_v1/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.
430 431 432 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 430 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the upgrade, e.g., "k8s_control_plane". It should be a valid upgrade
name. It must not exceet 99 characters.
Corresponds to the JSON property name
422 423 424 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 422 def name @name end |
#version ⇒ String
Version of the upgrade, e.g., "1.22.1-gke.100". It should be a valid version.
It must not exceet 99 characters.
Corresponds to the JSON property version
428 429 430 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 428 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
435 436 437 438 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 435 def update!(**args) @name = args[:name] if args.key?(:name) @version = args[:version] if args.key?(:version) end |