googleapis / google-cloud-ruby

Google Cloud Client Library for Ruby
https://googleapis.github.io/google-cloud-ruby/
Apache License 2.0
1.36k stars 550 forks source link

feat(storage): restore soft deleted object using restore token for HNS buckets #27507

Closed shubhangi-google closed 1 week ago

shubhangi-google commented 3 weeks ago

Add support for restore token to soft deleted from HNS bucket.

Operation Supported:

 @example
require "google/cloud/storage"
storage = Google::Cloud::Storage.new
bucket = storage.bucket "my-hns-bucket"
bucket.restore_file "path/of/file", <generation-of-the-file>, "<restore_token>"
JesseLovelace commented 1 week ago

We decided not to add this feature to the client libraries, and to direct customers to use the CLI or console instead