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
more...

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.

[View source]

4733
4734
4735
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4733

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)

4730
4731
4732
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4730

def control_plane_only
  @control_plane_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

4738
4739
4740
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 4738

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