Class: Google::Apis::ContainerV1::UpdateMasterRequest

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

UpdateMasterRequest updates the master of the 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) ⇒ UpdateMasterRequest

Returns a new instance of UpdateMasterRequest



1757
1758
1759
# File 'generated/google/apis/container_v1/classes.rb', line 1757

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

Instance Attribute Details

#master_versionString

The Kubernetes version to change the master to. The only valid value is the latest supported version. Use "-" to have the server automatically select the latest version. Corresponds to the JSON property masterVersion

Returns:

  • (String)


1755
1756
1757
# File 'generated/google/apis/container_v1/classes.rb', line 1755

def master_version
  @master_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1762
1763
1764
# File 'generated/google/apis/container_v1/classes.rb', line 1762

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