| Modifier and Type | Class and Description |
|---|---|
class |
Storage.Notifications.Delete |
class |
Storage.Notifications.Get |
class |
Storage.Notifications.Insert |
class |
Storage.Notifications.List |
| Constructor and Description |
|---|
Notifications() |
| Modifier and Type | Method and Description |
|---|---|
Storage.Notifications.Delete |
delete(String bucket,
String notification)
Permanently deletes a notification subscription.
|
Storage.Notifications.Get |
get(String bucket,
String notification)
View a notification configuration.
|
Storage.Notifications.Insert |
insert(String bucket,
com.google.api.services.storage.model.Notification content)
Creates a notification subscription for a given bucket.
|
Storage.Notifications.List |
list(String bucket)
Retrieves a list of notification subscriptions for a given bucket.
|
public Storage.Notifications.Delete delete(String bucket, String notification) throws IOException
Create a request for the method "notifications.delete".
This request holds the parameters needed by the storage server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
bucket - The parent bucket of the notification.notification - ID of the notification to delete.IOExceptionpublic Storage.Notifications.Get get(String bucket, String notification) throws IOException
Create a request for the method "notifications.get".
This request holds the parameters needed by the storage server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
bucket - The parent bucket of the notification.notification - Notification IDIOExceptionpublic Storage.Notifications.Insert insert(String bucket, com.google.api.services.storage.model.Notification content) throws IOException
Create a request for the method "notifications.insert".
This request holds the parameters needed by the storage server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
bucket - The parent bucket of the notification.content - the NotificationIOExceptionpublic Storage.Notifications.List list(String bucket) throws IOException
Create a request for the method "notifications.list".
This request holds the parameters needed by the storage server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
bucket - Name of a Google Cloud Storage bucket.IOExceptionCopyright © 2022. All rights reserved.