public sealed class UpdateDeviceRequest : IMessage<UpdateDeviceRequest>, IEquatable<UpdateDeviceRequest>, IDeepCloneable<UpdateDeviceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud IoT v1 API class UpdateDeviceRequest.
Required. The new values for the device. The id and num_id fields must
be empty, and the field name must specify the name path. For example,
projects/p0/locations/us-central1/registries/registry0/devices/device0or
projects/p0/locations/us-central1/registries/registry0/devices/{num_id}.
Required. Only updates the device fields indicated by this mask.
The field mask must not be empty, and it must not contain fields that
are immutable or only set by the server.
Mutable top-level fields: credentials, blocked, and metadata
[[["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\u003eThe latest version of the \u003ccode\u003eUpdateDeviceRequest\u003c/code\u003e class is 2.2.0, part of the Cloud IoT v1 API, designed for updating device information.\u003c/p\u003e\n"],["\u003cp\u003eThis class, \u003ccode\u003eUpdateDeviceRequest\u003c/code\u003e, serves as a request structure for the \u003ccode\u003eUpdateDevice\u003c/code\u003e operation within the Cloud IoT v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateDeviceRequest\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements 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 has two constructors: a default one and one that takes another \u003ccode\u003eUpdateDeviceRequest\u003c/code\u003e object as a parameter, allowing for easy cloning.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUpdateDeviceRequest\u003c/code\u003e has two primary properties, \u003ccode\u003eDevice\u003c/code\u003e (of type \u003ccode\u003eDevice\u003c/code\u003e) which details the device updates and \u003ccode\u003eUpdateMask\u003c/code\u003e (of type \u003ccode\u003eFieldMask\u003c/code\u003e) which dictates which fields should be modified, also noting that the Device \u003ccode\u003eid\u003c/code\u003e, and \u003ccode\u003enum_id\u003c/code\u003e fields must be empty, and \u003ccode\u003ename\u003c/code\u003e must be specified.\u003c/p\u003e\n"]]],[],null,[]]