REST Resource: changes

Recurso: Alterar

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 alteração.

deleted

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 associado a essa mudança.

modificationDate

string

A hora dessa modificação.

kind

string

É sempre drive#change.

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.

driveId

string

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

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

get

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

getStartPageToken

Recebe o pageToken inicial para listar mudanças futuras.

list

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

watch

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