Reference documentation and code samples for the Cloud IoT V1 API class Google::Cloud::Iot::V1::CreateDeviceRequest.
Request for CreateDevice
.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#device
def device() -> ::Google::Cloud::Iot::V1::Device
Returns
-
(::Google::Cloud::Iot::V1::Device) — Required. The device registration details. The field
name
must be empty. The server generatesname
from the device registryid
and theparent
field.
#device=
def device=(value) -> ::Google::Cloud::Iot::V1::Device
Parameter
-
value (::Google::Cloud::Iot::V1::Device) — Required. The device registration details. The field
name
must be empty. The server generatesname
from the device registryid
and theparent
field.
Returns
-
(::Google::Cloud::Iot::V1::Device) — Required. The device registration details. The field
name
must be empty. The server generatesname
from the device registryid
and theparent
field.
#parent
def parent() -> ::String
Returns
-
(::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
.
#parent=
def parent=(value) -> ::String
Parameter
-
value (::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
.
Returns
-
(::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
.