objectRetention property

ObjectRetention? objectRetention
getter/setter pair

Updates objects retention lock configuration.

Unset values will be ignored. Set empty values to clear the retention for the object with existing Unlocked retention mode. Object with existing Locked retention mode cannot be cleared or reduce retain_until_time. Refer to documentation in https://cloud.google.com/storage/docs/object-lock

Optional.

Implementation

ObjectRetention? objectRetention;