Send feedback
DriveItem
Stay organized with collections
Save 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 field item_type
can be only one of the following:
"driveFile" : {
object (DriveFile
)
} ,
"driveFolder" : {
object (DriveFolder
)
}
// End of list of possible types for union field item_type
.
}
Fields
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/drive/v3/web/mime-types .
owner
object (Owner
)
Information about the owner of this Drive item.
Union field
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 (Type
)
}
Fields
type
enum (Type
)
The type of Drive folder.
DriveFile
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.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-05-12 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?