Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 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_v3.html">Drive API</a> . <a href="drive_v3.comments.html">comments</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 78 | <code><a href="#close">close()</a></code></p> |
| 79 | <p class="firstline">Close httplib2 connections.</p> |
| 80 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 81 | <code><a href="#create">create(fileId, body=None)</a></code></p> |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 82 | <p class="firstline">Creates a new comment on a file.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#delete">delete(fileId, commentId)</a></code></p> |
| 85 | <p class="firstline">Deletes a comment.</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#get">get(fileId, commentId, includeDeleted=None)</a></code></p> |
| 88 | <p class="firstline">Gets a comment by ID.</p> |
| 89 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 90 | <code><a href="#list">list(fileId, includeDeleted=None, pageSize=None, pageToken=None, startModifiedTime=None)</a></code></p> |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 91 | <p class="firstline">Lists a file's comments.</p> |
| 92 | <p class="toc_element"> |
| 93 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 94 | <p class="firstline">Retrieves the next page of results.</p> |
| 95 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 96 | <code><a href="#update">update(fileId, commentId, body=None)</a></code></p> |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 97 | <p class="firstline">Updates a comment with patch semantics.</p> |
| 98 | <h3>Method Details</h3> |
| 99 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame^] | 100 | <code class="details" id="close">close()</code> |
| 101 | <pre>Close httplib2 connections.</pre> |
| 102 | </div> |
| 103 | |
| 104 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 105 | <code class="details" id="create">create(fileId, body=None)</code> |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 106 | <pre>Creates a new comment on a file. |
| 107 | |
| 108 | Args: |
| 109 | fileId: string, The ID of the file. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 110 | body: object, The request body. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 111 | The object takes the form of: |
| 112 | |
| 113 | { # A comment on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 114 | "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. |
| 115 | "author": { # Information about a Drive user. # The author of the comment. The author's email address and permission ID will not be populated. |
| 116 | "displayName": "A String", # A plain text displayable name for this user. |
| 117 | "emailAddress": "A String", # 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. |
| 118 | "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user". |
| 119 | "me": True or False, # Whether this user is the requesting user. |
| 120 | "permissionId": "A String", # The user's ID as visible in Permission resources. |
| 121 | "photoLink": "A String", # A link to the user's profile photo, if available. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 122 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 123 | "content": "A String", # The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed. |
| 124 | "createdTime": "A String", # The time at which the comment was created (RFC 3339 date-time). |
| 125 | "deleted": True or False, # Whether the comment has been deleted. A deleted comment has no content. |
| 126 | "htmlContent": "A String", # The content of the comment with HTML formatting. |
| 127 | "id": "A String", # The ID of the comment. |
| 128 | "kind": "drive#comment", # Identifies what kind of resource this is. Value: the fixed string "drive#comment". |
| 129 | "modifiedTime": "A String", # The last time the comment or any of its replies was modified (RFC 3339 date-time). |
| 130 | "quotedFileContent": { # The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment. |
| 131 | "mimeType": "A String", # The MIME type of the quoted content. |
| 132 | "value": "A String", # The quoted content itself. This is interpreted as plain text if set through the API. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 133 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 134 | "replies": [ # The full list of replies to the comment in chronological order. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 135 | { # A reply to a comment on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 136 | "action": "A String", # The action the reply performed to the parent comment. Valid values are: |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 137 | # - resolve |
| 138 | # - reopen |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 139 | "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. |
| 140 | "displayName": "A String", # A plain text displayable name for this user. |
| 141 | "emailAddress": "A String", # 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. |
| 142 | "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user". |
| 143 | "me": True or False, # Whether this user is the requesting user. |
| 144 | "permissionId": "A String", # The user's ID as visible in Permission resources. |
| 145 | "photoLink": "A String", # A link to the user's profile photo, if available. |
| 146 | }, |
| 147 | "content": "A String", # The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified. |
| 148 | "createdTime": "A String", # The time at which the reply was created (RFC 3339 date-time). |
| 149 | "deleted": True or False, # Whether the reply has been deleted. A deleted reply has no content. |
| 150 | "htmlContent": "A String", # The content of the reply with HTML formatting. |
| 151 | "id": "A String", # The ID of the reply. |
| 152 | "kind": "drive#reply", # Identifies what kind of resource this is. Value: the fixed string "drive#reply". |
| 153 | "modifiedTime": "A String", # The last time the reply was modified (RFC 3339 date-time). |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 154 | }, |
| 155 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 156 | "resolved": True or False, # Whether the comment has been resolved by one of its replies. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 157 | } |
| 158 | |
| 159 | |
| 160 | Returns: |
| 161 | An object of the form: |
| 162 | |
| 163 | { # A comment on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 164 | "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. |
| 165 | "author": { # Information about a Drive user. # The author of the comment. The author's email address and permission ID will not be populated. |
| 166 | "displayName": "A String", # A plain text displayable name for this user. |
| 167 | "emailAddress": "A String", # 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. |
| 168 | "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user". |
| 169 | "me": True or False, # Whether this user is the requesting user. |
| 170 | "permissionId": "A String", # The user's ID as visible in Permission resources. |
| 171 | "photoLink": "A String", # A link to the user's profile photo, if available. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 172 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 173 | "content": "A String", # The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed. |
| 174 | "createdTime": "A String", # The time at which the comment was created (RFC 3339 date-time). |
| 175 | "deleted": True or False, # Whether the comment has been deleted. A deleted comment has no content. |
| 176 | "htmlContent": "A String", # The content of the comment with HTML formatting. |
| 177 | "id": "A String", # The ID of the comment. |
| 178 | "kind": "drive#comment", # Identifies what kind of resource this is. Value: the fixed string "drive#comment". |
| 179 | "modifiedTime": "A String", # The last time the comment or any of its replies was modified (RFC 3339 date-time). |
| 180 | "quotedFileContent": { # The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment. |
| 181 | "mimeType": "A String", # The MIME type of the quoted content. |
| 182 | "value": "A String", # The quoted content itself. This is interpreted as plain text if set through the API. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 183 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 184 | "replies": [ # The full list of replies to the comment in chronological order. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 185 | { # A reply to a comment on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 186 | "action": "A String", # The action the reply performed to the parent comment. Valid values are: |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 187 | # - resolve |
| 188 | # - reopen |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 189 | "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. |
| 190 | "displayName": "A String", # A plain text displayable name for this user. |
| 191 | "emailAddress": "A String", # 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. |
| 192 | "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user". |
| 193 | "me": True or False, # Whether this user is the requesting user. |
| 194 | "permissionId": "A String", # The user's ID as visible in Permission resources. |
| 195 | "photoLink": "A String", # A link to the user's profile photo, if available. |
| 196 | }, |
| 197 | "content": "A String", # The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified. |
| 198 | "createdTime": "A String", # The time at which the reply was created (RFC 3339 date-time). |
| 199 | "deleted": True or False, # Whether the reply has been deleted. A deleted reply has no content. |
| 200 | "htmlContent": "A String", # The content of the reply with HTML formatting. |
| 201 | "id": "A String", # The ID of the reply. |
| 202 | "kind": "drive#reply", # Identifies what kind of resource this is. Value: the fixed string "drive#reply". |
| 203 | "modifiedTime": "A String", # The last time the reply was modified (RFC 3339 date-time). |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 204 | }, |
| 205 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 206 | "resolved": True or False, # Whether the comment has been resolved by one of its replies. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 207 | }</pre> |
| 208 | </div> |
| 209 | |
| 210 | <div class="method"> |
| 211 | <code class="details" id="delete">delete(fileId, commentId)</code> |
| 212 | <pre>Deletes a comment. |
| 213 | |
| 214 | Args: |
| 215 | fileId: string, The ID of the file. (required) |
| 216 | commentId: string, The ID of the comment. (required) |
| 217 | </pre> |
| 218 | </div> |
| 219 | |
| 220 | <div class="method"> |
| 221 | <code class="details" id="get">get(fileId, commentId, includeDeleted=None)</code> |
| 222 | <pre>Gets a comment by ID. |
| 223 | |
| 224 | Args: |
| 225 | fileId: string, The ID of the file. (required) |
| 226 | commentId: string, The ID of the comment. (required) |
| 227 | includeDeleted: boolean, Whether to return deleted comments. Deleted comments will not include their original content. |
| 228 | |
| 229 | Returns: |
| 230 | An object of the form: |
| 231 | |
| 232 | { # A comment on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 233 | "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. |
| 234 | "author": { # Information about a Drive user. # The author of the comment. The author's email address and permission ID will not be populated. |
| 235 | "displayName": "A String", # A plain text displayable name for this user. |
| 236 | "emailAddress": "A String", # 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. |
| 237 | "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user". |
| 238 | "me": True or False, # Whether this user is the requesting user. |
| 239 | "permissionId": "A String", # The user's ID as visible in Permission resources. |
| 240 | "photoLink": "A String", # A link to the user's profile photo, if available. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 241 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 242 | "content": "A String", # The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed. |
| 243 | "createdTime": "A String", # The time at which the comment was created (RFC 3339 date-time). |
| 244 | "deleted": True or False, # Whether the comment has been deleted. A deleted comment has no content. |
| 245 | "htmlContent": "A String", # The content of the comment with HTML formatting. |
| 246 | "id": "A String", # The ID of the comment. |
| 247 | "kind": "drive#comment", # Identifies what kind of resource this is. Value: the fixed string "drive#comment". |
| 248 | "modifiedTime": "A String", # The last time the comment or any of its replies was modified (RFC 3339 date-time). |
| 249 | "quotedFileContent": { # The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment. |
| 250 | "mimeType": "A String", # The MIME type of the quoted content. |
| 251 | "value": "A String", # The quoted content itself. This is interpreted as plain text if set through the API. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 252 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 253 | "replies": [ # The full list of replies to the comment in chronological order. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 254 | { # A reply to a comment on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 255 | "action": "A String", # The action the reply performed to the parent comment. Valid values are: |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 256 | # - resolve |
| 257 | # - reopen |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 258 | "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. |
| 259 | "displayName": "A String", # A plain text displayable name for this user. |
| 260 | "emailAddress": "A String", # 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. |
| 261 | "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user". |
| 262 | "me": True or False, # Whether this user is the requesting user. |
| 263 | "permissionId": "A String", # The user's ID as visible in Permission resources. |
| 264 | "photoLink": "A String", # A link to the user's profile photo, if available. |
| 265 | }, |
| 266 | "content": "A String", # The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified. |
| 267 | "createdTime": "A String", # The time at which the reply was created (RFC 3339 date-time). |
| 268 | "deleted": True or False, # Whether the reply has been deleted. A deleted reply has no content. |
| 269 | "htmlContent": "A String", # The content of the reply with HTML formatting. |
| 270 | "id": "A String", # The ID of the reply. |
| 271 | "kind": "drive#reply", # Identifies what kind of resource this is. Value: the fixed string "drive#reply". |
| 272 | "modifiedTime": "A String", # The last time the reply was modified (RFC 3339 date-time). |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 273 | }, |
| 274 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 275 | "resolved": True or False, # Whether the comment has been resolved by one of its replies. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 276 | }</pre> |
| 277 | </div> |
| 278 | |
| 279 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 280 | <code class="details" id="list">list(fileId, includeDeleted=None, pageSize=None, pageToken=None, startModifiedTime=None)</code> |
| 281 | <pre>Lists a file's comments. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 282 | |
| 283 | Args: |
| 284 | fileId: string, The ID of the file. (required) |
| 285 | includeDeleted: boolean, Whether to include deleted comments. Deleted comments will not include their original content. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 286 | pageSize: integer, The maximum number of comments to return per page. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 287 | pageToken: string, The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response. |
| 288 | startModifiedTime: string, The minimum value of 'modifiedTime' for the result comments (RFC 3339 date-time). |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 289 | |
| 290 | Returns: |
| 291 | An object of the form: |
| 292 | |
| 293 | { # A list of comments on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 294 | "comments": [ # The list of comments. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 295 | { # A comment on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 296 | "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. |
| 297 | "author": { # Information about a Drive user. # The author of the comment. The author's email address and permission ID will not be populated. |
| 298 | "displayName": "A String", # A plain text displayable name for this user. |
| 299 | "emailAddress": "A String", # 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. |
| 300 | "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user". |
| 301 | "me": True or False, # Whether this user is the requesting user. |
| 302 | "permissionId": "A String", # The user's ID as visible in Permission resources. |
| 303 | "photoLink": "A String", # A link to the user's profile photo, if available. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 304 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 305 | "content": "A String", # The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed. |
| 306 | "createdTime": "A String", # The time at which the comment was created (RFC 3339 date-time). |
| 307 | "deleted": True or False, # Whether the comment has been deleted. A deleted comment has no content. |
| 308 | "htmlContent": "A String", # The content of the comment with HTML formatting. |
| 309 | "id": "A String", # The ID of the comment. |
| 310 | "kind": "drive#comment", # Identifies what kind of resource this is. Value: the fixed string "drive#comment". |
| 311 | "modifiedTime": "A String", # The last time the comment or any of its replies was modified (RFC 3339 date-time). |
| 312 | "quotedFileContent": { # The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment. |
| 313 | "mimeType": "A String", # The MIME type of the quoted content. |
| 314 | "value": "A String", # The quoted content itself. This is interpreted as plain text if set through the API. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 315 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 316 | "replies": [ # The full list of replies to the comment in chronological order. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 317 | { # A reply to a comment on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 318 | "action": "A String", # The action the reply performed to the parent comment. Valid values are: |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 319 | # - resolve |
| 320 | # - reopen |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 321 | "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. |
| 322 | "displayName": "A String", # A plain text displayable name for this user. |
| 323 | "emailAddress": "A String", # 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. |
| 324 | "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user". |
| 325 | "me": True or False, # Whether this user is the requesting user. |
| 326 | "permissionId": "A String", # The user's ID as visible in Permission resources. |
| 327 | "photoLink": "A String", # A link to the user's profile photo, if available. |
| 328 | }, |
| 329 | "content": "A String", # The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified. |
| 330 | "createdTime": "A String", # The time at which the reply was created (RFC 3339 date-time). |
| 331 | "deleted": True or False, # Whether the reply has been deleted. A deleted reply has no content. |
| 332 | "htmlContent": "A String", # The content of the reply with HTML formatting. |
| 333 | "id": "A String", # The ID of the reply. |
| 334 | "kind": "drive#reply", # Identifies what kind of resource this is. Value: the fixed string "drive#reply". |
| 335 | "modifiedTime": "A String", # The last time the reply was modified (RFC 3339 date-time). |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 336 | }, |
| 337 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 338 | "resolved": True or False, # Whether the comment has been resolved by one of its replies. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 339 | }, |
| 340 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 341 | "kind": "drive#commentList", # Identifies what kind of resource this is. Value: the fixed string "drive#commentList". |
| 342 | "nextPageToken": "A String", # The page token for the next page of comments. This will be absent if the end of the comments 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. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 343 | }</pre> |
| 344 | </div> |
| 345 | |
| 346 | <div class="method"> |
| 347 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 348 | <pre>Retrieves the next page of results. |
| 349 | |
| 350 | Args: |
| 351 | previous_request: The request for the previous page. (required) |
| 352 | previous_response: The response from the request for the previous page. (required) |
| 353 | |
| 354 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 355 | A request object that you can call 'execute()' on to request the next |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 356 | page. Returns None if there are no more items in the collection. |
| 357 | </pre> |
| 358 | </div> |
| 359 | |
| 360 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 361 | <code class="details" id="update">update(fileId, commentId, body=None)</code> |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 362 | <pre>Updates a comment with patch semantics. |
| 363 | |
| 364 | Args: |
| 365 | fileId: string, The ID of the file. (required) |
| 366 | commentId: string, The ID of the comment. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 367 | body: object, The request body. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 368 | The object takes the form of: |
| 369 | |
| 370 | { # A comment on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 371 | "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. |
| 372 | "author": { # Information about a Drive user. # The author of the comment. The author's email address and permission ID will not be populated. |
| 373 | "displayName": "A String", # A plain text displayable name for this user. |
| 374 | "emailAddress": "A String", # 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. |
| 375 | "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user". |
| 376 | "me": True or False, # Whether this user is the requesting user. |
| 377 | "permissionId": "A String", # The user's ID as visible in Permission resources. |
| 378 | "photoLink": "A String", # A link to the user's profile photo, if available. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 379 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 380 | "content": "A String", # The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed. |
| 381 | "createdTime": "A String", # The time at which the comment was created (RFC 3339 date-time). |
| 382 | "deleted": True or False, # Whether the comment has been deleted. A deleted comment has no content. |
| 383 | "htmlContent": "A String", # The content of the comment with HTML formatting. |
| 384 | "id": "A String", # The ID of the comment. |
| 385 | "kind": "drive#comment", # Identifies what kind of resource this is. Value: the fixed string "drive#comment". |
| 386 | "modifiedTime": "A String", # The last time the comment or any of its replies was modified (RFC 3339 date-time). |
| 387 | "quotedFileContent": { # The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment. |
| 388 | "mimeType": "A String", # The MIME type of the quoted content. |
| 389 | "value": "A String", # The quoted content itself. This is interpreted as plain text if set through the API. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 390 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 391 | "replies": [ # The full list of replies to the comment in chronological order. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 392 | { # A reply to a comment on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 393 | "action": "A String", # The action the reply performed to the parent comment. Valid values are: |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 394 | # - resolve |
| 395 | # - reopen |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 396 | "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. |
| 397 | "displayName": "A String", # A plain text displayable name for this user. |
| 398 | "emailAddress": "A String", # 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. |
| 399 | "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user". |
| 400 | "me": True or False, # Whether this user is the requesting user. |
| 401 | "permissionId": "A String", # The user's ID as visible in Permission resources. |
| 402 | "photoLink": "A String", # A link to the user's profile photo, if available. |
| 403 | }, |
| 404 | "content": "A String", # The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified. |
| 405 | "createdTime": "A String", # The time at which the reply was created (RFC 3339 date-time). |
| 406 | "deleted": True or False, # Whether the reply has been deleted. A deleted reply has no content. |
| 407 | "htmlContent": "A String", # The content of the reply with HTML formatting. |
| 408 | "id": "A String", # The ID of the reply. |
| 409 | "kind": "drive#reply", # Identifies what kind of resource this is. Value: the fixed string "drive#reply". |
| 410 | "modifiedTime": "A String", # The last time the reply was modified (RFC 3339 date-time). |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 411 | }, |
| 412 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 413 | "resolved": True or False, # Whether the comment has been resolved by one of its replies. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 414 | } |
| 415 | |
| 416 | |
| 417 | Returns: |
| 418 | An object of the form: |
| 419 | |
| 420 | { # A comment on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 421 | "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. |
| 422 | "author": { # Information about a Drive user. # The author of the comment. The author's email address and permission ID will not be populated. |
| 423 | "displayName": "A String", # A plain text displayable name for this user. |
| 424 | "emailAddress": "A String", # 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. |
| 425 | "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user". |
| 426 | "me": True or False, # Whether this user is the requesting user. |
| 427 | "permissionId": "A String", # The user's ID as visible in Permission resources. |
| 428 | "photoLink": "A String", # A link to the user's profile photo, if available. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 429 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 430 | "content": "A String", # The plain text content of the comment. This field is used for setting the content, while htmlContent should be displayed. |
| 431 | "createdTime": "A String", # The time at which the comment was created (RFC 3339 date-time). |
| 432 | "deleted": True or False, # Whether the comment has been deleted. A deleted comment has no content. |
| 433 | "htmlContent": "A String", # The content of the comment with HTML formatting. |
| 434 | "id": "A String", # The ID of the comment. |
| 435 | "kind": "drive#comment", # Identifies what kind of resource this is. Value: the fixed string "drive#comment". |
| 436 | "modifiedTime": "A String", # The last time the comment or any of its replies was modified (RFC 3339 date-time). |
| 437 | "quotedFileContent": { # The file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment. |
| 438 | "mimeType": "A String", # The MIME type of the quoted content. |
| 439 | "value": "A String", # The quoted content itself. This is interpreted as plain text if set through the API. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 440 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 441 | "replies": [ # The full list of replies to the comment in chronological order. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 442 | { # A reply to a comment on a file. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 443 | "action": "A String", # The action the reply performed to the parent comment. Valid values are: |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 444 | # - resolve |
| 445 | # - reopen |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 446 | "author": { # Information about a Drive user. # The author of the reply. The author's email address and permission ID will not be populated. |
| 447 | "displayName": "A String", # A plain text displayable name for this user. |
| 448 | "emailAddress": "A String", # 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. |
| 449 | "kind": "drive#user", # Identifies what kind of resource this is. Value: the fixed string "drive#user". |
| 450 | "me": True or False, # Whether this user is the requesting user. |
| 451 | "permissionId": "A String", # The user's ID as visible in Permission resources. |
| 452 | "photoLink": "A String", # A link to the user's profile photo, if available. |
| 453 | }, |
| 454 | "content": "A String", # The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified. |
| 455 | "createdTime": "A String", # The time at which the reply was created (RFC 3339 date-time). |
| 456 | "deleted": True or False, # Whether the reply has been deleted. A deleted reply has no content. |
| 457 | "htmlContent": "A String", # The content of the reply with HTML formatting. |
| 458 | "id": "A String", # The ID of the reply. |
| 459 | "kind": "drive#reply", # Identifies what kind of resource this is. Value: the fixed string "drive#reply". |
| 460 | "modifiedTime": "A String", # The last time the reply was modified (RFC 3339 date-time). |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 461 | }, |
| 462 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 463 | "resolved": True or False, # Whether the comment has been resolved by one of its replies. |
Jon Wayne Parrott | 36e41bc | 2016-02-19 16:02:29 -0800 | [diff] [blame] | 464 | }</pre> |
| 465 | </div> |
| 466 | |
| 467 | </body></html> |