REST Resource: changes
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リソース: Change
ファイルまたは共有ドライブに対する変更を表します。
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)
変更の ID。
|
deleted |
boolean
ファイルまたは共有ドライブが、削除やアクセス権の喪失などにより、この変更リストから削除されたかどうか。
|
file |
object (File )
ファイルの更新された状態。タイプがファイルで、この変更リストからファイルが削除されていない場合に存在します。
|
fileId |
string
この変更に関連付けられているファイルの ID。
|
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
この変更に関連付けられている共有ドライブの ID。
|
drive |
object (Drive )
共有ドライブの更新されたステータス。changeType が drive で、ユーザーが共有ドライブのメンバーであり、共有ドライブが削除されていない場合に存在します。
|
メソッド |
|
非推奨: changes.getStartPageToken と changes.list を使用して最新の変更を取得します。 |
|
今後の変更を表示するための開始ページトークンを取得します。 |
|
ユーザーまたは共有ドライブの変更を一覧表示します。 |
|
ユーザーの変更をサブスクライブする。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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. |"]]