Class: Google::Apis::ContainerV1::UpdateClusterRequest

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

UpdateClusterRequest updates the settings of a cluster.

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


600
601
602
# File 'generated/google/apis/container_v1/classes.rb', line 600

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

Instance Attribute Details

#updateGoogle::Apis::ContainerV1::ClusterUpdate

ClusterUpdate describes an update to the cluster. Exactly one update can be applied to a cluster with each request, so at most one field can be provided. Corresponds to the JSON property update


598
599
600
# File 'generated/google/apis/container_v1/classes.rb', line 598

def update
  @update
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


605
606
607
# File 'generated/google/apis/container_v1/classes.rb', line 605

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