REST Resource: changes
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: การเปลี่ยนแปลง
การนําเสนอการเปลี่ยนแปลงในไฟล์หรือไดรฟ์ที่แชร์
การแสดง 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 )
}
} |
ช่อง |
id |
string (int64 format)
รหัสของการเปลี่ยนแปลง
|
deleted |
boolean
ไฟล์หรือไดรฟ์ที่แชร์ถูกนำออกจากรายการการเปลี่ยนแปลงนี้หรือไม่ เช่น โดยการลบหรือสูญเสียสิทธิ์เข้าถึง
|
file |
object (File )
สถานะที่อัปเดตของไฟล์ แสดงขึ้นหากประเภทเป็นไฟล์และไฟล์ยังไม่ได้ถูกนำออกจากรายการการเปลี่ยนแปลงนี้
|
fileId |
string
รหัสของไฟล์ที่เชื่อมโยงกับการเปลี่ยนแปลงนี้
|
modificationDate |
string
เวลาของการเปลี่ยนแปลงนี้
|
kind |
string
ค่านี้จะมีค่าเป็น drive#change เสมอ
|
type (deprecated) |
string
เลิกใช้งานแล้ว: ให้ใช้ changeType แทน
|
teamDriveId (deprecated) |
string
เลิกใช้งานแล้ว: ให้ใช้ driveId แทน
|
teamDrive (deprecated) |
object (TeamDrive )
เลิกใช้งานแล้ว: ให้ใช้ drive แทน
|
changeType |
string
ประเภทของการเปลี่ยนแปลง ค่าที่เป็นไปได้คือ file และ drive
|
selfLink |
string
ลิงก์กลับไปยังการเปลี่ยนแปลงนี้
|
driveId |
string
รหัสของไดรฟ์ที่แชร์ซึ่งเชื่อมโยงกับการเปลี่ยนแปลงนี้
|
drive |
object (Drive )
สถานะที่อัปเดตแล้วของไดรฟ์ที่แชร์ แสดงผลหาก changeType คือไดรฟ์ ผู้ใช้ยังคงเป็นสมาชิกของไดรฟ์ที่แชร์ และระบบยังไม่ได้ลบไดรฟ์ที่แชร์
|
เมธอด |
|
เลิกใช้งานแล้ว: ใช้ changes.getStartPageToken และ changes.list เพื่อเรียกดูการเปลี่ยนแปลงล่าสุด |
|
รับ pageToken เริ่มต้นเพื่อแสดงการเปลี่ยนแปลงในอนาคต |
|
แสดงรายการการเปลี่ยนแปลงสำหรับผู้ใช้หรือไดรฟ์ที่แชร์ |
|
ติดตามการเปลี่ยนแปลงสำหรับผู้ใช้ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]