Represents the metadata for a Google Cloud Storage HmacKeyResource.
HMAC keys allow applications to authenticate with Google Cloud Storage using HMAC authentication. Applications can create a limited number of HMAC keys associated with a service account. The application can use the HMAC keys to authenticate with GCS. GCS will use the service account permissions to determine if the request is authorized.
[[["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-08-14 UTC."],[[["\u003cp\u003eThe document details the \u003ccode\u003eHmacKeyMetadata\u003c/code\u003e class, which represents metadata for a Google Cloud Storage HMAC key resource, essential for applications authenticating with Google Cloud Storage.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a list of available versions, ranging from the latest release candidate \u003ccode\u003e2.37.0-rc\u003c/code\u003e down to version \u003ccode\u003e2.11.0\u003c/code\u003e, each linking to its corresponding documentation for the \u003ccode\u003eHmacKeyMetadata\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eHmacKeyMetadata\u003c/code\u003e class includes functions for setting and retrieving various metadata attributes, such as \u003ccode\u003eaccess_id\u003c/code\u003e, \u003ccode\u003eid\u003c/code\u003e, \u003ccode\u003ekind\u003c/code\u003e, \u003ccode\u003eproject_id\u003c/code\u003e, \u003ccode\u003eservice_account_email\u003c/code\u003e, \u003ccode\u003etime_created\u003c/code\u003e, \u003ccode\u003eupdated\u003c/code\u003e, and \u003ccode\u003eetag\u003c/code\u003e, as well as \u003ccode\u003estate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTesting modifiers are included in the functions for attributes that cannot normally be changed during updating, creating, or patching an \u003ccode\u003eHmacKeyMetadata\u003c/code\u003e resource, but are required when mocking the C++ client library test results.\u003c/p\u003e\n"],["\u003cp\u003eStatic functions are provided to easily retrieve the possible states of an HMAC key (\u003ccode\u003estate_active\u003c/code\u003e, \u003ccode\u003estate_inactive\u003c/code\u003e, and \u003ccode\u003estate_deleted\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,[]]