You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* samples: add sample list notifications
* samples: add sample get notification
* add tests for get list notifications samples
* add sample and test for creating a pubsub notification
* add sample for deleting a pubsub notification
* revise notification samples tests
* update samples readme
* clean up pubsub topic in tests
* revise readme per comment
* [Remove Bucket Conditional IAM Binding](#remove-bucket-conditional-iam-binding)
@@ -299,6 +303,15 @@ View the [source code](https://github.com/googleapis/python-storage/blob/main/sa
299
303
300
304
`python storage_create_bucket_class_location.py`
301
305
306
+
-----
307
+
### Create Bucket Notifications
308
+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/python-storage&page=editor&open_in_editor=samples/snippets/storage_create_bucket_notifications.py,samples/README.md)
309
+
310
+
View the [source code](https://github.com/googleapis/python-storage/blob/main/samples/snippets/storage_create_bucket_notifications.py). To run this sample:
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/python-storage&page=editor&open_in_editor=samples/snippets/storage_create_hmac_key.py,samples/README.md)
@@ -335,6 +348,15 @@ View the [source code](https://github.com/googleapis/python-storage/blob/main/sa
335
348
336
349
`python storage_delete_bucket.py`
337
350
351
+
-----
352
+
### Delete Bucket Notification
353
+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/python-storage&page=editor&open_in_editor=samples/snippets/storage_delete_bucket_notification.py,samples/README.md)
354
+
355
+
View the [source code](https://github.com/googleapis/python-storage/blob/main/samples/snippets/storage_delete_bucket_notification.py). To run this sample:
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/python-storage&page=editor&open_in_editor=samples/snippets/storage_delete_file.py,samples/README.md)
@@ -648,6 +670,15 @@ View the [source code](https://github.com/googleapis/python-storage/blob/main/sa
648
670
649
671
`python storage_list_buckets.py`
650
672
673
+
-----
674
+
### List Bucket Notifications
675
+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/python-storage&page=editor&open_in_editor=samples/snippets/storage_list_bucket_notifications.py,samples/README.md)
676
+
677
+
View the [source code](https://github.com/googleapis/python-storage/blob/main/samples/snippets/storage_list_bucket_notifications.py). To run this sample:
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/python-storage&page=editor&open_in_editor=samples/snippets/storage_list_file_archived_generations.py,samples/README.md)
@@ -765,6 +796,15 @@ View the [source code](https://github.com/googleapis/python-storage/blob/main/sa
765
796
766
797
`python storage_print_file_acl_for_user.py`
767
798
799
+
-----
800
+
### Print PubSub Bucket Notification
801
+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/python-storage&page=editor&open_in_editor=samples/snippets/storage_print_pubsub_bucket_notification.py,samples/README.md)
802
+
803
+
View the [source code](https://github.com/googleapis/python-storage/blob/main/samples/snippets/storage_print_pubsub_bucket_notification.py). To run this sample:
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/python-storage&page=editor&open_in_editor=samples/snippets/storage_release_event_based_hold.py,samples/README.md)
0 commit comments