CreateConnectDescriptor

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

Bases: object

Connect Descriptor details. Required for Manual and UserManagerOci connection types. If a Private Endpoint was specified for the Connection, the host should contain a valid IP address.

Methods

__init__(**kwargs) Initializes a new CreateConnectDescriptor object with values from keyword arguments.

Attributes

connect_string Gets the connect_string of this CreateConnectDescriptor.
database_service_name Gets the database_service_name of this CreateConnectDescriptor.
host Gets the host of this CreateConnectDescriptor.
port Gets the port of this CreateConnectDescriptor.
__init__(**kwargs)

Initializes a new CreateConnectDescriptor object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • host (str) – The value to assign to the host property of this CreateConnectDescriptor.
  • port (int) – The value to assign to the port property of this CreateConnectDescriptor.
  • database_service_name (str) – The value to assign to the database_service_name property of this CreateConnectDescriptor.
  • connect_string (str) – The value to assign to the connect_string property of this CreateConnectDescriptor.
connect_string

Gets the connect_string of this CreateConnectDescriptor. Connect String. Required if no host, port nor databaseServiceName were specified. If a Private Endpoint was specified in the Connection, the host entry should be a valid IP address. Supported formats: Easy connect: <host>:<port>/<db_service_name> Long format: (description= (address=(port=<port>)(host=<host>))(connect_data=(service_name=<db_service_name>)))

Returns:The connect_string of this CreateConnectDescriptor.
Return type:str
database_service_name

Gets the database_service_name of this CreateConnectDescriptor. Database service name. Required if no connectString was specified.

Returns:The database_service_name of this CreateConnectDescriptor.
Return type:str
host

Gets the host of this CreateConnectDescriptor. Host or IP address of the connect descriptor. Required if no connectString was specified.

Returns:The host of this CreateConnectDescriptor.
Return type:str
port

Gets the port of this CreateConnectDescriptor. Port of the connect descriptor. Required if no connectString was specified.

Returns:The port of this CreateConnectDescriptor.
Return type:int