blob: 644eaf63f7477c95396732a62d22ab2f81801258 [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="drive_v2.html">Drive API</a> . <a href="drive_v2.revisions.html">revisions</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(fileId, revisionId)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Permanently deletes a file version. You can only delete revisions for files with binary content, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can't be deleted.</p>
John Asmuth614db982014-04-24 15:46:26 -040080<p class="toc_element">
81 <code><a href="#get">get(fileId, revisionId)</a></code></p>
82<p class="firstline">Gets a specific revision.</p>
83<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070084 <code><a href="#list">list(fileId, maxResults=None, pageToken=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040085<p class="firstline">Lists a file's revisions.</p>
86<p class="toc_element">
Sai Cheemalapatidf613972016-10-21 13:59:49 -070087 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#patch">patch(fileId, revisionId, body=None)</a></code></p>
91<p class="firstline">Updates a revision.</p>
John Asmuth614db982014-04-24 15:46:26 -040092<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#update">update(fileId, revisionId, body=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040094<p class="firstline">Updates a revision.</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="delete">delete(fileId, revisionId)</code>
Bu Sun Kim65020912020-05-20 12:08:20 -070098 <pre>Permanently deletes a file version. You can only delete revisions for files with binary content, like images or videos. Revisions for other files, like Google Docs or Sheets, and the last remaining file version can&#x27;t be deleted.
John Asmuth614db982014-04-24 15:46:26 -040099
100Args:
101 fileId: string, The ID of the file. (required)
102 revisionId: string, The ID of the revision. (required)
103</pre>
104</div>
105
106<div class="method">
107 <code class="details" id="get">get(fileId, revisionId)</code>
108 <pre>Gets a specific revision.
109
110Args:
111 fileId: string, The ID of the file. (required)
112 revisionId: string, The ID of the revision. (required)
113
114Returns:
115 An object of the form:
116
117 { # A revision of a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700118 &quot;downloadUrl&quot;: &quot;A String&quot;,
119 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the revision.
120 &quot;exportLinks&quot;: { # Links for exporting Google Docs to specific formats.
121 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
122 },
123 &quot;fileSize&quot;: &quot;A String&quot;, # The size of the revision in bytes. This will only be populated on files with content stored in Drive.
124 &quot;id&quot;: &quot;A String&quot;, # The ID of the revision.
125 &quot;kind&quot;: &quot;drive#revision&quot;, # This is always drive#revision.
126 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify this revision.
127 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
128 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
129 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
130 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
131 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
132 &quot;picture&quot;: { # The user&#x27;s profile picture.
133 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
John Asmuth614db982014-04-24 15:46:26 -0400134 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700135 },
136 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Name of the last user to modify this revision.
137 &quot;md5Checksum&quot;: &quot;A String&quot;, # An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
138 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the revision.
139 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this revision was modified (formatted RFC 3339 timestamp).
140 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename when this revision was created. This will only be populated on files with content stored in Drive.
141 &quot;pinned&quot;: True or False, # Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. 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.
142 &quot;publishAuto&quot;: True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
143 &quot;published&quot;: True or False, # Whether this revision is published. This is only populated and can only be modified for Google Docs.
144 &quot;publishedLink&quot;: &quot;A String&quot;, # A link to the published revision.
145 &quot;publishedOutsideDomain&quot;: True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
146 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this revision.
147 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400148</div>
149
150<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 <code class="details" id="list">list(fileId, maxResults=None, pageToken=None)</code>
152 <pre>Lists a file&#x27;s revisions.
John Asmuth614db982014-04-24 15:46:26 -0400153
154Args:
155 fileId: string, The ID of the file. (required)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700156 maxResults: integer, Maximum number of revisions to return.
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 pageToken: string, Page token for revisions. To get the next page of results, set this parameter to the value of &quot;nextPageToken&quot; from the previous response.
John Asmuth614db982014-04-24 15:46:26 -0400158
159Returns:
160 An object of the form:
161
162 { # A list of revisions of a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700163 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the list.
164 &quot;items&quot;: [ # The list of revisions. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
John Asmuth614db982014-04-24 15:46:26 -0400165 { # A revision of a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;downloadUrl&quot;: &quot;A String&quot;,
167 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the revision.
168 &quot;exportLinks&quot;: { # Links for exporting Google Docs to specific formats.
169 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
John Asmuth614db982014-04-24 15:46:26 -0400170 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700171 &quot;fileSize&quot;: &quot;A String&quot;, # The size of the revision in bytes. This will only be populated on files with content stored in Drive.
172 &quot;id&quot;: &quot;A String&quot;, # The ID of the revision.
173 &quot;kind&quot;: &quot;drive#revision&quot;, # This is always drive#revision.
174 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify this revision.
175 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
176 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
177 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
178 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
179 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
180 &quot;picture&quot;: { # The user&#x27;s profile picture.
181 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
182 },
183 },
184 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Name of the last user to modify this revision.
185 &quot;md5Checksum&quot;: &quot;A String&quot;, # An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
186 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the revision.
187 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this revision was modified (formatted RFC 3339 timestamp).
188 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename when this revision was created. This will only be populated on files with content stored in Drive.
189 &quot;pinned&quot;: True or False, # Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. 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.
190 &quot;publishAuto&quot;: True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
191 &quot;published&quot;: True or False, # Whether this revision is published. This is only populated and can only be modified for Google Docs.
192 &quot;publishedLink&quot;: &quot;A String&quot;, # A link to the published revision.
193 &quot;publishedOutsideDomain&quot;: True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
194 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this revision.
195 },
John Asmuth614db982014-04-24 15:46:26 -0400196 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700197 &quot;kind&quot;: &quot;drive#revisionList&quot;, # This is always drive#revisionList.
198 &quot;nextPageToken&quot;: &quot;A String&quot;, # The page token for the next page of revisions. This field will be absent if the end of the revisions list has been reached. If the token is rejected for any reason, it should be discarded and pagination should be restarted from the first page of results.
199 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this list.
John Asmuth614db982014-04-24 15:46:26 -0400200 }</pre>
201</div>
202
203<div class="method">
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700204 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
205 <pre>Retrieves the next page of results.
206
207Args:
208 previous_request: The request for the previous page. (required)
209 previous_response: The response from the request for the previous page. (required)
210
211Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 A request object that you can call &#x27;execute()&#x27; on to request the next
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700213 page. Returns None if there are no more items in the collection.
214 </pre>
215</div>
216
217<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700218 <code class="details" id="patch">patch(fileId, revisionId, body=None)</code>
219 <pre>Updates a revision.
John Asmuth614db982014-04-24 15:46:26 -0400220
221Args:
222 fileId: string, The ID for the file. (required)
223 revisionId: string, The ID for the revision. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700224 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400225 The object takes the form of:
226
227{ # A revision of a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700228 &quot;downloadUrl&quot;: &quot;A String&quot;,
229 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the revision.
230 &quot;exportLinks&quot;: { # Links for exporting Google Docs to specific formats.
231 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
232 },
233 &quot;fileSize&quot;: &quot;A String&quot;, # The size of the revision in bytes. This will only be populated on files with content stored in Drive.
234 &quot;id&quot;: &quot;A String&quot;, # The ID of the revision.
235 &quot;kind&quot;: &quot;drive#revision&quot;, # This is always drive#revision.
236 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify this revision.
237 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
238 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
239 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
240 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
241 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
242 &quot;picture&quot;: { # The user&#x27;s profile picture.
243 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
John Asmuth614db982014-04-24 15:46:26 -0400244 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 },
246 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Name of the last user to modify this revision.
247 &quot;md5Checksum&quot;: &quot;A String&quot;, # An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
248 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the revision.
249 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this revision was modified (formatted RFC 3339 timestamp).
250 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename when this revision was created. This will only be populated on files with content stored in Drive.
251 &quot;pinned&quot;: True or False, # Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. 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.
252 &quot;publishAuto&quot;: True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
253 &quot;published&quot;: True or False, # Whether this revision is published. This is only populated and can only be modified for Google Docs.
254 &quot;publishedLink&quot;: &quot;A String&quot;, # A link to the published revision.
255 &quot;publishedOutsideDomain&quot;: True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
256 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this revision.
257}
John Asmuth614db982014-04-24 15:46:26 -0400258
259
260Returns:
261 An object of the form:
262
263 { # A revision of a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700264 &quot;downloadUrl&quot;: &quot;A String&quot;,
265 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the revision.
266 &quot;exportLinks&quot;: { # Links for exporting Google Docs to specific formats.
267 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
268 },
269 &quot;fileSize&quot;: &quot;A String&quot;, # The size of the revision in bytes. This will only be populated on files with content stored in Drive.
270 &quot;id&quot;: &quot;A String&quot;, # The ID of the revision.
271 &quot;kind&quot;: &quot;drive#revision&quot;, # This is always drive#revision.
272 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify this revision.
273 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
274 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
275 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
276 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
277 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
278 &quot;picture&quot;: { # The user&#x27;s profile picture.
279 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
John Asmuth614db982014-04-24 15:46:26 -0400280 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700281 },
282 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Name of the last user to modify this revision.
283 &quot;md5Checksum&quot;: &quot;A String&quot;, # An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
284 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the revision.
285 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this revision was modified (formatted RFC 3339 timestamp).
286 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename when this revision was created. This will only be populated on files with content stored in Drive.
287 &quot;pinned&quot;: True or False, # Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. 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.
288 &quot;publishAuto&quot;: True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
289 &quot;published&quot;: True or False, # Whether this revision is published. This is only populated and can only be modified for Google Docs.
290 &quot;publishedLink&quot;: &quot;A String&quot;, # A link to the published revision.
291 &quot;publishedOutsideDomain&quot;: True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
292 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this revision.
293 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400294</div>
295
296<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700297 <code class="details" id="update">update(fileId, revisionId, body=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400298 <pre>Updates a revision.
299
300Args:
301 fileId: string, The ID for the file. (required)
302 revisionId: string, The ID for the revision. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700303 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400304 The object takes the form of:
305
306{ # A revision of a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700307 &quot;downloadUrl&quot;: &quot;A String&quot;,
308 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the revision.
309 &quot;exportLinks&quot;: { # Links for exporting Google Docs to specific formats.
310 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
311 },
312 &quot;fileSize&quot;: &quot;A String&quot;, # The size of the revision in bytes. This will only be populated on files with content stored in Drive.
313 &quot;id&quot;: &quot;A String&quot;, # The ID of the revision.
314 &quot;kind&quot;: &quot;drive#revision&quot;, # This is always drive#revision.
315 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify this revision.
316 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
317 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
318 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
319 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
320 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
321 &quot;picture&quot;: { # The user&#x27;s profile picture.
322 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
John Asmuth614db982014-04-24 15:46:26 -0400323 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700324 },
325 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Name of the last user to modify this revision.
326 &quot;md5Checksum&quot;: &quot;A String&quot;, # An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
327 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the revision.
328 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this revision was modified (formatted RFC 3339 timestamp).
329 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename when this revision was created. This will only be populated on files with content stored in Drive.
330 &quot;pinned&quot;: True or False, # Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. 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.
331 &quot;publishAuto&quot;: True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
332 &quot;published&quot;: True or False, # Whether this revision is published. This is only populated and can only be modified for Google Docs.
333 &quot;publishedLink&quot;: &quot;A String&quot;, # A link to the published revision.
334 &quot;publishedOutsideDomain&quot;: True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
335 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this revision.
336}
John Asmuth614db982014-04-24 15:46:26 -0400337
338
339Returns:
340 An object of the form:
341
342 { # A revision of a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700343 &quot;downloadUrl&quot;: &quot;A String&quot;,
344 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the revision.
345 &quot;exportLinks&quot;: { # Links for exporting Google Docs to specific formats.
346 &quot;a_key&quot;: &quot;A String&quot;, # A mapping from export format to URL
347 },
348 &quot;fileSize&quot;: &quot;A String&quot;, # The size of the revision in bytes. This will only be populated on files with content stored in Drive.
349 &quot;id&quot;: &quot;A String&quot;, # The ID of the revision.
350 &quot;kind&quot;: &quot;drive#revision&quot;, # This is always drive#revision.
351 &quot;lastModifyingUser&quot;: { # Information about a Drive user. # The last user to modify this revision.
352 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
353 &quot;emailAddress&quot;: &quot;A String&quot;, # The email address of the user.
354 &quot;isAuthenticatedUser&quot;: True or False, # Whether this user is the same as the authenticated user for whom the request was made.
355 &quot;kind&quot;: &quot;drive#user&quot;, # This is always drive#user.
356 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in the permissions collection.
357 &quot;picture&quot;: { # The user&#x27;s profile picture.
358 &quot;url&quot;: &quot;A String&quot;, # A URL that points to a profile picture of this user.
John Asmuth614db982014-04-24 15:46:26 -0400359 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700360 },
361 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Name of the last user to modify this revision.
362 &quot;md5Checksum&quot;: &quot;A String&quot;, # An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
363 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the revision.
364 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this revision was modified (formatted RFC 3339 timestamp).
365 &quot;originalFilename&quot;: &quot;A String&quot;, # The original filename when this revision was created. This will only be populated on files with content stored in Drive.
366 &quot;pinned&quot;: True or False, # Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. 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.
367 &quot;publishAuto&quot;: True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
368 &quot;published&quot;: True or False, # Whether this revision is published. This is only populated and can only be modified for Google Docs.
369 &quot;publishedLink&quot;: &quot;A String&quot;, # A link to the published revision.
370 &quot;publishedOutsideDomain&quot;: True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
371 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this revision.
372 }</pre>
John Asmuth614db982014-04-24 15:46:26 -0400373</div>
374
375</body></html>