[[["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,["# Cloud Storage Client - Class HmacKey (1.48.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.48.3 (latest)](/php/docs/reference/cloud-storage/latest/HmacKey)\n- [1.48.2](/php/docs/reference/cloud-storage/1.48.2/HmacKey)\n- [1.47.0](/php/docs/reference/cloud-storage/1.47.0/HmacKey)\n- [1.46.0](/php/docs/reference/cloud-storage/1.46.0/HmacKey)\n- [1.45.0](/php/docs/reference/cloud-storage/1.45.0/HmacKey)\n- [1.44.0](/php/docs/reference/cloud-storage/1.44.0/HmacKey)\n- [1.43.1](/php/docs/reference/cloud-storage/1.43.1/HmacKey)\n- [1.42.1](/php/docs/reference/cloud-storage/1.42.1/HmacKey)\n- [1.41.4](/php/docs/reference/cloud-storage/1.41.4/HmacKey)\n- [1.37.0](/php/docs/reference/cloud-storage/1.37.0/HmacKey)\n- [1.36.1](/php/docs/reference/cloud-storage/1.36.1/HmacKey)\n- [1.35.0](/php/docs/reference/cloud-storage/1.35.0/HmacKey)\n- [1.34.0](/php/docs/reference/cloud-storage/1.34.0/HmacKey)\n- [1.33.4](/php/docs/reference/cloud-storage/1.33.4/HmacKey)\n- [1.32.0](/php/docs/reference/cloud-storage/1.32.0/HmacKey)\n- [1.31.2](/php/docs/reference/cloud-storage/1.31.2/HmacKey)\n- [1.30.3](/php/docs/reference/cloud-storage/1.30.3/HmacKey) \nReference documentation and code samples for the Cloud Storage Client class HmacKey.\n\nRepresents a Service Account HMAC key.\n\nExample: \n\n use Google\\Cloud\\Storage\\StorageClient;\n\n $storage = new StorageClient();\n $hmacKey = $storage-\u003ehmacKey($accessId);\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Storage\n\nMethods\n-------\n\n### __construct\n\n### accessId\n\nGet the HMAC Key Access ID.\n\nExample: \n\n $accessId = $hmacKey-\u003eaccessId();\n\n### reload\n\nFetch the key metadata from Cloud Storage.\n\nExample: \n\n $keyMetadata = $hmacKey-\u003ereload();\n\n### info\n\nGet the HMAC Key Metadata.\n\nIf the metadata is not already available, it will be requested from Cloud\nStorage.\n\nExample: \n\n $keyMetadata = $hmacKey-\u003einfo();\n\n### update\n\nUpdate the HMAC Key state.\n\nExample: \n\n $hmacKey-\u003eupdate('INACTIVE');\n\n### delete\n\nDelete the HMAC Key.\n\nKey state must be set to `INACTIVE` prior to deletion. See\n[HmacKey::update()](/php/docs/reference/cloud-storage/latest/HmacKey#_Google_Cloud_Storage_HmacKey__update__) for details.\n\nExample: \n\n $hmacKey-\u003edelete();"]]