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.
getKey
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.
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.
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.
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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Api Keys V2 Client - Class UpdateKeyRequest (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-api-keys/latest/V2.UpdateKeyRequest)\n- [1.0.4](/php/docs/reference/cloud-api-keys/1.0.4/V2.UpdateKeyRequest)\n- [0.4.5](/php/docs/reference/cloud-api-keys/0.4.5/V2.UpdateKeyRequest)\n- [0.3.3](/php/docs/reference/cloud-api-keys/0.3.3/V2.UpdateKeyRequest)\n- [0.2.2](/php/docs/reference/cloud-api-keys/0.2.2/V2.UpdateKeyRequest)\n- [0.1.7](/php/docs/reference/cloud-api-keys/0.1.7/V2.UpdateKeyRequest) \nReference documentation and code samples for the Google Cloud Api Keys V2 Client class UpdateKeyRequest.\n\nRequest message for `UpdateKey` method.\n\nGenerated from protobuf message `google.api.apikeys.v2.UpdateKeyRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ApiKeys \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getKey\n\nRequired. Set the `name` field to the resource name of the API key to be\nupdated. You can update only the `display_name`, `restrictions`, and\n`annotations` fields.\n\n### hasKey\n\n### clearKey\n\n### setKey\n\nRequired. Set the `name` field to the resource name of the API key to be\nupdated. You can update only the `display_name`, `restrictions`, and\n`annotations` fields.\n\n### getUpdateMask\n\nThe field mask specifies which fields to be updated as part of this\nrequest. All other fields are ignored.\n\nMutable fields are: `display_name`, `restrictions`, and `annotations`.\nIf an update mask is not provided, the service treats it as an implied mask\nequivalent to all allowed fields that are set on the wire. If the field\nmask has a special value \"\\*\", the service treats it equivalent to replace\nall allowed mutable fields.\n\n### hasUpdateMask\n\n### clearUpdateMask\n\n### setUpdateMask\n\nThe field mask specifies which fields to be updated as part of this\nrequest. All other fields are ignored.\n\nMutable fields are: `display_name`, `restrictions`, and `annotations`.\nIf an update mask is not provided, the service treats it as an implied mask\nequivalent to all allowed fields that are set on the wire. If the field\nmask has a special value \"\\*\", the service treats it equivalent to replace\nall allowed mutable fields.\n\n### static::build"]]