Skip to content

Commit 7d8beca

Browse files
build: use bazel build (#450)
1 parent 5084941 commit 7d8beca

File tree

2 files changed

+7
-25
lines changed

2 files changed

+7
-25
lines changed

packages/google-cloud-monitoring/synth.metadata

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,15 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "https://github.com/googleapis/nodejs-monitoring.git",
7-
"sha": "c3bda103c90d7aa404397a8b3e729f62c8416f57"
8-
}
9-
},
10-
{
11-
"git": {
12-
"name": "googleapis",
13-
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "51362f378a286494980ffc9a5199ab6e3cefd6d5",
15-
"internalRef": "314788297"
6+
"remote": "[email protected]:googleapis/nodejs-monitoring.git",
7+
"sha": "1e0751185d29f17ea9e8fd6eaf03a40f9a60cf6e"
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": "monitoring",
3123
"apiVersion": "v3",
32-
"language": "typescript",
33-
"generator": "gapic-generator-typescript"
24+
"language": "nodejs",
25+
"generator": "bazel"
3426
}
3527
}
3628
]

packages/google-cloud-monitoring/synth.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,9 @@
2323
AUTOSYNTH_MULTIPLE_COMMITS = True
2424

2525

26-
gapic = gcp.GAPICMicrogenerator()
26+
gapic = gcp.GAPICBazel()
2727
version = "v3"
28-
library = gapic.typescript_library(
29-
"monitoring",
30-
version,
31-
generator_args={
32-
"grpc-service-config": f"google/monitoring/{version}/monitoring_grpc_service_config.json",
33-
"package-name": "@google-cloud/monitoring",
34-
"main-service": "monitoring"
35-
},
36-
proto_path=f'/google/monitoring/{version}',
37-
extra_proto_files=['google/cloud/common_resources.proto']
38-
)
28+
library = gapic.node_library("monitoring", version, proto_path=f'google/monitoring/{version}')
3929

4030
s.copy(library, excludes=["README.md", "package.json"])
4131

0 commit comments

Comments
 (0)