Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for GCS Cloud Pub/Sub Notifications #3216

Closed
BrandonY opened this issue Mar 27, 2017 · 2 comments
Closed

Support for GCS Cloud Pub/Sub Notifications #3216

BrandonY opened this issue Mar 27, 2017 · 2 comments
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@BrandonY
Copy link

GCS has a new feature (currently in private alpha) wherein buckets can be configured to send object change notifications to Cloud Pub/Sub topics, rather than as push notifications to HTTPS endpoints.

For gcloud-python, I imagine such a feature might look like this:

from gcloud import pubsub
from gcloud import storage

storage_client = storage.Client()
pubsub_client = pubsub.Client()
bucket = storage_client.get_bucket(BUCKET_ID)
topic = pubsub_client.topic(TOPIC_ID)
notification_config = bucket.send_notifications_to(topic)

This feature was previously filed as #2768, but that one was closed because the feature was still in private alpha. However, today the feature is now in public beta.

@lukesneeringer lukesneeringer added priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Mar 28, 2017
@lukesneeringer
Copy link
Contributor

Thanks for reporting. This seems like a useful feature request that we will definitely consider.

@lukesneeringer
Copy link
Contributor

Hi @BrandonY,
This issue did not come up in the Pub/Sub redesigns here, and I am not sure what the status on it is. I am willing to consider it after the new library goes beta, but it seems out of scope for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

2 participants