Class CreateRetentionRuleDetails
The details to create a retention rule.
Inherited Members
Namespace: Oci.ObjectstorageService.Models
Assembly: OCI.DotNetSDK.Objectstorage.dll
Syntax
public class CreateRetentionRuleDetails
Properties
DisplayName
Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A user-specified name for the retention rule. Names can be helpful in identifying retention rules. Avoid entering confidential information. |
Duration
Declaration
[JsonProperty(PropertyName = "duration")]
public Duration Duration { get; set; }
Property Value
| Type | Description |
|---|---|
| Duration |
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 is locked and can only be deleted by deleting the bucket. Once a rule is locked, only increases in the duration are allowed and no other properties can be changed. This property cannot be updated for rules that are in a locked state. Specifying it when a duration is not specified is considered an error. |