class FoldersNotificationConfigs extends Resource (View source)

The "notificationConfigs" collection of methods.

Typical usage is:

 $securitycenterService = new Google\Service\SecurityCommandCenter(...);
 $notificationConfigs = $securitycenterService->folders_notificationConfigs;

Methods

create(string $parent, NotificationConfig $postBody, array $optParams = [])

Creates a notification config. (notificationConfigs.create)

delete(string $name, array $optParams = [])

Deletes a notification config. (notificationConfigs.delete)

get(string $name, array $optParams = [])

Gets a notification config. (notificationConfigs.get)

listFoldersNotificationConfigs(string $parent, array $optParams = [])

Lists notification configs.

patch(string $name, NotificationConfig $postBody, array $optParams = [])

Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter (notificationConfigs.patch)

Details

NotificationConfig create(string $parent, NotificationConfig $postBody, array $optParams = [])

Creates a notification config. (notificationConfigs.create)

Parameters

string $parent

Required. Resource name of the new notification config's parent. Its format is organizations/[organization_id], folders/[folder_id], or projects/[project_id].

NotificationConfig $postBody
array $optParams

Optional parameters.

Return Value

NotificationConfig

Exceptions

Exception

SecuritycenterEmpty delete(string $name, array $optParams = [])

Deletes a notification config. (notificationConfigs.delete)

Parameters

string $name

Required. Name of the notification config to delete. Its format is organizations/[organization_id]/notificationConfigs/[config_id], folders/[folder_id]/notificationConfigs/[config_id], or projects/[project_id]/notificationConfigs/[config_id].

array $optParams

Optional parameters.

Return Value

SecuritycenterEmpty

Exceptions

Exception

NotificationConfig get(string $name, array $optParams = [])

Gets a notification config. (notificationConfigs.get)

Parameters

string $name

Required. Name of the notification config to get. Its format is organizations/[organization_id]/notificationConfigs/[config_id], folders/[folder_id]/notificationConfigs/[config_id], or projects/[project_id]/notificationConfigs/[config_id].

array $optParams

Optional parameters.

Return Value

NotificationConfig

Exceptions

Exception

ListNotificationConfigsResponse listFoldersNotificationConfigs(string $parent, array $optParams = [])

Lists notification configs.

(notificationConfigs.listFoldersNotificationConfigs)

Parameters

string $parent

Required. The name of the parent in which to list the notification configurations. Its format is "organizations/[organization_id]", "folders/[folder_id]", or "projects/[project_id]".

array $optParams

Optional parameters.

Return Value

ListNotificationConfigsResponse

Exceptions

Exception

NotificationConfig patch(string $name, NotificationConfig $postBody, array $optParams = [])

Updates a notification config. The following update fields are allowed: description, pubsub_topic, streaming_config.filter (notificationConfigs.patch)

Parameters

string $name

The relative resource name of this notification config. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/notificationConfigs/notify_public_bucket", "folders/{folder_id}/notificationConfigs/notify_public_bucket", or "projects/{project_id}/notificationConfigs/notify_public_bucket".

NotificationConfig $postBody
array $optParams

Optional parameters.

Return Value

NotificationConfig

Exceptions

Exception