Cloud IoT v1 API - Class CreateDeviceRequest (2.2.0)

public sealed class CreateDeviceRequest : IMessage<CreateDeviceRequest>, IEquatable<CreateDeviceRequest>, IDeepCloneable<CreateDeviceRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud IoT v1 API class CreateDeviceRequest.

Request for CreateDevice.

Inheritance

object > CreateDeviceRequest

Namespace

Google.Cloud.Iot.V1

Assembly

Google.Cloud.Iot.V1.dll

Constructors

CreateDeviceRequest()

public CreateDeviceRequest()

CreateDeviceRequest(CreateDeviceRequest)

public CreateDeviceRequest(CreateDeviceRequest other)
Parameter
NameDescription
otherCreateDeviceRequest

Properties

Device

public Device Device { get; set; }

Required. The device registration details. The field name must be empty. The server generates name from the device registry id and the parent field.

Property Value
TypeDescription
Device

Parent

public string Parent { get; set; }

Required. The name of the device registry where this device should be created. For example, projects/example-project/locations/us-central1/registries/my-registry.

Property Value
TypeDescription
string

ParentAsRegistryName

public RegistryName ParentAsRegistryName { get; set; }

RegistryName-typed view over the Parent resource name property.

Property Value
TypeDescription
RegistryName