CreateMysqlConnectionDetails¶
- class oci.database_migration.models.CreateMysqlConnectionDetails(**kwargs)¶
Bases:
CreateConnectionDetailsThe information about a new MySQL Connection.
Attributes:
A constant which can be used with the connection_type property of a CreateConnectionDetails.
A constant which can be used with the connection_type property of a CreateConnectionDetails.
Gets the additional_attributes of this CreateMysqlConnectionDetails.
[Required] Gets the compartment_id of this CreateConnectionDetails.
[Required] Gets the connection_type of this CreateConnectionDetails.
[Required] Gets the database_name of this CreateMysqlConnectionDetails.
Gets the db_system_id of this CreateMysqlConnectionDetails.
Gets the defined_tags of this CreateConnectionDetails.
Gets the description of this CreateConnectionDetails.
[Required] Gets the display_name of this CreateConnectionDetails.
Gets the freeform_tags of this CreateConnectionDetails.
Gets the host of this CreateMysqlConnectionDetails.
[Required] Gets the key_id of this CreateConnectionDetails.
Gets the nsg_ids of this CreateConnectionDetails.
[Required] Gets the password of this CreateConnectionDetails.
Gets the port of this CreateMysqlConnectionDetails.
Gets the replication_password of this CreateConnectionDetails.
Gets the replication_username of this CreateConnectionDetails.
[Required] Gets the security_protocol of this CreateMysqlConnectionDetails.
Gets the ssl_ca of this CreateMysqlConnectionDetails.
Gets the ssl_cert of this CreateMysqlConnectionDetails.
Gets the ssl_crl of this CreateMysqlConnectionDetails.
Gets the ssl_key of this CreateMysqlConnectionDetails.
Gets the ssl_mode of this CreateMysqlConnectionDetails.
Gets the subnet_id of this CreateConnectionDetails.
[Required] Gets the technology_type of this CreateMysqlConnectionDetails.
[Required] Gets the username of this CreateConnectionDetails.
[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'¶
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 CreateMysqlConnectionDetails object with values from keyword arguments. The default value of the
connection_typeattribute of this class isMYSQLand 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.
- property 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
- property 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
- property 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
- property 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
- property 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
- property 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))
- property 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
- property 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
- property 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.
- property host¶
Gets the host of this CreateMysqlConnectionDetails. The IP Address of the host.
- Returns
The host of this CreateMysqlConnectionDetails.
- Return type
str
- property 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
- property 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]
- property 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
- property port¶
Gets the port of this CreateMysqlConnectionDetails. The port to be used for the connection.
- Returns
The port of this CreateMysqlConnectionDetails.
- Return type
int
- property 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
- property 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
- property security_protocol¶
[Required] Gets the security_protocol of this CreateMysqlConnectionDetails. Security Type for MySQL.
- Returns
The security_protocol of this CreateMysqlConnectionDetails.
- Return type
str
- property 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
- property 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
- property 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
- property 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
- property ssl_mode¶
Gets the ssl_mode of this CreateMysqlConnectionDetails. SSL modes for MySQL.
- Returns
The ssl_mode of this CreateMysqlConnectionDetails.
- Return type
str
- property subnet_id¶
Gets the subnet_id of this CreateConnectionDetails. OCI resource ID.
- Returns
The subnet_id of this CreateConnectionDetails.
- Return type
str
- property 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
- property 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
- property vault_id¶
[Required] Gets the vault_id of this CreateConnectionDetails. OCI resource ID.
- Returns
The vault_id of this CreateConnectionDetails.
- Return type
str