DeletionPolicyDetails¶
- class oci.mysql.models.DeletionPolicyDetails(**kwargs)¶
Bases:
objectThe Deletion policy for the DB System.
Attributes:
A constant which can be used with the automatic_backup_retention property of a DeletionPolicyDetails.
A constant which can be used with the automatic_backup_retention property of a DeletionPolicyDetails.
A constant which can be used with the final_backup property of a DeletionPolicyDetails.
A constant which can be used with the final_backup property of a DeletionPolicyDetails.
[Required] Gets the automatic_backup_retention of this DeletionPolicyDetails.
[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.
[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.
- property 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
- property 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
- property 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