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

Commit

Permalink
Trivial fix to Cloud IoT URL. [(#1302)](GoogleCloudPlatform/python-do…
Browse files Browse the repository at this point in the history
  • Loading branch information
postmasters authored and Jon Wayne Parrott committed Jan 16, 2018
1 parent 7fffab2 commit 54cc0e6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
38 changes: 22 additions & 16 deletions samples/api-client/manager/README.rst
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
.. This file is automatically generated. Do not edit this file directly.
Google Cloud IoT Core API Python Samples
Google Cloud IoT Core Python Samples
===============================================================================

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
: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


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.
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.




.. _Google Cloud IoT Core API: https://cloud.google.com/vision/docs
.. _Google Cloud IoT Core: https://cloud.google.com/iot/docs

Setup
-------------------------------------------------------------------------------
Expand Down Expand Up @@ -70,13 +70,15 @@ To run this sample:
$ python manager.py
usage: manager.py [-h] --pubsub_topic PUBSUB_TOPIC [--project_id PROJECT_ID]
usage: manager.py [-h] --pubsub_topic PUBSUB_TOPIC
[--cloud_region CLOUD_REGION] [--config CONFIG]
[--device_id DEVICE_ID]
[--ec_public_key_file EC_PUBLIC_KEY_FILE]
[--project_id PROJECT_ID] [--registry_id REGISTRY_ID]
[--rsa_certificate_file RSA_CERTIFICATE_FILE]
[--cloud_region CLOUD_REGION]
[--service_account_json SERVICE_ACCOUNT_JSON]
[--registry_id REGISTRY_ID] [--device_id DEVICE_ID]
{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}
[--version VERSION]
{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}
...
Example of using the Google Cloud IoT Core device manager to administer
Expand All @@ -93,7 +95,7 @@ To run this sample:
list
positional arguments:
{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}
{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}
create-es256 Create a new device with the given id, using ES256 for
authentication.
create-registry Gets or creates a device registry.
Expand All @@ -113,26 +115,30 @@ To run this sample:
device.
patch-rs256 Patch the device to add an RSA256 public key to the
device.
set-config Patch the device to add an RSA256 public key to the
device.
optional arguments:
-h, --help show this help message and exit
--pubsub_topic PUBSUB_TOPIC
Google Cloud Pub/Sub topic. Format is
projects/project_id/topics/topic-id
--project_id PROJECT_ID
GCP cloud project name.
--cloud_region CLOUD_REGION
GCP cloud region
--config CONFIG Configuration sent to a device.
--device_id DEVICE_ID
Device id.
--ec_public_key_file EC_PUBLIC_KEY_FILE
Path to public ES256 key file.
--project_id PROJECT_ID
GCP cloud project name.
--registry_id REGISTRY_ID
Registry id. If not set, a name will be generated.
--rsa_certificate_file RSA_CERTIFICATE_FILE
Path to RS256 certificate file.
--cloud_region CLOUD_REGION
GCP cloud region
--service_account_json SERVICE_ACCOUNT_JSON
Path to service account json file.
--registry_id REGISTRY_ID
Registry id. If not set, a name will be generated.
--device_id DEVICE_ID
Device id.
--version VERSION Version number for setting device configuration.
Expand Down
6 changes: 3 additions & 3 deletions samples/api-client/manager/README.rst.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# This file is used to generate README.rst

product:
name: Google Cloud IoT Core API
name: Google Cloud IoT Core
short_name: Cloud IoT Core
url: https://cloud.google.com/vision/docs
url: https://cloud.google.com/iot/docs
description: >
`Google Cloud IoT Core`_ allows developers to easily integrate Publish and
Subscribe functionality with devices and programmatically manage device
Expand All @@ -20,4 +20,4 @@ samples:

cloud_client_library: false

folder: iot/api-client/manager
folder: iot/api-client/manager

0 comments on commit 54cc0e6

Please sign in to comment.