blob: 5f7e3415b23fbcb3feaeb8b74271ebebcd31a601 [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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -070093 &quot;ancestorName&quot;: &quot;A String&quot;, # Return activities for this Drive folder and all children and descendants.
94 # The format is &quot;items/ITEM_ID&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -070095 &quot;pageSize&quot;: 42, # The miminum number of activities desired in the response; the server will
Dan O'Mearadd494642020-05-01 07:42:23 -070096 # attempt to return at least this quanitity. The server may also return fewer
97 # activities if it has a partial response ready before the request times out.
98 # If not set, a default value is used.
Bu Sun Kimd059ad82020-07-22 17:02:09 -070099 &quot;pageToken&quot;: &quot;A String&quot;, # The token identifying which page of results to return. Set this to the
100 # next_page_token value returned from a previous query to obtain the
101 # following page of results. If not set, the first page of results will be
102 # returned.
103 &quot;itemName&quot;: &quot;A String&quot;, # Return activities for this Drive item. The format is
104 # &quot;items/ITEM_ID&quot;.
105 &quot;consolidationStrategy&quot;: { # 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
106 # not set, then related actions are not consolidated.
107 # consolidated into one combined activity if they are related in some way, such
108 # as one actor performing the same action on multiple targets, or multiple
109 # actors performing the same action on a single target. The strategy defines
110 # the rules for which activities are related.
111 &quot;none&quot;: { # A strategy which does no consolidation of individual activities. # The individual activities are not consolidated.
112 },
113 &quot;legacy&quot;: { # A strategy which consolidates activities using the grouping rules from the # The individual activities are consolidated using the legacy strategy.
114 # legacy V1 Activity API. Similar actions occurring within a window of time
115 # can be grouped across multiple targets (such as moving a set of files at
116 # once) or multiple actors (such as several users editing the same item).
117 # Grouping rules for this strategy are specific to each type of action.
118 },
119 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700120 &quot;filter&quot;: &quot;A String&quot;, # The filtering for items returned from this query request. The format of the
121 # filter string is a sequence of expressions, joined by an optional &quot;AND&quot;,
122 # where each expression is of the form &quot;field operator value&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123 #
124 # Supported fields:
125 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700126 # - &lt;tt&gt;time&lt;/tt&gt;: Uses numerical operators on date values either in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127 # terms of milliseconds since Jan 1, 1970 or in RFC 3339 format.
128 # Examples:
Dan O'Mearadd494642020-05-01 07:42:23 -0700129 # - &lt;tt&gt;time &gt; 1452409200000 AND time &lt;= 1492812924310&lt;/tt&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 # - &lt;tt&gt;time &gt;= &quot;2016-01-10T01:02:03-05:00&quot;&lt;/tt&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 # - &lt;tt&gt;detail.action_detail_case&lt;/tt&gt;: Uses the &quot;has&quot; operator (:) and
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700133 # either a singular value or a list of allowed action types enclosed in
134 # parentheses.
135 # Examples:
Dan O'Mearadd494642020-05-01 07:42:23 -0700136 # - &lt;tt&gt;detail.action_detail_case: RENAME&lt;/tt&gt;
137 # - &lt;tt&gt;detail.action_detail_case:(CREATE EDIT)&lt;/tt&gt;
138 # - &lt;tt&gt;-detail.action_detail_case:MOVE&lt;/tt&gt;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700139 }
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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700150 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or
151 # empty if there are no more results in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;activities&quot;: [ # List of activity requested.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700153 { # 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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700159 &quot;actors&quot;: [ # All actor(s) responsible for the activity.
160 { # The actor of a Drive activity.
161 &quot;impersonation&quot;: { # Information about an impersonation, where an admin acts on behalf of an end # An account acting on behalf of another.
162 # user. Information about the acting admin is not currently available.
163 &quot;impersonatedUser&quot;: { # Information about an end user. # The impersonated user.
164 &quot;knownUser&quot;: { # A known user. # A known user.
165 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
166 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
167 # https://developers.google.com/people/.
168 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
169 },
170 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
171 },
172 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
173 },
174 },
175 },
176 &quot;user&quot;: { # Information about an end user. # An end user.
177 &quot;knownUser&quot;: { # A known user. # A known user.
178 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
179 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
180 # https://developers.google.com/people/.
181 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
182 },
183 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
184 },
185 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
186 },
187 },
188 &quot;administrator&quot;: { # Empty message representing an administrator. # An administrator.
189 },
190 &quot;system&quot;: { # Event triggered by system operations instead of end users. # A non-user actor (i.e. system triggered).
191 &quot;type&quot;: &quot;A String&quot;, # The type of the system event that may triggered activity.
192 },
193 &quot;anonymous&quot;: { # Empty message representing an anonymous user or indicating the authenticated # An anonymous user.
194 # user should be anonymized.
195 },
196 },
197 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700198 &quot;timeRange&quot;: { # Information about time ranges. # The activity occurred over this time range.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700199 &quot;endTime&quot;: &quot;A String&quot;, # The end of the time range.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700200 &quot;startTime&quot;: &quot;A String&quot;, # The start of the time range.
Bu Sun Kim65020912020-05-20 12:08:20 -0700201 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700202 &quot;timestamp&quot;: &quot;A String&quot;, # The activity occurred at this specific time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;actions&quot;: [ # Details on all actions in this activity.
204 { # Information about the action.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700205 &quot;timestamp&quot;: &quot;A String&quot;, # The action occurred at this specific time.
Bu Sun Kim65020912020-05-20 12:08:20 -0700206 &quot;detail&quot;: { # Data describing the type and additional information of an action. # The type and detailed information about the action.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700207 &quot;dlpChange&quot;: { # A change in the object&#x27;s data leak prevention status. # A change happened in data leak prevention status.
208 &quot;type&quot;: &quot;A String&quot;, # The type of Data Leak Prevention (DLP) change.
Bu Sun Kim65020912020-05-20 12:08:20 -0700209 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700210 &quot;rename&quot;: { # An object was renamed. # An object was renamed.
211 &quot;oldTitle&quot;: &quot;A String&quot;, # The previous title of the drive object.
212 &quot;newTitle&quot;: &quot;A String&quot;, # The new title of the drive object.
213 },
214 &quot;comment&quot;: { # A change about comments on an object. # A change about comments was made.
215 &quot;mentionedUsers&quot;: [ # Users who are mentioned in this comment.
216 { # Information about an end user.
217 &quot;knownUser&quot;: { # A known user. # A known user.
218 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
219 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
220 # https://developers.google.com/people/.
221 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700222 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700223 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
Bu Sun Kim65020912020-05-20 12:08:20 -0700224 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700225 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 },
227 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700228 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700229 &quot;suggestion&quot;: { # A suggestion. # A change on a suggestion.
230 &quot;subtype&quot;: &quot;A String&quot;, # The sub-type of this event.
231 },
232 &quot;assignment&quot;: { # A comment with an assignment. # A change on an assignment.
233 &quot;assignedUser&quot;: { # Information about an end user. # The user to whom the comment was assigned.
234 &quot;knownUser&quot;: { # A known user. # A known user.
235 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
236 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
237 # https://developers.google.com/people/.
238 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700239 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700240 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700241 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700242 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700243 },
244 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700245 &quot;subtype&quot;: &quot;A String&quot;, # The sub-type of this event.
246 },
247 &quot;post&quot;: { # A regular posted comment. # A change on a regular posted comment.
248 &quot;subtype&quot;: &quot;A String&quot;, # The sub-type of this event.
249 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700250 },
251 &quot;reference&quot;: { # Activity in applications other than Drive. # An object was referenced in an application outside of Drive/Docs.
252 &quot;type&quot;: &quot;A String&quot;, # The reference type corresponding to this event.
253 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700254 &quot;settingsChange&quot;: { # Information about settings changes. # Settings were changed.
255 &quot;restrictionChanges&quot;: [ # The set of changes made to restrictions.
256 { # Information about restriction policy changes to a feature.
257 &quot;feature&quot;: &quot;A String&quot;, # The feature which had a change in restriction policy.
258 &quot;newRestriction&quot;: &quot;A String&quot;, # The restriction in place after the change.
259 },
260 ],
261 },
262 &quot;restore&quot;: { # A deleted object was restored. # A deleted object was restored.
263 &quot;type&quot;: &quot;A String&quot;, # The type of restore action taken.
264 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700265 &quot;create&quot;: { # An object was created. # An object was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700266 &quot;new&quot;: { # An object was created from scratch. # If present, indicates the object was newly created (e.g. as a blank
267 # document), not derived from a Drive object or external object.
268 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700269 &quot;copy&quot;: { # An object was created by copying an existing object. # If present, indicates the object was created by copying an existing Drive
270 # object.
271 &quot;originalObject&quot;: { # A lightweight reference to the target of activity. # The the original object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700272 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The target is a shared drive.
273 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
274 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
275 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
276 # ID for this resource name.
277 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700278 &quot;driveItem&quot;: { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
279 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
280 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
281 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
282 },
283 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
284 },
285 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
286 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
287 },
288 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
289 # folder.
290 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
291 },
292 },
293 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
294 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
295 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
296 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700298 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700299 &quot;upload&quot;: { # An object was uploaded into Drive. # If present, indicates the object originated externally and was uploaded
300 # to Drive.
301 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700302 },
303 &quot;permissionChange&quot;: { # A change of the permission setting on an item. # The permission on an object was changed.
304 &quot;removedPermissions&quot;: [ # The set of permissions removed by this change.
305 { # The permission setting of an object.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700306 &quot;anyone&quot;: { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users.
307 },
308 &quot;domain&quot;: { # Information about a domain. # The domain to whom this permission applies.
309 &quot;legacyId&quot;: &quot;A String&quot;, # An opaque string used to identify this domain.
310 &quot;name&quot;: &quot;A String&quot;, # The name of the domain, e.g. &quot;google.com&quot;.
311 },
312 &quot;group&quot;: { # Information about a group. # The group to whom this permission applies.
313 &quot;email&quot;: &quot;A String&quot;, # The email address of the group.
314 &quot;title&quot;: &quot;A String&quot;, # The title of the group.
315 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700316 &quot;role&quot;: &quot;A String&quot;, # Indicates the
317 # &lt;a href=&quot;/drive/web/manage-sharing#roles&quot;&gt;Google Drive permissions
318 # role&lt;/a&gt;. The role determines a user&#x27;s ability to read, write, and
319 # comment on items.
320 &quot;allowDiscovery&quot;: True or False, # If true, the item can be discovered (e.g. in the user&#x27;s &quot;Shared with me&quot;
321 # collection) without needing a link to the item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700322 &quot;user&quot;: { # Information about an end user. # The user to whom this permission applies.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700323 &quot;knownUser&quot;: { # A known user. # A known user.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700324 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
325 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
326 # https://developers.google.com/people/.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700327 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
328 },
329 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700330 },
331 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
332 },
333 },
334 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700336 &quot;addedPermissions&quot;: [ # The set of permissions added by this change.
337 { # The permission setting of an object.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700338 &quot;anyone&quot;: { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users.
339 },
340 &quot;domain&quot;: { # Information about a domain. # The domain to whom this permission applies.
341 &quot;legacyId&quot;: &quot;A String&quot;, # An opaque string used to identify this domain.
342 &quot;name&quot;: &quot;A String&quot;, # The name of the domain, e.g. &quot;google.com&quot;.
343 },
344 &quot;group&quot;: { # Information about a group. # The group to whom this permission applies.
345 &quot;email&quot;: &quot;A String&quot;, # The email address of the group.
346 &quot;title&quot;: &quot;A String&quot;, # The title of the group.
347 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700348 &quot;role&quot;: &quot;A String&quot;, # Indicates the
349 # &lt;a href=&quot;/drive/web/manage-sharing#roles&quot;&gt;Google Drive permissions
350 # role&lt;/a&gt;. The role determines a user&#x27;s ability to read, write, and
351 # comment on items.
352 &quot;allowDiscovery&quot;: True or False, # If true, the item can be discovered (e.g. in the user&#x27;s &quot;Shared with me&quot;
353 # collection) without needing a link to the item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700354 &quot;user&quot;: { # Information about an end user. # The user to whom this permission applies.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700355 &quot;knownUser&quot;: { # A known user. # A known user.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700356 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
357 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
358 # https://developers.google.com/people/.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700359 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
360 },
361 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700362 },
363 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
364 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700365 },
366 },
367 ],
368 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700369 &quot;delete&quot;: { # An object was deleted. # An object was deleted.
370 &quot;type&quot;: &quot;A String&quot;, # The type of delete action taken.
Bu Sun Kim65020912020-05-20 12:08:20 -0700371 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700372 &quot;edit&quot;: { # An empty message indicating an object was edited. # An object was edited.
Bu Sun Kim65020912020-05-20 12:08:20 -0700373 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700374 &quot;move&quot;: { # An object was moved. # An object was moved.
375 &quot;addedParents&quot;: [ # The added parent object(s).
376 { # A lightweight reference to the target of activity.
377 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The target is a shared drive.
378 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
379 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
380 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
381 # ID for this resource name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700382 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700383 &quot;driveItem&quot;: { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
384 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
385 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
386 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
387 },
388 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
389 },
390 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
391 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
392 },
393 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
394 # folder.
395 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
396 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700397 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700398 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
399 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
400 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700401 },
402 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700403 ],
404 &quot;removedParents&quot;: [ # The removed parent object(s).
405 { # A lightweight reference to the target of activity.
406 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The target is a shared drive.
407 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
408 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
409 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
410 # ID for this resource name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700411 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700412 &quot;driveItem&quot;: { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
413 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
414 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
415 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
416 },
417 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
418 },
419 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
420 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
421 },
422 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
423 # folder.
424 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
425 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700426 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700427 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
428 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
429 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700430 },
431 },
432 ],
433 },
434 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700435 &quot;timeRange&quot;: { # Information about time ranges. # The action occurred over this time range.
436 &quot;endTime&quot;: &quot;A String&quot;, # The end of the time range.
437 &quot;startTime&quot;: &quot;A String&quot;, # The start of the time range.
438 },
439 &quot;actor&quot;: { # The actor of a Drive activity. # The actor responsible for this action (or empty if all actors are
440 # responsible).
441 &quot;impersonation&quot;: { # Information about an impersonation, where an admin acts on behalf of an end # An account acting on behalf of another.
442 # user. Information about the acting admin is not currently available.
443 &quot;impersonatedUser&quot;: { # Information about an end user. # The impersonated user.
444 &quot;knownUser&quot;: { # A known user. # A known user.
445 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
446 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
447 # https://developers.google.com/people/.
448 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
449 },
450 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
451 },
452 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
453 },
454 },
455 },
456 &quot;user&quot;: { # Information about an end user. # An end user.
457 &quot;knownUser&quot;: { # A known user. # A known user.
458 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
459 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
460 # https://developers.google.com/people/.
461 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
462 },
463 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
464 },
465 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
466 },
467 },
468 &quot;administrator&quot;: { # Empty message representing an administrator. # An administrator.
469 },
470 &quot;system&quot;: { # Event triggered by system operations instead of end users. # A non-user actor (i.e. system triggered).
471 &quot;type&quot;: &quot;A String&quot;, # The type of the system event that may triggered activity.
472 },
473 &quot;anonymous&quot;: { # Empty message representing an anonymous user or indicating the authenticated # An anonymous user.
474 # user should be anonymized.
475 },
476 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700477 &quot;target&quot;: { # Information about the target of activity. # The target this action affects (or empty if affecting all targets). This
478 # represents the state of the target immediately after this action occurred.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700479 &quot;driveItem&quot;: { # A Drive item, such as a file or folder. # The target is a Drive item.
480 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
481 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700482 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
483 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
484 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
485 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
486 },
487 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the Drive item. See
488 # https://developers.google.com/drive/v3/web/mime-types.
489 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
490 # folder.
491 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
492 },
493 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
494 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700495 &quot;owner&quot;: { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
496 &quot;user&quot;: { # Information about an end user. # The user that owns the Drive item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700497 &quot;knownUser&quot;: { # A known user. # A known user.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700498 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
499 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
500 # https://developers.google.com/people/.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700501 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
502 },
503 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700504 },
505 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
506 },
507 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700508 &quot;domain&quot;: { # Information about a domain. # The domain of the Drive item owner.
509 &quot;legacyId&quot;: &quot;A String&quot;, # An opaque string used to identify this domain.
510 &quot;name&quot;: &quot;A String&quot;, # The name of the domain, e.g. &quot;google.com&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700511 },
512 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The drive that owns the item.
513 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
514 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
515 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
516 # ID for this resource name.
517 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700518 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
519 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
520 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700521 },
522 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700523 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700524 &quot;teamDrive&quot;: { # This item is deprecated; please see `Drive` instead. # This field is deprecated; please use the `drive` field instead.
525 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `Drive.name` instead.
526 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `Drive.title` instead.
527 &quot;root&quot;: { # A Drive item, such as a file or folder. # This field is deprecated; please see `Drive.root` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700528 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
529 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700530 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
531 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
532 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
533 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
534 },
535 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the Drive item. See
536 # https://developers.google.com/drive/v3/web/mime-types.
537 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
538 # folder.
539 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
540 },
541 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
542 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700543 &quot;owner&quot;: { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
544 &quot;user&quot;: { # Information about an end user. # The user that owns the Drive item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700545 &quot;knownUser&quot;: { # A known user. # A known user.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700546 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
547 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
548 # https://developers.google.com/people/.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700549 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
550 },
551 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700552 },
553 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
554 },
555 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700556 &quot;domain&quot;: { # Information about a domain. # The domain of the Drive item owner.
557 &quot;legacyId&quot;: &quot;A String&quot;, # An opaque string used to identify this domain.
558 &quot;name&quot;: &quot;A String&quot;, # The name of the domain, e.g. &quot;google.com&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700559 },
560 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The drive that owns the item.
561 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
562 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
563 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
564 # ID for this resource name.
565 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700566 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
567 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
568 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700569 },
570 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700571 },
572 },
573 &quot;drive&quot;: { # Information about a shared drive. # The target is a shared drive.
574 &quot;root&quot;: { # A Drive item, such as a file or folder. # The root of this shared drive.
575 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
576 },
577 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
578 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700579 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
580 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
581 },
582 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the Drive item. See
583 # https://developers.google.com/drive/v3/web/mime-types.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700584 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
585 # folder.
586 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
587 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700588 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
589 },
590 &quot;owner&quot;: { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
591 &quot;user&quot;: { # Information about an end user. # The user that owns the Drive item.
592 &quot;knownUser&quot;: { # A known user. # A known user.
593 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
594 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
595 # https://developers.google.com/people/.
596 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
597 },
598 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
599 },
600 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
601 },
602 },
603 &quot;domain&quot;: { # Information about a domain. # The domain of the Drive item owner.
604 &quot;legacyId&quot;: &quot;A String&quot;, # An opaque string used to identify this domain.
605 &quot;name&quot;: &quot;A String&quot;, # The name of the domain, e.g. &quot;google.com&quot;.
606 },
607 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The drive that owns the item.
608 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
609 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
610 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
611 # ID for this resource name.
612 },
613 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
614 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
615 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
616 },
617 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700618 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700619 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
620 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
621 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
622 # ID for this resource name.
623 },
624 &quot;fileComment&quot;: { # A comment on a file. # The target is a comment on a Drive file.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700625 &quot;legacyDiscussionId&quot;: &quot;A String&quot;, # The discussion thread to which the comment was added. This identifier is an
626 # opaque string compatible with the Drive API and references the first
627 # comment in a discussion; see
628 # https://developers.google.com/drive/v3/reference/comments/get
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700629 &quot;parent&quot;: { # A Drive item, such as a file or folder. # The Drive item containing this comment.
630 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
631 },
632 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
633 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
634 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
635 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
636 },
637 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the Drive item. See
638 # https://developers.google.com/drive/v3/web/mime-types.
639 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
640 # folder.
641 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
642 },
643 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
644 },
645 &quot;owner&quot;: { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
646 &quot;user&quot;: { # Information about an end user. # The user that owns the Drive item.
647 &quot;knownUser&quot;: { # A known user. # A known user.
648 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
649 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
650 # https://developers.google.com/people/.
651 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
652 },
653 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
654 },
655 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
656 },
657 },
658 &quot;domain&quot;: { # Information about a domain. # The domain of the Drive item owner.
659 &quot;legacyId&quot;: &quot;A String&quot;, # An opaque string used to identify this domain.
660 &quot;name&quot;: &quot;A String&quot;, # The name of the domain, e.g. &quot;google.com&quot;.
661 },
662 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The drive that owns the item.
663 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
664 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
665 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
666 # ID for this resource name.
667 },
668 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
669 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
670 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
671 },
672 },
673 },
674 &quot;legacyCommentId&quot;: &quot;A String&quot;, # The comment in the discussion thread. This identifier is an opaque string
675 # compatible with the Drive API; see
676 # https://developers.google.com/drive/v3/reference/comments/get
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700677 &quot;linkToDiscussion&quot;: &quot;A String&quot;, # The link to the discussion thread containing this comment, for example,
678 # &quot;https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID&quot;.
679 },
680 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700681 },
682 ],
683 &quot;targets&quot;: [ # All Google Drive objects this activity is about (e.g. file, folder, drive).
684 # This represents the state of the target immediately after the actions
685 # occurred.
686 { # Information about the target of activity.
687 &quot;driveItem&quot;: { # A Drive item, such as a file or folder. # The target is a Drive item.
688 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
689 },
690 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
691 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
692 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
693 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
694 },
695 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the Drive item. See
696 # https://developers.google.com/drive/v3/web/mime-types.
697 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
698 # folder.
699 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
700 },
701 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
702 },
703 &quot;owner&quot;: { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
704 &quot;user&quot;: { # Information about an end user. # The user that owns the Drive item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700705 &quot;knownUser&quot;: { # A known user. # A known user.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700706 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
707 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
708 # https://developers.google.com/people/.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700709 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
710 },
711 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700712 },
713 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
714 },
715 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700716 &quot;domain&quot;: { # Information about a domain. # The domain of the Drive item owner.
717 &quot;legacyId&quot;: &quot;A String&quot;, # An opaque string used to identify this domain.
718 &quot;name&quot;: &quot;A String&quot;, # The name of the domain, e.g. &quot;google.com&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700719 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700720 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The drive that owns the item.
721 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
722 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
723 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
724 # ID for this resource name.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700725 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700726 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
727 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
728 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700729 },
730 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700731 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700732 &quot;teamDrive&quot;: { # This item is deprecated; please see `Drive` instead. # This field is deprecated; please use the `drive` field instead.
733 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `Drive.name` instead.
734 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `Drive.title` instead.
735 &quot;root&quot;: { # A Drive item, such as a file or folder. # This field is deprecated; please see `Drive.root` instead.
736 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
737 },
738 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
739 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
740 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
741 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
742 },
743 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the Drive item. See
744 # https://developers.google.com/drive/v3/web/mime-types.
745 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
746 # folder.
747 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
748 },
749 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
750 },
751 &quot;owner&quot;: { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
752 &quot;user&quot;: { # Information about an end user. # The user that owns the Drive item.
753 &quot;knownUser&quot;: { # A known user. # A known user.
754 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
755 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
756 # https://developers.google.com/people/.
757 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
758 },
759 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
760 },
761 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
762 },
763 },
764 &quot;domain&quot;: { # Information about a domain. # The domain of the Drive item owner.
765 &quot;legacyId&quot;: &quot;A String&quot;, # An opaque string used to identify this domain.
766 &quot;name&quot;: &quot;A String&quot;, # The name of the domain, e.g. &quot;google.com&quot;.
767 },
768 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The drive that owns the item.
769 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
770 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
771 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
772 # ID for this resource name.
773 },
774 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
775 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
776 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
777 },
778 },
779 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700780 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700781 &quot;drive&quot;: { # Information about a shared drive. # The target is a shared drive.
782 &quot;root&quot;: { # A Drive item, such as a file or folder. # The root of this shared drive.
783 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
784 },
785 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
786 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
787 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
788 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
789 },
790 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the Drive item. See
791 # https://developers.google.com/drive/v3/web/mime-types.
792 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
793 # folder.
794 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
795 },
796 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
797 },
798 &quot;owner&quot;: { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
799 &quot;user&quot;: { # Information about an end user. # The user that owns the Drive item.
800 &quot;knownUser&quot;: { # A known user. # A known user.
801 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
802 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
803 # https://developers.google.com/people/.
804 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
805 },
806 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
807 },
808 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
809 },
810 },
811 &quot;domain&quot;: { # Information about a domain. # The domain of the Drive item owner.
812 &quot;legacyId&quot;: &quot;A String&quot;, # An opaque string used to identify this domain.
813 &quot;name&quot;: &quot;A String&quot;, # The name of the domain, e.g. &quot;google.com&quot;.
814 },
815 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The drive that owns the item.
816 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
817 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
818 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
819 # ID for this resource name.
820 },
821 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
822 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
823 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
824 },
825 },
826 },
827 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
828 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
829 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
830 # ID for this resource name.
831 },
832 &quot;fileComment&quot;: { # A comment on a file. # The target is a comment on a Drive file.
833 &quot;legacyDiscussionId&quot;: &quot;A String&quot;, # The discussion thread to which the comment was added. This identifier is an
834 # opaque string compatible with the Drive API and references the first
835 # comment in a discussion; see
836 # https://developers.google.com/drive/v3/reference/comments/get
837 &quot;parent&quot;: { # A Drive item, such as a file or folder. # The Drive item containing this comment.
838 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
839 },
840 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
841 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
842 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
843 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
844 },
845 &quot;mimeType&quot;: &quot;A String&quot;, # The MIME type of the Drive item. See
846 # https://developers.google.com/drive/v3/web/mime-types.
847 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
848 # folder.
849 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
850 },
851 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
852 },
853 &quot;owner&quot;: { # Information about the owner of a Drive item. # Information about the owner of this Drive item.
854 &quot;user&quot;: { # Information about an end user. # The user that owns the Drive item.
855 &quot;knownUser&quot;: { # A known user. # A known user.
856 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
857 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
858 # https://developers.google.com/people/.
859 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
860 },
861 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
862 },
863 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
864 },
865 },
866 &quot;domain&quot;: { # Information about a domain. # The domain of the Drive item owner.
867 &quot;legacyId&quot;: &quot;A String&quot;, # An opaque string used to identify this domain.
868 &quot;name&quot;: &quot;A String&quot;, # The name of the domain, e.g. &quot;google.com&quot;.
869 },
870 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The drive that owns the item.
871 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
872 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
873 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
874 # ID for this resource name.
875 },
876 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
877 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
878 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
879 },
880 },
881 },
882 &quot;legacyCommentId&quot;: &quot;A String&quot;, # The comment in the discussion thread. This identifier is an opaque string
883 # compatible with the Drive API; see
884 # https://developers.google.com/drive/v3/reference/comments/get
885 &quot;linkToDiscussion&quot;: &quot;A String&quot;, # The link to the discussion thread containing this comment, for example,
886 # &quot;https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID&quot;.
887 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700888 },
889 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700890 &quot;primaryActionDetail&quot;: { # Data describing the type and additional information of an action. # Key information about the primary action for this activity. This is either
891 # representative, or the most important, of all actions in the activity,
892 # according to the ConsolidationStrategy in the request.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700893 &quot;dlpChange&quot;: { # A change in the object&#x27;s data leak prevention status. # A change happened in data leak prevention status.
894 &quot;type&quot;: &quot;A String&quot;, # The type of Data Leak Prevention (DLP) change.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700895 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700896 &quot;rename&quot;: { # An object was renamed. # An object was renamed.
897 &quot;oldTitle&quot;: &quot;A String&quot;, # The previous title of the drive object.
898 &quot;newTitle&quot;: &quot;A String&quot;, # The new title of the drive object.
899 },
900 &quot;comment&quot;: { # A change about comments on an object. # A change about comments was made.
901 &quot;mentionedUsers&quot;: [ # Users who are mentioned in this comment.
902 { # Information about an end user.
903 &quot;knownUser&quot;: { # A known user. # A known user.
904 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
905 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
906 # https://developers.google.com/people/.
907 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700908 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700909 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700910 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700911 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700912 },
913 },
914 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700915 &quot;suggestion&quot;: { # A suggestion. # A change on a suggestion.
916 &quot;subtype&quot;: &quot;A String&quot;, # The sub-type of this event.
917 },
918 &quot;assignment&quot;: { # A comment with an assignment. # A change on an assignment.
919 &quot;assignedUser&quot;: { # Information about an end user. # The user to whom the comment was assigned.
920 &quot;knownUser&quot;: { # A known user. # A known user.
921 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
922 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
923 # https://developers.google.com/people/.
924 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700925 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700926 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700927 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700928 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700929 },
930 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700931 &quot;subtype&quot;: &quot;A String&quot;, # The sub-type of this event.
932 },
933 &quot;post&quot;: { # A regular posted comment. # A change on a regular posted comment.
934 &quot;subtype&quot;: &quot;A String&quot;, # The sub-type of this event.
935 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700936 },
937 &quot;reference&quot;: { # Activity in applications other than Drive. # An object was referenced in an application outside of Drive/Docs.
938 &quot;type&quot;: &quot;A String&quot;, # The reference type corresponding to this event.
939 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700940 &quot;settingsChange&quot;: { # Information about settings changes. # Settings were changed.
941 &quot;restrictionChanges&quot;: [ # The set of changes made to restrictions.
942 { # Information about restriction policy changes to a feature.
943 &quot;feature&quot;: &quot;A String&quot;, # The feature which had a change in restriction policy.
944 &quot;newRestriction&quot;: &quot;A String&quot;, # The restriction in place after the change.
945 },
946 ],
947 },
948 &quot;restore&quot;: { # A deleted object was restored. # A deleted object was restored.
949 &quot;type&quot;: &quot;A String&quot;, # The type of restore action taken.
950 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700951 &quot;create&quot;: { # An object was created. # An object was created.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700952 &quot;new&quot;: { # An object was created from scratch. # If present, indicates the object was newly created (e.g. as a blank
953 # document), not derived from a Drive object or external object.
954 },
955 &quot;copy&quot;: { # An object was created by copying an existing object. # If present, indicates the object was created by copying an existing Drive
956 # object.
957 &quot;originalObject&quot;: { # A lightweight reference to the target of activity. # The the original object.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700958 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The target is a shared drive.
959 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
960 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
961 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
962 # ID for this resource name.
963 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700964 &quot;driveItem&quot;: { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
965 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
966 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
967 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
968 },
969 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
970 },
971 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
972 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
973 },
974 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
975 # folder.
976 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
977 },
978 },
979 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
980 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
981 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
982 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700983 },
984 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700985 &quot;upload&quot;: { # An object was uploaded into Drive. # If present, indicates the object originated externally and was uploaded
986 # to Drive.
987 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700988 },
989 &quot;permissionChange&quot;: { # A change of the permission setting on an item. # The permission on an object was changed.
990 &quot;removedPermissions&quot;: [ # The set of permissions removed by this change.
991 { # The permission setting of an object.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700992 &quot;anyone&quot;: { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users.
993 },
994 &quot;domain&quot;: { # Information about a domain. # The domain to whom this permission applies.
995 &quot;legacyId&quot;: &quot;A String&quot;, # An opaque string used to identify this domain.
996 &quot;name&quot;: &quot;A String&quot;, # The name of the domain, e.g. &quot;google.com&quot;.
997 },
998 &quot;group&quot;: { # Information about a group. # The group to whom this permission applies.
999 &quot;email&quot;: &quot;A String&quot;, # The email address of the group.
1000 &quot;title&quot;: &quot;A String&quot;, # The title of the group.
1001 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001002 &quot;role&quot;: &quot;A String&quot;, # Indicates the
1003 # &lt;a href=&quot;/drive/web/manage-sharing#roles&quot;&gt;Google Drive permissions
1004 # role&lt;/a&gt;. The role determines a user&#x27;s ability to read, write, and
1005 # comment on items.
1006 &quot;allowDiscovery&quot;: True or False, # If true, the item can be discovered (e.g. in the user&#x27;s &quot;Shared with me&quot;
1007 # collection) without needing a link to the item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001008 &quot;user&quot;: { # Information about an end user. # The user to whom this permission applies.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001009 &quot;knownUser&quot;: { # A known user. # A known user.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001010 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
1011 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
1012 # https://developers.google.com/people/.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001013 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
1014 },
1015 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001016 },
1017 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
1018 },
1019 },
1020 },
1021 ],
1022 &quot;addedPermissions&quot;: [ # The set of permissions added by this change.
1023 { # The permission setting of an object.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001024 &quot;anyone&quot;: { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users.
1025 },
1026 &quot;domain&quot;: { # Information about a domain. # The domain to whom this permission applies.
1027 &quot;legacyId&quot;: &quot;A String&quot;, # An opaque string used to identify this domain.
1028 &quot;name&quot;: &quot;A String&quot;, # The name of the domain, e.g. &quot;google.com&quot;.
1029 },
1030 &quot;group&quot;: { # Information about a group. # The group to whom this permission applies.
1031 &quot;email&quot;: &quot;A String&quot;, # The email address of the group.
1032 &quot;title&quot;: &quot;A String&quot;, # The title of the group.
1033 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001034 &quot;role&quot;: &quot;A String&quot;, # Indicates the
1035 # &lt;a href=&quot;/drive/web/manage-sharing#roles&quot;&gt;Google Drive permissions
1036 # role&lt;/a&gt;. The role determines a user&#x27;s ability to read, write, and
1037 # comment on items.
1038 &quot;allowDiscovery&quot;: True or False, # If true, the item can be discovered (e.g. in the user&#x27;s &quot;Shared with me&quot;
1039 # collection) without needing a link to the item.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001040 &quot;user&quot;: { # Information about an end user. # The user to whom this permission applies.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001041 &quot;knownUser&quot;: { # A known user. # A known user.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001042 &quot;personName&quot;: &quot;A String&quot;, # The identifier for this user that can be used with the People API to get
1043 # more information. The format is &quot;people/ACCOUNT_ID&quot;. See
1044 # https://developers.google.com/people/.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001045 &quot;isCurrentUser&quot;: True or False, # True if this is the user making the request.
1046 },
1047 &quot;deletedUser&quot;: { # A user whose account has since been deleted. # A user whose account has since been deleted.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001048 },
1049 &quot;unknownUser&quot;: { # A user about whom nothing is currently known. # A user about whom nothing is currently known.
1050 },
1051 },
1052 },
1053 ],
1054 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001055 &quot;delete&quot;: { # An object was deleted. # An object was deleted.
1056 &quot;type&quot;: &quot;A String&quot;, # The type of delete action taken.
1057 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001058 &quot;edit&quot;: { # An empty message indicating an object was edited. # An object was edited.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001059 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001060 &quot;move&quot;: { # An object was moved. # An object was moved.
1061 &quot;addedParents&quot;: [ # The added parent object(s).
1062 { # A lightweight reference to the target of activity.
1063 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The target is a shared drive.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001064 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
1065 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
1066 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
1067 # ID for this resource name.
1068 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001069 &quot;driveItem&quot;: { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
1070 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
1071 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
1072 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001073 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001074 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001075 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001076 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
1077 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001078 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001079 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
1080 # folder.
1081 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001082 },
1083 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001084 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
1085 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
1086 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001087 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001088 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001089 ],
1090 &quot;removedParents&quot;: [ # The removed parent object(s).
1091 { # A lightweight reference to the target of activity.
1092 &quot;drive&quot;: { # A lightweight reference to a shared drive. # The target is a shared drive.
1093 &quot;title&quot;: &quot;A String&quot;, # The title of the shared drive.
1094 &quot;name&quot;: &quot;A String&quot;, # The resource name of the shared drive. The format is
1095 # &quot;COLLECTION_ID/DRIVE_ID&quot;. Clients should not assume a specific collection
1096 # ID for this resource name.
1097 },
1098 &quot;driveItem&quot;: { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item.
1099 &quot;name&quot;: &quot;A String&quot;, # The target Drive item. The format is &quot;items/ITEM_ID&quot;.
1100 &quot;folder&quot;: { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead.
1101 &quot;type&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveFolder.type` instead.
1102 },
1103 &quot;file&quot;: { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead.
1104 },
1105 &quot;title&quot;: &quot;A String&quot;, # The title of the Drive item.
1106 &quot;driveFile&quot;: { # A Drive item which is a file. # The Drive item is a file.
1107 },
1108 &quot;driveFolder&quot;: { # A Drive item which is a folder. # The Drive item is a folder. Includes information about the type of
1109 # folder.
1110 &quot;type&quot;: &quot;A String&quot;, # The type of Drive folder.
1111 },
1112 },
1113 &quot;teamDrive&quot;: { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead.
1114 &quot;title&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.title` instead.
1115 &quot;name&quot;: &quot;A String&quot;, # This field is deprecated; please see `DriveReference.name` instead.
1116 },
1117 },
1118 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001119 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001120 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001121 },
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:
Bu Sun Kim65020912020-05-20 12:08:20 -07001135 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001136 page. Returns None if there are no more items in the collection.
1137 </pre>
1138</div>
1139
1140</body></html>