You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"description": "Describes options for object retention update.",
915
+
"id": "ObjectRetention",
916
+
"properties": {
917
+
"retainUntilTime": {
918
+
"description": "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'.",
919
+
"type": "string"
920
+
},
921
+
"retentionMode": {
922
+
"description": "Required. The retention mode of the object.",
923
+
"enum": [
924
+
"RETENTION_MODE_UNSPECIFIED",
925
+
"LOCKED",
926
+
"UNLOCKED"
927
+
],
928
+
"enumDescriptions": [
929
+
"If set and retain_until_time is empty, clears the retention.",
930
+
"Sets the retention mode to locked.",
931
+
"Sets the retention mode to unlocked."
932
+
],
933
+
"type": "string"
934
+
}
935
+
},
936
+
"type": "object"
937
+
},
913
938
"Operation": {
914
939
"description": "This resource represents a long-running operation that is the result of a network API call.",
915
940
"id": "Operation",
@@ -1032,6 +1057,10 @@
1032
1057
"customTime": {
1033
1058
"description": "Optional. Updates objects Custom-Time fixed metadata. Unset values will be ignored. Set empty values to clear the metadata. Refer to documentation in https://cloud.google.com/storage/docs/metadata#custom-time.",
1034
1059
"type": "string"
1060
+
},
1061
+
"objectRetention": {
1062
+
"$ref": "ObjectRetention",
1063
+
"description": "Optional. 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"
* 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'.
391
+
*/
392
+
retainUntilTime?: string|null;
393
+
/**
394
+
* Required. The retention mode of the object.
395
+
*/
396
+
retentionMode?: string|null;
397
+
}
385
398
/**
386
399
* This resource represents a long-running operation that is the result of a network API call.
* Optional. Updates objects Custom-Time fixed metadata. Unset values will be ignored. Set empty values to clear the metadata. Refer to documentation in https://cloud.google.com/storage/docs/metadata#custom-time.
478
491
*/
479
492
customTime?: string|null;
493
+
/**
494
+
* Optional. 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
0 commit comments