Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
docs: update samples for correct types (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl authored Feb 4, 2021
1 parent c3874ca commit 6592f5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion samples/listSecrets.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ async function main(parent = 'projects/my-project') {
});

secrets.forEach(secret => {
const policy = secret.replication.replication;
const policy = secret.replication.userManaged
? secret.replication.userManaged
: secret.replication.automatic;
console.log(`${secret.name} (${policy})`);
});
}
Expand Down

0 comments on commit 6592f5f

Please sign in to comment.