Skip to content

Commit 337aeeb

Browse files
author
Frank Natividad
committed
Update metadata access
1 parent fa6c638 commit 337aeeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/src/list_hmac_keys.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ function list_hmac_keys($projectId)
3939
$hmacKeys = $storage->hmacKeys(['projectId' => $projectId]);
4040

4141
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']);
42+
printf('Service Account Email: %s' . PHP_EOL, $hmacKey->info()['serviceAccountEmail']);
43+
printf('Access Id: %s' . PHP_EOL, $hmacKey->info()['accessId']);
4444
}
4545
}
4646
# [END storage_list_hmac_keys]

0 commit comments

Comments
 (0)