REST Resource: changes
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Risorsa: Modifica
Una modifica a un file o a un Drive condiviso.
Rappresentazione 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 )
}
} |
Campi |
kind |
string
Identifica il tipo di risorsa. Valore: la stringa fissa "drive#change" .
|
removed |
boolean
Indica se il file o il Drive condiviso è stato rimosso da questo elenco di modifiche, ad esempio per eliminazione o perdita di accesso.
|
file |
object (File )
Lo stato aggiornato del file. Presente se il tipo è file e il file non è stato rimosso da questo elenco di modifiche.
|
fileId |
string
L'ID del file che è cambiato.
|
time |
string
L'ora di questa modifica (data e ora RFC 3339).
|
driveId |
string
L'ID del drive condiviso associato a questa modifica.
|
type (deprecated) |
string
Deprecato: utilizza changeType .
|
teamDriveId (deprecated) |
string
Deprecato: utilizza driveId .
|
teamDrive (deprecated) |
object (TeamDrive )
Deprecato: utilizza drive .
|
changeType |
string
Il tipo di modifica. I valori possibili sono file e drive .
|
drive |
object (Drive )
Lo stato aggiornato del Drive condiviso. Presente se il valore di changeType è drive, l'utente è ancora un membro del Drive condiviso e il Drive condiviso non è stato eliminato.
|
Metodi |
|
Recupera il pageToken iniziale per elencare le modifiche future. |
|
Elenca le modifiche per un utente o un Drive condiviso. |
|
Si iscrive alle modifiche per un utente. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[],[],null,["# REST Resource: changes\n\n- [Resource: Change](#Change)\n - [JSON representation](#Change.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Change\n----------------\n\nA change to a file or shared drive.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"removed\": boolean, \"file\": { object (/workspace/drive/api/reference/rest/v3/files#File) }, \"fileId\": string, \"time\": string, \"driveId\": string, \"type\": string, \"teamDriveId\": string, \"teamDrive\": { object (/workspace/drive/api/reference/rest/v3/teamdrives#TeamDrive) }, \"changeType\": string, \"drive\": { object (/workspace/drive/api/reference/rest/v3/drives#Drive) } } ``` |\n\n| Fields ||\n|--------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string `\"drive#change\"`. |\n| `removed` | `boolean` Whether the file or shared drive has been removed from this list of changes, for example by deletion or loss of access. |\n| `file` | `object (`[File](/workspace/drive/api/reference/rest/v3/files#File)`)` The updated state of the file. Present if the type is file and the file has not been removed from this list of changes. |\n| `fileId` | `string` The ID of the file which has changed. |\n| `time` | `string` The time of this change (RFC 3339 date-time). |\n| `driveId` | `string` The ID of the shared drive associated with this change. |\n| `type` **(deprecated)** | `string` | This item is deprecated! Deprecated: Use `changeType` instead. |\n| `teamDriveId` **(deprecated)** | `string` | This item is deprecated! Deprecated: Use `driveId` instead. |\n| `teamDrive` **(deprecated)** | `object (`[TeamDrive](/workspace/drive/api/reference/rest/v3/teamdrives#TeamDrive)`)` | This item is deprecated! Deprecated: Use `drive` instead. |\n| `changeType` | `string` The type of the change. Possible values are `file` and `drive`. |\n| `drive` | `object (`[Drive](/workspace/drive/api/reference/rest/v3/drives#Drive)`)` The updated state of the shared drive. Present if the changeType is drive, the user is still a member of the shared drive, and the shared drive has not been deleted. |\n\n| Methods ------- ||\n|-------------------------------------------------------------------------------------------|---------------------------------------------------------|\n| ### [getStartPageToken](/workspace/drive/api/reference/rest/v3/changes/getStartPageToken) | Gets the starting pageToken for listing future changes. |\n| ### [list](/workspace/drive/api/reference/rest/v3/changes/list) | Lists the changes for a user or shared drive. |\n| ### [watch](/workspace/drive/api/reference/rest/v3/changes/watch) | Subscribes to changes for a user. |"]]