diff --git a/packages/google-cloud-monitoring/synth.py b/packages/google-cloud-monitoring/synth.py index 87dd6c76594b..0b86825e7987 100644 --- a/packages/google-cloud-monitoring/synth.py +++ b/packages/google-cloud-monitoring/synth.py @@ -20,17 +20,16 @@ logging.basicConfig(level=logging.DEBUG) -gapic = gcp.GAPICGenerator() +gapic = gcp.GAPICBazel() common = gcp.CommonTemplates() # ---------------------------------------------------------------------------- # Generate monitoring GAPIC layer # ---------------------------------------------------------------------------- v3_library = gapic.py_library( - "monitoring", - "v3", - config_path="/google/monitoring/artman_monitoring.yaml", - artman_output_name="monitoring-v3", + service="monitoring", + version="v3", + bazel_target="//google/monitoring/v3:monitoring-v3-py", include_protos=True, )