Reference documentation and code samples for the Google Cloud IoT Core V1 Client class CreateDeviceRequest.
Request for CreateDevice
.
Generated from protobuf message google.cloud.iot.v1.CreateDeviceRequest
Namespace
Google \ Cloud \ Iot \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ parent
string
Required. The name of the device registry where this device should be created. For example, projects/example-project/locations/us-central1/registries/my-registry
.
↳ device
Google\Cloud\Iot\V1\Device
Required. The device registration details. The field name
must be empty. The server generates name
from the device registry id
and the parent
field.
getParent
Required. The name of the device registry where this device should be created.
For example, projects/example-project/locations/us-central1/registries/my-registry
.
string
setParent
Required. The name of the device registry where this device should be created.
For example, projects/example-project/locations/us-central1/registries/my-registry
.
var
string
$this
getDevice
Required. The device registration details. The field name
must be empty. The server
generates name
from the device registry id
and the parent
field.
hasDevice
clearDevice
setDevice
Required. The device registration details. The field name
must be empty. The server
generates name
from the device registry id
and the parent
field.
$this
static::build
parent
string
Required. The name of the device registry where this device should be created.
For example, projects/example-project/locations/us-central1/registries/my-registry
. Please see Google\Cloud\Iot\V1\DeviceManagerClient::registryName()
for help formatting this field.
device
Google\Cloud\Iot\V1\Device
Required. The device registration details. The field name
must be empty. The server
generates name
from the device registry id
and the parent
field.