Reference documentation and code samples for the Storage Batch Operations V1 API class Google::Cloud::StorageBatchOperations::V1::PutObjectHold.
Describes options to update object hold.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#event_based_hold
def event_based_hold() -> ::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus
Returns
- (::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus) — Required. Updates object event based holds state. When object event based hold is set, object cannot be deleted or replaced. Resets object's time in the bucket for the purposes of the retention period.
#event_based_hold=
def event_based_hold=(value) -> ::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus
Parameter
- value (::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus) — Required. Updates object event based holds state. When object event based hold is set, object cannot be deleted or replaced. Resets object's time in the bucket for the purposes of the retention period.
Returns
- (::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus) — Required. Updates object event based holds state. When object event based hold is set, object cannot be deleted or replaced. Resets object's time in the bucket for the purposes of the retention period.
#temporary_hold
def temporary_hold() -> ::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus
Returns
- (::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus) — Required. Updates object temporary holds state. When object temporary hold is set, object cannot be deleted or replaced.
#temporary_hold=
def temporary_hold=(value) -> ::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus
Parameter
- value (::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus) — Required. Updates object temporary holds state. When object temporary hold is set, object cannot be deleted or replaced.
Returns
- (::Google::Cloud::StorageBatchOperations::V1::PutObjectHold::HoldStatus) — Required. Updates object temporary holds state. When object temporary hold is set, object cannot be deleted or replaced.