'Set the API version.'

def set_api_version(self, major, minor):

    try:
        self._api_major_version = int(major)
        self._api_minor_version = int(minor)
        self._api_version = ((six.text_type(major) + '.') + six.text_type(minor))
    except ValueError:
        raise ValueError('Major    and    minor    versions    must    be    integers')
    self._refresh_conn = True
