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 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Deprecated. 
- 
  
    
      #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 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Deprecated. 
- 
  
    
      #zone  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Deprecated. 
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
| 2815 2816 2817 | # File 'generated/google/apis/container_v1beta1/classes.rb', line 2815 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#cluster_id ⇒ String
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
| 2780 2781 2782 | # File 'generated/google/apis/container_v1beta1/classes.rb', line 2780 def cluster_id @cluster_id end | 
#master_version ⇒ String
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
| 2792 2793 2794 | # File 'generated/google/apis/container_v1beta1/classes.rb', line 2792 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
| 2798 2799 2800 | # File 'generated/google/apis/container_v1beta1/classes.rb', line 2798 def name @name end | 
#project_id ⇒ String
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
| 2805 2806 2807 | # File 'generated/google/apis/container_v1beta1/classes.rb', line 2805 def project_id @project_id end | 
#zone ⇒ String
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
| 2813 2814 2815 | # File 'generated/google/apis/container_v1beta1/classes.rb', line 2813 def zone @zone end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2820 2821 2822 2823 2824 2825 2826 | # File 'generated/google/apis/container_v1beta1/classes.rb', line 2820 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 |