Skip to content

Commit b92dd7f

Browse files
new changes working
1 parent 872802b commit b92dd7f

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

google-apis-core/lib/google/apis/core/base_service.rb

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,15 +350,32 @@ def verify_universe_domain!
350350
true
351351
end
352352

353-
# Restarts Or Deletes An Ongoing Resumable upload
353+
# Restarts An Ongoing Resumable upload
354354
# @param [String] bucket
355355
# Name of the bucket where the upload is being performed.
356356
# @param [IO, String] upload_source
357357
# IO stream or filename containing content to upload
358358
# @param [IO, String] upload_id
359359
# unique id generated for an ongoing upload
360360

361-
def restart_delete_ongoing_resumable_upload(bucket, upload_source, upload_id, options: nil)
361+
def restart_resumable_upload(bucket, upload_source, upload_id, options: nil)
362+
command = make_storage_upload_command(:post, 'b/{bucket}/o', options)
363+
command.upload_source = upload_source
364+
command.upload_id = upload_id
365+
command.params['bucket'] = bucket unless bucket.nil?
366+
command.delete_upload = options[:delete_upload ] unless options[:delete_upload].nil?
367+
execute_or_queue_command(command)
368+
end
369+
370+
# Deletes An Ongoing Resumable upload
371+
# @param [String] bucket
372+
# Name of the bucket where the upload is being performed.
373+
# @param [IO, String] upload_source
374+
# IO stream or filename containing content to upload
375+
# @param [IO, String] upload_id
376+
# unique id generated for an ongoing upload
377+
378+
def delete_resumable_upload(bucket, upload_source, upload_id, options: nil)
362379
command = make_storage_upload_command(:post, 'b/{bucket}/o', options)
363380
command.upload_source = upload_source
364381
command.upload_id = upload_id

0 commit comments

Comments
 (0)