'Make the call to the SOAP api.'

def _call_api(self, operation, params):

    if (operation == 'snapshot_detail'):
        return self.client.snapshotDetail(params['snapshot_id'])
    if (operation == 'restore_detail'):
        return self.client.restoreDetail(params['restore_id'])
    if (operation == 'clone_detail'):
        return self.client.cloneDetail(params['clone_id'], params['vol_name'])
    else:
        msg = (_('Unknown    operation    %s.'), operation)
        LOG.error(msg)
        raise exception.VolumeBackendAPIException(data=msg)
