blob: 5d95ed36b5a27196d1eb25841710e8f90cee234e [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.comments.html">comments</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(fileId, commentId)</a></code></p>
79<p class="firstline">Deletes a comment.</p>
80<p class="toc_element">
81 <code><a href="#get">get(fileId, commentId, includeDeleted=None)</a></code></p>
82<p class="firstline">Gets a comment by ID.</p>
83<p class="toc_element">
84 <code><a href="#insert">insert(fileId, body)</a></code></p>
85<p class="firstline">Creates a new comment on the given file.</p>
86<p class="toc_element">
87 <code><a href="#list">list(fileId, includeDeleted=None, pageToken=None, updatedMin=None, maxResults=None)</a></code></p>
88<p class="firstline">Lists a file's comments.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</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, commentId, body)</a></code></p>
94<p class="firstline">Updates an existing comment. This method supports patch semantics.</p>
95<p class="toc_element">
96 <code><a href="#update">update(fileId, commentId, body)</a></code></p>
97<p class="firstline">Updates an existing comment.</p>
98<h3>Method Details</h3>
99<div class="method">
100 <code class="details" id="delete">delete(fileId, commentId)</code>
101 <pre>Deletes a comment.
102
103Args:
104 fileId: string, The ID of the file. (required)
105 commentId: string, The ID of the comment. (required)
106</pre>
107</div>
108
109<div class="method">
110 <code class="details" id="get">get(fileId, commentId, includeDeleted=None)</code>
111 <pre>Gets a comment by ID.
112
113Args:
114 fileId: string, The ID of the file. (required)
115 commentId: string, The ID of the comment. (required)
116 includeDeleted: boolean, If set, this will succeed when retrieving a deleted comment, and will include any deleted replies.
117
118Returns:
119 An object of the form:
120
121 { # A JSON representation of a comment on a file in Google Drive.
122 "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
123 # - "open" - The comment is still open.
124 # - "resolved" - The comment has been resolved by one of its replies.
125 "selfLink": "A String", # A link back to this comment.
126 "kind": "drive#comment", # This is always drive#comment.
127 "author": { # The JSON template for a user. # The user who wrote this comment.
128 "picture": { # The user's profile picture.
129 "url": "A String", # A URL that points to a profile picture of this user.
130 },
131 "kind": "drive#user", # This is always drive#user.
132 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
133 "displayName": "A String", # A plain text displayable name for this user.
134 "permissionId": "A String", # The user's ID as visible in the permissions collection.
135 },
136 "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
137 "replies": [ # Replies to this post.
138 { # A JSON representation of a reply to a comment on a file in Google Drive.
139 "kind": "drive#commentReply", # This is always drive#commentReply.
140 "author": { # The JSON template for a user. # The user who wrote this reply.
141 "picture": { # The user's profile picture.
142 "url": "A String", # A URL that points to a profile picture of this user.
143 },
144 "kind": "drive#user", # This is always drive#user.
145 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
146 "displayName": "A String", # A plain text displayable name for this user.
147 "permissionId": "A String", # The user's ID as visible in the permissions collection.
148 },
149 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
150 "htmlContent": "A String", # HTML formatted content for this reply.
151 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
152 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
153 # - "resolve" - To resolve a comment.
154 # - "reopen" - To reopen (un-resolve) a comment.
155 "replyId": "A String", # The ID of the reply.
156 "modifiedDate": "A String", # The date when this reply was last modified.
157 "createdDate": "A String", # The date when this reply was first created.
158 },
159 ],
160 "htmlContent": "A String", # HTML formatted content for this comment.
161 "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
162 "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
163 "context": { # The context of the file which is being commented on.
164 "type": "A String", # The MIME type of the context snippet.
165 "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
166 },
167 "createdDate": "A String", # The date when this comment was first created.
168 "commentId": "A String", # The ID of the comment.
169 "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
170 "fileTitle": "A String", # The title of the file which this comment is addressing.
171 "fileId": "A String", # The file which this comment is addressing.
172 }</pre>
173</div>
174
175<div class="method">
176 <code class="details" id="insert">insert(fileId, body)</code>
177 <pre>Creates a new comment on the given file.
178
179Args:
180 fileId: string, The ID of the file. (required)
181 body: object, The request body. (required)
182 The object takes the form of:
183
184{ # A JSON representation of a comment on a file in Google Drive.
185 "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
186 # - "open" - The comment is still open.
187 # - "resolved" - The comment has been resolved by one of its replies.
188 "selfLink": "A String", # A link back to this comment.
189 "kind": "drive#comment", # This is always drive#comment.
190 "author": { # The JSON template for a user. # The user who wrote this comment.
191 "picture": { # The user's profile picture.
192 "url": "A String", # A URL that points to a profile picture of this user.
193 },
194 "kind": "drive#user", # This is always drive#user.
195 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
196 "displayName": "A String", # A plain text displayable name for this user.
197 "permissionId": "A String", # The user's ID as visible in the permissions collection.
198 },
199 "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
200 "replies": [ # Replies to this post.
201 { # A JSON representation of a reply to a comment on a file in Google Drive.
202 "kind": "drive#commentReply", # This is always drive#commentReply.
203 "author": { # The JSON template for a user. # The user who wrote this reply.
204 "picture": { # The user's profile picture.
205 "url": "A String", # A URL that points to a profile picture of this user.
206 },
207 "kind": "drive#user", # This is always drive#user.
208 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
209 "displayName": "A String", # A plain text displayable name for this user.
210 "permissionId": "A String", # The user's ID as visible in the permissions collection.
211 },
212 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
213 "htmlContent": "A String", # HTML formatted content for this reply.
214 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
215 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
216 # - "resolve" - To resolve a comment.
217 # - "reopen" - To reopen (un-resolve) a comment.
218 "replyId": "A String", # The ID of the reply.
219 "modifiedDate": "A String", # The date when this reply was last modified.
220 "createdDate": "A String", # The date when this reply was first created.
221 },
222 ],
223 "htmlContent": "A String", # HTML formatted content for this comment.
224 "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
225 "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
226 "context": { # The context of the file which is being commented on.
227 "type": "A String", # The MIME type of the context snippet.
228 "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
229 },
230 "createdDate": "A String", # The date when this comment was first created.
231 "commentId": "A String", # The ID of the comment.
232 "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
233 "fileTitle": "A String", # The title of the file which this comment is addressing.
234 "fileId": "A String", # The file which this comment is addressing.
235 }
236
237
238Returns:
239 An object of the form:
240
241 { # A JSON representation of a comment on a file in Google Drive.
242 "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
243 # - "open" - The comment is still open.
244 # - "resolved" - The comment has been resolved by one of its replies.
245 "selfLink": "A String", # A link back to this comment.
246 "kind": "drive#comment", # This is always drive#comment.
247 "author": { # The JSON template for a user. # The user who wrote this comment.
248 "picture": { # The user's profile picture.
249 "url": "A String", # A URL that points to a profile picture of this user.
250 },
251 "kind": "drive#user", # This is always drive#user.
252 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
253 "displayName": "A String", # A plain text displayable name for this user.
254 "permissionId": "A String", # The user's ID as visible in the permissions collection.
255 },
256 "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
257 "replies": [ # Replies to this post.
258 { # A JSON representation of a reply to a comment on a file in Google Drive.
259 "kind": "drive#commentReply", # This is always drive#commentReply.
260 "author": { # The JSON template for a user. # The user who wrote this reply.
261 "picture": { # The user's profile picture.
262 "url": "A String", # A URL that points to a profile picture of this user.
263 },
264 "kind": "drive#user", # This is always drive#user.
265 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
266 "displayName": "A String", # A plain text displayable name for this user.
267 "permissionId": "A String", # The user's ID as visible in the permissions collection.
268 },
269 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
270 "htmlContent": "A String", # HTML formatted content for this reply.
271 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
272 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
273 # - "resolve" - To resolve a comment.
274 # - "reopen" - To reopen (un-resolve) a comment.
275 "replyId": "A String", # The ID of the reply.
276 "modifiedDate": "A String", # The date when this reply was last modified.
277 "createdDate": "A String", # The date when this reply was first created.
278 },
279 ],
280 "htmlContent": "A String", # HTML formatted content for this comment.
281 "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
282 "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
283 "context": { # The context of the file which is being commented on.
284 "type": "A String", # The MIME type of the context snippet.
285 "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
286 },
287 "createdDate": "A String", # The date when this comment was first created.
288 "commentId": "A String", # The ID of the comment.
289 "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
290 "fileTitle": "A String", # The title of the file which this comment is addressing.
291 "fileId": "A String", # The file which this comment is addressing.
292 }</pre>
293</div>
294
295<div class="method">
296 <code class="details" id="list">list(fileId, includeDeleted=None, pageToken=None, updatedMin=None, maxResults=None)</code>
297 <pre>Lists a file's comments.
298
299Args:
300 fileId: string, The ID of the file. (required)
301 includeDeleted: boolean, If set, all comments and replies, including deleted comments and replies (with content stripped) will be returned.
302 pageToken: string, The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
303 updatedMin: string, Only discussions that were updated after this timestamp will be returned. Formatted as an RFC 3339 timestamp.
304 maxResults: integer, The maximum number of discussions to include in the response, used for paging.
305
306Returns:
307 An object of the form:
308
309 { # A JSON representation of a list of comments on a file in Google Drive.
310 "nextPageToken": "A String", # The token to use to request the next page of results.
311 "items": [ # List of comments.
312 { # A JSON representation of a comment on a file in Google Drive.
313 "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
314 # - "open" - The comment is still open.
315 # - "resolved" - The comment has been resolved by one of its replies.
316 "selfLink": "A String", # A link back to this comment.
317 "kind": "drive#comment", # This is always drive#comment.
318 "author": { # The JSON template for a user. # The user who wrote this comment.
319 "picture": { # The user's profile picture.
320 "url": "A String", # A URL that points to a profile picture of this user.
321 },
322 "kind": "drive#user", # This is always drive#user.
323 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
324 "displayName": "A String", # A plain text displayable name for this user.
325 "permissionId": "A String", # The user's ID as visible in the permissions collection.
326 },
327 "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
328 "replies": [ # Replies to this post.
329 { # A JSON representation of a reply to a comment on a file in Google Drive.
330 "kind": "drive#commentReply", # This is always drive#commentReply.
331 "author": { # The JSON template for a user. # The user who wrote this reply.
332 "picture": { # The user's profile picture.
333 "url": "A String", # A URL that points to a profile picture of this user.
334 },
335 "kind": "drive#user", # This is always drive#user.
336 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
337 "displayName": "A String", # A plain text displayable name for this user.
338 "permissionId": "A String", # The user's ID as visible in the permissions collection.
339 },
340 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
341 "htmlContent": "A String", # HTML formatted content for this reply.
342 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
343 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
344 # - "resolve" - To resolve a comment.
345 # - "reopen" - To reopen (un-resolve) a comment.
346 "replyId": "A String", # The ID of the reply.
347 "modifiedDate": "A String", # The date when this reply was last modified.
348 "createdDate": "A String", # The date when this reply was first created.
349 },
350 ],
351 "htmlContent": "A String", # HTML formatted content for this comment.
352 "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
353 "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
354 "context": { # The context of the file which is being commented on.
355 "type": "A String", # The MIME type of the context snippet.
356 "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
357 },
358 "createdDate": "A String", # The date when this comment was first created.
359 "commentId": "A String", # The ID of the comment.
360 "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
361 "fileTitle": "A String", # The title of the file which this comment is addressing.
362 "fileId": "A String", # The file which this comment is addressing.
363 },
364 ],
365 "kind": "drive#commentList", # This is always drive#commentList.
366 "selfLink": "A String", # A link back to this list.
367 "nextLink": "A String", # A link to the next page of comments.
368 }</pre>
369</div>
370
371<div class="method">
372 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
373 <pre>Retrieves the next page of results.
374
375Args:
376 previous_request: The request for the previous page. (required)
377 previous_response: The response from the request for the previous page. (required)
378
379Returns:
380 A request object that you can call 'execute()' on to request the next
381 page. Returns None if there are no more items in the collection.
382 </pre>
383</div>
384
385<div class="method">
386 <code class="details" id="patch">patch(fileId, commentId, body)</code>
387 <pre>Updates an existing comment. This method supports patch semantics.
388
389Args:
390 fileId: string, The ID of the file. (required)
391 commentId: string, The ID of the comment. (required)
392 body: object, The request body. (required)
393 The object takes the form of:
394
395{ # A JSON representation of a comment on a file in Google Drive.
396 "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
397 # - "open" - The comment is still open.
398 # - "resolved" - The comment has been resolved by one of its replies.
399 "selfLink": "A String", # A link back to this comment.
400 "kind": "drive#comment", # This is always drive#comment.
401 "author": { # The JSON template for a user. # The user who wrote this comment.
402 "picture": { # The user's profile picture.
403 "url": "A String", # A URL that points to a profile picture of this user.
404 },
405 "kind": "drive#user", # This is always drive#user.
406 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
407 "displayName": "A String", # A plain text displayable name for this user.
408 "permissionId": "A String", # The user's ID as visible in the permissions collection.
409 },
410 "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
411 "replies": [ # Replies to this post.
412 { # A JSON representation of a reply to a comment on a file in Google Drive.
413 "kind": "drive#commentReply", # This is always drive#commentReply.
414 "author": { # The JSON template for a user. # The user who wrote this reply.
415 "picture": { # The user's profile picture.
416 "url": "A String", # A URL that points to a profile picture of this user.
417 },
418 "kind": "drive#user", # This is always drive#user.
419 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
420 "displayName": "A String", # A plain text displayable name for this user.
421 "permissionId": "A String", # The user's ID as visible in the permissions collection.
422 },
423 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
424 "htmlContent": "A String", # HTML formatted content for this reply.
425 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
426 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
427 # - "resolve" - To resolve a comment.
428 # - "reopen" - To reopen (un-resolve) a comment.
429 "replyId": "A String", # The ID of the reply.
430 "modifiedDate": "A String", # The date when this reply was last modified.
431 "createdDate": "A String", # The date when this reply was first created.
432 },
433 ],
434 "htmlContent": "A String", # HTML formatted content for this comment.
435 "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
436 "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
437 "context": { # The context of the file which is being commented on.
438 "type": "A String", # The MIME type of the context snippet.
439 "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
440 },
441 "createdDate": "A String", # The date when this comment was first created.
442 "commentId": "A String", # The ID of the comment.
443 "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
444 "fileTitle": "A String", # The title of the file which this comment is addressing.
445 "fileId": "A String", # The file which this comment is addressing.
446 }
447
448
449Returns:
450 An object of the form:
451
452 { # A JSON representation of a comment on a file in Google Drive.
453 "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
454 # - "open" - The comment is still open.
455 # - "resolved" - The comment has been resolved by one of its replies.
456 "selfLink": "A String", # A link back to this comment.
457 "kind": "drive#comment", # This is always drive#comment.
458 "author": { # The JSON template for a user. # The user who wrote this comment.
459 "picture": { # The user's profile picture.
460 "url": "A String", # A URL that points to a profile picture of this user.
461 },
462 "kind": "drive#user", # This is always drive#user.
463 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
464 "displayName": "A String", # A plain text displayable name for this user.
465 "permissionId": "A String", # The user's ID as visible in the permissions collection.
466 },
467 "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
468 "replies": [ # Replies to this post.
469 { # A JSON representation of a reply to a comment on a file in Google Drive.
470 "kind": "drive#commentReply", # This is always drive#commentReply.
471 "author": { # The JSON template for a user. # The user who wrote this reply.
472 "picture": { # The user's profile picture.
473 "url": "A String", # A URL that points to a profile picture of this user.
474 },
475 "kind": "drive#user", # This is always drive#user.
476 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
477 "displayName": "A String", # A plain text displayable name for this user.
478 "permissionId": "A String", # The user's ID as visible in the permissions collection.
479 },
480 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
481 "htmlContent": "A String", # HTML formatted content for this reply.
482 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
483 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
484 # - "resolve" - To resolve a comment.
485 # - "reopen" - To reopen (un-resolve) a comment.
486 "replyId": "A String", # The ID of the reply.
487 "modifiedDate": "A String", # The date when this reply was last modified.
488 "createdDate": "A String", # The date when this reply was first created.
489 },
490 ],
491 "htmlContent": "A String", # HTML formatted content for this comment.
492 "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
493 "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
494 "context": { # The context of the file which is being commented on.
495 "type": "A String", # The MIME type of the context snippet.
496 "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
497 },
498 "createdDate": "A String", # The date when this comment was first created.
499 "commentId": "A String", # The ID of the comment.
500 "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
501 "fileTitle": "A String", # The title of the file which this comment is addressing.
502 "fileId": "A String", # The file which this comment is addressing.
503 }</pre>
504</div>
505
506<div class="method">
507 <code class="details" id="update">update(fileId, commentId, body)</code>
508 <pre>Updates an existing comment.
509
510Args:
511 fileId: string, The ID of the file. (required)
512 commentId: string, The ID of the comment. (required)
513 body: object, The request body. (required)
514 The object takes the form of:
515
516{ # A JSON representation of a comment on a file in Google Drive.
517 "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
518 # - "open" - The comment is still open.
519 # - "resolved" - The comment has been resolved by one of its replies.
520 "selfLink": "A String", # A link back to this comment.
521 "kind": "drive#comment", # This is always drive#comment.
522 "author": { # The JSON template for a user. # The user who wrote this comment.
523 "picture": { # The user's profile picture.
524 "url": "A String", # A URL that points to a profile picture of this user.
525 },
526 "kind": "drive#user", # This is always drive#user.
527 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
528 "displayName": "A String", # A plain text displayable name for this user.
529 "permissionId": "A String", # The user's ID as visible in the permissions collection.
530 },
531 "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
532 "replies": [ # Replies to this post.
533 { # A JSON representation of a reply to a comment on a file in Google Drive.
534 "kind": "drive#commentReply", # This is always drive#commentReply.
535 "author": { # The JSON template for a user. # The user who wrote this reply.
536 "picture": { # The user's profile picture.
537 "url": "A String", # A URL that points to a profile picture of this user.
538 },
539 "kind": "drive#user", # This is always drive#user.
540 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
541 "displayName": "A String", # A plain text displayable name for this user.
542 "permissionId": "A String", # The user's ID as visible in the permissions collection.
543 },
544 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
545 "htmlContent": "A String", # HTML formatted content for this reply.
546 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
547 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
548 # - "resolve" - To resolve a comment.
549 # - "reopen" - To reopen (un-resolve) a comment.
550 "replyId": "A String", # The ID of the reply.
551 "modifiedDate": "A String", # The date when this reply was last modified.
552 "createdDate": "A String", # The date when this reply was first created.
553 },
554 ],
555 "htmlContent": "A String", # HTML formatted content for this comment.
556 "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
557 "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
558 "context": { # The context of the file which is being commented on.
559 "type": "A String", # The MIME type of the context snippet.
560 "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
561 },
562 "createdDate": "A String", # The date when this comment was first created.
563 "commentId": "A String", # The ID of the comment.
564 "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
565 "fileTitle": "A String", # The title of the file which this comment is addressing.
566 "fileId": "A String", # The file which this comment is addressing.
567 }
568
569
570Returns:
571 An object of the form:
572
573 { # A JSON representation of a comment on a file in Google Drive.
574 "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
575 # - "open" - The comment is still open.
576 # - "resolved" - The comment has been resolved by one of its replies.
577 "selfLink": "A String", # A link back to this comment.
578 "kind": "drive#comment", # This is always drive#comment.
579 "author": { # The JSON template for a user. # The user who wrote this comment.
580 "picture": { # The user's profile picture.
581 "url": "A String", # A URL that points to a profile picture of this user.
582 },
583 "kind": "drive#user", # This is always drive#user.
584 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
585 "displayName": "A String", # A plain text displayable name for this user.
586 "permissionId": "A String", # The user's ID as visible in the permissions collection.
587 },
588 "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
589 "replies": [ # Replies to this post.
590 { # A JSON representation of a reply to a comment on a file in Google Drive.
591 "kind": "drive#commentReply", # This is always drive#commentReply.
592 "author": { # The JSON template for a user. # The user who wrote this reply.
593 "picture": { # The user's profile picture.
594 "url": "A String", # A URL that points to a profile picture of this user.
595 },
596 "kind": "drive#user", # This is always drive#user.
597 "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
598 "displayName": "A String", # A plain text displayable name for this user.
599 "permissionId": "A String", # The user's ID as visible in the permissions collection.
600 },
601 "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
602 "htmlContent": "A String", # HTML formatted content for this reply.
603 "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
604 "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
605 # - "resolve" - To resolve a comment.
606 # - "reopen" - To reopen (un-resolve) a comment.
607 "replyId": "A String", # The ID of the reply.
608 "modifiedDate": "A String", # The date when this reply was last modified.
609 "createdDate": "A String", # The date when this reply was first created.
610 },
611 ],
612 "htmlContent": "A String", # HTML formatted content for this comment.
613 "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
614 "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
615 "context": { # The context of the file which is being commented on.
616 "type": "A String", # The MIME type of the context snippet.
617 "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
618 },
619 "createdDate": "A String", # The date when this comment was first created.
620 "commentId": "A String", # The ID of the comment.
621 "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
622 "fileTitle": "A String", # The title of the file which this comment is addressing.
623 "fileId": "A String", # The file which this comment is addressing.
624 }</pre>
625</div>
626
627</body></html>