We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Redis: regen README.rst (DO NOT MERGE)
This PR was generated using Autosynth. :rainbow:

Here's the log from Synthtool:
```
synthtool > Cloning googleapis.
synthtool > Running generator for google/cloud/redis/artman_redis_v1beta1.yaml.
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/redis-v1beta1.
synthtool > Running generator for google/cloud/redis/artman_redis_v1.yaml.
synthtool > Ensuring dependencies.
synthtool > Pulling artman image.
synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/redis-v1.
synthtool > Replaced 'resources of the form:\\n      ``' in google/cloud/redis_v1/gapic/cloud_redis_client.py.
synthtool > Replaced 'resources of the form:\\n      ``' in google/cloud/redis_v1beta1/gapic/cloud_redis_client.py.
synthtool > Replaced '\n            parent \\(str\\): Required. The resource name of the instance location using the form:\n                ::\n\n                    `projects/{project_id}/locations/{location_id}`\n                where ``location_id`` refers to a GCP region' in google/cloud/redis_v1/gapic/cloud_redis_client.py.
synthtool > Replaced '\n            parent \\(str\\): Required. The resource name of the instance location using the form:\n                ::\n\n                    `projects/{project_id}/locations/{location_id}`\n                where ``location_id`` refers to a GCP region' in google/cloud/redis_v1beta1/gapic/cloud_redis_client.py.
synthtool > Replaced '\n                with the following restrictions:\n\n                \\* Must contain only lowercase letters, numbers, and hyphens\\.' in google/cloud/redis_v1/gapic/cloud_redis_client.py.
synthtool > Replaced '\n                with the following restrictions:\n\n                \\* Must contain only lowercase letters, numbers, and hyphens\\.' in google/cloud/redis_v1beta1/gapic/cloud_redis_client.py.
synthtool > Replaced '\n            name \\(str\\): Required. Redis instance resource name using the form:\n                ::\n\n                    `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\n                where ``location_id`` refers to a GCP region' in google/cloud/redis_v1/gapic/cloud_redis_client.py.
synthtool > Replaced '\n            name \\(str\\): Required. Redis instance resource name using the form:\n                ::\n\n                    `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\n                where ``location_id`` refers to a GCP region' in google/cloud/redis_v1beta1/gapic/cloud_redis_client.py.
synthtool > Replaced '\n                fields from ``Instance``:\n\n                 \\*   ``displayName``\n                 \\*   ``labels``\n                 \\*   ``memorySizeGb``\n                 \\*   ``redisConfig``' in google/cloud/redis_v1/gapic/cloud_redis_client.py.
synthtool > Replaced '(release_status = )(.*)$' in setup.py.
synthtool > Replaced '.. _Enable the Google Cloud Memorystore for Redis API.:  https://cloud.google.com/redis' in README.rst.
synthtool > Replaced 'https://cloud.google.com/redis' in README.rst.
synthtool > Replaced 'https://googlecloudplatform.github.io/google-cloud-python/stable/redis/usage.html' in README.rst.
synthtool > Replaced 'https://googlecloudplatform.github.io/google-cloud-python/stable/core/auth.html' in README.rst.
synthtool > Cleaned up 1 temporary directories.

