cloud-storage-rs
cloud-storage-rs copied to clipboard
Creation of bucket with `Lifecycle` conditions incomplete
Some conditions are not available in Condition.
https://cloud.google.com/storage/docs/json_api/v1/buckets#lifecycle
https://cloud.google.com/storage/docs/lifecycle#conditions
These are missing:
- customTimeBefore
- daysSinceCustomTime
- daysSinceNoncurrentTime
- noncurrentTimeBefore
Also separate:
I think the documentation for ActionType::Delete is incorrect I think it does not delete the bucket but the objects inside of it.
https://cloud.google.com/storage/docs/lifecycle#delete

I can make a PR for this (and other issues) at some point in the future, but just an issue to keep track of it for now.
Also Condition does not implement Default.
A PR for this is definitely welcome! Feel free to submit one!