Backup¶
- class oci.wlms.models.Backup(**kwargs)¶
Bases:
objectThe information of a backup for the server.
Attributes:
A constant which can be used with the content_type property of a Backup.
A constant which can be used with the type property of a Backup.
[Required] Gets the backup_location of this Backup.
Gets the content_type of this Backup.
[Required] Gets the id of this Backup.
Gets the managed_instance_id of this Backup.
Gets the time_created of this Backup.
[Required] Gets the type of this Backup.
Methods:
__init__(**kwargs)Initializes a new Backup object with values from keyword arguments.
- CONTENT_TYPE_BINARY = 'BINARY'¶
A constant which can be used with the content_type property of a Backup. This constant has a value of “BINARY”
- TYPE_LOCAL_FILE = 'LOCAL_FILE'¶
A constant which can be used with the type property of a Backup. This constant has a value of “LOCAL_FILE”
- __init__(**kwargs)¶
Initializes a new Backup object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
id (str) – The value to assign to the id property of this Backup.
type (str) – The value to assign to the type property of this Backup. Allowed values for this property are: “LOCAL_FILE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
managed_instance_id (str) – The value to assign to the managed_instance_id property of this Backup.
backup_location (str) – The value to assign to the backup_location property of this Backup.
content_type (str) – The value to assign to the content_type property of this Backup. Allowed values for this property are: “BINARY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
time_created (datetime) – The value to assign to the time_created property of this Backup.
- property backup_location¶
[Required] Gets the backup_location of this Backup. The location of the backup. For backups of type LOCAL_FILE this is the absolute path of the backup file.
- Returns
The backup_location of this Backup.
- Return type
str
- property content_type¶
Gets the content_type of this Backup. The type of content of the backup.
Allowed values for this property are: “BINARY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The content_type of this Backup.
- Return type
str
- property id¶
[Required] Gets the id of this Backup. The unique identifier of the backup.
Note: Not an OCID.
- Returns
The id of this Backup.
- Return type
str
- property managed_instance_id¶
Gets the managed_instance_id of this Backup. The managed instance ID of the server for which the backup was created.
- Returns
The managed_instance_id of this Backup.
- Return type
str
- property time_created¶
Gets the time_created of this Backup. The date and time when the backup was created (in RFC 3339 format).
Example: 2016-08-25T21:10:29.600Z
- Returns
The time_created of this Backup.
- Return type
datetime
- property type¶
[Required] Gets the type of this Backup. The type of the backup.
Allowed values for this property are: “LOCAL_FILE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The type of this Backup.
- Return type
str