DeviceManager

google.cloud.iot.v1. DeviceManager

Represents a DeviceManager

Constructor

new DeviceManager(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new DeviceManager service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {DeviceManager}

Creates new DeviceManager service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

bindDeviceToGateway(request, callback) → {undefined}

Calls BindDeviceToGateway.

Parameters:
Name Type Description
request google.cloud.iot.v1.IBindDeviceToGatewayRequest

BindDeviceToGatewayRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.BindDeviceToGatewayCallback

Node-style callback called with the error, if any, and BindDeviceToGatewayResponse

bindDeviceToGateway(request) → {Promise.<google.cloud.iot.v1.BindDeviceToGatewayResponse>}

Calls BindDeviceToGateway.

Parameters:
Name Type Description
request google.cloud.iot.v1.IBindDeviceToGatewayRequest

BindDeviceToGatewayRequest message or plain object

createDevice(request, callback) → {undefined}

Calls CreateDevice.

Parameters:
Name Type Description
request google.cloud.iot.v1.ICreateDeviceRequest

CreateDeviceRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.CreateDeviceCallback

Node-style callback called with the error, if any, and Device

createDevice(request) → {Promise.<google.cloud.iot.v1.Device>}

Calls CreateDevice.

Parameters:
Name Type Description
request google.cloud.iot.v1.ICreateDeviceRequest

CreateDeviceRequest message or plain object

createDeviceRegistry(request, callback) → {undefined}

Calls CreateDeviceRegistry.

Parameters:
Name Type Description
request google.cloud.iot.v1.ICreateDeviceRegistryRequest

CreateDeviceRegistryRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.CreateDeviceRegistryCallback

Node-style callback called with the error, if any, and DeviceRegistry

createDeviceRegistry(request) → {Promise.<google.cloud.iot.v1.DeviceRegistry>}

Calls CreateDeviceRegistry.

Parameters:
Name Type Description
request google.cloud.iot.v1.ICreateDeviceRegistryRequest

CreateDeviceRegistryRequest message or plain object

deleteDevice(request, callback) → {undefined}

Calls DeleteDevice.

Parameters:
Name Type Description
request google.cloud.iot.v1.IDeleteDeviceRequest

DeleteDeviceRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.DeleteDeviceCallback

Node-style callback called with the error, if any, and Empty

deleteDevice(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteDevice.

Parameters:
Name Type Description
request google.cloud.iot.v1.IDeleteDeviceRequest

DeleteDeviceRequest message or plain object

deleteDeviceRegistry(request, callback) → {undefined}

Calls DeleteDeviceRegistry.

Parameters:
Name Type Description
request google.cloud.iot.v1.IDeleteDeviceRegistryRequest

DeleteDeviceRegistryRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.DeleteDeviceRegistryCallback

Node-style callback called with the error, if any, and Empty

deleteDeviceRegistry(request) → {Promise.<google.protobuf.Empty>}

Calls DeleteDeviceRegistry.

Parameters:
Name Type Description
request google.cloud.iot.v1.IDeleteDeviceRegistryRequest

DeleteDeviceRegistryRequest message or plain object

getDevice(request, callback) → {undefined}

Calls GetDevice.

Parameters:
Name Type Description
request google.cloud.iot.v1.IGetDeviceRequest

GetDeviceRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.GetDeviceCallback

Node-style callback called with the error, if any, and Device

getDevice(request) → {Promise.<google.cloud.iot.v1.Device>}

Calls GetDevice.

Parameters:
Name Type Description
request google.cloud.iot.v1.IGetDeviceRequest

GetDeviceRequest message or plain object

getDeviceRegistry(request, callback) → {undefined}

Calls GetDeviceRegistry.

Parameters:
Name Type Description
request google.cloud.iot.v1.IGetDeviceRegistryRequest

GetDeviceRegistryRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.GetDeviceRegistryCallback

Node-style callback called with the error, if any, and DeviceRegistry

getDeviceRegistry(request) → {Promise.<google.cloud.iot.v1.DeviceRegistry>}

Calls GetDeviceRegistry.

Parameters:
Name Type Description
request google.cloud.iot.v1.IGetDeviceRegistryRequest

GetDeviceRegistryRequest message or plain object

getIamPolicy(request, callback) → {undefined}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.GetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

getIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

listDeviceConfigVersions(request, callback) → {undefined}

Calls ListDeviceConfigVersions.

Parameters:
Name Type Description
request google.cloud.iot.v1.IListDeviceConfigVersionsRequest

ListDeviceConfigVersionsRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.ListDeviceConfigVersionsCallback

Node-style callback called with the error, if any, and ListDeviceConfigVersionsResponse

listDeviceConfigVersions(request) → {Promise.<google.cloud.iot.v1.ListDeviceConfigVersionsResponse>}

Calls ListDeviceConfigVersions.

Parameters:
Name Type Description
request google.cloud.iot.v1.IListDeviceConfigVersionsRequest

ListDeviceConfigVersionsRequest message or plain object

listDeviceRegistries(request, callback) → {undefined}

Calls ListDeviceRegistries.

Parameters:
Name Type Description
request google.cloud.iot.v1.IListDeviceRegistriesRequest

ListDeviceRegistriesRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.ListDeviceRegistriesCallback

Node-style callback called with the error, if any, and ListDeviceRegistriesResponse

listDeviceRegistries(request) → {Promise.<google.cloud.iot.v1.ListDeviceRegistriesResponse>}

Calls ListDeviceRegistries.

Parameters:
Name Type Description
request google.cloud.iot.v1.IListDeviceRegistriesRequest

ListDeviceRegistriesRequest message or plain object

listDevices(request, callback) → {undefined}

Calls ListDevices.

Parameters:
Name Type Description
request google.cloud.iot.v1.IListDevicesRequest

ListDevicesRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.ListDevicesCallback

Node-style callback called with the error, if any, and ListDevicesResponse

listDevices(request) → {Promise.<google.cloud.iot.v1.ListDevicesResponse>}

Calls ListDevices.

Parameters:
Name Type Description
request google.cloud.iot.v1.IListDevicesRequest

ListDevicesRequest message or plain object

listDeviceStates(request, callback) → {undefined}

Calls ListDeviceStates.

Parameters:
Name Type Description
request google.cloud.iot.v1.IListDeviceStatesRequest

ListDeviceStatesRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.ListDeviceStatesCallback

Node-style callback called with the error, if any, and ListDeviceStatesResponse

listDeviceStates(request) → {Promise.<google.cloud.iot.v1.ListDeviceStatesResponse>}

Calls ListDeviceStates.

Parameters:
Name Type Description
request google.cloud.iot.v1.IListDeviceStatesRequest

ListDeviceStatesRequest message or plain object

modifyCloudToDeviceConfig(request, callback) → {undefined}

Calls ModifyCloudToDeviceConfig.

Parameters:
Name Type Description
request google.cloud.iot.v1.IModifyCloudToDeviceConfigRequest

ModifyCloudToDeviceConfigRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.ModifyCloudToDeviceConfigCallback

Node-style callback called with the error, if any, and DeviceConfig

modifyCloudToDeviceConfig(request) → {Promise.<google.cloud.iot.v1.DeviceConfig>}

Calls ModifyCloudToDeviceConfig.

Parameters:
Name Type Description
request google.cloud.iot.v1.IModifyCloudToDeviceConfigRequest

ModifyCloudToDeviceConfigRequest message or plain object

sendCommandToDevice(request, callback) → {undefined}

Calls SendCommandToDevice.

Parameters:
Name Type Description
request google.cloud.iot.v1.ISendCommandToDeviceRequest

SendCommandToDeviceRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.SendCommandToDeviceCallback

Node-style callback called with the error, if any, and SendCommandToDeviceResponse

sendCommandToDevice(request) → {Promise.<google.cloud.iot.v1.SendCommandToDeviceResponse>}

Calls SendCommandToDevice.

Parameters:
Name Type Description
request google.cloud.iot.v1.ISendCommandToDeviceRequest

SendCommandToDeviceRequest message or plain object

setIamPolicy(request, callback) → {undefined}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.SetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

setIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

testIamPermissions(request, callback) → {undefined}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.TestIamPermissionsCallback

Node-style callback called with the error, if any, and TestIamPermissionsResponse

testIamPermissions(request) → {Promise.<google.iam.v1.TestIamPermissionsResponse>}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

unbindDeviceFromGateway(request, callback) → {undefined}

Calls UnbindDeviceFromGateway.

Parameters:
Name Type Description
request google.cloud.iot.v1.IUnbindDeviceFromGatewayRequest

UnbindDeviceFromGatewayRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.UnbindDeviceFromGatewayCallback

Node-style callback called with the error, if any, and UnbindDeviceFromGatewayResponse

unbindDeviceFromGateway(request) → {Promise.<google.cloud.iot.v1.UnbindDeviceFromGatewayResponse>}

Calls UnbindDeviceFromGateway.

Parameters:
Name Type Description
request google.cloud.iot.v1.IUnbindDeviceFromGatewayRequest

UnbindDeviceFromGatewayRequest message or plain object

updateDevice(request, callback) → {undefined}

Calls UpdateDevice.

Parameters:
Name Type Description
request google.cloud.iot.v1.IUpdateDeviceRequest

UpdateDeviceRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.UpdateDeviceCallback

Node-style callback called with the error, if any, and Device

updateDevice(request) → {Promise.<google.cloud.iot.v1.Device>}

Calls UpdateDevice.

Parameters:
Name Type Description
request google.cloud.iot.v1.IUpdateDeviceRequest

UpdateDeviceRequest message or plain object

updateDeviceRegistry(request, callback) → {undefined}

Calls UpdateDeviceRegistry.

Parameters:
Name Type Description
request google.cloud.iot.v1.IUpdateDeviceRegistryRequest

UpdateDeviceRegistryRequest message or plain object

callback google.cloud.iot.v1.DeviceManager.UpdateDeviceRegistryCallback

Node-style callback called with the error, if any, and DeviceRegistry

updateDeviceRegistry(request) → {Promise.<google.cloud.iot.v1.DeviceRegistry>}

Calls UpdateDeviceRegistry.

Parameters:
Name Type Description
request google.cloud.iot.v1.IUpdateDeviceRegistryRequest

UpdateDeviceRegistryRequest message or plain object

Type Definitions

BindDeviceToGatewayCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#bindDeviceToGateway.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.BindDeviceToGatewayResponse <optional>

BindDeviceToGatewayResponse

CreateDeviceCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#createDevice.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.Device <optional>

Device

CreateDeviceRegistryCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#createDeviceRegistry.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.DeviceRegistry <optional>

DeviceRegistry

DeleteDeviceCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#deleteDevice.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

DeleteDeviceRegistryCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#deleteDeviceRegistry.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.protobuf.Empty <optional>

Empty

GetDeviceCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#getDevice.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.Device <optional>

Device

GetDeviceRegistryCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#getDeviceRegistry.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.DeviceRegistry <optional>

DeviceRegistry

GetIamPolicyCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#getIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

ListDeviceConfigVersionsCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#listDeviceConfigVersions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.ListDeviceConfigVersionsResponse <optional>

ListDeviceConfigVersionsResponse

ListDeviceRegistriesCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#listDeviceRegistries.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.ListDeviceRegistriesResponse <optional>

ListDeviceRegistriesResponse

ListDevicesCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#listDevices.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.ListDevicesResponse <optional>

ListDevicesResponse

ListDeviceStatesCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#listDeviceStates.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.ListDeviceStatesResponse <optional>

ListDeviceStatesResponse

ModifyCloudToDeviceConfigCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#modifyCloudToDeviceConfig.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.DeviceConfig <optional>

DeviceConfig

SendCommandToDeviceCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#sendCommandToDevice.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.SendCommandToDeviceResponse <optional>

SendCommandToDeviceResponse

SetIamPolicyCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#setIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

TestIamPermissionsCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#testIamPermissions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.TestIamPermissionsResponse <optional>

TestIamPermissionsResponse

UnbindDeviceFromGatewayCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#unbindDeviceFromGateway.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.UnbindDeviceFromGatewayResponse <optional>

UnbindDeviceFromGatewayResponse

UpdateDeviceCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#updateDevice.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.Device <optional>

Device

UpdateDeviceRegistryCallback(error, responseopt)

Callback as used by google.cloud.iot.v1.DeviceManager#updateDeviceRegistry.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.iot.v1.DeviceRegistry <optional>

DeviceRegistry