# Class UpdateKeyRequest (0.9.0)

0.9.0 (latest) 0.8.0 0.7.0 0.6.0 0.5.17 0.4.1 0.3.0 0.2.2 0.1.0

    UpdateKeyRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Request message for `UpdateKey` method.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.cloud.google.com/python/docs/reference/apikeys/latest/google.cloud.api_keys_v2.types.Key` 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. |
| `update_mask` | `google.protobuf.field_mask_pb2.FieldMask` 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. |