<filename>copyxnat/config/server_params.py
# coding=utf-8

"""Encapsulates parameters used to access an XNAT server"""


class XnatServerParams:
    """Encapsulates parameters used to access an XNAT server"""

    def __init__(self, host, user, pwd=<PASSWORD>, rsync_user=None, insecure=False,
                 authenticate=True):
        if host and '://' not in host:
            host = 'https://' + host
        self.host = host
        self.user = user
        self.pwd = <PASSWORD>
        self.rsync_user = rsync_user
        self.insecure = insecure
        self.authenticate = authenticate

<filename>copyxnat/config/server_params.py
# coding=utf-8

"""Encapsulates parameters used to access an XNAT server"""


class XnatServerParams:
    """Encapsulates parameters used to access an XNAT server"""

    def __init__(self, host, user, pwd=<PASSWORD>, rsync_user=None, insecure=False,
                 authenticate=True):
        if host and '://' not in host:
            host = 'https://' + host
        self.host = host
        self.user = user
        self.pwd = <PASSWORD>
        self.rsync_user = rsync_user
        self.insecure = insecure
        self.authenticate = authenticate

# coding=utf-8 Encapsulates parameters used to access an XNAT server Encapsulates parameters used to access an XNAT server