diff --git a/packages/google-cloud-kms/src/index.ts b/packages/google-cloud-kms/src/index.ts index 020e1dc373d..decab1284c5 100644 --- a/packages/google-cloud-kms/src/index.ts +++ b/packages/google-cloud-kms/src/index.ts @@ -12,15 +12,15 @@ // See the License for the specific language governing permissions and // limitations under the License. // -// ** This file is automatically generated by gapic-generator-typescript. ** -// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** This file is automatically generated by synthtool. ** +// ** https://github.com/googleapis/synthtool ** // ** All changes to this file may be overwritten. ** import * as v1 from './v1'; + const KeyManagementServiceClient = v1.KeyManagementServiceClient; + export {v1, KeyManagementServiceClient}; -// For compatibility with JavaScript libraries we need to provide this default export: -// tslint:disable-next-line no-default-export export default {v1, KeyManagementServiceClient}; import * as protos from '../protos/protos'; export {protos}; diff --git a/packages/google-cloud-kms/synth.metadata b/packages/google-cloud-kms/synth.metadata index 88b3e72c522..0f29d346904 100644 --- a/packages/google-cloud-kms/synth.metadata +++ b/packages/google-cloud-kms/synth.metadata @@ -4,14 +4,22 @@ "git": { "name": ".", "remote": "git@github.com:googleapis/nodejs-kms.git", - "sha": "31837decd96e2e09946d2458be3be0d0f6a35c3b" + "sha": "e6083a9c3d1e3c97785faee3bdfbe8bcce14d3ee" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "6dfd72d028a0d0a43764e060f7b15e004385c3a1", + "internalRef": "310168181" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ab883569eb0257bbf16a6d825fd018b3adde3912" + "sha": "756bc4dfc24e8bc4c5dd4116daa41a0440ebf5a0" } } ], diff --git a/packages/google-cloud-kms/synth.py b/packages/google-cloud-kms/synth.py index 4a5ea8ef1ae..0316432fe44 100644 --- a/packages/google-cloud-kms/synth.py +++ b/packages/google-cloud-kms/synth.py @@ -30,24 +30,25 @@ versions = ['v1'] for version in versions: library = gapic.typescript_library( - 'kms', version, - generator_args={ - "grpc-service-config": f"google/cloud/kms/{version}/cloudkms_grpc_service_config.json", - "package-name": "@google-cloud/kms", - "iam-service": "true" - }, - proto_path=f'/google/cloud/kms/{version}', - extra_proto_files=['google/cloud/common_resources.proto'] - ) + 'kms', version, + generator_args={ + "grpc-service-config": f"google/cloud/kms/{version}/cloudkms_grpc_service_config.json", + "package-name": "@google-cloud/kms", + "iam-service": "true" + }, + proto_path=f'/google/cloud/kms/{version}', + extra_proto_files=['google/cloud/common_resources.proto'] + ) # skip index, package.json, and README.md s.copy( library, - excludes=['package.json', 'README.md', 'src/index.ts'], + excludes=['package.json', 'README.md'], ) # Copy common templates common_templates = gcp.CommonTemplates() -templates = common_templates.node_library(source_location='build/src') +templates = common_templates.node_library( + source_location='build/src', versions=versions, default_version='v1') s.copy(templates) node.postprocess_gapic_library()