From bb8d54252051f078bf1d95335a13d97c976c5e85 Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Tue, 21 Apr 2020 17:51:52 -0700 Subject: [PATCH] chore: Migrate access-bigquery-datatransfer synth.py from artman to bazel (#24) Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> --- packages/google-cloud-bigquery-datatransfer/synth.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/google-cloud-bigquery-datatransfer/synth.py b/packages/google-cloud-bigquery-datatransfer/synth.py index 9a8acff4369c..1e6dc8f3153f 100644 --- a/packages/google-cloud-bigquery-datatransfer/synth.py +++ b/packages/google-cloud-bigquery-datatransfer/synth.py @@ -17,7 +17,7 @@ import synthtool as s from synthtool import gcp -gapic = gcp.GAPICGenerator() +gapic = gcp.GAPICBazel() common = gcp.CommonTemplates() version = "v1" @@ -25,11 +25,9 @@ # Generate bigquery_datatransfer GAPIC layer # ---------------------------------------------------------------------------- library = gapic.py_library( - "bigquery_datatransfer", - version, - config_path="/google/cloud/bigquery/datatransfer/" - "artman_bigquerydatatransfer.yaml", - artman_output_name="bigquerydatatransfer-v1", + service="bigquery_datatransfer", + version=version, + bazel_target="//google/cloud/bigquery/datatransfer/v1:bigquery-datatransfer-v1-py", include_protos=True, )