CreateDatabaseFromBackup

class oci.database.models.CreateDatabaseFromBackup(**kwargs)

Bases: oci.database.models.create_database_base.CreateDatabaseBase

Details for creating a database by restoring from a database backup.

Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.

Attributes

SOURCE_DB_BACKUP str(object=’‘) -> str
SOURCE_NONE str(object=’‘) -> str
database [Required] Gets the database of this CreateDatabaseFromBackup.
db_home_id [Required] Gets the db_home_id of this CreateDatabaseBase.
db_version Gets the db_version of this CreateDatabaseBase.
source [Required] Gets the source of this CreateDatabaseBase.

Methods

__init__(**kwargs) Initializes a new CreateDatabaseFromBackup object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
SOURCE_DB_BACKUP = 'DB_BACKUP'
SOURCE_NONE = 'NONE'
__init__(**kwargs)

Initializes a new CreateDatabaseFromBackup object with values from keyword arguments. The default value of the source attribute of this class is DB_BACKUP and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • db_home_id (str) – The value to assign to the db_home_id property of this CreateDatabaseFromBackup.
  • db_version (str) – The value to assign to the db_version property of this CreateDatabaseFromBackup.
  • source (str) – The value to assign to the source property of this CreateDatabaseFromBackup. Allowed values for this property are: “NONE”, “DB_BACKUP”
  • database (CreateDatabaseFromBackupDetails) – The value to assign to the database property of this CreateDatabaseFromBackup.
database

[Required] Gets the database of this CreateDatabaseFromBackup.

Returns:The database of this CreateDatabaseFromBackup.
Return type:CreateDatabaseFromBackupDetails
db_home_id

[Required] Gets the db_home_id of this CreateDatabaseBase. The OCID of the Database Home.

Returns:The db_home_id of this CreateDatabaseBase.
Return type:str
db_version

Gets the db_version of this CreateDatabaseBase. A valid Oracle Database version. To get a list of supported versions, use the list_db_versions() operation.

Returns:The db_version of this CreateDatabaseBase.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

source

[Required] Gets the source of this CreateDatabaseBase. The source of the database: Use NONE for creating a new database. Use DB_BACKUP for creating a new database by restoring from a backup. The default is NONE.

Allowed values for this property are: “NONE”, “DB_BACKUP”

Returns:The source of this CreateDatabaseBase.
Return type:str