googleapis / nodejs-storage

Node.js client for Google Cloud Storage: unified object storage for developers and enterprises, from live data serving to data analytics/ML to data archiving.
https://cloud.google.com/storage/
Apache License 2.0
888 stars 368 forks source link

samples: add samples for object retention #2428

Closed ddelgrosso1 closed 2 months ago

ddelgrosso1 commented 3 months ago

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:

Fixes #2408 🦕

snippet-bot[bot] commented 3 months ago

Here is the summary of changes.

You are about to add 2 region tags. - [samples/createBucketWithObjectRetention.js:23](https://github.com/ddelgrosso1/nodejs-storage/blob/52c7f398e4dce52947e354654b15ba442f606a56/samples/createBucketWithObjectRetention.js#L23), tag `storage_create_bucket_with_object_retention` - [samples/setObjectRetentionPolicy.js:27](https://github.com/ddelgrosso1/nodejs-storage/blob/52c7f398e4dce52947e354654b15ba442f606a56/samples/setObjectRetentionPolicy.js#L27), tag `storage_set_object_retention_policy`

This comment is generated by snippet-bot. If you find problems with this result, please file an issue at: https://github.com/googleapis/repo-automation-bots/issues. To update this comment, add snippet-bot:force-run label or use the checkbox below:

generated-files-bot[bot] commented 3 months ago

Warning: This pull request is touching the following templated files: