Cloud IoT V1 API - Class Google::Cloud::Iot::V1::CreateDeviceRequest (v0.9.2)

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 generates name from the device registry id and the parent 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 generates name from the device registry id and the parent field.
Returns
  • (::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.

#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.