Class: Google::Apis::ContainerV1beta1::UpdateMasterRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::UpdateMasterRequest
- Defined in:
- generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/representations.rb
Overview
UpdateMasterRequest updates the master of the cluster.
Instance Attribute Summary collapse
-
#cluster_id ⇒ String
The name of the cluster to upgrade.
-
#master_version ⇒ String
The Kubernetes version to change the master to.
-
#name ⇒ String
The name (project, location, cluster) of the cluster to update.
-
#project_id ⇒ String
The Google Developers Console project ID or project number.
-
#zone ⇒ String
The name of the Google Compute Engine zone in which the cluster resides.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpdateMasterRequest
constructor
A new instance of UpdateMasterRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ UpdateMasterRequest
Returns a new instance of UpdateMasterRequest
2587 2588 2589 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2587 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_id ⇒ String
The name of the cluster to upgrade.
This field is deprecated, use name instead.
Corresponds to the JSON property clusterId
2558 2559 2560 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2558 def cluster_id @cluster_id end |
#master_version ⇒ String
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
2565 2566 2567 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2565 def master_version @master_version end |
#name ⇒ String
The name (project, location, cluster) of the cluster to update.
Specified in the format 'projects//locations//clusters/*'.
Corresponds to the JSON property name
2571 2572 2573 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2571 def name @name end |
#project_id ⇒ String
The Google Developers Console project ID or project
number.
Corresponds to the JSON property projectId
2577 2578 2579 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2577 def project_id @project_id end |
#zone ⇒ String
The name of the Google Compute Engine
zone in which the cluster
resides.
This field is deprecated, use name instead.
Corresponds to the JSON property zone
2585 2586 2587 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2585 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2592 2593 2594 2595 2596 2597 2598 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2592 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 |