Skip to content

Commit 19ee0ab

Browse files
michaelawyuJon Wayne Parrott
michaelawyu
authored and
Jon Wayne Parrott
committed
Added "Open in Cloud Shell" buttons to README files [(#1254)](GoogleCloudPlatform/python-docs-samples#1254)
1 parent 8428bc7 commit 19ee0ab

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

samples/snippets/README.rst

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Google Cloud Natural Language API Python Samples
44
===============================================================================
55

6+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
7+
: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/README.rst
8+
9+
610
This directory contains samples for Google Cloud Natural Language API. The `Google Cloud Natural Language API`_ provides natural language understanding technologies to developers, including sentiment analysis, entity recognition, and syntax analysis. This API is part of the larger Cloud Machine Learning API.
711

812
- See the `migration guide`_ for information about migrating to Python client library v0.26.1.
@@ -58,6 +62,10 @@ Samples
5862
Quickstart
5963
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
6064

65+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
66+
: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
67+
68+
6169

6270

6371
To run this sample:
@@ -70,6 +78,10 @@ To run this sample:
7078
Snippets
7179
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
7280

81+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
82+
: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
83+
84+
7385

7486

7587
To run this sample:
@@ -79,17 +91,20 @@ To run this sample:
7991
$ python snippets.py
8092
8193
usage: snippets.py [-h]
82-
{sentiment-entities-text,sentiment-entities-file,sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
94+
{classify-text,classify-file,sentiment-entities-text,sentiment-entities-file,sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
8395
...
84-
96+
8597
This application demonstrates how to perform basic operations with the
8698
Google Cloud Natural Language API
87-
99+
88100
For more information, the documentation at
89101
https://cloud.google.com/natural-language/docs.
90-
102+
91103
positional arguments:
92-
{sentiment-entities-text,sentiment-entities-file,sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
104+
{classify-text,classify-file,sentiment-entities-text,sentiment-entities-file,sentiment-text,sentiment-file,entities-text,entities-file,syntax-text,syntax-file}
105+
classify-text Classifies content categories of the provided text.
106+
classify-file Classifies content categories of the text in a Google
107+
Cloud Storage file.
93108
sentiment-entities-text
94109
Detects entity sentiment in the provided text.
95110
sentiment-entities-file
@@ -104,13 +119,14 @@ To run this sample:
104119
syntax-text Detects syntax in the text.
105120
syntax-file Detects syntax in the file located in Google Cloud
106121
Storage.
107-
122+
108123
optional arguments:
109124
-h, --help show this help message and exit
110125
111126
112127
113128
129+
114130
The client library
115131
-------------------------------------------------------------------------------
116132

samples/snippets/README.rst.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ samples:
2828
show_help: true
2929

3030
cloud_client_library: true
31+
32+
folder: language/cloud-client/v1

0 commit comments

Comments
 (0)