Skip to content

Commit 1881e27

Browse files
build: use bazel build (#355)
1 parent 99c3c4c commit 1881e27

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

packages/google-cloud-iot/synth.metadata

+5-13
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,15 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "https://github.com/googleapis/nodejs-iot.git",
7-
"sha": "cc6d7c2fe6973ce9f0cd3540c83577771e389509"
8-
}
9-
},
10-
{
11-
"git": {
12-
"name": "googleapis",
13-
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "6dfd72d028a0d0a43764e060f7b15e004385c3a1",
15-
"internalRef": "310168181"
6+
"remote": "[email protected]:googleapis/nodejs-iot.git",
7+
"sha": "ec97cbd41b38547d1a7c0f1ca8c434d1b1a2424b"
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,8 +21,8 @@
2921
"source": "googleapis",
3022
"apiName": "iot",
3123
"apiVersion": "v1",
32-
"language": "typescript",
33-
"generator": "gapic-generator-typescript"
24+
"language": "nodejs",
25+
"generator": "bazel"
3426
}
3527
}
3628
]

packages/google-cloud-iot/synth.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,11 @@
2424
AUTOSYNTH_MULTIPLE_COMMITS = True
2525

2626

27-
gapic = gcp.GAPICMicrogenerator()
27+
gapic = gcp.GAPICBazel()
2828
versions = ['v1']
2929

3030
for version in versions:
31-
library = gapic.typescript_library(
32-
'iot',
33-
generator_args={
34-
"grpc-service-config": f"google/cloud/iot/{version}/cloudiot_grpc_service_config.json",
35-
"package-name": "@google-cloud/iot",
36-
"main-service": "iot"
37-
},
38-
proto_path=f'/google/cloud/iot/{version}',
39-
extra_proto_files=['google/cloud/common_resources.proto'],
40-
version=version)
31+
library = gapic.node_library('iot', version)
4132

4233
# skip index, protos, package.json, and README.md
4334
s.copy(

0 commit comments

Comments
 (0)