 +            ]
 +        ]);
 +
-+        $response = $this->datastore->datasets->commit($this->datasetId, $request);
++        $response = $this->datastore->projects->commit($this->datasetId, $request);
 +
 +        // return the number of updated rows
 +        return 1;

+
+        $request = new \Google_Service_Datastore_RunQueryRequest();
+        $request->setQuery($query);
+        $response = $this->datastore->datasets->
+            runQuery($this->datasetId, $request);
+
+        /** @var \Google_Service_Datastore_QueryResultBatch $batch */

+            'keys' => [$key]
+        ]);
+
+        $response = $this->datastore->projects->
+            lookup($this->datasetId, $request);
+
+        /** @var \Google_Service_Datastore_QueryResultBatch $batch */
