Add means to retrieve responses after calling batch module #1214
Labels
api: storage
Issues related to the googleapis/python-storage API.
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Problem:
The current Batch class (https://github.com/googleapis/python-storage/blob/v2.14.0/google/cloud/storage/batch.py#L145) does not provide a good way of getting the responses from the batch call.
_responses
, but it is not exposed from any public API for straightforward usage.finish()
, which returns the responses. However, it is called in the__exit__()
, and without a hack (mentioned in [Task]: Update the minor version of google-cloud-storage library prior to Beam release. apache/beam#27326 (comment)), it is not really convenient to use.Suggestion:
Add a simple public function to return
_responses
. It can be as simple asThe text was updated successfully, but these errors were encountered: