Skip to content

chore: librarian onboard pull request: 20260204T073039Z (google-cloud-apiregistry)#15522

Merged
chalmerlowe merged 2 commits intomainfrom
librarian-20260204T073039Z
Feb 4, 2026
Merged

chore: librarian onboard pull request: 20260204T073039Z (google-cloud-apiregistry)#15522
chalmerlowe merged 2 commits intomainfrom
librarian-20260204T073039Z

Conversation

@chalmerlowe
Copy link
Contributor

PR created by the Librarian CLI to onboard a new Cloud Client Library.

BEGIN_COMMIT

feat: onboard a new library

PiperOrigin-RevId: 848064295
Library-IDs: google-cloud-apiregistry

END_COMMIT

Librarian Version: v0.8.0
Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:d3ae275c61acca91e1398581edfb9119c521b4e93f9ebb00ecbd4e87b71648f5

@chalmerlowe chalmerlowe requested review from a team as code owners February 4, 2026 12:31
@snippet-bot
Copy link

snippet-bot bot commented Feb 4, 2026

Here is the summary of changes.

You are about to add 8 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @chalmerlowe, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request automates the onboarding of the google-cloud-apiregistry client library. It establishes the foundational code, configuration, and documentation necessary for the library to function within the Google Cloud Python ecosystem, enabling developers to interact with the Cloud API Registry service.

Highlights

  • New Client Library Onboarding: This pull request introduces the initial scaffolding and configuration for a new Google Cloud Client Library for the Cloud API Registry API.
  • Configuration Updates: The .librarian/state.yaml file has been updated to include the google-cloud-apiregistry library, specifying its version, API paths, source roots, and regex patterns for file management.
  • Core Library Files: Numerous new files have been added under packages/google-cloud-apiregistry/ to establish the Python package structure, including __init__.py, gapic_version.py, and py.typed markers.
  • Client and Transport Implementations: Synchronous and asynchronous client implementations (client.py, async_client.py), pagers (pagers.py), and various transport layers (gRPC, gRPC AsyncIO, REST) have been generated for the v1beta version of the Cloud API Registry service.
  • Documentation and Build System: Comprehensive documentation files (READMEs, changelogs, Sphinx configurations, custom CSS/templates) and build/test configurations (mypy.ini, noxfile.py, setup.py, testing/constraints-*.txt) are included to support the new library.
