FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixing bug in Bucket.delete_blobs(). by dhermes · Pull Request #2811 · googleapis/google-cloud-python · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
21 changes: 11 additions & 10 deletions storage/google/cloud/storage/bucket.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -402,22 +402,23 @@ def delete_blob(self, blob_name, client=None):
def delete_blobs(self, blobs, on_error=None, client=None):
"""Deletes a list of blobs from the current bucket.

Uses :func:`Bucket.delete_blob` to delete each individual blob.
Uses :meth:`delete_blob` to delete each individual blob.

:type blobs: list of string or :class:`google.cloud.storage.blob.Blob`
:param blobs: A list of blob names or Blob objects to delete.
:type blobs: list
:param blobs: A list of :class:`~google.cloud.storage.blob.Blob`-s or
blob names to delete.

:type on_error: a callable taking (blob)
:param on_error: If not ``None``, called once for each blob raising
:class:`google.cloud.exceptions.NotFound`;
:type on_error: callable
:param on_error: (Optional) Takes single argument: ``blob``. Called
called once for each blob raising
:class:`~google.cloud.exceptions.NotFound`;
otherwise, the exception is propagated.

:type client: :class:`~google.cloud.storage.client.Client` or
``NoneType``
:param client: Optional. The client to use. If not passed, falls back
:type client: :class:`~google.cloud.storage.client.Client`
:param client: (Optional) The client to use. If not passed, falls back
to the ``client`` stored on the current bucket.

:raises: :class:`google.cloud.exceptions.NotFound` (if
:raises: :class:`~google.cloud.exceptions.NotFound` (if
`on_error` is not passed).
"""
for blob in blobs:
Expand Down

Back | FazBrowse Home | New Git URL