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

The "changes" collection of methods. More...

Inheritance diagram for Google_Service_Drive_Changes_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 get ($changeId, $optParams=array())
 Gets a specific change.
 
 listChanges ($optParams=array())
 Lists the changes for a user.
 
 watch (Google_Service_Drive_Channel $postBody, $optParams=array())
 Subscribe to changes for a user.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "changes" collection of methods.

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

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_Changes_Resource::get ( $changeId,
$optParams = array() )

Gets a specific change.

(changes.get)

Parameters
string$changeIdThe ID of the change.
array$optParamsOptional parameters.
Return values
Google_Service_Drive_Change

◆ listChanges()

Google_Service_Drive_Changes_Resource::listChanges ( $optParams = array())

Lists the changes for a user.

(changes.listChanges)

Parameters
array$optParamsOptional parameters.

@opt_param bool includeSubscribed Whether to include public files the user has opened and shared files. When set to false, the list only includes owned files plus any shared or public files the user has explicitly added to a folder they own. @opt_param bool includeDeleted Whether to include deleted items. @opt_param int maxResults Maximum number of changes to return. @opt_param string pageToken Page token for changes. @opt_param string spaces A comma-separated list of spaces to query. Supported values are 'drive', 'appDataFolder' and 'photos'. @opt_param string startChangeId Change ID to start listing changes from.

Return values
Google_Service_Drive_ChangeList

◆ watch()

Google_Service_Drive_Changes_Resource::watch ( Google_Service_Drive_Channel $postBody,
$optParams = array() )

Subscribe to changes for a user.

(changes.watch)

Parameters
Google_Channel$postBody
array$optParamsOptional parameters.

@opt_param bool includeSubscribed Whether to include public files the user has opened and shared files. When set to false, the list only includes owned files plus any shared or public files the user has explicitly added to a folder they own. @opt_param bool includeDeleted Whether to include deleted items. @opt_param int maxResults Maximum number of changes to return. @opt_param string pageToken Page token for changes. @opt_param string spaces A comma-separated list of spaces to query. Supported values are 'drive', 'appDataFolder' and 'photos'. @opt_param string startChangeId Change ID to start listing changes from.

Return values
Google_Service_Drive_Channel

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