class Google::Apis::ContainerV1::UpdateMasterRequest
UpdateMasterRequest
updates the master of the cluster.
Attributes
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` @return [String]
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` @return [String]
The name (project, location, cluster) of the cluster to update. Specified in the format `projects//locations//clusters/*`. Corresponds to the JSON property `name` @return [String]
Deprecated. The Google
Developers Console [project ID or project number](https: //support.google.com/cloud/answer/6158840). This field has been deprecated and replaced by the name field. Corresponds to the JSON property `projectId` @return [String]
Deprecated. The name of the Google
Compute Engine [zone](cloud.google. com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field. Corresponds to the JSON property `zone` @return [String]
Public Class Methods
# File lib/google/apis/container_v1/classes.rb, line 4622 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/container_v1/classes.rb, line 4627 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