MonthlyBackupPolicy

class oci.psql.models.MonthlyBackupPolicy(**kwargs)

Bases: oci.psql.models.backup_policy.BackupPolicy

Monthly backup policy.

Attributes

KIND_DAILY str(object=’’) -> str
KIND_MONTHLY str(object=’’) -> str
KIND_NONE str(object=’’) -> str
KIND_WEEKLY str(object=’’) -> str
backup_start [Required] Gets the backup_start of this MonthlyBackupPolicy.
days_of_the_month [Required] Gets the days_of_the_month of this MonthlyBackupPolicy.
kind Gets the kind of this BackupPolicy.
retention_days Gets the retention_days of this BackupPolicy.

Methods

__init__(**kwargs) Initializes a new MonthlyBackupPolicy object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
KIND_DAILY = 'DAILY'
KIND_MONTHLY = 'MONTHLY'
KIND_NONE = 'NONE'
KIND_WEEKLY = 'WEEKLY'
__init__(**kwargs)

Initializes a new MonthlyBackupPolicy object with values from keyword arguments. The default value of the kind attribute of this class is MONTHLY and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • kind (str) – The value to assign to the kind property of this MonthlyBackupPolicy. Allowed values for this property are: “DAILY”, “WEEKLY”, “MONTHLY”, “NONE”
  • retention_days (int) – The value to assign to the retention_days property of this MonthlyBackupPolicy.
  • backup_start (str) – The value to assign to the backup_start property of this MonthlyBackupPolicy.
  • days_of_the_month (list[int]) – The value to assign to the days_of_the_month property of this MonthlyBackupPolicy.
backup_start

[Required] Gets the backup_start of this MonthlyBackupPolicy. Hour of the day when backup starts.

Returns:The backup_start of this MonthlyBackupPolicy.
Return type:str
days_of_the_month

[Required] Gets the days_of_the_month of this MonthlyBackupPolicy. Day of the month when the backup should start. To ensure that the backup runs monthly, the latest day of the month that you can use to schedule a backup is the the 28th day.

Returns:The days_of_the_month of this MonthlyBackupPolicy.
Return type:list[int]
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

kind

Gets the kind of this BackupPolicy. The kind of backup policy.

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

Returns:The kind of this BackupPolicy.
Return type:str
retention_days

Gets the retention_days of this BackupPolicy. How many days the data should be stored after the database system deletion.

Returns:The retention_days of this BackupPolicy.
Return type:int