REST Resource: changes
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Resource: Change
Perubahan pada file atau drive bersama.
Representasi 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 )
}
} |
Kolom |
kind |
string
Mengidentifikasi jenis resource ini. Nilai: string tetap "drive#change" .
|
removed |
boolean
Apakah file atau drive bersama telah dihapus dari daftar perubahan ini, misalnya dengan penghapusan atau kehilangan akses.
|
file |
object (File )
Status file yang diperbarui. Ada jika jenisnya adalah file dan file belum dihapus dari daftar perubahan ini.
|
fileId |
string
ID file yang telah berubah.
|
time |
string
Waktu perubahan ini (tanggal-waktu RFC 3339).
|
driveId |
string
ID drive bersama yang terkait dengan perubahan ini.
|
type (deprecated) |
string
Tidak digunakan lagi: Gunakan changeType sebagai gantinya.
|
teamDriveId (deprecated) |
string
Tidak digunakan lagi: Gunakan driveId sebagai gantinya.
|
teamDrive (deprecated) |
object (TeamDrive )
Tidak digunakan lagi: Gunakan drive sebagai gantinya.
|
changeType |
string
Jenis perubahan. Nilai yang mungkin adalah file dan drive .
|
drive |
object (Drive )
Status drive bersama yang diperbarui. Ada jika changeType adalah drive, pengguna masih menjadi anggota drive bersama, dan drive bersama belum dihapus.
|
Metode |
|
Mendapatkan pageToken awal untuk mencantumkan perubahan mendatang. |
|
Mencantumkan perubahan untuk pengguna atau drive bersama. |
|
Berlangganan perubahan untuk pengguna. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 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. |"]]