-
Notifications
You must be signed in to change notification settings - Fork 567
chore(storage): Update move logic now to support non-HNS buckets #32157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
chore(storage): Update move logic now to support non-HNS buckets #32157
Conversation
|
@shubhangi-google could you check why presubmits are failing. |
hi @cpriti-os I am not facing this error when I am running the samples with my user this seems to be a permission issue with the user used by kokoro |
120d6c6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shubhangi-google AFAIK Move API is only supported for HNS buckets, for Non-HNS we will have to use copy + delete, correct me if I missed something. If not, could you add that and lets see if we still see move permission missing issue in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @cpriti-os this was the case earlier when move object API was supported by HNS bucekt only (#29391)
purpose of current PR is to provide support of move object- API to both HNS and NON HNS buckets
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request broadens the utility of the
move_fileoperation within the Google Cloud Storage Ruby client library. By removing the prior limitation to Hierarchical Namespace (HNS) enabled buckets, themove_filemethod can now be used with any bucket type, making the storage client more versatile and user-friendly for file management tasks.Highlights
move_filefunctionality: Themove_fileoperation in the Google Cloud Storage client library now supports all bucket types, removing the previous restriction to only Hierarchical Namespace (HNS) enabled buckets.move_filemethod has been updated to reflect its broader applicability across all bucket types.move_filefunctionality on standard buckets, including tests for successful file movement and proper error handling when source and destination filenames are identical.