blob: 71756d377c7cc4c7da82a5baef74595752fcd149 [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">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(fileId, commentId, body=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080079<p class="firstline">Creates a new reply to a comment.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(fileId, commentId, replyId)</a></code></p>
82<p class="firstline">Deletes a reply.</p>
83<p class="toc_element">
84 <code><a href="#get">get(fileId, commentId, replyId, includeDeleted=None)</a></code></p>
85<p class="firstline">Gets a reply by ID.</p>
86<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070087 <code><a href="#list">list(fileId, commentId, includeDeleted=None, pageSize=None, pageToken=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080088<p class="firstline">Lists a comment's replies.</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">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#update">update(fileId, commentId, replyId, body=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080094<p class="firstline">Updates a reply with patch semantics.</p>
95<h3>Method Details</h3>
96<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070097 <code class="details" id="create">create(fileId, commentId, body=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080098 <pre>Creates a new reply to a comment.
99
100Args:
101 fileId: string, The ID of the file. (required)
102 commentId: string, The ID of the comment. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700103 body: object, The request body.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800104 The object takes the form of:
105
106{ # A reply to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700107 &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 -0800108 # - resolve
109 # - reopen
Bu Sun Kim65020912020-05-20 12:08:20 -0700110 &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.
111 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
112 &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.
113 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
114 &quot;me&quot;: True or False, # Whether this user is the requesting user.
115 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
116 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
117 },
118 &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.
119 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the reply was created (RFC 3339 date-time).
120 &quot;deleted&quot;: True or False, # Whether the reply has been deleted. A deleted reply has no content.
121 &quot;htmlContent&quot;: &quot;A String&quot;, # The content of the reply with HTML formatting.
122 &quot;id&quot;: &quot;A String&quot;, # The ID of the reply.
123 &quot;kind&quot;: &quot;drive#reply&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#reply&quot;.
124 &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 -0800125}
126
127
128Returns:
129 An object of the form:
130
131 { # A reply to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 &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 -0800133 # - resolve
134 # - reopen
Bu Sun Kim65020912020-05-20 12:08:20 -0700135 &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.
136 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
137 &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.
138 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
139 &quot;me&quot;: True or False, # Whether this user is the requesting user.
140 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
141 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
142 },
143 &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.
144 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the reply was created (RFC 3339 date-time).
145 &quot;deleted&quot;: True or False, # Whether the reply has been deleted. A deleted reply has no content.
146 &quot;htmlContent&quot;: &quot;A String&quot;, # The content of the reply with HTML formatting.
147 &quot;id&quot;: &quot;A String&quot;, # The ID of the reply.
148 &quot;kind&quot;: &quot;drive#reply&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#reply&quot;.
149 &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 -0800150 }</pre>
151</div>
152
153<div class="method">
154 <code class="details" id="delete">delete(fileId, commentId, replyId)</code>
155 <pre>Deletes a reply.
156
157Args:
158 fileId: string, The ID of the file. (required)
159 commentId: string, The ID of the comment. (required)
160 replyId: string, The ID of the reply. (required)
161</pre>
162</div>
163
164<div class="method">
165 <code class="details" id="get">get(fileId, commentId, replyId, includeDeleted=None)</code>
166 <pre>Gets a reply by ID.
167
168Args:
169 fileId: string, The ID of the file. (required)
170 commentId: string, The ID of the comment. (required)
171 replyId: string, The ID of the reply. (required)
172 includeDeleted: boolean, Whether to return deleted replies. Deleted replies will not include their original content.
173
174Returns:
175 An object of the form:
176
177 { # A reply to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &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 -0800179 # - resolve
180 # - reopen
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 &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.
182 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
183 &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.
184 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
185 &quot;me&quot;: True or False, # Whether this user is the requesting user.
186 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
187 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
188 },
189 &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.
190 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the reply was created (RFC 3339 date-time).
191 &quot;deleted&quot;: True or False, # Whether the reply has been deleted. A deleted reply has no content.
192 &quot;htmlContent&quot;: &quot;A String&quot;, # The content of the reply with HTML formatting.
193 &quot;id&quot;: &quot;A String&quot;, # The ID of the reply.
194 &quot;kind&quot;: &quot;drive#reply&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#reply&quot;.
195 &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 -0800196 }</pre>
197</div>
198
199<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 <code class="details" id="list">list(fileId, commentId, includeDeleted=None, pageSize=None, pageToken=None)</code>
201 <pre>Lists a comment&#x27;s replies.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800202
203Args:
204 fileId: string, The ID of the file. (required)
205 commentId: string, The ID of the comment. (required)
206 includeDeleted: boolean, Whether to include deleted replies. Deleted replies will not include their original content.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800207 pageSize: integer, The maximum number of replies to return per page.
Bu Sun Kim65020912020-05-20 12:08:20 -0700208 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 -0800209
210Returns:
211 An object of the form:
212
213 { # A list of replies to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700214 &quot;kind&quot;: &quot;drive#replyList&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#replyList&quot;.
215 &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.
216 &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 -0800217 { # A reply to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 &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 -0800219 # - resolve
220 # - reopen
Bu Sun Kim65020912020-05-20 12:08:20 -0700221 &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.
222 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
223 &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.
224 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
225 &quot;me&quot;: True or False, # Whether this user is the requesting user.
226 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
227 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
228 },
229 &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.
230 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the reply was created (RFC 3339 date-time).
231 &quot;deleted&quot;: True or False, # Whether the reply has been deleted. A deleted reply has no content.
232 &quot;htmlContent&quot;: &quot;A String&quot;, # The content of the reply with HTML formatting.
233 &quot;id&quot;: &quot;A String&quot;, # The ID of the reply.
234 &quot;kind&quot;: &quot;drive#reply&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#reply&quot;.
235 &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 -0800236 },
237 ],
238 }</pre>
239</div>
240
241<div class="method">
242 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
243 <pre>Retrieves the next page of results.
244
245Args:
246 previous_request: The request for the previous page. (required)
247 previous_response: The response from the request for the previous page. (required)
248
249Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700250 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800251 page. Returns None if there are no more items in the collection.
252 </pre>
253</div>
254
255<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700256 <code class="details" id="update">update(fileId, commentId, replyId, body=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800257 <pre>Updates a reply with patch semantics.
258
259Args:
260 fileId: string, The ID of the file. (required)
261 commentId: string, The ID of the comment. (required)
262 replyId: string, The ID of the reply. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700263 body: object, The request body.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800264 The object takes the form of:
265
266{ # A reply to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700267 &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 -0800268 # - resolve
269 # - reopen
Bu Sun Kim65020912020-05-20 12:08:20 -0700270 &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.
271 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
272 &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.
273 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
274 &quot;me&quot;: True or False, # Whether this user is the requesting user.
275 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
276 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
277 },
278 &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.
279 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the reply was created (RFC 3339 date-time).
280 &quot;deleted&quot;: True or False, # Whether the reply has been deleted. A deleted reply has no content.
281 &quot;htmlContent&quot;: &quot;A String&quot;, # The content of the reply with HTML formatting.
282 &quot;id&quot;: &quot;A String&quot;, # The ID of the reply.
283 &quot;kind&quot;: &quot;drive#reply&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#reply&quot;.
284 &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 -0800285}
286
287
288Returns:
289 An object of the form:
290
291 { # A reply to a comment on a file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700292 &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 -0800293 # - resolve
294 # - reopen
Bu Sun Kim65020912020-05-20 12:08:20 -0700295 &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.
296 &quot;displayName&quot;: &quot;A String&quot;, # A plain text displayable name for this user.
297 &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.
298 &quot;kind&quot;: &quot;drive#user&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#user&quot;.
299 &quot;me&quot;: True or False, # Whether this user is the requesting user.
300 &quot;permissionId&quot;: &quot;A String&quot;, # The user&#x27;s ID as visible in Permission resources.
301 &quot;photoLink&quot;: &quot;A String&quot;, # A link to the user&#x27;s profile photo, if available.
302 },
303 &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.
304 &quot;createdTime&quot;: &quot;A String&quot;, # The time at which the reply was created (RFC 3339 date-time).
305 &quot;deleted&quot;: True or False, # Whether the reply has been deleted. A deleted reply has no content.
306 &quot;htmlContent&quot;: &quot;A String&quot;, # The content of the reply with HTML formatting.
307 &quot;id&quot;: &quot;A String&quot;, # The ID of the reply.
308 &quot;kind&quot;: &quot;drive#reply&quot;, # Identifies what kind of resource this is. Value: the fixed string &quot;drive#reply&quot;.
309 &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 -0800310 }</pre>
311</div>
312
313</body></html>