UpdateRetentionRuleDetails

class oci.object_storage.models.UpdateRetentionRuleDetails(**kwargs)

Bases: object

The details to update a retention rule.

Methods

__init__(**kwargs) Initializes a new UpdateRetentionRuleDetails object with values from keyword arguments.

Attributes

display_name Gets the display_name of this UpdateRetentionRuleDetails.
duration Gets the duration of this UpdateRetentionRuleDetails.
time_rule_locked Gets the time_rule_locked of this UpdateRetentionRuleDetails.
__init__(**kwargs)

Initializes a new UpdateRetentionRuleDetails 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 UpdateRetentionRuleDetails.
  • duration (Duration) – The value to assign to the duration property of this UpdateRetentionRuleDetails.
  • time_rule_locked (datetime) – The value to assign to the time_rule_locked property of this UpdateRetentionRuleDetails.
display_name

Gets the display_name of this UpdateRetentionRuleDetails. A user-specified name for the retention rule. Names can be helpful in identifying retention rules.

Returns:The display_name of this UpdateRetentionRuleDetails.
Return type:str
duration

Gets the duration of this UpdateRetentionRuleDetails.

Returns:The duration of this UpdateRetentionRuleDetails.
Return type:Duration
time_rule_locked

Gets the time_rule_locked of this UpdateRetentionRuleDetails. 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 UpdateRetentionRuleDetails.
Return type:datetime