Class: Google::Apis::ContainerV1::UpdateNodePoolRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::UpdateNodePoolRequest
- 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
-
#image_type ⇒ String
The desired image type for the node pool.
-
#node_version ⇒ String
The Kubernetes version to change the nodes to (typically an upgrade).
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateNodePoolRequest
constructor
A new instance of UpdateNodePoolRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateNodePoolRequest
Returns a new instance of UpdateNodePoolRequest
1904 1905 1906 |
# File 'generated/google/apis/container_v1/classes.rb', line 1904 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_type ⇒ String
The desired image type for the node pool.
Corresponds to the JSON property imageType
1895 1896 1897 |
# File 'generated/google/apis/container_v1/classes.rb', line 1895 def image_type @image_type end |
#node_version ⇒ String
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
1902 1903 1904 |
# File 'generated/google/apis/container_v1/classes.rb', line 1902 def node_version @node_version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1909 1910 1911 1912 |
# File 'generated/google/apis/container_v1/classes.rb', line 1909 def update!(**args) @image_type = args[:image_type] if args.key?(:image_type) @node_version = args[:node_version] if args.key?(:node_version) end |