public sealed class UpdateKeyRequest : IMessage<UpdateKeyRequest>, IEquatable<UpdateKeyRequest>, IDeepCloneable<UpdateKeyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the API Keys v2 API class UpdateKeyRequest.
Required. Set the name field to the resource name of the API key to be
updated. You can update only the display_name, restrictions, and
annotations fields.
The field mask specifies which fields to be updated as part of this
request. All other fields are ignored.
Mutable fields are: display_name, restrictions, and annotations.
If an update mask is not provided, the service treats it as an implied mask
equivalent to all allowed fields that are set on the wire. If the field
mask has a special value "*", the service treats it equivalent to replace
all allowed mutable fields.
[[["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 page provides reference documentation for the \u003ccode\u003eUpdateKeyRequest\u003c/code\u003e class within the Google Cloud API Keys v2 API, specifically version 1.0.0 of the .NET library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateKeyRequest\u003c/code\u003e class is used to send requests to update an existing API key, supporting updates to the \u003ccode\u003edisplay_name\u003c/code\u003e, \u003ccode\u003erestrictions\u003c/code\u003e, and \u003ccode\u003eannotations\u003c/code\u003e fields.\u003c/p\u003e\n"],["\u003cp\u003eIt 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, for message handling and object manipulation.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one default and one that takes an existing \u003ccode\u003eUpdateKeyRequest\u003c/code\u003e object for cloning, allowing for the creation of new instances or copying of existing instances.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUpdateKeyRequest\u003c/code\u003e includes properties \u003ccode\u003eKey\u003c/code\u003e to define the properties of the key to be updated and \u003ccode\u003eUpdateMask\u003c/code\u003e to define which fields of the key are to be modified.\u003c/p\u003e\n"]]],[],null,[]]