RetentionPeriodValue¶
- class oci.recovery.models.RetentionPeriodValue(**kwargs)¶
Bases:
objectSpecifies the retention period for the long-term backup.
Attributes:
A constant which can be used with the retention_period_type property of a RetentionPeriodValue.
A constant which can be used with the retention_period_type property of a RetentionPeriodValue.
[Required] Gets the retention_count of this RetentionPeriodValue.
[Required] Gets the retention_period_type of this RetentionPeriodValue.
Methods:
__init__(**kwargs)Initializes a new RetentionPeriodValue object with values from keyword arguments.
- RETENTION_PERIOD_TYPE_DAY = 'DAY'¶
A constant which can be used with the retention_period_type property of a RetentionPeriodValue. This constant has a value of “DAY”
- RETENTION_PERIOD_TYPE_YEAR = 'YEAR'¶
A constant which can be used with the retention_period_type property of a RetentionPeriodValue. This constant has a value of “YEAR”
- __init__(**kwargs)¶
Initializes a new RetentionPeriodValue object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
retention_period_type (str) – The value to assign to the retention_period_type property of this RetentionPeriodValue. Allowed values for this property are: “YEAR”, “DAY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
retention_count (int) – The value to assign to the retention_count property of this RetentionPeriodValue.
- property retention_count¶
[Required] Gets the retention_count of this RetentionPeriodValue. Specifies the duration (in days or years) to retain the long-term backup. If you have chosen the retentionPeriodType as ‘DAYS’, then specify a duration ranging from 90 days to 3650 days. If you have chosen the retentionPeriodType as ‘YEARS’, then specify a duration ranging from 1 year to 10 years.
- Returns
The retention_count of this RetentionPeriodValue.
- Return type
int
- property retention_period_type¶
[Required] Gets the retention_period_type of this RetentionPeriodValue. Specifies the retention period type for the long-term backup. Allowed values are DAYS or YEARS.
Allowed values for this property are: “YEAR”, “DAY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The retention_period_type of this RetentionPeriodValue.
- Return type
str