Storage Batch Operations v1 API - Class PutObjectHold (1.0.0-beta01)

public sealed class PutObjectHold : IMessage<PutObjectHold>, IEquatable<PutObjectHold>, IDeepCloneable<PutObjectHold>, IBufferMessage, IMessage

Reference documentation and code samples for the Storage Batch Operations v1 API class PutObjectHold.

Describes options to update object hold.

Inheritance

object > PutObjectHold

Namespace

Google.Cloud.StorageBatchOperations.V1

Assembly

Google.Cloud.StorageBatchOperations.V1.dll

Constructors

PutObjectHold()

public PutObjectHold()

PutObjectHold(PutObjectHold)

public PutObjectHold(PutObjectHold other)
Parameter
Name Description
other PutObjectHold

Properties

EventBasedHold

public PutObjectHold.Types.HoldStatus EventBasedHold { get; set; }

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.

Property Value
Type Description
PutObjectHoldTypesHoldStatus

TemporaryHold

public PutObjectHold.Types.HoldStatus TemporaryHold { get; set; }

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

Property Value
Type Description
PutObjectHoldTypesHoldStatus