Skip to content

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

Merged
gcf-merge-on-green[bot] merged 8 commits into
googleapis:mainfrom
tritone:move-obj
Dec 20, 2024
Merged

feat(storage): add ObjectHandle.Move method#11302
gcf-merge-on-green[bot] merged 8 commits into
googleapis:mainfrom
tritone:move-obj

Conversation

@tritone

@tritone tritone commented Dec 17, 2024

Copy link
Copy Markdown
Contributor

Support the new MoveObject API in both gRPC and JSON.

@tritone
tritone requested review from a team 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
Comment thread storage/http_client.go
Comment thread storage/client.go
Comment thread storage/http_client.go
Comment thread storage/grpc_client.go
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
Copy Markdown
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
Copy Markdown
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.

Comment thread storage/http_client.go
Comment thread storage/integration_test.go
Comment thread storage/integration_test.go Outdated
Comment thread storage/integration_test.go
@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
@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