Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

feat: add support for soft delete#1229

Merged
cojenco merged 7 commits into
googleapis:maingoogleapis/python-storage:mainfrom
cojenco:softdeletecojenco/python-storage:softdeleteCopy head branch name to clipboard
Mar 18, 2024
Merged

feat: add support for soft delete#1229
cojenco merged 7 commits into
googleapis:maingoogleapis/python-storage:mainfrom
cojenco:softdeletecojenco/python-storage:softdeleteCopy head branch name to clipboard

Conversation

@cojenco

@cojenco cojenco commented Feb 22, 2024

Copy link
Copy Markdown
Contributor

As part of the soft delete feature, add support to

  • Set a soft delete policy on a new or existing bucket
  • Get a bucket's soft delete policy
  • Get a soft deleted object by doing an object get call with the soft deleted parameter set to true
  • Get the soft delete time and hard delete time metadata fields from a soft deleted object
  • List soft deleted objects by doing an object list call with the soft deleted parameter set to true
  • Restore a soft deleted object

Fixes #1224

@cojenco
cojenco requested review from a team February 22, 2024 23:03
@product-auto-label product-auto-label Bot added size: l Pull request size is large. api: storage Issues related to the googleapis/python-storage API. labels Feb 22, 2024
@cojenco cojenco added the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 23, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 23, 2024
Comment thread google/cloud/storage/bucket.py Outdated
@cojenco cojenco added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 6, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 6, 2024
@cojenco cojenco added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 8, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 8, 2024
@cojenco cojenco added the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 8, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 8, 2024
@cojenco cojenco added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 12, 2024
@JesseLovelace JesseLovelace removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 13, 2024

@andrewsg andrewsg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need an answer to the question about behavior before I can continue with the review. Thanks!

Comment thread google/cloud/storage/_helpers.py Outdated
Comment thread google/cloud/storage/blob.py Outdated
Comment thread google/cloud/storage/blob.py
Comment thread tests/system/test_bucket.py
Comment thread google/cloud/storage/blob.py Outdated
Comment thread google/cloud/storage/_helpers.py Outdated
@cojenco
cojenco requested a review from andrewsg March 18, 2024 18:04
@cojenco cojenco added the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 18, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Mar 18, 2024

@andrewsg andrewsg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@cojenco
cojenco merged commit 3928aa0 into googleapis:main Mar 18, 2024
@cojenco
cojenco deleted the softdelete branch October 30, 2024 00:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: storage Issues related to the googleapis/python-storage API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement soft delete

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.