File tree Expand file tree Collapse file tree
sdks/python/apache_beam/io/gcp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,7 +208,8 @@ def delete_batch(self, paths):
208208 """Deletes the objects at the given GCS paths.
209209
210210 Args:
211- paths: List of GCS file path patterns in the form gs://<bucket>/<name>,
211+ paths: List of GCS file path patterns or Dict with GCS file path patterns
212+ as keys. The patterns are in the form gs://<bucket>/<name>, but
212213 not to exceed MAX_BATCH_OPERATION_SIZE in length.
213214
214215 Returns: List of tuples of (path, exception) in the same order as the
@@ -217,6 +218,7 @@ def delete_batch(self, paths):
217218 """
218219 final_results = []
219220 s = 0
221+ if not isinstance (paths , list ): paths = list (iter (paths ))
220222 while s < len (paths ):
221223 if (s + MAX_BATCH_OPERATION_SIZE ) < len (paths ):
222224 current_paths = paths [s :s + MAX_BATCH_OPERATION_SIZE ]
You can’t perform that action at this time.
0 commit comments