Class: Google::Apis::GkehubV1beta::ClusterUpgradeGkeUpgrade

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/representations.rb

Overview

GKEUpgrade represents a GKE provided upgrade, e.g., control plane upgrade.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClusterUpgradeGkeUpgrade

Returns a new instance of ClusterUpgradeGkeUpgrade.



459
460
461
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 459

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

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

Returns:

  • (String)


451
452
453
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 451

def name
  @name
end

#versionString

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

Returns:

  • (String)


457
458
459
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 457

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



464
465
466
467
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 464

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @version = args[:version] if args.key?(:version)
end