DriveItem
A Drive item, such as a file or folder.
| JSON representation | 
|---|
| { "name" : string , "title" : string , "file" : { object ( | 
name 
 string 
The target Drive item. The format is items/ITEM_ID 
.
title 
 string 
The title of the Drive item.
file
 (deprecated) 
 
 object (  
 File 
 
)
This field is deprecated; please use the driveFile 
field instead.
folder
 (deprecated) 
 
 object (  
 Folder 
 
)
This field is deprecated; please use the driveFolder 
field instead.
mimeType 
 string 
The MIME type of the Drive item. See https://developers.google.com/workspace/drive/v3/web/mime-types .
owner 
 object (  
 Owner 
 
)
Information about the owner of this Drive item.
item_type 
. If present, this describes the type of the Drive item. item_type 
can be only one of the following:driveFile 
 object (  
 DriveFile 
 
)
The Drive item is a file.
driveFolder 
 object (  
 DriveFolder 
 
)
The Drive item is a folder. Includes information about the type of folder.
DriveFolder
A Drive item which is a folder.
| JSON representation | 
|---|
|  { 
 "type" 
 : 
 enum (  | 
| Fields | |
|---|---|
| type |   The type of Drive folder. | 
DriveFile
This type has no fields.
A Drive item which is a file.
Type
The type of a Drive folder.
| Enums | |
|---|---|
| TYPE_UNSPECIFIED | The folder type is unknown. | 
| MY_DRIVE_ROOT | The folder is the root of a user's MyDrive. | 
| SHARED_DRIVE_ROOT | The folder is the root of a shared drive. | 
| STANDARD_FOLDER | The folder is a standard, non-root, folder. | 

