Class: Google::Apis::GkeonpremV1::VmwareClusterUpgradePolicy

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

Overview

VmwareClusterUpgradePolicy defines the cluster upgrade policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmwareClusterUpgradePolicy

Returns a new instance of VmwareClusterUpgradePolicy.



5022
5023
5024
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5022

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

Instance Attribute Details

#control_plane_onlyBoolean Also known as: control_plane_only?

Controls whether the upgrade applies to the control plane only. Corresponds to the JSON property controlPlaneOnly

Returns:

  • (Boolean)


5019
5020
5021
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5019

def control_plane_only
  @control_plane_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5027
5028
5029
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 5027

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