File tree 1 file changed +12
-12
lines changed
packages/google-cloud-iot
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -57,19 +57,19 @@ npm install @google-cloud/iot
57
57
### Using the client library
58
58
59
59
``` javascript
60
- const iot = require (' @google-cloud/iot' );
61
- const client = new iot.v1.DeviceManagerClient ();
62
-
63
- async function quickstart () {
64
- const projectId = await client .getProjectId ();
65
- const parent = client .locationPath (projectId, ' us-central1' );
66
- const [resources ] = await client .listDeviceRegistries ({parent});
67
- console .log (` ${ resources .length } resource(s) found.` );
68
- for (const resource of resources) {
69
- console .log (resource);
70
- }
60
+ const iot = require (' @google-cloud/iot' );
61
+ const client = new iot.v1.DeviceManagerClient ();
62
+
63
+ async function quickstart () {
64
+ const projectId = await client .getProjectId ();
65
+ const parent = client .locationPath (projectId, ' us-central1' );
66
+ const [resources ] = await client .listDeviceRegistries ({parent});
67
+ console .log (` ${ resources .length } resource(s) found.` );
68
+ for (const resource of resources) {
69
+ console .log (resource);
71
70
}
72
- quickstart ();
71
+ }
72
+ quickstart ();
73
73
74
74
```
75
75
You can’t perform that action at this time.
0 commit comments