Describes options for object metadata update.
| JSON representation |
|---|
{
"customMetadata": {
string: string,
...
},
"contentDisposition": string,
"contentEncoding": string,
"contentLanguage": string,
"contentType": string,
"cacheControl": string,
"customTime": string,
"objectRetention": {
object ( |
| Fields | |
|---|---|
customMetadata |
Optional. Updates the object's custom metadata. This operation adds or sets individual custom metadata key-value pairs. Keys specified with empty values have their values cleared. Existing custom metadata keys not included in the request remain unchanged. For details, see Custom metadata. An object containing a list of |
contentDisposition |
Optional. Updates objects |
contentEncoding |
Optional. Updates the objects |
contentLanguage |
Optional. Updates the objects |
contentType |
Optional. Updates objects |
cacheControl |
Optional. Updates the objects |
customTime |
Optional. Updates the objects |
objectRetention |
Optional. Updates an object's retention configuration. To clear an object's retention, both |
ObjectRetention
Describes options for object retention update.
| JSON representation |
|---|
{
"retainUntilTime": string,
"retentionMode": enum ( |
| Fields | |
|---|---|
retainUntilTime |
Required. The object's retention expiration time, during which, the object is protected from being deleted or overwritten. The time must be specified in RFC 3339 format, for example |
retentionMode |
Required. The retention mode. |
RetentionMode
The retention mode.
| Enums | |
|---|---|
RETENTION_MODE_UNSPECIFIED |
The retention mode isn't specified. |
LOCKED |
When the retention mode is LOCKED, the retainUntilTime can't be removed or reduced. |
UNLOCKED |
When the retention mode is UNLOCKED, the retainUntilTime can be removed or modified. |