Class: Google::Apis::DataprocV1beta2::JobPlacement

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

Cloud Dataproc job config.

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) ⇒ JobPlacement

Returns a new instance of JobPlacement



1064
1065
1066
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1064

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

Instance Attribute Details

#cluster_nameString

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

Returns:

  • (String)


1056
1057
1058
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1056

def cluster_name
  @cluster_name
end

#cluster_uuidString

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

Returns:

  • (String)


1062
1063
1064
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1062

def cluster_uuid
  @cluster_uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1069
1070
1071
1072
# File 'generated/google/apis/dataproc_v1beta2/classes.rb', line 1069

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