class Google::Apis::DataprocV1beta2::Cluster
Describes the identifying information, config, and status of a cluster of Compute Engine instances.
Attributes
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` @return [String]
Output only. A cluster UUID (Unique Universal Identifier). Dataproc generates this value when it creates the cluster. Corresponds to the JSON property `clusterUuid` @return [String]
The cluster config. Corresponds to the JSON property `config` @return [Google::Apis::DataprocV1beta2::ClusterConfig]
Optional. The labels to associate with this cluster. Label keys must contain 1 to 63 characters, and must conform to RFC 1035 (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 (www.ietf.org/rfc/rfc1035.txt) . No more than 32 labels can be associated with a cluster. Corresponds to the JSON property `labels` @return [Hash<String,String>]
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` @return [Google::Apis::DataprocV1beta2::ClusterMetrics]
Required. The Google
Cloud Platform project ID that the cluster belongs to. Corresponds to the JSON property `projectId` @return [String]
The status of a cluster and its instances. Corresponds to the JSON property `status` @return [Google::Apis::DataprocV1beta2::ClusterStatus]
Output only. The previous cluster status. Corresponds to the JSON property `statusHistory` @return [Array<Google::Apis::DataprocV1beta2::ClusterStatus>]
Public Class Methods
# File lib/google/apis/dataproc_v1beta2/classes.rb, line 365 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dataproc_v1beta2/classes.rb, line 370 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