CreateMySqlDatabaseConnectorDetails¶
-
class
oci.database_management.models.CreateMySqlDatabaseConnectorDetails(**kwargs)¶ Bases:
objectCreate Details of external database connector.
Attributes
CREDENTIAL_TYPE_MYSQL_EXTERNAL_NON_SSL_CREDENTIALSA constant which can be used with the credential_type property of a CreateMySqlDatabaseConnectorDetails. CREDENTIAL_TYPE_MYSQL_EXTERNAL_SOCKET_CREDENTIALSA constant which can be used with the credential_type property of a CreateMySqlDatabaseConnectorDetails. CREDENTIAL_TYPE_MYSQL_EXTERNAL_SSL_CREDENTIALSA constant which can be used with the credential_type property of a CreateMySqlDatabaseConnectorDetails. NETWORK_PROTOCOL_SOCKETSA constant which can be used with the network_protocol property of a CreateMySqlDatabaseConnectorDetails. NETWORK_PROTOCOL_TCPA constant which can be used with the network_protocol property of a CreateMySqlDatabaseConnectorDetails. NETWORK_PROTOCOL_TCPSA constant which can be used with the network_protocol property of a CreateMySqlDatabaseConnectorDetails. credential_type[Required] Gets the credential_type of this CreateMySqlDatabaseConnectorDetails. display_name[Required] Gets the display_name of this CreateMySqlDatabaseConnectorDetails. external_database_id[Required] Gets the external_database_id of this CreateMySqlDatabaseConnectorDetails. host_name[Required] Gets the host_name of this CreateMySqlDatabaseConnectorDetails. macs_agent_id[Required] Gets the macs_agent_id of this CreateMySqlDatabaseConnectorDetails. network_protocol[Required] Gets the network_protocol of this CreateMySqlDatabaseConnectorDetails. port[Required] Gets the port of this CreateMySqlDatabaseConnectorDetails. ssl_secret_id[Required] Gets the ssl_secret_id of this CreateMySqlDatabaseConnectorDetails. Methods
__init__(**kwargs)Initializes a new CreateMySqlDatabaseConnectorDetails object with values from keyword arguments. -
CREDENTIAL_TYPE_MYSQL_EXTERNAL_NON_SSL_CREDENTIALS= 'MYSQL_EXTERNAL_NON_SSL_CREDENTIALS'¶ A constant which can be used with the credential_type property of a CreateMySqlDatabaseConnectorDetails. This constant has a value of “MYSQL_EXTERNAL_NON_SSL_CREDENTIALS”
-
CREDENTIAL_TYPE_MYSQL_EXTERNAL_SOCKET_CREDENTIALS= 'MYSQL_EXTERNAL_SOCKET_CREDENTIALS'¶ A constant which can be used with the credential_type property of a CreateMySqlDatabaseConnectorDetails. This constant has a value of “MYSQL_EXTERNAL_SOCKET_CREDENTIALS”
-
CREDENTIAL_TYPE_MYSQL_EXTERNAL_SSL_CREDENTIALS= 'MYSQL_EXTERNAL_SSL_CREDENTIALS'¶ A constant which can be used with the credential_type property of a CreateMySqlDatabaseConnectorDetails. This constant has a value of “MYSQL_EXTERNAL_SSL_CREDENTIALS”
-
NETWORK_PROTOCOL_SOCKETS= 'SOCKETS'¶ A constant which can be used with the network_protocol property of a CreateMySqlDatabaseConnectorDetails. This constant has a value of “SOCKETS”
-
NETWORK_PROTOCOL_TCP= 'TCP'¶ A constant which can be used with the network_protocol property of a CreateMySqlDatabaseConnectorDetails. This constant has a value of “TCP”
-
NETWORK_PROTOCOL_TCPS= 'TCPS'¶ A constant which can be used with the network_protocol property of a CreateMySqlDatabaseConnectorDetails. This constant has a value of “TCPS”
-
__init__(**kwargs)¶ Initializes a new CreateMySqlDatabaseConnectorDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - display_name (str) – The value to assign to the display_name property of this CreateMySqlDatabaseConnectorDetails.
- macs_agent_id (str) – The value to assign to the macs_agent_id property of this CreateMySqlDatabaseConnectorDetails.
- host_name (str) – The value to assign to the host_name property of this CreateMySqlDatabaseConnectorDetails.
- port (int) – The value to assign to the port property of this CreateMySqlDatabaseConnectorDetails.
- network_protocol (str) – The value to assign to the network_protocol property of this CreateMySqlDatabaseConnectorDetails. Allowed values for this property are: “TCP”, “TCPS”, “SOCKETS”
- external_database_id (str) – The value to assign to the external_database_id property of this CreateMySqlDatabaseConnectorDetails.
- credential_type (str) – The value to assign to the credential_type property of this CreateMySqlDatabaseConnectorDetails. Allowed values for this property are: “MYSQL_EXTERNAL_NON_SSL_CREDENTIALS”, “MYSQL_EXTERNAL_SSL_CREDENTIALS”, “MYSQL_EXTERNAL_SOCKET_CREDENTIALS”
- ssl_secret_id (str) – The value to assign to the ssl_secret_id property of this CreateMySqlDatabaseConnectorDetails.
-
credential_type¶ [Required] Gets the credential_type of this CreateMySqlDatabaseConnectorDetails. Type of the credential.
Allowed values for this property are: “MYSQL_EXTERNAL_NON_SSL_CREDENTIALS”, “MYSQL_EXTERNAL_SSL_CREDENTIALS”, “MYSQL_EXTERNAL_SOCKET_CREDENTIALS”
Returns: The credential_type of this CreateMySqlDatabaseConnectorDetails. Return type: str
-
display_name¶ [Required] Gets the display_name of this CreateMySqlDatabaseConnectorDetails. External MySQL Database Connector Name.
Returns: The display_name of this CreateMySqlDatabaseConnectorDetails. Return type: str
-
external_database_id¶ [Required] Gets the external_database_id of this CreateMySqlDatabaseConnectorDetails. OCID of MySQL Database resource.
Returns: The external_database_id of this CreateMySqlDatabaseConnectorDetails. Return type: str
-
host_name¶ [Required] Gets the host_name of this CreateMySqlDatabaseConnectorDetails. Host name for Connector.
Returns: The host_name of this CreateMySqlDatabaseConnectorDetails. Return type: str
-
macs_agent_id¶ [Required] Gets the macs_agent_id of this CreateMySqlDatabaseConnectorDetails. Agent Id of the MACS agent.
Returns: The macs_agent_id of this CreateMySqlDatabaseConnectorDetails. Return type: str
-
network_protocol¶ [Required] Gets the network_protocol of this CreateMySqlDatabaseConnectorDetails. Protocol to be used to connect to External MySQL Database; TCP, TCP with SSL or Socket.
Allowed values for this property are: “TCP”, “TCPS”, “SOCKETS”
Returns: The network_protocol of this CreateMySqlDatabaseConnectorDetails. Return type: str
-
port¶ [Required] Gets the port of this CreateMySqlDatabaseConnectorDetails. Port number to connect to External MySQL Database.
Returns: The port of this CreateMySqlDatabaseConnectorDetails. Return type: int
-
ssl_secret_id¶ [Required] Gets the ssl_secret_id of this CreateMySqlDatabaseConnectorDetails. If using existing SSL secret to connect, OCID for the secret resource.
Returns: The ssl_secret_id of this CreateMySqlDatabaseConnectorDetails. Return type: str
-