Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement object retention lock for bucket / files #2365

Merged
merged 1 commit into from Nov 29, 2023

Conversation

ddelgrosso1
Copy link
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #2349 馃

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: storage Issues related to the googleapis/nodejs-storage API. labels Nov 15, 2023
@ddelgrosso1 ddelgrosso1 force-pushed the object-retention branch 3 times, most recently from 0a04375 to 955587f Compare November 15, 2023 21:06
@ddelgrosso1 ddelgrosso1 added the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 15, 2023
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 15, 2023
@ddelgrosso1 ddelgrosso1 marked this pull request as ready for review November 15, 2023 21:22
@ddelgrosso1 ddelgrosso1 requested review from a team as code owners November 15, 2023 21:22
@@ -423,6 +423,7 @@ export interface FileMetadata extends BaseMetadata {
};
customTime?: string;
eventBasedHold?: boolean | null;
readonly eventBasedHoldReleaseTime?: string;
Copy link
Member

Choose a reason for hiding this comment

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

Where do we use/set this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not user setable. It is a field that will be added as a fast follow that is only returned if an event-based hold was released.

@ddelgrosso1 ddelgrosso1 merged commit c140868 into googleapis:main Nov 29, 2023
16 checks passed
@ddelgrosso1 ddelgrosso1 deleted the object-retention branch November 29, 2023 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/nodejs-storage API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for object retention
3 participants