Skip to content

chore: librarian onboard pull request: 20260224T120346Z#15607

Merged
parthea merged 1 commit intomainfrom
librarian-20260224T120346Z
Feb 25, 2026
Merged

chore: librarian onboard pull request: 20260224T120346Z#15607
parthea merged 1 commit intomainfrom
librarian-20260224T120346Z

Conversation

@daniel-sanche
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: 869327994
Library-IDs: google-cloud-workloadmanager

END_COMMIT

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

@daniel-sanche daniel-sanche requested review from a team as code owners February 24, 2026 20:04
@snippet-bot
Copy link

snippet-bot bot commented Feb 24, 2026

Here is the summary of changes.

You are about to add 24 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 @daniel-sanche, 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-workloadmanager Python client library. It integrates the new library into the repository's build and documentation systems, providing a fully functional client for the Workload Manager API. The changes are entirely generated, ensuring consistency and adherence to standard library practices.

Highlights

  • New Client Library Onboarding: This pull request introduces the new google-cloud-workloadmanager Python client library, enabling programmatic interaction with the Workload Manager API.
  • Automated Generation: The entire client library, including its structure, API definitions, documentation, and build configurations, has been automatically generated and onboarded by the Librarian CLI.
  • Comprehensive Setup: The changes include all necessary files for a complete Python client library, such as package metadata, build configurations, documentation, and generated service clients for gRPC and REST.
