CreateDbHomeWithDbSystemIdFromDatabaseDetails

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

Bases: oci.database.models.create_db_home_base.CreateDbHomeBase

Note that a valid dbSystemId value must be supplied for the CreateDbHomeWithDbSystemIdFromDatabase API operation to successfully complete.

Attributes

SOURCE_DATABASE str(object=’‘) -> str
SOURCE_DB_BACKUP str(object=’‘) -> str
SOURCE_NONE str(object=’‘) -> str
SOURCE_VM_CLUSTER_NEW str(object=’‘) -> str
database [Required] Gets the database of this CreateDbHomeWithDbSystemIdFromDatabaseDetails.
db_system_id [Required] Gets the db_system_id of this CreateDbHomeWithDbSystemIdFromDatabaseDetails.
defined_tags Gets the defined_tags of this CreateDbHomeBase.
display_name Gets the display_name of this CreateDbHomeBase.
freeform_tags Gets the freeform_tags of this CreateDbHomeBase.
source Gets the source of this CreateDbHomeBase.

Methods

__init__(**kwargs) Initializes a new CreateDbHomeWithDbSystemIdFromDatabaseDetails 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_DATABASE = 'DATABASE'
SOURCE_DB_BACKUP = 'DB_BACKUP'
SOURCE_NONE = 'NONE'
SOURCE_VM_CLUSTER_NEW = 'VM_CLUSTER_NEW'
__init__(**kwargs)

Initializes a new CreateDbHomeWithDbSystemIdFromDatabaseDetails object with values from keyword arguments. The default value of the source attribute of this class is DATABASE and it should not be changed. 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 CreateDbHomeWithDbSystemIdFromDatabaseDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateDbHomeWithDbSystemIdFromDatabaseDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateDbHomeWithDbSystemIdFromDatabaseDetails.
  • source (str) – The value to assign to the source property of this CreateDbHomeWithDbSystemIdFromDatabaseDetails. Allowed values for this property are: “NONE”, “DB_BACKUP”, “DATABASE”, “VM_CLUSTER_NEW”
  • db_system_id (str) – The value to assign to the db_system_id property of this CreateDbHomeWithDbSystemIdFromDatabaseDetails.
  • database (CreateDatabaseFromAnotherDatabaseDetails) – The value to assign to the database property of this CreateDbHomeWithDbSystemIdFromDatabaseDetails.
database

[Required] Gets the database of this CreateDbHomeWithDbSystemIdFromDatabaseDetails.

Returns:The database of this CreateDbHomeWithDbSystemIdFromDatabaseDetails.
Return type:CreateDatabaseFromAnotherDatabaseDetails
db_system_id

[Required] Gets the db_system_id of this CreateDbHomeWithDbSystemIdFromDatabaseDetails. The OCID of the DB system.

Returns:The db_system_id of this CreateDbHomeWithDbSystemIdFromDatabaseDetails.
Return type:str
defined_tags

Gets the defined_tags of this CreateDbHomeBase. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Returns:The defined_tags of this CreateDbHomeBase.
Return type:dict(str, dict(str, object))
display_name

Gets the display_name of this CreateDbHomeBase. The user-provided name of the Database Home.

Returns:The display_name of this CreateDbHomeBase.
Return type:str
freeform_tags

Gets the freeform_tags of this CreateDbHomeBase. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {“Department”: “Finance”}

Returns:The freeform_tags of this CreateDbHomeBase.
Return type:dict(str, 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

Gets the source of this CreateDbHomeBase. The source of database: NONE for creating a new database. DB_BACKUP for creating a new database by restoring from a database backup.

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

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