chore: migrate google-cloud-apiregistry to librarian#8556
Merged
jskeet merged 1 commit intoJun 11, 2026
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request enables code generation for the Cloud API Registry API by removing the skip_generate flag, updating the repository metadata, and switching the default client version to v1beta in index.ts. However, manual edits to the generated TypeScript client files and .repo-metadata.json should be avoided, as these changes must be made upstream in the generator.
Comment on lines
+22
to
+23
| const CloudApiRegistryClient = v1beta.CloudApiRegistryClient; | ||
| type CloudApiRegistryClient = v1beta.CloudApiRegistryClient; |
Contributor
There was a problem hiding this comment.
| "api_id": "cloudapiregistry.googleapis.com", | ||
| "api_shortname": "cloudapiregistry", | ||
| "client_documentation": "https://cloud.google.com/nodejs/docs/reference/apiregistry/latest", | ||
| "default_version": "v1beta", |
Contributor
There was a problem hiding this comment.
jskeet
marked this pull request as draft
June 11, 2026 10:25
jskeet
pushed a commit
to jskeet/google-cloud-node
that referenced
this pull request
Jun 11, 2026
This addresses situations where .repo-metadata.json and index.ts effectively disagree on the default API version for a package. The fix favors the version in index.ts, for the sake of compatibility. Once this is merged, googleapis#8556, googleapis#8571 and googleapis#8480 should be regenerated. Fixes googleapis/librarian#6382
jskeet
pushed a commit
that referenced
this pull request
Jun 11, 2026
This addresses situations where .repo-metadata.json and index.ts effectively disagree on the default API version for a package. The fix favors the version in index.ts, for the sake of compatibility. Once this is merged, #8556, #8571 and #8480 should be regenerated. Fixes googleapis/librarian#6382
jskeet
force-pushed
the
scripted-migrate-google-cloud-apiregistry
branch
from
June 11, 2026 12:59
c877f17 to
c95e983
Compare
jskeet
commented
Jun 11, 2026
| "api_id": "cloudapiregistry.googleapis.com", | ||
| "api_shortname": "cloudapiregistry", | ||
| "client_documentation": "https://cloud.google.com/nodejs/docs/reference/apiregistry/latest", | ||
| "default_version": "v1", |
Contributor
Author
There was a problem hiding this comment.
Note that this is different to before, to match index.ts - basically this file was stale.
jskeet
marked this pull request as ready for review
June 11, 2026 13:03
JoeWang1127
approved these changes
Jun 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.