Add 'Bucket.list_notifications' API wrapper. by tseaver · Pull Request #3990 · googleapis/google-cloud-python
Navigation Menu
{{ message }}
googleapis / google-cloud-python Public
- Notifications You must be signed in to change notification settings
- Fork 1.7k
Merged
tseaver merged 3 commits intogoogleapis:3956-storage-notificationsfrom
tseaver:3956-storage-notifications-bucket-list_notifications
Sep 21, 2017Merged
Add 'Bucket.list_notifications' API wrapper.#3990
tseaver merged 3 commits intogoogleapis:3956-storage-notificationsfrom
tseaver:3956-storage-notifications-bucket-list_notifications
Add 'Bucket.list_notifications' API wrapper.#3990
tseaver merged 3 commits intogoogleapis:3956-storage-notificationsfrom
tseaver:3956-storage-notifications-bucket-list_notifications
Conversation
Copy link Copy Markdown
Contributor
tseaver
commented
Sep 18, 2017
tseaver
commented
tseaver
added
api: storage
labels
Sep 18, 2017
tseaver
requested review from
dhermes and
lukesneeringer
label
Sep 18, 2017
tseaver
mentioned this pull request
8 tasks
dhermes reviewed Sep 18, 2017
| return iterator | ||
|
|
||
| def list_notifications(self, client=None): | ||
| """List pubsub notifications for this bucket. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
| :returns: the new notification instance | ||
| :raises ValueError: | ||
| if resource is missing 'topic' key, or if it is not formatted | ||
| per documented spec. |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
| match = _TOPIC_REF_RE.match(topic_path) | ||
| if match is None: | ||
| raise ValueError( | ||
| 'Resource has invalid topic: {}'.format(topic_path)) |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
tseaver added 3 commits
September 18, 2017 14:52Copy link Copy Markdown
Contributor Author
tseaver
commented
Sep 21, 2017
tseaver commented
Sep 21, 2017@dhermes Any remaining issues?
dhermes approved these changes Sep 21, 2017
Copy link Copy Markdown
Contributor
dhermes
left a comment
dhermes
left a comment
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
tseaver
merged commit
9eb9a46
into
googleapis:3956-storage-notifications
tseaver
deleted the
3956-storage-notifications-bucket-list_notifications
branch
tseaver added a commit that referenced this pull request
Sep 25, 2017This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment