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)

檔案的更新狀態。如果類型為檔案,且檔案尚未從變更清單中移除,就會顯示此值。

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 為 drive,使用者仍是共用雲端硬碟的成員,且共用雲端硬碟未遭到刪除,就會顯示這項資料。

方法

getStartPageToken

取得開始的 pageToken,以便列出日後的變更。

list

列出使用者或共用雲端硬碟的變更。

watch

訂閱使用者的變更。