@google-cloud/iot
module
The @google-cloud/iot
package has the following named exports:
DeviceManagerClient
- Reference to v1.DeviceManagerClientv1
- This is used for selecting or pinning a particular backend service version. It exports:DeviceManagerClient
- Reference to v1.DeviceManagerClient
Examples
Install the client library with npm:
npm install --save @google-cloud/iot
Import the client library:
const iot = require('@google-cloud/iot');
Create a client that uses Application Default Credentials (ADC):
const client = new iot.DeviceManagerClient();
Create a client with explicit credentials:
const client = new iot.DeviceManagerClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
Exports
require("@google-cloud/iot")
unknown
Property
Parameter |
|
---|---|
DeviceManagerClient |
Reference to v1.DeviceManagerClient |
Property
v1
static
object
Property
Parameter |
|
---|---|
DeviceManagerClient |
constructor Reference to v1.DeviceManagerClient |