def IdSet(self, value):
    if not isinstance(value, (int, long)):
      raise TypeError('ID must be an integer.')
    self.UpdateFromKey(ndb.Key(self.__class__, value))
Setter to be used for default id EndpointsAliasProperty.
dataset/ETHPy150Open GoogleDeveloperExperts/experts-app-backend/endpoints_proto_datastore/ndb/model.py/EndpointsModel.IdSet