feat(cloudkms): add samples for CryptoKey/CryptoKeyVersion deletion and get/lists RetiredResources#10237
Conversation
|
Here is the summary of changes. You are about to add 4 region tags.
This comment is generated by snippet-bot.
|
Summary of ChangesHello @yasharel, 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 a suite of new samples for Google Cloud Key Management Service (KMS), demonstrating how to programmatically delete CryptoKeys and CryptoKeyVersions, as well as how to retrieve and list retired resources. It also includes essential updates to project dependencies and refines the existing IAM member removal utility to ensure robust policy management. Highlights
Changelog
Activity
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this comment.
Code Review
This pull request adds several new samples for Cloud KMS operations, including deleting keys and key versions, and listing/getting retired resources. The changes also include updates to dependencies and improvements to the integration test setup.
My review found a critical bug in IamRemoveMember.java where an incorrect policy object was being used, preventing the intended IAM change. I also found some code duplication in the new DeleteKeyVersion.java sample and a potential for a flaky test in SnippetsIT.java due to test dependencies. Please see my detailed comments for suggestions.
5e096f2 to
20b8b85
Compare
20b8b85 to
630688f
Compare
Description
Fixes #
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
pom.xmlparent set to latestshared-configurationmvn clean verifyrequiredmvn -P lint checkstyle:checkrequiredmvn -P lint clean compile pmd:cpd-check spotbugs:checkadvisory only