Class: Google::Apis::GkeonpremV1::BareMetalClusterUpgradePolicy

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

BareMetalClusterUpgradePolicy defines the cluster upgrade policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalClusterUpgradePolicy

Returns a new instance of BareMetalClusterUpgradePolicy.



1133
1134
1135
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1133

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

Instance Attribute Details

#pauseBoolean Also known as: pause?

Output only. Pause is used to show the upgrade pause status. It's view only for now. Corresponds to the JSON property pause

Returns:

  • (Boolean)


1125
1126
1127
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1125

def pause
  @pause
end

#policyString

Specifies which upgrade policy to use. Corresponds to the JSON property policy

Returns:

  • (String)


1131
1132
1133
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1131

def policy
  @policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1138
1139
1140
1141
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1138

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