Skip to content

Commit

Permalink
docs(samples): add auto-generated samples for Node with api short nam…
Browse files Browse the repository at this point in the history
…e in region tag (#502)

* docs(samples): add auto-generated samples for Node with api short name in region tag

PiperOrigin-RevId: 399287285

Source-Link: googleapis/googleapis@1575986

Source-Link: googleapis/googleapis-gen@b27fff6
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjI3ZmZmNjIzYTVkOGQ1ODZiNzAzYjVlNDkxOTg1NmFiZTdjMmViMyJ9

* 🦉 Updates from OwlBot

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
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Sep 28, 2021
1 parent bdecd11 commit 168b421
Show file tree
Hide file tree
Showing 26 changed files with 52 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(name, ciphertext) {
// [START kms_v1_generated_KeyManagementService_AsymmetricDecrypt_async]
// [START cloudkms_v1_generated_KeyManagementService_AsymmetricDecrypt_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -65,7 +65,7 @@ function main(name, ciphertext) {
}

asymmetricDecrypt();
// [END kms_v1_generated_KeyManagementService_AsymmetricDecrypt_async]
// [END cloudkms_v1_generated_KeyManagementService_AsymmetricDecrypt_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(name, digest) {
// [START kms_v1_generated_KeyManagementService_AsymmetricSign_async]
// [START cloudkms_v1_generated_KeyManagementService_AsymmetricSign_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -65,7 +65,7 @@ function main(name, digest) {
}

asymmetricSign();
// [END kms_v1_generated_KeyManagementService_AsymmetricSign_async]
// [END cloudkms_v1_generated_KeyManagementService_AsymmetricSign_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(parent, cryptoKeyId, cryptoKey) {
// [START kms_v1_generated_KeyManagementService_CreateCryptoKey_async]
// [START cloudkms_v1_generated_KeyManagementService_CreateCryptoKey_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -62,7 +62,7 @@ function main(parent, cryptoKeyId, cryptoKey) {
}

createCryptoKey();
// [END kms_v1_generated_KeyManagementService_CreateCryptoKey_async]
// [END cloudkms_v1_generated_KeyManagementService_CreateCryptoKey_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(parent, cryptoKeyVersion) {
// [START kms_v1_generated_KeyManagementService_CreateCryptoKeyVersion_async]
// [START cloudkms_v1_generated_KeyManagementService_CreateCryptoKeyVersion_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -48,7 +48,7 @@ function main(parent, cryptoKeyVersion) {
}

createCryptoKeyVersion();
// [END kms_v1_generated_KeyManagementService_CreateCryptoKeyVersion_async]
// [END cloudkms_v1_generated_KeyManagementService_CreateCryptoKeyVersion_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(parent, importJobId, importJob) {
// [START kms_v1_generated_KeyManagementService_CreateImportJob_async]
// [START cloudkms_v1_generated_KeyManagementService_CreateImportJob_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -54,7 +54,7 @@ function main(parent, importJobId, importJob) {
}

createImportJob();
// [END kms_v1_generated_KeyManagementService_CreateImportJob_async]
// [END cloudkms_v1_generated_KeyManagementService_CreateImportJob_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(parent, keyRingId, keyRing) {
// [START kms_v1_generated_KeyManagementService_CreateKeyRing_async]
// [START cloudkms_v1_generated_KeyManagementService_CreateKeyRing_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -54,7 +54,7 @@ function main(parent, keyRingId, keyRing) {
}

createKeyRing();
// [END kms_v1_generated_KeyManagementService_CreateKeyRing_async]
// [END cloudkms_v1_generated_KeyManagementService_CreateKeyRing_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(name, ciphertext) {
// [START kms_v1_generated_KeyManagementService_Decrypt_async]
// [START cloudkms_v1_generated_KeyManagementService_Decrypt_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -87,7 +87,7 @@ function main(name, ciphertext) {
}

decrypt();
// [END kms_v1_generated_KeyManagementService_Decrypt_async]
// [END cloudkms_v1_generated_KeyManagementService_Decrypt_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(name) {
// [START kms_v1_generated_KeyManagementService_DestroyCryptoKeyVersion_async]
// [START cloudkms_v1_generated_KeyManagementService_DestroyCryptoKeyVersion_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand All @@ -42,7 +42,7 @@ function main(name) {
}

destroyCryptoKeyVersion();
// [END kms_v1_generated_KeyManagementService_DestroyCryptoKeyVersion_async]
// [END cloudkms_v1_generated_KeyManagementService_DestroyCryptoKeyVersion_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(name, plaintext) {
// [START kms_v1_generated_KeyManagementService_Encrypt_async]
// [START cloudkms_v1_generated_KeyManagementService_Encrypt_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -100,7 +100,7 @@ function main(name, plaintext) {
}

encrypt();
// [END kms_v1_generated_KeyManagementService_Encrypt_async]
// [END cloudkms_v1_generated_KeyManagementService_Encrypt_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main() {
// [START kms_v1_generated_KeyManagementService_GenerateRandomBytes_async]
// [START cloudkms_v1_generated_KeyManagementService_GenerateRandomBytes_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -51,7 +51,7 @@ function main() {
}

generateRandomBytes();
// [END kms_v1_generated_KeyManagementService_GenerateRandomBytes_async]
// [END cloudkms_v1_generated_KeyManagementService_GenerateRandomBytes_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(name) {
// [START kms_v1_generated_KeyManagementService_GetCryptoKey_async]
// [START cloudkms_v1_generated_KeyManagementService_GetCryptoKey_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand All @@ -42,7 +42,7 @@ function main(name) {
}

