GeezerVison is showing github.com — Update all generated readme auth instructions (#1121) · Reality2byte/python-docs-samples@dcfebd1
File treeExpand file treeCollapse file tree Open diff view settings container_engine/api-client scripts/readme-gen/templates
Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: bigquery/api/README.rst +5-27Lines changed: 5 additions & 27 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,34 +17,12 @@ Setup | 17 | 17 | Authentication | 18 | 18 | ++++++++++++++ | 19 | 19 |
| 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. | 24 | 23 |
| 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 | 48 | 26 |
| 49 | 27 | Install Dependencies | 50 | 28 | ++++++++++++++++++++ | |
Collapse file Copy file name to clipboardExpand all lines: bigquery/rest/README.rst +5-27Lines changed: 5 additions & 27 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,34 +17,12 @@ Setup | 17 | 17 | Authentication | 18 | 18 | ++++++++++++++ | 19 | 19 |
| 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. | 24 | 23 |
| 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 | 48 | 26 |
| 49 | 27 | Install Dependencies | 50 | 28 | ++++++++++++++++++++ | |
Collapse file Copy file name to clipboardExpand all lines: bigtable/hello/README.rst +5-27Lines changed: 5 additions & 27 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,34 +17,12 @@ Setup | 17 | 17 | Authentication | 18 | 18 | ++++++++++++++ | 19 | 19 |
| 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. | 24 | 23 |
| 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 | 48 | 26 |
| 49 | 27 | Install Dependencies | 50 | 28 | ++++++++++++++++++++ | |
Collapse file Copy file name to clipboardExpand all lines: bigtable/hello_happybase/README.rst +5-27Lines changed: 5 additions & 27 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -24,34 +24,12 @@ Setup | 24 | 24 | Authentication | 25 | 25 | ++++++++++++++ | 26 | 26 |
| 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. | 31 | 30 |
| 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 | 55 | 33 |
| 56 | 34 | Install Dependencies | 57 | 35 | ++++++++++++++++++++ | |
Collapse file Copy file name to clipboardExpand all lines: bigtable/metricscaler/README.rst +5-27Lines changed: 5 additions & 27 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -21,34 +21,12 @@ Setup | 21 | 21 | Authentication | 22 | 22 | ++++++++++++++ | 23 | 23 |
| 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. | 28 | 27 |
| 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 | 52 | 30 |
| 53 | 31 | Install Dependencies | 54 | 32 | ++++++++++++++++++++ | |
Collapse file Copy file name to clipboardExpand all lines: container_engine/api-client/README.rst +5-27Lines changed: 5 additions & 27 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,34 +17,12 @@ Setup | 17 | 17 | Authentication | 18 | 18 | ++++++++++++++ | 19 | 19 |
| 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. | 24 | 23 |
| 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 | 48 | 26 |
| 49 | 27 | Install Dependencies | 50 | 28 | ++++++++++++++++++++ | |
Collapse file Copy file name to clipboardExpand all lines: datastore/cloud-client/README.rst +5-27Lines changed: 5 additions & 27 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,34 +17,12 @@ Setup | 17 | 17 | Authentication | 18 | 18 | ++++++++++++++ | 19 | 19 |
| 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. | 24 | 23 |
| 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 | 48 | 26 |
| 49 | 27 | Install Dependencies | 50 | 28 | ++++++++++++++++++++ | |
Collapse file Copy file name to clipboardExpand all lines: dns/api/README.rst +5-27Lines changed: 5 additions & 27 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -17,34 +17,12 @@ Setup | 17 | 17 | Authentication | 18 | 18 | ++++++++++++++ | 19 | 19 |
| 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. | 24 | 23 |
| 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 | 48 | 26 |
| 49 | 27 | Install Dependencies | 50 | 28 | ++++++++++++++++++++ | |
Collapse file Copy file name to clipboardExpand all lines: error_reporting/README.rst +5-27Lines changed: 5 additions & 27 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -18,34 +18,12 @@ Setup | 18 | 18 | Authentication | 19 | 19 | ++++++++++++++ | 20 | 20 |
| 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. | 25 | 24 |
| 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 | 49 | 27 |
| 50 | 28 | Install Dependencies | 51 | 29 | ++++++++++++++++++++ | |
|