Class: Google::Apis::DataprocV1::JobPlacement

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

Dataproc job config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobPlacement

Returns a new instance of JobPlacement.



2329
2330
2331
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2329

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

Instance Attribute Details

#cluster_labelsHash<String,String>

Optional. Cluster labels to identify a cluster where the job will be submitted. Corresponds to the JSON property clusterLabels

Returns:

  • (Hash<String,String>)


2316
2317
2318
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2316

def cluster_labels
  @cluster_labels
end

#cluster_nameString

Required. The name of the cluster where the job will be submitted. Corresponds to the JSON property clusterName

Returns:

  • (String)


2321
2322
2323
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2321

def cluster_name
  @cluster_name
end

#cluster_uuidString

Output only. A cluster UUID generated by the Dataproc service when the job is submitted. Corresponds to the JSON property clusterUuid

Returns:

  • (String)


2327
2328
2329
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2327

def cluster_uuid
  @cluster_uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2334
2335
2336
2337
2338
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2334

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