Skip to content

Commit

Permalink
build: use bazel build (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Jul 6, 2020
1 parent 2931cb7 commit a52647a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 37 deletions.
44 changes: 18 additions & 26 deletions packages/google-cloud-videointelligence/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -3,70 +3,62 @@
{
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-video-intelligence.git",
"sha": "b3fa3ef1e6648379495d5c94e8dea184b8fcec4d"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "ce56112c3585cae794cc6c066eee175b931bebbc",
"internalRef": "314387187"
"remote": "[email protected]:googleapis/nodejs-video-intelligence.git",
"sha": "81c92d800f932db89430cd7af2d9e1d73305d499"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
}
}
],
"destinations": [
{
"client": {
"source": "googleapis",
"apiName": "video-intelligence",
"apiName": "videointelligence",
"apiVersion": "v1beta2",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "video-intelligence",
"apiName": "videointelligence",
"apiVersion": "v1p1beta1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "video-intelligence",
"apiName": "videointelligence",
"apiVersion": "v1p2beta1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "video-intelligence",
"apiName": "videointelligence",
"apiVersion": "v1p3beta1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
},
{
"client": {
"source": "googleapis",
"apiName": "video-intelligence",
"apiName": "videointelligence",
"apiVersion": "v1",
"language": "typescript",
"generator": "gapic-generator-typescript"
"language": "nodejs",
"generator": "bazel"
}
}
]
Expand Down
13 changes: 2 additions & 11 deletions packages/google-cloud-videointelligence/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

AUTOSYNTH_MULTIPLE_COMMITS = True

gapic = gcp.GAPICMicrogenerator()
gapic = gcp.GAPICBazel()
common_templates = gcp.CommonTemplates()

versions = ["v1", "v1beta2", "v1p1beta1", "v1p2beta1", "v1p3beta1"]
Expand All @@ -19,16 +19,7 @@
order_versions.index(default_version)))

for version in order_versions:
library = gapic.typescript_library(
"video-intelligence",
version,
generator_args={
"grpc-service-config": f"google/cloud/videointelligence/{version}/videointelligence_grpc_service_config.json",
"package-name": "@google-cloud/video-intelligence",
"main-service": "videointelligence",
},
proto_path=f'/google/cloud/videointelligence/{version}',
)
library = gapic.node_library("videointelligence", version)

# skip index, protos, package.json, and README.md
s.copy(library, excludes=["package.json", "README.md"])
Expand Down

0 comments on commit a52647a

Please sign in to comment.