Skip to content

Commit

Permalink
Add protos as an artifact to library (#7205)
Browse files Browse the repository at this point in the history
  • Loading branch information
crwilcox authored Jan 29, 2019
1 parent e69dbdb commit fbf229a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/google-cloud-dlp/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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
Expand Down

0 comments on commit fbf229a

Please sign in to comment.