1.5.0 (latest) 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    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.

Request message for `UpdateKey` method.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> UpdateKeyRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[UpdateKeyRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.UpdateKeyRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateKeyRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.UpdateKeyRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[UpdateKeyRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.UpdateKeyRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ApiKeys.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ApiKeys.V2/latest/Google.Cloud.ApiKeys.V2.md.txt)

## Assembly

Google.Cloud.ApiKeys.V2.dll

## Constructors

### UpdateKeyRequest()

    public UpdateKeyRequest()

### UpdateKeyRequest(UpdateKeyRequest)

    public UpdateKeyRequest(UpdateKeyRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `UpdateKeyRequest` |

## Properties

### Key

    public Key Key { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Key` |   |

### UpdateMask

    public FieldMask UpdateMask { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `FieldMask` |   |