Skip to content

Commit

Permalink
feat: add soft_delete_time and hard_delete_time object metadata fields
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 609782289
  • Loading branch information
Google APIs authored and Copybara-Service committed Feb 23, 2024
1 parent b2c018c commit a8bcfb6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions google/storage/v2/storage.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2458,6 +2458,20 @@ message Object {

// A user-specified timestamp set on an object.
google.protobuf.Timestamp custom_time = 26;

// Output only. This is the time when the object became soft-deleted.
//
// Soft-deleted objects are only accessible if a soft_delete_policy is
// enabled. Also see hard_delete_time.
optional google.protobuf.Timestamp soft_delete_time = 28
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The time when the object will be permanently deleted.
//
// Only set when an object becomes soft-deleted with a soft_delete_policy.
// Otherwise, the object will not be accessible.
optional google.protobuf.Timestamp hard_delete_time = 29
[(google.api.field_behavior) = OUTPUT_ONLY];
}

// An access-control entry.
Expand Down

0 comments on commit a8bcfb6

Please sign in to comment.