Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .kokoro/trampoline_v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
# To run this script, first download few files from gcs to /dev/shm.
# (/dev/shm is passed into the container as KOKORO_GFILE_DIR).
#
# gsutil cp gs://cloud-devrel-kokoro-resources/python-docs-samples/secrets_viewer_service_account.json /dev/shm
# gsutil cp gs://cloud-devrel-kokoro-resources/python-docs-samples/automl_secrets.txt /dev/shm
# gcloud storage cp gs://cloud-devrel-kokoro-resources/python-docs-samples/secrets_viewer_service_account.json /dev/shm
# gcloud storage cp gs://cloud-devrel-kokoro-resources/python-docs-samples/automl_secrets.txt /dev/shm
#
# Then run the script.
# .kokoro/trampoline_v2.sh
Expand Down
4 changes: 2 additions & 2 deletions samples/snippets/notification_polling.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
https://console.cloud.google.com/flows/enableapi?apiid=pubsub
3. Create a Google Cloud Storage bucket:
$ gsutil mb gs://testbucket
$ gcloud storage buckets create gs://testbucket
4. Create a Cloud Pub/Sub topic and publish bucket notifications there:
$ gsutil notification create -f json -t testtopic gs://testbucket
$ gcloud storage buckets notifications create gs://testbucket --topic=testtopic --payload-format=json
5. Create a subscription for your new topic:
$ gcloud pubsub subscriptions create testsubscription --topic=testtopic
Expand Down