Changelog
  • .librarian/state.yaml
    • Added configuration for the google-cloud-apiregistry library, including its ID, version, last generated commit, API paths, source roots, and file preservation/removal rules.
  • packages/google-cloud-apiregistry/.coveragerc
    • Added coverage configuration for the new library, specifying files to omit and lines to exclude from coverage reports.
  • packages/google-cloud-apiregistry/.flake8
    • Added flake8 linting configuration, including ignored error codes and excluded directories for generated code.
  • packages/google-cloud-apiregistry/.repo-metadata.json
    • Added repository metadata for the google-cloud-apiregistry library, detailing its name, product documentation, client documentation, issue tracker, release level, language, and API information.
  • packages/google-cloud-apiregistry/CHANGELOG.md
    • Added an initial CHANGELOG.md file with a link to PyPI history.
  • packages/google-cloud-apiregistry/LICENSE
    • Added the Apache License, Version 2.0.
  • packages/google-cloud-apiregistry/MANIFEST.in
    • Added a manifest file to specify files to include and exclude in the source distribution.
  • packages/google-cloud-apiregistry/README.rst
    • Added a comprehensive README.rst file for the Python Client for Cloud API Registry API, including quick start instructions, installation guide, supported Python versions, and logging information.
  • packages/google-cloud-apiregistry/docs/CHANGELOG.md
    • Added a documentation-specific changelog file.
  • packages/google-cloud-apiregistry/docs/README.rst
    • Added a documentation-specific README file, mirroring the main README content.
  • packages/google-cloud-apiregistry/docs/_static/custom.css
    • Added custom CSS rules for documentation styling, including Python 2 EOL warning, parameter/return column width, and spacing for methods/classes.
  • packages/google-cloud-apiregistry/docs/_templates/layout.html
    • Added a custom Jinja2 template for documentation layout, incorporating a Python 2 End-of-Life warning.
  • packages/google-cloud-apiregistry/docs/apiregistry_v1beta/cloud_api_registry.rst
    • Added Sphinx documentation for the CloudApiRegistry service and its pagers.
  • packages/google-cloud-apiregistry/docs/apiregistry_v1beta/services_.rst
    • Added Sphinx documentation for services within the v1beta API.
  • packages/google-cloud-apiregistry/docs/apiregistry_v1beta/types_.rst
    • Added Sphinx documentation for types within the v1beta API.
  • packages/google-cloud-apiregistry/docs/conf.py
    • Added Sphinx configuration file for building the library's documentation, including extensions, project metadata, and intersphinx mappings.
  • packages/google-cloud-apiregistry/docs/index.rst
    • Added the main index file for the documentation, linking to README, multiprocessing notes, API reference, and changelog.
  • packages/google-cloud-apiregistry/docs/multiprocessing.rst
    • Added a note regarding multiprocessing best practices for gRPC clients.
  • packages/google-cloud-apiregistry/docs/summary_overview.md
    • Added a templated summary overview for the Cloud API Registry API documentation.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry/init.py
    • Added the main __init__.py for the google.cloud.apiregistry package, importing clients and types from v1beta.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry/gapic_version.py
    • Added the GAPIC version file, setting the initial version to '0.0.0'.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry/py.typed
    • Added a marker file for PEP 561, indicating the package uses inline types.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/init.py
    • Added the __init__.py for the v1beta package, including client and type imports, and Python version/dependency checks.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/gapic_metadata.json
    • Added GAPIC metadata JSON file, mapping proto services/RPCs to library clients/methods for CloudApiRegistry.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/gapic_version.py
    • Added the v1beta GAPIC version file, setting the initial version to '0.0.0'.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/py.typed
    • Added a marker file for PEP 561 for the v1beta package.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/services/init.py
    • Added __init__.py for the services subpackage.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/services/cloud_api_registry/init.py
    • Added __init__.py for the cloud_api_registry service, importing async and sync clients.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/services/cloud_api_registry/async_client.py
    • Added the asynchronous client implementation for CloudApiRegistry, including methods like get_mcp_server, list_mcp_servers, get_mcp_tool, and list_mcp_tools.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/services/cloud_api_registry/client.py
    • Added the synchronous client implementation for CloudApiRegistry, including methods like get_mcp_server, list_mcp_servers, get_mcp_tool, and list_mcp_tools.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/services/cloud_api_registry/pagers.py
    • Added pager classes (ListMcpServersPager, ListMcpToolsPager) for iterating through paginated API responses.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/services/cloud_api_registry/transports/README.rst
    • Added a README describing the transport inheritance structure.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/services/cloud_api_registry/transports/init.py
    • Added __init__.py for the transports subpackage, registering gRPC, gRPC AsyncIO, and REST transports.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/services/cloud_api_registry/transports/base.py
    • Added the abstract base transport class CloudApiRegistryTransport, defining common methods and properties.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/services/cloud_api_registry/transports/grpc.py
    • Added the gRPC transport implementation for CloudApiRegistry, including a logging interceptor.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/services/cloud_api_registry/transports/grpc_asyncio.py
    • Added the gRPC AsyncIO transport implementation for CloudApiRegistry, including an asynchronous logging interceptor.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/services/cloud_api_registry/transports/rest.py
    • Added the REST transport implementation for CloudApiRegistry, including an interceptor class for request/response manipulation.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/services/cloud_api_registry/transports/rest_base.py
    • Added the base REST transport class, defining common HTTP options and request transcoding logic.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/types/init.py
    • Added __init__.py for the types subpackage, importing common types, resources, and service messages.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/types/common.py
    • Added common type definitions, including the State enum for McpServer resources.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/types/resources.py
    • Added resource definitions for McpServer and McpTool, specifying their fields and structure.
  • packages/google-cloud-apiregistry/google/cloud/apiregistry_v1beta/types/service.py
    • Added service request and response messages for GetMcpServer, ListMcpServers, GetMcpTool, and ListMcpTools.
  • packages/google-cloud-apiregistry/mypy.ini
    • Added MyPy configuration for type checking, specifying Python version and namespace packages.
  • packages/google-cloud-apiregistry/noxfile.py
    • Added Nox configuration for managing development environments and automating tasks like linting, testing (unit, system, prerelease, core-deps-from-source), coverage, and documentation builds.
  • packages/google-cloud-apiregistry/samples/generated_samples/cloudapiregistry_v1beta_generated_cloud_api_registry_get_mcp_server_async.py
    • Added an asynchronous sample snippet for the GetMcpServer method.
  • packages/google-cloud-apiregistry/samples/generated_samples/cloudapiregistry_v1beta_generated_cloud_api_registry_get_mcp_server_sync.py
    • Added a synchronous sample snippet for the GetMcpServer method.
  • packages/google-cloud-apiregistry/samples/generated_samples/cloudapiregistry_v1beta_generated_cloud_api_registry_get_mcp_tool_async.py
    • Added an asynchronous sample snippet for the GetMcpTool method.
  • packages/google-cloud-apiregistry/samples/generated_samples/cloudapiregistry_v1beta_generated_cloud_api_registry_get_mcp_tool_sync.py
    • Added a synchronous sample snippet for the GetMcpTool method.
  • packages/google-cloud-apiregistry/samples/generated_samples/cloudapiregistry_v1beta_generated_cloud_api_registry_list_mcp_servers_async.py
    • Added an asynchronous sample snippet for the ListMcpServers method.
  • packages/google-cloud-apiregistry/samples/generated_samples/cloudapiregistry_v1beta_generated_cloud_api_registry_list_mcp_servers_sync.py
    • Added a synchronous sample snippet for the ListMcpServers method.
  • packages/google-cloud-apiregistry/samples/generated_samples/cloudapiregistry_v1beta_generated_cloud_api_registry_list_mcp_tools_async.py
    • Added an asynchronous sample snippet for the ListMcpTools method.
  • packages/google-cloud-apiregistry/samples/generated_samples/cloudapiregistry_v1beta_generated_cloud_api_registry_list_mcp_tools_sync.py
    • Added a synchronous sample snippet for the ListMcpTools method.
  • packages/google-cloud-apiregistry/samples/generated_samples/snippet_metadata_google.cloud.apiregistry.v1beta.json
    • Added snippet metadata in JSON format for the v1beta API.
  • packages/google-cloud-apiregistry/setup.py
    • Updated the setup.py file to include metadata, classifiers, and dependencies for the new google-cloud-apiregistry package.
  • packages/google-cloud-apiregistry/testing/constraints-3.10.txt
    • Added Python 3.10 specific dependency constraints for testing.
  • packages/google-cloud-apiregistry/testing/constraints-3.11.txt
    • Added Python 3.11 specific dependency constraints for testing.
  • packages/google-cloud-apiregistry/testing/constraints-3.12.txt
    • Added Python 3.12 specific dependency constraints for testing.
  • packages/google-cloud-apiregistry/testing/constraints-3.13.txt
    • Added Python 3.13 specific dependency constraints for testing.
  • packages/google-cloud-apiregistry/testing/constraints-3.14.txt
    • Added Python 3.14 specific dependency constraints for testing.
  • packages/google-cloud-apiregistry/testing/constraints-3.7.txt
    • Added Python 3.7 specific dependency constraints for testing, focusing on lower bounds.
  • packages/google-cloud-apiregistry/testing/constraints-3.8.txt
    • Added Python 3.8 specific dependency constraints for testing.
  • packages/google-cloud-apiregistry/testing/constraints-3.9.txt
    • Added Python 3.9 specific dependency constraints for testing.
  • packages/google-cloud-apiregistry/tests/init.py
    • Added __init__.py for the top-level tests directory.
  • packages/google-cloud-apiregistry/tests/unit/init.py
    • Added __init__.py for the unit tests directory.
  • packages/google-cloud-apiregistry/tests/unit/gapic/init.py
    • Added __init__.py for the GAPIC unit tests directory.
  • packages/google-cloud-apiregistry/tests/unit/gapic/apiregistry_v1beta/init.py
    • Added __init__.py for the v1beta GAPIC unit tests directory.
