PutObjectHold

Describes options to update object hold.

JSON representation
{
  "temporaryHold": enum (HoldStatus),
  "eventBasedHold": enum (HoldStatus)
}
Fields
temporaryHold

enum (HoldStatus)

Required. Updates object temporary holds state. When object temporary hold is set, object can't be deleted or replaced.

eventBasedHold

enum (HoldStatus)

Required. Updates object event based holds state. When object event based hold is set, object can't be deleted or replaced. Resets object's time in the bucket for the purposes of the retention period.

HoldStatus

Describes the status of the hold.

Enums
HOLD_STATUS_UNSPECIFIED Default value, Object hold status isn't changed.
SET Places the hold.
UNSET Releases the hold.