'Initializes a connection to Tintri server.'

def __init__(self, hostname, username, password, api_version=default_api_version):

    self.api_url = (('https://' + hostname) + '/api')
    self.api_version = api_version
    self.session_id = self.login(username, password)
    self.headers = {'content-type': 'application/json', 'cookie': ('JSESSIONID=' + self.session_id)}
