Debian Codegraph @

docs/dyn/drive_v2.revisions.html

raw
1 <html><body>
2 <style>
3
4 body, 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
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, 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">Google 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="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#delete">delete(fileId, revisionId, x__xgafv=None)</a></code></p>
82 <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>
83 <p class="toc_element">
84 <code><a href="#get">get(fileId, revisionId, x__xgafv=None)</a></code></p>
85 <p class="firstline">Gets a specific revision.</p>
86 <p class="toc_element">
87 <code><a href="#list">list(fileId, maxResults=None, pageToken=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Lists a file's revisions. **Important:** The list of revisions returned by this method might be incomplete for files with a large revision history, including frequently edited Google Docs, Sheets, and Slides. Older revisions might be omitted from the response, meaning the first revision returned may not be the oldest existing revision. The revision history visible in the Workspace editor user interface might be more complete than the list returned by the API.</p>
89 <p class="toc_element">
90 <code><a href="#list_next">list_next()</a></code></p>
91 <p class="firstline">Retrieves the next page of results.</p>
92 <p class="toc_element">
93 <code><a href="#patch">patch(fileId, revisionId, body=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Updates a revision.</p>
95 <p class="toc_element">
96 <code><a href="#update">update(fileId, revisionId, body=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates a revision.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="delete">delete(fileId, revisionId, x__xgafv=None)</code>
106 <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.
107
108 Args:
109 fileId: string, The ID of the file. (required)
110 revisionId: string, The ID of the revision. (required)
111 x__xgafv: string, V1 error format.
112 Allowed values
113 1 - v1 error format
114 2 - v2 error format
115 </pre>
116 </div>
117
118 <div class="method">
119 <code class="details" id="get">get(fileId, revisionId, x__xgafv=None)</code>
120 <pre>Gets a specific revision.
121
122 Args:
123 fileId: string, The ID of the file. (required)
124 revisionId: string, The ID of the revision. (required)
125 x__xgafv: string, V1 error format.
126 Allowed values
127 1 - v1 error format
128 2 - v2 error format
129
130 Returns:
131 An object of the form:
132
133 { # 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.
134 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short term download URL for the file. This will only be populated on files with content stored in Drive.
135 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the revision.
136 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
137 &quot;a_key&quot;: &quot;A String&quot;,
138 },
139 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. The size of the revision in bytes. This will only be populated on files with content stored in Drive.
140 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the revision.
141 &quot;kind&quot;: &quot;drive#revision&quot;, # Output only. This is always `drive#revision`.
142 &quot;lastModifyingUser&quot;: { # Information about a Drive 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.
143 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
144 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
145 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
146 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
147 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
148 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
149 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
150 },
151 },
152 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this revision.
153 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
154 &quot;mimeType&quot;: &quot;A String&quot;, # Output only. The MIME type of the revision.
155 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this revision was modified (formatted RFC 3339 timestamp).
156 &quot;originalFilename&quot;: &quot;A String&quot;, # Output only. The original filename when this revision was created. This will only be populated on files with content stored in Drive.
157 &quot;pinned&quot;: True or False, # 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.
158 &quot;publishAuto&quot;: True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Docs Editors files.
159 &quot;published&quot;: True or False, # Whether this revision is published. This is only populated and can only be modified for Docs Editors files.
160 &quot;publishedLink&quot;: &quot;A String&quot;, # Output only. A link to the published revision. This is only populated for Docs Editors files.
161 &quot;publishedOutsideDomain&quot;: True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Docs Editors files.
162 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this revision.
163 }</pre>
164 </div>
165
166 <div class="method">
167 <code class="details" id="list">list(fileId, maxResults=None, pageToken=None, x__xgafv=None)</code>
168 <pre>Lists a file&#x27;s revisions. **Important:** The list of revisions returned by this method might be incomplete for files with a large revision history, including frequently edited Google Docs, Sheets, and Slides. Older revisions might be omitted from the response, meaning the first revision returned may not be the oldest existing revision. The revision history visible in the Workspace editor user interface might be more complete than the list returned by the API.
169
170 Args:
171 fileId: string, The ID of the file. (required)
172 maxResults: integer, Maximum number of revisions to return.
173 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.
174 x__xgafv: string, V1 error format.
175 Allowed values
176 1 - v1 error format
177 2 - v2 error format
178
179 Returns:
180 An object of the form:
181
182 { # A list of revisions of a file.
183 &quot;etag&quot;: &quot;A String&quot;, # The ETag of the list.
184 &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.
185 { # 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.
186 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short term download URL for the file. This will only be populated on files with content stored in Drive.
187 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the revision.
188 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
189 &quot;a_key&quot;: &quot;A String&quot;,
190 },
191 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. The size of the revision in bytes. This will only be populated on files with content stored in Drive.
192 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the revision.
193 &quot;kind&quot;: &quot;drive#revision&quot;, # Output only. This is always `drive#revision`.
194 &quot;lastModifyingUser&quot;: { # Information about a Drive 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.
195 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
196 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
197 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
198 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
199 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
200 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
201 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
202 },
203 },
204 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this revision.
205 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
206 &quot;mimeType&quot;: &quot;A String&quot;, # Output only. The MIME type of the revision.
207 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this revision was modified (formatted RFC 3339 timestamp).
208 &quot;originalFilename&quot;: &quot;A String&quot;, # Output only. The original filename when this revision was created. This will only be populated on files with content stored in Drive.
209 &quot;pinned&quot;: True or False, # 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.
210 &quot;publishAuto&quot;: True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Docs Editors files.
211 &quot;published&quot;: True or False, # Whether this revision is published. This is only populated and can only be modified for Docs Editors files.
212 &quot;publishedLink&quot;: &quot;A String&quot;, # Output only. A link to the published revision. This is only populated for Docs Editors files.
213 &quot;publishedOutsideDomain&quot;: True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Docs Editors files.
214 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this revision.
215 },
216 ],
217 &quot;kind&quot;: &quot;drive#revisionList&quot;, # This is always `drive#revisionList`.
218 &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.
219 &quot;selfLink&quot;: &quot;A String&quot;, # A link back to this list.
220 }</pre>
221 </div>
222
223 <div class="method">
224 <code class="details" id="list_next">list_next()</code>
225 <pre>Retrieves the next page of results.
226
227 Args:
228 previous_request: The request for the previous page. (required)
229 previous_response: The response from the request for the previous page. (required)
230
231 Returns:
232 A request object that you can call &#x27;execute()&#x27; on to request the next
233 page. Returns None if there are no more items in the collection.
234 </pre>
235 </div>
236
237 <div class="method">
238 <code class="details" id="patch">patch(fileId, revisionId, body=None, x__xgafv=None)</code>
239 <pre>Updates a revision.
240
241 Args:
242 fileId: string, The ID for the file. (required)
243 revisionId: string, The ID for the revision. (required)
244 body: object, The request body.
245 The object takes the form of:
246
247 { # 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.
248 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short term download URL for the file. This will only be populated on files with content stored in Drive.
249 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the revision.
250 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
251 &quot;a_key&quot;: &quot;A String&quot;,
252 },
253 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. The size of the revision in bytes. This will only be populated on files with content stored in Drive.
254 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the revision.
255 &quot;kind&quot;: &quot;drive#revision&quot;, # Output only. This is always `drive#revision`.
256 &quot;lastModifyingUser&quot;: { # Information about a Drive 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.
257 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
258 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
259 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
260 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
261 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
262 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
263 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
264 },
265 },
266 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this revision.
267 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
268 &quot;mimeType&quot;: &quot;A String&quot;, # Output only. The MIME type of the revision.
269 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this revision was modified (formatted RFC 3339 timestamp).
270 &quot;originalFilename&quot;: &quot;A String&quot;, # Output only. The original filename when this revision was created. This will only be populated on files with content stored in Drive.
271 &quot;pinned&quot;: True or False, # 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.
272 &quot;publishAuto&quot;: True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Docs Editors files.
273 &quot;published&quot;: True or False, # Whether this revision is published. This is only populated and can only be modified for Docs Editors files.
274 &quot;publishedLink&quot;: &quot;A String&quot;, # Output only. A link to the published revision. This is only populated for Docs Editors files.
275 &quot;publishedOutsideDomain&quot;: True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Docs Editors files.
276 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this revision.
277 }
278
279 x__xgafv: string, V1 error format.
280 Allowed values
281 1 - v1 error format
282 2 - v2 error format
283
284 Returns:
285 An object of the form:
286
287 { # 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.
288 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short term download URL for the file. This will only be populated on files with content stored in Drive.
289 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the revision.
290 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
291 &quot;a_key&quot;: &quot;A String&quot;,
292 },
293 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. The size of the revision in bytes. This will only be populated on files with content stored in Drive.
294 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the revision.
295 &quot;kind&quot;: &quot;drive#revision&quot;, # Output only. This is always `drive#revision`.
296 &quot;lastModifyingUser&quot;: { # Information about a Drive 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.
297 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
298 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
299 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
300 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
301 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
302 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
303 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
304 },
305 },
306 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this revision.
307 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
308 &quot;mimeType&quot;: &quot;A String&quot;, # Output only. The MIME type of the revision.
309 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this revision was modified (formatted RFC 3339 timestamp).
310 &quot;originalFilename&quot;: &quot;A String&quot;, # Output only. The original filename when this revision was created. This will only be populated on files with content stored in Drive.
311 &quot;pinned&quot;: True or False, # 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.
312 &quot;publishAuto&quot;: True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Docs Editors files.
313 &quot;published&quot;: True or False, # Whether this revision is published. This is only populated and can only be modified for Docs Editors files.
314 &quot;publishedLink&quot;: &quot;A String&quot;, # Output only. A link to the published revision. This is only populated for Docs Editors files.
315 &quot;publishedOutsideDomain&quot;: True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Docs Editors files.
316 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this revision.
317 }</pre>
318 </div>
319
320 <div class="method">
321 <code class="details" id="update">update(fileId, revisionId, body=None, x__xgafv=None)</code>
322 <pre>Updates a revision.
323
324 Args:
325 fileId: string, The ID for the file. (required)
326 revisionId: string, The ID for the revision. (required)
327 body: object, The request body.
328 The object takes the form of:
329
330 { # 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.
331 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short term download URL for the file. This will only be populated on files with content stored in Drive.
332 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the revision.
333 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
334 &quot;a_key&quot;: &quot;A String&quot;,
335 },
336 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. The size of the revision in bytes. This will only be populated on files with content stored in Drive.
337 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the revision.
338 &quot;kind&quot;: &quot;drive#revision&quot;, # Output only. This is always `drive#revision`.
339 &quot;lastModifyingUser&quot;: { # Information about a Drive 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.
340 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
341 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
342 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
343 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
344 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
345 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
346 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
347 },
348 },
349 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this revision.
350 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
351 &quot;mimeType&quot;: &quot;A String&quot;, # Output only. The MIME type of the revision.
352 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this revision was modified (formatted RFC 3339 timestamp).
353 &quot;originalFilename&quot;: &quot;A String&quot;, # Output only. The original filename when this revision was created. This will only be populated on files with content stored in Drive.
354 &quot;pinned&quot;: True or False, # 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.
355 &quot;publishAuto&quot;: True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Docs Editors files.
356 &quot;published&quot;: True or False, # Whether this revision is published. This is only populated and can only be modified for Docs Editors files.
357 &quot;publishedLink&quot;: &quot;A String&quot;, # Output only. A link to the published revision. This is only populated for Docs Editors files.
358 &quot;publishedOutsideDomain&quot;: True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Docs Editors files.
359 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this revision.
360 }
361
362 x__xgafv: string, V1 error format.
363 Allowed values
364 1 - v1 error format
365 2 - v2 error format
366
367 Returns:
368 An object of the form:
369
370 { # 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.
371 &quot;downloadUrl&quot;: &quot;A String&quot;, # Output only. Short term download URL for the file. This will only be populated on files with content stored in Drive.
372 &quot;etag&quot;: &quot;A String&quot;, # Output only. The ETag of the revision.
373 &quot;exportLinks&quot;: { # Output only. Links for exporting Docs Editors files to specific formats.
374 &quot;a_key&quot;: &quot;A String&quot;,
375 },
376 &quot;fileSize&quot;: &quot;A String&quot;, # Output only. The size of the revision in bytes. This will only be populated on files with content stored in Drive.
377 &quot;id&quot;: &quot;A String&quot;, # Output only. The ID of the revision.
378 &quot;kind&quot;: &quot;drive#revision&quot;, # Output only. This is always `drive#revision`.
379 &quot;lastModifyingUser&quot;: { # Information about a Drive 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.
380 &quot;displayName&quot;: &quot;A String&quot;, # Output only. A plain text displayable name for this user.
381 &quot;emailAddress&quot;: &quot;A String&quot;, # Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
382 &quot;isAuthenticatedUser&quot;: True or False, # Output only. Whether this user is the same as the authenticated user for whom the request was made.
383 &quot;kind&quot;: &quot;drive#user&quot;, # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
384 &quot;permissionId&quot;: &quot;A String&quot;, # Output only. The user&#x27;s ID as visible in Permission resources.
385 &quot;picture&quot;: { # Output only. The user&#x27;s profile picture.
386 &quot;url&quot;: &quot;A String&quot;, # Output only. A URL that points to a profile picture of this user.
387 },
388 },
389 &quot;lastModifyingUserName&quot;: &quot;A String&quot;, # Output only. Name of the last user to modify this revision.
390 &quot;md5Checksum&quot;: &quot;A String&quot;, # Output only. An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
391 &quot;mimeType&quot;: &quot;A String&quot;, # Output only. The MIME type of the revision.
392 &quot;modifiedDate&quot;: &quot;A String&quot;, # Last time this revision was modified (formatted RFC 3339 timestamp).
393 &quot;originalFilename&quot;: &quot;A String&quot;, # Output only. The original filename when this revision was created. This will only be populated on files with content stored in Drive.
394 &quot;pinned&quot;: True or False, # 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.
395 &quot;publishAuto&quot;: True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Docs Editors files.
396 &quot;published&quot;: True or False, # Whether this revision is published. This is only populated and can only be modified for Docs Editors files.
397 &quot;publishedLink&quot;: &quot;A String&quot;, # Output only. A link to the published revision. This is only populated for Docs Editors files.
398 &quot;publishedOutsideDomain&quot;: True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Docs Editors files.
399 &quot;selfLink&quot;: &quot;A String&quot;, # Output only. A link back to this revision.
400 }</pre>
401 </div>
402
403 </body></html>