BackupPolicy¶
- class oci.psql.models.BackupPolicy(**kwargs)¶
Bases:
objectPostgreSQL database system backup policy.
Attributes:
A constant which can be used with the kind property of a BackupPolicy.
A constant which can be used with the kind property of a BackupPolicy.
A constant which can be used with the kind property of a BackupPolicy.
A constant which can be used with the kind property of a BackupPolicy.
Gets the copy_policy of this BackupPolicy.
Gets the kind of this BackupPolicy.
Gets the retention_days of this BackupPolicy.
Methods:
__init__(**kwargs)Initializes a new BackupPolicy 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'¶
A constant which can be used with the kind property of a BackupPolicy. This constant has a value of “DAILY”
- KIND_MONTHLY = 'MONTHLY'¶
A constant which can be used with the kind property of a BackupPolicy. This constant has a value of “MONTHLY”
- KIND_NONE = 'NONE'¶
A constant which can be used with the kind property of a BackupPolicy. This constant has a value of “NONE”
- KIND_WEEKLY = 'WEEKLY'¶
A constant which can be used with the kind property of a BackupPolicy. This constant has a value of “WEEKLY”
- __init__(**kwargs)¶
Initializes a new BackupPolicy object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
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 BackupPolicy. 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 BackupPolicy.
copy_policy (oci.psql.models.BackupCopyPolicy) – The value to assign to the copy_policy property of this BackupPolicy.
- property copy_policy¶
Gets the copy_policy of this BackupPolicy.
- Returns
The copy_policy of this BackupPolicy.
- Return type
- 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.
- property 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
- property 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