REST Resource: changes

资源:Change

文件或共享云端硬盘的更改。

JSON 表示法
{
  "kind": string,
  "removed": boolean,
  "file": {
    object (File)
  },
  "fileId": string,
  "time": string,
  "driveId": string,
  "type": string,
  "teamDriveId": string,
  "teamDrive": {
    object (TeamDrive)
  },
  "changeType": string,
  "drive": {
    object (Drive)
  }
}
字段
kind

string

标识这是哪类资源。值:固定字符串 "drive#change"

removed

boolean

相应文件或共享云端硬盘是否已从此变更列表中移除(例如删除或失去访问权限)。

file

object (File)

文件的更新状态。如果类型为“file”,且该文件未从此更改列表中移除,则显示此字段。

fileId

string

已更改的文件的 ID。

time

string

此更改的时间(RFC 3339 日期时间)。

driveId

string

与此项更改相关联的共享云端硬盘的 ID。

type
(deprecated)

string

已废弃:请改用 changeType

teamDriveId
(deprecated)

string

已废弃:请改用 driveId

teamDrive
(deprecated)

object (TeamDrive)

已废弃:请改用 drive

changeType

string

更改的类型。可能的值有 filedrive

drive

object (Drive)

共享云端硬盘更新后的状态。如果 changeType 为云端硬盘、用户仍是共享云端硬盘的成员,并且共享云端硬盘尚未删除,则显示此字段。

方法

getStartPageToken

获取用于列出未来更改的起始 pageToken。

list

列出用户或共享云端硬盘的更改。

watch

为用户订阅更改。