Commit 08bc708
authored
feat: update generation for MRD (#1730)
Adding a support to pass `generation` in the constructor of MRD. It is
done to make it compatible with the other public interfaces.
Earlier, `generation_number` was exposed as the parameter which would
still be valid after these changes. But using `generation` is more
preferred.1 parent 74c9ecc commit 08bc708Copy full SHA for 08bc708
File tree
Expand file treeCollapse file tree
7 files changed
+95
-78
lines changedOpen diff view settings
Filter options
- google/cloud/storage/asyncio
- tests
- system
- unit
- asyncio
- retry
Expand file treeCollapse file tree
7 files changed
+95
-78
lines changedOpen diff view settings
Collapse file
google/cloud/storage/asyncio/async_multi_range_downloader.py
Copy file name to clipboardExpand all lines: google/cloud/storage/asyncio/async_multi_range_downloader.py+27-11Lines changed: 27 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
128 | 128 | |
129 | 129 | |
130 | 130 | |
131 | | - |
| 131 | + |
132 | 132 | |
133 | 133 | |
134 | 134 | |
| 135 | + |
135 | 136 | |
136 | 137 | |
137 | 138 | |
| ||
145 | 146 | |
146 | 147 | |
147 | 148 | |
148 | | - |
149 | | - |
| 149 | + |
| 150 | + |
150 | 151 | |
151 | 152 | |
152 | 153 | |
| ||
162 | 163 | |
163 | 164 | |
164 | 165 | |
165 | | - |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
166 | 174 | |
167 | 175 | |
168 | 176 | |
| ||
171 | 179 | |
172 | 180 | |
173 | 181 | |
174 | | - |
| 182 | + |
175 | 183 | |
| 184 | + |
176 | 185 | |
177 | 186 | |
178 | 187 | |
| ||
186 | 195 | |
187 | 196 | |
188 | 197 | |
189 | | - |
190 | | - |
| 198 | + |
| 199 | + |
191 | 200 | |
192 | 201 | |
193 | 202 | |
194 | 203 | |
195 | 204 | |
| 205 | + |
| 206 | + |
| 207 | + |
| 208 | + |
| 209 | + |
| 210 | + |
| 211 | + |
196 | 212 | |
197 | 213 | |
198 | 214 | |
199 | 215 | |
200 | 216 | |
201 | 217 | |
202 | | - |
| 218 | + |
203 | 219 | |
204 | 220 | |
205 | 221 | |
| ||
276 | 292 | |
277 | 293 | |
278 | 294 | |
279 | | - |
| 295 | + |
280 | 296 | |
281 | 297 | |
282 | 298 | |
| ||
291 | 307 | |
292 | 308 | |
293 | 309 | |
294 | | - |
| 310 | + |
295 | 311 | |
296 | 312 | |
297 | 313 | |
| ||
435 | 451 | |
436 | 452 | |
437 | 453 | |
438 | | - |
| 454 | + |
439 | 455 | |
440 | 456 | |
441 | 457 | |
|
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
264 | 264 | |
265 | 265 | |
266 | 266 | |
267 | | - |
| 267 | + |
| 268 | + |
268 | 269 | |
269 | 270 | |
270 | 271 | |
|
Collapse file
tests/unit/asyncio/retry/test_reads_resumption_strategy.py
Copy file name to clipboardExpand all lines: tests/unit/asyncio/retry/test_reads_resumption_strategy.py+1-3Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
31 | | - |
32 | | - |
| 30 | + |
33 | 31 | |
34 | 32 | |
35 | 33 | |
|
Collapse file
tests/unit/asyncio/test_async_multi_range_downloader.py
Copy file name to clipboardExpand all lines: tests/unit/asyncio/test_async_multi_range_downloader.py+49-9Lines changed: 49 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
49 | 49 | |
50 | 50 | |
51 | 51 | |
52 | | - |
| 52 | + |
53 | 53 | |
54 | 54 | |
55 | 55 | |
| ||
62 | 62 | |
63 | 63 | |
64 | 64 | |
65 | | - |
| 65 | + |
66 | 66 | |
67 | 67 | |
68 | 68 | |
| ||
89 | 89 | |
90 | 90 | |
91 | 91 | |
92 | | - |
| 92 | + |
93 | 93 | |
94 | 94 | |
95 | 95 | |
| ||
303 | 303 | |
304 | 304 | |
305 | 305 | |
306 | | - |
307 | | - |
308 | | - |
| 306 | + |
309 | 307 | |
310 | 308 | |
311 | 309 | |
| ||
317 | 315 | |
318 | 316 | |
319 | 317 | |
320 | | - |
321 | | - |
322 | | - |
| 318 | + |
323 | 319 | |
324 | 320 | |
325 | 321 | |
| ||
405 | 401 | |
406 | 402 | |
407 | 403 | |
| 404 | + |
| 405 | + |
| 406 | + |
| 407 | + |
| 408 | + |
| 409 | + |
| 410 | + |
| 411 | + |
| 412 | + |
| 413 | + |
| 414 | + |
| 415 | + |
| 416 | + |
| 417 | + |
| 418 | + |
| 419 | + |
| 420 | + |
| 421 | + |
| 422 | + |
| 423 | + |
| 424 | + |
| 425 | + |
| 426 | + |
| 427 | + |
| 428 | + |
| 429 | + |
| 430 | + |
| 431 | + |
| 432 | + |
| 433 | + |
| 434 | + |
| 435 | + |
| 436 | + |
| 437 | + |
| 438 | + |
| 439 | + |
| 440 | + |
| 441 | + |
| 442 | + |
| 443 | + |
| 444 | + |
| 445 | + |
| 446 | + |
| 447 | + |
Collapse file
tests/unit/asyncio/test_async_read_object_stream.py
Copy file name to clipboardExpand all lines: tests/unit/asyncio/test_async_read_object_stream.py+12-36Lines changed: 12 additions & 36 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
79 | 79 | |
80 | 80 | |
81 | 81 | |
82 | | - |
83 | | - |
84 | | - |
| 82 | + |
85 | 83 | |
86 | 84 | |
87 | 85 | |
| ||
110 | 108 | |
111 | 109 | |
112 | 110 | |
113 | | - |
114 | | - |
115 | | - |
| 111 | + |
116 | 112 | |
117 | 113 | |
118 | 114 | |
| ||
136 | 132 | |
137 | 133 | |
138 | 134 | |
139 | | - |
140 | | - |
141 | | - |
| 135 | + |
142 | 136 | |
143 | 137 | |
144 | 138 | |
| ||
162 | 156 | |
163 | 157 | |
164 | 158 | |
165 | | - |
166 | | - |
167 | | - |
| 159 | + |
168 | 160 | |
169 | 161 | |
170 | 162 | |
| ||
185 | 177 | |
186 | 178 | |
187 | 179 | |
188 | | - |
189 | | - |
190 | | - |
| 180 | + |
191 | 181 | |
192 | 182 | |
193 | 183 | |
| ||
208 | 198 | |
209 | 199 | |
210 | 200 | |
211 | | - |
212 | | - |
213 | | - |
| 201 | + |
214 | 202 | |
215 | 203 | |
216 | 204 | |
| ||
232 | 220 | |
233 | 221 | |
234 | 222 | |
235 | | - |
236 | | - |
237 | | - |
| 223 | + |
238 | 224 | |
239 | 225 | |
240 | 226 | |
| ||
255 | 241 | |
256 | 242 | |
257 | 243 | |
258 | | - |
259 | | - |
260 | | - |
| 244 | + |
261 | 245 | |
262 | 246 | |
263 | 247 | |
| ||
278 | 262 | |
279 | 263 | |
280 | 264 | |
281 | | - |
282 | | - |
283 | | - |
| 265 | + |
284 | 266 | |
285 | 267 | |
286 | 268 | |
| ||
301 | 283 | |
302 | 284 | |
303 | 285 | |
304 | | - |
305 | | - |
306 | | - |
| 286 | + |
307 | 287 | |
308 | 288 | |
309 | 289 | |
| ||
326 | 306 | |
327 | 307 | |
328 | 308 | |
329 | | - |
330 | | - |
331 | | - |
| 309 | + |
332 | 310 | |
333 | 311 | |
334 | 312 | |
| ||
349 | 327 | |
350 | 328 | |
351 | 329 | |
352 | | - |
353 | | - |
354 | | - |
| 330 | + |
355 | 331 | |
356 | 332 | |
357 | 333 | |
|
0 commit comments