diff --git a/packages/google-cloud-kms/.jsdoc.js b/packages/google-cloud-kms/.jsdoc.js index c7ff7c6bf5b..36bbc77bc9a 100644 --- a/packages/google-cloud-kms/.jsdoc.js +++ b/packages/google-cloud-kms/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2021 Google LLC', + copyright: 'Copyright 2022 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/kms', diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.asymmetric_decrypt.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.asymmetric_decrypt.js index 5b9e0f0b7a2..a7ec8e16a7f 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.asymmetric_decrypt.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.asymmetric_decrypt.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name, ciphertext) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.asymmetric_sign.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.asymmetric_sign.js index 80c4ce0e9e5..cfad58308b6 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.asymmetric_sign.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.asymmetric_sign.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_crypto_key.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_crypto_key.js index aaad339bc93..40d1048a865 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_crypto_key.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_crypto_key.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, cryptoKeyId, cryptoKey) { @@ -37,7 +38,7 @@ function main(parent, cryptoKeyId, cryptoKey) { * If set to true, the request will create a CryptoKey google.cloud.kms.v1.CryptoKey without any * CryptoKeyVersions google.cloud.kms.v1.CryptoKeyVersion. You must manually call * CreateCryptoKeyVersion google.cloud.kms.v1.KeyManagementService.CreateCryptoKeyVersion or - * ImportCryptoKeyVersion google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion + * ImportCryptoKeyVersion google.cloud.kms.v1.KeyManagementService.ImportCryptoKeyVersion * before you can use this CryptoKey google.cloud.kms.v1.CryptoKey. */ // const skipInitialVersionCreation = true diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_crypto_key_version.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_crypto_key_version.js index 1d1278aaa5b..71310f19669 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_crypto_key_version.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_crypto_key_version.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, cryptoKeyVersion) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_import_job.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_import_job.js index 091d7f6bb30..a9212806670 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_import_job.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_import_job.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, importJobId, importJob) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_key_ring.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_key_ring.js index f2040c2d108..2035bc40dae 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_key_ring.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.create_key_ring.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, keyRingId, keyRing) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.decrypt.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.decrypt.js index 88a71dabc08..8e9c5595970 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.decrypt.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.decrypt.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name, ciphertext) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.destroy_crypto_key_version.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.destroy_crypto_key_version.js index eee23853fb2..e86f46d4e41 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.destroy_crypto_key_version.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.destroy_crypto_key_version.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.encrypt.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.encrypt.js index 234aec977e5..07062bf3930 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.encrypt.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.encrypt.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name, plaintext) { @@ -20,7 +21,7 @@ function main(name, plaintext) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The resource name of the CryptoKey google.cloud.kms.v1.CryptoKey or CryptoKeyVersion google.cloud.kms.v1.CryptoKeyVersion + * Required. The resource name of the CryptoKey google.cloud.kms.v1.CryptoKey or CryptoKeyVersion google.cloud.kms.v1.CryptoKeyVersion * to use for encryption. * If a CryptoKey google.cloud.kms.v1.CryptoKey is specified, the server will use its * primary version google.cloud.kms.v1.CryptoKey.primary. diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.generate_random_bytes.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.generate_random_bytes.js index 4bd35ef2da1..f76b2cf33fc 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.generate_random_bytes.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.generate_random_bytes.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -43,7 +44,8 @@ function main() { async function callGenerateRandomBytes() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await kmsClient.generateRandomBytes(request); diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_crypto_key.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_crypto_key.js index 5ffb7450024..21501a8cd68 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_crypto_key.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_crypto_key.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_crypto_key_version.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_crypto_key_version.js index e813add5291..8376be70a3f 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_crypto_key_version.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_crypto_key_version.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_import_job.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_import_job.js index 2ebcbe8c080..b537109b032 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_import_job.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_import_job.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_key_ring.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_key_ring.js index 694b2b3ea74..335202a7333 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_key_ring.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_key_ring.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_public_key.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_public_key.js index cbea91b1ad0..c8ffbad4fca 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_public_key.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.get_public_key.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.import_crypto_key_version.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.import_crypto_key_version.js index 42bfb8a0748..4819da5c87a 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.import_crypto_key_version.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.import_crypto_key_version.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, algorithm, importJob) { @@ -36,7 +37,7 @@ function main(parent, algorithm, importJob) { * ImportCryptoKeyVersionRequest.parent google.cloud.kms.v1.ImportCryptoKeyVersionRequest.parent, have been previously created via * ImportCryptoKeyVersion , and be in * DESTROYED google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.DESTROYED or - * IMPORT_FAILED google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.IMPORT_FAILED + * IMPORT_FAILED google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.IMPORT_FAILED * state. The key material and algorithm must match the previous * CryptoKeyVersion google.cloud.kms.v1.CryptoKeyVersion exactly if the CryptoKeyVersion google.cloud.kms.v1.CryptoKeyVersion has ever contained * key material. @@ -56,7 +57,7 @@ function main(parent, algorithm, importJob) { // const importJob = 'abc123' /** * Wrapped key material produced with - * RSA_OAEP_3072_SHA1_AES_256 google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256 + * RSA_OAEP_3072_SHA1_AES_256 google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_3072_SHA1_AES_256 * or * RSA_OAEP_4096_SHA1_AES_256 google.cloud.kms.v1.ImportJob.ImportMethod.RSA_OAEP_4096_SHA1_AES_256. * This field contains the concatenation of two wrapped keys: diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_crypto_key_versions.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_crypto_key_versions.js index cc412332e5e..461b0be29a3 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_crypto_key_versions.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_crypto_key_versions.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -71,7 +72,7 @@ function main(parent) { // Run request const iterable = await kmsClient.listCryptoKeyVersionsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_crypto_keys.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_crypto_keys.js index a7efd9d70a3..0a342da050d 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_crypto_keys.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_crypto_keys.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -70,7 +71,7 @@ function main(parent) { // Run request const iterable = await kmsClient.listCryptoKeysAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_import_jobs.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_import_jobs.js index e728c7bc9ac..cfdbbf7bdfb 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_import_jobs.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_import_jobs.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -66,7 +67,7 @@ function main(parent) { // Run request const iterable = await kmsClient.listImportJobsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_key_rings.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_key_rings.js index 3b0b06e890f..e203219b8e0 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_key_rings.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.list_key_rings.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -66,7 +67,7 @@ function main(parent) { // Run request const iterable = await kmsClient.listKeyRingsAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.mac_sign.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.mac_sign.js index 455ae5ad74b..7a991005698 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.mac_sign.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.mac_sign.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name, data) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.mac_verify.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.mac_verify.js index dd6e5072f45..10d261f162a 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.mac_verify.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.mac_verify.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name, data, mac) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.restore_crypto_key_version.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.restore_crypto_key_version.js index 1dbff47d06b..292a0d58067 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.restore_crypto_key_version.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.restore_crypto_key_version.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.update_crypto_key.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.update_crypto_key.js index 235a1ca34fa..d6ca8f85ce0 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.update_crypto_key.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.update_crypto_key.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(cryptoKey, updateMask) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.update_crypto_key_primary_version.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.update_crypto_key_primary_version.js index 3ddb707835f..df374cf98f8 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.update_crypto_key_primary_version.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.update_crypto_key_primary_version.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name, cryptoKeyVersionId) { diff --git a/packages/google-cloud-kms/samples/generated/v1/key_management_service.update_crypto_key_version.js b/packages/google-cloud-kms/samples/generated/v1/key_management_service.update_crypto_key_version.js index 9ef97ce1f97..ace6bc15abc 100644 --- a/packages/google-cloud-kms/samples/generated/v1/key_management_service.update_crypto_key_version.js +++ b/packages/google-cloud-kms/samples/generated/v1/key_management_service.update_crypto_key_version.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(cryptoKeyVersion, updateMask) { diff --git a/packages/google-cloud-kms/src/v1/index.ts b/packages/google-cloud-kms/src/v1/index.ts index e07f7779a19..99ef9a40dd4 100644 --- a/packages/google-cloud-kms/src/v1/index.ts +++ b/packages/google-cloud-kms/src/v1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-kms/src/v1/key_management_service_client.ts b/packages/google-cloud-kms/src/v1/key_management_service_client.ts index fb75f7ab0f6..2e9dec120fe 100644 --- a/packages/google-cloud-kms/src/v1/key_management_service_client.ts +++ b/packages/google-cloud-kms/src/v1/key_management_service_client.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-kms/system-test/fixtures/sample/src/index.js b/packages/google-cloud-kms/system-test/fixtures/sample/src/index.js index a8185c8f076..bd66bdd141d 100644 --- a/packages/google-cloud-kms/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-kms/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-kms/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-kms/system-test/fixtures/sample/src/index.ts index 98b9b62abb6..b894a2431ad 100644 --- a/packages/google-cloud-kms/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-kms/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-kms/system-test/install.ts b/packages/google-cloud-kms/system-test/install.ts index d2d61c0396f..6dd1eaadafa 100644 --- a/packages/google-cloud-kms/system-test/install.ts +++ b/packages/google-cloud-kms/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-cloud-kms/test/gapic_key_management_service_v1.ts b/packages/google-cloud-kms/test/gapic_key_management_service_v1.ts index 6b8a401b581..7dc49603f9c 100644 --- a/packages/google-cloud-kms/test/gapic_key_management_service_v1.ts +++ b/packages/google-cloud-kms/test/gapic_key_management_service_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.