UpdateDeletionPolicyDetails

class oci.mysql.models.UpdateDeletionPolicyDetails(**kwargs)

Bases: object

Policy for how the DB System and related resources should be handled at the time of its deletion.

Attributes

AUTOMATIC_BACKUP_RETENTION_DELETE A constant which can be used with the automatic_backup_retention property of a UpdateDeletionPolicyDetails.
AUTOMATIC_BACKUP_RETENTION_RETAIN A constant which can be used with the automatic_backup_retention property of a UpdateDeletionPolicyDetails.
FINAL_BACKUP_REQUIRE_FINAL_BACKUP A constant which can be used with the final_backup property of a UpdateDeletionPolicyDetails.
FINAL_BACKUP_SKIP_FINAL_BACKUP A constant which can be used with the final_backup property of a UpdateDeletionPolicyDetails.
automatic_backup_retention Gets the automatic_backup_retention of this UpdateDeletionPolicyDetails.
final_backup Gets the final_backup of this UpdateDeletionPolicyDetails.
is_delete_protected Gets the is_delete_protected of this UpdateDeletionPolicyDetails.

Methods

__init__(**kwargs) Initializes a new UpdateDeletionPolicyDetails 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 UpdateDeletionPolicyDetails. 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 UpdateDeletionPolicyDetails. 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 UpdateDeletionPolicyDetails. 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 UpdateDeletionPolicyDetails. This constant has a value of “SKIP_FINAL_BACKUP”

__init__(**kwargs)

Initializes a new UpdateDeletionPolicyDetails 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 UpdateDeletionPolicyDetails. Allowed values for this property are: “DELETE”, “RETAIN”
  • final_backup (str) – The value to assign to the final_backup property of this UpdateDeletionPolicyDetails. Allowed values for this property are: “SKIP_FINAL_BACKUP”, “REQUIRE_FINAL_BACKUP”
  • is_delete_protected (bool) – The value to assign to the is_delete_protected property of this UpdateDeletionPolicyDetails.
automatic_backup_retention

Gets the automatic_backup_retention of this UpdateDeletionPolicyDetails. 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”

Returns:The automatic_backup_retention of this UpdateDeletionPolicyDetails.
Return type:str
final_backup

Gets the final_backup of this UpdateDeletionPolicyDetails. 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”

Returns:The final_backup of this UpdateDeletionPolicyDetails.
Return type:str
is_delete_protected

Gets the is_delete_protected of this UpdateDeletionPolicyDetails. 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 UpdateDeletionPolicyDetails.
Return type:bool