RetentionRule¶
-
class
oci.object_storage.models.
RetentionRule
(**kwargs)¶ Bases:
object
The details of a retention rule.
Methods
__init__
(**kwargs)Initializes a new RetentionRule object with values from keyword arguments. Attributes
display_name
[Required] Gets the display_name of this RetentionRule. duration
Gets the duration of this RetentionRule. etag
[Required] Gets the etag of this RetentionRule. id
[Required] Gets the id of this RetentionRule. time_created
[Required] Gets the time_created of this RetentionRule. time_modified
[Required] Gets the time_modified of this RetentionRule. time_rule_locked
Gets the time_rule_locked of this RetentionRule. -
__init__
(**kwargs)¶ Initializes a new RetentionRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - id (str) – The value to assign to the id property of this RetentionRule.
- display_name (str) – The value to assign to the display_name property of this RetentionRule.
- duration (oci.object_storage.models.Duration) – The value to assign to the duration property of this RetentionRule.
- etag (str) – The value to assign to the etag property of this RetentionRule.
- time_rule_locked (datetime) – The value to assign to the time_rule_locked property of this RetentionRule.
- time_created (datetime) – The value to assign to the time_created property of this RetentionRule.
- time_modified (datetime) – The value to assign to the time_modified property of this RetentionRule.
-
display_name
¶ [Required] Gets the display_name of this RetentionRule. User specified name for the retention rule.
Returns: The display_name of this RetentionRule. Return type: str
-
duration
¶ Gets the duration of this RetentionRule.
Returns: The duration of this RetentionRule. Return type: oci.object_storage.models.Duration
-
etag
¶ [Required] Gets the etag of this RetentionRule. The entity tag (ETag) for the retention rule.
Returns: The etag of this RetentionRule. Return type: str
-
id
¶ [Required] Gets the id of this RetentionRule. Unique identifier for the retention rule.
Returns: The id of this RetentionRule. Return type: str
-
time_created
¶ [Required] Gets the time_created of this RetentionRule. The date and time that the retention rule was created as per RFC3339.
Returns: The time_created of this RetentionRule. Return type: datetime
-