DriveItem

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 . The type of 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.

Send feedback about...

Google Drive Activity API
Need help? Visit our support page.