'Create a version in a project and return a Resource for it.
:param name: name of the version to create
:param project: key of the project to create the version in
:param description: a description of the version
:param releaseDate: the release date assigned to the version
:param startDate: The start date for the version'

@translate_resource_args
def create_version(self, name, project, description=None, releaseDate=None, startDate=None, archived=False, released=False):

    data = {u'name': name, u'project': project, u'archived': archived, u'released': released}
    if (description is not None):
        data[u'description'] = description
    if (releaseDate is not None):
        data[u'releaseDate'] = releaseDate
    if (startDate is not None):
        data[u'startDate'] = startDate
    url = self._get_url(u'version')
    r = self._session.post(url, data=json.dumps(data))
    time.sleep(1)
    version = Version(self._options, self._session, raw=json_loads(r))
    return version
