"""
interface to the IaaS service from QingCloud.
"""

from qingcloud.iaas.connection import APIConnection


def connect_to_zone(zone, access_key_id, secret_access_key, host,port,protocol,lowercase=True):
    """ Connect to one of zones in qingcloud by access key.
    """
    # if lowercase:
    #     zone = zone.strip().lower()
    return APIConnection(access_key_id, secret_access_key, zone,host,port,protocol)
