REST Resource: changes
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài nguyên: Thay đổi
Thay đổi đối với một tệp hoặc bộ nhớ dùng chung.
Biểu diễn dưới dạng 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 )
}
} |
Trường |
kind |
string
Xác định loại tài nguyên này. Giá trị: chuỗi cố định "drive#change" .
|
removed |
boolean
Liệu tệp hoặc bộ nhớ dùng chung có bị xoá khỏi danh sách thay đổi này hay không, ví dụ: do bị xoá hoặc mất quyền truy cập.
|
file |
object (File )
Trạng thái đã cập nhật của tệp. Xuất hiện nếu loại là tệp và tệp đó chưa bị xoá khỏi danh sách thay đổi này.
|
fileId |
string
Mã của tệp đã thay đổi.
|
time |
string
Thời gian của thay đổi này (ngày-giờ theo RFC 3339).
|
driveId |
string
Mã của bộ nhớ dùng chung liên kết với thay đổi này.
|
type (deprecated) |
string
Không dùng nữa: Hãy sử dụng changeType .
|
teamDriveId (deprecated) |
string
Không dùng nữa: Hãy sử dụng driveId .
|
teamDrive (deprecated) |
object (TeamDrive )
Không dùng nữa: Hãy sử dụng drive .
|
changeType |
string
Loại thay đổi. Các giá trị có thể sử dụng là file và drive .
|
drive |
object (Drive )
Trạng thái mới cập nhật của bộ nhớ dùng chung. Xuất hiện nếu changeType là drive, người dùng vẫn là thành viên của bộ nhớ dùng chung và bộ nhớ dùng chung chưa bị xoá.
|
Phương thức |
|
Lấy pageToken bắt đầu để liệt kê các thay đổi trong tương lai. |
|
Liệt kê các thay đổi đối với một người dùng hoặc bộ nhớ dùng chung. |
|
Đăng ký nhận thông báo về các thay đổi đối với người dùng. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]