blob: c8d5887857e73f1e5d82cd501e5c0939d0ae19c9 [file] [log] [blame]
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -08001<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_v3.html">Drive API</a> . <a href="drive_v3.replies.html">replies</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(fileId, commentId, body=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080082<p class="firstline">Creates a new reply to a comment.</p>
83<p class="toc_element">
84 <code><a href="#delete">delete(fileId, commentId, replyId)</a></code></p>
85<p class="firstline">Deletes a reply.</p>
86<p class="toc_element">
87 <code><a href="#get">get(fileId, commentId, replyId, includeDeleted=None)</a></code></p>
88<p class="firstline">Gets a reply by ID.</p>
89<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070090 <code><a href="#list">list(fileId, commentId, includeDeleted=None, pageSize=None, pageToken=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080091<p class="firstline">Lists a comment's replies.</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'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#update">update(fileId, commentId, replyId, body=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080097<p class="firstline">Updates a reply with patch semantics.</p>
98<h3>Method Details</h3>
99<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102</div>
103
104<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code class="details" id="create">create(fileId, commentId, body=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800106 <pre>Creates a new reply to a comment.
107
108Args:
109 fileId: string, The ID of the file. (required)
110 commentId: string, The ID of the comment. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 body: object, The request body.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800112 The object takes the form of:
113
114{ # A reply to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700115 &quot;action&quot;: &quot;A String&quot;, # The action the reply performed to the parent comment. Valid values are:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800116 # - resolve
117 # - reopen
Bu Sun Kim65020912020-05-20 12:08:20 -0700118 &quot;author&quot;: { # Information about a Drive user. # The author of the reply. The author&#x27;s email address and permission ID will not be populated.
119 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
120 &quot;emailAddress&quot;: &quot;A String&quot;, # 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.
121 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
122 &quot;me&quot;: True or False, # Whether this user is the requesting user.
123 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
124 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
125 },
126 &quot;content&quot;: &quot;A String&quot;, # 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.
127 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the reply was created (RFC 3339 date-time).
128 &quot;deleted&quot;: True or False, # Whether the reply has been deleted. A deleted reply has no content.
129 &quot;htmlContent&quot;: &quot;A String&quot;, # The content of the reply with HTML formatting.
130 &quot;id&quot;: &quot;A String&quot;, # The ID of the reply.
131 &quot;kind&quot;: &quot;drive#reply&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#reply&quot;.
132 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the reply was modified (RFC 3339 date-time).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800133}
134
135
136Returns:
137 An object of the form:
138
139 { # A reply to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700140 &quot;action&quot;: &quot;A String&quot;, # The action the reply performed to the parent comment. Valid values are:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800141 # - resolve
142 # - reopen
Bu Sun Kim65020912020-05-20 12:08:20 -0700143 &quot;author&quot;: { # Information about a Drive user. # The author of the reply. The author&#x27;s email address and permission ID will not be populated.
144 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
145 &quot;emailAddress&quot;: &quot;A String&quot;, # 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.
146 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
147 &quot;me&quot;: True or False, # Whether this user is the requesting user.
148 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
149 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
150 },
151 &quot;content&quot;: &quot;A String&quot;, # 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.
152 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the reply was created (RFC 3339 date-time).
153 &quot;deleted&quot;: True or False, # Whether the reply has been deleted. A deleted reply has no content.
154 &quot;htmlContent&quot;: &quot;A String&quot;, # The content of the reply with HTML formatting.
155 &quot;id&quot;: &quot;A String&quot;, # The ID of the reply.
156 &quot;kind&quot;: &quot;drive#reply&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#reply&quot;.
157 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the reply was modified (RFC 3339 date-time).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800158 }</pre>
159</div>
160
161<div class="method">
162 <code class="details" id="delete">delete(fileId, commentId, replyId)</code>
163 <pre>Deletes a reply.
164
165Args:
166 fileId: string, The ID of the file. (required)
167 commentId: string, The ID of the comment. (required)
168 replyId: string, The ID of the reply. (required)
169</pre>
170</div>
171
172<div class="method">
173 <code class="details" id="get">get(fileId, commentId, replyId, includeDeleted=None)</code>
174 <pre>Gets a reply by ID.
175
176Args:
177 fileId: string, The ID of the file. (required)
178 commentId: string, The ID of the comment. (required)
179 replyId: string, The ID of the reply. (required)
180 includeDeleted: boolean, Whether to return deleted replies. Deleted replies will not include their original content.
181
182Returns:
183 An object of the form:
184
185 { # A reply to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;action&quot;: &quot;A String&quot;, # The action the reply performed to the parent comment. Valid values are:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800187 # - resolve
188 # - reopen
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &quot;author&quot;: { # Information about a Drive user. # The author of the reply. The author&#x27;s email address and permission ID will not be populated.
190 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
191 &quot;emailAddress&quot;: &quot;A String&quot;, # 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 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
193 &quot;me&quot;: True or False, # Whether this user is the requesting user.
194 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
195 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
196 },
197 &quot;content&quot;: &quot;A String&quot;, # 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 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the reply was created (RFC 3339 date-time).
199 &quot;deleted&quot;: True or False, # Whether the reply has been deleted. A deleted reply has no content.
200 &quot;htmlContent&quot;: &quot;A String&quot;, # The content of the reply with HTML formatting.
201 &quot;id&quot;: &quot;A String&quot;, # The ID of the reply.
202 &quot;kind&quot;: &quot;drive#reply&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#reply&quot;.
203 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the reply was modified (RFC 3339 date-time).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800204 }</pre>
205</div>
206
207<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 <code class="details" id="list">list(fileId, commentId, includeDeleted=None, pageSize=None, pageToken=None)</code>
209 <pre>Lists a comment&#x27;s replies.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800210
211Args:
212 fileId: string, The ID of the file. (required)
213 commentId: string, The ID of the comment. (required)
214 includeDeleted: boolean, Whether to include deleted replies. Deleted replies will not include their original content.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800215 pageSize: integer, The maximum number of replies to return per page.
Bu Sun Kim65020912020-05-20 12:08:20 -0700216 pageToken: string, The token for continuing a previous list request on the next page. This should be set to the value of &#x27;nextPageToken&#x27; from the previous response.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800217
218Returns:
219 An object of the form:
220
221 { # A list of replies to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700222 &quot;kind&quot;: &quot;drive#replyList&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#replyList&quot;.
223 &quot;nextPageToken&quot;: &quot;A String&quot;, # The page token for the next page of replies. This will be absent if the end of the replies 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.
224 &quot;replies&quot;: [ # The list of replies. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800225 { # A reply to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 &quot;action&quot;: &quot;A String&quot;, # The action the reply performed to the parent comment. Valid values are:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800227 # - resolve
228 # - reopen
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;author&quot;: { # Information about a Drive user. # The author of the reply. The author&#x27;s email address and permission ID will not be populated.
230 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
231 &quot;emailAddress&quot;: &quot;A String&quot;, # 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.
232 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
233 &quot;me&quot;: True or False, # Whether this user is the requesting user.
234 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
235 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
236 },
237 &quot;content&quot;: &quot;A String&quot;, # 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.
238 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the reply was created (RFC 3339 date-time).
239 &quot;deleted&quot;: True or False, # Whether the reply has been deleted. A deleted reply has no content.
240 &quot;htmlContent&quot;: &quot;A String&quot;, # The content of the reply with HTML formatting.
241 &quot;id&quot;: &quot;A String&quot;, # The ID of the reply.
242 &quot;kind&quot;: &quot;drive#reply&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#reply&quot;.
243 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the reply was modified (RFC 3339 date-time).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800244 },
245 ],
246 }</pre>
247</div>
248
249<div class="method">
250 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
251 <pre>Retrieves the next page of results.
252
253Args:
254 previous_request: The request for the previous page. (required)
255 previous_response: The response from the request for the previous page. (required)
256
257Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700258 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800259 page. Returns None if there are no more items in the collection.
260 </pre>
261</div>
262
263<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700264 <code class="details" id="update">update(fileId, commentId, replyId, body=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800265 <pre>Updates a reply with patch semantics.
266
267Args:
268 fileId: string, The ID of the file. (required)
269 commentId: string, The ID of the comment. (required)
270 replyId: string, The ID of the reply. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700271 body: object, The request body.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800272 The object takes the form of:
273
274{ # A reply to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700275 &quot;action&quot;: &quot;A String&quot;, # The action the reply performed to the parent comment. Valid values are:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800276 # - resolve
277 # - reopen
Bu Sun Kim65020912020-05-20 12:08:20 -0700278 &quot;author&quot;: { # Information about a Drive user. # The author of the reply. The author&#x27;s email address and permission ID will not be populated.
279 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
280 &quot;emailAddress&quot;: &quot;A String&quot;, # 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.
281 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
282 &quot;me&quot;: True or False, # Whether this user is the requesting user.
283 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
284 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
285 },
286 &quot;content&quot;: &quot;A String&quot;, # 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.
287 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the reply was created (RFC 3339 date-time).
288 &quot;deleted&quot;: True or False, # Whether the reply has been deleted. A deleted reply has no content.
289 &quot;htmlContent&quot;: &quot;A String&quot;, # The content of the reply with HTML formatting.
290 &quot;id&quot;: &quot;A String&quot;, # The ID of the reply.
291 &quot;kind&quot;: &quot;drive#reply&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#reply&quot;.
292 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the reply was modified (RFC 3339 date-time).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800293}
294
295
296Returns:
297 An object of the form:
298
299 { # A reply to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700300 &quot;action&quot;: &quot;A String&quot;, # The action the reply performed to the parent comment. Valid values are:
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800301 # - resolve
302 # - reopen
Bu Sun Kim65020912020-05-20 12:08:20 -0700303 &quot;author&quot;: { # Information about a Drive user. # The author of the reply. The author&#x27;s email address and permission ID will not be populated.
304 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
305 &quot;emailAddress&quot;: &quot;A String&quot;, # 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.
306 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
307 &quot;me&quot;: True or False, # Whether this user is the requesting user.
308 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
309 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
310 },
311 &quot;content&quot;: &quot;A String&quot;, # 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.
312 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the reply was created (RFC 3339 date-time).
313 &quot;deleted&quot;: True or False, # Whether the reply has been deleted. A deleted reply has no content.
314 &quot;htmlContent&quot;: &quot;A String&quot;, # The content of the reply with HTML formatting.
315 &quot;id&quot;: &quot;A String&quot;, # The ID of the reply.
316 &quot;kind&quot;: &quot;drive#reply&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#reply&quot;.
317 &quot;modifiedTime&quot;: &quot;A String&quot;, # The last time the reply was modified (RFC 3339 date-time).
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800318 }</pre>
319</div>
320
321</body></html>