This repository was archived by the owner on Mar 31, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626# To run this script, first download few files from gcs to /dev/shm.
2727# (/dev/shm is passed into the container as KOKORO_GFILE_DIR).
2828#
29- # gsutil cp gs://cloud-devrel-kokoro-resources/python-docs-samples/secrets_viewer_service_account.json /dev/shm
30- # gsutil cp gs://cloud-devrel-kokoro-resources/python-docs-samples/automl_secrets.txt /dev/shm
29+ # gcloud storage cp gs://cloud-devrel-kokoro-resources/python-docs-samples/secrets_viewer_service_account.json /dev/shm
30+ # gcloud storage cp gs://cloud-devrel-kokoro-resources/python-docs-samples/automl_secrets.txt /dev/shm
3131#
3232# Then run the script.
3333# .kokoro/trampoline_v2.sh
Original file line number Diff line number Diff line change 3232 https://console.cloud.google.com/flows/enableapi?apiid=pubsub
3333
34343. Create a Google Cloud Storage bucket:
35- $ gsutil mb gs://testbucket
35+ $ gcloud storage buckets create gs://testbucket
3636
37374. Create a Cloud Pub/Sub topic and publish bucket notifications there:
38- $ gsutil notification create -f json -t testtopic gs://testbucket
38+ $ gcloud storage buckets notifications create gs://testbucket --topic=testtopic --payload-format=json
3939
40405. Create a subscription for your new topic:
4141 $ gcloud pubsub subscriptions create testsubscription --topic=testtopic
You can’t perform that action at this time.
0 commit comments