Skip to content

Commit 1daeeba

Browse files
committed
Change zone to location.
1 parent f800be2 commit 1daeeba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kms/quickstart.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const google = require('googleapis');
2222
// Your Google Cloud Platform project ID
2323
const projectId = 'YOUR_PROJECT_ID';
2424

25-
// The "global" zone will list all keys. It can be a specific zone if desired.
26-
const zone = 'global';
25+
// Lists keys in the "global" location.
26+
const location = 'global';
2727

2828
// Acquires credentials
2929
google.auth.getApplicationDefault((err, authClient) => {
@@ -44,7 +44,7 @@ google.auth.getApplicationDefault((err, authClient) => {
4444
auth: authClient
4545
});
4646
const params = {
47-
parent: `projects/${projectId}/locations/${zone}`
47+
parent: `projects/${projectId}/locations/${location}`
4848
};
4949

5050
// Lists key rings

0 commit comments

Comments
 (0)