Skip to content
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

feat(storage): add ObjectHandle.Move method #11302

Merged
merged 8 commits into from
Dec 20, 2024

Conversation

tritone
Copy link
Contributor

@tritone tritone commented Dec 17, 2024

Support the new MoveObject API in both gRPC and JSON.

@tritone tritone requested review from a team as code owners December 17, 2024 19:34
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Dec 17, 2024
@tritone tritone changed the title feat(storage): add Move object method feat(storage): add ObjectHandle.Move method Dec 17, 2024
if err := applyCondsProto("MoveObjectDestination", defaultGen, params.dstConds, req); err != nil {
return nil, err
}
if err := applySourceCondsProto("MoveObjectSource", defaultGen, params.srcConds, req); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this set to defaultGen?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Generation is not a field on the request. In general it doesn't look like you can specify a generation to move while leaving behind others at the source.

storage/http_client.go Show resolved Hide resolved
storage/integration_test.go Show resolved Hide resolved
storage/integration_test.go Outdated Show resolved Hide resolved
@tritone tritone added the automerge Merge the pull request once unit tests and other checks pass. label Dec 20, 2024
@gcf-merge-on-green gcf-merge-on-green bot merged commit a3cb8c4 into googleapis:main Dec 20, 2024
10 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Dec 20, 2024
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.

4 participants