CreateAutonomousDatabaseCloneDetails

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

Bases: oci.database.models.create_autonomous_database_base.CreateAutonomousDatabaseBase

Details to create an Oracle Autonomous Database by cloning an existing Autonomous Database.

CLONE_TYPE_FULL = 'FULL'

A constant which can be used with the clone_type property of a CreateAutonomousDatabaseCloneDetails. This constant has a value of "FULL"

CLONE_TYPE_METADATA = 'METADATA'

A constant which can be used with the clone_type property of a CreateAutonomousDatabaseCloneDetails. This constant has a value of "METADATA"

DB_WORKLOAD_DW = 'DW'
DB_WORKLOAD_OLTP = 'OLTP'
LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'
LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'
SOURCE_DATABASE = 'DATABASE'
SOURCE_NONE = 'NONE'
__init__(**kwargs)

Initializes a new CreateAutonomousDatabaseCloneDetails 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:
  • compartment_id (str) -- The value to assign to the compartment_id property of this CreateAutonomousDatabaseCloneDetails.
  • db_name (str) -- The value to assign to the db_name property of this CreateAutonomousDatabaseCloneDetails.
  • cpu_core_count (int) -- The value to assign to the cpu_core_count property of this CreateAutonomousDatabaseCloneDetails.
  • db_workload (str) -- The value to assign to the db_workload property of this CreateAutonomousDatabaseCloneDetails. Allowed values for this property are: "OLTP", "DW"
  • data_storage_size_in_tbs (int) -- The value to assign to the data_storage_size_in_tbs property of this CreateAutonomousDatabaseCloneDetails.
  • is_free_tier (bool) -- The value to assign to the is_free_tier property of this CreateAutonomousDatabaseCloneDetails.
  • admin_password (str) -- The value to assign to the admin_password property of this CreateAutonomousDatabaseCloneDetails.
  • display_name (str) -- The value to assign to the display_name property of this CreateAutonomousDatabaseCloneDetails.
  • license_model (str) -- The value to assign to the license_model property of this CreateAutonomousDatabaseCloneDetails. Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE"
  • is_preview_version_with_service_terms_accepted (bool) -- The value to assign to the is_preview_version_with_service_terms_accepted property of this CreateAutonomousDatabaseCloneDetails.
  • is_auto_scaling_enabled (bool) -- The value to assign to the is_auto_scaling_enabled property of this CreateAutonomousDatabaseCloneDetails.
  • is_dedicated (bool) -- The value to assign to the is_dedicated property of this CreateAutonomousDatabaseCloneDetails.
  • autonomous_container_database_id (str) -- The value to assign to the autonomous_container_database_id property of this CreateAutonomousDatabaseCloneDetails.
  • freeform_tags (dict(str, str)) -- The value to assign to the freeform_tags property of this CreateAutonomousDatabaseCloneDetails.
  • defined_tags (dict(str, dict(str, object))) -- The value to assign to the defined_tags property of this CreateAutonomousDatabaseCloneDetails.
  • source (str) -- The value to assign to the source property of this CreateAutonomousDatabaseCloneDetails. Allowed values for this property are: "NONE", "DATABASE"
  • source_id (str) -- The value to assign to the source_id property of this CreateAutonomousDatabaseCloneDetails.
  • clone_type (str) -- The value to assign to the clone_type property of this CreateAutonomousDatabaseCloneDetails. Allowed values for this property are: "FULL", "METADATA"
admin_password