Changelog
  • .librarian/state.yaml
    • Added configuration for the new google-cloud-workloadmanager library, including its version, last generated commit, API paths, source roots, and regex patterns for preserving and removing files.
  • packages/google-cloud-workloadmanager/.coveragerc
    • Added coverage configuration for the new Workload Manager client library, specifying files to omit and lines to exclude from coverage reports.
  • packages/google-cloud-workloadmanager/.flake8
    • Added Flake8 configuration for the new Workload Manager client library, defining ignored error codes and excluded directories for linting.
  • packages/google-cloud-workloadmanager/.repo-metadata.json
    • Added repository metadata for the google-cloud-workloadmanager library, including API description, ID, shortname, documentation links, and release level.
  • packages/google-cloud-workloadmanager/CHANGELOG.md
    • Added an initial CHANGELOG.md file for the google-cloud-workloadmanager library.
  • packages/google-cloud-workloadmanager/LICENSE
    • Added the Apache License 2.0 file for the new Workload Manager client library.
  • packages/google-cloud-workloadmanager/MANIFEST.in
    • Added the MANIFEST.in file, specifying files to include in the source distribution of the google-cloud-workloadmanager package.
  • packages/google-cloud-workloadmanager/README.rst
    • Added the README.rst file, providing an overview, quick start guide, installation instructions, and logging details for the Python Client for Workload Manager API.
  • packages/google-cloud-workloadmanager/docs/CHANGELOG.md
    • Added a changelog file for the documentation of the google-cloud-workloadmanager library.
  • packages/google-cloud-workloadmanager/docs/README.rst
    • Added a README file for the documentation, mirroring the main README but tailored for the docs section.
  • packages/google-cloud-workloadmanager/docs/_static/custom.css
    • Added custom CSS styles for the documentation, including rules for Python 2 EOL notices, parameter/return column widths, and spacing for methods and classes.
  • packages/google-cloud-workloadmanager/docs/_templates/layout.html
    • Added a custom Sphinx layout template, incorporating a Python 2 End-of-Life warning banner.
  • packages/google-cloud-workloadmanager/docs/conf.py
    • Added Sphinx configuration for building the documentation of the google-cloud-workloadmanager library, including extensions, project metadata, and HTML theme options.
  • packages/google-cloud-workloadmanager/docs/index.rst
    • Added the main index file for the documentation, linking to API reference, changelog, and overview sections.
  • packages/google-cloud-workloadmanager/docs/multiprocessing.rst
    • Added a note regarding multiprocessing best practices for the gRPC client library.
  • packages/google-cloud-workloadmanager/docs/summary_overview.md
    • Added a templated overview file for the Workload Manager API documentation, outlining available classes, methods, and properties.
  • packages/google-cloud-workloadmanager/docs/workloadmanager_v1/services_.rst
    • Added an RST file to list services for the Workload Manager v1 API documentation.
  • packages/google-cloud-workloadmanager/docs/workloadmanager_v1/types_.rst
    • Added an RST file to list types for the Workload Manager v1 API documentation.
  • packages/google-cloud-workloadmanager/docs/workloadmanager_v1/workload_manager.rst
    • Added an RST file for the WorkloadManager service, detailing its modules and pagers.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager/init.py
    • Added the main __init__.py for the google.cloud.workloadmanager package, defining its version and importing client and type modules from workloadmanager_v1.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager/gapic_version.py
    • Added gapic_version.py, specifying the package version as '0.0.0'.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager/py.typed
    • Added a marker file indicating that the package uses inline types for PEP 561 compliance.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/init.py
    • Added the __init__.py for the google.cloud.workloadmanager_v1 package, importing async and sync clients and type definitions, and including Python version and dependency checks.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/gapic_metadata.json
    • Added GAPIC metadata, mapping proto services and RPCs to their corresponding Python library clients and methods for the Workload Manager v1 API.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/gapic_version.py
    • Added gapic_version.py for the workloadmanager_v1 package, specifying its version as '0.0.0'.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/py.typed
    • Added a marker file for PEP 561, indicating inline types for the workloadmanager_v1 package.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/services/init.py
    • Added an empty __init__.py file for the services subpackage.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/services/workload_manager/init.py
    • Added the __init__.py for the workload_manager service, importing its async and sync client implementations.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/services/workload_manager/async_client.py
    • Added the asynchronous client implementation for the Workload Manager service, including methods for listing, getting, creating, updating, and deleting evaluations and executions, and listing rules and scanned resources.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/services/workload_manager/pagers.py
    • Added pager classes for asynchronous and synchronous iteration over paginated responses from the Workload Manager API, such as ListEvaluations, ListExecutions, and ListScannedResources.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/services/workload_manager/transports/README.rst
    • Added a README file explaining the transport inheritance structure for the Workload Manager client.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/services/workload_manager/transports/init.py
    • Added the __init__.py for the transports package, registering gRPC and REST transport implementations.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/services/workload_manager/transports/base.py
    • Added the abstract base class for WorkloadManager transports, defining common methods and authentication scopes.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/services/workload_manager/transports/grpc.py
    • Added the gRPC transport implementation for the Workload Manager service, including stub functions for all API methods and an interceptor for logging.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/services/workload_manager/transports/grpc_asyncio.py
    • Added the asynchronous gRPC transport implementation for the Workload Manager service, including async stub functions and an interceptor for logging.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/services/workload_manager/transports/rest_base.py
    • Added the base REST transport class for Workload Manager, defining common HTTP options and request transcoding logic for API methods.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/types/init.py
    • Added the __init__.py for the types package, importing all defined protobuf messages for the Workload Manager v1 API.
  • packages/google-cloud-workloadmanager/google/cloud/workloadmanager_v1/types/service.py
    • Added the service.py file, defining all protobuf messages and enums used by the Workload Manager v1 API, such as Evaluation, Execution, ResourceFilter, and Rule.
  • packages/google-cloud-workloadmanager/mypy.ini
    • Added MyPy configuration for type checking, specifying Python version, namespace packages, and ignoring missing imports for certain dependencies.
  • packages/google-cloud-workloadmanager/noxfile.py
    • Added Nox configuration for automated testing, linting, formatting, and documentation builds across various Python versions and protobuf implementations.
  • packages/google-cloud-workloadmanager/samples/generated_samples/snippet_metadata_google.cloud.workloadmanager.v1.json
    • Added snippet metadata for the generated samples of the google-cloud-workloadmanager client library.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_create_evaluation_async.py
    • Added an asynchronous sample snippet for the create_evaluation method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_create_evaluation_sync.py
    • Added a synchronous sample snippet for the create_evaluation method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_delete_evaluation_async.py
    • Added an asynchronous sample snippet for the delete_evaluation method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_delete_evaluation_sync.py
    • Added a synchronous sample snippet for the delete_evaluation method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_delete_execution_async.py
    • Added an asynchronous sample snippet for the delete_execution method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_delete_execution_sync.py
    • Added a synchronous sample snippet for the delete_execution method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_get_evaluation_async.py
    • Added an asynchronous sample snippet for the get_evaluation method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_get_evaluation_sync.py
    • Added a synchronous sample snippet for the get_evaluation method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_get_execution_async.py
    • Added an asynchronous sample snippet for the get_execution method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_get_execution_sync.py
    • Added a synchronous sample snippet for the get_execution method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_list_evaluations_async.py
    • Added an asynchronous sample snippet for the list_evaluations method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_list_evaluations_sync.py
    • Added a synchronous sample snippet for the list_evaluations method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_list_execution_results_async.py
    • Added an asynchronous sample snippet for the list_execution_results method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_list_execution_results_sync.py
    • Added a synchronous sample snippet for the list_execution_results method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_list_executions_async.py
    • Added an asynchronous sample snippet for the list_executions method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_list_executions_sync.py
    • Added a synchronous sample snippet for the list_executions method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_list_rules_async.py
    • Added an asynchronous sample snippet for the list_rules method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_list_rules_sync.py
    • Added a synchronous sample snippet for the list_rules method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_list_scanned_resources_async.py
    • Added an asynchronous sample snippet for the list_scanned_resources method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_list_scanned_resources_sync.py
    • Added a synchronous sample snippet for the list_scanned_resources method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_run_evaluation_async.py
    • Added an asynchronous sample snippet for the run_evaluation method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_run_evaluation_sync.py
    • Added a synchronous sample snippet for the run_evaluation method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_update_evaluation_async.py
    • Added an asynchronous sample snippet for the update_evaluation method.
  • packages/google-cloud-workloadmanager/samples/generated_samples/workloadmanager_v1_generated_workload_manager_update_evaluation_sync.py
    • Added a synchronous sample snippet for the update_evaluation method.
  • packages/google-cloud-workloadmanager/setup.py
    • Updated the setup script to include the new google-cloud-workloadmanager package, defining its version, description, dependencies, and classifiers.
  • packages/google-cloud-workloadmanager/testing/constraints-3.10.txt
    • Added dependency constraints for Python 3.10 for testing purposes.
  • packages/google-cloud-workloadmanager/testing/constraints-3.11.txt
    • Added dependency constraints for Python 3.11 for testing purposes.
  • packages/google-cloud-workloadmanager/testing/constraints-3.12.txt
    • Added dependency constraints for Python 3.12 for testing purposes.
  • packages/google-cloud-workloadmanager/testing/constraints-3.13.txt
    • Added dependency constraints for Python 3.13 for testing purposes.
  • packages/google-cloud-workloadmanager/testing/constraints-3.14.txt
    • Added dependency constraints for Python 3.14 for testing purposes.
  • packages/google-cloud-workloadmanager/testing/constraints-3.7.txt
    • Added dependency constraints for Python 3.7 for testing purposes.
  • packages/google-cloud-workloadmanager/testing/constraints-3.8.txt
    • Added dependency constraints for Python 3.8 for testing purposes.
  • packages/google-cloud-workloadmanager/testing/constraints-3.9.txt
    • Added dependency constraints for Python 3.9 for testing purposes.
  • packages/google-cloud-workloadmanager/tests/init.py
    • Added an empty __init__.py file for the tests package.
  • packages/google-cloud-workloadmanager/tests/unit/init.py
    • Added an empty __init__.py file for the unit test package.
  • packages/google-cloud-workloadmanager/tests/unit/gapic/init.py
    • Added an empty __init__.py file for the gapic test package.
  • packages/google-cloud-workloadmanager/tests/unit/gapic/workloadmanager_v1/init.py
    • Added an empty __init__.py file for the workloadmanager_v1 test package.
