Overview

Classes

  • Google_Service_Drive
  • Google_Service_Drive_About
  • Google_Service_Drive_About_Resource
  • Google_Service_Drive_AboutAdditionalRoleInfo
  • Google_Service_Drive_AboutAdditionalRoleInfoRoleSets
  • Google_Service_Drive_AboutDriveThemes
  • Google_Service_Drive_AboutExportFormats
  • Google_Service_Drive_AboutFeatures
  • Google_Service_Drive_AboutImportFormats
  • Google_Service_Drive_AboutMaxUploadSizes
  • Google_Service_Drive_AboutQuotaBytesByService
  • Google_Service_Drive_AboutTeamDriveThemes
  • Google_Service_Drive_App
  • Google_Service_Drive_AppIcons
  • Google_Service_Drive_AppList
  • Google_Service_Drive_Apps_Resource
  • Google_Service_Drive_Change
  • Google_Service_Drive_ChangeList
  • Google_Service_Drive_Changes_Resource
  • Google_Service_Drive_Channel
  • Google_Service_Drive_Channels_Resource
  • Google_Service_Drive_ChildList
  • Google_Service_Drive_ChildReference
  • Google_Service_Drive_Children_Resource
  • Google_Service_Drive_Comment
  • Google_Service_Drive_CommentContext
  • Google_Service_Drive_CommentList
  • Google_Service_Drive_CommentReply
  • Google_Service_Drive_CommentReplyList
  • Google_Service_Drive_Comments_Resource
  • Google_Service_Drive_Drive
  • Google_Service_Drive_DriveBackgroundImageFile
  • Google_Service_Drive_DriveCapabilities
  • Google_Service_Drive_DriveFile
  • Google_Service_Drive_DriveFileCapabilities
  • Google_Service_Drive_DriveFileImageMediaMetadata
  • Google_Service_Drive_DriveFileImageMediaMetadataLocation
  • Google_Service_Drive_DriveFileIndexableText
  • Google_Service_Drive_DriveFileLabels
  • Google_Service_Drive_DriveFileShortcutDetails
  • Google_Service_Drive_DriveFileThumbnail
  • Google_Service_Drive_DriveFileVideoMediaMetadata
  • Google_Service_Drive_DriveList
  • Google_Service_Drive_DriveRestrictions
  • Google_Service_Drive_Drives_Resource
  • Google_Service_Drive_FileList
  • Google_Service_Drive_Files_Resource
  • Google_Service_Drive_GeneratedIds
  • Google_Service_Drive_ParentList
  • Google_Service_Drive_ParentReference
  • Google_Service_Drive_Parents_Resource
  • Google_Service_Drive_Permission
  • Google_Service_Drive_PermissionId
  • Google_Service_Drive_PermissionList
  • Google_Service_Drive_PermissionPermissionDetails
  • Google_Service_Drive_Permissions_Resource
  • Google_Service_Drive_PermissionTeamDrivePermissionDetails
  • Google_Service_Drive_Properties_Resource
  • Google_Service_Drive_Property
  • Google_Service_Drive_PropertyList
  • Google_Service_Drive_Replies_Resource
  • Google_Service_Drive_Revision
  • Google_Service_Drive_RevisionList
  • Google_Service_Drive_Revisions_Resource
  • Google_Service_Drive_StartPageToken
  • Google_Service_Drive_TeamDrive
  • Google_Service_Drive_TeamDriveBackgroundImageFile
  • Google_Service_Drive_TeamDriveCapabilities
  • Google_Service_Drive_TeamDriveList
  • Google_Service_Drive_TeamDriveRestrictions
  • Google_Service_Drive_Teamdrives_Resource
  • Google_Service_Drive_User
  • Google_Service_Drive_UserPicture
  • Overview
  • Class
  • Tree

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
Extended by Google_Service_Drive_Drives_Resource
Located at Drive.php
Methods summary
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

Google_Service_Drive_Drive
Google_Service_Drive_Drive

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

Google_Service_Drive_Drive
Google_Service_Drive_Drive
public Google_Service_Drive_Drive
# insert( string $requestId, Google_Service_Drive_Drive $postBody, array $optParams = array() )

Creates a new shared drive. (drives.insert)

Creates a new shared drive. (drives.insert)

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

Google_Service_Drive_Drive
Google_Service_Drive_Drive
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

Google_Service_Drive_DriveList
Google_Service_Drive_DriveList

Opt_param

int maxResults 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

Google_Service_Drive_Drive
Google_Service_Drive_Drive
public Google_Service_Drive_Drive
# update( string $driveId, Google_Service_Drive_Drive $postBody, array $optParams = array() )

Updates the metadata for a shared drive. (drives.update)

Updates the metadata for a shared drive. (drives.update)

Parameters

$driveId
The ID of the shared drive.
$postBody
$optParams
Optional parameters.

Returns

Google_Service_Drive_Drive
Google_Service_Drive_Drive

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.
© 2020 Google Inc.
Drive API documentation generated by ApiGen 2.8.0