Skip to content

Commit df84ccf

Browse files
build: use bazel build (#371)
1 parent d760616 commit df84ccf

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

packages/google-cloud-bigquery-datatransfer/synth.metadata

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,26 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "https://github.com/googleapis/nodejs-bigquery-data-transfer.git",
7-
"sha": "b21d501b244e1371ba3f0f3768491c349e43479b"
8-
}
9-
},
10-
{
11-
"git": {
12-
"name": "googleapis",
13-
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "a3a0bf0f6291d69f2ff3df7fcd63d28ee20ac727",
15-
"internalRef": "310060413"
6+
"remote": "git@github.com:googleapis/nodejs-bigquery-data-transfer.git",
7+
"sha": "aceef3271afd1bfa384f940463d4331656f432e2"
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
],
2618
"destinations": [
2719
{
2820
"client": {
2921
"source": "googleapis",
30-
"apiName": "bigquerydatatransfer",
22+
"apiName": "bigquery-datatransfer",
3123
"apiVersion": "v1",
32-
"language": "typescript",
33-
"generator": "gapic-generator-typescript"
24+
"language": "nodejs",
25+
"generator": "bazel"
3426
}
3527
}
3628
]

packages/google-cloud-bigquery-datatransfer/synth.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,12 @@
88
AUTOSYNTH_MULTIPLE_COMMITS = True
99

1010

11-
gapic = gcp.GAPICMicrogenerator()
11+
gapic = gcp.GAPICBazel()
1212

1313
# tasks has two product names, and a poorly named artman yaml
1414
version = 'v1'
1515

16-
library = gapic.typescript_library(
17-
'bigquerydatatransfer', version,
18-
generator_args={
19-
"grpc-service-config": f"google/cloud/bigquery/datatransfer/{version}/bigquerydatatransfer_grpc_service_config.json",
20-
"package-name": f"@google-cloud/bigquery-data-transfer"
21-
},
22-
proto_path=f'/google/cloud/bigquery/datatransfer/{version}',
23-
extra_proto_files=['google/cloud/common_resources.proto'],
24-
)
16+
library = gapic.node_library('bigquery-datatransfer', version, proto_path=f'google/cloud/bigquery/datatransfer/{version}')
2517

2618
# skip index, protos, package.json, and README.md
2719
s.copy(

0 commit comments

Comments
 (0)