Skip to content

Commit 52d825c

Browse files
michaelawyuJon Wayne Parrott
authored andcommitted
Added "Open in Cloud Shell" buttons to README files [(googleapis#1254)](GoogleCloudPlatform/python-docs-samples#1254)
1 parent 0af87b2 commit 52d825c

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

samples/samples/README.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Google Cloud Spanner 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=spanner/cloud-client/README.rst
8+
9+
610
This directory contains samples for Google Cloud Spanner. `Google Cloud Spanner`_ is a highly scalable, transactional, managed, NewSQL database service. Cloud Spanner solves the need for a horizontally-scaling database with consistent global transactions and SQL semantics.
711

812

@@ -54,6 +58,10 @@ Samples
5458
Snippets
5559
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5660

61+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
62+
: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
63+
64+
5765

5866

5967
To run this sample:
@@ -66,12 +74,12 @@ To run this sample:
6674
instance_id
6775
{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}
6876
...
69-
77+
7078
This application demonstrates how to do basic operations using Cloud
7179
Spanner.
72-
80+
7381
For more information, see the README.rst under /spanner.
74-
82+
7583
positional arguments:
7684
instance_id Your Cloud Spanner instance ID.
7785
{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}
@@ -82,7 +90,7 @@ To run this sample:
8290
query_data Queries sample data from the database using SQL.
8391
read_data Reads sample data from the database.
8492
read_stale_data Reads sample data from the database. The data is
85-
exactly 10 seconds stale.
93+
exactly 15 seconds stale.
8694
add_column Adds a new column to the Albums table in the example
8795
database.
8896
update_data Updates sample data in the database. This updates the
@@ -131,7 +139,7 @@ To run this sample:
131139
Inserts sample data into the given database. The
132140
database and table must already exist and can be
133141
created using `create_database`.
134-
142+
135143
optional arguments:
136144
-h, --help show this help message and exit
137145
--database-id DATABASE_ID
@@ -140,6 +148,7 @@ To run this sample:
140148
141149
142150
151+
143152
The client library
144153
-------------------------------------------------------------------------------
145154

samples/samples/README.rst.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ samples:
2020
show_help: true
2121

2222
cloud_client_library: true
23+
24+
folder: spanner/cloud-client

0 commit comments

Comments
 (0)