RetentionRuleDetails¶
- class oci.object_storage.models.RetentionRuleDetails(**kwargs)¶
Bases:
objectThe details to create or update a retention rule.
Methods:
__init__(**kwargs)Initializes a new RetentionRuleDetails object with values from keyword arguments.
Attributes:
Gets the display_name of this RetentionRuleDetails.
Gets the duration of this RetentionRuleDetails.
Gets the time_rule_locked of this RetentionRuleDetails.
- __init__(**kwargs)¶
Initializes a new RetentionRuleDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
display_name (str) – The value to assign to the display_name property of this RetentionRuleDetails.
duration (oci.object_storage.models.Duration) – The value to assign to the duration property of this RetentionRuleDetails.
time_rule_locked (datetime) – The value to assign to the time_rule_locked property of this RetentionRuleDetails.
- property display_name¶
Gets the display_name of this RetentionRuleDetails. A user-specified name for the retention rule. Names can be helpful in identifying retention rules. Avoid entering confidential information.
- Returns
The display_name of this RetentionRuleDetails.
- Return type
str
- property duration¶
Gets the duration of this RetentionRuleDetails.
- Returns
The duration of this RetentionRuleDetails.
- Return type
- property time_rule_locked¶
Gets the time_rule_locked of this RetentionRuleDetails. 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.
- Returns
The time_rule_locked of this RetentionRuleDetails.
- Return type
datetime