Commit ea0f5bf
feat(ZonalBuckets): add support for
feat(ZonalBuckets): add support for `generation=0` to prevent
overwriting existing objects
feat(ZonalBuckets): add `is_stream_open` property to
AsyncAppendableObjectWriter for stream status check
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>generation=0 to avoid overwriting existing objects and add is_stream_open support (#1709)1 parent 6c16079 commit ea0f5bfCopy full SHA for ea0f5bf
File tree
Expand file treeCollapse file tree
5 files changed
+155
-18
lines changedOpen diff view settings
Filter options
- google/cloud/storage/_experimental/asyncio
- tests
- system
- unit/asyncio
Expand file treeCollapse file tree
5 files changed
+155
-18
lines changedOpen diff view settings
Collapse file
google/cloud/storage/_experimental/asyncio/async_appendable_object_writer.py
Copy file name to clipboardExpand all lines: google/cloud/storage/_experimental/asyncio/async_appendable_object_writer.py+26-8Lines changed: 26 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
97 | 97 | |
98 | 98 | |
99 | 99 | |
100 | | - |
101 | | - |
102 | | - |
103 | | - |
104 | | - |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
105 | 111 | |
106 | 112 | |
107 | | - |
108 | | - |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
109 | 123 | |
110 | 124 | |
111 | 125 | |
| ||
133 | 147 | |
134 | 148 | |
135 | 149 | |
136 | | - |
137 | 150 | |
138 | 151 | |
139 | 152 | |
| ||
346 | 359 | |
347 | 360 | |
348 | 361 | |
| 362 | + |
| 363 | + |
| 364 | + |
| 365 | + |
| 366 | + |
349 | 367 | |
350 | 368 | |
351 | 369 | |
|
Collapse file
google/cloud/storage/_experimental/asyncio/async_write_object_stream.py
Copy file name to clipboardExpand all lines: google/cloud/storage/_experimental/asyncio/async_write_object_stream.py+15-4Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
47 | 47 | |
48 | 48 | |
49 | 49 | |
50 | | - |
51 | | - |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
52 | 61 | |
53 | 62 | |
54 | 63 | |
| ||
101 | 110 | |
102 | 111 | |
103 | 112 | |
104 | | - |
| 113 | + |
| 114 | + |
| 115 | + |
105 | 116 | |
106 | 117 | |
107 | 118 | |
108 | 119 | |
109 | 120 | |
110 | 121 | |
| 122 | + |
111 | 123 | |
112 | 124 | |
113 | 125 | |
| ||
118 | 130 | |
119 | 131 | |
120 | 132 | |
121 | | - |
122 | 133 | |
123 | 134 | |
124 | 135 | |
|
Collapse file
+72Lines changed: 72 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
| 21 | + |
21 | 22 | |
22 | 23 | |
23 | 24 | |
| ||
360 | 361 | |
361 | 362 | |
362 | 363 | |
| 364 | + |
| 365 | + |
| 366 | + |
| 367 | + |
| 368 | + |
| 369 | + |
| 370 | + |
| 371 | + |
| 372 | + |
| 373 | + |
| 374 | + |
| 375 | + |
| 376 | + |
| 377 | + |
| 378 | + |
| 379 | + |
| 380 | + |
| 381 | + |
| 382 | + |
| 383 | + |
| 384 | + |
| 385 | + |
| 386 | + |
| 387 | + |
| 388 | + |
| 389 | + |
| 390 | + |
| 391 | + |
| 392 | + |
| 393 | + |
| 394 | + |
| 395 | + |
| 396 | + |
| 397 | + |
| 398 | + |
| 399 | + |
| 400 | + |
| 401 | + |
| 402 | + |
| 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 | + |
Collapse file
tests/unit/asyncio/test_async_appendable_object_writer.py
Copy file name to clipboardExpand all lines: tests/unit/asyncio/test_async_appendable_object_writer.py+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
55 | 55 | |
56 | 56 | |
57 | 57 | |
58 | | - |
| 58 | + |
59 | 59 | |
60 | 60 | |
61 | 61 | |
| ||
225 | 225 | |
226 | 226 | |
227 | 227 | |
228 | | - |
| 228 | + |
229 | 229 | |
230 | 230 | |
231 | 231 | |
| ||
255 | 255 | |
256 | 256 | |
257 | 257 | |
258 | | - |
| 258 | + |
259 | 259 | |
260 | 260 | |
261 | 261 | |
| ||
379 | 379 | |
380 | 380 | |
381 | 381 | |
382 | | - |
| 382 | + |
383 | 383 | |
384 | 384 | |
385 | 385 | |
| ||
415 | 415 | |
416 | 416 | |
417 | 417 | |
418 | | - |
| 418 | + |
419 | 419 | |
420 | 420 | |
421 | 421 | |
| ||
448 | 448 | |
449 | 449 | |
450 | 450 | |
451 | | - |
| 451 | + |
452 | 452 | |
453 | 453 | |
454 | 454 | |
|
Collapse file
tests/unit/asyncio/test_async_write_object_stream.py
Copy file name to clipboardExpand all lines: tests/unit/asyncio/test_async_write_object_stream.py+36Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
148 | 148 | |
149 | 149 | |
150 | 150 | |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
| 165 | + |
| 166 | + |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
151 | 187 | |
152 | 188 | |
153 | 189 | |
|
0 commit comments