googleapis / google-cloud-ruby

Google Cloud Client Library for Ruby
https://googleapis.github.io/google-cloud-ruby/
Apache License 2.0
1.36k stars 550 forks source link

docs(pubsub): Add ingestion from GCS samples #27434

Open michaelpri10 opened 1 month ago

michaelpri10 commented 1 month ago

This adds samples for Pub/Sub ingestion from GCS topics.

snippet-bot[bot] commented 1 month ago

Here is the summary of changes.

You are about to add 1 region tag. - [google-cloud-pubsub/samples/pubsub_create_topic_with_cloud_storage_ingestion.rb:25](https://github.com/michaelpri10/google-cloud-ruby/blob/f901143b1de564a50be2eec7efdad44d6a04cf90/google-cloud-pubsub/samples/pubsub_create_topic_with_cloud_storage_ingestion.rb#L25), tag `pubsub_create_topic_with_cloud_storage_ingestion`

This comment is generated by snippet-bot. If you find problems with this result, please file an issue at: https://github.com/googleapis/repo-automation-bots/issues. To update this comment, add snippet-bot:force-run label or use the checkbox below:

michaelpri10 commented 1 month ago

The test is failing because the GCS ingestion feature is not enabled for the integration test project. It looks like the project is helical-zone-771, so this will need to be allowlisted for the feature flag.

michaelpri10 commented 1 month ago

The GCS bucket gs://pubsub-ruby-sample-bucket has been created in the helical-zone-771 project, and the Pub/Sub P4SA for that project has been granted Storage Admin permissions on the bucket. This is required for the GCS ingestion sample to pass.

michaelpri10 commented 3 weeks ago

Gentle bump on this @dazuma