Class: Google::Apis::DataprocV1::JobPlacement
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::JobPlacement
- 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
-
#cluster_labels ⇒ Hash<String,String>
Optional.
-
#cluster_name ⇒ String
Required.
-
#cluster_uuid ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ JobPlacement
constructor
A new instance of JobPlacement.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ JobPlacement
Returns a new instance of JobPlacement.
2376 2377 2378 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2376 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cluster_labels ⇒ Hash<String,String>
Optional. Cluster labels to identify a cluster where the job will be submitted.
Corresponds to the JSON property clusterLabels
2363 2364 2365 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2363 def cluster_labels @cluster_labels end |
#cluster_name ⇒ String
Required. The name of the cluster where the job will be submitted.
Corresponds to the JSON property clusterName
2368 2369 2370 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2368 def cluster_name @cluster_name end |
#cluster_uuid ⇒ String
Output only. A cluster UUID generated by the Dataproc service when the job is
submitted.
Corresponds to the JSON property clusterUuid
2374 2375 2376 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2374 def cluster_uuid @cluster_uuid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2381 2382 2383 2384 2385 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2381 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 |