blob: 274518012ec0160f716d437e9362e39b35172d14 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<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="driveactivity_v2.html">Drive Activity API</a> . <a href="driveactivity_v2.activity.html">activity</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#query">query(body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Query past activity in Google Drive.</p>
80<p class="toc_element">
81 <code><a href="#query_next">query_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<h3>Method Details</h3>
84<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070085 <code class="details" id="query">query(body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086 <pre>Query past activity in Google Drive.
87
88Args:
Dan O'Mearadd494642020-05-01 07:42:23 -070089 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090 The object takes the form of:
91
92{ # The request message for querying Drive activity.
Dan O'Mearadd494642020-05-01 07:42:23 -070093 "pageSize": 42, # The miminum number of activities desired in the response; the server will
94 # attempt to return at least this quanitity. The server may also return fewer
95 # activities if it has a partial response ready before the request times out.
96 # If not set, a default value is used.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097 "ancestorName": "A String", # Return activities for this Drive folder and all children and descendants.
98 # The format is "items/ITEM_ID".
99 "filter": "A String", # The filtering for items returned from this query request. The format of the
100 # filter string is a sequence of expressions, joined by an optional "AND",
101 # where each expression is of the form "field operator value".
102 #
103 # Supported fields:
104 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 # - &lt;tt&gt;time&lt;/tt&gt;: Uses numerical operators on date values either in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106 # terms of milliseconds since Jan 1, 1970 or in RFC 3339 format.
107 # Examples:
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 # - &lt;tt&gt;time &gt; 1452409200000 AND time &lt;= 1492812924310&lt;/tt&gt;
109 # - &lt;tt&gt;time &gt;= "2016-01-10T01:02:03-05:00"&lt;/tt&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 # - &lt;tt&gt;detail.action_detail_case&lt;/tt&gt;: Uses the "has" operator (:) and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112 # either a singular value or a list of allowed action types enclosed in
113 # parentheses.
114 # Examples:
Dan O'Mearadd494642020-05-01 07:42:23 -0700115 # - &lt;tt&gt;detail.action_detail_case: RENAME&lt;/tt&gt;
116 # - &lt;tt&gt;detail.action_detail_case:(CREATE EDIT)&lt;/tt&gt;
117 # - &lt;tt&gt;-detail.action_detail_case:MOVE&lt;/tt&gt;
118 "pageToken": "A String", # The token identifying which page of results to return. Set this to the
119 # next_page_token value returned from a previous query to obtain the
120 # following page of results. If not set, the first page of results will be
121 # returned.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122 "consolidationStrategy": { # How the individual activities are consolidated. A set of activities may be # Details on how to consolidate related actions that make up the activity. If
Dan O'Mearadd494642020-05-01 07:42:23 -0700123 # not set, then related actions are not consolidated.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124 # consolidated into one combined activity if they are related in some way, such
125 # as one actor performing the same action on multiple targets, or multiple
126 # actors performing the same action on a single target. The strategy defines
127 # the rules for which activities are related.
128 "none": { # A strategy which does no consolidation of individual activities. # The individual activities are not consolidated.
129 },
130 "legacy": { # A strategy which consolidates activities using the grouping rules from the # The individual activities are consolidated using the legacy strategy.
131 # legacy V1 Activity API. Similar actions occurring within a window of time
132 # can be grouped across multiple targets (such as moving a set of files at
133 # once) or multiple actors (such as several users editing the same item).
134 # Grouping rules for this strategy are specific to each type of action.
135 },
136 },
137 "itemName": "A String", # Return activities for this Drive item. The format is
138 # "items/ITEM_ID".
139 }
140
141 x__xgafv: string, V1 error format.
142 Allowed values
143 1 - v1 error format
144 2 - v2 error format
145
146Returns:
147 An object of the form:
148
149 { # Response message for querying Drive activity.
150 "nextPageToken": "A String", # Token to retrieve the next page of results, or
151 # empty if there are no more results in the list.
152 "activities": [ # List of activity requested.
153 { # A single Drive activity comprising one or more Actions by one or more
154 # Actors on one or more Targets. Some Action groupings occur spontaneously,
155 # such as moving an item into a shared folder triggering a permission change.
156 # Other groupings of related Actions, such as multiple Actors editing one item
157 # or moving multiple files into a new folder, are controlled by the selection
158 # of a ConsolidationStrategy in the QueryDriveActivityRequest.
159 "primaryActionDetail": { # Data describing the type and additional information of an action. # Key information about the primary action for this activity. This is either
160 # representative, or the most important, of all actions in the activity,
161 # according to the ConsolidationStrategy in the request.
Dan O'Mearadd494642020-05-01 07:42:23 -0700162 "comment": { # A change about comments on an object. # A change about comments was made.
163 "assignment": { # A comment with an assignment. # A change on an assignment.
164 "subtype": "A String", # The sub-type of this event.
165 "assignedUser": { # Information about an end user. # The user to whom the comment was assigned.
166 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
167 },
168 "knownUser": { # A known user. # A known user.
169 "personName": "A String", # The identifier for this user that can be used with the People API to get
170 # more information. The format is "people/ACCOUNT_ID". See
171 # https://developers.google.com/people/.
172 "isCurrentUser": True or False, # True if this is the user making the request.
173 },
174 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
175 },
176 },
177 },
178 "post": { # A regular posted comment. # A change on a regular posted comment.
179 "subtype": "A String", # The sub-type of this event.
180 },
181 "mentionedUsers": [ # Users who are mentioned in this comment.
182 { # Information about an end user.
183 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
184 },
185 "knownUser": { # A known user. # A known user.
186 "personName": "A String", # The identifier for this user that can be used with the People API to get
187 # more information. The format is "people/ACCOUNT_ID". See
188 # https://developers.google.com/people/.
189 "isCurrentUser": True or False, # True if this is the user making the request.
190 },
191 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
192 },
193 },
194 ],
195 "suggestion": { # A suggestion. # A change on a suggestion.
196 "subtype": "A String", # The sub-type of this event.
197 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700198 },
199 "permissionChange": { # A change of the permission setting on an item. # The permission on an object was changed.
200 "removedPermissions": [ # The set of permissions removed by this change.
201 { # The permission setting of an object.
202 "domain": { # Information about a domain. # The domain to whom this permission applies.
203 "name": "A String", # The name of the domain, e.g. "google.com".
204 "legacyId": "A String", # An opaque string used to identify this domain.
205 },
206 "group": { # Information about a group. # The group to whom this permission applies.
207 "email": "A String", # The email address of the group.
208 "title": "A String", # The title of the group.
209 },
210 "anyone": { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users.
211 },
212 "role": "A String", # Indicates the
Dan O'Mearadd494642020-05-01 07:42:23 -0700213 # &lt;a href="/drive/web/manage-sharing#roles"&gt;Google Drive permissions
214 # role&lt;/a&gt;. The role determines a user's ability to read, write, and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700215 # comment on items.
216 "allowDiscovery": True or False, # If true, the item can be discovered (e.g. in the user's "Shared with me"
217 # collection) without needing a link to the item.
218 "user": { # Information about an end user. # The user to whom this permission applies.
219 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
220 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700221 "knownUser": { # A known user. # A known user.
222 "personName": "A String", # The identifier for this user that can be used with the People API to get
223 # more information. The format is "people/ACCOUNT_ID". See
224 # https://developers.google.com/people/.
225 "isCurrentUser": True or False, # True if this is the user making the request.
226 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700227 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
228 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700229 },
230 },
231 ],
232 "addedPermissions": [ # The set of permissions added by this change.
233 { # The permission setting of an object.
234 "domain": { # Information about a domain. # The domain to whom this permission applies.
235 "name": "A String", # The name of the domain, e.g. "google.com".
236 "legacyId": "A String", # An opaque string used to identify this domain.
237 },
238 "group": { # Information about a group. # The group to whom this permission applies.
239 "email": "A String", # The email address of the group.
240 "title": "A String", # The title of the group.
241 },
242 "anyone": { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users.
243 },
244 "role": "A String", # Indicates the
Dan O'Mearadd494642020-05-01 07:42:23 -0700245 # &lt;a href="/drive/web/manage-sharing#roles"&gt;Google Drive permissions
246 # role&lt;/a&gt;. The role determines a user's ability to read, write, and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700247 # comment on items.
248 "allowDiscovery": True or False, # If true, the item can be discovered (e.g. in the user's "Shared with me"
249 # collection) without needing a link to the item.
250 "user": { # Information about an end user. # The user to whom this permission applies.
251 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
252 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700253 "knownUser": { # A known user. # A known user.
254 "personName": "A String", # The identifier for this user that can be used with the People API to get
255 # more information. The format is "people/ACCOUNT_ID". See
256 # https://developers.google.com/people/.
257 "isCurrentUser": True or False, # True if this is the user making the request.
258 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700259 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
260 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700261 },
262 },
263 ],
264 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700265 "reference": { # Activity in applications other than Drive. # An object was referenced in an application outside of Drive/Docs.
266 "type": "A String", # The reference type corresponding to this event.
267 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700268 "dlpChange": { # A change in the object's data leak prevention status. # A change happened in data leak prevention status.
269 "type": "A String", # The type of Data Leak Prevention (DLP) change.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700270 },
271 "edit": { # An empty message indicating an object was edited. # An object was edited.
272 },
273 "settingsChange": { # Information about settings changes. # Settings were changed.
274 "restrictionChanges": [ # The set of changes made to restrictions.
275 { # Information about restriction policy changes to a feature.
276 "feature": "A String", # The feature which had a change in restriction policy.
277 "newRestriction": "A String", # The restriction in place after the change.
278 },
279 ],
280 },
281 "create": { # An object was created. # An object was created.
282 "new": { # An object was created from scratch. # If present, indicates the object was newly created (e.g. as a blank
283 # document), not derived from a Drive object or external object.
284 },
285 "copy": { # An object was created by copying an existing object. # If present, indicates the object was created by copying an existing Drive
286 # object.
287 "originalObject": { # A lightweight reference to the target of activity. # The the original object.
288 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
289 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
290 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
291 },
292 "driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
293 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
294 "title": "A String", # The title of the Drive item.
Dan O'Mearadd494642020-05-01 07:42:23 -0700295 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
296 # folder.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700297 "type": "A String", # The type of Drive folder.
298 },
299 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
300 },
301 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
302 },
303 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
304 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
305 },
306 },
307 "drive": { # A lightweight reference to a shared drive. # The target is a shared drive.
308 "name": "A String", # The resource name of the shared drive. The format is
309 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
310 # ID for this resource name.
311 "title": "A String", # The title of the shared drive.
312 },
313 },
314 },
315 "upload": { # An object was uploaded into Drive. # If present, indicates the object originated externally and was uploaded
316 # to Drive.
317 },
318 },
319 "move": { # An object was moved. # An object was moved.
320 "removedParents": [ # The removed parent object(s).
321 { # A lightweight reference to the target of activity.
322 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
323 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
324 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
325 },
326 "driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
327 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
328 "title": "A String", # The title of the Drive item.
Dan O'Mearadd494642020-05-01 07:42:23 -0700329 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
330 # folder.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700331 "type": "A String", # The type of Drive folder.
332 },
333 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
334 },
335 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
336 },
337 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
338 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
339 },
340 },
341 "drive": { # A lightweight reference to a shared drive. # The target is a shared drive.
342 "name": "A String", # The resource name of the shared drive. The format is
343 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
344 # ID for this resource name.
345 "title": "A String", # The title of the shared drive.
346 },
347 },
348 ],
349 "addedParents": [ # The added parent object(s).
350 { # A lightweight reference to the target of activity.
351 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
352 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
353 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
354 },
355 "driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
356 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
357 "title": "A String", # The title of the Drive item.
Dan O'Mearadd494642020-05-01 07:42:23 -0700358 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
359 # folder.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700360 "type": "A String", # The type of Drive folder.
361 },
362 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
363 },
364 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
365 },
366 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
367 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
368 },
369 },
370 "drive": { # A lightweight reference to a shared drive. # The target is a shared drive.
371 "name": "A String", # The resource name of the shared drive. The format is
372 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
373 # ID for this resource name.
374 "title": "A String", # The title of the shared drive.
375 },
376 },
377 ],
378 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700379 "rename": { # An object was renamed. # An object was renamed.
380 "newTitle": "A String", # The new title of the drive object.
381 "oldTitle": "A String", # The previous title of the drive object.
382 },
383 "restore": { # A deleted object was restored. # A deleted object was restored.
384 "type": "A String", # The type of restore action taken.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700385 },
386 "delete": { # An object was deleted. # An object was deleted.
387 "type": "A String", # The type of delete action taken.
388 },
389 },
390 "timestamp": "A String", # The activity occurred at this specific time.
391 "timeRange": { # Information about time ranges. # The activity occurred over this time range.
392 "endTime": "A String", # The end of the time range.
393 "startTime": "A String", # The start of the time range.
394 },
395 "actions": [ # Details on all actions in this activity.
396 { # Information about the action.
397 "timestamp": "A String", # The action occurred at this specific time.
398 "timeRange": { # Information about time ranges. # The action occurred over this time range.
399 "endTime": "A String", # The end of the time range.
400 "startTime": "A String", # The start of the time range.
401 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700402 "target": { # Information about the target of activity. # The target this action affects (or empty if affecting all targets). This
403 # represents the state of the target immediately after this action occurred.
404 "teamDrive": { # This item is deprecated; please see `Drive` instead. # This field is deprecated; please use the `drive` field instead.
405 "root": { # A Drive item, such as a file or folder. # This field is deprecated; please see `Drive.root` instead.
406 "mimeType": "A String", # The MIME type of the Drive item. See
407 # https://developers.google.com/drive/v3/web/mime-types.
408 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
409 "title": "A String", # The title of the Drive item.
410 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
411 # folder.
412 "type": "A String", # The type of Drive folder.
413 },
414 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
415 },
416 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
417 },
418 "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
419 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
420 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
421 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
422 },
423 "domain": { # Information about a domain. # The domain of the Drive item owner.
424 "name": "A String", # The name of the domain, e.g. "google.com".
425 "legacyId": "A String", # An opaque string used to identify this domain.
426 },
427 "drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
428 "name": "A String", # The resource name of the shared drive. The format is
429 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
430 # ID for this resource name.
431 "title": "A String", # The title of the shared drive.
432 },
433 "user": { # Information about an end user. # The user that owns the Drive item.
434 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
435 },
436 "knownUser": { # A known user. # A known user.
437 "personName": "A String", # The identifier for this user that can be used with the People API to get
438 # more information. The format is "people/ACCOUNT_ID". See
439 # https://developers.google.com/people/.
440 "isCurrentUser": True or False, # True if this is the user making the request.
441 },
442 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
443 },
444 },
445 },
446 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
447 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
448 },
449 },
450 "name": "A String", # This field is deprecated; please see `Drive.name` instead.
451 "title": "A String", # This field is deprecated; please see `Drive.title` instead.
452 },
453 "fileComment": { # A comment on a file. # The target is a comment on a Drive file.
454 "legacyDiscussionId": "A String", # The discussion thread to which the comment was added. This identifier is an
455 # opaque string compatible with the Drive API and references the first
456 # comment in a discussion; see
457 # https://developers.google.com/drive/v3/reference/comments/get
458 "legacyCommentId": "A String", # The comment in the discussion thread. This identifier is an opaque string
459 # compatible with the Drive API; see
460 # https://developers.google.com/drive/v3/reference/comments/get
461 "parent": { # A Drive item, such as a file or folder. # The Drive item containing this comment.
462 "mimeType": "A String", # The MIME type of the Drive item. See
463 # https://developers.google.com/drive/v3/web/mime-types.
464 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
465 "title": "A String", # The title of the Drive item.
466 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
467 # folder.
468 "type": "A String", # The type of Drive folder.
469 },
470 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
471 },
472 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
473 },
474 "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
475 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
476 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
477 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
478 },
479 "domain": { # Information about a domain. # The domain of the Drive item owner.
480 "name": "A String", # The name of the domain, e.g. "google.com".
481 "legacyId": "A String", # An opaque string used to identify this domain.
482 },
483 "drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
484 "name": "A String", # The resource name of the shared drive. The format is
485 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
486 # ID for this resource name.
487 "title": "A String", # The title of the shared drive.
488 },
489 "user": { # Information about an end user. # The user that owns the Drive item.
490 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
491 },
492 "knownUser": { # A known user. # A known user.
493 "personName": "A String", # The identifier for this user that can be used with the People API to get
494 # more information. The format is "people/ACCOUNT_ID". See
495 # https://developers.google.com/people/.
496 "isCurrentUser": True or False, # True if this is the user making the request.
497 },
498 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
499 },
500 },
501 },
502 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
503 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
504 },
505 },
506 "linkToDiscussion": "A String", # The link to the discussion thread containing this comment, for example,
507 # "https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID".
508 },
509 "driveItem": { # A Drive item, such as a file or folder. # The target is a Drive item.
510 "mimeType": "A String", # The MIME type of the Drive item. See
511 # https://developers.google.com/drive/v3/web/mime-types.
512 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
513 "title": "A String", # The title of the Drive item.
514 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
515 # folder.
516 "type": "A String", # The type of Drive folder.
517 },
518 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
519 },
520 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
521 },
522 "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
523 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
524 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
525 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
526 },
527 "domain": { # Information about a domain. # The domain of the Drive item owner.
528 "name": "A String", # The name of the domain, e.g. "google.com".
529 "legacyId": "A String", # An opaque string used to identify this domain.
530 },
531 "drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
532 "name": "A String", # The resource name of the shared drive. The format is
533 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
534 # ID for this resource name.
535 "title": "A String", # The title of the shared drive.
536 },
537 "user": { # Information about an end user. # The user that owns the Drive item.
538 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
539 },
540 "knownUser": { # A known user. # A known user.
541 "personName": "A String", # The identifier for this user that can be used with the People API to get
542 # more information. The format is "people/ACCOUNT_ID". See
543 # https://developers.google.com/people/.
544 "isCurrentUser": True or False, # True if this is the user making the request.
545 },
546 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
547 },
548 },
549 },
550 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
551 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
552 },
553 },
554 "drive": { # Information about a shared drive. # The target is a shared drive.
555 "root": { # A Drive item, such as a file or folder. # The root of this shared drive.
556 "mimeType": "A String", # The MIME type of the Drive item. See
557 # https://developers.google.com/drive/v3/web/mime-types.
558 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
559 "title": "A String", # The title of the Drive item.
560 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
561 # folder.
562 "type": "A String", # The type of Drive folder.
563 },
564 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
565 },
566 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
567 },
568 "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
569 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
570 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
571 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
572 },
573 "domain": { # Information about a domain. # The domain of the Drive item owner.
574 "name": "A String", # The name of the domain, e.g. "google.com".
575 "legacyId": "A String", # An opaque string used to identify this domain.
576 },
577 "drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
578 "name": "A String", # The resource name of the shared drive. The format is
579 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
580 # ID for this resource name.
581 "title": "A String", # The title of the shared drive.
582 },
583 "user": { # Information about an end user. # The user that owns the Drive item.
584 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
585 },
586 "knownUser": { # A known user. # A known user.
587 "personName": "A String", # The identifier for this user that can be used with the People API to get
588 # more information. The format is "people/ACCOUNT_ID". See
589 # https://developers.google.com/people/.
590 "isCurrentUser": True or False, # True if this is the user making the request.
591 },
592 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
593 },
594 },
595 },
596 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
597 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
598 },
599 },
600 "name": "A String", # The resource name of the shared drive. The format is
601 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
602 # ID for this resource name.
603 "title": "A String", # The title of the shared drive.
604 },
605 },
606 "actor": { # The actor of a Drive activity. # The actor responsible for this action (or empty if all actors are
607 # responsible).
608 "impersonation": { # Information about an impersonation, where an admin acts on behalf of an end # An account acting on behalf of another.
609 # user. Information about the acting admin is not currently available.
610 "impersonatedUser": { # Information about an end user. # The impersonated user.
611 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
612 },
613 "knownUser": { # A known user. # A known user.
614 "personName": "A String", # The identifier for this user that can be used with the People API to get
615 # more information. The format is "people/ACCOUNT_ID". See
616 # https://developers.google.com/people/.
617 "isCurrentUser": True or False, # True if this is the user making the request.
618 },
619 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
620 },
621 },
622 },
623 "administrator": { # Empty message representing an administrator. # An administrator.
624 },
625 "user": { # Information about an end user. # An end user.
626 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
627 },
628 "knownUser": { # A known user. # A known user.
629 "personName": "A String", # The identifier for this user that can be used with the People API to get
630 # more information. The format is "people/ACCOUNT_ID". See
631 # https://developers.google.com/people/.
632 "isCurrentUser": True or False, # True if this is the user making the request.
633 },
634 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
635 },
636 },
637 "anonymous": { # Empty message representing an anonymous user or indicating the authenticated # An anonymous user.
638 # user should be anonymized.
639 },
640 "system": { # Event triggered by system operations instead of end users. # A non-user actor (i.e. system triggered).
641 "type": "A String", # The type of the system event that may triggered activity.
642 },
643 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700644 "detail": { # Data describing the type and additional information of an action. # The type and detailed information about the action.
Dan O'Mearadd494642020-05-01 07:42:23 -0700645 "comment": { # A change about comments on an object. # A change about comments was made.
646 "assignment": { # A comment with an assignment. # A change on an assignment.
647 "subtype": "A String", # The sub-type of this event.
648 "assignedUser": { # Information about an end user. # The user to whom the comment was assigned.
649 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
650 },
651 "knownUser": { # A known user. # A known user.
652 "personName": "A String", # The identifier for this user that can be used with the People API to get
653 # more information. The format is "people/ACCOUNT_ID". See
654 # https://developers.google.com/people/.
655 "isCurrentUser": True or False, # True if this is the user making the request.
656 },
657 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
658 },
659 },
660 },
661 "post": { # A regular posted comment. # A change on a regular posted comment.
662 "subtype": "A String", # The sub-type of this event.
663 },
664 "mentionedUsers": [ # Users who are mentioned in this comment.
665 { # Information about an end user.
666 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
667 },
668 "knownUser": { # A known user. # A known user.
669 "personName": "A String", # The identifier for this user that can be used with the People API to get
670 # more information. The format is "people/ACCOUNT_ID". See
671 # https://developers.google.com/people/.
672 "isCurrentUser": True or False, # True if this is the user making the request.
673 },
674 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
675 },
676 },
677 ],
678 "suggestion": { # A suggestion. # A change on a suggestion.
679 "subtype": "A String", # The sub-type of this event.
680 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700681 },
682 "permissionChange": { # A change of the permission setting on an item. # The permission on an object was changed.
683 "removedPermissions": [ # The set of permissions removed by this change.
684 { # The permission setting of an object.
685 "domain": { # Information about a domain. # The domain to whom this permission applies.
686 "name": "A String", # The name of the domain, e.g. "google.com".
687 "legacyId": "A String", # An opaque string used to identify this domain.
688 },
689 "group": { # Information about a group. # The group to whom this permission applies.
690 "email": "A String", # The email address of the group.
691 "title": "A String", # The title of the group.
692 },
693 "anyone": { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users.
694 },
695 "role": "A String", # Indicates the
Dan O'Mearadd494642020-05-01 07:42:23 -0700696 # &lt;a href="/drive/web/manage-sharing#roles"&gt;Google Drive permissions
697 # role&lt;/a&gt;. The role determines a user's ability to read, write, and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700698 # comment on items.
699 "allowDiscovery": True or False, # If true, the item can be discovered (e.g. in the user's "Shared with me"
700 # collection) without needing a link to the item.
701 "user": { # Information about an end user. # The user to whom this permission applies.
702 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
703 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700704 "knownUser": { # A known user. # A known user.
705 "personName": "A String", # The identifier for this user that can be used with the People API to get
706 # more information. The format is "people/ACCOUNT_ID". See
707 # https://developers.google.com/people/.
708 "isCurrentUser": True or False, # True if this is the user making the request.
709 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700710 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
711 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700712 },
713 },
714 ],
715 "addedPermissions": [ # The set of permissions added by this change.
716 { # The permission setting of an object.
717 "domain": { # Information about a domain. # The domain to whom this permission applies.
718 "name": "A String", # The name of the domain, e.g. "google.com".
719 "legacyId": "A String", # An opaque string used to identify this domain.
720 },
721 "group": { # Information about a group. # The group to whom this permission applies.
722 "email": "A String", # The email address of the group.
723 "title": "A String", # The title of the group.
724 },
725 "anyone": { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users.
726 },
727 "role": "A String", # Indicates the
Dan O'Mearadd494642020-05-01 07:42:23 -0700728 # &lt;a href="/drive/web/manage-sharing#roles"&gt;Google Drive permissions
729 # role&lt;/a&gt;. The role determines a user's ability to read, write, and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700730 # comment on items.
731 "allowDiscovery": True or False, # If true, the item can be discovered (e.g. in the user's "Shared with me"
732 # collection) without needing a link to the item.
733 "user": { # Information about an end user. # The user to whom this permission applies.
734 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
735 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700736 "knownUser": { # A known user. # A known user.
737 "personName": "A String", # The identifier for this user that can be used with the People API to get
738 # more information. The format is "people/ACCOUNT_ID". See
739 # https://developers.google.com/people/.
740 "isCurrentUser": True or False, # True if this is the user making the request.
741 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700742 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
743 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700744 },
745 },
746 ],
747 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700748 "reference": { # Activity in applications other than Drive. # An object was referenced in an application outside of Drive/Docs.
749 "type": "A String", # The reference type corresponding to this event.
750 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700751 "dlpChange": { # A change in the object's data leak prevention status. # A change happened in data leak prevention status.
752 "type": "A String", # The type of Data Leak Prevention (DLP) change.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700753 },
754 "edit": { # An empty message indicating an object was edited. # An object was edited.
755 },
756 "settingsChange": { # Information about settings changes. # Settings were changed.
757 "restrictionChanges": [ # The set of changes made to restrictions.
758 { # Information about restriction policy changes to a feature.
759 "feature": "A String", # The feature which had a change in restriction policy.
760 "newRestriction": "A String", # The restriction in place after the change.
761 },
762 ],
763 },
764 "create": { # An object was created. # An object was created.
765 "new": { # An object was created from scratch. # If present, indicates the object was newly created (e.g. as a blank
766 # document), not derived from a Drive object or external object.
767 },
768 "copy": { # An object was created by copying an existing object. # If present, indicates the object was created by copying an existing Drive
769 # object.
770 "originalObject": { # A lightweight reference to the target of activity. # The the original object.
771 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
772 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
773 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
774 },
775 "driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
776 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
777 "title": "A String", # The title of the Drive item.
Dan O'Mearadd494642020-05-01 07:42:23 -0700778 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
779 # folder.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700780 "type": "A String", # The type of Drive folder.
781 },
782 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
783 },
784 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
785 },
786 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
787 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
788 },
789 },
790 "drive": { # A lightweight reference to a shared drive. # The target is a shared drive.
791 "name": "A String", # The resource name of the shared drive. The format is
792 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
793 # ID for this resource name.
794 "title": "A String", # The title of the shared drive.
795 },
796 },
797 },
798 "upload": { # An object was uploaded into Drive. # If present, indicates the object originated externally and was uploaded
799 # to Drive.
800 },
801 },
802 "move": { # An object was moved. # An object was moved.
803 "removedParents": [ # The removed parent object(s).
804 { # A lightweight reference to the target of activity.
805 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
806 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
807 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
808 },
809 "driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
810 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
811 "title": "A String", # The title of the Drive item.
Dan O'Mearadd494642020-05-01 07:42:23 -0700812 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
813 # folder.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700814 "type": "A String", # The type of Drive folder.
815 },
816 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
817 },
818 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
819 },
820 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
821 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
822 },
823 },
824 "drive": { # A lightweight reference to a shared drive. # The target is a shared drive.
825 "name": "A String", # The resource name of the shared drive. The format is
826 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
827 # ID for this resource name.
828 "title": "A String", # The title of the shared drive.
829 },
830 },
831 ],
832 "addedParents": [ # The added parent object(s).
833 { # A lightweight reference to the target of activity.
834 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
835 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
836 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
837 },
838 "driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
839 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
840 "title": "A String", # The title of the Drive item.
Dan O'Mearadd494642020-05-01 07:42:23 -0700841 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
842 # folder.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700843 "type": "A String", # The type of Drive folder.
844 },
845 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
846 },
847 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
848 },
849 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
850 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
851 },
852 },
853 "drive": { # A lightweight reference to a shared drive. # The target is a shared drive.
854 "name": "A String", # The resource name of the shared drive. The format is
855 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
856 # ID for this resource name.
857 "title": "A String", # The title of the shared drive.
858 },
859 },
860 ],
861 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700862 "rename": { # An object was renamed. # An object was renamed.
863 "newTitle": "A String", # The new title of the drive object.
864 "oldTitle": "A String", # The previous title of the drive object.
865 },
866 "restore": { # A deleted object was restored. # A deleted object was restored.
867 "type": "A String", # The type of restore action taken.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700868 },
869 "delete": { # An object was deleted. # An object was deleted.
870 "type": "A String", # The type of delete action taken.
871 },
872 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700873 },
874 ],
875 "actors": [ # All actor(s) responsible for the activity.
876 { # The actor of a Drive activity.
877 "impersonation": { # Information about an impersonation, where an admin acts on behalf of an end # An account acting on behalf of another.
878 # user. Information about the acting admin is not currently available.
879 "impersonatedUser": { # Information about an end user. # The impersonated user.
880 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
881 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700882 "knownUser": { # A known user. # A known user.
883 "personName": "A String", # The identifier for this user that can be used with the People API to get
884 # more information. The format is "people/ACCOUNT_ID". See
885 # https://developers.google.com/people/.
886 "isCurrentUser": True or False, # True if this is the user making the request.
887 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700888 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
889 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700890 },
891 },
892 "administrator": { # Empty message representing an administrator. # An administrator.
893 },
894 "user": { # Information about an end user. # An end user.
895 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
896 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700897 "knownUser": { # A known user. # A known user.
898 "personName": "A String", # The identifier for this user that can be used with the People API to get
899 # more information. The format is "people/ACCOUNT_ID". See
900 # https://developers.google.com/people/.
901 "isCurrentUser": True or False, # True if this is the user making the request.
902 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700903 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
904 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700905 },
906 "anonymous": { # Empty message representing an anonymous user or indicating the authenticated # An anonymous user.
907 # user should be anonymized.
908 },
909 "system": { # Event triggered by system operations instead of end users. # A non-user actor (i.e. system triggered).
910 "type": "A String", # The type of the system event that may triggered activity.
911 },
912 },
913 ],
914 "targets": [ # All Google Drive objects this activity is about (e.g. file, folder, drive).
915 # This represents the state of the target immediately after the actions
916 # occurred.
917 { # Information about the target of activity.
918 "teamDrive": { # This item is deprecated; please see `Drive` instead. # This field is deprecated; please use the `drive` field instead.
919 "root": { # A Drive item, such as a file or folder. # This field is deprecated; please see `Drive.root` instead.
920 "mimeType": "A String", # The MIME type of the Drive item. See
921 # https://developers.google.com/drive/v3/web/mime-types.
922 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
923 "title": "A String", # The title of the Drive item.
Dan O'Mearadd494642020-05-01 07:42:23 -0700924 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
925 # folder.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700926 "type": "A String", # The type of Drive folder.
927 },
928 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
929 },
930 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
931 },
932 "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
933 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
934 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
935 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
936 },
937 "domain": { # Information about a domain. # The domain of the Drive item owner.
938 "name": "A String", # The name of the domain, e.g. "google.com".
939 "legacyId": "A String", # An opaque string used to identify this domain.
940 },
941 "drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
942 "name": "A String", # The resource name of the shared drive. The format is
943 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
944 # ID for this resource name.
945 "title": "A String", # The title of the shared drive.
946 },
947 "user": { # Information about an end user. # The user that owns the Drive item.
948 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
949 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700950 "knownUser": { # A known user. # A known user.
951 "personName": "A String", # The identifier for this user that can be used with the People API to get
952 # more information. The format is "people/ACCOUNT_ID". See
953 # https://developers.google.com/people/.
954 "isCurrentUser": True or False, # True if this is the user making the request.
955 },
Dan O'Mearadd494642020-05-01 07:42:23 -0700956 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
957 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700958 },
959 },
960 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
961 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
962 },
963 },
964 "name": "A String", # This field is deprecated; please see `Drive.name` instead.
965 "title": "A String", # This field is deprecated; please see `Drive.title` instead.
966 },
967 "fileComment": { # A comment on a file. # The target is a comment on a Drive file.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700968 "legacyDiscussionId": "A String", # The discussion thread to which the comment was added. This identifier is an
969 # opaque string compatible with the Drive API and references the first
970 # comment in a discussion; see
971 # https://developers.google.com/drive/v3/reference/comments/get
Dan O'Mearadd494642020-05-01 07:42:23 -0700972 "legacyCommentId": "A String", # The comment in the discussion thread. This identifier is an opaque string
973 # compatible with the Drive API; see
974 # https://developers.google.com/drive/v3/reference/comments/get
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700975 "parent": { # A Drive item, such as a file or folder. # The Drive item containing this comment.
976 "mimeType": "A String", # The MIME type of the Drive item. See
977 # https://developers.google.com/drive/v3/web/mime-types.
978 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
979 "title": "A String", # The title of the Drive item.
Dan O'Mearadd494642020-05-01 07:42:23 -0700980 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
981 # folder.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700982 "type": "A String", # The type of Drive folder.
983 },
984 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
985 },
986 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
987 },
988 "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
989 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
990 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
991 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
992 },
993 "domain": { # Information about a domain. # The domain of the Drive item owner.
994 "name": "A String", # The name of the domain, e.g. "google.com".
995 "legacyId": "A String", # An opaque string used to identify this domain.
996 },
997 "drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
998 "name": "A String", # The resource name of the shared drive. The format is
999 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
1000 # ID for this resource name.
1001 "title": "A String", # The title of the shared drive.
1002 },
1003 "user": { # Information about an end user. # The user that owns the Drive item.
1004 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
1005 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001006 "knownUser": { # A known user. # A known user.
1007 "personName": "A String", # The identifier for this user that can be used with the People API to get
1008 # more information. The format is "people/ACCOUNT_ID". See
1009 # https://developers.google.com/people/.
1010 "isCurrentUser": True or False, # True if this is the user making the request.
1011 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001012 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
1013 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001014 },
1015 },
1016 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
1017 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
1018 },
1019 },
1020 "linkToDiscussion": "A String", # The link to the discussion thread containing this comment, for example,
1021 # "https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID".
1022 },
1023 "driveItem": { # A Drive item, such as a file or folder. # The target is a Drive item.
1024 "mimeType": "A String", # The MIME type of the Drive item. See
1025 # https://developers.google.com/drive/v3/web/mime-types.
1026 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
1027 "title": "A String", # The title of the Drive item.
Dan O'Mearadd494642020-05-01 07:42:23 -07001028 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
1029 # folder.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001030 "type": "A String", # The type of Drive folder.
1031 },
1032 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
1033 },
1034 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
1035 },
1036 "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
1037 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
1038 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
1039 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
1040 },
1041 "domain": { # Information about a domain. # The domain of the Drive item owner.
1042 "name": "A String", # The name of the domain, e.g. "google.com".
1043 "legacyId": "A String", # An opaque string used to identify this domain.
1044 },
1045 "drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
1046 "name": "A String", # The resource name of the shared drive. The format is
1047 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
1048 # ID for this resource name.
1049 "title": "A String", # The title of the shared drive.
1050 },
1051 "user": { # Information about an end user. # The user that owns the Drive item.
1052 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
1053 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001054 "knownUser": { # A known user. # A known user.
1055 "personName": "A String", # The identifier for this user that can be used with the People API to get
1056 # more information. The format is "people/ACCOUNT_ID". See
1057 # https://developers.google.com/people/.
1058 "isCurrentUser": True or False, # True if this is the user making the request.
1059 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001060 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
1061 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001062 },
1063 },
1064 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
1065 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
1066 },
1067 },
1068 "drive": { # Information about a shared drive. # The target is a shared drive.
1069 "root": { # A Drive item, such as a file or folder. # The root of this shared drive.
1070 "mimeType": "A String", # The MIME type of the Drive item. See
1071 # https://developers.google.com/drive/v3/web/mime-types.
1072 "name": "A String", # The target Drive item. The format is "items/ITEM_ID".
1073 "title": "A String", # The title of the Drive item.
Dan O'Mearadd494642020-05-01 07:42:23 -07001074 "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
1075 # folder.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001076 "type": "A String", # The type of Drive folder.
1077 },
1078 "driveFile": { # A Drive item which is a file. # The Drive item is a file.
1079 },
1080 "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
1081 },
1082 "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
1083 "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
1084 "name": "A String", # This field is deprecated; please see `DriveReference.name` instead.
1085 "title": "A String", # This field is deprecated; please see `DriveReference.title` instead.
1086 },
1087 "domain": { # Information about a domain. # The domain of the Drive item owner.
1088 "name": "A String", # The name of the domain, e.g. "google.com".
1089 "legacyId": "A String", # An opaque string used to identify this domain.
1090 },
1091 "drive": { # A lightweight reference to a shared drive. # The drive that owns the item.
1092 "name": "A String", # The resource name of the shared drive. The format is
1093 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
1094 # ID for this resource name.
1095 "title": "A String", # The title of the shared drive.
1096 },
1097 "user": { # Information about an end user. # The user that owns the Drive item.
1098 "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
1099 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001100 "knownUser": { # A known user. # A known user.
1101 "personName": "A String", # The identifier for this user that can be used with the People API to get
1102 # more information. The format is "people/ACCOUNT_ID". See
1103 # https://developers.google.com/people/.
1104 "isCurrentUser": True or False, # True if this is the user making the request.
1105 },
Dan O'Mearadd494642020-05-01 07:42:23 -07001106 "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted.
1107 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001108 },
1109 },
1110 "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
1111 "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead.
1112 },
1113 },
1114 "name": "A String", # The resource name of the shared drive. The format is
1115 # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection
1116 # ID for this resource name.
1117 "title": "A String", # The title of the shared drive.
1118 },
1119 },
1120 ],
1121 },
1122 ],
1123 }</pre>
1124</div>
1125
1126<div class="method">
1127 <code class="details" id="query_next">query_next(previous_request, previous_response)</code>
1128 <pre>Retrieves the next page of results.
1129
1130Args:
1131 previous_request: The request for the previous page. (required)
1132 previous_response: The response from the request for the previous page. (required)
1133
1134Returns:
1135 A request object that you can call 'execute()' on to request the next
1136 page. Returns None if there are no more items in the collection.
1137 </pre>
1138</div>
1139
1140</body></html>