Class: Google::Apis::GkehubV1::VersionUpgrade

Inherits:
Object
  • Object
show all
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

Config for version upgrade of clusters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VersionUpgrade

Returns a new instance of VersionUpgrade.



6827
6828
6829
# File 'lib/google/apis/gkehub_v1/classes.rb', line 6827

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

Instance Attribute Details

#desired_versionString

Optional. Desired version of the component. Corresponds to the JSON property desiredVersion

Returns:

  • (String)


6820
6821
6822
# File 'lib/google/apis/gkehub_v1/classes.rb', line 6820

def desired_version
  @desired_version
end

#typeString

Optional. Type of version upgrade specifies which component should be upgraded. Corresponds to the JSON property type

Returns:

  • (String)


6825
6826
6827
# File 'lib/google/apis/gkehub_v1/classes.rb', line 6825

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6832
6833
6834
6835
# File 'lib/google/apis/gkehub_v1/classes.rb', line 6832

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