You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2026. It is now read-only.
feat(listBuckets): Add support for returning partial success (#2678)
* feat(listBuckets): Add support for returning partial success
Implements the optional parameter `returnPartialSuccess`.
If set to `true` and the API response contains an `unreachable` array,
the function will return a successful callback (`err: null`) and pass
the `unreachable` array as the 5th argument.
This allows users to process the available buckets without the entire
operation failing on soft errors.
* docs(samples): Add listBucketsPartialSuccess sample
New sample for partial success in ListBuckets
(storage_list_buckets_partial_success)
* code refactor
* minor fix
* Ensure positional consistency for optional callback results
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Enable partial success via placeholder objects
* bug fix
* addressing commends
* refactor: Simplify partial success placeholder logic
* addressing comments
* Revert "addressing comments"
This reverts commit 10a7e87.
* addressing comments
* chore: Clean up unreachable placeholder creation loop
* refactor: test case
---------
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,6 +172,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-storage/tre
172
172
| Get HMAC SA Key Metadata. |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/hmacKeyGet.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/hmacKeyGet.js,samples/README.md)|
173
173
| List HMAC SA Keys Metadata. |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/hmacKeysList.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/hmacKeysList.js,samples/README.md)|
174
174
| List Buckets |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/listBuckets.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/listBuckets.js,samples/README.md)|
175
+
| List Buckets Partial Success |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/listBucketsPartialSuccess.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/listBucketsPartialSuccess.js,samples/README.md)|
175
176
| List Files |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/listFiles.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/listFiles.js,samples/README.md)|
176
177
| List Files By Prefix |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/listFilesByPrefix.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/listFilesByPrefix.js,samples/README.md)|
177
178
| List Files Paginate |[source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/listFilesPaginate.js)|[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/listFilesPaginate.js,samples/README.md)|
View the [source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/listBucketsPartialSuccess.js).
1468
+
1469
+
[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-storage&page=editor&open_in_editor=samples/listBucketsPartialSuccess.js,samples/README.md)
1470
+
1471
+
__Usage:__
1472
+
1473
+
1474
+
`node samples/listBucketsPartialSuccess.js`
1475
+
1476
+
1477
+
-----
1478
+
1479
+
1480
+
1481
+
1464
1482
### List Files
1465
1483
1466
1484
View the [source code](https://github.com/googleapis/nodejs-storage/blob/main/samples/listFiles.js).
0 commit comments