[[["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 CreatedHmacKey (1.48.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.48.3 (latest)](/php/docs/reference/cloud-storage/latest/CreatedHmacKey)\n- [1.48.2](/php/docs/reference/cloud-storage/1.48.2/CreatedHmacKey)\n- [1.47.0](/php/docs/reference/cloud-storage/1.47.0/CreatedHmacKey)\n- [1.46.0](/php/docs/reference/cloud-storage/1.46.0/CreatedHmacKey)\n- [1.45.0](/php/docs/reference/cloud-storage/1.45.0/CreatedHmacKey)\n- [1.44.0](/php/docs/reference/cloud-storage/1.44.0/CreatedHmacKey)\n- [1.43.1](/php/docs/reference/cloud-storage/1.43.1/CreatedHmacKey)\n- [1.42.1](/php/docs/reference/cloud-storage/1.42.1/CreatedHmacKey)\n- [1.41.4](/php/docs/reference/cloud-storage/1.41.4/CreatedHmacKey)\n- [1.37.0](/php/docs/reference/cloud-storage/1.37.0/CreatedHmacKey)\n- [1.36.1](/php/docs/reference/cloud-storage/1.36.1/CreatedHmacKey)\n- [1.35.0](/php/docs/reference/cloud-storage/1.35.0/CreatedHmacKey)\n- [1.34.0](/php/docs/reference/cloud-storage/1.34.0/CreatedHmacKey)\n- [1.33.4](/php/docs/reference/cloud-storage/1.33.4/CreatedHmacKey)\n- [1.32.0](/php/docs/reference/cloud-storage/1.32.0/CreatedHmacKey)\n- [1.31.2](/php/docs/reference/cloud-storage/1.31.2/CreatedHmacKey)\n- [1.30.3](/php/docs/reference/cloud-storage/1.30.3/CreatedHmacKey) \nReference documentation and code samples for the Cloud Storage Client class CreatedHmacKey.\n\nRepresents a newly created HMAC key. Provides access to the key metadata and\nsecret.\n\nExample: \n\n use Google\\Cloud\\Storage\\StorageClient;\n\n $storage = new StorageClient();\n $response = $storage-\u003ecreateHmacKey($serviceAccountEmail);\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Storage\n\nMethods\n-------\n\n### __construct\n\n### hmacKey\n\nGet the HMAC key object.\n\nExample: \n\n $key = $response-\u003ehmacKey();\n\n### secret\n\nGet the HMAC key secret.\n\nThis value will never be returned from the API after first creation. Make\nsure to record it for later use immediately upon key creation.\n\nExample: \n\n $secret = $response-\u003esecret();"]]