GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add 'Bucket.list_notifications' API wrapper. by tseaver · Pull Request #3990 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Sep 18, 2017

Copy link
Copy Markdown
Contributor

Uses #3983 as a base.

Toward #3956.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@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
@tseaver
tseaver requested review from dhermes and lukesneeringer September 18, 2017 16:08
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 18, 2017
@tseaver tseaver mentioned this pull request Sep 18, 2017
Add support for storage->pubsub notifications #3956
Closed
8 tasks done
dhermes
dhermes reviewed Sep 18, 2017
View reviewed changes
Comment thread storage/google/cloud/storage/bucket.py Outdated
return iterator

def list_notifications(self, client=None):
"""List pubsub notifications for this bucket.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread storage/google/cloud/storage/notification.py Outdated
: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.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread storage/google/cloud/storage/notification.py Outdated
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.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tseaver added 3 commits September 18, 2017 14:52
@tseaver
Add 'BucketNotification.from_api_repr' factory.
908dceb
@tseaver
Add 'Bucket.list_notifications' API wrapper.
2037ec9
Toward #3956.
@tseaver
Docstring / exception message fixes.
7d6074e
Addresses:
https://github.com/GoogleCloudPlatform/google-cloud-python/pull/3990/files#r139469973
https://github.com/GoogleCloudPlatform/google-cloud-python/pull/3990/files#r139470301
https://github.com/GoogleCloudPlatform/google-cloud-python/pull/3990/files#r139470379.
@tseaver

tseaver commented Sep 21, 2017

Copy link
Copy Markdown
Contributor Author

@dhermes Any remaining issues?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dhermes
dhermes approved these changes Sep 21, 2017
View reviewed changes

@dhermes dhermes left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@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
@tseaver
Add 'Bucket.list_notifications' API wrapper. (#3990)
352aeed
Toward #3956.
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

Uh oh!

There was an error while loading. Please reload this page.

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.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@tseaver @dhermes @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.