DriveItem

DriveItem

云端硬盘内容,例如文件或文件夹。

JSON 表示法
{
  "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.
}
字段
name

string

目标云端硬盘内容。格式为 items/ITEM_ID

title

string

云端硬盘项的标题。

file
(deprecated)

object (File)

此字段已弃用;请改用 driveFile 字段。

folder
(deprecated)

object (Folder)

此字段已弃用;请改用 driveFolder 字段。

mimeType

string

云端硬盘内容的 MIME 类型。请参阅 https://developers.google.com/drive/v3/web/mime-types

owner

object (Owner)

此云端硬盘内容的所有者的相关信息。

联合字段 item_type。如果存在,用于说明云端硬盘内容的类型。 item_type 只能是下列其中一项:
driveFile

object (DriveFile)

云端硬盘项是一个文件。

driveFolder

object (DriveFolder)

云端硬盘内容是一个文件夹。包含有关文件夹类型的信息。

DriveFolder

一项云端硬盘内容,即文件夹。

JSON 表示法
{
  "type": enum (Type)
}
字段
type

enum (Type)

云端硬盘文件夹的类型。

DriveFile

即文件的云端硬盘内容。

类型

云端硬盘文件夹的类型。

枚举
TYPE_UNSPECIFIED 文件夹类型未知。
MY_DRIVE_ROOT 该文件夹是用户的“我的云端硬盘”的根目录。
SHARED_DRIVE_ROOT “文件夹”是共享云端硬盘的根目录。
STANDARD_FOLDER 该文件夹是一个标准的非根文件夹。