Skip to content

Commit fbf229a

Browse files
authored
Add protos as an artifact to library (#7205)
1 parent e69dbdb commit fbf229a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/google-cloud-dlp/synth.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
# Generate dlp GAPIC layer
2828
# ----------------------------------------------------------------------------
2929
library = gapic.py_library(
30-
"dlp", "v2", config_path="/google/privacy/dlp/artman_dlp_v2.yaml"
30+
"dlp",
31+
"v2",
32+
config_path="/google/privacy/dlp/artman_dlp_v2.yaml",
33+
include_protos=True,
3134
)
3235

3336
excludes = ["README.rst", "nox.py", "setup.py", "docs/index.rst"]
@@ -47,8 +50,8 @@
4750
s.replace(
4851
"google/cloud/dlp_v2/proto/storage_pb2.py",
4952
"number regex.*\n(\s+)latex:.*\n",
50-
"number regex \"(\\d\{3\}) \\d\{3\}-\\d\{4\} \"\\\n"
51-
"\g<1>could be adjusted upwards if the area code is \\\n"
53+
'number regex "(\\d\{3\}) \\d\{3\}-\\d\{4\} "\\\n'
54+
"\g<1>could be adjusted upwards if the area code is \\\n",
5255
)
5356

5457
# Fix Docstrings in google/cloud/dlp_v2/proto/storage_pb2.py

0 commit comments

Comments
 (0)