File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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 ]);
5253printf ('Notification config was updated: %s ' . PHP_EOL , $ response ->getName ());
You can’t perform that action at this time.
0 commit comments