Class Google_Service_Drive_Parents_Resource
The "parents" collection of methods. Typical usage is:
$driveService = new Google_Service_Drive(...);
$parents = $driveService->parents;
-
Google_Service_Resource
-
Google_Service_Drive_Parents_Resource
Located at Drive.php
Methods summary
public
|
#
delete( string $fileId, string $parentId, array $optParams = array() )
Removes a parent from a file. (parents.delete)
Removes a parent from a file. (parents.delete)
Parameters
- $fileId
- The ID of the file.
- $parentId
- The ID of the parent.
- $optParams
- Optional parameters.
Opt_param
bool enforceSingleParent Set to true to opt in to API behavior that aims for all
items to have exactly one parent. This parameter will only take effect if the
item is not in a shared drive. If the item's last parent is removed, the item
will be placed under its owner's root.
|
public
Google_Service_Drive_ParentReference
|
#
get( string $fileId, string $parentId, array $optParams = array() )
Gets a specific parent reference. (parents.get)
Gets a specific parent reference. (parents.get)
Parameters
- $fileId
- The ID of the file.
- $parentId
- The ID of the parent.
- $optParams
- Optional parameters.
Returns
|
public
Google_Service_Drive_ParentReference
|
#
insert( string $fileId, Google_Service_Drive_ParentReference $postBody, array $optParams = array() )
Adds a parent folder for a file. (parents.insert)
Adds a parent folder for a file. (parents.insert)
Parameters
- $fileId
- The ID of the file.
- $postBody
- $optParams
- Optional parameters.
Returns
Opt_param
bool enforceSingleParent Set to true to opt in to API behavior that aims for all
items to have exactly one parent. This parameter will only take effect if the
item is not in a shared drive. If the child's owner makes the request, the child
will be removed from all current folders and placed in the requested folder. Any
other requests that increase the number of the child's parents will fail, except
when the canAddMyDriveParent file capability is true and a single parent is
being added.
bool supportsAllDrives Deprecated - Whether the requesting application supports
both My Drives and shared drives. This parameter will only be effective until
June 1, 2020. Afterwards all applications are assumed to support shared drives.
bool supportsTeamDrives Deprecated use supportsAllDrives instead.
|
public
Google_Service_Drive_ParentList
|
#
listParents( string $fileId, array $optParams = array() )
Lists a file's parents. (parents.listParents)
Lists a file's parents. (parents.listParents)
Parameters
- $fileId
- The ID of the file.
- $optParams
- Optional parameters.
Returns
|