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 resource notification config Go client libraries #4269

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, receive notifications of the samples.

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

Checklist

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/

snippet-bot[bot] commented 4 months ago

Here is the summary of changes.

You are about to add 6 region tags. - [securitycenter/notificationsv2/create_notification_config.go:17](https://github.com/vijaykanthm/golang-samples/blob/6c52d052fcc6e5a8d582dcd25c6d2baefac5a578/securitycenter/notificationsv2/create_notification_config.go#L17), tag `securitycenter_create_notification_config_v2` - [securitycenter/notificationsv2/delete_notification_config.go:17](https://github.com/vijaykanthm/golang-samples/blob/6c52d052fcc6e5a8d582dcd25c6d2baefac5a578/securitycenter/notificationsv2/delete_notification_config.go#L17), tag `securitycenter_delete_notification_config_v2` - [securitycenter/notificationsv2/get_notification_config.go:17](https://github.com/vijaykanthm/golang-samples/blob/6c52d052fcc6e5a8d582dcd25c6d2baefac5a578/securitycenter/notificationsv2/get_notification_config.go#L17), tag `securitycenter_get_notification_config_v2` - [securitycenter/notificationsv2/list_notification_configs.go:17](https://github.com/vijaykanthm/golang-samples/blob/6c52d052fcc6e5a8d582dcd25c6d2baefac5a578/securitycenter/notificationsv2/list_notification_configs.go#L17), tag `securitycenter_list_notification_configs_v2` - [securitycenter/notificationsv2/receive_notifications.go:17](https://github.com/vijaykanthm/golang-samples/blob/6c52d052fcc6e5a8d582dcd25c6d2baefac5a578/securitycenter/notificationsv2/receive_notifications.go#L17), tag `securitycenter_receive_notifications_v2` - [securitycenter/notificationsv2/update_notification_config.go:17](https://github.com/vijaykanthm/golang-samples/blob/6c52d052fcc6e5a8d582dcd25c6d2baefac5a578/securitycenter/notificationsv2/update_notification_config.go#L17), tag `securitycenter_update_notification_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: