The "parents" collection of methods.
More...
|
| 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.
|
|
|
| convertToArrayAndStripNulls ($o) |
|
The "parents" collection of methods.
Typical usage is: $driveService = new Google_Service_Drive(...); $parents = $driveService->parents;
◆ 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
-
◆ delete()
Google_Service_Drive_Parents_Resource::delete |
( |
| $fileId, |
|
|
| $parentId, |
|
|
| $optParams = array() ) |
Removes a parent from a file.
(parents.delete)
- Parameters
-
string | $fileId | The ID of the file. |
string | $parentId | The ID of the parent. |
array | $optParams | Optional parameters. |
◆ get()
Google_Service_Drive_Parents_Resource::get |
( |
| $fileId, |
|
|
| $parentId, |
|
|
| $optParams = array() ) |
Gets a specific parent reference.
(parents.get)
- Parameters
-
string | $fileId | The ID of the file. |
string | $parentId | The ID of the parent. |
array | $optParams | Optional parameters. |
- Return values
-
◆ insert()
Adds a parent folder for a file.
(parents.insert)
- Parameters
-
string | $fileId | The ID of the file. |
Google_ParentReference | $postBody | |
array | $optParams | Optional parameters. |
- Return values
-
◆ listParents()
Google_Service_Drive_Parents_Resource::listParents |
( |
| $fileId, |
|
|
| $optParams = array() ) |
Lists a file's parents.
(parents.listParents)
- Parameters
-
string | $fileId | The ID of the file. |
array | $optParams | Optional parameters. |
- Return values
-
The documentation for this class was generated from the following file:
- lib/google/src/Google/Service/Drive.php