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 date-time). |
driveId | string شناسه درایو مشترک مرتبط با این تغییر. |
type (deprecated) | string منسوخ شده: به جای آن از changeType استفاده کنید. |
teamDriveId (deprecated) | string منسوخ شده: به جای آن از driveId استفاده کنید. |
teamDrive (deprecated) | object ( TeamDrive ) منسوخ شده: به جای آن drive استفاده کنید. |
changeType | string نوع تغییر. مقادیر ممکن file و drive هستند. |
drive | object ( Drive ) وضعیت به روز شده درایو مشترک. اگر تغییر نوع درایو است، ارائه کنید، کاربر همچنان عضو درایو مشترک است و درایو مشترک حذف نشده است. |
روش ها |
---|
| صفحه شروع توکن را برای فهرست کردن تغییرات آینده دریافت می کند. |
| تغییرات یک کاربر یا درایو مشترک را فهرست می کند. |
| برای تغییرات یک کاربر مشترک می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],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. |"]]