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."],[[["This page provides reference documentation for the `UpdateKeyRequest` class within the Google Cloud API Keys v2 API, specifically version 1.0.0 of the .NET library."],["The `UpdateKeyRequest` class is used to send requests to update an existing API key, supporting updates to the `display_name`, `restrictions`, and `annotations` fields."],["It implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, for message handling and object manipulation."],["The class has two constructors, one default and one that takes an existing `UpdateKeyRequest` object for cloning, allowing for the creation of new instances or copying of existing instances."],["The `UpdateKeyRequest` includes properties `Key` to define the properties of the key to be updated and `UpdateMask` to define which fields of the key are to be modified."]]],[]]