

@classmethod
def _allocate_ids(cls, size=None, max=None, parent=None, **ctx_options):
    'Allocates a range of key IDs for this model class.\n\n    Args:\n      size: Number of IDs to allocate. Either size or max can be specified,\n        not both.\n      max: Maximum ID to allocate. Either size or max can be specified,\n        not both.\n      parent: Parent key for which the IDs will be allocated.\n      **ctx_options: Context options.\n\n    Returns:\n      A tuple with (start, end) for the allocated range, inclusive.\n    '
    return cls._allocate_ids_async(size=size, max=max, parent=parent, **ctx_options).get_result()

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py Model._allocate_ids/original