'Allocate IDs for incomplete keys.
see https://cloud.google.com/datastore/docs/apis/v1beta2/datasets/allocateIds
:param partialKeys: a list of partial keys
:return: a list of full keys.'

def allocate_ids(self, partialKeys):

    resp = self.connection.datasets().allocateIds(datasetId=self.dataset_id, body={'keys': partialKeys}).execute()
    return resp['keys']
