Skip to content

Commit

Permalink
Securitycenter: overlooked synth changes. (#6439)
Browse files Browse the repository at this point in the history
The *effects* were merged in #6348, but not the synth changes themselves.
  • Loading branch information
tseaver committed Nov 7, 2018
1 parent 49b6b6b commit 3ccf2cd
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions packages/google-cloud-securitycenter/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,9 @@
]
)

# Fix security_center_client.py docstrings.
# Add encoding header to protoc-generated files.
# See: https://github.com/googleapis/gapic-generator/issues/2097
s.replace(
"google/cloud/securitycenter_v1beta1/gapic/security_center_client.py",
"::\n\n\s+(compare_duration, but present at [a-z]+_time.)",
" \g<1>"
)

s.replace(
"google/cloud/securitycenter_v1beta1/gapic/security_center_client.py",
"::\n\n\s+(compare_duration, but not present at [a-z]+_time.)",
" \g<1>"
)

s.replace(
"google/cloud/securitycenter_v1beta1/gapic/security_center_client.py",
"(^\s+)::\n\n\s+(start and the end of the time period defined by\n)"
"\s+(compare_duration and [a-z]+_time.)",
"\g<1> \g<2>\g<1> \g<3>"
)
'**/proto/*_pb2.py',
r"(^.*$\n)*",
r"# -*- coding: utf-8 -*-\n\g<0>")

0 comments on commit 3ccf2cd

Please sign in to comment.