Skip to content

Commit

Permalink
docs(samples): Added sample for creating Secret with UserManaged repl…
Browse files Browse the repository at this point in the history
…ication (#388)

* added create ummr secret sample

* added test for create ummr secret

* fix dependency version

* lint changes

* updated copyright

* updated comment

* 🦉 Updates from OwlBot post-processor

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

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
kapishps and gcf-owl-bot[bot] authored Aug 17, 2022
1 parent 94e6d0b commit 0500ae5
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 @@ -116,6 +116,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-secret-mana
| Access Secret Version | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/accessSecretVersion.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/accessSecretVersion.js,samples/README.md) |
| Add Secret Version | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/addSecretVersion.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/addSecretVersion.js,samples/README.md) |
| Create Secret | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/createSecret.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/createSecret.js,samples/README.md) |
| Create Ummr Secret | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/createUmmrSecret.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/createUmmrSecret.js,samples/README.md) |
| Delete Secret | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/deleteSecret.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/deleteSecret.js,samples/README.md) |
| Destroy Secret Version | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/destroySecretVersion.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/destroySecretVersion.js,samples/README.md) |
| Disable Secret Version | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/disableSecretVersion.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/disableSecretVersion.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 @@ -15,6 +15,7 @@
* [Access Secret Version](#access-secret-version)
* [Add Secret Version](#add-secret-version)
* [Create Secret](#create-secret)
* [Create Ummr Secret](#create-ummr-secret)
* [Delete Secret](#delete-secret)
* [Destroy Secret Version](#destroy-secret-version)
* [Disable Secret Version](#disable-secret-version)
Expand Down Expand Up @@ -95,6 +96,23 @@ __Usage:__



### Create Ummr Secret

View the [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/createUmmrSecret.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/createUmmrSecret.js,samples/README.md)

__Usage:__


`node samples/createUmmrSecret.js`


-----




### Delete Secret

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

0 comments on commit 0500ae5

Please sign in to comment.