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

Returns a new instance of UpdateClusterRequest



51
52
53
# File 'generated/google/apis/container_v1/classes.rb', line 51

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



49
50
51
# File 'generated/google/apis/container_v1/classes.rb', line 49

def update
  @update
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



56
57
58
# File 'generated/google/apis/container_v1/classes.rb', line 56

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