Google Cloud IoT Core V1 Client - Class CreateDeviceRequest (1.5.12)

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

Methods

__construct

Constructor.

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

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

Parameter
NameDescription
var string
Returns
TypeDescription
$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.

Returns
TypeDescription
Google\Cloud\Iot\V1\Device|null

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.

Parameter
NameDescription
var Google\Cloud\Iot\V1\Device
Returns
TypeDescription
$this