Skip to content

Commit

Permalink
docs: update jsdoc license/samples-README (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored and jkwlui committed Dec 26, 2019
1 parent ae49a59 commit 0543397
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 43 deletions.
29 changes: 14 additions & 15 deletions packages/google-cloud-kms/.jsdoc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
/*!
* Copyright 2018 Google LLC. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

'use strict';

Expand Down
62 changes: 34 additions & 28 deletions packages/google-cloud-kms/samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
Before running the samples, make sure you've followed the steps outlined in
[Using the client library](https://github.com/googleapis/nodejs-kms#using-the-client-library).

`cd samples`

`npm install`

`cd ..`

## Samples


Expand All @@ -58,7 +64,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node addMemberToCryptoKeyPolicy.js`
`node samples/addMemberToCryptoKeyPolicy.js`


-----
Expand All @@ -75,7 +81,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node addMemberToKeyRingPolicy.js`
`node samples/addMemberToKeyRingPolicy.js`


-----
Expand All @@ -92,7 +98,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node asymmetricDecrypt.js`
`node samples/asymmetricDecrypt.js`


-----
Expand All @@ -109,7 +115,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node asymmetricEncrypt.js`
`node samples/asymmetricEncrypt.js`


-----
Expand All @@ -126,7 +132,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node asymmetricSign.js`
`node samples/asymmetricSign.js`


-----
Expand All @@ -143,7 +149,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node asymmetricVerify.js`
`node samples/asymmetricVerify.js`


-----
Expand All @@ -160,7 +166,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node createCryptoKey.js`
`node samples/createCryptoKey.js`


-----
Expand All @@ -177,7 +183,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node createCryptoKeyVersion.js`
`node samples/createCryptoKeyVersion.js`


-----
Expand All @@ -194,7 +200,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node createKeyring.js`
`node samples/createKeyring.js`


-----
Expand All @@ -211,7 +217,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node decrypt.js`
`node samples/decrypt.js`


-----
Expand All @@ -228,7 +234,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node destroyCryptoKeyVersion.js`
`node samples/destroyCryptoKeyVersion.js`


-----
Expand All @@ -245,7 +251,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node disableCryptoKeyVersion.js`
`node samples/disableCryptoKeyVersion.js`


-----
Expand All @@ -262,7 +268,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node enableCryptoKeyVersion.js`
`node samples/enableCryptoKeyVersion.js`


-----
Expand All @@ -279,7 +285,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node encrypt.js`
`node samples/encrypt.js`


-----
Expand All @@ -296,7 +302,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node getCryptoKey.js`
`node samples/getCryptoKey.js`


-----
Expand All @@ -313,7 +319,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node getCryptoKeyIamPolicy.js`
`node samples/getCryptoKeyIamPolicy.js`


-----
Expand All @@ -330,7 +336,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node getKeyring.js`
`node samples/getKeyring.js`


-----
Expand All @@ -347,7 +353,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node getKeyringIamPolicy.js`
`node samples/getKeyringIamPolicy.js`


-----
Expand All @@ -364,7 +370,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node getPublicKey.js`
`node samples/getPublicKey.js`


-----
Expand All @@ -381,7 +387,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node listCryptoKeyVersions.js`
`node samples/listCryptoKeyVersions.js`


-----
Expand All @@ -398,7 +404,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node listCryptoKeys.js`
`node samples/listCryptoKeys.js`


-----
Expand All @@ -415,7 +421,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node listKeyrings.js`
`node samples/listKeyrings.js`


-----
Expand All @@ -432,7 +438,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node quickstart.js`
`node samples/quickstart.js`


-----
Expand All @@ -449,7 +455,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node removeMemberCryptoKeyPolicy.js`
`node samples/removeMemberCryptoKeyPolicy.js`


-----
Expand All @@ -466,7 +472,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node removeMemberFromKeyRingPolicy.js`
`node samples/removeMemberFromKeyRingPolicy.js`


-----
Expand All @@ -483,7 +489,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node restoreCryptoKeyVersion.js`
`node samples/restoreCryptoKeyVersion.js`


-----
Expand All @@ -500,7 +506,7 @@ View the [source code](https://github.com/googleapis/nodejs-kms/blob/master/samp
__Usage:__


`node setPrimaryCryptoKeyVersion.js`
`node samples/setPrimaryCryptoKeyVersion.js`



Expand All @@ -509,4 +515,4 @@ __Usage:__

[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-kms&page=editor&open_in_editor=samples/README.md
[product-docs]: https://cloud.google.com/kms
[product-docs]: https://cloud.google.com/kms

0 comments on commit 0543397

Please sign in to comment.