RetentionRule¶
- class oci.object_storage.models.RetentionRule(**kwargs)¶
Bases:
objectThe details of a retention rule.
Methods:
__init__(**kwargs)Initializes a new RetentionRule object with values from keyword arguments.
Attributes:
[Required] Gets the display_name of this RetentionRule.
Gets the duration of this RetentionRule.
[Required] Gets the etag of this RetentionRule.
[Required] Gets the id of this RetentionRule.
[Required] Gets the time_created of this RetentionRule.
[Required] Gets the time_modified of this RetentionRule.
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.
- property 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
- property duration¶
Gets the duration of this RetentionRule.
- Returns
The duration of this RetentionRule.
- Return type
- property 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
- property id¶
[Required] Gets the id of this RetentionRule. Unique identifier for the retention rule.
- Returns
The id of this RetentionRule.
- Return type
str
- property 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