class Google::Apis::DataprocV1::Job

A Cloud Dataproc job resource.

Attributes

driver_control_files_uri[RW]
Output-only

If present, the location of miscellaneous control files which

may be used as part of job setup and handling. If not present, control files may be placed in the same location as `driver_output_uri`. Corresponds to the JSON property `driverControlFilesUri` @return [String]

driver_output_resource_uri[RW]
Output-only

A URI pointing to the location of the stdout of the job's driver

program. Corresponds to the JSON property `driverOutputResourceUri` @return [String]

hadoop_job[RW]

A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN. Corresponds to the JSON property `hadoopJob` @return [Google::Apis::DataprocV1::HadoopJob]

hive_job[RW]

A Cloud Dataproc job for running Hive queries on YARN. Corresponds to the JSON property `hiveJob` @return [Google::Apis::DataprocV1::HiveJob]

pig_job[RW]

A Cloud Dataproc job for running Pig queries on YARN. Corresponds to the JSON property `pigJob` @return [Google::Apis::DataprocV1::PigJob]

placement[RW]

Cloud Dataproc job config. Corresponds to the JSON property `placement` @return [Google::Apis::DataprocV1::JobPlacement]

pyspark_job[RW]

A Cloud Dataproc job for running PySpark applications on YARN. Corresponds to the JSON property `pysparkJob` @return [Google::Apis::DataprocV1::PySparkJob]

reference[RW]

Encapsulates the full scoping used to reference a job. Corresponds to the JSON property `reference` @return [Google::Apis::DataprocV1::JobReference]

spark_job[RW]

A Cloud Dataproc job for running Spark applications on YARN. Corresponds to the JSON property `sparkJob` @return [Google::Apis::DataprocV1::SparkJob]

spark_sql_job[RW]

A Cloud Dataproc job for running Spark SQL queries. Corresponds to the JSON property `sparkSqlJob` @return [Google::Apis::DataprocV1::SparkSqlJob]

status[RW]

Cloud Dataproc job status. Corresponds to the JSON property `status` @return [Google::Apis::DataprocV1::JobStatus]

status_history[RW]
Output-only

The previous job status.

Corresponds to the JSON property `statusHistory` @return [Array<Google::Apis::DataprocV1::JobStatus>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/dataproc_v1/classes.rb, line 718
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/dataproc_v1/classes.rb, line 723
def update!(**args)
  @reference = args[:reference] if args.key?(:reference)
  @placement = args[:placement] if args.key?(:placement)
  @hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
  @spark_job = args[:spark_job] if args.key?(:spark_job)
  @pyspark_job = args[:pyspark_job] if args.key?(:pyspark_job)
  @hive_job = args[:hive_job] if args.key?(:hive_job)
  @pig_job = args[:pig_job] if args.key?(:pig_job)
  @spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
  @status = args[:status] if args.key?(:status)
  @status_history = args[:status_history] if args.key?(:status_history)
  @driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
  @driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
end