REST Resource: changes

Recurso: Alterar

Uma alteração em um arquivo ou drive compartilhado

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

string

Identifica o tipo de recurso. Valor: a string fixa "drive#change".

removed

boolean

Se o arquivo ou o drive compartilhado foi removido da lista de alterações (por exemplo, por exclusão ou perda de acesso).

file

object (File)

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

fileId

string

O ID do arquivo que foi alterado.

time

string

O horário dessa alteração (data e hora RFC 3339).

driveId

string

O ID do drive compartilhado associado a essa mudança.

type
(deprecated)

string

Obsoleto: use changeType.

teamDriveId
(deprecated)

string

Obsoleto: use driveId.

teamDrive
(deprecated)

object (TeamDrive)

Obsoleto: use drive.

changeType

string

O tipo da alteração. Os valores possíveis são file e drive.

drive

object (Drive)

O estado atualizado do drive compartilhado. Presente se o changeType for drive, o usuário ainda for um participante do drive compartilhado e ele não tiver sido excluído.

Métodos

getStartPageToken

Recebe o pageToken inicial para listar mudanças futuras.

list

Lista as alterações de um usuário ou drive compartilhado.

watch

Inscreve-se nas alterações de um usuário.