UpdateBackupDetails¶
- class oci.mysql.models.UpdateBackupDetails(**kwargs)¶
Bases:
objectThe Backup metadata which can be updated.
Attributes:
A constant which can be used with the soft_delete property of a UpdateBackupDetails.
A constant which can be used with the soft_delete property of a UpdateBackupDetails.
Gets the defined_tags of this UpdateBackupDetails.
Gets the description of this UpdateBackupDetails.
Gets the display_name of this UpdateBackupDetails.
Gets the freeform_tags of this UpdateBackupDetails.
Gets the retention_in_days of this UpdateBackupDetails.
Gets the soft_delete of this UpdateBackupDetails.
Methods:
__init__(**kwargs)Initializes a new UpdateBackupDetails object with values from keyword arguments.
- SOFT_DELETE_DISABLED = 'DISABLED'¶
A constant which can be used with the soft_delete property of a UpdateBackupDetails. This constant has a value of “DISABLED”
- SOFT_DELETE_ENABLED = 'ENABLED'¶
A constant which can be used with the soft_delete property of a UpdateBackupDetails. This constant has a value of “ENABLED”
- __init__(**kwargs)¶
Initializes a new UpdateBackupDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
display_name (str) – The value to assign to the display_name property of this UpdateBackupDetails.
description (str) – The value to assign to the description property of this UpdateBackupDetails.
soft_delete (str) – The value to assign to the soft_delete property of this UpdateBackupDetails. Allowed values for this property are: “ENABLED”, “DISABLED”
retention_in_days (int) – The value to assign to the retention_in_days property of this UpdateBackupDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this UpdateBackupDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this UpdateBackupDetails.
- property defined_tags¶
Gets the defined_tags of this UpdateBackupDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Returns
The defined_tags of this UpdateBackupDetails.
- Return type
dict(str, dict(str, object))
- property description¶
Gets the description of this UpdateBackupDetails. A user-supplied description for the backup.
- Returns
The description of this UpdateBackupDetails.
- Return type
str
- property display_name¶
Gets the display_name of this UpdateBackupDetails. A user-supplied display name for the backup.
- Returns
The display_name of this UpdateBackupDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this UpdateBackupDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Returns
The freeform_tags of this UpdateBackupDetails.
- Return type
dict(str, str)
- property retention_in_days¶
Gets the retention_in_days of this UpdateBackupDetails. The number of days backups are retained.
- Returns
The retention_in_days of this UpdateBackupDetails.
- Return type
int
- property soft_delete¶
Gets the soft_delete of this UpdateBackupDetails. Retains the backup to be deleted due to the retention policy in DELETE SCHEDULED state for 7 days before permanently deleting it.
Allowed values for this property are: “ENABLED”, “DISABLED”
- Returns
The soft_delete of this UpdateBackupDetails.
- Return type
str