Skip to content

feat(auditmanager): generate library#15937

Merged
scotthart merged 5 commits intogoogleapis:mainfrom
scotthart:feat-auditmanager-generate-library
Feb 5, 2026
Merged

feat(auditmanager): generate library#15937
scotthart merged 5 commits intogoogleapis:mainfrom
scotthart:feat-auditmanager-generate-library

Conversation

@scotthart
Copy link
Member

@scotthart scotthart commented Feb 5, 2026

This change is Reviewable

@scotthart scotthart requested a review from a team as a code owner February 5, 2026 19:05
@product-auto-label product-auto-label bot added the api: auditmanager Issues related to the Audit Manager API. label Feb 5, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello @scotthart, 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 delivers the complete C++ client library for the Google Cloud Audit Manager API. It encompasses all generated client code, build system configurations, comprehensive documentation, and practical quickstart examples, enabling developers to seamlessly integrate and utilize the Audit Manager service within their C++ applications.

Highlights

  • New Library Generation: This pull request introduces the newly generated C++ client library for the Google Cloud Audit Manager API, marking its availability for use.
  • Build System Integration: The new Audit Manager library has been integrated into the project's build systems, including Bazel and CMake, with corresponding updates to BUILD.bazel, CMakeLists.txt, and related configuration files.
  • Documentation and Examples: Comprehensive documentation, including a dedicated README, Doxygen pages for environment variables, authentication, endpoint overrides, retry policies, and universe domain configuration, has been added. A quickstart example is also provided to facilitate easy adoption.
  • Changelog and Metadata Updates: The CHANGELOG.md and main README.md have been updated to announce the new GA library. Repository metadata and internal generator configurations have also been adjusted to reflect the addition of Audit Manager.
