Skip to content

feat: add uri property to Bucket and Blob for roundtrip consistency#16782

Open
guillaume-rochette-oxb wants to merge 5 commits intogoogleapis:mainfrom
guillaume-rochette-oxb:main
Open

feat: add uri property to Bucket and Blob for roundtrip consistency#16782
guillaume-rochette-oxb wants to merge 5 commits intogoogleapis:mainfrom
guillaume-rochette-oxb:main

Conversation

@guillaume-rochette-oxb
Copy link
Copy Markdown

Hi,
This Pull Requests fixes #15984.
I have added the documentation, added necessary assertions in the tests, and the code coverage should be maintained.
Best regards,
Guillaume

@guillaume-rochette-oxb guillaume-rochette-oxb requested a review from a team as a code owner April 23, 2026 15:25
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Apr 23, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@guillaume-rochette-oxb guillaume-rochette-oxb changed the title Add uri property to Bucket and Blob for roundtrip consistency feat: add uri property to Bucket and Blob for roundtrip consistency Apr 23, 2026
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 adds a uri property to the Blob and Bucket classes, along with corresponding unit tests. The review feedback suggests adding validation to ensure that the name attribute is not None before constructing the URI, which prevents the generation of invalid URI strings and ensures fail-fast behavior.

Comment thread packages/google-cloud-storage/google/cloud/storage/bucket.py
Comment thread packages/google-cloud-storage/google/cloud/storage/blob.py
guillaume-rochette-oxb and others added 2 commits April 23, 2026 16:36
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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.

missing uri property on Blob()

1 participant