Resource: Revision
A revision of a file.
Some resource methods (such as revisions.update
) require a revisionId
. Use the revisions.list
method to retrieve the ID for a revision.
JSON representation |
---|
{
"id": string,
"mimeType": string,
"kind": string,
"published": boolean,
"etag": string,
"exportLinks": {
string: string,
...
},
"pinned": boolean,
"md5Checksum": string,
"modifiedDate": string,
"lastModifyingUserName": string,
"downloadUrl": string,
"publishAuto": boolean,
"publishedOutsideDomain": boolean,
"publishedLink": string,
"fileSize": string,
"originalFilename": string,
"lastModifyingUser": {
object ( |
Fields | |
---|---|
id |
Output only. The ID of the revision. |
mimeType |
Output only. The MIME type of the revision. |
kind |
Output only. This is always |
published |
Whether this revision is published. This is only populated and can only be modified for Docs Editors files. |
etag |
Output only. The ETag of the revision. |
exportLinks |
Output only. Links for exporting Docs Editors files to specific formats. An object containing a list of |
pinned |
Whether this revision is pinned to prevent automatic purging. If not set, the revision is automatically purged 30 days after newer content is uploaded. This field can only be modified on files with content stored in Drive, excluding Docs Editors files. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to a maximum of 200 revisions. |
md5Checksum |
Output only. An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive. |
modifiedDate |
Output only. Last time this revision was modified (formatted RFC 3339 timestamp). |
lastModifyingUserName |
Output only. Name of the last user to modify this revision. |
downloadUrl |
Output only. Short term download URL for the file. This will only be populated on files with content stored in Drive. |
publishAuto |
Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Docs Editors files. |
publishedOutsideDomain |
Whether this revision is published outside the domain. This is only populated and can only be modified for Docs Editors files. |
publishedLink |
Output only. A link to the published revision. This is only populated for Google Sites files. |
fileSize |
Output only. The size of the revision in bytes. This will only be populated on files with content stored in Drive. |
originalFilename |
Output only. The original filename when this revision was created. This will only be populated on files with content stored in Drive. |
lastModifyingUser |
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. |
selfLink |
Output only. A link back to this revision. |
Methods |
|
---|---|
|
Permanently deletes a file version. |
|
Gets a specific revision. |
|
Lists a file's revisions. |
|
Updates a revision. |
|
Updates a revision. |