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
2514 2515 2516 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2514 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
2485 2486 2487 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2485 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
2492 2493 2494 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2492 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
2498 2499 2500 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2498 def name @name end |
#project_id ⇒ String
The Google Developers Console project ID or project
number.
Corresponds to the JSON property projectId
2504 2505 2506 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2504 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
2512 2513 2514 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2512 def zone @zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2519 2520 2521 2522 2523 2524 2525 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 2519 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 |