1
1
.. This file is automatically generated. Do not edit this file directly.
2
2
3
- Google Cloud IoT Core API Python Samples
3
+ Google Cloud IoT Core Python Samples
4
4
===============================================================================
5
5
6
6
.. image :: https://gstatic.com/cloudssh/images/open-btn.png
7
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
8
9
9
10
- 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.
10
+ 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.
11
11
12
12
13
13
14
14
15
- .. _Google Cloud IoT Core API : https://cloud.google.com/vision /docs
15
+ .. _Google Cloud IoT Core : https://cloud.google.com/iot /docs
16
16
17
17
Setup
18
18
-------------------------------------------------------------------------------
@@ -70,13 +70,15 @@ To run this sample:
70
70
71
71
$ python manager.py
72
72
73
- usage: manager.py [-h] --pubsub_topic PUBSUB_TOPIC [--project_id PROJECT_ID]
73
+ usage: manager.py [-h] --pubsub_topic PUBSUB_TOPIC
74
+ [--cloud_region CLOUD_REGION] [--config CONFIG]
75
+ [--device_id DEVICE_ID]
74
76
[--ec_public_key_file EC_PUBLIC_KEY_FILE]
77
+ [--project_id PROJECT_ID] [--registry_id REGISTRY_ID]
75
78
[--rsa_certificate_file RSA_CERTIFICATE_FILE]
76
- [--cloud_region CLOUD_REGION]
77
79
[--service_account_json SERVICE_ACCOUNT_JSON]
78
- [--registry_id REGISTRY_ID] [--device_id DEVICE_ID ]
79
- {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}
80
+ [--version VERSION ]
81
+ {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,set-config }
80
82
...
81
83
82
84
Example of using the Google Cloud IoT Core device manager to administer
@@ -93,7 +95,7 @@ To run this sample:
93
95
list
94
96
95
97
positional arguments:
96
- {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}
98
+ {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,set-config }
97
99
create-es256 Create a new device with the given id, using ES256 for
98
100
authentication.
99
101
create-registry Gets or creates a device registry.
@@ -113,26 +115,30 @@ To run this sample:
113
115
device.
114
116
patch-rs256 Patch the device to add an RSA256 public key to the
115
117
device.
118
+ set-config Patch the device to add an RSA256 public key to the
119
+ device.
116
120
117
121
optional arguments:
118
122
-h, --help show this help message and exit
119
123
--pubsub_topic PUBSUB_TOPIC
120
124
Google Cloud Pub/Sub topic. Format is
121
125
projects/project_id/topics/topic-id
122
- --project_id PROJECT_ID
123
- GCP cloud project name.
126
+ --cloud_region CLOUD_REGION
127
+ GCP cloud region
128
+ --config CONFIG Configuration sent to a device.
129
+ --device_id DEVICE_ID
130
+ Device id.
124
131
--ec_public_key_file EC_PUBLIC_KEY_FILE
125
132
Path to public ES256 key file.
133
+ --project_id PROJECT_ID
134
+ GCP cloud project name.
135
+ --registry_id REGISTRY_ID
136
+ Registry id. If not set, a name will be generated.
126
137
--rsa_certificate_file RSA_CERTIFICATE_FILE
127
138
Path to RS256 certificate file.
128
- --cloud_region CLOUD_REGION
129
- GCP cloud region
130
139
--service_account_json SERVICE_ACCOUNT_JSON
131
140
Path to service account json file.
132
- --registry_id REGISTRY_ID
133
- Registry id. If not set, a name will be generated.
134
- --device_id DEVICE_ID
135
- Device id.
141
+ --version VERSION Version number for setting device configuration.
136
142
137
143
138
144
0 commit comments