CreateDeletionPolicyDetails

class oci.mysql.models.CreateDeletionPolicyDetails(**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 CreateDeletionPolicyDetails.

AUTOMATIC_BACKUP_RETENTION_RETAIN

A constant which can be used with the automatic_backup_retention property of a CreateDeletionPolicyDetails.

FINAL_BACKUP_REQUIRE_FINAL_BACKUP

A constant which can be used with the final_backup property of a CreateDeletionPolicyDetails.

FINAL_BACKUP_SKIP_FINAL_BACKUP

A constant which can be used with the final_backup property of a CreateDeletionPolicyDetails.

automatic_backup_retention

Gets the automatic_backup_retention of this CreateDeletionPolicyDetails.

final_backup

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

is_delete_protected

Gets the is_delete_protected of this CreateDeletionPolicyDetails.

Methods:

__init__(**kwargs)

Initializes a new CreateDeletionPolicyDetails 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 CreateDeletionPolicyDetails. 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 CreateDeletionPolicyDetails. 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 CreateDeletionPolicyDetails. 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 CreateDeletionPolicyDetails. This constant has a value of “SKIP_FINAL_BACKUP”

__init__(**kwargs)

Initializes a new CreateDeletionPolicyDetails 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 CreateDeletionPolicyDetails. Allowed values for this property are: “DELETE”, “RETAIN”

  • final_backup (str) – The value to assign to the final_backup property of this CreateDeletionPolicyDetails. 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 CreateDeletionPolicyDetails.

property automatic_backup_retention

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

Return type

str

property final_backup

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

Return type

str

property is_delete_protected

Gets the is_delete_protected of this CreateDeletionPolicyDetails. 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 CreateDeletionPolicyDetails.

Return type

bool