CreateBackupDetails¶
-
class
oci.mysql.models.
CreateBackupDetails
(**kwargs)¶ Bases:
object
Complete information for a Backup.
Attributes
BACKUP_TYPE_FULL
A constant which can be used with the backup_type property of a CreateBackupDetails. BACKUP_TYPE_INCREMENTAL
A constant which can be used with the backup_type property of a CreateBackupDetails. backup_type
Gets the backup_type of this CreateBackupDetails. db_system_id
[Required] Gets the db_system_id of this CreateBackupDetails. defined_tags
Gets the defined_tags of this CreateBackupDetails. description
Gets the description of this CreateBackupDetails. display_name
Gets the display_name of this CreateBackupDetails. freeform_tags
Gets the freeform_tags of this CreateBackupDetails. retention_in_days
Gets the retention_in_days of this CreateBackupDetails. Methods
__init__
(**kwargs)Initializes a new CreateBackupDetails object with values from keyword arguments. -
BACKUP_TYPE_FULL
= 'FULL'¶ A constant which can be used with the backup_type property of a CreateBackupDetails. This constant has a value of “FULL”
-
BACKUP_TYPE_INCREMENTAL
= 'INCREMENTAL'¶ A constant which can be used with the backup_type property of a CreateBackupDetails. This constant has a value of “INCREMENTAL”
-
__init__
(**kwargs)¶ Initializes a new CreateBackupDetails 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 CreateBackupDetails.
- description (str) – The value to assign to the description property of this CreateBackupDetails.
- backup_type (str) – The value to assign to the backup_type property of this CreateBackupDetails. Allowed values for this property are: “FULL”, “INCREMENTAL”
- db_system_id (str) – The value to assign to the db_system_id property of this CreateBackupDetails.
- retention_in_days (int) – The value to assign to the retention_in_days property of this CreateBackupDetails.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateBackupDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateBackupDetails.
-
backup_type
¶ Gets the backup_type of this CreateBackupDetails. The type of backup.
Allowed values for this property are: “FULL”, “INCREMENTAL”
Returns: The backup_type of this CreateBackupDetails. Return type: str
-
db_system_id
¶ [Required] Gets the db_system_id of this CreateBackupDetails. The OCID of the DB System the Backup is associated with.
Returns: The db_system_id of this CreateBackupDetails. Return type: str
Gets the defined_tags of this CreateBackupDetails. 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 CreateBackupDetails. Return type: dict(str, dict(str, object))
-
description
¶ Gets the description of this CreateBackupDetails. A user-supplied description for the backup.
Returns: The description of this CreateBackupDetails. Return type: str
-
display_name
¶ Gets the display_name of this CreateBackupDetails. A user-supplied display name for the backup.
Returns: The display_name of this CreateBackupDetails. Return type: str
Gets the freeform_tags of this CreateBackupDetails. 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 CreateBackupDetails. Return type: dict(str, str)
-
retention_in_days
¶ Gets the retention_in_days of this CreateBackupDetails. Number of days to retain this backup.
Returns: The retention_in_days of this CreateBackupDetails. Return type: int
-