Skip to content

feat(storage): support delete_source_objects in compose API#17015

Open
nidhiii-27 wants to merge 2 commits into
mainfrom
feat-storage-compose-delete-source-objects-5220279067164674388
Open

feat(storage): support delete_source_objects in compose API#17015
nidhiii-27 wants to merge 2 commits into
mainfrom
feat-storage-compose-delete-source-objects-5220279067164674388

Conversation

@nidhiii-27
Copy link
Copy Markdown
Contributor

This PR adds support for the delete_source_objects parameter in the Blob.compose method of the google-cloud-storage package. This aligns the Python SDK with feature parity in the Java SDK.

Key changes:

  • Updated Blob.compose signature to accept delete_source_objects.
  • Updated Blob.compose docstring.
  • Included deleteSourceObjects in the JSON request body sent to the GCS REST API.
  • Added a unit test test_compose_w_delete_source_objects to test_blob.py to verify correct serialization.
  • Verified that all unit tests for Blob pass.

PR created automatically by Jules for task 5220279067164674388 started by @nidhiii-27

Implements the delete_source_objects parameter in Blob.compose() to allow
automatic deletion of source objects upon successful composition.

Reference PR: googleapis/google-cloud-java#12873

Co-authored-by: nidhiii-27 <224584462+nidhiii-27@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the delete_source_objects parameter to the Blob.compose method, allowing source objects to be automatically deleted after a successful composition. The changes include updates to the method signature, docstrings, and request payload construction, along with a new unit test to verify the functionality. I have no feedback to provide.

Implements the delete_source_objects parameter in Blob.compose() to allow
automatic deletion of source objects upon successful composition.

Also adds unit and system tests to verify the new parameter.

Reference PR: googleapis/google-cloud-java#12873

Co-authored-by: nidhiii-27 <224584462+nidhiii-27@users.noreply.github.com>
@nidhiii-27 nidhiii-27 marked this pull request as ready for review May 12, 2026 04:07
@nidhiii-27 nidhiii-27 requested a review from a team as a code owner May 12, 2026 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant