Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
Google_Service_Drive_Parents_Resource Class Reference

The "parents" collection of methods. More...

Inheritance diagram for Google_Service_Drive_Parents_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 delete ($fileId, $parentId, $optParams=array())
 Removes a parent from a file.
 
 get ($fileId, $parentId, $optParams=array())
 Gets a specific parent reference.
 
 insert ($fileId, Google_Service_Drive_ParentReference $postBody, $optParams=array())
 Adds a parent folder for a file.
 
 listParents ($fileId, $optParams=array())
 Lists a file's parents.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "parents" collection of methods.

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

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

◆ delete()

Google_Service_Drive_Parents_Resource::delete ( $fileId,
$parentId,
$optParams = array() )

Removes a parent from a file.

(parents.delete)

Parameters
string$fileIdThe ID of the file.
string$parentIdThe ID of the parent.
array$optParamsOptional parameters.

◆ get()

Google_Service_Drive_Parents_Resource::get ( $fileId,
$parentId,
$optParams = array() )

Gets a specific parent reference.

(parents.get)

Parameters
string$fileIdThe ID of the file.
string$parentIdThe ID of the parent.
array$optParamsOptional parameters.
Return values
Google_Service_Drive_ParentReference

◆ insert()

Google_Service_Drive_Parents_Resource::insert ( $fileId,
Google_Service_Drive_ParentReference $postBody,
$optParams = array() )

Adds a parent folder for a file.

(parents.insert)

Parameters
string$fileIdThe ID of the file.
Google_ParentReference$postBody
array$optParamsOptional parameters.
Return values
Google_Service_Drive_ParentReference

◆ listParents()

Google_Service_Drive_Parents_Resource::listParents ( $fileId,
$optParams = array() )

Lists a file's parents.

(parents.listParents)

Parameters
string$fileIdThe ID of the file.
array$optParamsOptional parameters.
Return values
Google_Service_Drive_ParentList

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