Skip to content

Commit 8a0591d

Browse files
authored
fix: security center update_notification sample (GoogleCloudPlatform#1124)
1 parent 2776614 commit 8a0591d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

securitycenter/src/update_notification.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
$notificationConfig = (new NotificationConfig())
4747
->setName($notificationConfigName)
4848
->setDescription('Updated description.')
49-
->setPubsubTopic($pubsubTopic);
49+
->setPubsubTopic($pubsubTopic)
50+
->setStreamingConfig($streamingConfig);
5051

5152
$response = $securityCenterClient->updateNotificationConfig($notificationConfig, [$fieldMask]);
5253
printf('Notification config was updated: %s' . PHP_EOL, $response->getName());

0 commit comments

Comments
 (0)