```

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `redis/synth.py`
Content:
```
1 # Copyright 2018 Google LLC
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 
15 """This script is used to synthesize generated parts of this library."""
16 
17 import synthtool as s
18 import synthtool.gcp as gcp
19 import logging
20 
21 logging.basicConfig(level=logging.DEBUG)
22 
23 gapic = gcp.GAPICGenerator()
24 common = gcp.CommonTemplates()
25 excludes = [
26     'setup.py',
27     'nox.py',
28     'docs/conf.py',
29     'docs/index.rst',
30 ]
31 
32 for version in ['v1beta1', 'v1']:
33     library = gapic.py_library(
34         'redis', version,
35         config_path=f'artman_redis_{version}.yaml')
36 
37     s.copy(library, excludes=excludes)
38 
39 
40 # Fix docstrings
41 s.replace(
42     'google/cloud/**/cloud_redis_client.py',
43     r'resources of the form:\n      ``',
44     r'resources of the form:\n\n      ``',)
45 
46 s.replace(
47     'google/cloud/**/cloud_redis_client.py',
48     r"""
49             parent \(str\): Required. The resource name of the instance location using the form:
50                 ::
51 
52                     `projects/{project_id}/locations/{location_id}`
53                 where ``location_id`` refers to a GCP region""",
54 
55     r"""
56             parent (str): Required. The resource name of the instance location using the form ``projects/{project_id}/locations/{location_id}``
57                 where ``location_id`` refers to a GCP region""",)
58 
59 
60 s.replace(
61     'google/cloud/**/cloud_redis_client.py',
62     r"""
63                 with the following restrictions:
64 
65                 \* Must contain only lowercase letters, numbers, and hyphens\.""",
66     r"""
67                 with the following restrictions:
68                 * Must contain only lowercase letters, numbers, and hyphens.""")
69 
70 s.replace(
71     'google/cloud/**/cloud_redis_client.py',
72     r"""
73             name \(str\): Required. Redis instance resource name using the form:
74                 ::
75 
76                     `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
77                 where ``location_id`` refers to a GCP region""",
78     r"""
79             name (str): Required. Redis instance resource name using the form ``projects/{project_id}/locations/{location_id}/instances/{instance_id}```
80                 where ``location_id`` refers to a GCP region""")
81 
82 s.replace(
83     'google/cloud/**/cloud_redis_client.py',
84     r"""
85                 fields from ``Instance``:
86 
87                  \*   ``displayName``
88                  \*   ``labels``
89                  \*   ``memorySizeGb``
90                  \*   ``redisConfig``""",
91 
92     r"""
93                 fields from ``Instance``: ``displayName``, ``labels``, ``memorySizeGb``, and ``redisConfig``.""",)
94 
95 # Set Release Status
96 release_status = 'Development Status :: 3 - Alpha'
97 s.replace('setup.py',
98           '(release_status = )(.*)$',
99           f"\\1'{release_status}'")
100 
101 # Fix the enable API link
102 s.replace(
103     'README.rst',
104     r'.. _Enable the Google Cloud Memorystore for Redis API.:  https://cloud.google.com/redis',
105     '.. _Enable the Google Cloud Memorystore for Redis API.:  https://console.cloud.google.com/apis/'
106     'library/redis.googleapis.com')
107 
108 # Fix link to product page
109 s.replace(
110     'README.rst',
111     r'https://cloud.google.com/redis',
112     'https://cloud.google.com/memorystore/')
113 
114 # Fix link to Client Library Documentation
115 s.replace(
116     'README.rst',
117     r'https://googlecloudplatform.github.io/google-cloud-python/stable/redis/usage.html',
118     'https://googlecloudplatform.github.io/google-cloud-python/latest/redis/index.html')
119 
120 # Fix link to Auth instructions
121 s.replace(
122     'README.rst',
123     r'https://googlecloudplatform.github.io/google-cloud-python/stable/core/auth.html',
124     'https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html')
125
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/redis/synth.py b/redis/synth.py
--- a/redis/synth.py
+++ b/redis/synth.py
@@ -23,8 +23,9 @@
 gapic = gcp.GAPICGenerator()
 common = gcp.CommonTemplates()
 excludes = [
+    'README.rst',
     'setup.py',
-    'nox.py',
+    'nox*.py',
     'docs/conf.py',
     'docs/index.rst',
 ]

