REST Resource: changes
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: การเปลี่ยนแปลง
การเปลี่ยนแปลงไฟล์หรือไดรฟ์ที่แชร์
การแสดง 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 )
}
} |
ช่อง |
kind |
string
ระบุประเภทของทรัพยากร ค่า: สตริงคงที่ "drive#change"
|
removed |
boolean
ไฟล์หรือไดรฟ์ที่แชร์ถูกนำออกจากรายการการเปลี่ยนแปลงนี้หรือไม่ เช่น มีการลบหรือเสียสิทธิ์เข้าถึง
|
file |
object (File )
สถานะที่อัปเดตของไฟล์ แสดงขึ้นหากประเภทเป็นไฟล์และไฟล์นั้นยังไม่ได้ถูกนำออกจากรายการการเปลี่ยนแปลงนี้
|
fileId |
string
รหัสของไฟล์ที่มีการเปลี่ยนแปลง
|
time |
string
เวลาของการเปลี่ยนแปลงนี้ (รูปแบบวันที่และเวลา RFC 3339)
|
driveId |
string
รหัสของไดรฟ์ที่แชร์ซึ่งเชื่อมโยงกับการเปลี่ยนแปลงนี้
|
type (deprecated) |
string
เลิกใช้งานแล้ว: ให้ใช้ changeType แทน
|
teamDriveId (deprecated) |
string
เลิกใช้งานแล้ว: ให้ใช้ driveId แทน
|
teamDrive (deprecated) |
object (TeamDrive )
เลิกใช้งานแล้ว: ให้ใช้ drive แทน
|
changeType |
string
ประเภทของการเปลี่ยนแปลง ค่าที่เป็นไปได้คือ file และ drive
|
drive |
object (Drive )
สถานะที่อัปเดตแล้วของไดรฟ์ที่แชร์ แสดงผลหาก changeType คือไดรฟ์ ผู้ใช้ยังคงเป็นสมาชิกของไดรฟ์ที่แชร์ และระบบยังไม่ได้ลบไดรฟ์ที่แชร์
|
เมธอด |
|
รับ 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\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. |"]]