ConnectionDetails¶
-
class
oci.opsi.models.
ConnectionDetails
(**kwargs)¶ Bases:
object
Connection details to connect to the database. HostName, protocol, and port should be specified.
Attributes
PROTOCOL_TCP
A constant which can be used with the protocol property of a ConnectionDetails. PROTOCOL_TCPS
A constant which can be used with the protocol property of a ConnectionDetails. host_name
[Required] Gets the host_name of this ConnectionDetails. port
[Required] Gets the port of this ConnectionDetails. protocol
[Required] Gets the protocol of this ConnectionDetails. service_name
[Required] Gets the service_name of this ConnectionDetails. Methods
__init__
(**kwargs)Initializes a new ConnectionDetails object with values from keyword arguments. -
PROTOCOL_TCP
= 'TCP'¶ A constant which can be used with the protocol property of a ConnectionDetails. This constant has a value of “TCP”
-
PROTOCOL_TCPS
= 'TCPS'¶ A constant which can be used with the protocol property of a ConnectionDetails. This constant has a value of “TCPS”
-
__init__
(**kwargs)¶ Initializes a new ConnectionDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - host_name (str) – The value to assign to the host_name property of this ConnectionDetails.
- protocol (str) – The value to assign to the protocol property of this ConnectionDetails. Allowed values for this property are: “TCP”, “TCPS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- port (int) – The value to assign to the port property of this ConnectionDetails.
- service_name (str) – The value to assign to the service_name property of this ConnectionDetails.
-
host_name
¶ [Required] Gets the host_name of this ConnectionDetails. Name of the listener host that will be used to create the connect string to the database.
Returns: The host_name of this ConnectionDetails. Return type: str
-
port
¶ [Required] Gets the port of this ConnectionDetails. Listener port number used for connection requests.
Returns: The port of this ConnectionDetails. Return type: int
-
protocol
¶ [Required] Gets the protocol of this ConnectionDetails. Protocol used for connection requests.
Allowed values for this property are: “TCP”, “TCPS”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The protocol of this ConnectionDetails. Return type: str
-
service_name
¶ [Required] Gets the service_name of this ConnectionDetails. Database service name used for connection requests.
Returns: The service_name of this ConnectionDetails. Return type: str
-