Skip to content

Commit a528802

Browse files
Update filter field to mutable path
1 parent 5ed8d98 commit a528802

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

securitycenter/src/update_notification.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@
4242
$notificationConfigName = $securityCenterClient::notificationConfigName($organizationId, $notificationConfigId);
4343

4444
$streamingConfig = (new StreamingConfig())->setFilter("state = \"ACTIVE\"");
45-
$fieldMask = (new FieldMask())->setPaths(['description', 'pubsub_topic']);
45+
$fieldMask = (new FieldMask())->setPaths(['description', 'pubsub_topic', 'streaming_config.filter']);
4646
$notificationConfig = (new NotificationConfig())
4747
->setName($notificationConfigName)
4848
->setDescription('Updated description.')
49-
->setPubsubTopic($pubsubTopic);
49+
->setPubsubTopic($pubsubTopic)
50+
->setStreamingConfig((new StreamingConfig)->setFilter('state = \"INACTIVE\"'));
5051

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

0 commit comments

Comments
 (0)