REST Resource: changes
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zasób: Zmiana
Reprezentacja zmiany w pliku lub dysku współdzielonym.
Zapis 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 )
}
} |
Pola |
id |
string (int64 format)
Identyfikator zmiany.
|
deleted |
boolean
czy plik lub dysk współdzielony został usunięty z tej listy zmian, na przykład w wyniku usunięcia lub utraty dostępu.
|
file |
object (File )
Zaktualizowany stan pliku. Wyświetlany, jeśli typ to plik i plik nie został usunięty z tej listy zmian.
|
fileId |
string
Identyfikator pliku powiązanego z tą zmianą.
|
modificationDate |
string
Czas tej modyfikacji.
|
kind |
string
Jest ona zawsze drive#change .
|
type (deprecated) |
string
Wycofane: użyj w zastępstwie tego changeType .
|
teamDriveId (deprecated) |
string
Wycofane: użyj w zastępstwie tego driveId .
|
teamDrive (deprecated) |
object (TeamDrive )
Wycofane: użyj w zastępstwie tego drive .
|
changeType |
string
Typ zmiany. Możliwe wartości to file i drive .
|
selfLink |
string
link do tej zmiany.
|
driveId |
string
Identyfikator dysku współdzielonego powiązanego z tą zmianą.
|
drive |
object (Drive )
Zaktualizowany stan dysku współdzielonego. Jest obecny, jeśli changeType to „drive”, użytkownik jest nadal członkiem dysku współdzielonego, a dysk współdzielony nie został usunięty.
|
Metody |
|
Wycofane: aby pobrać ostatnie zmiany, użyj poleceń changes.getStartPageToken i changes.list . |
|
Pobiera token początkowej strony do wyświetlania przyszłych zmian. |
|
Wyświetla zmiany wprowadzone przez użytkownika lub na dysku współdzielonym. |
|
subskrybować zmiany dotyczące użytkownika. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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\nRepresentation of a change to a file or shared drive.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"deleted\": boolean, \"file\": { object (/workspace/drive/api/reference/rest/v2/files#File) }, \"fileId\": string, \"modificationDate\": string, \"kind\": string, \"type\": string, \"teamDriveId\": string, \"teamDrive\": { object (/workspace/drive/api/reference/rest/v2/teamdrives#TeamDrive) }, \"changeType\": string, \"selfLink\": string, \"driveId\": string, \"drive\": { object (/workspace/drive/api/reference/rest/v2/drives#Drive) } } ``` |\n\n| Fields ||\n|--------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` The ID of the change. |\n| `deleted` | `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/v2/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 associated with this change. |\n| `modificationDate` | `string` The time of this modification. |\n| `kind` | `string` This is always `drive#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/v2/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| `selfLink` | `string` A link back to this change. |\n| `driveId` | `string` The ID of the shared drive associated with this change. |\n| `drive` | `object (`[Drive](/workspace/drive/api/reference/rest/v2/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| ### [get](/workspace/drive/api/reference/rest/v2/changes/get) | Deprecated: Use `changes.getStartPageToken` and `changes.list` to retrieve recent changes. |\n| ### [getStartPageToken](/workspace/drive/api/reference/rest/v2/changes/getStartPageToken) | Gets the starting pageToken for listing future changes. |\n| ### [list](/workspace/drive/api/reference/rest/v2/changes/list) | Lists the changes for a user or shared drive. |\n| ### [watch](/workspace/drive/api/reference/rest/v2/changes/watch) | Subscribe to changes for a user. |"]]