Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.

Commit 028499b

Browse files
michaelawyuJon Wayne Parrott
authored andcommitted
Added "Open in Cloud Shell" buttons to README files [(#1254)](GoogleCloudPlatform/python-docs-samples#1254)
1 parent 19a30a8 commit 028499b

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

samples/api-client/manager/README.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Google Cloud IoT Core 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=iot/api-client/manager/README.rst
8+
9+
610
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.
711

812

@@ -54,6 +58,10 @@ Samples
5458
Manager
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=iot/api-client/manager/manager.py;iot/api-client/manager/README.rst
63+
64+
5765

5866

5967
To run this sample:
@@ -70,20 +78,20 @@ To run this sample:
7078
[--registry_id REGISTRY_ID] [--device_id DEVICE_ID]
7179
{create-es256,create-registry,create-rsa256,create-topic,create-unauth,delete-device,delete-registry,get,get-registry,get-state,list,list-registries,patch-es256,patch-rs256}
7280
...
73-
81+
7482
Example of using the Google Cloud IoT Core device manager to administer
7583
devices.
76-
84+
7785
Usage example:
78-
86+
7987
python manager.py \
8088
--project_id=my-project-id \
8189
--pubsub_topic=projects/my-project-id/topics/my-topic-id \
8290
--ec_public_key_file=../ec_public.pem \
8391
--rsa_certificate_file=../rsa_cert.pem \
8492
--service_account_json=$HOME/service_account.json
8593
list
86-
94+
8795
positional arguments:
8896
{create-es256,create-registry,create-rsa256,create-topic,create-unauth,delete-device,delete-registry,get,get-registry,get-state,list,list-registries,patch-es256,patch-rs256}
8997
create-es256 Create a new device with the given id, using ES256 for
@@ -105,7 +113,7 @@ To run this sample:
105113
device.
106114
patch-rs256 Patch the device to add an RSA256 public key to the
107115
device.
108-
116+
109117
optional arguments:
110118
-h, --help show this help message and exit
111119
--pubsub_topic PUBSUB_TOPIC
@@ -129,4 +137,5 @@ To run this sample:
129137
130138
131139
140+
132141
.. _Google Cloud SDK: https://cloud.google.com/sdk/

samples/api-client/manager/README.rst.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ samples:
1919
show_help: True
2020

2121
cloud_client_library: false
22+
23+
folder: iot/api-client/manager
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Test public certificate files
22

3+
[![Open in Cloud Shell][shell_img]][shell_link]
4+
5+
[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png
6+
[shell_link]: 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/resources/README.md
7+
38
The public certificates in this folder are only provided for testing and should
49
not be used for registering your devices.

0 commit comments

Comments
 (0)