Skip to content

Support for GCS Cloud Pub/Sub Notifications #2768

Closed
@BrandonY

Description

@BrandonY

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)

Activity

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

Metadata

Metadata

Labels

api: storageIssues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions