allocateIds() публичный Метод

Keys MUST be in an incomplete state (i.e. including a kind but not an ID or name in their final pathElement). This method will execute a service request.
См. также: https://cloud.google.com/datastore/reference/rest/v1/projects/allocateIds allocateIds
public allocateIds ( array $keys, array $options = [] ) : Key[]
$keys array The incomplete keys.
$options array [optional] Configuration Options.
Результат Key[]
 /**
  * Allocate available IDs to a set of keys
  *
  * Keys MUST be in an incomplete state (i.e. including a kind but not an ID
  * or name in their final pathElement).
  *
  * This method will execute a service request.
  *
  * Example:
  * ```
  * $keys = [
  *     $datastore->key('Person'),
  *     $datastore->key('Person')
  * ];
  *
  * $keysWithAllocatedIds = $datastore->allocateIds($keys);
  * ```
  *
  * @see https://cloud.google.com/datastore/reference/rest/v1/projects/allocateIds allocateIds
  *
  * @param Key[] $keys The incomplete keys.
  * @param array $options [optional] Configuration options.
  * @return Key[]
  */
 public function allocateIds(array $keys, array $options = [])
 {
     return $this->operation->allocateIds($keys, $options);
 }