* Copyright 2010 Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* Service definition for Datastore (v1beta2).
* API for accessing Google Cloud Datastore.</p>
* For more information about this service, see the API
* <a href="https://developers.google.com/datastore/" target="_blank">Documentation</a>
class Google_Service_Datastore extends UDP_Google_Service
/** View and manage your data across Google Cloud Platform services. */
"https://www.googleapis.com/auth/cloud-platform";
/** View and manage your Google Cloud Datastore data. */
"https://www.googleapis.com/auth/datastore";
/** View your email address. */
"https://www.googleapis.com/auth/userinfo.email";
* Constructs the internal representation of the Datastore service.
* @param Google_Client $client
public function __construct(UDP_Google_Client $client)
parent::__construct($client);
$this->servicePath = 'datastore/v1beta2/datasets/';
$this->version = 'v1beta2';
$this->serviceName = 'datastore';
$this->datasets = new Google_Service_Datastore_Datasets_Resource(
'path' => '{datasetId}/allocateIds',
),'beginTransaction' => array(
'path' => '{datasetId}/beginTransaction',
'path' => '{datasetId}/commit',
'path' => '{datasetId}/lookup',
'path' => '{datasetId}/rollback',
'path' => '{datasetId}/runQuery',
* The "datasets" collection of methods.
* $datastoreService = new Google_Service_Datastore(...);
* $datasets = $datastoreService->datasets;
class Google_Service_Datastore_Datasets_Resource extends UDP_Google_Service_Resource
* Allocate IDs for incomplete keys (useful for referencing an entity before it
* is inserted). (datasets.allocateIds)
* @param string $datasetId Identifies the dataset.
* @param Google_AllocateIdsRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Datastore_AllocateIdsResponse
public function allocateIds($datasetId, Google_Service_Datastore_AllocateIdsRequest $postBody, $optParams = array())
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('allocateIds', array($params), "Google_Service_Datastore_AllocateIdsResponse");
* Begin a new transaction. (datasets.beginTransaction)
* @param string $datasetId Identifies the dataset.
* @param Google_BeginTransactionRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Datastore_BeginTransactionResponse
public function beginTransaction($datasetId, Google_Service_Datastore_BeginTransactionRequest $postBody, $optParams = array())
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('beginTransaction', array($params), "Google_Service_Datastore_BeginTransactionResponse");
* Commit a transaction, optionally creating, deleting or modifying some
* entities. (datasets.commit)
* @param string $datasetId Identifies the dataset.
* @param Google_CommitRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Datastore_CommitResponse
public function commit($datasetId, Google_Service_Datastore_CommitRequest $postBody, $optParams = array())
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('commit', array($params), "Google_Service_Datastore_CommitResponse");
* Look up some entities by key. (datasets.lookup)
* @param string $datasetId Identifies the dataset.
* @param Google_LookupRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Datastore_LookupResponse
public function lookup($datasetId, Google_Service_Datastore_LookupRequest $postBody, $optParams = array())
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('lookup', array($params), "Google_Service_Datastore_LookupResponse");
* Roll back a transaction. (datasets.rollback)
* @param string $datasetId Identifies the dataset.
* @param Google_RollbackRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Datastore_RollbackResponse
public function rollback($datasetId, Google_Service_Datastore_RollbackRequest $postBody, $optParams = array())
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('rollback', array($params), "Google_Service_Datastore_RollbackResponse");
* Query for entities. (datasets.runQuery)
* @param string $datasetId Identifies the dataset.
* @param Google_RunQueryRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Datastore_RunQueryResponse
public function runQuery($datasetId, Google_Service_Datastore_RunQueryRequest $postBody, $optParams = array())
$params = array('datasetId' => $datasetId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('runQuery', array($params), "Google_Service_Datastore_RunQueryResponse");
class Google_Service_Datastore_AllocateIdsRequest extends Google_Collection
protected $collection_key = 'keys';
protected $internal_gapi_mappings = array(
protected $keysType = 'Google_Service_Datastore_Key';
protected $keysDataType = 'array';
public function setKeys($keys)
public function getKeys()
class Google_Service_Datastore_AllocateIdsResponse extends Google_Collection
protected $collection_key = 'keys';
protected $internal_gapi_mappings = array(
protected $headerType = 'Google_Service_Datastore_ResponseHeader';
protected $headerDataType = '';
protected $keysType = 'Google_Service_Datastore_Key';
protected $keysDataType = 'array';
public function setHeader(Google_Service_Datastore_ResponseHeader $header)
public function getHeader()
public function setKeys($keys)
public function getKeys()
class Google_Service_Datastore_BeginTransactionRequest extends Google_Model
protected $internal_gapi_mappings = array(
public function setIsolationLevel($isolationLevel)
$this->isolationLevel = $isolationLevel;
public function getIsolationLevel()
return $this->isolationLevel;
class Google_Service_Datastore_BeginTransactionResponse extends Google_Model
protected $internal_gapi_mappings = array(
protected $headerType = 'Google_Service_Datastore_ResponseHeader';
protected $headerDataType = '';
public function setHeader(Google_Service_Datastore_ResponseHeader $header)
public function getHeader()
public function setTransaction($transaction)
$this->transaction = $transaction;
public function getTransaction()
return $this->transaction;
class Google_Service_Datastore_CommitRequest extends Google_Model
protected $internal_gapi_mappings = array(
protected $mutationType = 'Google_Service_Datastore_Mutation';
protected $mutationDataType = '';
public function setIgnoreReadOnly($ignoreReadOnly)
$this->ignoreReadOnly = $ignoreReadOnly;
public function getIgnoreReadOnly()
return $this->ignoreReadOnly;
public function setMode($mode)
public function getMode()
public function setMutation(Google_Service_Datastore_Mutation $mutation)
$this->mutation = $mutation;
public function getMutation()
public function setTransaction($transaction)
$this->transaction = $transaction;
public function getTransaction()
return $this->transaction;
class Google_Service_Datastore_CommitResponse extends Google_Model
protected $internal_gapi_mappings = array(
protected $headerType = 'Google_Service_Datastore_ResponseHeader';
protected $headerDataType = '';
protected $mutationResultType = 'Google_Service_Datastore_MutationResult';
protected $mutationResultDataType = '';
public function setHeader(Google_Service_Datastore_ResponseHeader $header)
public function getHeader()
public function setMutationResult(Google_Service_Datastore_MutationResult $mutationResult)
$this->mutationResult = $mutationResult;
public function getMutationResult()
return $this->mutationResult;
class Google_Service_Datastore_CompositeFilter extends Google_Collection
protected $collection_key = 'filters';
protected $internal_gapi_mappings = array(
protected $filtersType = 'Google_Service_Datastore_Filter';
protected $filtersDataType = 'array';
public function setFilters($filters)
$this->filters = $filters;
public function getFilters()
public function setOperator($operator)
$this->operator = $operator;
public function getOperator()
class Google_Service_Datastore_Entity extends Google_Model
protected $internal_gapi_mappings = array(
protected $keyType = 'Google_Service_Datastore_Key';
protected $keyDataType = '';
protected $propertiesType = 'Google_Service_Datastore_Property';
protected $propertiesDataType = 'map';
public function setKey(Google_Service_Datastore_Key $key)
public function setProperties($properties)
$this->properties = $properties;
public function getProperties()
return $this->properties;
class Google_Service_Datastore_EntityProperties extends Google_Model
class Google_Service_Datastore_EntityResult extends Google_Model
protected $internal_gapi_mappings = array(
protected $entityType = 'Google_Service_Datastore_Entity';
protected $entityDataType = '';
public function setEntity(Google_Service_Datastore_Entity $entity)
public function getEntity()
class Google_Service_Datastore_Filter extends Google_Model
protected $internal_gapi_mappings = array(
protected $compositeFilterType = 'Google_Service_Datastore_CompositeFilter';
protected $compositeFilterDataType = '';
protected $propertyFilterType = 'Google_Service_Datastore_PropertyFilter';
protected $propertyFilterDataType = '';
public function setCompositeFilter(Google_Service_Datastore_CompositeFilter $compositeFilter)
$this->compositeFilter = $compositeFilter;
public function getCompositeFilter()
return $this->compositeFilter;
public function setPropertyFilter(Google_Service_Datastore_PropertyFilter $propertyFilter)