From 695eb339cda445314b48a238c08d855991d34386 Mon Sep 17 00:00:00 2001 From: michaelawyu Date: Fri, 6 Apr 2018 11:29:48 -0700 Subject: [PATCH] Regenerate the README files and fix the Open in Cloud Shell link for some samples --- bigquery/api/README.rst | 20 +++--- bigquery/cloud-client/README.rst | 20 +++--- bigquery/rest/README.rst | 4 +- bigtable/hello/README.rst | 4 +- bigtable/hello_happybase/README.rst | 4 +- bigtable/metricscaler/README.rst | 4 +- cdn/README.rst | 2 +- container_engine/api-client/README.rst | 4 +- datastore/cloud-client/README.rst | 8 +-- dlp/README.rst | 65 ++++++++++++------- dns/api/README.rst | 4 +- error_reporting/api/README.rst | 4 +- iot/api-client/end_to_end_example/README.rst | 26 ++++++-- iot/api-client/gcs_file_to_device/README.rst | 4 +- iot/api-client/http_example/README.rst | 2 +- iot/api-client/manager/README.rst | 10 +-- iot/api-client/mqtt_example/README.rst | 2 +- iot/api-client/scripts/README.rst | 6 +- kms/api-client/README.rst | 6 +- language/api/README.rst | 4 +- language/classify_text/README.rst | 4 +- language/cloud-client/v1/README.rst | 6 +- language/cloud-client/v1beta2/README.rst | 6 +- language/tutorial/README.rst | 4 +- logging/cloud-client/README.rst | 8 +-- monitoring/api/v3/api-client/README.rst | 6 +- monitoring/api/v3/cloud-client/README.rst | 6 +- pubsub/cloud-client/README.rst | 33 +++++++--- scripts/readme-gen/templates/README.tmpl.rst | 2 +- spanner/cloud-client/README.rst | 36 ++++++++-- speech/cloud-client/README.rst | 12 ++-- storage/api/README.rst | 10 +-- storage/cloud-client/README.rst | 12 ++-- storage/transfer_service/README.rst | 8 +-- texttospeech/cloud-client/README.rst | 8 +-- translate/cloud-client/README.rst | 11 ++-- video/cloud-client/analyze/README.rst | 2 +- video/cloud-client/labels/README.rst | 4 +- video/cloud-client/quickstart/README.rst | 4 +- video/cloud-client/shotchange/README.rst | 4 +- vision/api/label/README.rst | 4 +- vision/cloud-client/crop_hints/README.rst | 4 +- vision/cloud-client/detect/README.rst | 14 ++-- vision/cloud-client/document_text/README.rst | 4 +- vision/cloud-client/face_detection/README.rst | 4 +- vision/cloud-client/quickstart/README.rst | 4 +- vision/cloud-client/web/README.rst | 4 +- 47 files changed, 256 insertions(+), 171 deletions(-) diff --git a/bigquery/api/README.rst b/bigquery/api/README.rst index 7a1618f7f1ef..04de5dc0c511 100644 --- a/bigquery/api/README.rst +++ b/bigquery/api/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google BigQuery. `Google BigQuery`_ is Googl -.. _Google BigQuery: https://cloud.google.com/bigquery/docs +.. _Google BigQuery: https://cloud.google.com/bigquery/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Getting started +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/getting_started.py;bigquery/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/getting_started.py,bigquery/api/README.rst @@ -95,7 +95,7 @@ Sync query +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/sync_query.py;bigquery/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/sync_query.py,bigquery/api/README.rst @@ -133,7 +133,7 @@ Async query +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/async_query.py;bigquery/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/async_query.py,bigquery/api/README.rst @@ -173,7 +173,7 @@ Listing datasets and projects +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/list_datasets_projects.py;bigquery/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/list_datasets_projects.py,bigquery/api/README.rst @@ -206,7 +206,7 @@ Load data by POST +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/load_data_by_post.py;bigquery/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/load_data_by_post.py,bigquery/api/README.rst @@ -245,7 +245,7 @@ Load data from CSV +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/load_data_from_csv.py;bigquery/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/load_data_from_csv.py,bigquery/api/README.rst @@ -290,7 +290,7 @@ Load streaming data +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/streaming.py;bigquery/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/streaming.py,bigquery/api/README.rst @@ -330,7 +330,7 @@ Export data to Cloud Storage +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/export_data_to_cloud_storage.py;bigquery/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/export_data_to_cloud_storage.py,bigquery/api/README.rst @@ -378,7 +378,7 @@ User auth with an installed app +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/installed_app.py;bigquery/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/api/installed_app.py,bigquery/api/README.rst diff --git a/bigquery/cloud-client/README.rst b/bigquery/cloud-client/README.rst index b0e5810a32ff..60b51a7cac72 100644 --- a/bigquery/cloud-client/README.rst +++ b/bigquery/cloud-client/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google BigQuery. `Google BigQuery`_ is Googl -.. _Google BigQuery: https://cloud.google.com/bigquery/docs +.. _Google BigQuery: https://cloud.google.com/bigquery/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Simple Application +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/simple_app.py;bigquery/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/simple_app.py,bigquery/cloud-client/README.rst @@ -75,7 +75,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/quickstart.py;bigquery/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/quickstart.py,bigquery/cloud-client/README.rst @@ -91,7 +91,7 @@ Query +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/query.py;bigquery/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/query.py,bigquery/cloud-client/README.rst @@ -133,7 +133,7 @@ Parameterized Query +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/query_params.py;bigquery/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/query_params.py,bigquery/cloud-client/README.rst @@ -172,7 +172,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/snippets.py;bigquery/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/snippets.py,bigquery/cloud-client/README.rst @@ -230,7 +230,7 @@ Load data from a file +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/load_data_from_file.py;bigquery/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/load_data_from_file.py,bigquery/cloud-client/README.rst @@ -267,7 +267,7 @@ Load data from Cloud Storage +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/load_data_from_gcs.py;bigquery/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/load_data_from_gcs.py,bigquery/cloud-client/README.rst @@ -305,7 +305,7 @@ Load streaming data +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/stream_data.py;bigquery/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/stream_data.py,bigquery/cloud-client/README.rst @@ -342,7 +342,7 @@ Export data to Cloud Storage +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/export_data_to_gcs.py;bigquery/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/cloud-client/export_data_to_gcs.py,bigquery/cloud-client/README.rst diff --git a/bigquery/rest/README.rst b/bigquery/rest/README.rst index 1108184feb66..33fcbdc94c96 100644 --- a/bigquery/rest/README.rst +++ b/bigquery/rest/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google BigQuery. `Google BigQuery`_ is Googl -.. _Google BigQuery: https://cloud.google.com/bigquery/docs +.. _Google BigQuery: https://cloud.google.com/bigquery/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Label a dataset or table +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/rest/labels.py;bigquery/rest/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigquery/rest/labels.py,bigquery/rest/README.rst diff --git a/bigtable/hello/README.rst b/bigtable/hello/README.rst index cd472279ba6b..d582c88b5ccd 100644 --- a/bigtable/hello/README.rst +++ b/bigtable/hello/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud Bigtable. `Google Cloud Bigtabl -.. _Google Cloud Bigtable: https://cloud.google.com/bigtable/docs +.. _Google Cloud Bigtable: https://cloud.google.com/bigtable/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Basic example +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigtable/hello/main.py;bigtable/hello/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigtable/hello/main.py,bigtable/hello/README.rst diff --git a/bigtable/hello_happybase/README.rst b/bigtable/hello_happybase/README.rst index 9c061babd753..99aa9686b0bf 100644 --- a/bigtable/hello_happybase/README.rst +++ b/bigtable/hello_happybase/README.rst @@ -19,7 +19,7 @@ interact with Cloud Bigtable. .. _HappyBase API: http://happybase.readthedocs.io/en/stable/ -.. _Google Cloud Bigtable: https://cloud.google.com/bigtable/docs +.. _Google Cloud Bigtable: https://cloud.google.com/bigtable/docs Setup ------------------------------------------------------------------------------- @@ -66,7 +66,7 @@ Basic example +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigtable/hello_happybase/main.py;bigtable/hello_happybase/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigtable/hello_happybase/main.py,bigtable/hello_happybase/README.rst diff --git a/bigtable/metricscaler/README.rst b/bigtable/metricscaler/README.rst index 81ae674ba0ba..9096435838bd 100644 --- a/bigtable/metricscaler/README.rst +++ b/bigtable/metricscaler/README.rst @@ -16,7 +16,7 @@ to scale Cloud Bigtable based on CPU usage. .. _Stackdriver Monitoring: http://cloud.google.com/monitoring/docs/ -.. _Google Cloud Bigtable: https://cloud.google.com/bigtable/docs/ +.. _Google Cloud Bigtable: https://cloud.google.com/bigtable/docs/ Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Metricscaling example +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigtable/metricscaler/metricscaler.py;bigtable/metricscaler/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=bigtable/metricscaler/metricscaler.py,bigtable/metricscaler/README.rst diff --git a/cdn/README.rst b/cdn/README.rst index 18b522dc360d..0bb6537d8837 100644 --- a/cdn/README.rst +++ b/cdn/README.rst @@ -22,7 +22,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=cdn/snippets.py;cdn/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=cdn/snippets.py,cdn/README.rst diff --git a/container_engine/api-client/README.rst b/container_engine/api-client/README.rst index f60ff7288e6c..b8a801982c33 100644 --- a/container_engine/api-client/README.rst +++ b/container_engine/api-client/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Container Engine. `Google Container E -.. _Google Container Engine: https://cloud.google.com/container-engine/docs/ +.. _Google Container Engine: https://cloud.google.com/container-engine/docs/ Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=container_engine/api-client/snippets.py;container_engine/api-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=container_engine/api-client/snippets.py,container_engine/api-client/README.rst diff --git a/datastore/cloud-client/README.rst b/datastore/cloud-client/README.rst index 4fcb7406081b..90edd6c98175 100644 --- a/datastore/cloud-client/README.rst +++ b/datastore/cloud-client/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud Datastore. `Google Cloud Datast -.. _Google Cloud Datastore: https://cloud.google.com/datastore/docs +.. _Google Cloud Datastore: https://cloud.google.com/datastore/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=datastore/cloud-client/quickstart.py;datastore/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=datastore/cloud-client/quickstart.py,datastore/cloud-client/README.rst @@ -75,7 +75,7 @@ Tasks example app +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=datastore/cloud-client/tasks.py;datastore/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=datastore/cloud-client/tasks.py,datastore/cloud-client/README.rst @@ -91,7 +91,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=datastore/cloud-client/snippets.py;datastore/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=datastore/cloud-client/snippets.py,datastore/cloud-client/README.rst diff --git a/dlp/README.rst b/dlp/README.rst index bcfca5d3e564..cea3edbb1b07 100644 --- a/dlp/README.rst +++ b/dlp/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Data Loss Prevention. `Google Data Lo -.. _Google Data Loss Prevention: https://cloud.google.com/dlp/docs/ +.. _Google Data Loss Prevention: https://cloud.google.com/dlp/docs/ Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=dlp/quickstart.py;dlp/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=dlp/quickstart.py,dlp/README.rst @@ -75,7 +75,7 @@ Inspect Content +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=dlp/inspect_content.py;dlp/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=dlp/inspect_content.py,dlp/README.rst @@ -86,19 +86,22 @@ To run this sample: $ python inspect_content.py - usage: inspect_content.py [-h] {string,file,gcs} ... + usage: inspect_content.py [-h] {string,file,gcs,datastore,bigquery} ... Sample app that uses the Data Loss Prevention API to inspect a string, a local file or a file on Google Cloud Storage. positional arguments: - {string,file,gcs} Select how to submit content to the API. - string Inspect a string. - file Inspect a local file. - gcs Inspect files on Google Cloud Storage. + {string,file,gcs,datastore,bigquery} + Select how to submit content to the API. + string Inspect a string. + file Inspect a local file. + gcs Inspect files on Google Cloud Storage. + datastore Inspect files on Google Datastore. + bigquery Inspect files on Google BigQuery. optional arguments: - -h, --help show this help message and exit + -h, --help show this help message and exit @@ -106,7 +109,7 @@ Redact Content +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=dlp/redact.py;dlp/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=dlp/redact.py,dlp/README.rst @@ -117,18 +120,35 @@ To run this sample: $ python redact.py - usage: redact.py [-h] {string,image} ... + usage: redact.py [-h] [--project PROJECT] [--info_types INFO_TYPES] + [--min_likelihood {LIKELIHOOD_UNSPECIFIED,VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY}] + [--mime_type MIME_TYPE] + filename output_filename Sample app that uses the Data Loss Prevent API to redact the contents of a string or an image file. positional arguments: - {string,image} Select how to submit content to the API. - string Inspect a string. - image Inspect an image file. + filename The path to the file to inspect. + output_filename The path to which the redacted image will be written. optional arguments: - -h, --help show this help message and exit + -h, --help show this help message and exit + --project PROJECT The Google Cloud project id to use as a parent + resource. + --info_types INFO_TYPES + Strings representing info types to look for. A full + list of info categories and types is available from + the API. Examples include "FIRST_NAME", "LAST_NAME", + "EMAIL_ADDRESS". If unspecified, the three above + examples will be used. + --min_likelihood {LIKELIHOOD_UNSPECIFIED,VERY_UNLIKELY,UNLIKELY,POSSIBLE,LIKELY,VERY_LIKELY} + A string representing the minimum likelihood threshold + that constitutes a match. + --mime_type MIME_TYPE + The MIME type of the file. If not specified, the type + is inferred via the Python standard library's + mimetypes module. @@ -136,7 +156,7 @@ Display Metadata +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=dlp/metadata.py;dlp/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=dlp/metadata.py,dlp/README.rst @@ -147,19 +167,18 @@ To run this sample: $ python metadata.py - usage: metadata.py [-h] {categories,info_types} ... + usage: metadata.py [-h] [--language_code LANGUAGE_CODE] [--filter FILTER] Sample app that queries the Data Loss Prevention API for supported categories and info types. - positional arguments: - {categories,info_types} - Select which type of metadata to view. - categories Fetch the list of info type categories. - info_types Fetch the list of info types in a specified category. - optional arguments: -h, --help show this help message and exit + --language_code LANGUAGE_CODE + The BCP-47 language code to use, e.g. 'en-US'. + --filter FILTER An optional filter to only return info types supported + by certain parts of the API. Defaults to + "supported_by=INSPECT". diff --git a/dns/api/README.rst b/dns/api/README.rst index 8655daa596ff..4fac7456792c 100644 --- a/dns/api/README.rst +++ b/dns/api/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud DNS. `Google Cloud DNS`_ allows -.. _Google Cloud DNS: https://cloud.google.com/dns/docs +.. _Google Cloud DNS: https://cloud.google.com/dns/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=dns/api/main.py;dns/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=dns/api/main.py,dns/api/README.rst diff --git a/error_reporting/api/README.rst b/error_reporting/api/README.rst index c58987171d42..63881855ac7a 100644 --- a/error_reporting/api/README.rst +++ b/error_reporting/api/README.rst @@ -13,7 +13,7 @@ This directory contains samples for Stackdriver Error Reporting. `Stackdriver Er -.. _Stackdriver Error Reporting: https://cloud.google.com/error-reporting/docs/ +.. _Stackdriver Error Reporting: https://cloud.google.com/error-reporting/docs/ Setup ------------------------------------------------------------------------------- @@ -60,7 +60,7 @@ Report Exception +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=error_reporting/api/report_exception.py;error_reporting/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=error_reporting/api/report_exception.py,error_reporting/api/README.rst diff --git a/iot/api-client/end_to_end_example/README.rst b/iot/api-client/end_to_end_example/README.rst index 8e0d4fc7e6ba..d123678b0ba5 100644 --- a/iot/api-client/end_to_end_example/README.rst +++ b/iot/api-client/end_to_end_example/README.rst @@ -1,15 +1,19 @@ .. This file is automatically generated. Do not edit this file directly. -Google Cloud IoT Core API Python Samples +Google Cloud IoT Core Python Samples =============================================================================== -This directory contains samples for Google Cloud IoT Core API. `Google Cloud IoT Core`_ allows developers to easily integrate Publish and Subscribe functionality with devices and programmatically manage device authorization. -Before you run the sample, you must retrieve the Google root certificate. For example, `wget https://pki.goog/roots.pem` or `curl https://pki.goog/roots.pem > roots.pem`. +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/README.rst +This directory contains samples for Google Cloud IoT Core. `Google Cloud IoT Core`_ allows developers to easily integrate Publish and Subscribe functionality with devices and programmatically manage device authorization. +Before you run the sample, you must retrieve the Google root certificate. For example, ``wget https://pki.goog/roots.pem`` or ``curl https://pki.goog/roots.pem > roots.pem``. -.. _Google Cloud IoT Core API: https://cloud.google.com/iot/docs + + +.. _Google Cloud IoT Core: https://cloud.google.com/iot/docs Setup ------------------------------------------------------------------------------- @@ -55,6 +59,10 @@ Samples Server +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/cloudiot_pubsub_example_server.py,/README.rst + + To run this sample: @@ -84,6 +92,10 @@ To run this sample: Device +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +.. image:: https://gstatic.com/cloudssh/images/open-btn.png + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/cloudiot_pubsub_example_mqtt_device.py,/README.rst + + To run this sample: @@ -103,13 +115,14 @@ To run this sample: [--num_messages NUM_MESSAGES] [--mqtt_bridge_hostname MQTT_BRIDGE_HOSTNAME] [--mqtt_bridge_port MQTT_BRIDGE_PORT] + [--message_type {event,state}] Example Google Cloud IoT MQTT device connection code. optional arguments: -h, --help show this help message and exit --project_id PROJECT_ID - GCP cloud project name + GCP cloud project name. --registry_id REGISTRY_ID Cloud IoT registry id --device_id DEVICE_ID @@ -128,6 +141,9 @@ To run this sample: MQTT bridge hostname. --mqtt_bridge_port MQTT_BRIDGE_PORT MQTT bridge port. + --message_type {event,state} + Indicates whether the message to be published is a + telemetry event or a device state message. diff --git a/iot/api-client/gcs_file_to_device/README.rst b/iot/api-client/gcs_file_to_device/README.rst index b855d8f5256c..a0712df618de 100644 --- a/iot/api-client/gcs_file_to_device/README.rst +++ b/iot/api-client/gcs_file_to_device/README.rst @@ -60,7 +60,7 @@ Server +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/gcs_example_mqtt_device.py;/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/gcs_example_mqtt_device.py,/README.rst @@ -112,7 +112,7 @@ Device +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/gcs_send_to_device.py;/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/gcs_send_to_device.py,/README.rst diff --git a/iot/api-client/http_example/README.rst b/iot/api-client/http_example/README.rst index 047ee6f26c26..fd5224cbdb15 100644 --- a/iot/api-client/http_example/README.rst +++ b/iot/api-client/http_example/README.rst @@ -59,7 +59,7 @@ HTTP Device Client Example +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=iot/api-client/http_example/cloudiot_http_example.py;iot/api-client/http_example/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=iot/api-client/http_example/cloudiot_http_example.py,iot/api-client/http_example/README.rst diff --git a/iot/api-client/manager/README.rst b/iot/api-client/manager/README.rst index bdbdb768c442..ff551667eb62 100644 --- a/iot/api-client/manager/README.rst +++ b/iot/api-client/manager/README.rst @@ -59,7 +59,7 @@ Manager +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=iot/api-client/manager/manager.py;iot/api-client/manager/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=iot/api-client/manager/manager.py,iot/api-client/manager/README.rst @@ -70,8 +70,8 @@ To run this sample: $ python manager.py - usage: manager.py [-h] --pubsub_topic PUBSUB_TOPIC - [--cloud_region CLOUD_REGION] [--config CONFIG] + usage: manager.py [-h] [--cloud_region CLOUD_REGION] + [--pubsub_topic PUBSUB_TOPIC] [--config CONFIG] [--device_id DEVICE_ID] [--ec_public_key_file EC_PUBLIC_KEY_FILE] [--project_id PROJECT_ID] [--registry_id REGISTRY_ID] @@ -126,11 +126,11 @@ To run this sample: optional arguments: -h, --help show this help message and exit + --cloud_region CLOUD_REGION + GCP cloud region --pubsub_topic PUBSUB_TOPIC Google Cloud Pub/Sub topic. Format is projects/project_id/topics/topic-id - --cloud_region CLOUD_REGION - GCP cloud region --config CONFIG Configuration sent to a device. --device_id DEVICE_ID Device id. diff --git a/iot/api-client/mqtt_example/README.rst b/iot/api-client/mqtt_example/README.rst index d61a22f211d5..e26716d593bb 100644 --- a/iot/api-client/mqtt_example/README.rst +++ b/iot/api-client/mqtt_example/README.rst @@ -59,7 +59,7 @@ MQTT Device Client Example +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=iot/api-client/mqtt_example/cloudiot_mqtt_example.py;iot/api-client/mqtt_example/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=iot/api-client/mqtt_example/cloudiot_mqtt_example.py,iot/api-client/mqtt_example/README.rst diff --git a/iot/api-client/scripts/README.rst b/iot/api-client/scripts/README.rst index ee82c532e549..051d4a12ac4e 100644 --- a/iot/api-client/scripts/README.rst +++ b/iot/api-client/scripts/README.rst @@ -7,12 +7,12 @@ Google Cloud IoT Core Python Samples :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=iot/api-client/scripts/README.rst -This directory contains samples for Google Cloud IoT Core. `Google Cloud IoT Core`_ is a fully-managed, globally distributed solution for managing devices and sending / receiving messages from devices. Set the `GOOGLE_CLOUD_PROJECT` environment variable and call the script with your topic ID. +This directory contains samples for Google Cloud IoT Core. `Google Cloud IoT Core`_ is a fully-managed, globally distributed solution for managing devices and sending / receiving messages from devices. Set the ``GOOGLE_CLOUD_PROJECT`` environment variable and call the script with your topic ID. -.. _Google Cloud IoT Core: https://cloud.google.com/iot/ +.. _Google Cloud IoT Core: https://cloud.google.com/iot/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ PubSub helper +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=iot/api-client/scripts/iam.py;iot/api-client/scripts/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=iot/api-client/scripts/iam.py,iot/api-client/scripts/README.rst diff --git a/kms/api-client/README.rst b/kms/api-client/README.rst index 8fdace9c3e66..9bf0471bde92 100644 --- a/kms/api-client/README.rst +++ b/kms/api-client/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud KMS API. The `Google Cloud KMS -.. _Google Cloud KMS API: https://cloud.google.com/kms/docs/ +.. _Google Cloud KMS API: https://cloud.google.com/kms/docs/ Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kms/api-client/quickstart.py;kms/api-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kms/api-client/quickstart.py,kms/api-client/README.rst @@ -75,7 +75,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kms/api-client/snippets.py;kms/api-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=kms/api-client/snippets.py,kms/api-client/README.rst diff --git a/language/api/README.rst b/language/api/README.rst index 7434de167bcc..8ebbe55a279e 100644 --- a/language/api/README.rst +++ b/language/api/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud Natural Language API. The `Goog -.. _Google Cloud Natural Language API: https://cloud.google.com/natural-language/docs/ +.. _Google Cloud Natural Language API: https://cloud.google.com/natural-language/docs/ Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Analyze syntax +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/api/analyze.py;language/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/api/analyze.py,language/api/README.rst diff --git a/language/classify_text/README.rst b/language/classify_text/README.rst index 2857e0312309..2ede54da8d6a 100644 --- a/language/classify_text/README.rst +++ b/language/classify_text/README.rst @@ -16,7 +16,7 @@ This tutorial demostrates how to use the `classify_text` method to classify cont -.. _Google Cloud Natural Language API: https://cloud.google.com/natural-language/docs/ +.. _Google Cloud Natural Language API: https://cloud.google.com/natural-language/docs/ Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Classify Text Tutorial +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/classify_text/classify_text_tutorial.py;language/classify_text/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/classify_text/classify_text_tutorial.py,language/classify_text/README.rst diff --git a/language/cloud-client/v1/README.rst b/language/cloud-client/v1/README.rst index 2e93e9af13fd..7d727df6d81a 100644 --- a/language/cloud-client/v1/README.rst +++ b/language/cloud-client/v1/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Natural Language API. The `Goog -.. _Google Cloud Natural Language API: https://cloud.google.com/natural-language/docs/ +.. _Google Cloud Natural Language API: https://cloud.google.com/natural-language/docs/ Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/cloud-client/v1/quickstart.py;language/cloud-client/v1/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/cloud-client/v1/quickstart.py,language/cloud-client/v1/README.rst @@ -79,7 +79,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/cloud-client/v1/snippets.py;language/cloud-client/v1/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/cloud-client/v1/snippets.py,language/cloud-client/v1/README.rst diff --git a/language/cloud-client/v1beta2/README.rst b/language/cloud-client/v1beta2/README.rst index aa4ce4524827..e981c2481e03 100644 --- a/language/cloud-client/v1beta2/README.rst +++ b/language/cloud-client/v1beta2/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Natural Language API. The `Goog -.. _Google Cloud Natural Language API: https://cloud.google.com/natural-language/docs/ +.. _Google Cloud Natural Language API: https://cloud.google.com/natural-language/docs/ Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/cloud-client/v1beta2/quickstart.py;language/cloud-client/v1beta2/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/cloud-client/v1beta2/quickstart.py,language/cloud-client/v1beta2/README.rst @@ -79,7 +79,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/cloud-client/v1beta2/snippets.py;language/cloud-client/v1beta2/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/cloud-client/v1beta2/snippets.py,language/cloud-client/v1beta2/README.rst diff --git a/language/tutorial/README.rst b/language/tutorial/README.rst index 202381a6f350..08e7ee90b745 100644 --- a/language/tutorial/README.rst +++ b/language/tutorial/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud Natural Language Tutorial. The -.. _Google Cloud Natural Language Tutorial: https://cloud.google.com/natural-language/docs/ +.. _Google Cloud Natural Language Tutorial: https://cloud.google.com/natural-language/docs/ Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Language tutorial +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/tutorial/tutorial.py;language/tutorial/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=language/tutorial/tutorial.py,language/tutorial/README.rst diff --git a/logging/cloud-client/README.rst b/logging/cloud-client/README.rst index 00b7fa91a84d..829cf041d2fa 100644 --- a/logging/cloud-client/README.rst +++ b/logging/cloud-client/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Stackdriver Logging. `Stackdriver Logging`_ -.. _Stackdriver Logging: https://cloud.google.com/logging/docs +.. _Stackdriver Logging: https://cloud.google.com/logging/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=logging/cloud-client/quickstart.py;logging/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=logging/cloud-client/quickstart.py,logging/cloud-client/README.rst @@ -75,7 +75,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=logging/cloud-client/snippets.py;logging/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=logging/cloud-client/snippets.py,logging/cloud-client/README.rst @@ -111,7 +111,7 @@ Export +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=logging/cloud-client/export.py;logging/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=logging/cloud-client/export.py,logging/cloud-client/README.rst diff --git a/monitoring/api/v3/api-client/README.rst b/monitoring/api/v3/api-client/README.rst index cf5057447453..39abed95555b 100644 --- a/monitoring/api/v3/api-client/README.rst +++ b/monitoring/api/v3/api-client/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Stackdriver Monitoring. `Stackdriver Monitor -.. _Stackdriver Monitoring: https://cloud.google.com/monitoring/docs +.. _Stackdriver Monitoring: https://cloud.google.com/monitoring/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ List resources +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/api-client/list_resources.py;monitoring/api/v3/api-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/api-client/list_resources.py,monitoring/api/v3/api-client/README.rst @@ -92,7 +92,7 @@ Custom metrics +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/api-client/custom_metric.py;monitoring/api/v3/api-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/api-client/custom_metric.py,monitoring/api/v3/api-client/README.rst diff --git a/monitoring/api/v3/cloud-client/README.rst b/monitoring/api/v3/cloud-client/README.rst index fe82879f0255..1428067585e6 100644 --- a/monitoring/api/v3/cloud-client/README.rst +++ b/monitoring/api/v3/cloud-client/README.rst @@ -14,7 +14,7 @@ This directory contains samples for Google Stackdriver Monitoring API. Stackdriv -.. _Google Stackdriver Monitoring API: https://cloud.google.com/monitoring/docs/ +.. _Google Stackdriver Monitoring API: https://cloud.google.com/monitoring/docs/ Setup ------------------------------------------------------------------------------- @@ -61,7 +61,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/cloud-client/quickstart.py;monitoring/api/v3/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/cloud-client/quickstart.py,monitoring/api/v3/cloud-client/README.rst @@ -77,7 +77,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/cloud-client/snippets.py;monitoring/api/v3/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=monitoring/api/v3/cloud-client/snippets.py,monitoring/api/v3/cloud-client/README.rst diff --git a/pubsub/cloud-client/README.rst b/pubsub/cloud-client/README.rst index 0ecf4b1930dd..209ab5d7f17d 100644 --- a/pubsub/cloud-client/README.rst +++ b/pubsub/cloud-client/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud Pub/Sub. `Google Cloud Pub/Sub` -.. _Google Cloud Pub/Sub: https://cloud.google.com/pubsub/docs +.. _Google Cloud Pub/Sub: https://cloud.google.com/pubsub/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=pubsub/cloud-client/quickstart.py;pubsub/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=pubsub/cloud-client/quickstart.py,pubsub/cloud-client/README.rst @@ -75,7 +75,7 @@ Publisher +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=pubsub/cloud-client/publisher.py;pubsub/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=pubsub/cloud-client/publisher.py,pubsub/cloud-client/README.rst @@ -88,7 +88,7 @@ To run this sample: usage: publisher.py [-h] project - {list,create,delete,publish,publish-with-futures,publish-with-batch-settings} + {list,create,delete,publish,publish-with-custom-attributes,publish-with-futures,publish-with-batch-settings} ... This application demonstrates how to perform basic operations on topics @@ -99,11 +99,14 @@ To run this sample: positional arguments: project Your Google Cloud project ID - {list,create,delete,publish,publish-with-futures,publish-with-batch-settings} + {list,create,delete,publish,publish-with-custom-attributes,publish-with-futures,publish-with-batch-settings} list Lists all Pub/Sub topics in the given project. create Create a new Pub/Sub topic. delete Deletes an existing Pub/Sub topic. publish Publishes multiple messages to a Pub/Sub topic. + publish-with-custom-attributes + Publishes multiple messages with custom attributes to + a Pub/Sub topic. publish-with-futures Publishes multiple messages to a Pub/Sub topic and prints their message IDs. @@ -120,7 +123,7 @@ Subscribers +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=pubsub/cloud-client/subscriber.py;pubsub/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=pubsub/cloud-client/subscriber.py,pubsub/cloud-client/README.rst @@ -133,7 +136,7 @@ To run this sample: usage: subscriber.py [-h] project - {list_in_topic,list_in_project,create,delete,receive,receive-flow-control} + {list_in_topic,list_in_project,create,create-push,delete,update,receive,receive-custom-attributes,receive-flow-control,listen_for_errors} ... This application demonstrates how to perform basic operations on @@ -144,15 +147,27 @@ To run this sample: positional arguments: project Your Google Cloud project ID - {list_in_topic,list_in_project,create,delete,receive,receive-flow-control} + {list_in_topic,list_in_project,create,create-push,delete,update,receive,receive-custom-attributes,receive-flow-control,listen_for_errors} list_in_topic Lists all subscriptions for a given topic. list_in_project Lists all subscriptions in the current project. create Create a new pull subscription on the given topic. + create-push Create a new push subscription on the given topic. For + example, endpoint is "https://my-test- + project.appspot.com/push". delete Deletes an existing Pub/Sub topic. + update Updates an existing Pub/Sub subscription's push + endpoint URL. Note that certain properties of a + subscription, such as its topic, are not modifiable. + For example, endpoint is "https://my-test- + project.appspot.com/push". receive Receives messages from a pull subscription. + receive-custom-attributes + Receives messages from a pull subscription. receive-flow-control Receives messages from a pull subscription with flow control. + listen_for_errors Receives messages and catches errors from a pull + subscription. optional arguments: -h, --help show this help message and exit @@ -163,7 +178,7 @@ Identity and Access Management +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=pubsub/cloud-client/iam.py;pubsub/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=pubsub/cloud-client/iam.py,pubsub/cloud-client/README.rst diff --git a/scripts/readme-gen/templates/README.tmpl.rst b/scripts/readme-gen/templates/README.tmpl.rst index 25b3eefd98d4..6bdd6538fea8 100644 --- a/scripts/readme-gen/templates/README.tmpl.rst +++ b/scripts/readme-gen/templates/README.tmpl.rst @@ -35,7 +35,7 @@ Samples +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/{{sample.file}};{{folder}}/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor={{folder}}/{{sample.file}},{{folder}}/README.rst {{sample.description}} diff --git a/spanner/cloud-client/README.rst b/spanner/cloud-client/README.rst index a68f8016e15c..3071953b0e9f 100644 --- a/spanner/cloud-client/README.rst +++ b/spanner/cloud-client/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud Spanner. `Google Cloud Spanner` -.. _Google Cloud Spanner: https://cloud.google.com/spanner/docs +.. _Google Cloud Spanner: https://cloud.google.com/spanner/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=spanner/cloud-client/snippets.py;spanner/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=spanner/cloud-client/snippets.py,spanner/cloud-client/README.rst @@ -72,7 +72,7 @@ To run this sample: usage: snippets.py [-h] [--database-id DATABASE_ID] instance_id - {create_database,insert_data,query_data,read_data,read_stale_data,add_column,update_data,query_data_with_new_column,read_write_transaction,read_only_transaction,add_index,query_data_with_index,read_data_with_index,add_storing_index,read_data_with_storing_index} + {create_database,insert_data,query_data,read_data,read_stale_data,add_column,update_data,query_data_with_new_column,read_write_transaction,read_only_transaction,add_index,query_data_with_index,read_data_with_index,add_storing_index,read_data_with_storing_index,create_table_with_timestamp,insert_data_with_timestamp,add_timestamp_column,update_data_with_timestamp,query_data_with_timestamp} ... This application demonstrates how to do basic operations using Cloud @@ -82,7 +82,7 @@ To run this sample: positional arguments: instance_id Your Cloud Spanner instance ID. - {create_database,insert_data,query_data,read_data,read_stale_data,add_column,update_data,query_data_with_new_column,read_write_transaction,read_only_transaction,add_index,query_data_with_index,read_data_with_index,add_storing_index,read_data_with_storing_index} + {create_database,insert_data,query_data,read_data,read_stale_data,add_column,update_data,query_data_with_new_column,read_write_transaction,read_only_transaction,add_index,query_data_with_index,read_data_with_index,add_storing_index,read_data_with_storing_index,create_table_with_timestamp,insert_data_with_timestamp,add_timestamp_column,update_data_with_timestamp,query_data_with_timestamp} create_database Creates a database and tables for sample data. insert_data Inserts sample data into the given database. The database and table must already exist and can be @@ -139,6 +139,34 @@ To run this sample: Inserts sample data into the given database. The database and table must already exist and can be created using `create_database`. + create_table_with_timestamp + Creates a table with a COMMIT_TIMESTAMP column. + insert_data_with_timestamp + Inserts data with a COMMIT_TIMESTAMP field into a + table. + add_timestamp_column + Adds a new TIMESTAMP column to the Albums table in the + example database. + update_data_with_timestamp + Updates Performances tables in the database with the + COMMIT_TIMESTAMP column. This updates the + `MarketingBudget` column which must be created before + running this sample. You can add the column by running + the `add_column` sample or by running this DDL + statement against your database: ALTER TABLE Albums + ADD COLUMN MarketingBudget INT64 In addition this + update expects the LastUpdateTime column added by + applying this DDL statement against your database: + ALTER TABLE Albums ADD COLUMN LastUpdateTime TIMESTAMP + OPTIONS(allow_commit_timestamp=true) + query_data_with_timestamp + Queries sample data from the database using SQL. This + updates the `LastUpdateTime` column which must be + created before running this sample. You can add the + column by running the `add_timestamp_column` sample or + by running this DDL statement against your database: + ALTER TABLE Performances ADD COLUMN LastUpdateTime + TIMESTAMP OPTIONS (allow_commit_timestamp=true) optional arguments: -h, --help show this help message and exit diff --git a/speech/cloud-client/README.rst b/speech/cloud-client/README.rst index ae1fe3c58a6f..60a955401a58 100644 --- a/speech/cloud-client/README.rst +++ b/speech/cloud-client/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Speech API. The `Google Cloud S -.. _Google Cloud Speech API: https://cloud.google.com/speech/docs/ +.. _Google Cloud Speech API: https://cloud.google.com/speech/docs/ Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=speech/cloud-client/quickstart.py;speech/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=speech/cloud-client/quickstart.py,speech/cloud-client/README.rst @@ -79,7 +79,7 @@ Transcribe +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=speech/cloud-client/transcribe.py;speech/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=speech/cloud-client/transcribe.py,speech/cloud-client/README.rst @@ -111,7 +111,7 @@ Transcribe async +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=speech/cloud-client/transcribe_async.py;speech/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=speech/cloud-client/transcribe_async.py,speech/cloud-client/README.rst @@ -143,7 +143,7 @@ Transcribe with word time offsets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=speech/cloud-client/transcribe_word_time_offsets.py;speech/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=speech/cloud-client/transcribe_word_time_offsets.py,speech/cloud-client/README.rst @@ -174,7 +174,7 @@ Transcribe Streaming +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=speech/cloud-client/transcribe_streaming.py;speech/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=speech/cloud-client/transcribe_streaming.py,speech/cloud-client/README.rst diff --git a/storage/api/README.rst b/storage/api/README.rst index 5ec20160cedd..b35fee1052a1 100644 --- a/storage/api/README.rst +++ b/storage/api/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud Storage. `Google Cloud Storage` -.. _Google Cloud Storage: https://cloud.google.com/storage/docs +.. _Google Cloud Storage: https://cloud.google.com/storage/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ List Objects +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/api/list_objects.py;storage/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/api/list_objects.py,storage/api/README.rst @@ -93,7 +93,7 @@ CRUD Objects +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/api/crud_object.py;storage/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/api/crud_object.py,storage/api/README.rst @@ -129,7 +129,7 @@ Compose objects +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/api/compose_objects.py;storage/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/api/compose_objects.py,storage/api/README.rst @@ -172,7 +172,7 @@ Customer-Supplied Encryption +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/api/customer_supplied_keys.py;storage/api/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/api/customer_supplied_keys.py,storage/api/README.rst diff --git a/storage/cloud-client/README.rst b/storage/cloud-client/README.rst index fdfde20f8e43..f76b0e1642ed 100644 --- a/storage/cloud-client/README.rst +++ b/storage/cloud-client/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud Storage. `Google Cloud Storage` -.. _Google Cloud Storage: https://cloud.google.com/storage/docs +.. _Google Cloud Storage: https://cloud.google.com/storage/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/cloud-client/quickstart.py;storage/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/cloud-client/quickstart.py,storage/cloud-client/README.rst @@ -75,7 +75,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/cloud-client/snippets.py;storage/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/cloud-client/snippets.py,storage/cloud-client/README.rst @@ -139,7 +139,7 @@ Access Control Lists +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/cloud-client/acl.py;storage/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/cloud-client/acl.py,storage/cloud-client/README.rst @@ -192,7 +192,7 @@ Customer-Supplied Encryption +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/cloud-client/encryption.py;storage/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/cloud-client/encryption.py,storage/cloud-client/README.rst @@ -244,7 +244,7 @@ Notification Polling +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/cloud-client/notification_polling.py;storage/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/cloud-client/notification_polling.py,storage/cloud-client/README.rst diff --git a/storage/transfer_service/README.rst b/storage/transfer_service/README.rst index 1d77c18e48fa..b5c98043966c 100644 --- a/storage/transfer_service/README.rst +++ b/storage/transfer_service/README.rst @@ -13,7 +13,7 @@ This directory contains samples for Google Cloud Storage. `Google Cloud Storage` These samples demonstrate how to transfer data between Google Cloud Storage and other storage systems. -.. _Google Cloud Storage: https://cloud.google.com/storage/docs +.. _Google Cloud Storage: https://cloud.google.com/storage/docs Setup ------------------------------------------------------------------------------- @@ -60,7 +60,7 @@ Transfer to GCS Nearline +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/transfer_service/nearline_request.py;storage/transfer_service/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/transfer_service/nearline_request.py,storage/transfer_service/README.rst @@ -101,7 +101,7 @@ Transfer from AWS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/transfer_service/aws_request.py;storage/transfer_service/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/transfer_service/aws_request.py,storage/transfer_service/README.rst @@ -144,7 +144,7 @@ Check transfer status +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/transfer_service/transfer_check.py;storage/transfer_service/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=storage/transfer_service/transfer_check.py,storage/transfer_service/README.rst diff --git a/texttospeech/cloud-client/README.rst b/texttospeech/cloud-client/README.rst index a917784c2c97..c7349a722f6e 100644 --- a/texttospeech/cloud-client/README.rst +++ b/texttospeech/cloud-client/README.rst @@ -59,7 +59,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/quickstart.py;/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/quickstart.py,/README.rst @@ -75,7 +75,7 @@ List voices +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/list_voices.py;/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/list_voices.py,/README.rst @@ -91,7 +91,7 @@ Synthesize text +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/synthesize_text.py;/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/synthesize_text.py,/README.rst @@ -121,7 +121,7 @@ Synthesize file +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/synthesize_file.py;/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=/synthesize_file.py,/README.rst diff --git a/translate/cloud-client/README.rst b/translate/cloud-client/README.rst index ae63d9105c2f..60018b25d7bf 100644 --- a/translate/cloud-client/README.rst +++ b/translate/cloud-client/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Translation API. With `Google Transla -.. _Google Translation API: https://cloud.google.com/translate/docs +.. _Google Translation API: https://cloud.google.com/translate/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/quickstart.py;translate/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/quickstart.py,translate/cloud-client/README.rst @@ -75,7 +75,7 @@ Snippets +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/snippets.py;translate/cloud-client/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/snippets.py,translate/cloud-client/README.rst @@ -103,8 +103,9 @@ To run this sample: list-languages-with-target Lists all available languages and localizes them to the target language. Target must be an ISO 639-1 - language code. See https://g.co/cloud/translate/v2 - /translate-reference#supported_languages + language code. See + https://g.co/cloud/translate/v2/translate- + reference#supported_languages translate-text Translates text into the target language. Target must be an ISO 639-1 language code. See https://g.co/cloud/translate/v2/translate- diff --git a/video/cloud-client/analyze/README.rst b/video/cloud-client/analyze/README.rst index 8c13affd92ce..fef7ebd9e1bd 100644 --- a/video/cloud-client/analyze/README.rst +++ b/video/cloud-client/analyze/README.rst @@ -59,7 +59,7 @@ analyze +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/analyze/analyze.py;video/cloud-client/analyze/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/analyze/analyze.py,video/cloud-client/analyze/README.rst diff --git a/video/cloud-client/labels/README.rst b/video/cloud-client/labels/README.rst index 7eae148093f8..2b36e9b37ab3 100644 --- a/video/cloud-client/labels/README.rst +++ b/video/cloud-client/labels/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud Video Intelligence API. `Google -.. _Google Cloud Video Intelligence API: https://cloud.google.com/video-intelligence/docs +.. _Google Cloud Video Intelligence API: https://cloud.google.com/video-intelligence/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ labels +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/labels/labels.py;video/cloud-client/labels/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/labels/labels.py,video/cloud-client/labels/README.rst diff --git a/video/cloud-client/quickstart/README.rst b/video/cloud-client/quickstart/README.rst index 6c095e25be62..257dbb0420ac 100644 --- a/video/cloud-client/quickstart/README.rst +++ b/video/cloud-client/quickstart/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud Video Intelligence API. `Google -.. _Google Cloud Video Intelligence API: https://cloud.google.com/video-intelligence/docs +.. _Google Cloud Video Intelligence API: https://cloud.google.com/video-intelligence/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/quickstart/quickstart.py;video/cloud-client/quickstart/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/quickstart/quickstart.py,video/cloud-client/quickstart/README.rst diff --git a/video/cloud-client/shotchange/README.rst b/video/cloud-client/shotchange/README.rst index fd0041bcc5d3..bd98d533f16d 100644 --- a/video/cloud-client/shotchange/README.rst +++ b/video/cloud-client/shotchange/README.rst @@ -12,7 +12,7 @@ This directory contains samples for Google Cloud Video Intelligence API. `Google -.. _Google Cloud Video Intelligence API: https://cloud.google.com/video-intelligence/docs +.. _Google Cloud Video Intelligence API: https://cloud.google.com/video-intelligence/docs Setup ------------------------------------------------------------------------------- @@ -59,7 +59,7 @@ Shot Change Detection +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/shotchange/shotchange.py;video/cloud-client/shotchange/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=video/cloud-client/shotchange/shotchange.py,video/cloud-client/shotchange/README.rst diff --git a/vision/api/label/README.rst b/vision/api/label/README.rst index cfd590c90fa2..bb83de13e3de 100644 --- a/vision/api/label/README.rst +++ b/vision/api/label/README.rst @@ -13,7 +13,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio This sample demonstrates how to use the Cloud Vision API to do label detection. -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -60,7 +60,7 @@ Label detection +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/api/label/label.py;vision/api/label/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/api/label/label.py,vision/api/label/README.rst diff --git a/vision/cloud-client/crop_hints/README.rst b/vision/cloud-client/crop_hints/README.rst index 9dfd4084c0bc..a05205e0ab72 100644 --- a/vision/cloud-client/crop_hints/README.rst +++ b/vision/cloud-client/crop_hints/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Crop Hints Tutorial +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/crop_hints/crop_hints.py;vision/cloud-client/crop_hints/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/crop_hints/crop_hints.py,vision/cloud-client/crop_hints/README.rst diff --git a/vision/cloud-client/detect/README.rst b/vision/cloud-client/detect/README.rst index e0d7a6f28784..981035330c62 100644 --- a/vision/cloud-client/detect/README.rst +++ b/vision/cloud-client/detect/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Detect +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/detect/detect.py;vision/cloud-client/detect/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/detect/detect.py,vision/cloud-client/detect/README.rst @@ -75,7 +75,7 @@ To run this sample: $ python detect.py usage: detect.py [-h] - {faces,faces-uri,labels,labels-uri,landmarks,landmarks-uri,text,text-uri,logos,logos-uri,safe-search,safe-search-uri,properties,properties-uri,web,web-uri,crophints,crophints-uri,document,document-uri} + {faces,faces-uri,labels,labels-uri,landmarks,landmarks-uri,text,text-uri,logos,logos-uri,safe-search,safe-search-uri,properties,properties-uri,web,web-uri,web-geo,web-geo-uri,crophints,crophints-uri,document,document-uri} ... This application demonstrates how to perform basic operations with the @@ -86,13 +86,14 @@ To run this sample: python detect.py labels ./resources/landmark.jpg python detect.py web ./resources/landmark.jpg python detect.py web-uri http://wheresgus.com/dog.JPG + python detect.py web-geo ./resources/city.jpg python detect.py faces-uri gs://your-bucket/file.jpg For more information, the documentation at https://cloud.google.com/vision/docs. positional arguments: - {faces,faces-uri,labels,labels-uri,landmarks,landmarks-uri,text,text-uri,logos,logos-uri,safe-search,safe-search-uri,properties,properties-uri,web,web-uri,crophints,crophints-uri,document,document-uri} + {faces,faces-uri,labels,labels-uri,landmarks,landmarks-uri,text,text-uri,logos,logos-uri,safe-search,safe-search-uri,properties,properties-uri,web,web-uri,web-geo,web-geo-uri,crophints,crophints-uri,document,document-uri} faces Detects faces in an image. faces-uri Detects faces in the file located in Google Cloud Storage or the web. @@ -117,6 +118,11 @@ To run this sample: web Detects web annotations given an image. web-uri Detects web annotations in the file located in Google Cloud Storage. + web-geo Detects web annotations given an image, using the + geotag metadata in the iamge to detect web entities. + web-geo-uri Detects web annotations given an image in the file + located in Google Cloud Storage., using the geotag + metadata in the iamge to detect web entities. crophints Detects crop hints in an image. crophints-uri Detects crop hints in the file located in Google Cloud Storage. diff --git a/vision/cloud-client/document_text/README.rst b/vision/cloud-client/document_text/README.rst index 691ae14b0997..6fcf2b20505b 100644 --- a/vision/cloud-client/document_text/README.rst +++ b/vision/cloud-client/document_text/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Document Text tutorial +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/document_text/doctext.py;vision/cloud-client/document_text/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/document_text/doctext.py,vision/cloud-client/document_text/README.rst diff --git a/vision/cloud-client/face_detection/README.rst b/vision/cloud-client/face_detection/README.rst index 56eb6657f22b..1b8d3b612767 100644 --- a/vision/cloud-client/face_detection/README.rst +++ b/vision/cloud-client/face_detection/README.rst @@ -17,7 +17,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio This sample demonstrates how to use the Cloud Vision API to do face detection. -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -64,7 +64,7 @@ Face detection +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/face_detection/faces.py;vision/cloud-client/face_detection/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/face_detection/faces.py,vision/cloud-client/face_detection/README.rst diff --git a/vision/cloud-client/quickstart/README.rst b/vision/cloud-client/quickstart/README.rst index 5824b9eae7c1..fa1656c6ee97 100644 --- a/vision/cloud-client/quickstart/README.rst +++ b/vision/cloud-client/quickstart/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Quickstart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/quickstart/quickstart.py;vision/cloud-client/quickstart/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/quickstart/quickstart.py,vision/cloud-client/quickstart/README.rst diff --git a/vision/cloud-client/web/README.rst b/vision/cloud-client/web/README.rst index 07e572f3d774..eaed1c023ec0 100644 --- a/vision/cloud-client/web/README.rst +++ b/vision/cloud-client/web/README.rst @@ -16,7 +16,7 @@ This directory contains samples for Google Cloud Vision API. `Google Cloud Visio -.. _Google Cloud Vision API: https://cloud.google.com/vision/docs +.. _Google Cloud Vision API: https://cloud.google.com/vision/docs Setup ------------------------------------------------------------------------------- @@ -63,7 +63,7 @@ Web +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. image:: https://gstatic.com/cloudssh/images/open-btn.png - :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/web/web_detect.py;vision/cloud-client/web/README.rst + :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=vision/cloud-client/web/web_detect.py,vision/cloud-client/web/README.rst