'Update an instance in the database using kwargs as value.'

def _instance_update(self, context, instance, **kwargs):

    for (k, v) in kwargs.items():
        setattr(instance, k, v)
    instance.save()
    self._update_resource_tracker(context, instance)
