Skip to content

Commit dcfebd1

Browse files
author
Jon Wayne Parrott
authored
Update all generated readme auth instructions (#1121)
Change-Id: I03b5eaef8b17ac3dc3c0339fd2c7447bd3e11bd2
1 parent e5c52fe commit dcfebd1

File tree

41 files changed

+247
-1111
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+247
-1111
lines changed

bigquery/api/README.rst

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,12 @@ Setup
1717
Authentication
1818
++++++++++++++
1919

20-
Authentication is typically done through `Application Default Credentials`_,
21-
which means you do not have to change the code to authenticate as long as
22-
your environment has credentials. You have a few options for setting up
23-
authentication:
20+
This sample requires you to have authentication setup. Refer to the
21+
`Authentication Getting Started Guide`_ for instructions on setting up
22+
credentials for applications.
2423

25-
#. When running locally, use the `Google Cloud SDK`_
26-
27-
.. code-block:: bash
28-
29-
gcloud auth application-default login
30-
31-
32-
#. When running on App Engine or Compute Engine, credentials are already
33-
set-up. However, you may need to configure your Compute Engine instance
34-
with `additional scopes`_.
35-
36-
#. You can create a `Service Account key file`_. This file can be used to
37-
authenticate to Google Cloud Platform services from any environment. To use
38-
the file, set the ``GOOGLE_APPLICATION_CREDENTIALS`` environment variable to
39-
the path to the key file, for example:
40-
41-
.. code-block:: bash
42-
43-
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
44-
45-
.. _Application Default Credentials: https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
46-
.. _additional scopes: https://cloud.google.com/compute/docs/authentication#using
47-
.. _Service Account key file: https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
24+
.. _Authentication Getting Started Guide:
25+
https://cloud.google.com/docs/authentication/getting-started
4826

4927
Install Dependencies
5028
++++++++++++++++++++

bigquery/rest/README.rst

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,12 @@ Setup
1717
Authentication
1818
++++++++++++++
1919

20-
Authentication is typically done through `Application Default Credentials`_,
21-
which means you do not have to change the code to authenticate as long as
22-
your environment has credentials. You have a few options for setting up
23-
authentication:
20+
This sample requires you to have authentication setup. Refer to the
21+
`Authentication Getting Started Guide`_ for instructions on setting up
22+
credentials for applications.
2423

25-
#. When running locally, use the `Google Cloud SDK`_
26-
27-
.. code-block:: bash
28-
29-
gcloud auth application-default login
30-
31-
32-
#. When running on App Engine or Compute Engine, credentials are already
33-
set-up. However, you may need to configure your Compute Engine instance
34-
with `additional scopes`_.
35-
36-
#. You can create a `Service Account key file`_. This file can be used to
37-
authenticate to Google Cloud Platform services from any environment. To use
38-
the file, set the ``GOOGLE_APPLICATION_CREDENTIALS`` environment variable to
39-
the path to the key file, for example:
40-
41-
.. code-block:: bash
42-
43-
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
44-
45-
.. _Application Default Credentials: https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
46-
.. _additional scopes: https://cloud.google.com/compute/docs/authentication#using
47-
.. _Service Account key file: https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
24+
.. _Authentication Getting Started Guide:
25+
https://cloud.google.com/docs/authentication/getting-started
4826

4927
Install Dependencies
5028
++++++++++++++++++++

bigtable/hello/README.rst

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,12 @@ Setup
1717
Authentication
1818
++++++++++++++
1919

20-
Authentication is typically done through `Application Default Credentials`_,
21-
which means you do not have to change the code to authenticate as long as
22-
your environment has credentials. You have a few options for setting up
23-
authentication:
20+
This sample requires you to have authentication setup. Refer to the
21+
`Authentication Getting Started Guide`_ for instructions on setting up
22+
credentials for applications.
2423

25-
#. When running locally, use the `Google Cloud SDK`_
26-
27-
.. code-block:: bash
28-
29-
gcloud auth application-default login
30-
31-
32-
#. When running on App Engine or Compute Engine, credentials are already
33-
set-up. However, you may need to configure your Compute Engine instance
34-
with `additional scopes`_.
35-
36-
#. You can create a `Service Account key file`_. This file can be used to
37-
authenticate to Google Cloud Platform services from any environment. To use
38-
the file, set the ``GOOGLE_APPLICATION_CREDENTIALS`` environment variable to
39-
the path to the key file, for example:
40-
41-
.. code-block:: bash
42-
43-
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
44-
45-
.. _Application Default Credentials: https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
46-
.. _additional scopes: https://cloud.google.com/compute/docs/authentication#using
47-
.. _Service Account key file: https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
24+
.. _Authentication Getting Started Guide:
25+
https://cloud.google.com/docs/authentication/getting-started
4826

4927
Install Dependencies
5028
++++++++++++++++++++

bigtable/hello_happybase/README.rst

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,12 @@ Setup
2424
Authentication
2525
++++++++++++++
2626

27-
Authentication is typically done through `Application Default Credentials`_,
28-
which means you do not have to change the code to authenticate as long as
29-
your environment has credentials. You have a few options for setting up
30-
authentication:
27+
This sample requires you to have authentication setup. Refer to the
28+
`Authentication Getting Started Guide`_ for instructions on setting up
29+
credentials for applications.
3130

32-
#. When running locally, use the `Google Cloud SDK`_
33-
34-
.. code-block:: bash
35-
36-
gcloud auth application-default login
37-
38-
39-
#. When running on App Engine or Compute Engine, credentials are already
40-
set-up. However, you may need to configure your Compute Engine instance
41-
with `additional scopes`_.
42-
43-
#. You can create a `Service Account key file`_. This file can be used to
44-
authenticate to Google Cloud Platform services from any environment. To use
45-
the file, set the ``GOOGLE_APPLICATION_CREDENTIALS`` environment variable to
46-
the path to the key file, for example:
47-
48-
.. code-block:: bash
49-
50-
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
51-
52-
.. _Application Default Credentials: https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
53-
.. _additional scopes: https://cloud.google.com/compute/docs/authentication#using
54-
.. _Service Account key file: https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
31+
.. _Authentication Getting Started Guide:
32+
https://cloud.google.com/docs/authentication/getting-started
5533

5634
Install Dependencies
5735
++++++++++++++++++++

bigtable/metricscaler/README.rst

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,12 @@ Setup
2121
Authentication
2222
++++++++++++++
2323

24-
Authentication is typically done through `Application Default Credentials`_,
25-
which means you do not have to change the code to authenticate as long as
26-
your environment has credentials. You have a few options for setting up
27-
authentication:
24+
This sample requires you to have authentication setup. Refer to the
25+
`Authentication Getting Started Guide`_ for instructions on setting up
26+
credentials for applications.
2827

29-
#. When running locally, use the `Google Cloud SDK`_
30-
31-
.. code-block:: bash
32-
33-
gcloud auth application-default login
34-
35-
36-
#. When running on App Engine or Compute Engine, credentials are already
37-
set-up. However, you may need to configure your Compute Engine instance
38-
with `additional scopes`_.
39-
40-
#. You can create a `Service Account key file`_. This file can be used to
41-
authenticate to Google Cloud Platform services from any environment. To use
42-
the file, set the ``GOOGLE_APPLICATION_CREDENTIALS`` environment variable to
43-
the path to the key file, for example:
44-
45-
.. code-block:: bash
46-
47-
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
48-
49-
.. _Application Default Credentials: https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
50-
.. _additional scopes: https://cloud.google.com/compute/docs/authentication#using
51-
.. _Service Account key file: https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
28+
.. _Authentication Getting Started Guide:
29+
https://cloud.google.com/docs/authentication/getting-started
5230

5331
Install Dependencies
5432
++++++++++++++++++++

container_engine/api-client/README.rst

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,12 @@ Setup
1717
Authentication
1818
++++++++++++++
1919

20-
Authentication is typically done through `Application Default Credentials`_,
21-
which means you do not have to change the code to authenticate as long as
22-
your environment has credentials. You have a few options for setting up
23-
authentication:
20+
This sample requires you to have authentication setup. Refer to the
21+
`Authentication Getting Started Guide`_ for instructions on setting up
22+
credentials for applications.
2423

25-
#. When running locally, use the `Google Cloud SDK`_
26-
27-
.. code-block:: bash
28-
29-
gcloud auth application-default login
30-
31-
32-
#. When running on App Engine or Compute Engine, credentials are already
33-
set-up. However, you may need to configure your Compute Engine instance
34-
with `additional scopes`_.
35-
36-
#. You can create a `Service Account key file`_. This file can be used to
37-
authenticate to Google Cloud Platform services from any environment. To use
38-
the file, set the ``GOOGLE_APPLICATION_CREDENTIALS`` environment variable to
39-
the path to the key file, for example:
40-
41-
.. code-block:: bash
42-
43-
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
44-
45-
.. _Application Default Credentials: https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
46-
.. _additional scopes: https://cloud.google.com/compute/docs/authentication#using
47-
.. _Service Account key file: https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
24+
.. _Authentication Getting Started Guide:
25+
https://cloud.google.com/docs/authentication/getting-started
4826

4927
Install Dependencies
5028
++++++++++++++++++++

datastore/cloud-client/README.rst

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,12 @@ Setup
1717
Authentication
1818
++++++++++++++
1919

20-
Authentication is typically done through `Application Default Credentials`_,
21-
which means you do not have to change the code to authenticate as long as
22-
your environment has credentials. You have a few options for setting up
23-
authentication:
20+
This sample requires you to have authentication setup. Refer to the
21+
`Authentication Getting Started Guide`_ for instructions on setting up
22+
credentials for applications.
2423

25-
#. When running locally, use the `Google Cloud SDK`_
26-
27-
.. code-block:: bash
28-
29-
gcloud auth application-default login
30-
31-
32-
#. When running on App Engine or Compute Engine, credentials are already
33-
set-up. However, you may need to configure your Compute Engine instance
34-
with `additional scopes`_.
35-
36-
#. You can create a `Service Account key file`_. This file can be used to
37-
authenticate to Google Cloud Platform services from any environment. To use
38-
the file, set the ``GOOGLE_APPLICATION_CREDENTIALS`` environment variable to
39-
the path to the key file, for example:
40-
41-
.. code-block:: bash
42-
43-
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
44-
45-
.. _Application Default Credentials: https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
46-
.. _additional scopes: https://cloud.google.com/compute/docs/authentication#using
47-
.. _Service Account key file: https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
24+
.. _Authentication Getting Started Guide:
25+
https://cloud.google.com/docs/authentication/getting-started
4826

4927
Install Dependencies
5028
++++++++++++++++++++

dns/api/README.rst

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,12 @@ Setup
1717
Authentication
1818
++++++++++++++
1919

20-
Authentication is typically done through `Application Default Credentials`_,
21-
which means you do not have to change the code to authenticate as long as
22-
your environment has credentials. You have a few options for setting up
23-
authentication:
20+
This sample requires you to have authentication setup. Refer to the
21+
`Authentication Getting Started Guide`_ for instructions on setting up
22+
credentials for applications.
2423

25-
#. When running locally, use the `Google Cloud SDK`_
26-
27-
.. code-block:: bash
28-
29-
gcloud auth application-default login
30-
31-
32-
#. When running on App Engine or Compute Engine, credentials are already
33-
set-up. However, you may need to configure your Compute Engine instance
34-
with `additional scopes`_.
35-
36-
#. You can create a `Service Account key file`_. This file can be used to
37-
authenticate to Google Cloud Platform services from any environment. To use
38-
the file, set the ``GOOGLE_APPLICATION_CREDENTIALS`` environment variable to
39-
the path to the key file, for example:
40-
41-
.. code-block:: bash
42-
43-
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
44-
45-
.. _Application Default Credentials: https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
46-
.. _additional scopes: https://cloud.google.com/compute/docs/authentication#using
47-
.. _Service Account key file: https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
24+
.. _Authentication Getting Started Guide:
25+
https://cloud.google.com/docs/authentication/getting-started
4826

4927
Install Dependencies
5028
++++++++++++++++++++

error_reporting/README.rst

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,34 +18,12 @@ Setup
1818
Authentication
1919
++++++++++++++
2020

21-
Authentication is typically done through `Application Default Credentials`_,
22-
which means you do not have to change the code to authenticate as long as
23-
your environment has credentials. You have a few options for setting up
24-
authentication:
21+
This sample requires you to have authentication setup. Refer to the
22+
`Authentication Getting Started Guide`_ for instructions on setting up
23+
credentials for applications.
2524

26-
#. When running locally, use the `Google Cloud SDK`_
27-
28-
.. code-block:: bash
29-
30-
gcloud auth application-default login
31-
32-
33-
#. When running on App Engine or Compute Engine, credentials are already
34-
set-up. However, you may need to configure your Compute Engine instance
35-
with `additional scopes`_.
36-
37-
#. You can create a `Service Account key file`_. This file can be used to
38-
authenticate to Google Cloud Platform services from any environment. To use
39-
the file, set the ``GOOGLE_APPLICATION_CREDENTIALS`` environment variable to
40-
the path to the key file, for example:
41-
42-
.. code-block:: bash
43-
44-
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
45-
46-
.. _Application Default Credentials: https://cloud.google.com/docs/authentication#getting_credentials_for_server-centric_flow
47-
.. _additional scopes: https://cloud.google.com/compute/docs/authentication#using
48-
.. _Service Account key file: https://developers.google.com/identity/protocols/OAuth2ServiceAccount#creatinganaccount
25+
.. _Authentication Getting Started Guide:
26+
https://cloud.google.com/docs/authentication/getting-started
4927

5028
Install Dependencies
5129
++++++++++++++++++++

0 commit comments

Comments
 (0)