CreateMigrationDetails

class oci.database_migration.models.CreateMigrationDetails(**kwargs)

Bases: object

Common Migration details.

Attributes

DATABASE_COMBINATION_MYSQL A constant which can be used with the database_combination property of a CreateMigrationDetails.
DATABASE_COMBINATION_ORACLE A constant which can be used with the database_combination property of a CreateMigrationDetails.
TYPE_OFFLINE A constant which can be used with the type property of a CreateMigrationDetails.
TYPE_ONLINE A constant which can be used with the type property of a CreateMigrationDetails.
compartment_id [Required] Gets the compartment_id of this CreateMigrationDetails.
database_combination [Required] Gets the database_combination of this CreateMigrationDetails.
defined_tags Gets the defined_tags of this CreateMigrationDetails.
description Gets the description of this CreateMigrationDetails.
display_name Gets the display_name of this CreateMigrationDetails.
freeform_tags Gets the freeform_tags of this CreateMigrationDetails.
source_database_connection_id [Required] Gets the source_database_connection_id of this CreateMigrationDetails.
target_database_connection_id [Required] Gets the target_database_connection_id of this CreateMigrationDetails.
type [Required] Gets the type of this CreateMigrationDetails.

Methods

__init__(**kwargs) Initializes a new CreateMigrationDetails 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.
DATABASE_COMBINATION_MYSQL = 'MYSQL'

A constant which can be used with the database_combination property of a CreateMigrationDetails. This constant has a value of “MYSQL”

DATABASE_COMBINATION_ORACLE = 'ORACLE'

A constant which can be used with the database_combination property of a CreateMigrationDetails. This constant has a value of “ORACLE”

TYPE_OFFLINE = 'OFFLINE'

A constant which can be used with the type property of a CreateMigrationDetails. This constant has a value of “OFFLINE”

TYPE_ONLINE = 'ONLINE'

A constant which can be used with the type property of a CreateMigrationDetails. This constant has a value of “ONLINE”

__init__(**kwargs)

Initializes a new CreateMigrationDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • description (str) – The value to assign to the description property of this CreateMigrationDetails.
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateMigrationDetails.
  • database_combination (str) – The value to assign to the database_combination property of this CreateMigrationDetails. Allowed values for this property are: “MYSQL”, “ORACLE”
  • type (str) – The value to assign to the type property of this CreateMigrationDetails. Allowed values for this property are: “ONLINE”, “OFFLINE”
  • display_name (str) – The value to assign to the display_name property of this CreateMigrationDetails.
  • source_database_connection_id (str) – The value to assign to the source_database_connection_id property of this CreateMigrationDetails.
  • target_database_connection_id (str) – The value to assign to the target_database_connection_id property of this CreateMigrationDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateMigrationDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateMigrationDetails.
compartment_id

[Required] Gets the compartment_id of this CreateMigrationDetails. The OCID of the resource being referenced.

Returns:The compartment_id of this CreateMigrationDetails.
Return type:str
database_combination

[Required] Gets the database_combination of this CreateMigrationDetails. The combination of source and target databases participating in a migration. Example: ORACLE means the migration is meant for migrating Oracle source and target databases.

Allowed values for this property are: “MYSQL”, “ORACLE”

Returns:The database_combination of this CreateMigrationDetails.
Return type:str
defined_tags

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

Gets the description of this CreateMigrationDetails. A user-friendly description. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns:The description of this CreateMigrationDetails.
Return type:str
display_name

Gets the display_name of this CreateMigrationDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

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

Gets the freeform_tags of this CreateMigrationDetails. 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 CreateMigrationDetails.
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_database_connection_id

[Required] Gets the source_database_connection_id of this CreateMigrationDetails. The OCID of the resource being referenced.

Returns:The source_database_connection_id of this CreateMigrationDetails.
Return type:str
target_database_connection_id

[Required] Gets the target_database_connection_id of this CreateMigrationDetails. The OCID of the resource being referenced.

Returns:The target_database_connection_id of this CreateMigrationDetails.
Return type:str
type

[Required] Gets the type of this CreateMigrationDetails. The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a migration. This method uses Oracle GoldenGate for replication.

Allowed values for this property are: “ONLINE”, “OFFLINE”

Returns:The type of this CreateMigrationDetails.
Return type:str