Class Google_Service_Drive_Children_Resource
The "children" collection of methods. Typical usage is:
$driveService = new Google_Service_Drive(...);
$children = $driveService->children;
-
Google_Service_Resource
-
Google_Service_Drive_Children_Resource
Located at Drive.php
Methods summary
public
|
#
delete( string $folderId, string $childId, array $optParams = array() )
Removes a child from a folder. (children.delete)
Removes a child from a folder. (children.delete)
Parameters
- $folderId
- The ID of the folder.
- $childId
- The ID of the child.
- $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_ChildReference
|
#
get( string $folderId, string $childId, array $optParams = array() )
Gets a specific child reference. (children.get)
Gets a specific child reference. (children.get)
Parameters
- $folderId
- The ID of the folder.
- $childId
- The ID of the child.
- $optParams
- Optional parameters.
Returns
|
public
Google_Service_Drive_ChildReference
|
#
insert( string $folderId, Google_Service_Drive_ChildReference $postBody, array $optParams = array() )
Inserts a file into a folder. (children.insert)
Inserts a file into a folder. (children.insert)
Parameters
- $folderId
- The ID of the folder.
- $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_ChildList
|
#
listChildren( string $folderId, array $optParams = array() )
Lists a folder's children. (children.listChildren)
Lists a folder's children. (children.listChildren)
Parameters
- $folderId
- The ID of the folder.
- $optParams
- Optional parameters.
Returns
Opt_param
int maxResults Maximum number of children to return.
string orderBy A comma-separated list of sort keys. Valid keys are
'createdDate', 'folder', 'lastViewedByMeDate', 'modifiedByMeDate',
'modifiedDate', 'quotaBytesUsed', 'recency', 'sharedWithMeDate', 'starred', and
'title'. Each key sorts ascending by default, but may be reversed with the
'desc' modifier. Example usage: ?orderBy=folder,modifiedDate desc,title. Please
note that there is a current limitation for users with approximately one million
files in which the requested sort order is ignored.
string pageToken Page token for children.
string q Query string for searching children.
|