class Google::Apis::DataprocV1::Cluster

Describes the identifying information, config, and status of a Dataproc cluster

Attributes

cluster_name[RW]

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]

cluster_uuid[RW]

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]

config[RW]

The cluster config. Corresponds to the JSON property `config` @return [Google::Apis::DataprocV1::ClusterConfig]

labels[RW]

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>]

metrics[RW]

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::DataprocV1::ClusterMetrics]

project_id[RW]

Required. The Google Cloud Platform project ID that the cluster belongs to. Corresponds to the JSON property `projectId` @return [String]

status[RW]

The status of a cluster and its instances. Corresponds to the JSON property `status` @return [Google::Apis::DataprocV1::ClusterStatus]

status_history[RW]

Output only. The previous cluster status. Corresponds to the JSON property `statusHistory` @return [Array<Google::Apis::DataprocV1::ClusterStatus>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dataproc_v1/classes.rb, line 428
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dataproc_v1/classes.rb, line 433
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