Activity
  • The pull request was automatically generated by the Librarian CLI (version v0.8.0) using the python-librarian-generator image.
  • The primary purpose of this PR is to onboard the google-cloud-apiregistry client library.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

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

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 onboards the new google-cloud-apiregistry client library. The changes are mostly boilerplate generated by the Librarian CLI. I've found a few areas for improvement: the API description in .repo-metadata.json is empty, and the logging examples in the README files use placeholders. I've provided suggestions to address these points.


.. code-block:: console

export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google.cloud.library_v1
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The logging example uses a placeholder library_v1. This should be updated to apiregistry_v1beta to be specific to this library.

Suggested change
export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google.cloud.library_v1
export GOOGLE_SDK_PYTHON_LOGGING_SCOPE=google.cloud.apiregistry_v1beta

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gemini-code-assist

Thanks for flagging the potentially missed library name replacement.
Having said that, the current text is as it should be. Because this is generic text used for several hundred libraries, the template uses the term library_v1 to avoid the additional complexity of updating all the names for each module.

Please remember this.

I am resolving all comments in this PR related to library_v1.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for clarifying that the use of library_v1 is intentional due to the generic nature of the template across multiple libraries. I understand the design choice and will take this into account for future reviews.

Updates api_description
@chalmerlowe
Copy link
Contributor Author

chalmerlowe commented Feb 4, 2026

The docs / Docs warnings CI/CD failure is due to a sphinx warning. That will be resolved via another PR and is out of scope for this task.

@chalmerlowe chalmerlowe changed the title chore: librarian onboard pull request: 20260204T073039Z chore: librarian onboard pull request: 20260204T073039Z (google-cloud-apiregistry) Feb 4, 2026
@chalmerlowe chalmerlowe merged commit 6837229 into main Feb 4, 2026
26 of 27 checks passed
@chalmerlowe chalmerlowe deleted the librarian-20260204T073039Z branch February 4, 2026 19:38
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