Skip to content

Commit bec4a9a

Browse files
authored
chore: switch to Bazel for client generation (#44)
1 parent 78c0bc4 commit bec4a9a

File tree

1 file changed

+6
-2
lines changed
  • packages/google-cloud-bigquery-reservation

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@
1919
import synthtool.gcp as gcp
2020
from synthtool.languages import python
2121

22-
gapic = gcp.GAPICMicrogenerator()
22+
gapic = gcp.GAPICBazel()
2323
common = gcp.CommonTemplates()
2424

2525
# ----------------------------------------------------------------------------
2626
# Generate access approval GAPIC layer
2727
# ----------------------------------------------------------------------------
28-
library = gapic.py_library("bigquery/reservation", "v1")
28+
library = gapic.py_library(
29+
service="bigquery/reservation",
30+
version="v1",
31+
bazel_target=f"//google/cloud/bigquery/reservation/v1:bigquery-reservation-v1-py"
32+
)
2933

3034
s.move(library, excludes=["nox.py", "setup.py", "README.rst", "docs/index.rst"])
3135

0 commit comments

Comments
 (0)