DriveItemReference

DriveItemReference

A lightweight reference to a Drive item, such as a file or folder.

JSON representation
{
  "name": string,
  "title": string,
  "file": {
    object(File)
  },
  "folder": {
    object(Folder)
  },

  // 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.

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.

File

This item is deprecated; please see DriveFile instead.

Folder

This item is deprecated; please see DriveFolder instead.

JSON representation
{
  "type": enum(Type)
}
Fields
type

enum( Type )

This field is deprecated; please see DriveFolder.type instead.

Type

This item is deprecated; please see DriveFolder.Type instead.

Enums
TYPE_UNSPECIFIED This item is deprecated; please see DriveFolder.Type instead.
MY_DRIVE_ROOT This item is deprecated; please see DriveFolder.Type instead.
TEAM_DRIVE_ROOT This item is deprecated; please see DriveFolder.Type instead.
STANDARD_FOLDER This item is deprecated; please see DriveFolder.Type instead.

DriveFile

A Drive item which is a file.

DriveFolder

A Drive item which is a folder.

JSON representation
{
  "type": enum(Type)
}
Fields
type

enum( Type )

The type of Drive folder.

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 about...

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