File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 3737$ organizationName = $ securityCenterClient ::organizationName ($ organizationId );
3838$ pubsubTopic = $ securityCenterClient ::topicName ($ projectId , $ topicName );
3939
40- $ streamingConfig = new StreamingConfig ();
41- $ streamingConfig ->setFilter ("state = \"ACTIVE \"" );
40+ $ streamingConfig = (new StreamingConfig ())->setFilter ("state = \"ACTIVE \"" );
4241$ notificationConfig = (new NotificationConfig ())
4342 ->setDescription ('A sample notification config ' )
4443 ->setPubsubTopic ($ pubsubTopic )
Original file line number Diff line number Diff line change 4141$ pubsubTopic = $ securityCenterClient ::topicName ($ projectId , $ topicName );
4242$ notificationConfigName = $ securityCenterClient ::notificationConfigName ($ organizationId , $ notificationConfigId );
4343
44- $ streamingConfig = new StreamingConfig ();
45- $ streamingConfig ->setFilter ("state = \"ACTIVE \"" );
46- $ fieldMask = new FieldMask ();
47- $ fieldMask ->setPaths (['description ' , 'pubsub_topic ' ]);
44+ $ streamingConfig = (new StreamingConfig ())->setFilter ("state = \"ACTIVE \"" );
45+ $ fieldMask = (new FieldMask ())>setPaths (['description ' , 'pubsub_topic ' ]);
4846$ notificationConfig = (new NotificationConfig ())
4947 ->setName ($ notificationConfigName )
5048 ->setDescription ('Updated description. ' )
You can’t perform that action at this time.
0 commit comments