Class: Google::Apis::DataprocV1beta2::ManagedCluster

Inherits:
Object
  • Object
show all
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

Cluster that is managed by the workflow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ManagedCluster

Returns a new instance of ManagedCluster



1333
1334
1335
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1333

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

Instance Attribute Details

#cluster_nameString

Required. The cluster name. Cluster names within a project must be unique. Names from deleted clusters can be reused. Corresponds to the JSON property clusterName

Returns:

  • (String)


1317
1318
1319
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1317

def cluster_name
  @cluster_name
end

#configGoogle::Apis::DataprocV1beta2::ClusterConfig

The cluster config. Corresponds to the JSON property config



1322
1323
1324
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1322

def config
  @config
end

#labelsHash<String,String>

Optional. The labels to associate with this cluster.Label keys must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \pLl\pLo0,62Label values must be between 1 and 63 characters long, and must conform to the following PCRE regular expression: \pLl\pLo\ pN_-0,63No more than 64 labels can be associated with a given cluster. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1331
1332
1333
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1331

def labels
  @labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1338
1339
1340
1341
1342
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1338

def update!(**args)
  @cluster_name = args[:cluster_name] if args.key?(:cluster_name)
  @config = args[:config] if args.key?(:config)
  @labels = args[:labels] if args.key?(:labels)
end