def _image_member_update(context, memb_ref, values, session=None):
    _drop_protected_attrs(models.ImageMember, values)
    values["deleted"] = False
    values.setdefault('can_share', False)
    memb_ref.update(values)
    memb_ref.save(session=session)
    return memb_ref
Update an instance at the top level cell.
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/registry/db/api.py/_image_member_update--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/cells/messaging.py/MessageRunner.instance_update_at_top