Skip to content

Commit 705a62e

Browse files
michaelawyubusunkim96
authored andcommitted
Added "Open in Cloud Shell" buttons to README files [(#1254)](GoogleCloudPlatform/python-docs-samples#1254)
1 parent 335d8eb commit 705a62e

File tree

2 files changed

+25
-17
lines changed

2 files changed

+25
-17
lines changed

packages/google-cloud-logging/samples/snippets/README.rst

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Stackdriver Logging 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=logging/cloud-client/README.rst
8+
9+
610
This directory contains samples for Stackdriver Logging. `Stackdriver Logging`_ allows you to store, search, analyze, monitor, and alert on log data and events from Google Cloud Platform and Amazon Web Services.
711

812

@@ -54,30 +58,26 @@ Samples
5458
Quickstart
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=logging/cloud-client/quickstart.py;logging/cloud-client/README.rst
5763

5864

59-
To run this sample:
60-
61-
.. code-block:: bash
62-
63-
$ python quickstart.py
64-
65-
66-
Handler
67-
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
68-
6965

7066

7167
To run this sample:
7268

7369
.. code-block:: bash
7470
75-
$ python handler.py
71+
$ python quickstart.py
7672
7773
7874
Snippets
7975
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8076

77+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
78+
: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
79+
80+
8181

8282

8383
To run this sample:
@@ -87,28 +87,33 @@ To run this sample:
8787
$ python snippets.py
8888
8989
usage: snippets.py [-h] logger_name {list,write,delete} ...
90-
90+
9191
This application demonstrates how to perform basic operations on logs and
9292
log entries with Stackdriver Logging.
93-
93+
9494
For more information, see the README.md under /logging and the
9595
documentation at https://cloud.google.com/logging/docs.
96-
96+
9797
positional arguments:
9898
logger_name Logger name
9999
{list,write,delete}
100100
list Lists the most recent entries for a given logger.
101101
write Writes log entries to the given logger.
102102
delete Deletes a logger and all its entries. Note that a
103103
deletion can take several minutes to take effect.
104-
104+
105105
optional arguments:
106106
-h, --help show this help message and exit
107107
108108
109+
109110
Export
110111
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
111112

113+
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
114+
: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
115+
116+
112117

113118

114119
To run this sample:
@@ -118,7 +123,7 @@ To run this sample:
118123
$ python export.py
119124
120125
usage: export.py [-h] {list,create,update,delete} ...
121-
126+
122127
positional arguments:
123128
{list,create,update,delete}
124129
list Lists all sinks.
@@ -131,13 +136,14 @@ To run this sample:
131136
om/logging/docs/view/advanced_filters for more filter
132137
information.
133138
delete Deletes a sink.
134-
139+
135140
optional arguments:
136141
-h, --help show this help message and exit
137142
138143
139144
140145
146+
141147
The client library
142148
-------------------------------------------------------------------------------
143149

packages/google-cloud-logging/samples/snippets/README.rst.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ samples:
2424
show_help: true
2525

2626
cloud_client_library: true
27+
28+
folder: logging/cloud-client

0 commit comments

Comments
 (0)