Skip to content

chore: migrate google-cloud-apiregistry to librarian#8556

Merged
jskeet merged 1 commit into
googleapis:mainfrom
jskeet:scripted-migrate-google-cloud-apiregistry
Jun 11, 2026
Merged

chore: migrate google-cloud-apiregistry to librarian#8556
jskeet merged 1 commit into
googleapis:mainfrom
jskeet:scripted-migrate-google-cloud-apiregistry

Conversation

@jskeet

@jskeet jskeet commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@jskeet
jskeet requested a review from a team as a code owner June 11, 2026 09:58

@gemini-code-assist gemini-code-assist Bot left a comment

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.

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;

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.

high

Do not manually edit generated TypeScript client files. Any changes or updates, such as reverting the default client version, must be made upstream in the generator.

References
  1. Do not manually edit generated TypeScript client files. Any changes or updates must be made upstream in the generator.

"api_id": "cloudapiregistry.googleapis.com",
"api_shortname": "cloudapiregistry",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/apiregistry/latest",
"default_version": "v1beta",

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.

high

Do not manually edit generated client configuration JSON files. Any changes or updates to .repo-metadata.json must be made upstream in the generator.

References
  1. Do not manually edit generated client configuration JSON files. Any changes or updates must be made upstream in the generator.

@jskeet
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
jskeet force-pushed the scripted-migrate-google-cloud-apiregistry branch from c877f17 to c95e983 Compare June 11, 2026 12:59
"api_id": "cloudapiregistry.googleapis.com",
"api_shortname": "cloudapiregistry",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/apiregistry/latest",
"default_version": "v1",

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.

Note that this is different to before, to match index.ts - basically this file was stale.

@jskeet
jskeet marked this pull request as ready for review June 11, 2026 13:03
@jskeet
jskeet merged commit ec8b1f5 into googleapis:main Jun 11, 2026
32 checks passed
@jskeet
jskeet deleted the scripted-migrate-google-cloud-apiregistry branch June 11, 2026 13:16
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.

2 participants