Skip to content

docs(storage): improve signed url docs#4178

Merged
alvarowolfx merged 5 commits intogoogleapis:mainfrom
alvarowolfx:docs-signed-urls
Jan 8, 2026
Merged

docs(storage): improve signed url docs#4178
alvarowolfx merged 5 commits intogoogleapis:mainfrom
alvarowolfx:docs-signed-urls

Conversation

@alvarowolfx
Copy link
Copy Markdown
Collaborator

Towards #3645

@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Jan 7, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.75%. Comparing base (b88c9b7) to head (91a22fe).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4178      +/-   ##
==========================================
+ Coverage   94.74%   94.75%   +0.01%     
==========================================
  Files         186      186              
  Lines        7035     7035              
==========================================
+ Hits         6665     6666       +1     
+ Misses        370      369       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alvarowolfx alvarowolfx marked this pull request as ready for review January 7, 2026 17:18
@alvarowolfx alvarowolfx requested a review from a team January 7, 2026 17:18
coryan
coryan previously approved these changes Jan 7, 2026
Copy link
Copy Markdown
Collaborator

@coryan coryan left a comment

Choose a reason for hiding this comment

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

Only nits.

Comment on lines +43 to +44
/// use auth::credentials::Builder;
/// use auth::signer::Signer;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No action needed: can we use google_cloud_auth instead of auth? The customers may not know about our convenience aliases.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I feel like would be nice to bring the Signer examples here from auth, but we can't reference google_cloud_auth as is, since we use an alias in the crate. I tried adding google_cloud_auth again without the alias, but of course cargo doesn't allow duplicate entries. Do you think a comment saying that auth is an alias to google_cloud_auth makes things better ? Not particularly happy about that

/// // auth crate is an alias for google-cloud-auth
/// use auth::credentials::Builder;
/// use auth::signer::Signer;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does this work:

/// # use auth as google_cloud_auth;
/// use google_cloud_auth::credentials::Builder;

??

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sorry, missed this comment. It doesn't work:

error[E0433]: failed to resolve: use of unresolved module or unlinked crate `google_cloud_auth`
 --> src/storage/src/storage/signed_url.rs:44:5
  |
4 | use google_cloud_auth::signer::Signer;
  |     ^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `google_cloud_auth`
  |
  = help: if you wanted to use a crate named `google_cloud_auth`, use `cargo add google_cloud_auth` to add it to your `Cargo.toml`

@alvarowolfx alvarowolfx merged commit 807266b into googleapis:main Jan 8, 2026
30 checks passed
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.

2 participants