GoogleCloudPlatform / golang-samples

Sample apps and code written for Google Cloud in the Go programming language.
Apache License 2.0
4.32k stars 1.75k forks source link

feat: add v2 API for muteconfig Go client libraries or samples #4268

Closed vijaykanthm closed 3 months ago

vijaykanthm commented 4 months ago

Description

Reference to https://b.corp.google.com/issues/339692211 This PR adds v2 API to create, list, get, update, delete, mute, unmute, bulk-mute the samples.

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

snippet-bot[bot] commented 4 months ago

Here is the summary of changes.

You are about to add 7 region tags. - [securitycenter/muteconfigv2/create_mute_rule.go:17](https://github.com/vijaykanthm/golang-samples/blob/eb274b0d1db8f7c8f293765d19ff264d66ab906e/securitycenter/muteconfigv2/create_mute_rule.go#L17), tag `securitycenter_create_mute_config_v2` - [securitycenter/muteconfigv2/delete_mute_rule.go:17](https://github.com/vijaykanthm/golang-samples/blob/eb274b0d1db8f7c8f293765d19ff264d66ab906e/securitycenter/muteconfigv2/delete_mute_rule.go#L17), tag `securitycenter_delete_mute_config_v2` - [securitycenter/muteconfigv2/get_mute_rule.go:17](https://github.com/vijaykanthm/golang-samples/blob/eb274b0d1db8f7c8f293765d19ff264d66ab906e/securitycenter/muteconfigv2/get_mute_rule.go#L17), tag `securitycenter_get_mute_config_v2` - [securitycenter/muteconfigv2/list_mute_rules.go:17](https://github.com/vijaykanthm/golang-samples/blob/eb274b0d1db8f7c8f293765d19ff264d66ab906e/securitycenter/muteconfigv2/list_mute_rules.go#L17), tag `securitycenter_list_mute_configs_v2` - [securitycenter/muteconfigv2/set_mute_finding.go:17](https://github.com/vijaykanthm/golang-samples/blob/eb274b0d1db8f7c8f293765d19ff264d66ab906e/securitycenter/muteconfigv2/set_mute_finding.go#L17), tag `securitycenter_set_mute_v2` - [securitycenter/muteconfigv2/set_unmute_finding.go:17](https://github.com/vijaykanthm/golang-samples/blob/eb274b0d1db8f7c8f293765d19ff264d66ab906e/securitycenter/muteconfigv2/set_unmute_finding.go#L17), tag `securitycenter_set_unmute_v2` - [securitycenter/muteconfigv2/update_mute_rule.go:17](https://github.com/vijaykanthm/golang-samples/blob/eb274b0d1db8f7c8f293765d19ff264d66ab906e/securitycenter/muteconfigv2/update_mute_rule.go#L17), tag `securitycenter_update_mute_config_v2`

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:

conventional-commit-lint-gcf[bot] commented 4 months ago

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot https://conventionalcommits.org/