getCryptoKey();
// [END kms_v1_generated_KeyManagementService_GetCryptoKey_async]
// [END cloudkms_v1_generated_KeyManagementService_GetCryptoKey_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(name) {
// [START kms_v1_generated_KeyManagementService_GetCryptoKeyVersion_async]
// [START cloudkms_v1_generated_KeyManagementService_GetCryptoKeyVersion_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand All @@ -42,7 +42,7 @@ function main(name) {
}

getCryptoKeyVersion();
// [END kms_v1_generated_KeyManagementService_GetCryptoKeyVersion_async]
// [END cloudkms_v1_generated_KeyManagementService_GetCryptoKeyVersion_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(name) {
// [START kms_v1_generated_KeyManagementService_GetImportJob_async]
// [START cloudkms_v1_generated_KeyManagementService_GetImportJob_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand All @@ -42,7 +42,7 @@ function main(name) {
}

getImportJob();
// [END kms_v1_generated_KeyManagementService_GetImportJob_async]
// [END cloudkms_v1_generated_KeyManagementService_GetImportJob_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(name) {
// [START kms_v1_generated_KeyManagementService_GetKeyRing_async]
// [START cloudkms_v1_generated_KeyManagementService_GetKeyRing_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand All @@ -42,7 +42,7 @@ function main(name) {
}

getKeyRing();
// [END kms_v1_generated_KeyManagementService_GetKeyRing_async]
// [END cloudkms_v1_generated_KeyManagementService_GetKeyRing_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(name) {
// [START kms_v1_generated_KeyManagementService_GetPublicKey_async]
// [START cloudkms_v1_generated_KeyManagementService_GetPublicKey_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -43,7 +43,7 @@ function main(name) {
}

getPublicKey();
// [END kms_v1_generated_KeyManagementService_GetPublicKey_async]
// [END cloudkms_v1_generated_KeyManagementService_GetPublicKey_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(parent, algorithm, importJob) {
// [START kms_v1_generated_KeyManagementService_ImportCryptoKeyVersion_async]
// [START cloudkms_v1_generated_KeyManagementService_ImportCryptoKeyVersion_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -98,7 +98,7 @@ function main(parent, algorithm, importJob) {
}

importCryptoKeyVersion();
// [END kms_v1_generated_KeyManagementService_ImportCryptoKeyVersion_async]
// [END cloudkms_v1_generated_KeyManagementService_ImportCryptoKeyVersion_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(parent) {
// [START kms_v1_generated_KeyManagementService_ListCryptoKeyVersions_async]
// [START cloudkms_v1_generated_KeyManagementService_ListCryptoKeyVersions_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -76,7 +76,7 @@ function main(parent) {
}

listCryptoKeyVersions();
// [END kms_v1_generated_KeyManagementService_ListCryptoKeyVersions_async]
// [END cloudkms_v1_generated_KeyManagementService_ListCryptoKeyVersions_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(parent) {
// [START kms_v1_generated_KeyManagementService_ListCryptoKeys_async]
// [START cloudkms_v1_generated_KeyManagementService_ListCryptoKeys_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -75,7 +75,7 @@ function main(parent) {
}

listCryptoKeys();
// [END kms_v1_generated_KeyManagementService_ListCryptoKeys_async]
// [END cloudkms_v1_generated_KeyManagementService_ListCryptoKeys_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(parent) {
// [START kms_v1_generated_KeyManagementService_ListImportJobs_async]
// [START cloudkms_v1_generated_KeyManagementService_ListImportJobs_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -71,7 +71,7 @@ function main(parent) {
}

listImportJobs();
// [END kms_v1_generated_KeyManagementService_ListImportJobs_async]
// [END cloudkms_v1_generated_KeyManagementService_ListImportJobs_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(parent) {
// [START kms_v1_generated_KeyManagementService_ListKeyRings_async]
// [START cloudkms_v1_generated_KeyManagementService_ListKeyRings_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -71,7 +71,7 @@ function main(parent) {
}

listKeyRings();
// [END kms_v1_generated_KeyManagementService_ListKeyRings_async]
// [END cloudkms_v1_generated_KeyManagementService_ListKeyRings_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(name, data) {
// [START kms_v1_generated_KeyManagementService_MacSign_async]
// [START cloudkms_v1_generated_KeyManagementService_MacSign_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -64,7 +64,7 @@ function main(name, data) {
}

macSign();
// [END kms_v1_generated_KeyManagementService_MacSign_async]
// [END cloudkms_v1_generated_KeyManagementService_MacSign_async]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'use strict';

function main(name, data, mac) {
// [START kms_v1_generated_KeyManagementService_MacVerify_async]
// [START cloudkms_v1_generated_KeyManagementService_MacVerify_async]
/**
* TODO(developer): Uncomment these variables before running the sample.
*/
Expand Down Expand Up @@ -85,7 +85,7 @@ function main(name, data, mac) {
}

macVerify();
// [END kms_v1_generated_KeyManagementService_MacVerify_async]
// [END cloudkms_v1_generated_KeyManagementService_MacVerify_async]
}

process.on('unhandledRejection', err => {
Expand Down
Loading

0 comments on commit 168b421

Please sign in to comment.