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.



3784
3785
3786
# File 'generated/google/apis/container_v1/classes.rb', line 3784

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

Instance Attribute Details

#cluster_idString

Required. Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field. Corresponds to the JSON property clusterId

Returns:

  • (String)


3749
3750
3751
# File 'generated/google/apis/container_v1/classes.rb', line 3749

def cluster_id
  @cluster_id
end

#master_versionString

Required. The Kubernetes version to change the master to. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior:

  • "latest": picks the highest valid Kubernetes version
  • "1.X": picks the highest valid patch+gke.N patch in the 1.X version
  • "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
  • "1.X.Y-gke.N": picks an explicit Kubernetes version
  • "-": picks the default Kubernetes version Corresponds to the JSON property masterVersion

Returns:

  • (String)


3761
3762
3763
# File 'generated/google/apis/container_v1/classes.rb', line 3761

def master_version
  @master_version
end

#nameString

The name (project, location, cluster) of the cluster to update. Specified in the format 'projects//locations//clusters/*'. Corresponds to the JSON property name

Returns:

  • (String)


3767
3768
3769
# File 'generated/google/apis/container_v1/classes.rb', line 3767

def name
  @name
end

#project_idString

Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field. Corresponds to the JSON property projectId

Returns:

  • (String)


3774
3775
3776
# File 'generated/google/apis/container_v1/classes.rb', line 3774

def project_id
  @project_id
end

#zoneString

Required. Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field. Corresponds to the JSON property zone

Returns:

  • (String)


3782
3783
3784
# File 'generated/google/apis/container_v1/classes.rb', line 3782

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3789
3790
3791
3792
3793
3794
3795
# File 'generated/google/apis/container_v1/classes.rb', line 3789

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