Class: Google::Apis::DataprocV1::Cluster

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Cluster

Returns a new instance of Cluster.



1287
1288
1289
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1287

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cluster_nameString

Required. The cluster name, which must be unique within a project. The name must start with a lowercase letter, and can contain up to 51 lowercase letters, numbers, and hyphens. It cannot end with a hyphen. The name of a deleted cluster can be reused. Corresponds to the JSON property clusterName

Returns:

  • (String)


1236
1237
1238
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1236

def cluster_name
  @cluster_name
end

#cluster_uuidString

Output only. A cluster UUID (Unique Universal Identifier). Dataproc generates this value when it creates the cluster. Corresponds to the JSON property clusterUuid

Returns:

  • (String)


1242
1243
1244
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1242

def cluster_uuid
  @cluster_uuid
end

#configGoogle::Apis::DataprocV1::ClusterConfig

The cluster config. Corresponds to the JSON property config



1247
1248
1249
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1247

def config
  @config
end

#labelsHash<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

Returns:

  • (Hash<String,String>)


1256
1257
1258
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1256

def labels
  @labels
end

#metricsGoogle::Apis::DataprocV1::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



1263
1264
1265
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1263

def metrics
  @metrics
end

#project_idString

Required. The Google Cloud Platform project ID that the cluster belongs to. Corresponds to the JSON property projectId

Returns:

  • (String)


1268
1269
1270
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1268

def project_id
  @project_id
end

#statusGoogle::Apis::DataprocV1::ClusterStatus

The status of a cluster and its instances. Corresponds to the JSON property status



1273
1274
1275
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1273

def status
  @status
end

#status_historyArray<Google::Apis::DataprocV1::ClusterStatus>

Output only. The previous cluster status. Corresponds to the JSON property statusHistory



1278
1279
1280
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1278

def status_history
  @status_history
end

#virtual_cluster_configGoogle::Apis::DataprocV1::VirtualClusterConfig

The Dataproc cluster config for a cluster that does not directly control the underlying compute resources, such as a Dataproc-on-GKE cluster (https://cloud. google.com/dataproc/docs/guides/dpgke/dataproc-gke-overview). Corresponds to the JSON property virtualClusterConfig



1285
1286
1287
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1285

def virtual_cluster_config
  @virtual_cluster_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1292

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)
  @virtual_cluster_config = args[:virtual_cluster_config] if args.key?(:virtual_cluster_config)
end