[Required] Gets the admin_password of this CreateAutonomousDatabaseBase. The password must be between 12 and 30 characters long, and must contain at least 1 uppercase, 1 lowercase, and 1 numeric character. It cannot contain the double quote symbol (") or the username "admin", regardless of casing.

Returns:The admin_password of this CreateAutonomousDatabaseBase.
Return type:str
autonomous_container_database_id

Gets the autonomous_container_database_id of this CreateAutonomousDatabaseBase. The Autonomous Container Database OCID.

Returns:The autonomous_container_database_id of this CreateAutonomousDatabaseBase.
Return type:str
clone_type

[Required] Gets the clone_type of this CreateAutonomousDatabaseCloneDetails. The Autonomous Database clone type.

Allowed values for this property are: "FULL", "METADATA"

Returns:The clone_type of this CreateAutonomousDatabaseCloneDetails.
Return type:str
compartment_id

[Required] Gets the compartment_id of this CreateAutonomousDatabaseBase. The OCID of the compartment of the autonomous database.

Returns:The compartment_id of this CreateAutonomousDatabaseBase.
Return type:str
cpu_core_count

[Required] Gets the cpu_core_count of this CreateAutonomousDatabaseBase. The number of CPU Cores to be made available to the database.

Returns:The cpu_core_count of this CreateAutonomousDatabaseBase.
Return type:int
data_storage_size_in_tbs

[Required] Gets the data_storage_size_in_tbs of this CreateAutonomousDatabaseBase. The size, in terabytes, of the data volume that will be created and attached to the database. This storage can later be scaled up if needed.

Returns:The data_storage_size_in_tbs of this CreateAutonomousDatabaseBase.
Return type:int
db_name

[Required] Gets the db_name of this CreateAutonomousDatabaseBase. The database name. The name must begin with an alphabetic character and can contain a maximum of 14 alphanumeric characters. Special characters are not permitted. The database name must be unique in the tenancy.

Returns:The db_name of this CreateAutonomousDatabaseBase.
Return type:str
db_workload

Gets the db_workload of this CreateAutonomousDatabaseBase. The autonomous database workload type. OLTP indicates an Autonomous Transaction Processing database and DW indicates an Autonomous Data Warehouse. The default is OLTP.

Allowed values for this property are: "OLTP", "DW"

Returns:The db_workload of this CreateAutonomousDatabaseBase.
Return type:str
defined_tags

Gets the defined_tags of this CreateAutonomousDatabaseBase. 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 CreateAutonomousDatabaseBase.
Return type:dict(str, dict(str, object))
display_name

Gets the display_name of this CreateAutonomousDatabaseBase. The user-friendly name for the Autonomous Database. The name does not have to be unique.

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

Gets the freeform_tags of this CreateAutonomousDatabaseBase. 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 CreateAutonomousDatabaseBase.
Return type:dict(str, str)
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.

is_auto_scaling_enabled

Gets the is_auto_scaling_enabled of this CreateAutonomousDatabaseBase. Indicates if auto scaling is enabled for the Autonomous Database CPU core count. The default value is false. Note that auto scaling is available for serverless deployments only.

Returns:The is_auto_scaling_enabled of this CreateAutonomousDatabaseBase.
Return type:bool
is_dedicated

Gets the is_dedicated of this CreateAutonomousDatabaseBase. True if the database uses the dedicated deployment option.

Returns:The is_dedicated of this CreateAutonomousDatabaseBase.
Return type:bool
is_free_tier

Gets the is_free_tier of this CreateAutonomousDatabaseBase. Indicates if this is an Always Free resource. The default value is false. Note that Always Free Autonomous Databases have 1 CPU and 20GB memory. For Always Free databases, memory and CPU cannot be scaled.

Returns:The is_free_tier of this CreateAutonomousDatabaseBase.
Return type:bool
is_preview_version_with_service_terms_accepted

Gets the is_preview_version_with_service_terms_accepted of this CreateAutonomousDatabaseBase. If set to true, indicates that an Autonomous Database preview version is being provisioned, and that the preview version's terms of service have been accepted. Note that preview version software is only available for serverless deployments.

Returns:The is_preview_version_with_service_terms_accepted of this CreateAutonomousDatabaseBase.
Return type:bool
license_model

Gets the license_model of this CreateAutonomousDatabaseBase. The Oracle license model that applies to the Oracle Autonomous Database. The default for Autonomous Database using the shared deployment] is BRING_YOUR_OWN_LICENSE. Note that when provisioning an Autonomous Database using the [dedicated deployment option, this attribute must be null because the attribute is already set on Autonomous Exadata Infrastructure level.

Allowed values for this property are: "LICENSE_INCLUDED", "BRING_YOUR_OWN_LICENSE"

Returns:The license_model of this CreateAutonomousDatabaseBase.
Return type:str
source

Gets the source of this CreateAutonomousDatabaseBase. The source of the database: Use NONE for creating a new Autonomous Database. Use DATABASE for creating a new Autonomous Database by cloning an existing Autonomous Database.

Allowed values for this property are: "NONE", "DATABASE"

Returns:The source of this CreateAutonomousDatabaseBase.
Return type:str
source_id

[Required] Gets the source_id of this CreateAutonomousDatabaseCloneDetails. The OCID of the source Autonomous Database that you will clone to create a new Autonomous Database.

Returns:The source_id of this CreateAutonomousDatabaseCloneDetails.
Return type:str