Skip to content

Commit

Permalink
samples: update getSecret sample to include version (#311)
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin E. Coe <bencoe@google.com>
  • Loading branch information
OskarDamkjaer and bcoe authored Nov 17, 2021
1 parent 0bfc9d7 commit 305e836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secret-manager/getSecret.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function main(name = 'projects/my-project/secrets/my-secret') {
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
// const name = 'projects/my-project/secrets/my-secret';
// const name = 'projects/my-project/secrets/my-secret/versions/my-version';

// Imports the Secret Manager library
const {SecretManagerServiceClient} = require('@google-cloud/secret-manager');
Expand Down

0 comments on commit 305e836

Please sign in to comment.