REST Resource: changes

Recurso: mudança

Representação de uma mudança em um arquivo ou drive compartilhado.

Representação 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)
  }
}
Campos
id

string (int64 format)

O ID da mudança.

deleted

boolean

Se o arquivo ou o drive compartilhado foi removido desta lista de mudanças, por exemplo, por exclusão ou perda de acesso.

file

object (File)

O estado atualizado do arquivo. Aparece se o tipo for "arquivo" e o arquivo não tiver sido removido da lista de alterações.

fileId

string

O ID do arquivo associado a essa alteração.

modificationDate

string

O horário dessa modificação.

kind

string

Isso é sempre drive#change.

type
(deprecated)

string

Descontinuado: use changeType.

teamDriveId
(deprecated)

string

Descontinuado: use driveId.

teamDrive
(deprecated)

object (TeamDrive)

Descontinuado: use drive.

changeType

string

O tipo de mudança. Os valores possíveis são file e drive.

driveId

string

O ID do drive compartilhado associado a essa alteração.

drive

object (Drive)

O estado atualizado do drive compartilhado. Aparece se o changeType for drive, o usuário ainda for membro do drive compartilhado e o drive compartilhado não tiver sido excluído.

Métodos

get

Descontinuado: use changes.getStartPageToken e changes.list para recuperar as mudanças recentes.

getStartPageToken

Recebe o pageToken inicial para listar mudanças futuras.

list

Lista as mudanças de um usuário ou drive compartilhado.

watch

Assine as mudanças de um usuário.