Class: Google::Apis::BigqueryV2::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/kura/extensions/google/apis/bigquery_v2/job.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#kura_apiObject

Returns the value of attribute kura_api.



6
7
8
# File 'lib/kura/extensions/google/apis/bigquery_v2/job.rb', line 6

def kura_api
  @kura_api
end

Instance Method Details

#cancelObject



12
13
14
# File 'lib/kura/extensions/google/apis/bigquery_v2/job.rb', line 12

def cancel
  kura_api.cancel_job(self)
end

#childrenObject



20
21
22
# File 'lib/kura/extensions/google/apis/bigquery_v2/job.rb', line 20

def children
  kura_api.jobs(parent_job_id: self.job_reference.job_id)
end

#inspectObject



16
17
18
# File 'lib/kura/extensions/google/apis/bigquery_v2/job.rb', line 16

def inspect
  "<##{self.class} job_id=#{self.job_reference.job_id rescue nil}>"
end

#wait(timeout, &blk) ⇒ Object



8
9
10
# File 'lib/kura/extensions/google/apis/bigquery_v2/job.rb', line 8

def wait(timeout, &blk)
  kura_api.wait_job(self, timeout, &blk)
end