def _drop_protected_attrs(model_class, values):
    for attr in model_class.__protected_attributes__:
        if attr in values:
            del values[attr]
Removed protected attributes from values dictionary using the models
dataset/ETHPy150Open rcbops/glance-buildpackage/glance/registry/db/api.py/_drop_protected_attrs