Skip to content

feat(cloudsecuritycompliance): add new clients#13540

Closed
bhshkh wants to merge 1 commit intogoogleapis:mainfrom
bhshkh:cloudsecuritycompliance-gen
Closed

feat(cloudsecuritycompliance): add new clients#13540
bhshkh wants to merge 1 commit intogoogleapis:mainfrom
bhshkh:cloudsecuritycompliance-gen

Conversation

@bhshkh
Copy link
Copy Markdown
Contributor

@bhshkh bhshkh commented Jan 6, 2026

PiperOrigin-RevId: 799477610

@bhshkh bhshkh requested a review from a team as a code owner January 6, 2026 11:46
@bhshkh bhshkh requested a review from a team January 6, 2026 11:46
@snippet-bot
Copy link
Copy Markdown

snippet-bot Bot commented Jan 6, 2026

Here is the summary of changes.

You are about to add 57 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

@bhshkh bhshkh enabled auto-merge (squash) January 6, 2026 11:53
@bhshkh
Copy link
Copy Markdown
Contributor Author

bhshkh commented Jan 6, 2026

This PR resolves b/441231689

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @bhshkh, 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 integrates the cloudsecuritycompliance service into the existing Go client library ecosystem. It provides a complete set of client-side tools, including gRPC and REST clients, for interacting with the service's various APIs. The changes are extensive, covering client code generation, module configuration, and user-facing documentation, all aimed at offering robust and accessible access to the Cloud Security Compliance functionalities.

Highlights

  • New Client Library: This pull request introduces a new client library for the cloudsecuritycompliance service, enabling programmatic interaction with its various functionalities.
  • Comprehensive API Coverage: The new client library includes dedicated clients for Audit, CmEnrollment, Config, Deployment, and Monitoring services, each with gRPC and REST implementations.
  • Automated Code Generation: The majority of the changes involve generated client code, protobuf definitions, and example snippets, indicating a streamlined process for integrating new services.
  • Detailed Documentation and Examples: The new library comes with a comprehensive README.md and numerous code snippets, making it easier for developers to get started and understand usage patterns.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

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
Copy Markdown
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 adds a new Go client for the Cloud Security Compliance API. The changes include the generated client code, examples, and configuration files. My review found a critical issue in the .librarian/state.yaml configuration where the remove_regex patterns appear to be incorrectly configured to remove the newly added client files, which could break the client. Please review this configuration.

Comment thread .librarian/state.yaml
Comment on lines +1575 to +1586
remove_regex:
- ^internal/generated/snippets/cloudsecuritycompliance/
- ^cloudsecuritycompliance/apiv1/[^/]*_client\.go$
- ^cloudsecuritycompliance/apiv1/[^/]*_client_example_go123_test\.go$
- ^cloudsecuritycompliance/apiv1/[^/]*_client_example_test\.go$
- ^cloudsecuritycompliance/apiv1/auxiliary\.go$
- ^cloudsecuritycompliance/apiv1/auxiliary_go123\.go$
- ^cloudsecuritycompliance/apiv1/doc\.go$
- ^cloudsecuritycompliance/apiv1/gapic_metadata\.json$
- ^cloudsecuritycompliance/apiv1/helpers\.go$
- ^cloudsecuritycompliance/apiv1/\.repo-metadata\.json$
- ^cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb/.*$
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.

critical

The remove_regex patterns seem to be configured to remove most of the files being added in this pull request for the cloudsecuritycompliance client. For example, ^cloudsecuritycompliance/apiv1/[^/]*_client\.go$ will match and remove all the newly added client files like audit_client.go, and ^internal/generated/snippets/cloudsecuritycompliance/ will remove all snippet files. This seems incorrect if the goal is to add this new client. Please verify if these remove_regex entries are intended. If the files are meant to be kept, these regexes should be removed to prevent the new client files from being deleted by any automation.

@bhshkh bhshkh closed this Jan 22, 2026
auto-merge was automatically disabled January 22, 2026 13:46

Pull request was closed

@bhshkh bhshkh deleted the cloudsecuritycompliance-gen branch January 22, 2026 13:46
@bhshkh
Copy link
Copy Markdown
Contributor Author

bhshkh commented Jan 22, 2026

Created #13660

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.

1 participant