Skip to content

Commit

Permalink
feat: add code samples for secret manager access by alias (#373)
Browse files Browse the repository at this point in the history
* feat: add code samples for secret manager access by alias

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Benjamin E. Coe <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 9, 2022
1 parent 5953e66 commit 94e6d0b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/google-cloud-secretmanager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-secret-mana
| List Secrets | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/listSecrets.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-secret-manager&page=editor&open_in_editor=samples/listSecrets.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-secret-manager&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
| Update Secret | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/updateSecret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-secret-manager&page=editor&open_in_editor=samples/updateSecret.js,samples/README.md) |
| Update Secret With Alias | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/updateSecretWithAlias.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-secret-manager&page=editor&open_in_editor=samples/updateSecretWithAlias.js,samples/README.md) |



Expand Down
18 changes: 18 additions & 0 deletions packages/google-cloud-secretmanager/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* [List Secrets](#list-secrets)
* [Quickstart](#quickstart)
* [Update Secret](#update-secret)
* [Update Secret With Alias](#update-secret-with-alias)

## Before you begin

Expand Down Expand Up @@ -293,6 +294,23 @@ __Usage:__
`node samples/updateSecret.js`


-----




### Update Secret With Alias

View the [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/updateSecretWithAlias.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-secret-manager&page=editor&open_in_editor=samples/updateSecretWithAlias.js,samples/README.md)

__Usage:__


`node samples/updateSecretWithAlias.js`





Expand Down

0 comments on commit 94e6d0b

Please sign in to comment.