Skip to content

feat: generate libraries#15502

Merged
gkevinzheng merged 1 commit intomainfrom
librarian-20260202T222246Z
Feb 4, 2026
Merged

feat: generate libraries#15502
gkevinzheng merged 1 commit intomainfrom
librarian-20260202T222246Z

Conversation

@gkevinzheng
Copy link
Contributor

Generating google.cloud.auditmanager.v1 for bug b/479201875

PiperOrigin-RevId: 861758611

@gkevinzheng gkevinzheng requested review from a team as code owners February 2, 2026 22:25
@snippet-bot
Copy link

snippet-bot bot commented Feb 2, 2026

Here is the summary of changes.

You are about to add 16 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 @gkevinzheng, 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 introduces the foundational elements for the new google.cloud.auditmanager.v1 Python client library. The primary purpose is to enable interaction with the Audit Manager API, addressing a specific bug (b/479201875) by providing a fully generated and configured client. This significantly expands the capabilities of the Google Cloud Python client ecosystem by adding support for a new service.

Highlights

  • New Client Library Generation: A new client library for google.cloud.auditmanager.v1 has been generated and added to the repository. This includes all necessary Python files for the API client, types, services, and transports.
  • Configuration Updates: The .librarian/state.yaml file has been updated to include the configuration for the new google-cloud-auditmanager library, defining its version, API paths, source roots, and regex patterns for preservation and removal.
  • Development and Documentation Infrastructure: Standard development and documentation files such as .coveragerc, .flake8, .repo-metadata.json, CHANGELOG.md, LICENSE, MANIFEST.in, README.rst, Sphinx documentation files, mypy.ini, noxfile.py, and testing constraint files have been added or updated for the new library.
  • Sample Code and Snippet Metadata: Generated sample code snippets and their corresponding metadata JSON file have been included, demonstrating the usage of the new Audit Manager API client.
