Skip to content

docs: Format resource names in RPC samples#5504

Merged
amanda-tarafa merged 1 commit intogoogleapis:mainfrom
amanda-tarafa:samples-resource-name
May 1, 2026
Merged

docs: Format resource names in RPC samples#5504
amanda-tarafa merged 1 commit intogoogleapis:mainfrom
amanda-tarafa:samples-resource-name

Conversation

@amanda-tarafa
Copy link
Copy Markdown
Contributor

No description provided.

@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label Apr 22, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.79%. Comparing base (3ee06e4) to head (f0c1a23).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5504      +/-   ##
==========================================
- Coverage   97.79%   97.79%   -0.01%     
==========================================
  Files         219      219              
  Lines       50217    50217              
==========================================
- Hits        49109    49108       -1     
- Misses       1108     1109       +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.

@amanda-tarafa amanda-tarafa force-pushed the samples-resource-name branch 2 times, most recently from 92ba4e8 to 37c9dc8 Compare April 28, 2026 18:11
@amanda-tarafa amanda-tarafa changed the title draft: Resource name formatting for RPC samples docs: Format resource names in RPC samples Apr 28, 2026
@amanda-tarafa
Copy link
Copy Markdown
Contributor Author

Generated with googleapis/librarian#5530 minus some metadata.json files that seem to have been generated by some pending changes in the generator.

@amanda-tarafa amanda-tarafa force-pushed the samples-resource-name branch from 37c9dc8 to a91b3a1 Compare April 28, 2026 19:27
Copy link
Copy Markdown
Contributor

@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.

I won't be able to review the code in sidekick, just a small observation on the output.

@amanda-tarafa
Copy link
Copy Markdown
Contributor Author

I won't be able to review the code in sidekick, just a small observation on the output.

@coryan Did you meant to leave a comment here about the output, or is this referring to the comments you left on the librarian PR (those are already addressed). I don't see any other comment here though. Thanks.

Comment thread src/generated/api/apikeys/v2/src/client.rs
@coryan
Copy link
Copy Markdown
Contributor

coryan commented Apr 29, 2026

I won't be able to review the code in sidekick, just a small observation on the output.

@coryan Did you meant to leave a comment here about the output, or is this referring to the comments you left on the librarian PR (those are already addressed). I don't see any other comment here though. Thanks.

Yes, but apparently I forgot how to use computers. Fixed.

@amanda-tarafa amanda-tarafa force-pushed the samples-resource-name branch 3 times, most recently from 0fef392 to a98fec7 Compare May 1, 2026 16:10
@amanda-tarafa amanda-tarafa force-pushed the samples-resource-name branch from a98fec7 to f0c1a23 Compare May 1, 2026 18:12
Copy link
Copy Markdown
Contributor

@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.

For a future PR: the PredictionService in aiplatform is pretty important but also is super ad-hoc, so the examples are not as awesome as the other examples. Some List*() things are missing the parent format too.

Comment on lines +744 to +746
/// async fn sample(
/// parent: &str,
/// ) -> anyhow::Result<()> {
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.

For a future PR, I wonder why this parent (which I am sure is a project) is not captured.

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.

Because it's a reference to a resource outside of this package, so we don't have the resource definition so we don't know the patterns. See here.

Not sure if there's much we can do about it, except finding and loading this external resources. I think that's being done for mixins etc. already, but I'm not sure.

@amanda-tarafa amanda-tarafa marked this pull request as ready for review May 1, 2026 18:45
@amanda-tarafa amanda-tarafa requested review from a team as code owners May 1, 2026 18:45
@amanda-tarafa amanda-tarafa merged commit 8d169b1 into googleapis:main May 1, 2026
35 checks passed
@amanda-tarafa amanda-tarafa deleted the samples-resource-name branch May 1, 2026 18:45
@noahdietz noahdietz mentioned this pull request May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants