Skip to content

Commit

Permalink
docs: add asymmetric samples to README files (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and callmehiphop committed Dec 5, 2019
1 parent de60f83 commit ae49a59
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 5 deletions.
5 changes: 5 additions & 0 deletions packages/google-cloud-kms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ has instructions for running the samples.
| --------------------------- | --------------------------------- | ------ |
| Add Member To Crypto Key Policy | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/addMemberToCryptoKeyPolicy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/addMemberToCryptoKeyPolicy.js,samples/README.md) |
| Add Member To Key Ring Policy | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/addMemberToKeyRingPolicy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/addMemberToKeyRingPolicy.js,samples/README.md) |
| Asymmetric Decrypt | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/asymmetricDecrypt.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/asymmetricDecrypt.js,samples/README.md) |
| Asymmetric Encrypt | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/asymmetricEncrypt.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/asymmetricEncrypt.js,samples/README.md) |
| Asymmetric Sign | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/asymmetricSign.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/asymmetricSign.js,samples/README.md) |
| Asymmetric Verify | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/asymmetricVerify.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/asymmetricVerify.js,samples/README.md) |
| Create Crypto Key | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/createCryptoKey.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/createCryptoKey.js,samples/README.md) |
| Create Crypto Key Version | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/createCryptoKeyVersion.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/createCryptoKeyVersion.js,samples/README.md) |
| Create Keyring | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/createKeyring.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/createKeyring.js,samples/README.md) |
Expand All @@ -105,6 +109,7 @@ has instructions for running the samples.
| Get Crypto Key Iam Policy | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/getCryptoKeyIamPolicy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/getCryptoKeyIamPolicy.js,samples/README.md) |
| Get Keyring | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/getKeyring.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/getKeyring.js,samples/README.md) |
| Get Keyring Iam Policy | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/getKeyringIamPolicy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/getKeyringIamPolicy.js,samples/README.md) |
| Get Public Key | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/getPublicKey.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/getPublicKey.js,samples/README.md) |
| List Crypto Key Versions | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/listCryptoKeyVersions.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/listCryptoKeyVersions.js,samples/README.md) |
| List Crypto Keys | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/listCryptoKeys.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/listCryptoKeys.js,samples/README.md) |
| List Keyrings | [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/listKeyrings.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/listKeyrings.js,samples/README.md) |
Expand Down
90 changes: 90 additions & 0 deletions packages/google-cloud-kms/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
* [Samples](#samples)
* [Add Member To Crypto Key Policy](#add-member-to-crypto-key-policy)
* [Add Member To Key Ring Policy](#add-member-to-key-ring-policy)
* [Asymmetric Decrypt](#asymmetric-decrypt)
* [Asymmetric Encrypt](#asymmetric-encrypt)
* [Asymmetric Sign](#asymmetric-sign)
* [Asymmetric Verify](#asymmetric-verify)
* [Create Crypto Key](#create-crypto-key)
* [Create Crypto Key Version](#create-crypto-key-version)
* [Create Keyring](#create-keyring)
Expand All @@ -26,6 +30,7 @@
* [Get Crypto Key Iam Policy](#get-crypto-key-iam-policy)
* [Get Keyring](#get-keyring)
* [Get Keyring Iam Policy](#get-keyring-iam-policy)
* [Get Public Key](#get-public-key)
* [List Crypto Key Versions](#list-crypto-key-versions)
* [List Crypto Keys](#list-crypto-keys)
* [List Keyrings](#list-keyrings)
Expand Down Expand Up @@ -78,6 +83,74 @@ __Usage:__



### Asymmetric Decrypt

View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/asymmetricDecrypt.js).

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

__Usage:__


`node asymmetricDecrypt.js`


-----




### Asymmetric Encrypt

View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/asymmetricEncrypt.js).

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

__Usage:__


`node asymmetricEncrypt.js`


-----




### Asymmetric Sign

View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/asymmetricSign.js).

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

__Usage:__


`node asymmetricSign.js`


-----




### Asymmetric Verify

View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/asymmetricVerify.js).

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

__Usage:__


`node asymmetricVerify.js`


-----




### Create Crypto Key

View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/createCryptoKey.js).
Expand Down Expand Up @@ -282,6 +355,23 @@ __Usage:__



### Get Public Key

View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/getPublicKey.js).

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

__Usage:__


`node getPublicKey.js`


-----




### List Crypto Key Versions

View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samples/listCryptoKeyVersions.js).
Expand Down
10 changes: 5 additions & 5 deletions packages/google-cloud-kms/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-11-15T12:16:28.375801Z",
"updateTime": "2019-12-05T12:17:12.455870Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.41.1",
"dockerImage": "googleapis/artman@sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e"
"version": "0.42.1",
"dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "f6808ff4e8b966cd571e99279d4a2780ed97dff2",
"internalRef": "280581337"
"sha": "c0ac9b55f2e2efd0ee525b3a6591a1b09330e55a",
"internalRef": "283845474"
}
},
{
Expand Down

0 comments on commit ae49a59

Please sign in to comment.