DeletionPolicyDetails¶
- 
class oci.mysql.models.DeletionPolicyDetails(**kwargs)¶
- Bases: - object- The Deletion policy for the DB System. - Attributes - AUTOMATIC_BACKUP_RETENTION_DELETE- A constant which can be used with the automatic_backup_retention property of a DeletionPolicyDetails. - AUTOMATIC_BACKUP_RETENTION_RETAIN- A constant which can be used with the automatic_backup_retention property of a DeletionPolicyDetails. - FINAL_BACKUP_REQUIRE_FINAL_BACKUP- A constant which can be used with the final_backup property of a DeletionPolicyDetails. - FINAL_BACKUP_SKIP_FINAL_BACKUP- A constant which can be used with the final_backup property of a DeletionPolicyDetails. - automatic_backup_retention- [Required] Gets the automatic_backup_retention of this DeletionPolicyDetails. - final_backup- [Required] Gets the final_backup of this DeletionPolicyDetails. - is_delete_protected- [Required] Gets the is_delete_protected of this DeletionPolicyDetails. - Methods - __init__(**kwargs)- Initializes a new DeletionPolicyDetails object with values from keyword arguments. - 
AUTOMATIC_BACKUP_RETENTION_DELETE= 'DELETE'¶
- A constant which can be used with the automatic_backup_retention property of a DeletionPolicyDetails. This constant has a value of “DELETE” 
 - 
AUTOMATIC_BACKUP_RETENTION_RETAIN= 'RETAIN'¶
- A constant which can be used with the automatic_backup_retention property of a DeletionPolicyDetails. This constant has a value of “RETAIN” 
 - 
FINAL_BACKUP_REQUIRE_FINAL_BACKUP= 'REQUIRE_FINAL_BACKUP'¶
- A constant which can be used with the final_backup property of a DeletionPolicyDetails. This constant has a value of “REQUIRE_FINAL_BACKUP” 
 - 
FINAL_BACKUP_SKIP_FINAL_BACKUP= 'SKIP_FINAL_BACKUP'¶
- A constant which can be used with the final_backup property of a DeletionPolicyDetails. This constant has a value of “SKIP_FINAL_BACKUP” 
 - 
__init__(**kwargs)¶
- Initializes a new DeletionPolicyDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): - Parameters: - automatic_backup_retention (str) – The value to assign to the automatic_backup_retention property of this DeletionPolicyDetails. Allowed values for this property are: “DELETE”, “RETAIN”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- final_backup (str) – The value to assign to the final_backup property of this DeletionPolicyDetails. Allowed values for this property are: “SKIP_FINAL_BACKUP”, “REQUIRE_FINAL_BACKUP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- is_delete_protected (bool) – The value to assign to the is_delete_protected property of this DeletionPolicyDetails.
 
 - 
automatic_backup_retention¶
- [Required] Gets the automatic_backup_retention of this DeletionPolicyDetails. Specifies if any automatic backups created for a DB System should be retained or deleted when the DB System is deleted. - Allowed values for this property are: “DELETE”, “RETAIN”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’. - Returns: - The automatic_backup_retention of this DeletionPolicyDetails. - Return type: - str 
 - 
final_backup¶
- [Required] Gets the final_backup of this DeletionPolicyDetails. Specifies whether or not a backup is taken when the DB System is deleted. REQUIRE_FINAL_BACKUP: a backup is taken if the DB System is deleted. SKIP_FINAL_BACKUP: a backup is not taken if the DB System is deleted.- Allowed values for this property are: “SKIP_FINAL_BACKUP”, “REQUIRE_FINAL_BACKUP”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’. - Returns: - The final_backup of this DeletionPolicyDetails. - Return type: - str 
 - 
is_delete_protected¶
- [Required] Gets the is_delete_protected of this DeletionPolicyDetails. Specifies whether the DB System can be deleted. Set to true to prevent deletion, false (default) to allow. - Returns: - The is_delete_protected of this DeletionPolicyDetails. - Return type: - bool 
 
-