Stay organized with collectionsSave and categorize content based on your preferences.
DriveItem
A Drive item, such as a file or folder.
JSON representation
{"name":string,"title":string,"file":{object (File)},"folder":{object (Folder)},"mimeType":string,"owner":{object (Owner)},// Union fielditem_typecan be only one of the following:"driveFile":{object (DriveFile)},"driveFolder":{object (DriveFolder)}// End of list of possible types for union fielditem_type.}
Fields
name
string
The target Drive item. The format isitems/ITEM_ID.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-23 UTC."],[],[],null,["# DriveItem\n---------\n\n\nA Drive item, such as a file or folder.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"title\": string, \"file\": { object (/workspace/drive/activity/v2/reference/rest/v2/activity/deprecated#File) }, \"folder\": { object (/workspace/drive/activity/v2/reference/rest/v2/activity/deprecated#Folder) }, \"mimeType\": string, \"owner\": { object (/workspace/drive/activity/v2/reference/rest/v2/activity/owner#Owner) }, // Union field `item_type` can be only one of the following: \"driveFile\": { object (/workspace/drive/activity/v2/reference/rest/v2/activity/driveitem#DriveFile) }, \"driveFolder\": { object (/workspace/drive/activity/v2/reference/rest/v2/activity/driveitem#DriveFolder) } // End of list of possible types for union field `item_type`. } ``` |\n\n| Fields ||\n|-------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` The target Drive item. The format is `items/ITEM_ID`. |\n| `title` | `string` The title of the Drive item. |\n| `file ` ` `**(deprecated)** | `object (`[File](/workspace/drive/activity/v2/reference/rest/v2/activity/deprecated#File)`)` | This field is deprecated; please use the | `driveFile` | field instead. This field is deprecated; please use the `driveFile` field instead. |\n| `folder ` ` `**(deprecated)** | `object (`[Folder](/workspace/drive/activity/v2/reference/rest/v2/activity/deprecated#Folder)`)` | This field is deprecated; please use the | `driveFolder` | field instead. This field is deprecated; please use the `driveFolder` field instead. |\n| `mimeType` | `string` The MIME type of the Drive item. See \u003chttps://developers.google.com/workspace/drive/v3/web/mime-types\u003e. |\n| `owner` | `object (`[Owner](/workspace/drive/activity/v2/reference/rest/v2/activity/owner#Owner)`)` Information about the owner of this Drive item. |\n| Union field `item_type`. If present, this describes the type of the Drive item. `item_type` can be only one of the following: ||\n| `driveFile` | `object (`[DriveFile](/workspace/drive/activity/v2/reference/rest/v2/activity/driveitem#DriveFile)`)` The Drive item is a file. |\n| `driveFolder` | `object (`[DriveFolder](/workspace/drive/activity/v2/reference/rest/v2/activity/driveitem#DriveFolder)`)` The Drive item is a folder. Includes information about the type of folder. |\n\nDriveFolder\n-----------\n\n\nA Drive item which is a folder.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------|\n| ``` { \"type\": enum (/workspace/drive/activity/v2/reference/rest/v2/activity/driveitem#Type_1) } ``` |\n\n| Fields ||\n|--------|-----------------------------------------------------------------------------------------------------------------------|\n| `type` | `enum (`[Type](/workspace/drive/activity/v2/reference/rest/v2/activity/driveitem#Type_1)`)` The type of Drive folder. |\n\nDriveFile\n---------\n\n\nThis type has no fields.\n\nA Drive item which is a file.\n\nType\n----\n\n\nThe type of a Drive folder.\n\n| Enums ||\n|---------------------|---------------------------------------------|\n| `TYPE_UNSPECIFIED` | The folder type is unknown. |\n| `MY_DRIVE_ROOT` | The folder is the root of a user's MyDrive. |\n| `SHARED_DRIVE_ROOT` | The folder is the root of a shared drive. |\n| `STANDARD_FOLDER` | The folder is a standard, non-root, folder. |"]]