Show / Hide Table of Contents

Class RetentionRule

The details of a retention rule.

Inheritance
object
RetentionRule
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ObjectstorageService.Models
Assembly: OCI.DotNetSDK.Objectstorage.dll
Syntax
public class RetentionRule

Properties

DisplayName

Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

User specified name for the retention rule.

Remarks

Required

Duration

Declaration
[JsonProperty(PropertyName = "duration")]
public Duration Duration { get; set; }
Property Value
Type Description
Duration

Etag

Declaration
[Required(ErrorMessage = "Etag is required.")]
[JsonProperty(PropertyName = "etag")]
public string Etag { get; set; }
Property Value
Type Description
string

The entity tag (ETag) for the retention rule.

Remarks

Required

Id

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

Unique identifier for the retention rule.

Remarks

Required

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time that the retention rule was created as per RFC3339.

Remarks

Required

TimeModified

Declaration
[Required(ErrorMessage = "TimeModified is required.")]
[JsonProperty(PropertyName = "timeModified")]
public DateTime? TimeModified { get; set; }
Property Value
Type Description
DateTime?

The date and time that the retention rule was modified as per RFC3339.

Remarks

Required

TimeRuleLocked

Declaration
[JsonProperty(PropertyName = "timeRuleLocked")]
public DateTime? TimeRuleLocked { get; set; }
Property Value
Type Description
DateTime?

The date and time as per RFC 3339 after which this rule becomes locked. and can only be deleted by deleting the bucket.

In this article
Back to top