Skip to content

Commit 7083ca6

Browse files
build: use bazel build (#183)
1 parent 62836df commit 7083ca6

File tree

2 files changed

+9
-25
lines changed

2 files changed

+9
-25
lines changed

packages/google-cloud-recaptchaenterprise/synth.metadata

+7-15
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,15 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "https://github.com/googleapis/nodejs-recaptcha-enterprise.git",
7-
"sha": "fd52ed9ae9cc159c2b3915fcfc4a11ae1462ac4b"
8-
}
9-
},
10-
{
11-
"git": {
12-
"name": "googleapis",
13-
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "c1ba5ba3f24307ca5a6df350d0137c29d69983d5",
15-
"internalRef": "316715576"
6+
"remote": "[email protected]:googleapis/nodejs-recaptcha-enterprise.git",
7+
"sha": "dbccd2e444d5d808ad6981acf3ad6936106e9649"
168
}
179
},
1810
{
1911
"git": {
2012
"name": "synthtool",
2113
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
14+
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
2315
}
2416
}
2517
],
@@ -29,17 +21,17 @@
2921
"source": "googleapis",
3022
"apiName": "recaptchaenterprise",
3123
"apiVersion": "v1beta1",
32-
"language": "typescript",
33-
"generator": "gapic-generator-typescript"
24+
"language": "nodejs",
25+
"generator": "bazel"
3426
}
3527
},
3628
{
3729
"client": {
3830
"source": "googleapis",
3931
"apiName": "recaptchaenterprise",
4032
"apiVersion": "v1",
41-
"language": "typescript",
42-
"generator": "gapic-generator-typescript"
33+
"language": "nodejs",
34+
"generator": "bazel"
4335
}
4436
}
4537
]

packages/google-cloud-recaptchaenterprise/synth.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,10 @@
2424

2525

2626
# run the gapic generator
27-
gapic = gcp.GAPICMicrogenerator()
27+
gapic = gcp.GAPICBazel()
2828
versions = ['v1beta1', 'v1']
2929
for version in versions:
30-
library = gapic.typescript_library(
31-
'recaptchaenterprise', version,
32-
generator_args={
33-
"grpc-service-config": f"google/cloud/recaptchaenterprise/{version}/recaptchaenterprise_grpc_service_config.json",
34-
"package-name": f"@google-cloud/recaptcha-enterprise",
35-
},
36-
proto_path=f'/google/cloud/recaptchaenterprise/{version}',
37-
extra_proto_files=['google/cloud/common_resources.proto']
38-
)
30+
library = gapic.node_library('recaptchaenterprise', version)
3931
s.copy(library, excludes=['package.json'])
4032

4133
# Copy common templates

0 commit comments

Comments
 (0)