Class Google_Service_Drive_Drives_Resource
The "drives" collection of methods. Typical usage is:
$driveService = new Google_Service_Drive(...);
$drives = $driveService->drives;
-
Google_Service_Resource
-
Google_Service_Drive_Drives_Resource
Located at Drive.php
Methods summary
public
Google_Service_Drive_Drive
|
#
create( string $requestId, Google_Service_Drive_Drive $postBody, array $optParams = array() )
Creates a new shared drive. (drives.create)
Creates a new shared drive. (drives.create)
Parameters
- $requestId
- An ID, such as a random UUID, which uniquely identifies this user's request for
idempotent creation of a shared drive. A repeated request by the same user and
with the same request ID will avoid creating duplicates by attempting to create
the same shared drive. If the shared drive already exists a 409 error will be
returned.
- $postBody
- $optParams
- Optional parameters.
Returns
|
public
|
#
delete( string $driveId, array $optParams = array() )
Permanently deletes a shared drive for which the user is an organizer. The
shared drive cannot contain any untrashed items. (drives.delete)
Permanently deletes a shared drive for which the user is an organizer. The
shared drive cannot contain any untrashed items. (drives.delete)
Parameters
- $driveId
- The ID of the shared drive.
- $optParams
- Optional parameters.
|
public
Google_Service_Drive_Drive
|
#
get( string $driveId, array $optParams = array() )
Gets a shared drive's metadata by ID. (drives.get)
Gets a shared drive's metadata by ID. (drives.get)
Parameters
- $driveId
- The ID of the shared drive.
- $optParams
- Optional parameters.
Returns
Opt_param
bool useDomainAdminAccess Issue the request as a domain administrator; if set to
true, then the requester will be granted access if they are an administrator of
the domain to which the shared drive belongs.
|
public
Google_Service_Drive_Drive
|
#
hide( string $driveId, array $optParams = array() )
Hides a shared drive from the default view. (drives.hide)
Hides a shared drive from the default view. (drives.hide)
Parameters
- $driveId
- The ID of the shared drive.
- $optParams
- Optional parameters.
Returns
|
public
Google_Service_Drive_DriveList
|
#
listDrives( array $optParams = array() )
Lists the user's shared drives. (drives.listDrives)
Lists the user's shared drives. (drives.listDrives)
Parameters
- $optParams
- Optional parameters.
Returns
Opt_param
int pageSize Maximum number of shared drives to return.
string pageToken Page token for shared drives.
string q Query string for searching shared drives.
bool useDomainAdminAccess Issue the request as a domain administrator; if set to
true, then all shared drives of the domain in which the requester is an
administrator are returned.
|
public
Google_Service_Drive_Drive
|
#
unhide( string $driveId, array $optParams = array() )
Restores a shared drive to the default view. (drives.unhide)
Restores a shared drive to the default view. (drives.unhide)
Parameters
- $driveId
- The ID of the shared drive.
- $optParams
- Optional parameters.
Returns
|
public
Google_Service_Drive_Drive
|
#
update( string $driveId, Google_Service_Drive_Drive $postBody, array $optParams = array() )
Updates the metadate for a shared drive. (drives.update)
Updates the metadate for a shared drive. (drives.update)
Parameters
- $driveId
- The ID of the shared drive.
- $postBody
- $optParams
- Optional parameters.
Returns
Opt_param
bool useDomainAdminAccess Issue the request as a domain administrator; if set to
true, then the requester will be granted access if they are an administrator of
the domain to which the shared drive belongs.
|