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

The "realtime" collection of methods. More...

Inheritance diagram for Google_Service_Drive_Realtime_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 get ($fileId, $optParams=array())
 Exports the contents of the Realtime API data model associated with this file as JSON.
 
 update ($fileId, $optParams=array())
 Overwrites the Realtime API data model associated with this file with the provided JSON data model.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "realtime" collection of methods.

Typical usage is: $driveService = new Google_Service_Drive(...); $realtime = $driveService->realtime;

Member Function Documentation

◆ 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

◆ get()

Google_Service_Drive_Realtime_Resource::get ( $fileId,
$optParams = array() )

Exports the contents of the Realtime API data model associated with this file as JSON.

(realtime.get)

Parameters
string$fileIdThe ID of the file that the Realtime API data model is associated with.
array$optParamsOptional parameters.

@opt_param int revision The revision of the Realtime API data model to export. Revisions start at 1 (the initial empty data model) and are incremented with each change. If this parameter is excluded, the most recent data model will be returned.

◆ update()

Google_Service_Drive_Realtime_Resource::update ( $fileId,
$optParams = array() )

Overwrites the Realtime API data model associated with this file with the provided JSON data model.

(realtime.update)

Parameters
string$fileIdThe ID of the file that the Realtime API data model is associated with.
array$optParamsOptional parameters.

@opt_param string baseRevision The revision of the model to diff the uploaded model against. If set, the uploaded model is diffed against the provided revision and those differences are merged with any changes made to the model after the provided revision. If not set, the uploaded model replaces the current model on the server.


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