Storage Batch Operations v1 API - Class ObjectRetention (1.0.0-beta03)

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

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

Describes options for object retention update.

Inheritance

object > ObjectRetention

Namespace

Google.Cloud.StorageBatchOperations.V1

Assembly

Google.Cloud.StorageBatchOperations.V1.dll

Constructors

ObjectRetention()

public ObjectRetention()

ObjectRetention(ObjectRetention)

public ObjectRetention(ObjectRetention other)
Parameter
Name Description
other ObjectRetention

Properties

HasRetainUntilTime

public bool HasRetainUntilTime { get; }

Gets whether the "retain_until_time" field is set

Property Value
Type Description
bool

HasRetentionMode

public bool HasRetentionMode { get; }

Gets whether the "retention_mode" field is set

Property Value
Type Description
bool

RetainUntilTime

public string RetainUntilTime { get; set; }

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'.

Property Value
Type Description
string

RetentionMode

public ObjectRetention.Types.RetentionMode RetentionMode { get; set; }

Required. The retention mode of the object.

Property Value
Type Description
ObjectRetentionTypesRetentionMode