Changelog
  • .librarian/state.yaml
    • Added a new entry for google-cloud-auditmanager with version 0.0.0.
    • Configured last_generated_commit, API paths (google/cloud/auditmanager/v1), source roots (packages/google-cloud-auditmanager), and various preserve_regex and remove_regex patterns for the new library.
  • packages/google-cloud-auditmanager/.coveragerc
    • Added coverage configuration file for the new google-cloud-auditmanager package, omitting __init__.py and gapic_version.py.
  • packages/google-cloud-auditmanager/.flake8
    • Added flake8 configuration for the new package, ignoring specific linting issues (E203, E231, E266, E501, W503) and excluding generated code paths.
  • packages/google-cloud-auditmanager/.repo-metadata.json
    • Added repository metadata for google-cloud-auditmanager, including pretty name, API description, documentation links, issue tracker, release level (preview), language (python), library type (GAPIC_AUTO), repository, distribution name, API ID, default version, and API shortname.
  • packages/google-cloud-auditmanager/CHANGELOG.md
    • Added initial CHANGELOG.md file for the google-cloud-auditmanager package, linking to PyPI history.
  • packages/google-cloud-auditmanager/LICENSE
    • Added the Apache License, Version 2.0, to the new package.
  • packages/google-cloud-auditmanager/MANIFEST.in
    • Added MANIFEST.in file to include necessary files (README.rst, LICENSE, Python source, type hints, JSON, proto files, tests) in the package distribution.
  • packages/google-cloud-auditmanager/README.rst
    • Added the README.rst file for the google-cloud-auditmanager client library, providing an overview, quick start guide, installation instructions, supported Python versions, and logging information.
  • packages/google-cloud-auditmanager/docs/CHANGELOG.md
    • Added initial CHANGELOG.md for the documentation, linking to PyPI history.
  • packages/google-cloud-auditmanager/docs/README.rst
    • Added README.rst for the documentation, mirroring the main package README.
  • packages/google-cloud-auditmanager/docs/_static/custom.css
    • Added custom CSS rules for documentation styling, including Python 2 EOL notice, parameter/return column width, and spacing for methods/classes.
  • packages/google-cloud-auditmanager/docs/_templates/layout.html
    • Added a custom Jinja2 template for Sphinx documentation layout, including a Python 2 EOL admonition.
  • packages/google-cloud-auditmanager/docs/auditmanager_v1/audit_manager.rst
    • Added Sphinx documentation for the AuditManager service, including automodule directives for the client and pagers.
  • packages/google-cloud-auditmanager/docs/auditmanager_v1/services_.rst
    • Added Sphinx documentation for Auditmanager v1 API services, including a toctree for audit_manager.
  • packages/google-cloud-auditmanager/docs/auditmanager_v1/types_.rst
    • Added Sphinx documentation for Auditmanager v1 API types, including an automodule directive for google.cloud.auditmanager_v1.types.
  • packages/google-cloud-auditmanager/docs/conf.py
    • Added Sphinx configuration file for the google-cloud-auditmanager documentation, setting up extensions, project metadata, HTML theme options, and intersphinx mappings.
  • packages/google-cloud-auditmanager/docs/index.rst
    • Added the main Sphinx index file, including README.rst, multiprocessing.rst, API reference toctrees, and a changelog link.
  • packages/google-cloud-auditmanager/docs/multiprocessing.rst
    • Added documentation regarding multiprocessing safety for the gRPC client.
  • packages/google-cloud-auditmanager/docs/summary_overview.md
    • Added a templated summary overview for the Audit Manager API documentation, outlining available classes, methods, and properties.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager/init.py
    • Added the __init__.py file for the google.cloud.auditmanager package, defining __version__ and importing key classes and types from auditmanager_v1.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager/gapic_version.py
    • Added gapic_version.py defining the package version as 0.0.0.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager/py.typed
    • Added a marker file indicating that the package uses inline types (PEP 561).
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/init.py
    • Added the __init__.py for the google.cloud.auditmanager_v1 package, including versioning, dependency checks, and imports for client services and types.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/gapic_metadata.json
    • Added GAPIC metadata JSON file, mapping proto services/RPCs to Python library clients and methods for both gRPC and REST transports.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/gapic_version.py
    • Added gapic_version.py for the auditmanager_v1 package, defining the version as 0.0.0.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/py.typed
    • Added a marker file for PEP 561, indicating inline types.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/services/init.py
    • Added __init__.py for the services subpackage.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/services/audit_manager/init.py
    • Added __init__.py for the audit_manager service, importing async and sync clients.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/services/audit_manager/async_client.py
    • Added the asynchronous client implementation for the Audit Manager service, including methods like enroll_resource, generate_audit_scope_report, generate_audit_report, list_audit_reports, get_audit_report, get_resource_enrollment_status, and list_resource_enrollment_statuses.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/services/audit_manager/client.py
    • Added the synchronous client implementation for the Audit Manager service, with methods corresponding to the async client.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/services/audit_manager/pagers.py
    • Added pager classes (ListAuditReportsPager, ListResourceEnrollmentStatusesPager, ListControlsPager) for iterating through paginated API responses, along with their asynchronous counterparts.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/services/audit_manager/transports/README.rst
    • Added a README describing the transport inheritance structure for the Audit Manager client.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/services/audit_manager/transports/init.py
    • Added __init__.py for transports, registering gRPC, gRPC asyncio, and REST transports.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/services/audit_manager/transports/base.py
    • Added the abstract base class AuditManagerTransport, defining common attributes and abstract methods for different transport implementations.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/services/audit_manager/transports/grpc.py
    • Added the gRPC transport implementation for the Audit Manager service, including client interceptors for logging.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/services/audit_manager/transports/grpc_asyncio.py
    • Added the gRPC AsyncIO transport implementation for the Audit Manager service, including async client interceptors for logging.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/services/audit_manager/transports/rest_base.py
    • Added the base REST transport implementation, defining common HTTP options and request transcoding logic for REST methods.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/types/init.py
    • Added __init__.py for the types subpackage, importing all defined types from auditmanager.py.
  • packages/google-cloud-auditmanager/google/cloud/auditmanager_v1/types/auditmanager.py
    • Added Protocol Buffer message definitions for the Audit Manager API, including OperationState, ComplianceState, EnrollResourceRequest, GenerateAuditScopeReportRequest, GenerateAuditReportRequest, GetResourceEnrollmentStatusRequest, ListResourceEnrollmentStatusesRequest, ListResourceEnrollmentStatusesResponse, ListAuditReportsRequest, ListAuditReportsResponse, GetAuditReportRequest, ListControlsRequest, ListControlsResponse, ReportGenerationProgress, Enrollment, AuditScopeReport, OperationMetadata, ResourceEnrollmentStatus, AuditReport, ControlFamily, Control, DestinationDetails, ReportSummary, and ControlDetails.
  • packages/google-cloud-auditmanager/mypy.ini
    • Added mypy.ini configuration for type checking, specifying Python version 3.14 and namespace packages.
  • packages/google-cloud-auditmanager/noxfile.py
    • Added noxfile.py for automated testing and development tasks, including sessions for mypy, update_lower_bounds, check_lower_bounds, lint, blacken, format, lint_setup_py, unit, system, cover, docs, docfx, prerelease_deps, and core_deps_from_source.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_enroll_resource_async.py
    • Added generated asynchronous sample code for EnrollResource.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_enroll_resource_sync.py
    • Added generated synchronous sample code for EnrollResource.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_generate_audit_report_async.py
    • Added generated asynchronous sample code for GenerateAuditReport.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_generate_audit_report_sync.py
    • Added generated synchronous sample code for GenerateAuditReport.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_generate_audit_scope_report_async.py
    • Added generated asynchronous sample code for GenerateAuditScopeReport.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_generate_audit_scope_report_sync.py
    • Added generated synchronous sample code for GenerateAuditScopeReport.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_get_audit_report_async.py
    • Added generated asynchronous sample code for GetAuditReport.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_get_audit_report_sync.py
    • Added generated synchronous sample code for GetAuditReport.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_get_resource_enrollment_status_async.py
    • Added generated asynchronous sample code for GetResourceEnrollmentStatus.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_get_resource_enrollment_status_sync.py
    • Added generated synchronous sample code for GetResourceEnrollmentStatus.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_list_audit_reports_async.py
    • Added generated asynchronous sample code for ListAuditReports.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_list_audit_reports_sync.py
    • Added generated synchronous sample code for ListAuditReports.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_list_controls_async.py
    • Added generated asynchronous sample code for ListControls.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_list_controls_sync.py
    • Added generated synchronous sample code for ListControls.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_list_resource_enrollment_statuses_async.py
    • Added generated asynchronous sample code for ListResourceEnrollmentStatuses.
  • packages/google-cloud-auditmanager/samples/generated_samples/auditmanager_v1_generated_audit_manager_list_resource_enrollment_statuses_sync.py
    • Added generated synchronous sample code for ListResourceEnrollmentStatuses.
  • packages/google-cloud-auditmanager/samples/generated_samples/snippet_metadata_google.cloud.auditmanager.v1.json
    • Added snippet metadata JSON file, detailing client methods, parameters, result types, and file locations for all generated samples.
  • packages/google-cloud-auditmanager/setup.py
    • Updated setup.py to include the new google-cloud-auditmanager package, defining its description, version, release status, dependencies, and classifiers.
  • packages/google-cloud-auditmanager/testing/constraints-3.10.txt
    • Added testing constraints for Python 3.10, listing core dependencies.
  • packages/google-cloud-auditmanager/testing/constraints-3.11.txt
    • Added testing constraints for Python 3.11, listing core dependencies.
  • packages/google-cloud-auditmanager/testing/constraints-3.12.txt
    • Added testing constraints for Python 3.12, listing core dependencies.
  • packages/google-cloud-auditmanager/testing/constraints-3.13.txt
    • Added testing constraints for Python 3.13, listing core dependencies with latest major versions.
  • packages/google-cloud-auditmanager/testing/constraints-3.14.txt
    • Added testing constraints for Python 3.14, listing core dependencies with latest major versions.
  • packages/google-cloud-auditmanager/testing/constraints-3.7.txt
    • Added testing constraints for Python 3.7, pinning dependencies to their lower bounds.
  • packages/google-cloud-auditmanager/testing/constraints-3.8.txt
    • Added testing constraints for Python 3.8, listing core dependencies.
  • packages/google-cloud-auditmanager/testing/constraints-3.9.txt
    • Added testing constraints for Python 3.9, listing core dependencies.
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 generates the new client library for google.cloud.auditmanager.v1. The changes are mostly auto-generated boilerplate for the new library. I've reviewed the configuration and generated files and found one minor issue in the repository metadata where the API description is missing. Adding this will improve discoverability. Otherwise, the generated library looks good.

{
"name": "google-cloud-auditmanager",
"name_pretty": "Audit Manager API",
"api_description": "",
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 api_description field is empty. Please add a concise description of the Audit Manager API. This description is used in various places, including documentation and tooling, to help users understand the purpose of the API.

Suggested change
"api_description": "",
"api_description": "Audit Manager API lets you create and manage audit reports for your Google Cloud resources.",

@gkevinzheng gkevinzheng merged commit 4997475 into main Feb 4, 2026
30 of 47 checks passed
@gkevinzheng gkevinzheng deleted the librarian-20260202T222246Z branch February 4, 2026 15:17
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