Method: BigQuery::Client::Jobs#job

Defined in:
lib/big_query/client/jobs.rb

#job(id, opts = {}) ⇒ Hash

Fetches a bigquery job by id

Parameters:

  • id (Integer)

    job id to fetch

  • options (Hash)

    bigquery opts accepted

Returns:

  • (Hash)

    json api response



9
10
11
12
13
14
# File 'lib/big_query/client/jobs.rb', line 9

def job(id, opts = {})
  opts['jobId'] ||= id

  api(api_method: @bq.jobs.get,
      parameters: opts)
end