lib/google/cloud/bigquery/job.rb in google-cloud-bigquery-1.35.1 vs lib/google/cloud/bigquery/job.rb in google-cloud-bigquery-1.36.0
- old
+ new
@@ -391,9 +391,31 @@
@gapi = resp.job
true
end
##
+ # Requests that a job is deleted. This call will return when the job is deleted.
+ #
+ # @return [Boolean] Returns `true` if the job was deleted.
+ #
+ # @example
+ # require "google/cloud/bigquery"
+ #
+ # bigquery = Google::Cloud::Bigquery.new
+ #
+ # job = bigquery.job "my_job"
+ #
+ # job.delete
+ #
+ # @!group Lifecycle
+ #
+ def delete
+ ensure_service!
+ service.delete_job job_id, location: location
+ true
+ end
+
+ ##
# Created a new job with the current configuration.
#
# @example
# require "google/cloud/bigquery"
#