diff --git a/asset/google/cloud/asset_v1beta1/proto/assets_pb2.py b/asset/google/cloud/asset_v1beta1/proto/assets_pb2.py index eb32b660cce4..32907446e262 100644 --- a/asset/google/cloud/asset_v1beta1/proto/assets_pb2.py +++ b/asset/google/cloud/asset_v1beta1/proto/assets_pb2.py @@ -292,10 +292,11 @@ Attributes: name: - The full name of the asset. For example: ``//compute.googleapi - s.com/projects/my_project_123/zones/zone1/instances/instance1` - `. See `Resource Names `__ for more information. + + 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. asset_type: Type of the asset. Example: "google.compute.disk". resource: diff --git a/asset/synth.py b/asset/synth.py index 91d37c5b7c07..279a7ad79a82 100644 --- a/asset/synth.py +++ b/asset/synth.py @@ -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 `__ 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, +)