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 documentation for the `UpdateKeyRequest` class within the Google Cloud API Keys v2 API, specifically version 1.1.0."],["`UpdateKeyRequest` is used as the request message for the `UpdateKey` method, allowing updates to API key details."],["The `UpdateKeyRequest` class inherits from `Object` and implements `IMessage\u003cUpdateKeyRequest\u003e`, `IEquatable\u003cUpdateKeyRequest\u003e`, `IDeepCloneable\u003cUpdateKeyRequest\u003e`, `IBufferMessage`, and `IMessage`."],["Key properties within `UpdateKeyRequest` include `Key`, representing the API key to be updated, and `UpdateMask`, which defines which fields can be updated, limited to `display_name`, `restrictions`, and `annotations`."],["The documentation covers the `UpdateKeyRequest` constructors, which consist of a default constructor, and one that takes in an `UpdateKeyRequest` as a parameter."]]],[]]