Search in sources :

Example 1 with NotificationName

use of com.google.storage.v2.NotificationName in project gapic-generator-java by googleapis.

the class SyncDeleteNotificationNotificationname method syncDeleteNotificationNotificationname.

public static void syncDeleteNotificationNotificationname() throws Exception {
    // It may require modifications to work in your environment.
    try (StorageClient storageClient = StorageClient.create()) {
        NotificationName name = NotificationName.of("[PROJECT]", "[BUCKET]", "[NOTIFICATION]");
        storageClient.deleteNotification(name);
    }
}
Also used : NotificationName(com.google.storage.v2.NotificationName) StorageClient(com.google.storage.v2.StorageClient)

Aggregations

NotificationName (com.google.storage.v2.NotificationName)1 StorageClient (com.google.storage.v2.StorageClient)1