LongTermBackUpScheduleDetails

class oci.database.models.LongTermBackUpScheduleDetails(**kwargs)

Bases: object

Details for the long-term backup schedule.

Attributes

REPEAT_CADENCE_MONTHLY A constant which can be used with the repeat_cadence property of a LongTermBackUpScheduleDetails.
REPEAT_CADENCE_ONE_TIME A constant which can be used with the repeat_cadence property of a LongTermBackUpScheduleDetails.
REPEAT_CADENCE_WEEKLY A constant which can be used with the repeat_cadence property of a LongTermBackUpScheduleDetails.
REPEAT_CADENCE_YEARLY A constant which can be used with the repeat_cadence property of a LongTermBackUpScheduleDetails.
is_disabled Gets the is_disabled of this LongTermBackUpScheduleDetails.
repeat_cadence Gets the repeat_cadence of this LongTermBackUpScheduleDetails.
retention_period_in_days Gets the retention_period_in_days of this LongTermBackUpScheduleDetails.
time_of_backup Gets the time_of_backup of this LongTermBackUpScheduleDetails.

Methods

__init__(**kwargs) Initializes a new LongTermBackUpScheduleDetails object with values from keyword arguments.
REPEAT_CADENCE_MONTHLY = 'MONTHLY'

A constant which can be used with the repeat_cadence property of a LongTermBackUpScheduleDetails. This constant has a value of “MONTHLY”

REPEAT_CADENCE_ONE_TIME = 'ONE_TIME'

A constant which can be used with the repeat_cadence property of a LongTermBackUpScheduleDetails. This constant has a value of “ONE_TIME”

REPEAT_CADENCE_WEEKLY = 'WEEKLY'

A constant which can be used with the repeat_cadence property of a LongTermBackUpScheduleDetails. This constant has a value of “WEEKLY”

REPEAT_CADENCE_YEARLY = 'YEARLY'

A constant which can be used with the repeat_cadence property of a LongTermBackUpScheduleDetails. This constant has a value of “YEARLY”

__init__(**kwargs)

Initializes a new LongTermBackUpScheduleDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • repeat_cadence (str) – The value to assign to the repeat_cadence property of this LongTermBackUpScheduleDetails. Allowed values for this property are: “ONE_TIME”, “WEEKLY”, “MONTHLY”, “YEARLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • time_of_backup (datetime) – The value to assign to the time_of_backup property of this LongTermBackUpScheduleDetails.
  • retention_period_in_days (int) – The value to assign to the retention_period_in_days property of this LongTermBackUpScheduleDetails.
  • is_disabled (bool) – The value to assign to the is_disabled property of this LongTermBackUpScheduleDetails.
is_disabled

Gets the is_disabled of this LongTermBackUpScheduleDetails. Indicates if the long-term backup schedule should be deleted. The default value is FALSE.

Returns:The is_disabled of this LongTermBackUpScheduleDetails.
Return type:bool
repeat_cadence

Gets the repeat_cadence of this LongTermBackUpScheduleDetails. The frequency of the long-term backup schedule

Allowed values for this property are: “ONE_TIME”, “WEEKLY”, “MONTHLY”, “YEARLY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The repeat_cadence of this LongTermBackUpScheduleDetails.
Return type:str
retention_period_in_days

Gets the retention_period_in_days of this LongTermBackUpScheduleDetails. Retention period, in days, for long-term backups

Returns:The retention_period_in_days of this LongTermBackUpScheduleDetails.
Return type:int
time_of_backup

Gets the time_of_backup of this LongTermBackUpScheduleDetails. The timestamp for the long-term backup schedule. For a MONTHLY cadence, months having fewer days than the provided date will have the backup taken on the last day of that month.

Returns:The time_of_backup of this LongTermBackUpScheduleDetails.
Return type:datetime