diff --git a/synth.py b/synth.py index 8c957d732..90d15a59e 100644 --- a/synth.py +++ b/synth.py @@ -14,13 +14,10 @@ """This script is used to synthesize generated parts of this library.""" -import re -import textwrap - import synthtool as s from synthtool import gcp -gapic = gcp.GAPICGenerator() +gapic = gcp.GAPICBazel() common = gcp.CommonTemplates() version = "v1" @@ -28,9 +25,9 @@ # Generate pubsub GAPIC layer # ---------------------------------------------------------------------------- library = gapic.py_library( - "pubsub", - version, - config_path="/google/pubsub/artman_pubsub.yaml", + service="pubsub", + version=version, + bazel_target="//google/pubsub/v1:pubsub-v1-py", include_protos=True, ) s.move(