REST Resource: changes

資源:變更

檔案或共用雲端硬碟變更的示意圖。

JSON 表示法
{
  "id": string,
  "deleted": boolean,
  "file": {
    object (File)
  },
  "fileId": string,
  "modificationDate": string,
  "kind": string,
  "type": string,
  "teamDriveId": string,
  "teamDrive": {
    object (TeamDrive)
  },
  "changeType": string,
  "selfLink": string,
  "driveId": string,
  "drive": {
    object (Drive)
  }
}
欄位
id

string (int64 format)

變更的 ID。

deleted

boolean

該檔案或共用雲端硬碟是否已從這份變更清單中移除 (例如刪除或失去存取權)。

file

object (File)

檔案的更新狀態。如果類型為檔案,且檔案尚未從這份變更清單中移除,系統就會顯示這個項目。

fileId

string

與這項變更相關聯的檔案 ID。

modificationDate

string

修改時間。

kind

string

一律為 drive#change

type
(deprecated)

string

已淘汰:請改用 changeType

teamDriveId
(deprecated)

string

已淘汰:請改用 driveId

teamDrive
(deprecated)

object (TeamDrive)

已淘汰:請改用 drive

changeType

string

變更的類型。可能的值為 filedrive

driveId

string

與這項變更相關聯的共用雲端硬碟 ID。

drive

object (Drive)

共用雲端硬碟的更新狀態。如果 changeType 是雲端硬碟,使用者仍是該共用雲端硬碟的成員,且該共用雲端硬碟未被刪除。

方法

get

已淘汰:使用 changes.getStartPageTokenchanges.list 擷取近期變更。

getStartPageToken

取得用來列出未來變更的起始 pageToken。

list

列出使用者或共用雲端硬碟的異動。

watch

訂閱使用者的變更。