Activity
  • PR created by the Librarian CLI to onboard a new Cloud 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-workloadmanager client library. The changes are extensive and mostly consist of auto-generated boilerplate code, including the client library source, documentation, samples, and configuration files. My review focused on identifying potential issues that might have been missed by the generation process. I found a documentation issue in a docstring regarding cron schedule examples which could be misleading to users. Otherwise, the onboarding seems to be in good shape.

Comment on lines +102 to +103
- ``0 0 */7 * *`` # Weekly
- ``0 0 */14 * *`` # Every 14 days
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 cron expressions for "Weekly" and "Every 14 days" in the comment for the schedule field appear to be incorrect or misleading.

  • The expression 0 0 */7 * * is described as "Weekly", but it will run at 00:00 on every 7th day of the month (e.g., day 1, 8, 15, 22, 29). A standard weekly cron schedule would use the day-of-week field (e.g., 0 0 * * 0 for every Sunday).
  • Similarly, 0 0 */14 * * is described as "Every 14 days", but it will run on the 1st, 15th, and 29th of the month.

This could confuse users trying to set up scheduled evaluations. Please verify if these are the intended schedules and update the comments for clarity.

@parthea parthea merged commit 7161480 into main Feb 25, 2026
27 checks passed
@parthea parthea deleted the librarian-20260224T120346Z branch February 25, 2026 15:02
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