Reference documentation and code samples for the Google Cloud Storage Batch Operations V1 Client class ObjectRetention.
Describes options for object retention update.
Generated from protobuf message google.cloud.storagebatchoperations.v1.ObjectRetention
Namespace
Google \ Cloud \ StorageBatchOperations \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ retain_until_time
string
Required. The time when the object will be retained until. UNSET will clear the retention. Must be specified in RFC 3339 format e.g. YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.
↳ retention_mode
int
Required. The retention mode of the object.
getRetainUntilTime
Required. The time when the object will be retained until. UNSET will clear the retention. Must be specified in RFC 3339 format e.g.
YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.
string
hasRetainUntilTime
clearRetainUntilTime
setRetainUntilTime
Required. The time when the object will be retained until. UNSET will clear the retention. Must be specified in RFC 3339 format e.g.
YYYY-MM-DD'T'HH:MM:SS.SS'Z' or YYYY-MM-DD'T'HH:MM:SS'Z'.
var
string
$this
getRetentionMode
Required. The retention mode of the object.
int
hasRetentionMode
clearRetentionMode
setRetentionMode
Required. The retention mode of the object.
var
int
$this

