Add 'Bucket.list_notifications' API wrapper. by tseaver · Pull Request #3990 · googleapis/google-cloud-python

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

tseaver merged 3 commits intogoogleapis:3956-storage-notificationsfrom

tseaver:3956-storage-notifications-bucket-list_notifications

Sep 21, 2017

Merged

Add 'Bucket.list_notifications' API wrapper.#3990

tseaver merged 3 commits intogoogleapis:3956-storage-notificationsfrom

tseaver:3956-storage-notifications-bucket-list_notifications

Conversation

@tseaver

Copy link Copy Markdown

Contributor

@tseaver tseaver commented

Sep 18, 2017

Uses #3983 as a base.

Toward #3956.

@tseaver tseaver added api: storage

Issues related to the Cloud Storage API.

type: feature request

‘Nice-to-have’ improvement, new feature or different behavior or design.

labels

Sep 18, 2017

@googlebot googlebot added the cla: yes

This human has signed the Contributor License Agreement.

label

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.

: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.

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.

@tseaver

Copy link Copy Markdown

Contributor Author

tseaver commented

Sep 21, 2017

@dhermes Any remaining issues?

Copy link Copy Markdown

Contributor

@dhermes 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 tseaver merged commit 9eb9a46 into googleapis:3956-storage-notifications

Sep 21, 2017

@tseaver tseaver deleted the 3956-storage-notifications-bucket-list_notifications branch

September 21, 2017 19:15

tseaver added a commit that referenced this pull request

Sep 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lukesneeringer lukesneeringer Awaiting requested review from lukesneeringer

1 more reviewer

@dhermes dhermes dhermes approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

api: storage

Issues related to the Cloud Storage API.

cla: yes

This human has signed the Contributor License Agreement.

type: feature request

‘Nice-to-have’ improvement, new feature or different behavior or design.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@tseaver @dhermes @googlebot