Projects
class Projects extends Resource (View source)
The "projects" collection of methods.
Typical usage is:
$datastoreService = new Google\Service\Datastore(...);
$projects = $datastoreService->projects;
Methods
Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted. (projects.allocateIds)
Begins a new transaction. (projects.beginTransaction)
Commits a transaction, optionally creating, deleting or modifying some entities. (projects.commit)
Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.
Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore. (projects.import)
Looks up entities by key. (projects.lookup)
Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.
Rolls back a transaction. (projects.rollback)
Runs an aggregation query. (projects.runAggregationQuery)
Queries for entities. (projects.runQuery)
Details
AllocateIdsResponse
allocateIds(string $projectId, AllocateIdsRequest $postBody, array $optParams = [])
Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted. (projects.allocateIds)
BeginTransactionResponse
beginTransaction(string $projectId, BeginTransactionRequest $postBody, array $optParams = [])
Begins a new transaction. (projects.beginTransaction)
CommitResponse
commit(string $projectId, CommitRequest $postBody, array $optParams = [])
Commits a transaction, optionally creating, deleting or modifying some entities. (projects.commit)
GoogleLongrunningOperation
export(string $projectId, GoogleDatastoreAdminV1ExportEntitiesRequest $postBody, array $optParams = [])
Exports a copy of all or a subset of entities from Google Cloud Datastore to another storage system, such as Google Cloud Storage. Recent updates to entities may not be reflected in the export. The export occurs in the background and its progress can be monitored and managed via the Operation resource that is created. The output of an export may only be used once the associated operation is done. If an export operation is cancelled before completion it may leave partial data behind in Google Cloud Storage.
(projects.export)
GoogleLongrunningOperation
import(string $projectId, GoogleDatastoreAdminV1ImportEntitiesRequest $postBody, array $optParams = [])
Imports entities into Google Cloud Datastore. Existing entities with the same key are overwritten. The import occurs in the background and its progress can be monitored and managed via the Operation resource that is created. If an ImportEntities operation is cancelled, it is possible that a subset of the data has already been imported to Cloud Datastore. (projects.import)
LookupResponse
lookup(string $projectId, LookupRequest $postBody, array $optParams = [])
Looks up entities by key. (projects.lookup)
ReserveIdsResponse
reserveIds(string $projectId, ReserveIdsRequest $postBody, array $optParams = [])
Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.
(projects.reserveIds)
RollbackResponse
rollback(string $projectId, RollbackRequest $postBody, array $optParams = [])
Rolls back a transaction. (projects.rollback)
RunAggregationQueryResponse
runAggregationQuery(string $projectId, RunAggregationQueryRequest $postBody, array $optParams = [])
Runs an aggregation query. (projects.runAggregationQuery)
RunQueryResponse
runQuery(string $projectId, RunQueryRequest $postBody, array $optParams = [])
Queries for entities. (projects.runQuery)