{"golden_diff": "diff --git a/redis/synth.py b/redis/synth.py\n--- a/redis/synth.py\n+++ b/redis/synth.py\n@@ -23,8 +23,9 @@\n gapic = gcp.GAPICGenerator()\n common = gcp.CommonTemplates()\n excludes = [\n+    'README.rst',\n     'setup.py',\n-    'nox.py',\n+    'nox*.py',\n     'docs/conf.py',\n     'docs/index.rst',\n ]\n", "issue": "Redis: regen README.rst (DO NOT MERGE)\nThis PR was generated using Autosynth. :rainbow:\n\nHere's the log from Synthtool:\n```\nsynthtool > Cloning googleapis.\nsynthtool > Running generator for google/cloud/redis/artman_redis_v1beta1.yaml.\nsynthtool > Ensuring dependencies.\nsynthtool > Pulling artman image.\nsynthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/redis-v1beta1.\nsynthtool > Running generator for google/cloud/redis/artman_redis_v1.yaml.\nsynthtool > Ensuring dependencies.\nsynthtool > Pulling artman image.\nsynthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/python/redis-v1.\nsynthtool > Replaced 'resources of the form:\\\\n      ``' in google/cloud/redis_v1/gapic/cloud_redis_client.py.\nsynthtool > Replaced 'resources of the form:\\\\n      ``' in google/cloud/redis_v1beta1/gapic/cloud_redis_client.py.\nsynthtool > Replaced '\\n            parent \\\\(str\\\\): Required. The resource name of the instance location using the form:\\n                ::\\n\\n                    `projects/{project_id}/locations/{location_id}`\\n                where ``location_id`` refers to a GCP region' in google/cloud/redis_v1/gapic/cloud_redis_client.py.\nsynthtool > Replaced '\\n            parent \\\\(str\\\\): Required. The resource name of the instance location using the form:\\n                ::\\n\\n                    `projects/{project_id}/locations/{location_id}`\\n                where ``location_id`` refers to a GCP region' in google/cloud/redis_v1beta1/gapic/cloud_redis_client.py.\nsynthtool > Replaced '\\n                with the following restrictions:\\n\\n                \\\\* Must contain only lowercase letters, numbers, and hyphens\\\\.' in google/cloud/redis_v1/gapic/cloud_redis_client.py.\nsynthtool > Replaced '\\n                with the following restrictions:\\n\\n                \\\\* Must contain only lowercase letters, numbers, and hyphens\\\\.' in google/cloud/redis_v1beta1/gapic/cloud_redis_client.py.\nsynthtool > Replaced '\\n            name \\\\(str\\\\): Required. Redis instance resource name using the form:\\n                ::\\n\\n                    `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\\n                where ``location_id`` refers to a GCP region' in google/cloud/redis_v1/gapic/cloud_redis_client.py.\nsynthtool > Replaced '\\n            name \\\\(str\\\\): Required. Redis instance resource name using the form:\\n                ::\\n\\n                    `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\\n                where ``location_id`` refers to a GCP region' in google/cloud/redis_v1beta1/gapic/cloud_redis_client.py.\nsynthtool > Replaced '\\n                fields from ``Instance``:\\n\\n                 \\\\*   ``displayName``\\n                 \\\\*   ``labels``\\n                 \\\\*   ``memorySizeGb``\\n                 \\\\*   ``redisConfig``' in google/cloud/redis_v1/gapic/cloud_redis_client.py.\nsynthtool > Replaced '(release_status = )(.*)$' in setup.py.\nsynthtool > Replaced '.. _Enable the Google Cloud Memorystore for Redis API.:  https://cloud.google.com/redis' in README.rst.\nsynthtool > Replaced 'https://cloud.google.com/redis' in README.rst.\nsynthtool > Replaced 'https://googlecloudplatform.github.io/google-cloud-python/stable/redis/usage.html' in README.rst.\nsynthtool > Replaced 'https://googlecloudplatform.github.io/google-cloud-python/stable/core/auth.html' in README.rst.\nsynthtool > Cleaned up 1 temporary directories.\n\n```\n", "before_files": [{"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\"\"\"This script is used to synthesize generated parts of this library.\"\"\"\n\nimport synthtool as s\nimport synthtool.gcp as gcp\nimport logging\n\nlogging.basicConfig(level=logging.DEBUG)\n\ngapic = gcp.GAPICGenerator()\ncommon = gcp.CommonTemplates()\nexcludes = [\n    'setup.py',\n    'nox.py',\n    'docs/conf.py',\n    'docs/index.rst',\n]\n\nfor version in ['v1beta1', 'v1']:\n    library = gapic.py_library(\n        'redis', version,\n        config_path=f'artman_redis_{version}.yaml')\n\n    s.copy(library, excludes=excludes)\n\n\n# Fix docstrings\ns.replace(\n    'google/cloud/**/cloud_redis_client.py',\n    r'resources of the form:\\n      ``',\n    r'resources of the form:\\n\\n      ``',)\n\ns.replace(\n    'google/cloud/**/cloud_redis_client.py',\n    r\"\"\"\n            parent \\(str\\): Required. The resource name of the instance location using the form:\n                ::\n\n                    `projects/{project_id}/locations/{location_id}`\n                where ``location_id`` refers to a GCP region\"\"\",\n\n    r\"\"\"\n            parent (str): Required. The resource name of the instance location using the form ``projects/{project_id}/locations/{location_id}``\n                where ``location_id`` refers to a GCP region\"\"\",)\n\n\ns.replace(\n    'google/cloud/**/cloud_redis_client.py',\n    r\"\"\"\n                with the following restrictions:\n\n                \\* Must contain only lowercase letters, numbers, and hyphens\\.\"\"\",\n    r\"\"\"\n                with the following restrictions:\n                * Must contain only lowercase letters, numbers, and hyphens.\"\"\")\n\ns.replace(\n    'google/cloud/**/cloud_redis_client.py',\n    r\"\"\"\n            name \\(str\\): Required. Redis instance resource name using the form:\n                ::\n\n                    `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\n                where ``location_id`` refers to a GCP region\"\"\",\n    r\"\"\"\n            name (str): Required. Redis instance resource name using the form ``projects/{project_id}/locations/{location_id}/instances/{instance_id}```\n                where ``location_id`` refers to a GCP region\"\"\")\n\ns.replace(\n    'google/cloud/**/cloud_redis_client.py',\n    r\"\"\"\n                fields from ``Instance``:\n\n                 \\*   ``displayName``\n                 \\*   ``labels``\n                 \\*   ``memorySizeGb``\n                 \\*   ``redisConfig``\"\"\",\n\n    r\"\"\"\n                fields from ``Instance``: ``displayName``, ``labels``, ``memorySizeGb``, and ``redisConfig``.\"\"\",)\n\n# Set Release Status\nrelease_status = 'Development Status :: 3 - Alpha'\ns.replace('setup.py',\n          '(release_status = )(.*)$',\n          f\"\\\\1'{release_status}'\")\n\n# Fix the enable API link\ns.replace(\n    'README.rst',\n    r'.. _Enable the Google Cloud Memorystore for Redis API.:  https://cloud.google.com/redis',\n    '.. _Enable the Google Cloud Memorystore for Redis API.:  https://console.cloud.google.com/apis/'\n    'library/redis.googleapis.com')\n\n# Fix link to product page\ns.replace(\n    'README.rst',\n    r'https://cloud.google.com/redis',\n    'https://cloud.google.com/memorystore/')\n\n# Fix link to Client Library Documentation\ns.replace(\n    'README.rst',\n    r'https://googlecloudplatform.github.io/google-cloud-python/stable/redis/usage.html',\n    'https://googlecloudplatform.github.io/google-cloud-python/latest/redis/index.html')\n\n# Fix link to Auth instructions\ns.replace(\n    'README.rst',\n    r'https://googlecloudplatform.github.io/google-cloud-python/stable/core/auth.html',\n    'https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html')\n", "path": "redis/synth.py"}], "after_files": [{"content": "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n#     http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n\"\"\"This script is used to synthesize generated parts of this library.\"\"\"\n\nimport synthtool as s\nimport synthtool.gcp as gcp\nimport logging\n\nlogging.basicConfig(level=logging.DEBUG)\n\ngapic = gcp.GAPICGenerator()\ncommon = gcp.CommonTemplates()\nexcludes = [\n    'README.rst',\n    'setup.py',\n    'nox*.py',\n    'docs/conf.py',\n    'docs/index.rst',\n]\n\nfor version in ['v1beta1', 'v1']:\n    library = gapic.py_library(\n        'redis', version,\n        config_path=f'artman_redis_{version}.yaml')\n\n    s.copy(library, excludes=excludes)\n\n\n# Fix docstrings\ns.replace(\n    'google/cloud/**/cloud_redis_client.py',\n    r'resources of the form:\\n      ``',\n    r'resources of the form:\\n\\n      ``',)\n\ns.replace(\n    'google/cloud/**/cloud_redis_client.py',\n    r\"\"\"\n            parent \\(str\\): Required. The resource name of the instance location using the form:\n                ::\n\n                    `projects/{project_id}/locations/{location_id}`\n                where ``location_id`` refers to a GCP region\"\"\",\n\n    r\"\"\"\n            parent (str): Required. The resource name of the instance location using the form ``projects/{project_id}/locations/{location_id}``\n                where ``location_id`` refers to a GCP region\"\"\",)\n\n\ns.replace(\n    'google/cloud/**/cloud_redis_client.py',\n    r\"\"\"\n                with the following restrictions:\n\n                \\* Must contain only lowercase letters, numbers, and hyphens\\.\"\"\",\n    r\"\"\"\n                with the following restrictions:\n                * Must contain only lowercase letters, numbers, and hyphens.\"\"\")\n\ns.replace(\n    'google/cloud/**/cloud_redis_client.py',\n    r\"\"\"\n            name \\(str\\): Required. Redis instance resource name using the form:\n                ::\n\n                    `projects/{project_id}/locations/{location_id}/instances/{instance_id}`\n                where ``location_id`` refers to a GCP region\"\"\",\n    r\"\"\"\n            name (str): Required. Redis instance resource name using the form ``projects/{project_id}/locations/{location_id}/instances/{instance_id}```\n                where ``location_id`` refers to a GCP region\"\"\")\n\ns.replace(\n    'google/cloud/**/cloud_redis_client.py',\n    r\"\"\"\n                fields from ``Instance``:\n\n                 \\*   ``displayName``\n                 \\*   ``labels``\n                 \\*   ``memorySizeGb``\n                 \\*   ``redisConfig``\"\"\",\n\n    r\"\"\"\n                fields from ``Instance``: ``displayName``, ``labels``, ``memorySizeGb``, and ``redisConfig``.\"\"\",)\n\n# Set Release Status\nrelease_status = 'Development Status :: 3 - Alpha'\ns.replace('setup.py',\n          '(release_status = )(.*)$',\n          f\"\\\\1'{release_status}'\")\n\n# Fix the enable API link\ns.replace(\n    'README.rst',\n    r'.. _Enable the Google Cloud Memorystore for Redis API.:  https://cloud.google.com/redis',\n    '.. _Enable the Google Cloud Memorystore for Redis API.:  https://console.cloud.google.com/apis/'\n    'library/redis.googleapis.com')\n\n# Fix link to product page\ns.replace(\n    'README.rst',\n    r'https://cloud.google.com/redis',\n    'https://cloud.google.com/memorystore/')\n\n# Fix link to Client Library Documentation\ns.replace(\n    'README.rst',\n    r'https://googlecloudplatform.github.io/google-cloud-python/stable/redis/usage.html',\n    'https://googlecloudplatform.github.io/google-cloud-python/latest/redis/index.html')\n\n# Fix link to Auth instructions\ns.replace(\n    'README.rst',\n    r'https://googlecloudplatform.github.io/google-cloud-python/stable/core/auth.html',\n    'https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html')\n", "path": "redis/synth.py"}]}