Interface Notification (0.163.0-beta)

public interface Notification

An interface for Pub/Sub Notifications in Google Cloud Storage.

This is a light wrapper around a Storage client. See Also: Google Cloud Pub/Sub Notifications for Storage

Methods

create(Storage storage)

public abstract Notification create(Storage storage)
Parameter
Name Description
storage com.google.cloud.storage.Storage
Returns
Type Description
Notification

createNotification(String bucket, NotificationInfo notification)

public abstract NotificationInfo createNotification(String bucket, NotificationInfo notification)
Parameters
Name Description
bucket String
notification NotificationInfo
Returns
Type Description
NotificationInfo

deleteNotification(String bucket, String notification)

public abstract boolean deleteNotification(String bucket, String notification)
Parameters
Name Description
bucket String
notification String
Returns
Type Description
boolean

listNotifications(String bucket)

public abstract List<NotificationInfo> listNotifications(String bucket)
Parameter
Name Description
bucket String
Returns
Type Description
List<NotificationInfo>