diff --git a/synth.metadata b/synth.metadata index 8e9eac7..2171982 100644 --- a/synth.metadata +++ b/synth.metadata @@ -3,23 +3,15 @@ { "git": { "name": ".", - "remote": "https://github.com/googleapis/nodejs-recaptcha-enterprise.git", - "sha": "fd52ed9ae9cc159c2b3915fcfc4a11ae1462ac4b" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "c1ba5ba3f24307ca5a6df350d0137c29d69983d5", - "internalRef": "316715576" + "remote": "git@github.com:googleapis/nodejs-recaptcha-enterprise.git", + "sha": "dbccd2e444d5d808ad6981acf3ad6936106e9649" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7" + "sha": "303271797a360f8a439203413f13a160f2f5b3b4" } } ], @@ -29,8 +21,8 @@ "source": "googleapis", "apiName": "recaptchaenterprise", "apiVersion": "v1beta1", - "language": "typescript", - "generator": "gapic-generator-typescript" + "language": "nodejs", + "generator": "bazel" } }, { @@ -38,8 +30,8 @@ "source": "googleapis", "apiName": "recaptchaenterprise", "apiVersion": "v1", - "language": "typescript", - "generator": "gapic-generator-typescript" + "language": "nodejs", + "generator": "bazel" } } ] diff --git a/synth.py b/synth.py index 9b135f8..5056423 100644 --- a/synth.py +++ b/synth.py @@ -24,18 +24,10 @@ # run the gapic generator -gapic = gcp.GAPICMicrogenerator() +gapic = gcp.GAPICBazel() versions = ['v1beta1', 'v1'] for version in versions: - library = gapic.typescript_library( - 'recaptchaenterprise', version, - generator_args={ - "grpc-service-config": f"google/cloud/recaptchaenterprise/{version}/recaptchaenterprise_grpc_service_config.json", - "package-name": f"@google-cloud/recaptcha-enterprise", - }, - proto_path=f'/google/cloud/recaptchaenterprise/{version}', - extra_proto_files=['google/cloud/common_resources.proto'] - ) + library = gapic.node_library('recaptchaenterprise', version) s.copy(library, excludes=['package.json']) # Copy common templates