We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa6c638 commit 337aeebCopy full SHA for 337aeeb
storage/src/list_hmac_keys.php
@@ -39,8 +39,8 @@ function list_hmac_keys($projectId)
39
$hmacKeys = $storage->hmacKeys(['projectId' => $projectId]);
40
41
foreach ($hmacKeys as $hmacKey) {
42
- printf('Service Account Email: %s' . PHP_EOL, $hmacKey['metadata']['serviceAccountEmail']);
43
- printf('Access Id: %s' . PHP_EOL, $hmacKey['metadata']['accessId']);
+ printf('Service Account Email: %s' . PHP_EOL, $hmacKey->info()['serviceAccountEmail']);
+ printf('Access Id: %s' . PHP_EOL, $hmacKey->info()['accessId']);
44
}
45
46
# [END storage_list_hmac_keys]
0 commit comments