From fbf229a296ceb14aeac7613bca8e2c0f9021f838 Mon Sep 17 00:00:00 2001 From: Christopher Wilcox Date: Tue, 29 Jan 2019 13:28:49 -0800 Subject: [PATCH] Add protos as an artifact to library (#7205) --- packages/google-cloud-dlp/synth.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/google-cloud-dlp/synth.py b/packages/google-cloud-dlp/synth.py index b7c346390ea0..1a250d614a82 100644 --- a/packages/google-cloud-dlp/synth.py +++ b/packages/google-cloud-dlp/synth.py @@ -27,7 +27,10 @@ # Generate dlp GAPIC layer # ---------------------------------------------------------------------------- library = gapic.py_library( - "dlp", "v2", config_path="/google/privacy/dlp/artman_dlp_v2.yaml" + "dlp", + "v2", + config_path="/google/privacy/dlp/artman_dlp_v2.yaml", + include_protos=True, ) excludes = ["README.rst", "nox.py", "setup.py", "docs/index.rst"] @@ -47,8 +50,8 @@ s.replace( "google/cloud/dlp_v2/proto/storage_pb2.py", "number regex.*\n(\s+)latex:.*\n", - "number regex \"(\\d\{3\}) \\d\{3\}-\\d\{4\} \"\\\n" - "\g<1>could be adjusted upwards if the area code is \\\n" + 'number regex "(\\d\{3\}) \\d\{3\}-\\d\{4\} "\\\n' + "\g<1>could be adjusted upwards if the area code is \\\n", ) # Fix Docstrings in google/cloud/dlp_v2/proto/storage_pb2.py