'Update an instance in this cell.'

def instance_update_from_api(self, message, instance, expected_vm_state, expected_task_state, admin_state_reset):

    if (not admin_state_reset):
        instance.obj_reset_changes(['vm_state', 'task_state'])
    instance.obj_reset_changes(['metadata', 'system_metadata'])
    with instance.skip_cells_sync():
        instance.save(expected_vm_state=expected_vm_state, expected_task_state=expected_task_state)
