Skip to content
This repository was archived by the owner on Sep 28, 2023. It is now read-only.

Commit 73885a3

Browse files
committed
Update docs on running demo to explain environment variables.
1 parent 48c50d1 commit 73885a3

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

docs/datastore-quickstart.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,24 @@ You can install the library quickly with ``pip``::
2121

2222
$ pip install gcloud
2323

24+
Run the demo
25+
------------
26+
27+
In order to run the demo, you need to have registred an actual ``gcloud``
28+
project and so you'll need to provide some environment variables to facilitate
29+
authentication to your project:
30+
31+
- ``GCLOUD_TESTS_PROJECT_ID``: Developers Console project ID (e.g.
32+
bamboo-shift-455).
33+
- ``GCLOUD_TESTS_DATASET_ID``: The name of the dataset your tests connect to.
34+
This is typically the same as ``GCLOUD_TESTS_PROJECT_ID``.
35+
- ``GCLOUD_TESTS_CLIENT_EMAIL``: The email for the service account you're
36+
authenticating with
37+
- ``GCLOUD_TESTS_KEY_FILE``: The path to an encrypted key file.
38+
See private key
39+
`docs <https://cloud.google.com/storage/docs/authentication#generating-a-private-key>`__
40+
for explanation on how to get a private key.
41+
2442
Run the
2543
`example script <https://github.com/GoogleCloudPlatform/gcloud-python/blob/master/gcloud/datastore/demo/demo.py>`_
2644
included in the package::

docs/storage-quickstart.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,24 @@ You can install the library quickly with ``pip``::
1111

1212
$ pip install gcloud
1313

14+
Run the demo
15+
------------
16+
17+
In order to run the demo, you need to have registred an actual ``gcloud``
18+
project and so you'll need to provide some environment variables to facilitate
19+
authentication to your project:
20+
21+
- ``GCLOUD_TESTS_PROJECT_ID``: Developers Console project ID (e.g.
22+
bamboo-shift-455).
23+
- ``GCLOUD_TESTS_DATASET_ID``: The name of the dataset your tests connect to.
24+
This is typically the same as ``GCLOUD_TESTS_PROJECT_ID``.
25+
- ``GCLOUD_TESTS_CLIENT_EMAIL``: The email for the service account you're
26+
authenticating with
27+
- ``GCLOUD_TESTS_KEY_FILE``: The path to an encrypted key file.
28+
See private key
29+
`docs <https://cloud.google.com/storage/docs/authentication#generating-a-private-key>`__
30+
for explanation on how to get a private key.
31+
1432
Run the
1533
`example script <https://github.com/GoogleCloudPlatform/gcloud-python/blob/master/gcloud/storage/demo/demo.py>`_
1634
included in the package::

0 commit comments

Comments
 (0)