Class: Google::Apis::ContainerV1::UpdateNodePoolRequest

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

UpdateNodePoolRequests update a node pool's image and/or version.

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) ⇒ UpdateNodePoolRequest

Returns a new instance of UpdateNodePoolRequest



1783
1784
1785
# File 'generated/google/apis/container_v1/classes.rb', line 1783

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

Instance Attribute Details

#image_typeString

The desired image type for the node pool. Corresponds to the JSON property imageType

Returns:

  • (String)


1774
1775
1776
# File 'generated/google/apis/container_v1/classes.rb', line 1774

def image_type
  @image_type
end

#node_versionString

The Kubernetes version to change the nodes to (typically an upgrade). Use - to upgrade to the latest version supported by the server. Corresponds to the JSON property nodeVersion

Returns:

  • (String)


1781
1782
1783
# File 'generated/google/apis/container_v1/classes.rb', line 1781

def node_version
  @node_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1788
1789
1790
1791
# File 'generated/google/apis/container_v1/classes.rb', line 1788

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