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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage: support object retention feature #11227

Closed
JesseLovelace opened this issue Oct 27, 2023 · 1 comment · Fixed by #12043
Closed

storage: support object retention feature #11227

JesseLovelace opened this issue Oct 27, 2023 · 1 comment · Fixed by #12043
Assignees
Labels
api: storage Issues related to the Cloud Storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@JesseLovelace
Copy link
Contributor

Please implement the object retention feature. The following operations must be supported:

  • Create a bucket with object retention enabled by using the enableObjectRetention bucket create boolean option at bucket create time
  • Get the object retention enabled status of a bucket
  • Create an object with retention enabled (on an retention enabled bucket) by populating the retention object at object create time (retention object has the fields mode which can be Unlocked or Locked, and retainUntilTime which is a timestamp)
  • Update retention for an existing object with a patch operation, by passing the overrideUnlockedRetention boolean patch option
  • Get the retention policy of an object
  • Remove retention for an existing object the same way as above

Details in go/gcs-object-retention-client-request

You can use the java implementation as a reference.

The kokoro test project should be allowlisted shortly, let me know if you need access to an allowlisted project for your own testing.

We're aiming to get this in by the November code freeze, let me know if you need any help.

@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Oct 27, 2023
@amanda-tarafa
Copy link
Contributor

Note: For this one we might need to add options to UploadObjectOptions. All other operations should be supported out of the box as we expose the underlying library types.

@amanda-tarafa amanda-tarafa added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Oct 27, 2023
@jskeet jskeet assigned jskeet and unassigned anuragsrivstv Jan 2, 2024
@amanda-tarafa amanda-tarafa assigned amanda-tarafa and unassigned jskeet Feb 2, 2024
amanda-tarafa added a commit to amanda-tarafa/google-cloud-dotnet that referenced this issue Mar 5, 2024
amanda-tarafa added a commit that referenced this issue Mar 5, 2024
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 Cloud Storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
4 participants