Class HmacKey (5.19.1) Stay organized with collections Save and categorize content based on your preferences.
An HmacKey object contains metadata of an HMAC key created from a service account through theStorage client using .
Package
@google-cloud/storageConstructors
(constructor)(storage, accessId, options)
constructor(storage:Storage,accessId:string,options?:HmacKeyOptions);Constructs an HmacKey object.
Note: this only create a local reference to an HMAC key, to create an HMAC key, use .
| Name | Description |
| storage | StorageThe Storage instance this HMAC key is attached to. |
| accessId | stringThe unique accessId for this HMAC key. |
| options | HmacKeyOptionsConstructor configurations. |
const{Storage}=require('@google-cloud/storage');conststorage=newStorage();consthmacKey=storage.hmacKey('access-id');Properties
metadata
metadata:HmacKeyMetadata|undefined;Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.