Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TypeError when running Storage notification polling exmaple. #1135

Merged
merged 12 commits into from
Sep 22, 2017
Prev Previous commit
Next Next commit
regenerate README
  • Loading branch information
BrandonY committed Mar 24, 2017
commit c9b9bfae4e2aefa58ef5a283d62f5a41d1030716
20 changes: 10 additions & 10 deletions storage/cloud-client/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,16 +251,16 @@ To run this sample:
subscription configured for pull rather than push notifications. If you do not
already have notifications configured, you may consult the docs at
https://cloud.google.com/storage/docs/reporting-changes or follow the steps
below: 1. [Activate the Google Cloud Pub/Sub API], if you have not already
done so. 2. Create a Google Cloud Storage bucket: ``` $ gsutil mb
gs://testbucket ``` 3. Create a Cloud Pub/Sub topic and publish bucket
notifications there: ``` $ gsutil notification create -f json -t testtopic
gs://testbucket ``` 4. Create a subscription for your new topic: ``` $ gcloud
beta pubsub subscriptions create testsubscription --topic=testtopic ``` 5. Run
this program: ``` $ python notification_polling testsubscription` ``` 6. While
the program is running, upload and delete some files in the testbucket bucket
(you could use the console or gsutil) and watch as changes scroll by in the
app.
below: 1. Activate the Google Cloud Pub/Sub API, if you have not already done
so. https://console.cloud.google.com/flows/enableapi?apiid=pubsub 2. Create a
Google Cloud Storage bucket: $ gsutil mb gs://testbucket 3. Create a Cloud
Pub/Sub topic and publish bucket notifications there: $ gsutil notification
create -f json -t testtopic gs://testbucket 4. Create a subscription for your
new topic: $ gcloud beta pubsub subscriptions create testsubscription
--topic=testtopic 5. Run this program: $ python notification_polling
testsubscription 6. While the program is running, upload and delete some files
in the testbucket bucket (you could use the console or gsutil) and watch as
changes scroll by in the app.

positional arguments:
subscription The ID of the Pub/Sub subscription
Expand Down