# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .connection_info import ConnectionInfo


class OracleConnectionInfo(ConnectionInfo):
    """Information for connecting to Oracle source.

    :param user_name: User name
    :type user_name: str
    :param password: <PASSWORD>.
    :type password: str
    :param type: Constant filled by server.
    :type type: str
    :param server_name: Name of the server
    :type server_name: str
    :param port: Port for Server
    :type port: int
    :param connection_mode: Connection mode to be used. If ConnectionString
     mode is used, then customConnectionString should be provided, else it
     should not be set. Possible values include: 'ConnectionString', 'Standard'
    :type connection_mode: str or
     ~azure.mgmt.datamigration.models.OracleConnectionMode
    :param instance: Instance name (SID)
    :type instance: str
    :param custom_connection_string: Connection string
    :type custom_connection_string: str
    """

    _validation = {
        'type': {'required': True},
    }

    _attribute_map = {
        'user_name': {'key': 'userName', 'type': 'str'},
        'password': {'key': 'password', 'type': 'str'},
        'type': {'key': 'type', 'type': 'str'},
        'server_name': {'key': 'serverName', 'type': 'str'},
        'port': {'key': 'port', 'type': 'int'},
        'connection_mode': {'key': 'connectionMode', 'type': 'str'},
        'instance': {'key': 'instance', 'type': 'str'},
        'custom_connection_string': {'key': 'customConnectionString', 'type': 'str'},
    }

    def __init__(self, user_name=None, password=None, server_name=None, port=None, connection_mode=None, instance=None, custom_connection_string=None):
        super(OracleConnectionInfo, self).__init__(user_name=user_name, password=password)
        self.server_name = server_name
        self.port = port
        self.connection_mode = connection_mode
        self.instance = instance
        self.custom_connection_string = custom_connection_string
        self.type = 'OracleConnectionInfo'

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .connection_info import ConnectionInfo


class OracleConnectionInfo(ConnectionInfo):
    """Information for connecting to Oracle source.

    :param user_name: User name
    :type user_name: str
    :param password: <PASSWORD>.
    :type password: str
    :param type: Constant filled by server.
    :type type: str
    :param server_name: Name of the server
    :type server_name: str
    :param port: Port for Server
    :type port: int
    :param connection_mode: Connection mode to be used. If ConnectionString
     mode is used, then customConnectionString should be provided, else it
     should not be set. Possible values include: 'ConnectionString', 'Standard'
    :type connection_mode: str or
     ~azure.mgmt.datamigration.models.OracleConnectionMode
    :param instance: Instance name (SID)
    :type instance: str
    :param custom_connection_string: Connection string
    :type custom_connection_string: str
    """

    _validation = {
        'type': {'required': True},
    }

    _attribute_map = {
        'user_name': {'key': 'userName', 'type': 'str'},
        'password': {'key': 'password', 'type': 'str'},
        'type': {'key': 'type', 'type': 'str'},
        'server_name': {'key': 'serverName', 'type': 'str'},
        'port': {'key': 'port', 'type': 'int'},
        'connection_mode': {'key': 'connectionMode', 'type': 'str'},
        'instance': {'key': 'instance', 'type': 'str'},
        'custom_connection_string': {'key': 'customConnectionString', 'type': 'str'},
    }

    def __init__(self, user_name=None, password=None, server_name=None, port=None, connection_mode=None, instance=None, custom_connection_string=None):
        super(OracleConnectionInfo, self).__init__(user_name=user_name, password=password)
        self.server_name = server_name
        self.port = port
        self.connection_mode = connection_mode
        self.instance = instance
        self.custom_connection_string = custom_connection_string
        self.type = 'OracleConnectionInfo'

# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- Information for connecting to Oracle source.      :param user_name: User name     :type user_name: str     :param password: <PASSWORD>.     :type password: str     :param type: Constant filled by server.     :type type: str     :param server_name: Name of the server     :type server_name: str     :param port: Port for Server     :type port: int     :param connection_mode: Connection mode to be used. If ConnectionString      mode is used, then customConnectionString should be provided, else it      should not be set. Possible values include: 'ConnectionString', 'Standard'     :type connection_mode: str or      ~azure.mgmt.datamigration.models.OracleConnectionMode     :param instance: Instance name (SID)     :type instance: str     :param custom_connection_string: Connection string     :type custom_connection_string: str