REST Resource: revisions
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
리소스: Revision
파일 버전의 메타데이터입니다.
일부 리소스 메서드 (예: revisions.update
)에는 revisionId
이 필요합니다. revisions.list
메서드를 사용하여 수정 버전의 ID를 가져옵니다.
JSON 표현 |
{
"exportLinks": {
string: string,
...
},
"id": string,
"mimeType": string,
"kind": string,
"published": boolean,
"keepForever": boolean,
"md5Checksum": string,
"modifiedTime": string,
"publishAuto": boolean,
"publishedOutsideDomain": boolean,
"publishedLink": string,
"size": string,
"originalFilename": string,
"lastModifyingUser": {
object (User )
}
} |
필드 |
exportLinks |
map (key: string, value: string)
출력 전용입니다. Docs 편집기 파일을 특정 형식으로 내보내기 위한 링크입니다. "key": value 쌍 목록을 포함하는 객체입니다. 예: { "name": "wrench", "mass": "1.3kg", "count": "3" }
|
id |
string
출력 전용입니다. 버전의 ID입니다.
|
mimeType |
string
출력 전용입니다. 버전의 MIME 유형입니다.
|
kind |
string
출력 전용입니다. 리소스 종류를 식별합니다. 값: 고정 문자열 "drive#revision" .
|
published |
boolean
이 버전이 게시되었는지 여부입니다. 이는 Docs 편집기 파일에만 적용됩니다.
|
keepForever |
boolean
이 버전이 더 이상 헤드 버전이 아니더라도 영구적으로 보관할지 여부입니다. 설정하지 않으면 최신 콘텐츠가 업로드된 후 30일이 지나면 버전이 자동으로 삭제됩니다. 파일의 최대 200개 버전에 대해 설정할 수 있습니다. 이 필드는 Drive의 바이너리 콘텐츠가 있는 파일에만 적용됩니다.
|
md5Checksum |
string
출력 전용입니다. 수정 버전 콘텐츠의 MD5 체크섬입니다. 이는 Drive의 바이너리 콘텐츠가 있는 파일에만 적용됩니다.
|
modifiedTime |
string
출력 전용입니다. 버전이 마지막으로 수정된 시간입니다 (RFC 3339 날짜/시간).
|
publishAuto |
boolean
후속 수정사항이 자동으로 다시 게시되는지 여부입니다. 이는 Docs 편집기 파일에만 적용됩니다.
|
publishedOutsideDomain |
boolean
이 버전이 도메인 외부에서 게시되었는지 여부입니다. 이는 Docs 편집기 파일에만 적용됩니다.
|
publishedLink |
string
출력 전용입니다. 게시된 버전의 링크입니다. Docs 편집기 파일에 대해서만 채워집니다.
|
size |
string (int64 format)
출력 전용입니다. 수정 버전 콘텐츠의 크기(바이트)입니다. 이는 Drive의 바이너리 콘텐츠가 있는 파일에만 적용됩니다.
|
originalFilename |
string
출력 전용입니다. 이 버전을 만드는 데 사용된 원래 파일 이름입니다. 이는 Drive의 바이너리 콘텐츠가 있는 파일에만 적용됩니다.
|
lastModifyingUser |
object (User )
출력 전용입니다. 이 버전을 마지막으로 수정한 사용자입니다. 이 필드는 로그인한 사용자가 마지막 수정을 실행한 경우에만 채워집니다.
|
메서드 |
|
파일 버전을 영구적으로 삭제합니다. |
|
ID로 수정사항의 메타데이터 또는 콘텐츠를 가져옵니다. |
|
파일의 버전을 나열합니다. |
|
패치 시맨틱스를 사용하여 버전을 업데이트합니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[],[],null,["# REST Resource: revisions\n\n- [Resource: Revision](#Revision)\n - [JSON representation](#Revision.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Revision\n------------------\n\nThe metadata for a revision to a file.\n\nSome resource methods (such as `revisions.update`) require a `revisionId`. Use the `revisions.list` method to retrieve the ID for a revision.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"exportLinks\": { string: string, ... }, \"id\": string, \"mimeType\": string, \"kind\": string, \"published\": boolean, \"keepForever\": boolean, \"md5Checksum\": string, \"modifiedTime\": string, \"publishAuto\": boolean, \"publishedOutsideDomain\": boolean, \"publishedLink\": string, \"size\": string, \"originalFilename\": string, \"lastModifyingUser\": { object (/workspace/drive/api/reference/rest/v3/User) } } ``` |\n\n| Fields ||\n|--------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `exportLinks` | `map (key: string, value: string)` Output only. Links for exporting Docs Editors files to specific formats. An object containing a list of `\"key\": value` pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`. |\n| `id` | `string` Output only. The ID of the revision. |\n| `mimeType` | `string` Output only. The MIME type of the revision. |\n| `kind` | `string` Output only. Identifies what kind of resource this is. Value: the fixed string `\"drive#revision\"`. |\n| `published` | `boolean` Whether this revision is published. This is only applicable to Docs Editors files. |\n| `keepForever` | `boolean` Whether to keep this revision forever, even if it is no longer the head revision. If not set, the revision will be automatically purged 30 days after newer content is uploaded. This can be set on a maximum of 200 revisions for a file. This field is only applicable to files with binary content in Drive. |\n| `md5Checksum` | `string` Output only. The MD5 checksum of the revision's content. This is only applicable to files with binary content in Drive. |\n| `modifiedTime` | `string` Output only. The last time the revision was modified (RFC 3339 date-time). |\n| `publishAuto` | `boolean` Whether subsequent revisions will be automatically republished. This is only applicable to Docs Editors files. |\n| `publishedOutsideDomain` | `boolean` Whether this revision is published outside the domain. This is only applicable to Docs Editors files. |\n| `publishedLink` | `string` Output only. A link to the published revision. This is only populated for Docs Editors files. |\n| `size` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Output only. The size of the revision's content in bytes. This is only applicable to files with binary content in Drive. |\n| `originalFilename` | `string` Output only. The original filename used to create this revision. This is only applicable to files with binary content in Drive. |\n| `lastModifyingUser` | `object (`[User](/workspace/drive/api/reference/rest/v3/User)`)` Output only. The last user to modify this revision. This field is only populated when the last modification was performed by a signed-in user. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------|----------------------------------------------|\n| ### [delete](/workspace/drive/api/reference/rest/v3/revisions/delete) | Permanently deletes a file version. |\n| ### [get](/workspace/drive/api/reference/rest/v3/revisions/get) | Gets a revision's metadata or content by ID. |\n| ### [list](/workspace/drive/api/reference/rest/v3/revisions/list) | Lists a file's revisions. |\n| ### [update](/workspace/drive/api/reference/rest/v3/revisions/update) | Updates a revision with patch semantics. |"]]