Objects under retention cannot be deleted or overwritten until their retention expires. Objects with a "Locked" retention cannot have their retention period decreased or increased.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-01 UTC."],[[["The latest version available is 2.37.0-rc, which can be found with this link: /cpp/docs/reference/storage/latest/structgoogle_1_1cloud_1_1storage_1_1ObjectRetention."],["This content contains versioned documentation for `ObjectRetention` in the Google Cloud Storage C++ library, with versions ranging from 2.11.0 up to the latest release candidate."],["`ObjectRetention` defines the retention parameters for a storage object, which prevents the deletion or overwriting of objects until the retention period expires."],["Objects that have been locked under a retention policy cannot have their retention period modified."]]],[]]