Skip to content

Commit

Permalink
Asset: fix docs build. (#6351)
Browse files Browse the repository at this point in the history
Broken in #6349.
  • Loading branch information
tseaver authored Oct 31, 2018
1 parent 9db3cbe commit 1ac2b0d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
9 changes: 5 additions & 4 deletions asset/google/cloud/asset_v1beta1/proto/assets_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions asset/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,24 @@
"_ASSET.fields_by_name['iam_policy'].message_type = google_dot_iam_dot"
"_v1_dot_policy__pb2.google_dot_iam_dot_v1_dot_policy__pb2._POLICY",
)


_BORKED_ASSET_DOCSTRING = """\
The full name of the asset. For example: ``//compute.googleapi
s.com/projects/my_project_123/zones/zone1/instances/instance1`
`. See `Resource Names <https://cloud.google.com/apis/design/r
esource_names#full_resource_name>`__ for more information.
"""

_FIXED_ASSET_DOCSTRING = """
The full name of the asset. For example:
``//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1``.
See https://cloud.google.com/apis/design/resource_names#full_resource_name
for more information.
"""

s.replace(
"google/cloud/asset_v1beta1/proto/assets_pb2.py",
_BORKED_ASSET_DOCSTRING,
_FIXED_ASSET_DOCSTRING,
)

0 comments on commit 1ac2b0d

Please sign in to comment.