Class: Google::Apis::DataprocV1beta2::Cluster
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DataprocV1beta2::Cluster
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dataproc_v1beta2/classes.rb,
 generated/google/apis/dataproc_v1beta2/representations.rb,
 generated/google/apis/dataproc_v1beta2/representations.rb
Overview
Describes the identifying information, config, and status of a cluster of Compute Engine instances.
Instance Attribute Summary collapse
- 
  
    
      #cluster_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #cluster_uuid  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
- 
  
    
      #config  ⇒ Google::Apis::DataprocV1beta2::ClusterConfig 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The cluster config. 
- 
  
    
      #labels  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Optional. 
- 
  
    
      #metrics  ⇒ Google::Apis::DataprocV1beta2::ClusterMetrics 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature: This report is available for testing purposes only. 
- 
  
    
      #project_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #status  ⇒ Google::Apis::DataprocV1beta2::ClusterStatus 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The status of a cluster and its instances. 
- 
  
    
      #status_history  ⇒ Array<Google::Apis::DataprocV1beta2::ClusterStatus> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Output only. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Cluster 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Cluster. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Cluster
Returns a new instance of Cluster
| 163 164 165 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 163 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#cluster_name ⇒ String
Required. The cluster name. Cluster names within a project must be unique.
Names of deleted clusters can be reused.
Corresponds to the JSON property clusterName
| 119 120 121 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 119 def cluster_name @cluster_name end | 
#cluster_uuid ⇒ String
Output only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc
generates this value when it creates the cluster.
Corresponds to the JSON property clusterUuid
| 125 126 127 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 125 def cluster_uuid @cluster_uuid end | 
#config ⇒ Google::Apis::DataprocV1beta2::ClusterConfig
The cluster config.
Corresponds to the JSON property config
| 130 131 132 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 130 def config @config end | 
#labels ⇒ Hash<String,String>
Optional. The labels to associate with this cluster. Label keys must contain 1
to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/
rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63
characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
. No more than 32 labels can be associated with a cluster.
Corresponds to the JSON property labels
| 139 140 141 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 139 def labels @labels end | 
#metrics ⇒ Google::Apis::DataprocV1beta2::ClusterMetrics
Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
This report is available for testing purposes only. It may be changed before
final release.
Corresponds to the JSON property metrics
| 146 147 148 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 146 def metrics @metrics end | 
#project_id ⇒ String
Required. The Google Cloud Platform project ID that the cluster belongs to.
Corresponds to the JSON property projectId
| 151 152 153 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 151 def project_id @project_id end | 
#status ⇒ Google::Apis::DataprocV1beta2::ClusterStatus
The status of a cluster and its instances.
Corresponds to the JSON property status
| 156 157 158 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 156 def status @status end | 
#status_history ⇒ Array<Google::Apis::DataprocV1beta2::ClusterStatus>
Output only. The previous cluster status.
Corresponds to the JSON property statusHistory
| 161 162 163 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 161 def status_history @status_history end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 168 169 170 171 172 173 174 175 176 177 | # File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 168 def update!(**args) @cluster_name = args[:cluster_name] if args.key?(:cluster_name) @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) @config = args[:config] if args.key?(:config) @labels = args[:labels] if args.key?(:labels) @metrics = args[:metrics] if args.key?(:metrics) @project_id = args[:project_id] if args.key?(:project_id) @status = args[:status] if args.key?(:status) @status_history = args[:status_history] if args.key?(:status_history) end |