GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Determine desired/expected return value(s) of storage.bucket.Bucket.delete_keys · Issue #161 · googleapis/google-cloud-python

Determine desired/expected return value(s) of storage.bucket.Bucket.delete_keys #161

New issue
Copy link
New issue
Copy link
Closed
#312
Closed
Determine desired/expected return value(s) of storage.bucket.Bucket.delete_keys#161
#312
Copy link
Assignees
tseaver
Labels
🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.
Milestone
Storage Stable

Description

@dhermes
dhermes
opened on Sep 22, 2014
Issue body actions

From TODO:

    # TODO: What should be the return value here?

See storage.bucket.Bucket.delete_keys for relevant code and #146 for some context.

git blame output

b7f1b774 (JJ Geewax   2014-01-29 18:02:29 -0500 192)     # TODO: What should be the return value here?

Activity

Next
  1. dhermes commented on Sep 22, 2014

    @dhermes
    dhermes
    on Sep 22, 2014
    ContributorAuthor
    More actions

    From the code, note that in a similar situation the boto library returns a MultiDeleteResult instance.

  2. tseaver commented on Sep 22, 2014

    @tseaver
    tseaver
    on Sep 22, 2014
    Contributor
    More actions

    ISTM that the "Pythonic" return would be a sequence of the deleted keys, i.e:

    def delete_keys(self, keys):
        deleted = []
        for key in keys:
            deleted.append(self.delete_key(key))
        return deleted
    

    We can't use a generator, because that would require the caller to iterate-consume it to perform any but the first deletion.

  3. dhermes commented on Sep 22, 2014

    @dhermes
    dhermes
    on Sep 22, 2014
    ContributorAuthor
    More actions

    SGTM.

    It may be worth looking into MultiDeleteResult. From search results it seems to only be used in Bucket.delete_keys.

  4. tseaver commented on Sep 22, 2014

    @tseaver
    tseaver
    on Sep 22, 2014
    Contributor
    More actions

    Note that the boto bit is wrapping an XML response document for a multi-delete request. Because the gcloud storage API does not support multi-delete, we would be synthesizing an entity which doesn't have a server-side analog.

  5. dhermes commented on Sep 22, 2014

    @dhermes
    dhermes
    on Sep 22, 2014
    ContributorAuthor
    More actions

    I see, maybe worth opening a feature request with the API team? But in the mean time, an object which tracks both deleted and errors may be useful.

  6. tseaver
    added
    api: storageIssues related to the Cloud Storage API.
    on Sep 22, 2014
  7. silvolu
    added this to the This milestone has been deleted milestone on Sep 24, 2014
  8. tseaver
    closed this as completedin #312on Nov 3, 2014
  9. tseaver
    added a commit that references this issue on Nov 3, 2014

    Merge pull request #312 from tseaver/161-bucket-delete_keys-useful_re…

    This issue will close once commit f33e557 is merged into the 'main' branch.
    f33e557
  10. jgeewax
    modified the milestones: This milestone has been deleted, Storage Stable on Jan 30, 2015
  11. urshala
    added 2 commits that reference this issue on Jan 17, 2020

    Partial Fix for googleapis#161

    133e1b8

    Fix for googleapis#161

    d3bd00a
  12. 85 remaining items

  13. parthea
    added 10 commits that reference this issue on Nov 24, 2025

    chore(python): push cloud library docs to staging bucket for Cloud RAD (

    32d92e9

    fix: correct param type of _ClientFactoryMixin.from_service_account_i…

    6c39bb4

    chore(main): release 2.2.2 (#169)

    8935120

    chore: use `gcp-sphinx-docfx-yaml` (#161)

    b2a583f

    chore(python): add missing import for prerelease testing (#161)

    9eb0f60

    fix: Add handling for documents missing all layout elements. (#161)

    fbb57e9

    fix: `docai_utilities.py` to return `Optional` (#176)

    5b189dd

    chore: fix INSTALL_LIBRARY_FROM_SOURCE in noxfile.py (#161)

    8aae73c

    test: reduced time filter length in system tests (#161)

    e4b77cd

    Add error message to handle case of empty string or missing file for …

    052da41
  14. parthea
    added 5 commits that reference this issue on Mar 9, 2026

    test: increase the package testing coverage (#161)

    fd3d183

    fix(storage): change the method names in snippets file (#161)

    85c6bb3

    feat: add support for ssl credentials; add throttled field to UpdateD…

    d6bfbf9

    chore: release 3.0.0 (#208)

    23fc439

    chore: release 1.3.3 (#161)

    a656da4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    • Storage Stable

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.