def _FixUpAliasProperties(cls):
    for attr_name in dir(cls):
      prop = getattr(cls, attr_name, None)
      if isinstance(prop, EndpointsAliasProperty):
        if attr_name.startswith('_'):
          raise AttributeError('EndpointsAliasProperty %s cannot begin with an '
                               'underscore character.' % (attr_name,))
        if attr_name in cls._properties:
          raise AttributeError(PROPERTY_COLLISION_TEMPLATE % (attr_name,))
        prop._FixUp(attr_name)
        cls._alias_properties[prop._name] = prop
Updates the alias properties map and verifies each alias property.
dataset/ETHPy150Open GoogleDeveloperExperts/experts-app-backend/endpoints_proto_datastore/ndb/model.py/EndpointsMetaModel._FixUpAliasProperties