'set lun properties.'

def set_lun_props(self, pool, project, lun, **kargs):

    svc = ((((('/api/storage/v1/pools/' + pool) + '/projects/') + project) + '/luns/') + lun)
    if (kargs is None):
        return
    if ('schema' in kargs):
        kargs.update(kargs.pop('schema'))
    ret = self.rclient.put(svc, kargs)
    if (ret.status != restclient.Status.ACCEPTED):
        exception_msg = (_('Error    Setting    props    Props:    %(props)s    on    Volume:    %(lun)s    of    Pool:    %(pool)s    Project:    %(project)s        Return    code:    %(ret.status)d    Message:    %(ret.data)s.') % {'props': kargs, 'lun': lun, 'pool': pool, 'project': project, 'ret.status': ret.status, 'ret.data': ret.data})
        LOG.error(exception_msg)
        raise exception.VolumeBackendAPIException(data=exception_msg)
