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 — Account for existing objects in bucket when using storage.bucket.Bucket.upload_file · Issue #162 · googleapis/google-cloud-python

Account for existing objects in bucket when using storage.bucket.Bucket.upload_file #162

New issue
Copy link
New issue
Copy link
Closed
#327
Closed
Account for existing objects in bucket when using storage.bucket.Bucket.upload_file#162
#327
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 do we do about overwriting data?

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

git blame output

b7f1b774 (JJ Geewax   2014-01-29 18:02:29 -0500 201)     # TODO: What do we do about overwriting data?

Activity

Next
  1. dhermes commented on Sep 22, 2014

    @dhermes
    dhermes
    on Sep 22, 2014
    ContributorAuthor
    More actions

    It's possible there is an API feature to only write if doesn't exist (though race conditions may make this a PITA). May also be worth requesting from API eng team?

  2. tseaver
    added
    api: storageIssues related to the Cloud Storage API.
    on Sep 22, 2014
  3. silvolu
    added this to the This milestone has been deleted milestone on Sep 24, 2014
  4. dhermes
    added a commit that references this issue on Oct 11, 2014

    Remove TODO from gcloud.storage.bucket.

    c3391be
  5. tseaver commented on Oct 29, 2014

    @tseaver
    tseaver
    on Oct 29, 2014
    Contributor
    More actions

    Once support for the lifecycle field of the bucket resource lands (see #314), this issue will resolve: buckets with no lifecycle defined will overwrite without checking for existing objects, while those with lifecycle policies will obey them (generations, etc.).

  6. tseaver commented on Oct 29, 2014

    @tseaver
    tseaver
    on Oct 29, 2014
    Contributor
    More actions

    See the lifecycle spec for notes on configuring the bucket's lifecycle policy.

  7. tseaver commented on Oct 31, 2014

    @tseaver
    tseaver
    on Oct 31, 2014
    Contributor
    More actions

    The lifecycle rules for number of versions will only be effective if object versioning is enabled on the bucket. Currently, we can enable this via:

    self.patch_metadata({'versioning': {'enabled': True})
    

    #314 proposes adding more direct support for the versioning and lifecycle fields (along with others).

  8. tseaver
    closed this as completedin #327on Nov 3, 2014
  9. tseaver
    added a commit that references this issue on Nov 3, 2014

    Merge pull request #327 from tseaver/162-document-key-upload-overwrit…

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

    Merge pull request googleapis#162 from nickyspag/master

    44ce040
  12. yoshi-automation
    added
    triage meI really want to be triaged.
    on Apr 6, 2020
  13. 85 remaining items

  14. parthea
    added a commit that references this issue on Sep 16, 2025

    chore(python): add kokoro configs for periodic builds against head (#162

    c6ce617
  15. parthea
    added 8 commits that reference this issue on Nov 22, 2025

    chore: tweak version lookup for non-admin client (#165)

    This issue will close once commit bde2247 is merged into the 'main' branch.
    bde2247

    build: update actions/checkout and actions/setup-python (#162)

    This issue will close once commit 1f800b9 is merged into the 'main' branch.
    1f800b9

    Test request setup against method request type (#162)

    This issue will close once commit a73ac6d is merged into the 'main' branch.
    a73ac6d

    chore(python): omit google/__init__.py in coverage (#162)

    This issue will close once commit 381f60b is merged into the 'main' branch.
    381f60b

    fix: correct param type of _ClientFactoryMixin.from_service_account_i…

    This issue will close once commit 6c39bb4 is merged into the 'main' branch.
    6c39bb4

    chore: add SECURITY.md (#162)

    This issue will close once commit b7caf11 is merged into the 'main' branch.
    b7caf11

    chore(deps): update all dependencies (#162)

    This issue will close once commit 7c0c837 is merged into the 'main' branch.
    7c0c837

    chore(python): avoid `.nox` directories when building docs (#162)

    This issue will close once commit a612dff is merged into the 'main' branch.
    a612dff
  16. parthea
    added 2 commits that reference this issue on Mar 2, 2026

    chore(deps): update dependency setuptools to v65.5.1 [security] (#162)

    12b1f99

    feat: bump 'google-crc32c >= 1.0' (#162)

    0d59551
  17. parthea
    added 3 commits that reference this issue on Mar 9, 2026

    chore: add release please config (#162)

    7b02c93

    feat(storage): add support of daysSinceNoncurrentTime and noncurrentT…

    3258a10

    chore: use python-samples-reviewers (#162)

    111e765
  18. ohmayr
    added a commit that references this issue on Mar 31, 2026

    chore(deps): update dependency setuptools to v65.5.1 [security] (#162)

    550e7ac
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.