GoogleCloudPlatform / GoogleCloudPlatform/java-docs-samples

security-command-center: no code sample to receive notifications for v2 API

未关闭
#9,534 0 条评论 0 个 reaction 已指派 1 人 已指派给 @owenhuyn 在 GitHub 查看
priority: p2 samples triage me type: bug
主要语言
Java
星标
1.9k
派生
2.9k
平均合并
3 天 3 小时
30 天内合并 PR
17

描述

## In which file did you encounter the issue?

* v1 code sample for receiving notifications: https://github.com/GoogleCloudPlatform/java-docs-samples/blob/611b32be/security-command-center/snippets/src/main/java/NotificationReceiver.java
* All v2 code samples for notifications: https://github.com/GoogleCloudPlatform/java-docs-samples/tree/611b32be/security-command-center/snippets/src/main/java/vtwo/notifications

## Did you change the file? If so, how?

No

## Describe the issue

In #9276, we added code samples that show how to manage notifications with the Security Command Center v2 API. However, we didn't add a v2 version of [`NotificationReceiver.java`](https://github.com/GoogleCloudPlatform/java-docs-samples/blob/611b32be249e3ed03fb523168c17a22013eb6fae/security-command-center/snippets/src/main/java/NotificationReceiver.java).

We need to create a v2 version of this sample, with the region tag `securitycenter_receive_notifications_v2`.

cc: @owenhuyn

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。