'Clones a volume from snapshot.'

def clone_volume(self, snapshot_uuid, volume_path):

    request = {'typeId': (('com.tintri.api.rest.' + self.api_version) + '.dto.domain.beans.cinder.CinderCloneSpec'), 'destinationPaths': [TClient._remove_prefix(volume_path, tintri_path)], 'tintriSnapshotUuid': snapshot_uuid}
    url = (('/' + self.api_version) + '/cinder/clone')
    r = self.post(url, request)
    if ((r.status_code != 200) and (r.status_code != 204)):
        msg = (_('Failed    to    clone    volume    from    snapshot    %s.') % snapshot_uuid)
        raise exception.VolumeDriverException(msg)
