Class: Google::Apis::ContainerV1::NodeManagement

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb

Overview

NodeManagement defines the set of node management services turned on for the node pool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NodeManagement

Returns a new instance of NodeManagement



1093
1094
1095
# File 'generated/google/apis/container_v1/classes.rb', line 1093

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

Instance Attribute Details

#auto_repairBoolean Also known as: auto_repair?

A flag that specifies whether the node auto-repair is enabled for the node pool. If enabled, the nodes in this node pool will be monitored and, if they fail health checks too many times, an automatic repair action will be triggered. Corresponds to the JSON property autoRepair

Returns:

  • (Boolean)


1084
1085
1086
# File 'generated/google/apis/container_v1/classes.rb', line 1084

def auto_repair
  @auto_repair
end

#auto_upgradeBoolean Also known as: auto_upgrade?

A flag that specifies whether node auto-upgrade is enabled for the node pool. If enabled, node auto-upgrade helps keep the nodes in your node pool up to date with the latest release version of Kubernetes. Corresponds to the JSON property autoUpgrade

Returns:

  • (Boolean)


1075
1076
1077
# File 'generated/google/apis/container_v1/classes.rb', line 1075

def auto_upgrade
  @auto_upgrade
end

#upgrade_optionsGoogle::Apis::ContainerV1::AutoUpgradeOptions

AutoUpgradeOptions defines the set of options for the user to control how the Auto Upgrades will proceed. Corresponds to the JSON property upgradeOptions



1091
1092
1093
# File 'generated/google/apis/container_v1/classes.rb', line 1091

def upgrade_options
  @upgrade_options
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1098
1099
1100
1101
1102
# File 'generated/google/apis/container_v1/classes.rb', line 1098

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