Changelog
  • CHANGELOG.md
    • Added an entry for the new Audit Manager GA library under v2.47.0 - TBD.
  • README.md
    • Updated the main README to include a link to the new Audit Manager API client library.
  • ci/etc/expected_install_directories
    • Added expected install directories for the Audit Manager library and its mocks.
  • cmake/GoogleCloudCppFeatures.cmake
    • Added "auditmanager" to the list of GA libraries.
  • external/googleapis/protodeps/auditmanager.deps
    • Added protobuf dependencies for the Audit Manager API.
  • external/googleapis/protolists/auditmanager.list
    • Added the Audit Manager proto file to the list.
  • external/googleapis/update_libraries.sh
    • Added "auditmanager" to the LIBRARIES array for gRPC.
  • generator/generator_config.textproto
    • Added a service configuration for Audit Manager, including its proto path, product path, initial copyright year, and retryable status codes.
  • google/cloud/auditmanager/BUILD.bazel
    • Added Bazel build rules for the Audit Manager C++ GAPIC library.
  • google/cloud/auditmanager/CMakeLists.txt
    • Added CMake configuration for the Audit Manager C++ GAPIC library, including quickstart executable and test.
  • google/cloud/auditmanager/README.md
    • Added a README for the Audit Manager API C++ Client Library, including quickstart example, documentation links, and GA status.
  • google/cloud/auditmanager/doc/environment-variables.dox
    • Added Doxygen documentation for environment variables related to the Audit Manager library.
  • google/cloud/auditmanager/doc/main.dox
    • Added Doxygen main page for the Audit Manager API C++ Client Library.
  • google/cloud/auditmanager/doc/options.dox
    • Added Doxygen documentation for configuration options.
  • google/cloud/auditmanager/doc/override-authentication.dox
    • Added Doxygen documentation for overriding authentication credentials.
  • google/cloud/auditmanager/doc/override-endpoint.dox
    • Added Doxygen documentation for overriding the default endpoint.
  • google/cloud/auditmanager/doc/override-retry-policies.dox
    • Added Doxygen documentation for overriding retry, backoff, and idempotency policies.
  • google/cloud/auditmanager/doc/override-universe-domain.dox
    • Added Doxygen documentation for overriding the default universe domain.
  • google/cloud/auditmanager/quickstart/.bazelrc
    • Added Bazel configuration for the quickstart.
  • google/cloud/auditmanager/quickstart/BUILD.bazel
    • Added Bazel build rules for the quickstart executable.
  • google/cloud/auditmanager/quickstart/CMakeLists.txt
    • Added CMake configuration for the quickstart.
  • google/cloud/auditmanager/quickstart/Makefile
    • Added a Makefile for the quickstart.
  • google/cloud/auditmanager/quickstart/README.md
    • Added a README for the quickstart, detailing usage with Bazel and CMake.
  • google/cloud/auditmanager/quickstart/WORKSPACE.bazel
    • Added Bazel workspace configuration for the quickstart.
  • google/cloud/auditmanager/quickstart/quickstart.cc
    • Added the quickstart C++ code example.
  • google/cloud/auditmanager/v1/.repo-metadata.json
    • Added repository metadata for the Audit Manager v1 API.
  • google/cloud/auditmanager/v1/audit_manager_client.cc
    • Added the generated C++ client implementation for Audit Manager.
  • google/cloud/auditmanager/v1/audit_manager_client.h
    • Added the generated C++ client header for Audit Manager.
  • google/cloud/auditmanager/v1/audit_manager_connection.cc
    • Added the generated C++ connection implementation for Audit Manager.
  • google/cloud/auditmanager/v1/audit_manager_connection.h
    • Added the generated C++ connection header for Audit Manager.
  • google/cloud/auditmanager/v1/audit_manager_connection_idempotency_policy.cc
    • Added the generated C++ idempotency policy implementation.
  • google/cloud/auditmanager/v1/audit_manager_connection_idempotency_policy.h
    • Added the generated C++ idempotency policy header.
  • google/cloud/auditmanager/v1/audit_manager_options.h
    • Added the generated C++ options header.
  • google/cloud/auditmanager/v1/internal/audit_manager_auth_decorator.cc
    • Added the generated C++ authentication decorator implementation.
  • google/cloud/auditmanager/v1/internal/audit_manager_auth_decorator.h
    • Added the generated C++ authentication decorator header.
  • google/cloud/auditmanager/v1/internal/audit_manager_connection_impl.cc
    • Added the generated C++ connection implementation details.
  • google/cloud/auditmanager/v1/internal/audit_manager_connection_impl.h
    • Added the generated C++ connection implementation header.
  • google/cloud/auditmanager/v1/internal/audit_manager_logging_decorator.cc
    • Added the generated C++ logging decorator implementation.
  • google/cloud/auditmanager/v1/internal/audit_manager_logging_decorator.h
    • Added the generated C++ logging decorator header.
  • google/cloud/auditmanager/v1/internal/audit_manager_metadata_decorator.cc
    • Added the generated C++ metadata decorator implementation.
  • google/cloud/auditmanager/v1/internal/audit_manager_metadata_decorator.h
    • Added the generated C++ metadata decorator header.
  • google/cloud/auditmanager/v1/internal/audit_manager_option_defaults.cc
    • Added the generated C++ option defaults implementation.
  • google/cloud/auditmanager/v1/internal/audit_manager_option_defaults.h
    • Added the generated C++ option defaults header.
  • google/cloud/auditmanager/v1/internal/audit_manager_retry_traits.h
    • Added the generated C++ retry traits header.
  • google/cloud/auditmanager/v1/internal/audit_manager_sources.cc
    • Added the generated C++ sources file.
  • google/cloud/auditmanager/v1/internal/audit_manager_stub.cc
    • Added the generated C++ stub implementation.
  • google/cloud/auditmanager/v1/internal/audit_manager_stub.h
    • Added the generated C++ stub header.
  • google/cloud/auditmanager/v1/internal/audit_manager_stub_factory.cc
    • Added the generated C++ stub factory implementation.
  • google/cloud/auditmanager/v1/internal/audit_manager_stub_factory.h
    • Added the generated C++ stub factory header.
  • google/cloud/auditmanager/v1/internal/audit_manager_tracing_connection.cc
    • Added the generated C++ tracing connection implementation.
  • google/cloud/auditmanager/v1/internal/audit_manager_tracing_connection.h
    • Added the generated C++ tracing connection header.
  • google/cloud/auditmanager/v1/internal/audit_manager_tracing_stub.cc
    • Added the generated C++ tracing stub implementation.
  • google/cloud/auditmanager/v1/internal/audit_manager_tracing_stub.h
    • Added the generated C++ tracing stub header.
  • google/cloud/auditmanager/v1/mocks/mock_audit_manager_connection.h
    • Added the generated C++ mock connection header.
  • google/cloud/auditmanager/v1/samples/audit_manager_client_samples.cc
    • Added the generated C++ client samples.
  • libraries.bzl
    • Added "auditmanager" to the GOOGLE_CLOUD_CPP_GA_LIBRARIES list.
