CreateMysqlConnectionDetails¶
-
class
oci.database_migration.models.
CreateMysqlConnectionDetails
(**kwargs)¶ Bases:
oci.database_migration.models.create_connection_details.CreateConnectionDetails
The information about a new MySQL Connection.
Attributes
CONNECTION_TYPE_MYSQL
str(object=’’) -> str CONNECTION_TYPE_ORACLE
str(object=’’) -> str additional_attributes
Gets the additional_attributes of this CreateMysqlConnectionDetails. compartment_id
[Required] Gets the compartment_id of this CreateConnectionDetails. connection_type
[Required] Gets the connection_type of this CreateConnectionDetails. database_name
[Required] Gets the database_name of this CreateMysqlConnectionDetails. db_system_id
Gets the db_system_id of this CreateMysqlConnectionDetails. 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. host
Gets the host of this CreateMysqlConnectionDetails. 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. port
Gets the port of this CreateMysqlConnectionDetails. replication_password
Gets the replication_password of this CreateConnectionDetails. replication_username
Gets the replication_username of this CreateConnectionDetails. security_protocol
[Required] Gets the security_protocol of this CreateMysqlConnectionDetails. ssl_ca
Gets the ssl_ca of this CreateMysqlConnectionDetails. ssl_cert
Gets the ssl_cert of this CreateMysqlConnectionDetails. ssl_crl
Gets the ssl_crl of this CreateMysqlConnectionDetails. ssl_key
Gets the ssl_key of this CreateMysqlConnectionDetails. ssl_mode
Gets the ssl_mode of this CreateMysqlConnectionDetails. subnet_id
Gets the subnet_id of this CreateConnectionDetails. technology_type
[Required] Gets the technology_type of this CreateMysqlConnectionDetails. username
[Required] Gets the username of this CreateConnectionDetails. vault_id
[Required] Gets the vault_id of this CreateConnectionDetails. Methods
__init__
(**kwargs)Initializes a new CreateMysqlConnectionDetails 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'¶
-
CONNECTION_TYPE_ORACLE
= 'ORACLE'¶
-
__init__
(**kwargs)¶ Initializes a new CreateMysqlConnectionDetails object with values from keyword arguments. The default value of the
connection_type
attribute of this class isMYSQL
and it should not be changed. 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 CreateMysqlConnectionDetails. Allowed values for this property are: “MYSQL”, “ORACLE”
- display_name (str) – The value to assign to the display_name property of this CreateMysqlConnectionDetails.
- description (str) – The value to assign to the description property of this CreateMysqlConnectionDetails.
- compartment_id (str) – The value to assign to the compartment_id property of this CreateMysqlConnectionDetails.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateMysqlConnectionDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateMysqlConnectionDetails.
- vault_id (str) – The value to assign to the vault_id property of this CreateMysqlConnectionDetails.
- key_id (str) – The value to assign to the key_id property of this CreateMysqlConnectionDetails.
- subnet_id (str) – The value to assign to the subnet_id property of this CreateMysqlConnectionDetails.
- nsg_ids (list[str]) – The value to assign to the nsg_ids property of this CreateMysqlConnectionDetails.
- username (str) – The value to assign to the username property of this CreateMysqlConnectionDetails.
- password (str) – The value to assign to the password property of this CreateMysqlConnectionDetails.
- replication_username (str) – The value to assign to the replication_username property of this CreateMysqlConnectionDetails.
- replication_password (str) – The value to assign to the replication_password property of this CreateMysqlConnectionDetails.
- technology_type (str) – The value to assign to the technology_type property of this CreateMysqlConnectionDetails.
- host (str) – The value to assign to the host property of this CreateMysqlConnectionDetails.
- port (int) – The value to assign to the port property of this CreateMysqlConnectionDetails.
- database_name (str) – The value to assign to the database_name property of this CreateMysqlConnectionDetails.
- security_protocol (str) – The value to assign to the security_protocol property of this CreateMysqlConnectionDetails.
- ssl_mode (str) – The value to assign to the ssl_mode property of this CreateMysqlConnectionDetails.
- ssl_ca (str) – The value to assign to the ssl_ca property of this CreateMysqlConnectionDetails.
- ssl_crl (str) – The value to assign to the ssl_crl property of this CreateMysqlConnectionDetails.
- ssl_cert (str) – The value to assign to the ssl_cert property of this CreateMysqlConnectionDetails.
- ssl_key (str) – The value to assign to the ssl_key property of this CreateMysqlConnectionDetails.
- additional_attributes (list[oci.database_migration.models.NameValuePair]) – The value to assign to the additional_attributes property of this CreateMysqlConnectionDetails.
- db_system_id (str) – The value to assign to the db_system_id property of this CreateMysqlConnectionDetails.
-
additional_attributes
¶ Gets the additional_attributes of this CreateMysqlConnectionDetails. An array of name-value pair attribute entries.
Returns: The additional_attributes of this CreateMysqlConnectionDetails. Return type: list[oci.database_migration.models.NameValuePair]
-
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
-
database_name
¶ [Required] Gets the database_name of this CreateMysqlConnectionDetails. The name of the database being referenced.
Returns: The database_name of this CreateMysqlConnectionDetails. Return type: str
-
db_system_id
¶ Gets the db_system_id of this CreateMysqlConnectionDetails. The OCID of the database system being referenced.
Returns: The db_system_id of this CreateMysqlConnectionDetails. Return type: str
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
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.
-
host
¶ Gets the host of this CreateMysqlConnectionDetails. The IP Address of the host.
Returns: The host of this CreateMysqlConnectionDetails. Return type: str
-
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
-
port
¶ Gets the port of this CreateMysqlConnectionDetails. The port to be used for the connection.
Returns: The port of this CreateMysqlConnectionDetails. Return type: int
-
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
-
security_protocol
¶ [Required] Gets the security_protocol of this CreateMysqlConnectionDetails. Security Type for MySQL.
Returns: The security_protocol of this CreateMysqlConnectionDetails. Return type: str
-
ssl_ca
¶ Gets the ssl_ca of this CreateMysqlConnectionDetails. Database Certificate - The base64 encoded content of mysql.pem file containing the server public key (for 1 and 2-way SSL).
Returns: The ssl_ca of this CreateMysqlConnectionDetails. Return type: str
-
ssl_cert
¶ Gets the ssl_cert of this CreateMysqlConnectionDetails. Client Certificate - The base64 encoded content of client-cert.pem file containing the client public key (for 2-way SSL).
Returns: The ssl_cert of this CreateMysqlConnectionDetails. Return type: str
-
ssl_crl
¶ Gets the ssl_crl of this CreateMysqlConnectionDetails. Certificates revoked by certificate authorities (CA). Server certificate must not be on this list (for 1 and 2-way SSL). Note: This is an optional and that too only applicable if TLS/MTLS option is selected.
Returns: The ssl_crl of this CreateMysqlConnectionDetails. Return type: str
-
ssl_key
¶ Gets the ssl_key of this CreateMysqlConnectionDetails. Client Key - The client-key.pem containing the client private key (for 2-way SSL).
Returns: The ssl_key of this CreateMysqlConnectionDetails. Return type: str
-
ssl_mode
¶ Gets the ssl_mode of this CreateMysqlConnectionDetails. SSL modes for MySQL.
Returns: The ssl_mode of this CreateMysqlConnectionDetails. 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
-
technology_type
¶ [Required] Gets the technology_type of this CreateMysqlConnectionDetails. The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL HeatWave Database Service
Returns: The technology_type of this CreateMysqlConnectionDetails. 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
-