-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.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.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
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.
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.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.‘Nice-to-have’ improvement, new feature or different behavior or design.