CreateConnectionDetails

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

Bases: object

The information about a new Connection.

Attributes

CONNECTION_TYPE_MYSQL A constant which can be used with the connection_type property of a CreateConnectionDetails.
CONNECTION_TYPE_ORACLE A constant which can be used with the connection_type property of a CreateConnectionDetails.
compartment_id [Required] Gets the compartment_id of this CreateConnectionDetails.
connection_type [Required] Gets the connection_type of this CreateConnectionDetails.
defined_tags Gets the defined_tags of this CreateConnectionDetails.
description Gets the description of this CreateConnectionDetails.
display_name [Required] Gets the display_name of this CreateConnectionDetails.
freeform_tags Gets the freeform_tags of this CreateConnectionDetails.
key_id [Required] Gets the key_id of this CreateConnectionDetails.
nsg_ids Gets the nsg_ids of this CreateConnectionDetails.
password [Required] Gets the password of this CreateConnectionDetails.
replication_password Gets the replication_password of this CreateConnectionDetails.
replication_username Gets the replication_username of this CreateConnectionDetails.
subnet_id Gets the subnet_id of this CreateConnectionDetails.
username [Required] Gets the username of this CreateConnectionDetails.
vault_id [Required] Gets the vault_id of this CreateConnectionDetails.

Methods

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

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

CONNECTION_TYPE_ORACLE = 'ORACLE'

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

__init__(**kwargs)

Initializes a new CreateConnectionDetails 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:
  • connection_type (str) – The value to assign to the connection_type property of this CreateConnectionDetails. Allowed values for this property are: “MYSQL”, “ORACLE”
  • display_name (str) – The value to assign to the display_name property of this CreateConnectionDetails.
  • description (str) – The value to assign to the description property of this CreateConnectionDetails.
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateConnectionDetails.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateConnectionDetails.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateConnectionDetails.
  • vault_id (str) – The value to assign to the vault_id property of this CreateConnectionDetails.
  • key_id (str) – The value to assign to the key_id property of this CreateConnectionDetails.
  • subnet_id (str) – The value to assign to the subnet_id property of this CreateConnectionDetails.
  • nsg_ids (list[str]) – The value to assign to the nsg_ids property of this CreateConnectionDetails.
  • username (str) – The value to assign to the username property of this CreateConnectionDetails.
  • password (str) – The value to assign to the password property of this CreateConnectionDetails.
  • replication_username (str) – The value to assign to the replication_username property of this CreateConnectionDetails.
  • replication_password (str) – The value to assign to the replication_password property of this CreateConnectionDetails.
compartment_id

[Required] Gets the compartment_id of this CreateConnectionDetails. The OCID of the compartment.

Returns:The compartment_id of this CreateConnectionDetails.
Return type:str
connection_type

[Required] Gets the connection_type of this CreateConnectionDetails. Defines the type of connection. For example, ORACLE.

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

Returns:The connection_type of this CreateConnectionDetails.
Return type:str
defined_tags

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

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

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

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

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

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

key_id

[Required] Gets the key_id of this CreateConnectionDetails. The OCID of the key used in cryptographic operations.

Returns:The key_id of this CreateConnectionDetails.
Return type:str
nsg_ids

Gets the nsg_ids of this CreateConnectionDetails. An array of Network Security Group OCIDs used to define network access for Connections.

Returns:The nsg_ids of this CreateConnectionDetails.
Return type:list[str]
password

[Required] Gets the password of this CreateConnectionDetails. The password (credential) used when creating or updating this resource.

Returns:The password of this CreateConnectionDetails.
Return type:str
replication_password

Gets the replication_password of this CreateConnectionDetails. The password (credential) used when creating or updating this resource.

Returns:The replication_password of this CreateConnectionDetails.
Return type:str
replication_username

Gets the replication_username of this CreateConnectionDetails. The username (credential) used when creating or updating this resource.

Returns:The replication_username of this CreateConnectionDetails.
Return type:str
subnet_id

Gets the subnet_id of this CreateConnectionDetails. OCI resource ID.

Returns:The subnet_id of this CreateConnectionDetails.
Return type:str
username

[Required] Gets the username of this CreateConnectionDetails. The username (credential) used when creating or updating this resource.

Returns:The username of this CreateConnectionDetails.
Return type:str
vault_id

[Required] Gets the vault_id of this CreateConnectionDetails. OCI resource ID.

Returns:The vault_id of this CreateConnectionDetails.
Return type:str