Rename a version Resource on a project.

        :param project: ID or key of the project to get versions from
        :type project: str
        :param old_name: old name of the version to rename
        :type old_name: str
        :param new_name: new name of the version to rename
        :type new_name: str
        :rtype: None

def rename_version(self, project, old_name, new_name):
        """Rename a version Resource on a project.

        :param project: ID or key of the project to get versions from
        :type project: str
        :param old_name: old name of the version to rename
        :type old_name: str
        :param new_name: new name of the version to rename
        :type new_name: str
        :rtype: None
        """
        version = self.get_project_version_by_name(project, old_name)
        if version:
            version.update(name=new_name)