Skip to content

Conversation

@shubhangi-google
Copy link
Contributor

@shubhangi-google shubhangi-google commented Aug 25, 2025

Feature to support Restart and Delete resumable upload functionality

@example   

storage = Google::Cloud::Storage.new
bucket = storage.bucket bucket_name
## sample upload_id=  "AKDAyIs3wDvKFtl2e4PopZi-YtGZDxFr2vlR4Z58T6hL9Seypi5W2s7vrRe6-Qw5Fur79g11bT7MtcsSu-vYRkm5nVUKPpm_ciLPn65GQDqNMQ"
#Initiating Resumable upload 
bucket.create_file file, file_name
#Restarting  Resumable upload 
bucket.restart_resumable_upload file, upload_id
#Deleting Resumable upload 
bucket.delete_resumable_upload upload_id

Implementation linked with - :googleapis/google-api-ruby-client#24234 ,googleapis/google-api-ruby-client#21896, googleapis/google-api-ruby-client#23376
this PR is created as #29215 & #30510 seems to be corrupted

@shubhangi-google shubhangi-google changed the title Restart delete resumable upload v4 feat(storage): Restart delete resumable upload config new Aug 26, 2025
@shubhangi-google shubhangi-google requested a review from a team as a code owner August 26, 2025 13:29
/\/CHANGELOG\.md$/,
/\/version\.rb$/,
/\/snippets\/snippet_metadata_[\w\.]+\.json$/,
/\/snippets\/snippet_metadata_[\w.]+\.json$/,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we making these changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was getting rubocop failure due to this

# Delete resumable upload
# @param [String] upload_id Unique Id of a resumable upload
#
# @return [Boolean,nil] Returns `true` if the resumable upload was deleted,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep it consistent? Just return boolean either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is being returned from Core API , will need to modify core API to fix this

@aandreassa aandreassa added the api: storage Issues related to the Cloud Storage API. label Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants