|
87 | 87 | 'from google.cloud.spanner_admin_instance_v1.proto', |
88 | 88 | ) |
89 | 89 |
|
| 90 | +# Fix docstrings |
| 91 | +s.replace( |
| 92 | + 'google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py', |
| 93 | + r""" |
| 94 | + \* The instance is readable via the API, with all requested attributes |
| 95 | + but no allocated resources. Its state is `CREATING`.""", |
| 96 | + r""" |
| 97 | + * The instance is readable via the API, with all requested attributes |
| 98 | + but no allocated resources. Its state is `CREATING`.""", |
| 99 | +) |
| 100 | +s.replace( |
| 101 | + 'google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py', |
| 102 | + r""" |
| 103 | + \* Cancelling the operation renders the instance immediately unreadable |
| 104 | + via the API.""", |
| 105 | + r""" |
| 106 | + * Cancelling the operation renders the instance immediately unreadable |
| 107 | + via the API.""", |
| 108 | +) |
| 109 | +s.replace( |
| 110 | + 'google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py', |
| 111 | + r""" |
| 112 | + \* Billing for all successfully-allocated resources begins \(some types |
| 113 | + may have lower than the requested levels\).""", |
| 114 | + r""" |
| 115 | + * Billing for all successfully-allocated resources begins (some types |
| 116 | + may have lower than the requested levels).""", |
| 117 | +) |
| 118 | +s.replace( |
| 119 | + 'google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py', |
| 120 | + r""" |
| 121 | + \* The instance and \*all of its databases\* immediately and |
| 122 | + irrevocably disappear from the API. All data in the databases |
| 123 | + is permanently deleted.""", |
| 124 | + r""" |
| 125 | + * The instance and *all of its databases* immediately and |
| 126 | + irrevocably disappear from the API. All data in the databases |
| 127 | + is permanently deleted.""", |
| 128 | +) |
| 129 | +s.replace( |
| 130 | + 'google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py', |
| 131 | + r""" |
| 132 | + \* ``labels.env:dev`` --> The instance has the label \\"env\\" and the value of |
| 133 | + :: |
| 134 | +
|
| 135 | + the label contains the string \\"dev\\".""", |
| 136 | + r""" |
| 137 | + * ``labels.env:dev`` --> The instance has the label \\"env\\" |
| 138 | + and the value of the label contains the string \\"dev\\".""", |
| 139 | +) |
| 140 | +s.replace( |
| 141 | + 'google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py', |
| 142 | + r""" |
| 143 | + \* ``name:howl labels.env:dev`` --> The instance's name contains \\"howl\\" and |
| 144 | + :: |
| 145 | +
|
| 146 | + it has the label \\"env\\" with its value |
| 147 | + containing \\"dev\\".""", |
| 148 | + r""" |
| 149 | + * ``name:howl labels.env:dev`` --> The instance's name |
| 150 | + contains \\"howl\\" and it has the label \\"env\\" with |
| 151 | + its value containing \\"dev\\".""", |
| 152 | +) |
| 153 | +s.replace( |
| 154 | + 'google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py', |
| 155 | + r""" |
| 156 | + \* For resource types for which a decrease in the instance's allocation |
| 157 | + has been requested, billing is based on the newly-requested level.""", |
| 158 | + r""" |
| 159 | + * For resource types for which a decrease in the instance's allocation |
| 160 | + has been requested, billing is based on the newly-requested level.""", |
| 161 | +) |
| 162 | +s.replace( |
| 163 | + 'google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py', |
| 164 | + r""" |
| 165 | + \* Cancelling the operation sets its metadata's |
| 166 | + \[cancel_time\]\[google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time\], and begins |
| 167 | + restoring resources to their pre-request values. The operation |
| 168 | + is guaranteed to succeed at undoing all resource changes, |
| 169 | + after which point it terminates with a `CANCELLED` status.""", |
| 170 | + r""" |
| 171 | + * Cancelling the operation sets its metadata's |
| 172 | + [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time], |
| 173 | + and begins restoring resources to their pre-request values. |
| 174 | + The operation is guaranteed to succeed at undoing all resource |
| 175 | + changes, after which point it terminates with a `CANCELLED` status.""", |
| 176 | +) |
| 177 | +s.replace( |
| 178 | + 'google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py', |
| 179 | + r""" |
| 180 | + \* Reading the instance via the API continues to give the pre-request |
| 181 | + resource levels.""", |
| 182 | + r""" |
| 183 | + * Reading the instance via the API continues to give the pre-request |
| 184 | + resource levels.""", |
| 185 | +) |
| 186 | +s.replace( |
| 187 | + 'google/cloud/spanner_admin_instance_v1/gapic/instance_admin_client.py', |
| 188 | + r""" |
| 189 | + \* Billing begins for all successfully-allocated resources \(some types |
| 190 | + may have lower than the requested levels\). |
| 191 | + \* All newly-reserved resources are available for serving the instance's |
| 192 | + tables.""", |
| 193 | + r""" |
| 194 | + * Billing begins for all successfully-allocated resources (some types |
| 195 | + may have lower than the requested levels). |
| 196 | + * All newly-reserved resources are available for serving the instance's |
| 197 | + tables.""", |
| 198 | +) |
| 199 | +s.replace( |
| 200 | + 'google/cloud/spanner_v1/proto/transaction_pb2.py', |
| 201 | + r"""====*""", |
| 202 | + r"", |
| 203 | +) |
| 204 | +s.replace( |
| 205 | + 'google/cloud/spanner_v1/proto/transaction_pb2.py', |
| 206 | + r"""----*""", |
| 207 | + r"", |
| 208 | +) |
| 209 | +s.replace( |
| 210 | + 'google/cloud/spanner_v1/proto/transaction_pb2.py', |
| 211 | + r"""~~~~*""", |
| 212 | + r"", |
| 213 | +) |
| 214 | + |
90 | 215 | #---------------------------------------------------------------------------- |
91 | 216 | # Generate database admin client |
92 | 217 | #---------------------------------------------------------------------------- |
|
114 | 239 | 'from google\.cloud\.spanner\.admin\.database_v1.proto', |
115 | 240 | 'from google.cloud.spanner_admin_database_v1.proto', |
116 | 241 | ) |
| 242 | + |
| 243 | +# Fix docstrings |
| 244 | +s.replace( |
| 245 | + 'google/cloud/spanner_admin_database_v1/gapic/database_admin_client.py', |
| 246 | + r'database ID must be enclosed in backticks \(`` `` ``\).', |
| 247 | + r'database ID must be enclosed in backticks.', |
| 248 | +) |
0 commit comments