Activity
  • The pull request was created by scotthart, initiating the process of adding the Audit Manager client library.
  • All necessary files for the Audit Manager C++ client library, including source code, build configurations, and documentation, have been generated and added to the repository.
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

@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 introduces the new GA library for the Audit Manager API. The changes are mostly generated code and configuration files to integrate the new library. I've found a couple of minor issues: one in the quickstart's Bazel workspace file regarding a hardcoded, outdated dependency version, and another in the default backoff policy configuration which uses a zero-second initial delay. My detailed comments are below.

Comment on lines +24 to +29
http_archive(
name = "google_cloud_cpp",
sha256 = "699955112a4c57ae9111fbadeff1698674a1762acd77daf36360e6dfc227dc93",
strip_prefix = "google-cloud-cpp-2.42.0",
url = "https://github.com/googleapis/google-cloud-cpp/archive/v2.42.0.tar.gz",
)

Choose a reason for hiding this comment

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

medium

The http_archive for google_cloud_cpp is pinned to v2.42.0, which is an outdated version. This can cause confusion and build issues for users following this quickstart. Please consider updating this to a more recent version or using placeholders that can be updated automatically during release.

Suggested change
http_archive(
name = "google_cloud_cpp",
sha256 = "699955112a4c57ae9111fbadeff1698674a1762acd77daf36360e6dfc227dc93",
strip_prefix = "google-cloud-cpp-2.42.0",
url = "https://github.com/googleapis/google-cloud-cpp/archive/v2.42.0.tar.gz",
)
http_archive(
name = "google_cloud_cpp",
sha256 = "UPDATE_WITH_LATEST_SHA256",
strip_prefix = "google-cloud-cpp-UPDATE_WITH_LATEST_VERSION",
url = "https://github.com/googleapis/google-cloud-cpp/archive/vUPDATE_WITH_LATEST_VERSION.tar.gz",
)

Comment on lines +50 to +53
ExponentialBackoffPolicy(
std::chrono::seconds(0), std::chrono::seconds(1),
std::chrono::minutes(5), kBackoffScaling, kBackoffScaling)
.clone());

Choose a reason for hiding this comment

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

medium

The initial delay for the exponential backoff policy is set to 0 seconds. This means the first retry will be immediate, which is generally not desirable as it can overwhelm a temporarily struggling service. It's better to have a small initial delay. For consistency, you could use the same backoff settings as the polling policy, which uses a 1-second initial delay.

        ExponentialBackoffPolicy(
            std::chrono::seconds(1), std::chrono::minutes(5), kBackoffScaling)
            .clone());

@codecov
Copy link

codecov bot commented Feb 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.96%. Comparing base (14c94b4) to head (7bb6176).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #15937   +/-   ##
=======================================
  Coverage   92.96%   92.96%           
=======================================
  Files        2460     2460           
  Lines      228901   228901           
=======================================
+ Hits       212791   212805   +14     
+ Misses      16110    16096   -14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@scotthart scotthart merged commit de9b5a0 into googleapis:main Feb 5, 2026
63 of 64 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: auditmanager Issues related to the Audit Manager API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants