public sealed class CreateDeviceRequest : IMessage<CreateDeviceRequest>, IEquatable<CreateDeviceRequest>, IDeepCloneable<CreateDeviceRequest>, IBufferMessage, IMessage
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
Type
Description
System.String
ParentAsRegistryName
public RegistryName ParentAsRegistryName { get; set; }
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document outlines the \u003ccode\u003eCreateDeviceRequest\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Iot.V1\u003c/code\u003e namespace, used for creating a device in Google Cloud IoT Core.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateDeviceRequest\u003c/code\u003e class is part of version 2.0.0 of the Google.Cloud.Iot.V1 package and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors for creating a new \u003ccode\u003eCreateDeviceRequest\u003c/code\u003e instance and copying an existing one, along with properties for \u003ccode\u003eDevice\u003c/code\u003e registration details and the \u003ccode\u003eParent\u003c/code\u003e registry name.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eParent\u003c/code\u003e property is required and specifies the registry where the device will be created, such as \u003ccode\u003eprojects/example-project/locations/us-central1/registries/my-registry\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere is a \u003ccode\u003eParentAsRegistryName\u003c/code\u003e property, which provides a \u003ccode\u003eRegistryName\u003c/code\u003e-typed view of the \u003ccode\u003eParent\u003c/code\u003e resource name.\u003c/p\u003e\n"]]],[],null,[]]