GoogleCloudPlatform / java-docs-samples

Java and Kotlin Code samples used on cloud.google.com
https://cloud.google.com/java
Apache License 2.0
1.75k stars 2.82k forks source link

chore: api v2 notifications samples #9276

Closed rafaelMurata closed 4 months ago

rafaelMurata commented 5 months ago

Description

Fixes: https://buganizer.corp.google.com/issues/331816847

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

Checklist

snippet-bot[bot] commented 5 months ago

Here is the summary of changes.

You are about to add 5 region tags. - [security-command-center/snippets/src/main/java/vtwo/notifications/CreateNotification.java:17](https://github.com/rafaelMurata/java-docs-samples/blob/a8dfca346714fe6a7e7ca737f1d347827b2bf5ef/security-command-center/snippets/src/main/java/vtwo/notifications/CreateNotification.java#L17), tag `securitycenter_create_notification_config` - [security-command-center/snippets/src/main/java/vtwo/notifications/DeleteNotification.java:17](https://github.com/rafaelMurata/java-docs-samples/blob/a8dfca346714fe6a7e7ca737f1d347827b2bf5ef/security-command-center/snippets/src/main/java/vtwo/notifications/DeleteNotification.java#L17), tag `securitycenter_delete_notification_config` - [security-command-center/snippets/src/main/java/vtwo/notifications/GetNotification.java:17](https://github.com/rafaelMurata/java-docs-samples/blob/a8dfca346714fe6a7e7ca737f1d347827b2bf5ef/security-command-center/snippets/src/main/java/vtwo/notifications/GetNotification.java#L17), tag `securitycenter_get_notification_config` - [security-command-center/snippets/src/main/java/vtwo/notifications/ListNotification.java:17](https://github.com/rafaelMurata/java-docs-samples/blob/a8dfca346714fe6a7e7ca737f1d347827b2bf5ef/security-command-center/snippets/src/main/java/vtwo/notifications/ListNotification.java#L17), tag `securitycenter_list_notification_configs` - [security-command-center/snippets/src/main/java/vtwo/notifications/UpdateNotification.java:17](https://github.com/rafaelMurata/java-docs-samples/blob/a8dfca346714fe6a7e7ca737f1d347827b2bf5ef/security-command-center/snippets/src/main/java/vtwo/notifications/UpdateNotification.java#L17), tag `securitycenter_update_notification_config`

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:

Sita04 commented 4 months ago

@rafaelMurata Error log for your reference:

[ERROR] vtwo.NotificationIT Time elapsed: 0.532 s <<< ERROR! com.google.api.gax.rpc.PermissionDeniedException: io.grpc.StatusRuntimeException: PERMISSION_DENIED: PubSub topic projects/project-a-id/topics/test-topic does not exist. Caused by: io.grpc.StatusRuntimeException: PERMISSION_DENIED: PubSub topic projects/project-a-id/topics/test-topic does not exist.