Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Service_Datastore_Datasets_Resource Class Reference

The "datasets" collection of methods. More...

Inheritance diagram for Google_Service_Datastore_Datasets_Resource:
Google_Service_Resource

Public Member Functions

 allocateIds ($datasetId, Google_Service_Datastore_AllocateIdsRequest $postBody, $optParams=array())
 Allocate IDs for incomplete keys (useful for referencing an entity before it is inserted).
 
 beginTransaction ($datasetId, Google_Service_Datastore_BeginTransactionRequest $postBody, $optParams=array())
 Begin a new transaction.
 
 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 commit ($datasetId, Google_Service_Datastore_CommitRequest $postBody, $optParams=array())
 Commit a transaction, optionally creating, deleting or modifying some entities.
 
 lookup ($datasetId, Google_Service_Datastore_LookupRequest $postBody, $optParams=array())
 Look up some entities by key.
 
 rollback ($datasetId, Google_Service_Datastore_RollbackRequest $postBody, $optParams=array())
 Roll back a transaction.
 
 runQuery ($datasetId, Google_Service_Datastore_RunQueryRequest $postBody, $optParams=array())
 Query for entities.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "datasets" collection of methods.

Typical usage is: $datastoreService = new Google_Service_Datastore(...); $datasets = $datastoreService->datasets;

Member Function Documentation

◆ allocateIds()

Google_Service_Datastore_Datasets_Resource::allocateIds ( $datasetId,
Google_Service_Datastore_AllocateIdsRequest $postBody,
$optParams = array() )

Allocate IDs for incomplete keys (useful for referencing an entity before it is inserted).

(datasets.allocateIds)

Parameters
string$datasetIdIdentifies the dataset.
Google_AllocateIdsRequest$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Datastore_AllocateIdsResponse

◆ beginTransaction()

Google_Service_Datastore_Datasets_Resource::beginTransaction ( $datasetId,
Google_Service_Datastore_BeginTransactionRequest $postBody,
$optParams = array() )

Begin a new transaction.

(datasets.beginTransaction)

Parameters
string$datasetIdIdentifies the dataset.
Google_BeginTransactionRequest$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Datastore_BeginTransactionResponse

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ commit()

Google_Service_Datastore_Datasets_Resource::commit ( $datasetId,
Google_Service_Datastore_CommitRequest $postBody,
$optParams = array() )

Commit a transaction, optionally creating, deleting or modifying some entities.

(datasets.commit)

Parameters
string$datasetIdIdentifies the dataset.
Google_CommitRequest$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Datastore_CommitResponse

◆ lookup()

Google_Service_Datastore_Datasets_Resource::lookup ( $datasetId,
Google_Service_Datastore_LookupRequest $postBody,
$optParams = array() )

Look up some entities by key.

(datasets.lookup)

Parameters
string$datasetIdIdentifies the dataset.
Google_LookupRequest$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Datastore_LookupResponse

◆ rollback()

Google_Service_Datastore_Datasets_Resource::rollback ( $datasetId,
Google_Service_Datastore_RollbackRequest $postBody,
$optParams = array() )

Roll back a transaction.

(datasets.rollback)

Parameters
string$datasetIdIdentifies the dataset.
Google_RollbackRequest$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Datastore_RollbackResponse

◆ runQuery()

Google_Service_Datastore_Datasets_Resource::runQuery ( $datasetId,
Google_Service_Datastore_RunQueryRequest $postBody,
$optParams = array() )

Query for entities.

(datasets.runQuery)

Parameters
string$datasetIdIdentifies the dataset.
Google_RunQueryRequest$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Datastore_RunQueryResponse

The documentation for this class was generated from the following file: