Class Google_Service_Drive_Realtime_Resource
The "realtime" collection of methods. Typical usage is:
$driveService = new Google_Service_Drive(...);
$realtime = $driveService->realtime;
-
Google_Service_Resource
-
Google_Service_Drive_Realtime_Resource
Located at Drive.php
Methods summary
public
|
#
get( string $fileId, array $optParams = array() )
Exports the contents of the Realtime API data model associated with this file
as JSON. (realtime.get)
Exports the contents of the Realtime API data model associated with this file
as JSON. (realtime.get)
Parameters
- $fileId
string $fileId The ID of the file that the Realtime API data model is associated with.
- $optParams
array $optParams Optional 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.
|
public
|
#
update( string $fileId, array $optParams = array() )
Overwrites the Realtime API data model associated with this file with the
provided JSON data model. (realtime.update)
Overwrites the Realtime API data model associated with this file with the
provided JSON data model. (realtime.update)
Parameters
- $fileId
string $fileId The ID of the file that the Realtime API data model is associated with.
- $optParams
array $optParams Optional 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.
|