class Notifications extends Resource (View source)

The "notifications" collection of methods.

Typical usage is:

 $storageService = new Google\Service\Storage(...);
 $notifications = $storageService->notifications;

Methods

delete(string $bucket, string $notification, array $optParams = [])

Permanently deletes a notification subscription. (notifications.delete)

get(string $bucket, string $notification, array $optParams = [])

View a notification configuration. (notifications.get)

insert(string $bucket, Notification $postBody, array $optParams = [])

Creates a notification subscription for a given bucket.

listNotifications(string $bucket, array $optParams = [])

Retrieves a list of notification subscriptions for a given bucket.

Details

delete(string $bucket, string $notification, array $optParams = [])

Permanently deletes a notification subscription. (notifications.delete)

Parameters

string $bucket

The parent bucket of the notification.

string $notification

ID of the notification to delete.

array $optParams

Optional parameters.

Exceptions

Exception

Notification get(string $bucket, string $notification, array $optParams = [])

View a notification configuration. (notifications.get)

Parameters

string $bucket

The parent bucket of the notification.

string $notification

Notification ID

array $optParams

Optional parameters.

Return Value

Notification

Exceptions

Exception

Notification insert(string $bucket, Notification $postBody, array $optParams = [])

Creates a notification subscription for a given bucket.

(notifications.insert)

Parameters

string $bucket

The parent bucket of the notification.

Notification $postBody
array $optParams

Optional parameters.

Return Value

Notification

Exceptions

Exception

Notifications listNotifications(string $bucket, array $optParams = [])

Retrieves a list of notification subscriptions for a given bucket.

(notifications.listNotifications)

Parameters

string $bucket

Name of a Google Cloud Storage bucket.

array $optParams

Optional parameters.

Return Value

Notifications

Exceptions

Exception