WeeklyBackupPolicy

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

Bases: oci.psql.models.backup_policy.BackupPolicy

Weekly backup policy.

Attributes

DAYS_OF_THE_WEEK_FRIDAY A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy.
DAYS_OF_THE_WEEK_MONDAY A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy.
DAYS_OF_THE_WEEK_SATURDAY A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy.
DAYS_OF_THE_WEEK_SUNDAY A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy.
DAYS_OF_THE_WEEK_THURSDAY A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy.
DAYS_OF_THE_WEEK_TUESDAY A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy.
DAYS_OF_THE_WEEK_WEDNESDAY A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy.
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 WeeklyBackupPolicy.
days_of_the_week [Required] Gets the days_of_the_week of this WeeklyBackupPolicy.
kind Gets the kind of this BackupPolicy.
retention_days Gets the retention_days of this BackupPolicy.

Methods

__init__(**kwargs) Initializes a new WeeklyBackupPolicy 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.
DAYS_OF_THE_WEEK_FRIDAY = 'FRIDAY'

A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy. This constant has a value of “FRIDAY”

DAYS_OF_THE_WEEK_MONDAY = 'MONDAY'

A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy. This constant has a value of “MONDAY”

DAYS_OF_THE_WEEK_SATURDAY = 'SATURDAY'

A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy. This constant has a value of “SATURDAY”

DAYS_OF_THE_WEEK_SUNDAY = 'SUNDAY'

A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy. This constant has a value of “SUNDAY”

DAYS_OF_THE_WEEK_THURSDAY = 'THURSDAY'

A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy. This constant has a value of “THURSDAY”

DAYS_OF_THE_WEEK_TUESDAY = 'TUESDAY'

A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy. This constant has a value of “TUESDAY”

DAYS_OF_THE_WEEK_WEDNESDAY = 'WEDNESDAY'

A constant which can be used with the days_of_the_week property of a WeeklyBackupPolicy. This constant has a value of “WEDNESDAY”

KIND_DAILY = 'DAILY'
KIND_MONTHLY = 'MONTHLY'
KIND_NONE = 'NONE'
KIND_WEEKLY = 'WEEKLY'
__init__(**kwargs)

Initializes a new WeeklyBackupPolicy object with values from keyword arguments. The default value of the kind attribute of this class is WEEKLY 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 WeeklyBackupPolicy. 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’.
  • retention_days (int) – The value to assign to the retention_days property of this WeeklyBackupPolicy.
  • days_of_the_week (list[str]) – The value to assign to the days_of_the_week property of this WeeklyBackupPolicy. Allowed values for items in this list are: “SUNDAY”, “MONDAY”, “TUESDAY”, “WEDNESDAY”, “THURSDAY”, “FRIDAY”, “SATURDAY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • backup_start (str) – The value to assign to the backup_start property of this WeeklyBackupPolicy.
backup_start

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

Returns:The backup_start of this WeeklyBackupPolicy.
Return type:str
days_of_the_week

[Required] Gets the days_of_the_week of this WeeklyBackupPolicy. The day of the week that the backup starts.

Allowed values for items in this list are: “SUNDAY”, “MONDAY”, “TUESDAY”, “WEDNESDAY”, “THURSDAY”, “FRIDAY”, “SATURDAY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The days_of_the_week of this WeeklyBackupPolicy.
Return type:list[str]
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