Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

chore: switch to Bazel for client generation #44

Merged
merged 3 commits into from
Oct 28, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@
import synthtool.gcp as gcp
from synthtool.languages import python

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

# ----------------------------------------------------------------------------
# Generate access approval GAPIC layer
# ----------------------------------------------------------------------------
library = gapic.py_library("bigquery/reservation", "v1")
library = gapic.py_library(
service="bigquery/reservation",
version="v1",
bazel_target=f"//google/cloud/bigquery/reservation/v1:bigquery-reservation-v1-py"
)

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

Expand Down