Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(quickstart): Replace deprecated RPC in the sample code #14545

Merged

Conversation

cuiy0006
Copy link
Collaborator

@cuiy0006 cuiy0006 commented Jul 23, 2024

Replace the deprecated RPC ListZones with ListNetworks in the quickstart sample code. The deprecation information is in google/cloud/edgenetwork/v1/service.proto.

We don't have a zone in the our test project's test location, so a NOT_FOUND error is expected in the test.


This change is Reviewable

@cuiy0006 cuiy0006 requested a review from a team as a code owner July 23, 2024 15:45
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Jul 23, 2024
@cuiy0006 cuiy0006 changed the title docs(quickstart) replace deprecated RPC in the sample code docs(quickstart): Replace deprecated RPC in the sample code Jul 23, 2024
Copy link

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@cuiy0006 cuiy0006 linked an issue Jul 23, 2024 that may be closed by this pull request
@cuiy0006 cuiy0006 removed a link to an issue Jul 23, 2024
@cuiy0006 cuiy0006 force-pushed the edgenetwork-quickstart-replace-deprecated branch from 5b0d8f8 to e3a79e3 Compare July 23, 2024 15:53
Comment on lines 25 to 26
if (argc != 4) {
std::cerr << "Usage: " << argv[0] << " project-id location-id\n";
Copy link
Contributor

Choose a reason for hiding this comment

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

There is now a mismatch between the requirement and the error message.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! Fixed.

Comment on lines 21 to 22
if (argc != 4) {
std::cerr << "Usage: " << argv[0] << " project-id location-id\n";
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.59%. Comparing base (af5b756) to head (f98a30a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14545   +/-   ##
=======================================
  Coverage   93.59%   93.59%           
=======================================
  Files        2316     2316           
  Lines      206915   206915           
=======================================
+ Hits       193660   193661    +1     
+ Misses      13255    13254    -1     

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

@cuiy0006 cuiy0006 enabled auto-merge (squash) July 23, 2024 16:49
@scotthart scotthart force-pushed the edgenetwork-quickstart-replace-deprecated branch from cd86258 to c9c2bb1 Compare July 23, 2024 17:02
@scotthart scotthart force-pushed the edgenetwork-quickstart-replace-deprecated branch from c9c2bb1 to f98a30a Compare July 23, 2024 18:20
@cuiy0006 cuiy0006 merged commit 8c496df into googleapis:main Jul 23, 2024
65 checks passed
@cuiy0006 cuiy0006 deleted the edgenetwork-quickstart-replace-deprecated branch July 23, 2024 18:48
cuiy0006 added a commit to cuiy0006/google-cloud-cpp that referenced this pull request Jul 23, 2024
…is#14545)

* docs(quickstart): Replace deprecated RPC in the sample code

* fix format

* change error message
@cuiy0006 cuiy0006 linked an issue Jul 24, 2024 that may be closed by this pull request
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.

Clean up deprecated RPCs
4 participants