Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame^] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="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"> |
| 78 | <code><a href="#query">query(body, x__xgafv=None)</a></code></p> |
| 79 | <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"> |
| 85 | <code class="details" id="query">query(body, x__xgafv=None)</code> |
| 86 | <pre>Query past activity in Google Drive. |
| 87 | |
| 88 | Args: |
| 89 | body: object, The request body. (required) |
| 90 | The object takes the form of: |
| 91 | |
| 92 | { # The request message for querying Drive activity. |
| 93 | "pageSize": 42, # The requested number of activity to return. If not set, a default value |
| 94 | # will be used. |
| 95 | "ancestorName": "A String", # Return activities for this Drive folder and all children and descendants. |
| 96 | # The format is "items/ITEM_ID". |
| 97 | "filter": "A String", # The filtering for items returned from this query request. The format of the |
| 98 | # filter string is a sequence of expressions, joined by an optional "AND", |
| 99 | # where each expression is of the form "field operator value". |
| 100 | # |
| 101 | # Supported fields: |
| 102 | # |
| 103 | # - <tt>time</tt>: Uses numerical operators on date values either in |
| 104 | # terms of milliseconds since Jan 1, 1970 or in RFC 3339 format. |
| 105 | # Examples: |
| 106 | # - <tt>time > 1452409200000 AND time <= 1492812924310</tt> |
| 107 | # - <tt>time >= "2016-01-10T01:02:03-05:00"</tt> |
| 108 | # |
| 109 | # - <tt>detail.action_detail_case</tt>: Uses the "has" operator (:) and |
| 110 | # either a singular value or a list of allowed action types enclosed in |
| 111 | # parentheses. |
| 112 | # Examples: |
| 113 | # - <tt>detail.action_detail_case: RENAME</tt> |
| 114 | # - <tt>detail.action_detail_case:(CREATE UPLOAD)</tt> |
| 115 | # - <tt>-detail.action_detail_case:MOVE</tt> |
| 116 | "pageToken": "A String", # The next_page_token value returned from a previous QueryDriveActivity |
| 117 | # request, if any. |
| 118 | "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 |
| 119 | # not set, then related actions will not be consolidated. |
| 120 | # consolidated into one combined activity if they are related in some way, such |
| 121 | # as one actor performing the same action on multiple targets, or multiple |
| 122 | # actors performing the same action on a single target. The strategy defines |
| 123 | # the rules for which activities are related. |
| 124 | "none": { # A strategy which does no consolidation of individual activities. # The individual activities are not consolidated. |
| 125 | }, |
| 126 | "legacy": { # A strategy which consolidates activities using the grouping rules from the # The individual activities are consolidated using the legacy strategy. |
| 127 | # legacy V1 Activity API. Similar actions occurring within a window of time |
| 128 | # can be grouped across multiple targets (such as moving a set of files at |
| 129 | # once) or multiple actors (such as several users editing the same item). |
| 130 | # Grouping rules for this strategy are specific to each type of action. |
| 131 | }, |
| 132 | }, |
| 133 | "itemName": "A String", # Return activities for this Drive item. The format is |
| 134 | # "items/ITEM_ID". |
| 135 | } |
| 136 | |
| 137 | x__xgafv: string, V1 error format. |
| 138 | Allowed values |
| 139 | 1 - v1 error format |
| 140 | 2 - v2 error format |
| 141 | |
| 142 | Returns: |
| 143 | An object of the form: |
| 144 | |
| 145 | { # Response message for querying Drive activity. |
| 146 | "nextPageToken": "A String", # Token to retrieve the next page of results, or |
| 147 | # empty if there are no more results in the list. |
| 148 | "activities": [ # List of activity requested. |
| 149 | { # A single Drive activity comprising one or more Actions by one or more |
| 150 | # Actors on one or more Targets. Some Action groupings occur spontaneously, |
| 151 | # such as moving an item into a shared folder triggering a permission change. |
| 152 | # Other groupings of related Actions, such as multiple Actors editing one item |
| 153 | # or moving multiple files into a new folder, are controlled by the selection |
| 154 | # of a ConsolidationStrategy in the QueryDriveActivityRequest. |
| 155 | "primaryActionDetail": { # Data describing the type and additional information of an action. # Key information about the primary action for this activity. This is either |
| 156 | # representative, or the most important, of all actions in the activity, |
| 157 | # according to the ConsolidationStrategy in the request. |
| 158 | "rename": { # An object was renamed. # An object was renamed. |
| 159 | "newTitle": "A String", # The new title of the drive object. |
| 160 | "oldTitle": "A String", # The previous title of the drive object. |
| 161 | }, |
| 162 | "permissionChange": { # A change of the permission setting on an item. # The permission on an object was changed. |
| 163 | "removedPermissions": [ # The set of permissions removed by this change. |
| 164 | { # The permission setting of an object. |
| 165 | "domain": { # Information about a domain. # The domain to whom this permission applies. |
| 166 | "name": "A String", # The name of the domain, e.g. "google.com". |
| 167 | "legacyId": "A String", # An opaque string used to identify this domain. |
| 168 | }, |
| 169 | "group": { # Information about a group. # The group to whom this permission applies. |
| 170 | "email": "A String", # The email address of the group. |
| 171 | "title": "A String", # The title of the group. |
| 172 | }, |
| 173 | "anyone": { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users. |
| 174 | }, |
| 175 | "role": "A String", # Indicates the |
| 176 | # <a href="/drive/web/manage-sharing#roles">Google Drive permissions |
| 177 | # role</a>. The role determines a user's ability to read, write, and |
| 178 | # comment on items. |
| 179 | "allowDiscovery": True or False, # If true, the item can be discovered (e.g. in the user's "Shared with me" |
| 180 | # collection) without needing a link to the item. |
| 181 | "user": { # Information about an end user. # The user to whom this permission applies. |
| 182 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 183 | }, |
| 184 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 185 | }, |
| 186 | "knownUser": { # A known user. # A known user. |
| 187 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 188 | # more information. The format is "people/ACCOUNT_ID". See |
| 189 | # https://developers.google.com/people/. |
| 190 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 191 | }, |
| 192 | }, |
| 193 | }, |
| 194 | ], |
| 195 | "addedPermissions": [ # The set of permissions added by this change. |
| 196 | { # The permission setting of an object. |
| 197 | "domain": { # Information about a domain. # The domain to whom this permission applies. |
| 198 | "name": "A String", # The name of the domain, e.g. "google.com". |
| 199 | "legacyId": "A String", # An opaque string used to identify this domain. |
| 200 | }, |
| 201 | "group": { # Information about a group. # The group to whom this permission applies. |
| 202 | "email": "A String", # The email address of the group. |
| 203 | "title": "A String", # The title of the group. |
| 204 | }, |
| 205 | "anyone": { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users. |
| 206 | }, |
| 207 | "role": "A String", # Indicates the |
| 208 | # <a href="/drive/web/manage-sharing#roles">Google Drive permissions |
| 209 | # role</a>. The role determines a user's ability to read, write, and |
| 210 | # comment on items. |
| 211 | "allowDiscovery": True or False, # If true, the item can be discovered (e.g. in the user's "Shared with me" |
| 212 | # collection) without needing a link to the item. |
| 213 | "user": { # Information about an end user. # The user to whom this permission applies. |
| 214 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 215 | }, |
| 216 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 217 | }, |
| 218 | "knownUser": { # A known user. # A known user. |
| 219 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 220 | # more information. The format is "people/ACCOUNT_ID". See |
| 221 | # https://developers.google.com/people/. |
| 222 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 223 | }, |
| 224 | }, |
| 225 | }, |
| 226 | ], |
| 227 | }, |
| 228 | "dlpChange": { # A change in the object's data leak prevention status. # A change happened in data leak prevention status. |
| 229 | "type": "A String", # The type of Data Leak Prevention (DLP) change. |
| 230 | }, |
| 231 | "reference": { # Activity in applications other than Drive. # An object was referenced in an application outside of Drive/Docs. |
| 232 | "type": "A String", # The reference type corresponding to this event. |
| 233 | }, |
| 234 | "restore": { # A deleted object was restored. # A deleted object was restored. |
| 235 | "type": "A String", # The type of restore action taken. |
| 236 | }, |
| 237 | "edit": { # An empty message indicating an object was edited. # An object was edited. |
| 238 | }, |
| 239 | "settingsChange": { # Information about settings changes. # Settings were changed. |
| 240 | "restrictionChanges": [ # The set of changes made to restrictions. |
| 241 | { # Information about restriction policy changes to a feature. |
| 242 | "feature": "A String", # The feature which had a change in restriction policy. |
| 243 | "newRestriction": "A String", # The restriction in place after the change. |
| 244 | }, |
| 245 | ], |
| 246 | }, |
| 247 | "create": { # An object was created. # An object was created. |
| 248 | "new": { # An object was created from scratch. # If present, indicates the object was newly created (e.g. as a blank |
| 249 | # document), not derived from a Drive object or external object. |
| 250 | }, |
| 251 | "copy": { # An object was created by copying an existing object. # If present, indicates the object was created by copying an existing Drive |
| 252 | # object. |
| 253 | "originalObject": { # A lightweight reference to the target of activity. # The the original object. |
| 254 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 255 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 256 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 257 | }, |
| 258 | "driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item. |
| 259 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 260 | "title": "A String", # The title of the Drive item. |
| 261 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 262 | "type": "A String", # The type of Drive folder. |
| 263 | }, |
| 264 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 265 | }, |
| 266 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 267 | }, |
| 268 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 269 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 270 | }, |
| 271 | }, |
| 272 | "drive": { # A lightweight reference to a shared drive. # The target is a shared drive. |
| 273 | "name": "A String", # The resource name of the shared drive. The format is |
| 274 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 275 | # ID for this resource name. |
| 276 | "title": "A String", # The title of the shared drive. |
| 277 | }, |
| 278 | }, |
| 279 | }, |
| 280 | "upload": { # An object was uploaded into Drive. # If present, indicates the object originated externally and was uploaded |
| 281 | # to Drive. |
| 282 | }, |
| 283 | }, |
| 284 | "move": { # An object was moved. # An object was moved. |
| 285 | "removedParents": [ # The removed parent object(s). |
| 286 | { # A lightweight reference to the target of activity. |
| 287 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 288 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 289 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 290 | }, |
| 291 | "driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item. |
| 292 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 293 | "title": "A String", # The title of the Drive item. |
| 294 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 295 | "type": "A String", # The type of Drive folder. |
| 296 | }, |
| 297 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 298 | }, |
| 299 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 300 | }, |
| 301 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 302 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 303 | }, |
| 304 | }, |
| 305 | "drive": { # A lightweight reference to a shared drive. # The target is a shared drive. |
| 306 | "name": "A String", # The resource name of the shared drive. The format is |
| 307 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 308 | # ID for this resource name. |
| 309 | "title": "A String", # The title of the shared drive. |
| 310 | }, |
| 311 | }, |
| 312 | ], |
| 313 | "addedParents": [ # The added parent object(s). |
| 314 | { # A lightweight reference to the target of activity. |
| 315 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 316 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 317 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 318 | }, |
| 319 | "driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item. |
| 320 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 321 | "title": "A String", # The title of the Drive item. |
| 322 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 323 | "type": "A String", # The type of Drive folder. |
| 324 | }, |
| 325 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 326 | }, |
| 327 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 328 | }, |
| 329 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 330 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 331 | }, |
| 332 | }, |
| 333 | "drive": { # A lightweight reference to a shared drive. # The target is a shared drive. |
| 334 | "name": "A String", # The resource name of the shared drive. The format is |
| 335 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 336 | # ID for this resource name. |
| 337 | "title": "A String", # The title of the shared drive. |
| 338 | }, |
| 339 | }, |
| 340 | ], |
| 341 | }, |
| 342 | "comment": { # A change about comments on an object. # A change about comments was made. |
| 343 | "assignment": { # A comment with an assignment. # A change on an assignment. |
| 344 | "subtype": "A String", # The sub-type of this event. |
| 345 | }, |
| 346 | "post": { # A regular posted comment. # A change on a regular posted comment. |
| 347 | "subtype": "A String", # The sub-type of this event. |
| 348 | }, |
| 349 | "mentionedUsers": [ # Users who are mentioned in this comment. |
| 350 | { # Information about an end user. |
| 351 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 352 | }, |
| 353 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 354 | }, |
| 355 | "knownUser": { # A known user. # A known user. |
| 356 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 357 | # more information. The format is "people/ACCOUNT_ID". See |
| 358 | # https://developers.google.com/people/. |
| 359 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 360 | }, |
| 361 | }, |
| 362 | ], |
| 363 | "suggestion": { # A suggestion. # A change on a suggestion. |
| 364 | "subtype": "A String", # The sub-type of this event. |
| 365 | }, |
| 366 | }, |
| 367 | "delete": { # An object was deleted. # An object was deleted. |
| 368 | "type": "A String", # The type of delete action taken. |
| 369 | }, |
| 370 | }, |
| 371 | "timestamp": "A String", # The activity occurred at this specific time. |
| 372 | "timeRange": { # Information about time ranges. # The activity occurred over this time range. |
| 373 | "endTime": "A String", # The end of the time range. |
| 374 | "startTime": "A String", # The start of the time range. |
| 375 | }, |
| 376 | "actions": [ # Details on all actions in this activity. |
| 377 | { # Information about the action. |
| 378 | "timestamp": "A String", # The action occurred at this specific time. |
| 379 | "timeRange": { # Information about time ranges. # The action occurred over this time range. |
| 380 | "endTime": "A String", # The end of the time range. |
| 381 | "startTime": "A String", # The start of the time range. |
| 382 | }, |
| 383 | "detail": { # Data describing the type and additional information of an action. # The type and detailed information about the action. |
| 384 | "rename": { # An object was renamed. # An object was renamed. |
| 385 | "newTitle": "A String", # The new title of the drive object. |
| 386 | "oldTitle": "A String", # The previous title of the drive object. |
| 387 | }, |
| 388 | "permissionChange": { # A change of the permission setting on an item. # The permission on an object was changed. |
| 389 | "removedPermissions": [ # The set of permissions removed by this change. |
| 390 | { # The permission setting of an object. |
| 391 | "domain": { # Information about a domain. # The domain to whom this permission applies. |
| 392 | "name": "A String", # The name of the domain, e.g. "google.com". |
| 393 | "legacyId": "A String", # An opaque string used to identify this domain. |
| 394 | }, |
| 395 | "group": { # Information about a group. # The group to whom this permission applies. |
| 396 | "email": "A String", # The email address of the group. |
| 397 | "title": "A String", # The title of the group. |
| 398 | }, |
| 399 | "anyone": { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users. |
| 400 | }, |
| 401 | "role": "A String", # Indicates the |
| 402 | # <a href="/drive/web/manage-sharing#roles">Google Drive permissions |
| 403 | # role</a>. The role determines a user's ability to read, write, and |
| 404 | # comment on items. |
| 405 | "allowDiscovery": True or False, # If true, the item can be discovered (e.g. in the user's "Shared with me" |
| 406 | # collection) without needing a link to the item. |
| 407 | "user": { # Information about an end user. # The user to whom this permission applies. |
| 408 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 409 | }, |
| 410 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 411 | }, |
| 412 | "knownUser": { # A known user. # A known user. |
| 413 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 414 | # more information. The format is "people/ACCOUNT_ID". See |
| 415 | # https://developers.google.com/people/. |
| 416 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 417 | }, |
| 418 | }, |
| 419 | }, |
| 420 | ], |
| 421 | "addedPermissions": [ # The set of permissions added by this change. |
| 422 | { # The permission setting of an object. |
| 423 | "domain": { # Information about a domain. # The domain to whom this permission applies. |
| 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 | "group": { # Information about a group. # The group to whom this permission applies. |
| 428 | "email": "A String", # The email address of the group. |
| 429 | "title": "A String", # The title of the group. |
| 430 | }, |
| 431 | "anyone": { # Represents any user (including a logged out user). # If set, this permission applies to anyone, even logged out users. |
| 432 | }, |
| 433 | "role": "A String", # Indicates the |
| 434 | # <a href="/drive/web/manage-sharing#roles">Google Drive permissions |
| 435 | # role</a>. The role determines a user's ability to read, write, and |
| 436 | # comment on items. |
| 437 | "allowDiscovery": True or False, # If true, the item can be discovered (e.g. in the user's "Shared with me" |
| 438 | # collection) without needing a link to the item. |
| 439 | "user": { # Information about an end user. # The user to whom this permission applies. |
| 440 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 441 | }, |
| 442 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 443 | }, |
| 444 | "knownUser": { # A known user. # A known user. |
| 445 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 446 | # more information. The format is "people/ACCOUNT_ID". See |
| 447 | # https://developers.google.com/people/. |
| 448 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 449 | }, |
| 450 | }, |
| 451 | }, |
| 452 | ], |
| 453 | }, |
| 454 | "dlpChange": { # A change in the object's data leak prevention status. # A change happened in data leak prevention status. |
| 455 | "type": "A String", # The type of Data Leak Prevention (DLP) change. |
| 456 | }, |
| 457 | "reference": { # Activity in applications other than Drive. # An object was referenced in an application outside of Drive/Docs. |
| 458 | "type": "A String", # The reference type corresponding to this event. |
| 459 | }, |
| 460 | "restore": { # A deleted object was restored. # A deleted object was restored. |
| 461 | "type": "A String", # The type of restore action taken. |
| 462 | }, |
| 463 | "edit": { # An empty message indicating an object was edited. # An object was edited. |
| 464 | }, |
| 465 | "settingsChange": { # Information about settings changes. # Settings were changed. |
| 466 | "restrictionChanges": [ # The set of changes made to restrictions. |
| 467 | { # Information about restriction policy changes to a feature. |
| 468 | "feature": "A String", # The feature which had a change in restriction policy. |
| 469 | "newRestriction": "A String", # The restriction in place after the change. |
| 470 | }, |
| 471 | ], |
| 472 | }, |
| 473 | "create": { # An object was created. # An object was created. |
| 474 | "new": { # An object was created from scratch. # If present, indicates the object was newly created (e.g. as a blank |
| 475 | # document), not derived from a Drive object or external object. |
| 476 | }, |
| 477 | "copy": { # An object was created by copying an existing object. # If present, indicates the object was created by copying an existing Drive |
| 478 | # object. |
| 479 | "originalObject": { # A lightweight reference to the target of activity. # The the original object. |
| 480 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 481 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 482 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 483 | }, |
| 484 | "driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item. |
| 485 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 486 | "title": "A String", # The title of the Drive item. |
| 487 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 488 | "type": "A String", # The type of Drive folder. |
| 489 | }, |
| 490 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 491 | }, |
| 492 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 493 | }, |
| 494 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 495 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 496 | }, |
| 497 | }, |
| 498 | "drive": { # A lightweight reference to a shared drive. # The target is a shared drive. |
| 499 | "name": "A String", # The resource name of the shared drive. The format is |
| 500 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 501 | # ID for this resource name. |
| 502 | "title": "A String", # The title of the shared drive. |
| 503 | }, |
| 504 | }, |
| 505 | }, |
| 506 | "upload": { # An object was uploaded into Drive. # If present, indicates the object originated externally and was uploaded |
| 507 | # to Drive. |
| 508 | }, |
| 509 | }, |
| 510 | "move": { # An object was moved. # An object was moved. |
| 511 | "removedParents": [ # The removed parent object(s). |
| 512 | { # A lightweight reference to the target of activity. |
| 513 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 514 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 515 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 516 | }, |
| 517 | "driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item. |
| 518 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 519 | "title": "A String", # The title of the Drive item. |
| 520 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 521 | "type": "A String", # The type of Drive folder. |
| 522 | }, |
| 523 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 524 | }, |
| 525 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 526 | }, |
| 527 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 528 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 529 | }, |
| 530 | }, |
| 531 | "drive": { # A lightweight reference to a shared drive. # The target is a shared drive. |
| 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 | }, |
| 538 | ], |
| 539 | "addedParents": [ # The added parent object(s). |
| 540 | { # A lightweight reference to the target of activity. |
| 541 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 542 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 543 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 544 | }, |
| 545 | "driveItem": { # A lightweight reference to a Drive item, such as a file or folder. # The target is a Drive item. |
| 546 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 547 | "title": "A String", # The title of the Drive item. |
| 548 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 549 | "type": "A String", # The type of Drive folder. |
| 550 | }, |
| 551 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 552 | }, |
| 553 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 554 | }, |
| 555 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 556 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 557 | }, |
| 558 | }, |
| 559 | "drive": { # A lightweight reference to a shared drive. # The target is a shared drive. |
| 560 | "name": "A String", # The resource name of the shared drive. The format is |
| 561 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 562 | # ID for this resource name. |
| 563 | "title": "A String", # The title of the shared drive. |
| 564 | }, |
| 565 | }, |
| 566 | ], |
| 567 | }, |
| 568 | "comment": { # A change about comments on an object. # A change about comments was made. |
| 569 | "assignment": { # A comment with an assignment. # A change on an assignment. |
| 570 | "subtype": "A String", # The sub-type of this event. |
| 571 | }, |
| 572 | "post": { # A regular posted comment. # A change on a regular posted comment. |
| 573 | "subtype": "A String", # The sub-type of this event. |
| 574 | }, |
| 575 | "mentionedUsers": [ # Users who are mentioned in this comment. |
| 576 | { # Information about an end user. |
| 577 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 578 | }, |
| 579 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 580 | }, |
| 581 | "knownUser": { # A known user. # A known user. |
| 582 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 583 | # more information. The format is "people/ACCOUNT_ID". See |
| 584 | # https://developers.google.com/people/. |
| 585 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 586 | }, |
| 587 | }, |
| 588 | ], |
| 589 | "suggestion": { # A suggestion. # A change on a suggestion. |
| 590 | "subtype": "A String", # The sub-type of this event. |
| 591 | }, |
| 592 | }, |
| 593 | "delete": { # An object was deleted. # An object was deleted. |
| 594 | "type": "A String", # The type of delete action taken. |
| 595 | }, |
| 596 | }, |
| 597 | "actor": { # The actor of a Drive activity. # The actor responsible for this action (or empty if all actors are |
| 598 | # responsible). |
| 599 | "impersonation": { # Information about an impersonation, where an admin acts on behalf of an end # An account acting on behalf of another. |
| 600 | # user. Information about the acting admin is not currently available. |
| 601 | "impersonatedUser": { # Information about an end user. # The impersonated user. |
| 602 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 603 | }, |
| 604 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 605 | }, |
| 606 | "knownUser": { # A known user. # A known user. |
| 607 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 608 | # more information. The format is "people/ACCOUNT_ID". See |
| 609 | # https://developers.google.com/people/. |
| 610 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 611 | }, |
| 612 | }, |
| 613 | }, |
| 614 | "administrator": { # Empty message representing an administrator. # An administrator. |
| 615 | }, |
| 616 | "user": { # Information about an end user. # An end user. |
| 617 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 618 | }, |
| 619 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 620 | }, |
| 621 | "knownUser": { # A known user. # A known user. |
| 622 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 623 | # more information. The format is "people/ACCOUNT_ID". See |
| 624 | # https://developers.google.com/people/. |
| 625 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 626 | }, |
| 627 | }, |
| 628 | "anonymous": { # Empty message representing an anonymous user or indicating the authenticated # An anonymous user. |
| 629 | # user should be anonymized. |
| 630 | }, |
| 631 | "system": { # Event triggered by system operations instead of end users. # A non-user actor (i.e. system triggered). |
| 632 | "type": "A String", # The type of the system event that may triggered activity. |
| 633 | }, |
| 634 | }, |
| 635 | "target": { # Information about the target of activity. # The target this action affects (or empty if affecting all targets). This |
| 636 | # represents the state of the target immediately after this action occurred. |
| 637 | "teamDrive": { # This item is deprecated; please see `Drive` instead. # This field is deprecated; please use the `drive` field instead. |
| 638 | "root": { # A Drive item, such as a file or folder. # This field is deprecated; please see `Drive.root` instead. |
| 639 | "mimeType": "A String", # The MIME type of the Drive item. See |
| 640 | # https://developers.google.com/drive/v3/web/mime-types. |
| 641 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 642 | "title": "A String", # The title of the Drive item. |
| 643 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 644 | "type": "A String", # The type of Drive folder. |
| 645 | }, |
| 646 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 647 | }, |
| 648 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 649 | }, |
| 650 | "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item. |
| 651 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 652 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 653 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 654 | }, |
| 655 | "domain": { # Information about a domain. # The domain of the Drive item owner. |
| 656 | "name": "A String", # The name of the domain, e.g. "google.com". |
| 657 | "legacyId": "A String", # An opaque string used to identify this domain. |
| 658 | }, |
| 659 | "drive": { # A lightweight reference to a shared drive. # The drive that owns the item. |
| 660 | "name": "A String", # The resource name of the shared drive. The format is |
| 661 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 662 | # ID for this resource name. |
| 663 | "title": "A String", # The title of the shared drive. |
| 664 | }, |
| 665 | "user": { # Information about an end user. # The user that owns the Drive item. |
| 666 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 667 | }, |
| 668 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 669 | }, |
| 670 | "knownUser": { # A known user. # A known user. |
| 671 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 672 | # more information. The format is "people/ACCOUNT_ID". See |
| 673 | # https://developers.google.com/people/. |
| 674 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 675 | }, |
| 676 | }, |
| 677 | }, |
| 678 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 679 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 680 | }, |
| 681 | }, |
| 682 | "name": "A String", # This field is deprecated; please see `Drive.name` instead. |
| 683 | "title": "A String", # This field is deprecated; please see `Drive.title` instead. |
| 684 | }, |
| 685 | "fileComment": { # A comment on a file. # The target is a comment on a Drive file. |
| 686 | "legacyCommentId": "A String", # The comment in the discussion thread. This identifier is an opaque string |
| 687 | # compatible with the Drive API; see |
| 688 | # https://developers.google.com/drive/v3/reference/comments/get |
| 689 | "legacyDiscussionId": "A String", # The discussion thread to which the comment was added. This identifier is an |
| 690 | # opaque string compatible with the Drive API and references the first |
| 691 | # comment in a discussion; see |
| 692 | # https://developers.google.com/drive/v3/reference/comments/get |
| 693 | "parent": { # A Drive item, such as a file or folder. # The Drive item containing this comment. |
| 694 | "mimeType": "A String", # The MIME type of the Drive item. See |
| 695 | # https://developers.google.com/drive/v3/web/mime-types. |
| 696 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 697 | "title": "A String", # The title of the Drive item. |
| 698 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 699 | "type": "A String", # The type of Drive folder. |
| 700 | }, |
| 701 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 702 | }, |
| 703 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 704 | }, |
| 705 | "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item. |
| 706 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 707 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 708 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 709 | }, |
| 710 | "domain": { # Information about a domain. # The domain of the Drive item owner. |
| 711 | "name": "A String", # The name of the domain, e.g. "google.com". |
| 712 | "legacyId": "A String", # An opaque string used to identify this domain. |
| 713 | }, |
| 714 | "drive": { # A lightweight reference to a shared drive. # The drive that owns the item. |
| 715 | "name": "A String", # The resource name of the shared drive. The format is |
| 716 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 717 | # ID for this resource name. |
| 718 | "title": "A String", # The title of the shared drive. |
| 719 | }, |
| 720 | "user": { # Information about an end user. # The user that owns the Drive item. |
| 721 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 722 | }, |
| 723 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 724 | }, |
| 725 | "knownUser": { # A known user. # A known user. |
| 726 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 727 | # more information. The format is "people/ACCOUNT_ID". See |
| 728 | # https://developers.google.com/people/. |
| 729 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 730 | }, |
| 731 | }, |
| 732 | }, |
| 733 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 734 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 735 | }, |
| 736 | }, |
| 737 | "linkToDiscussion": "A String", # The link to the discussion thread containing this comment, for example, |
| 738 | # "https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID". |
| 739 | }, |
| 740 | "driveItem": { # A Drive item, such as a file or folder. # The target is a Drive item. |
| 741 | "mimeType": "A String", # The MIME type of the Drive item. See |
| 742 | # https://developers.google.com/drive/v3/web/mime-types. |
| 743 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 744 | "title": "A String", # The title of the Drive item. |
| 745 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 746 | "type": "A String", # The type of Drive folder. |
| 747 | }, |
| 748 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 749 | }, |
| 750 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 751 | }, |
| 752 | "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item. |
| 753 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 754 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 755 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 756 | }, |
| 757 | "domain": { # Information about a domain. # The domain of the Drive item owner. |
| 758 | "name": "A String", # The name of the domain, e.g. "google.com". |
| 759 | "legacyId": "A String", # An opaque string used to identify this domain. |
| 760 | }, |
| 761 | "drive": { # A lightweight reference to a shared drive. # The drive that owns the item. |
| 762 | "name": "A String", # The resource name of the shared drive. The format is |
| 763 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 764 | # ID for this resource name. |
| 765 | "title": "A String", # The title of the shared drive. |
| 766 | }, |
| 767 | "user": { # Information about an end user. # The user that owns the Drive item. |
| 768 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 769 | }, |
| 770 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 771 | }, |
| 772 | "knownUser": { # A known user. # A known user. |
| 773 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 774 | # more information. The format is "people/ACCOUNT_ID". See |
| 775 | # https://developers.google.com/people/. |
| 776 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 777 | }, |
| 778 | }, |
| 779 | }, |
| 780 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 781 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 782 | }, |
| 783 | }, |
| 784 | "drive": { # Information about a shared drive. # The target is a shared drive. |
| 785 | "root": { # A Drive item, such as a file or folder. # The root of this shared drive. |
| 786 | "mimeType": "A String", # The MIME type of the Drive item. See |
| 787 | # https://developers.google.com/drive/v3/web/mime-types. |
| 788 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 789 | "title": "A String", # The title of the Drive item. |
| 790 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 791 | "type": "A String", # The type of Drive folder. |
| 792 | }, |
| 793 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 794 | }, |
| 795 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 796 | }, |
| 797 | "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item. |
| 798 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 799 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 800 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 801 | }, |
| 802 | "domain": { # Information about a domain. # The domain of the Drive item owner. |
| 803 | "name": "A String", # The name of the domain, e.g. "google.com". |
| 804 | "legacyId": "A String", # An opaque string used to identify this domain. |
| 805 | }, |
| 806 | "drive": { # A lightweight reference to a shared drive. # The drive that owns the item. |
| 807 | "name": "A String", # The resource name of the shared drive. The format is |
| 808 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 809 | # ID for this resource name. |
| 810 | "title": "A String", # The title of the shared drive. |
| 811 | }, |
| 812 | "user": { # Information about an end user. # The user that owns the Drive item. |
| 813 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 814 | }, |
| 815 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 816 | }, |
| 817 | "knownUser": { # A known user. # A known user. |
| 818 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 819 | # more information. The format is "people/ACCOUNT_ID". See |
| 820 | # https://developers.google.com/people/. |
| 821 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 822 | }, |
| 823 | }, |
| 824 | }, |
| 825 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 826 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 827 | }, |
| 828 | }, |
| 829 | "name": "A String", # The resource name of the shared drive. The format is |
| 830 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 831 | # ID for this resource name. |
| 832 | "title": "A String", # The title of the shared drive. |
| 833 | }, |
| 834 | }, |
| 835 | }, |
| 836 | ], |
| 837 | "actors": [ # All actor(s) responsible for the activity. |
| 838 | { # The actor of a Drive activity. |
| 839 | "impersonation": { # Information about an impersonation, where an admin acts on behalf of an end # An account acting on behalf of another. |
| 840 | # user. Information about the acting admin is not currently available. |
| 841 | "impersonatedUser": { # Information about an end user. # The impersonated user. |
| 842 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 843 | }, |
| 844 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 845 | }, |
| 846 | "knownUser": { # A known user. # A known user. |
| 847 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 848 | # more information. The format is "people/ACCOUNT_ID". See |
| 849 | # https://developers.google.com/people/. |
| 850 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 851 | }, |
| 852 | }, |
| 853 | }, |
| 854 | "administrator": { # Empty message representing an administrator. # An administrator. |
| 855 | }, |
| 856 | "user": { # Information about an end user. # An end user. |
| 857 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 858 | }, |
| 859 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 860 | }, |
| 861 | "knownUser": { # A known user. # A known user. |
| 862 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 863 | # more information. The format is "people/ACCOUNT_ID". See |
| 864 | # https://developers.google.com/people/. |
| 865 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 866 | }, |
| 867 | }, |
| 868 | "anonymous": { # Empty message representing an anonymous user or indicating the authenticated # An anonymous user. |
| 869 | # user should be anonymized. |
| 870 | }, |
| 871 | "system": { # Event triggered by system operations instead of end users. # A non-user actor (i.e. system triggered). |
| 872 | "type": "A String", # The type of the system event that may triggered activity. |
| 873 | }, |
| 874 | }, |
| 875 | ], |
| 876 | "targets": [ # All Google Drive objects this activity is about (e.g. file, folder, drive). |
| 877 | # This represents the state of the target immediately after the actions |
| 878 | # occurred. |
| 879 | { # Information about the target of activity. |
| 880 | "teamDrive": { # This item is deprecated; please see `Drive` instead. # This field is deprecated; please use the `drive` field instead. |
| 881 | "root": { # A Drive item, such as a file or folder. # This field is deprecated; please see `Drive.root` instead. |
| 882 | "mimeType": "A String", # The MIME type of the Drive item. See |
| 883 | # https://developers.google.com/drive/v3/web/mime-types. |
| 884 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 885 | "title": "A String", # The title of the Drive item. |
| 886 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 887 | "type": "A String", # The type of Drive folder. |
| 888 | }, |
| 889 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 890 | }, |
| 891 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 892 | }, |
| 893 | "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item. |
| 894 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 895 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 896 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 897 | }, |
| 898 | "domain": { # Information about a domain. # The domain of the Drive item owner. |
| 899 | "name": "A String", # The name of the domain, e.g. "google.com". |
| 900 | "legacyId": "A String", # An opaque string used to identify this domain. |
| 901 | }, |
| 902 | "drive": { # A lightweight reference to a shared drive. # The drive that owns the item. |
| 903 | "name": "A String", # The resource name of the shared drive. The format is |
| 904 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 905 | # ID for this resource name. |
| 906 | "title": "A String", # The title of the shared drive. |
| 907 | }, |
| 908 | "user": { # Information about an end user. # The user that owns the Drive item. |
| 909 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 910 | }, |
| 911 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 912 | }, |
| 913 | "knownUser": { # A known user. # A known user. |
| 914 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 915 | # more information. The format is "people/ACCOUNT_ID". See |
| 916 | # https://developers.google.com/people/. |
| 917 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 918 | }, |
| 919 | }, |
| 920 | }, |
| 921 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 922 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 923 | }, |
| 924 | }, |
| 925 | "name": "A String", # This field is deprecated; please see `Drive.name` instead. |
| 926 | "title": "A String", # This field is deprecated; please see `Drive.title` instead. |
| 927 | }, |
| 928 | "fileComment": { # A comment on a file. # The target is a comment on a Drive file. |
| 929 | "legacyCommentId": "A String", # The comment in the discussion thread. This identifier is an opaque string |
| 930 | # compatible with the Drive API; see |
| 931 | # https://developers.google.com/drive/v3/reference/comments/get |
| 932 | "legacyDiscussionId": "A String", # The discussion thread to which the comment was added. This identifier is an |
| 933 | # opaque string compatible with the Drive API and references the first |
| 934 | # comment in a discussion; see |
| 935 | # https://developers.google.com/drive/v3/reference/comments/get |
| 936 | "parent": { # A Drive item, such as a file or folder. # The Drive item containing this comment. |
| 937 | "mimeType": "A String", # The MIME type of the Drive item. See |
| 938 | # https://developers.google.com/drive/v3/web/mime-types. |
| 939 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 940 | "title": "A String", # The title of the Drive item. |
| 941 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 942 | "type": "A String", # The type of Drive folder. |
| 943 | }, |
| 944 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 945 | }, |
| 946 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 947 | }, |
| 948 | "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item. |
| 949 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 950 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 951 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 952 | }, |
| 953 | "domain": { # Information about a domain. # The domain of the Drive item owner. |
| 954 | "name": "A String", # The name of the domain, e.g. "google.com". |
| 955 | "legacyId": "A String", # An opaque string used to identify this domain. |
| 956 | }, |
| 957 | "drive": { # A lightweight reference to a shared drive. # The drive that owns the item. |
| 958 | "name": "A String", # The resource name of the shared drive. The format is |
| 959 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 960 | # ID for this resource name. |
| 961 | "title": "A String", # The title of the shared drive. |
| 962 | }, |
| 963 | "user": { # Information about an end user. # The user that owns the Drive item. |
| 964 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 965 | }, |
| 966 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 967 | }, |
| 968 | "knownUser": { # A known user. # A known user. |
| 969 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 970 | # more information. The format is "people/ACCOUNT_ID". See |
| 971 | # https://developers.google.com/people/. |
| 972 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 973 | }, |
| 974 | }, |
| 975 | }, |
| 976 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 977 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 978 | }, |
| 979 | }, |
| 980 | "linkToDiscussion": "A String", # The link to the discussion thread containing this comment, for example, |
| 981 | # "https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID". |
| 982 | }, |
| 983 | "driveItem": { # A Drive item, such as a file or folder. # The target is a Drive item. |
| 984 | "mimeType": "A String", # The MIME type of the Drive item. See |
| 985 | # https://developers.google.com/drive/v3/web/mime-types. |
| 986 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 987 | "title": "A String", # The title of the Drive item. |
| 988 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 989 | "type": "A String", # The type of Drive folder. |
| 990 | }, |
| 991 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 992 | }, |
| 993 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 994 | }, |
| 995 | "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item. |
| 996 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 997 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 998 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 999 | }, |
| 1000 | "domain": { # Information about a domain. # The domain of the Drive item owner. |
| 1001 | "name": "A String", # The name of the domain, e.g. "google.com". |
| 1002 | "legacyId": "A String", # An opaque string used to identify this domain. |
| 1003 | }, |
| 1004 | "drive": { # A lightweight reference to a shared drive. # The drive that owns the item. |
| 1005 | "name": "A String", # The resource name of the shared drive. The format is |
| 1006 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 1007 | # ID for this resource name. |
| 1008 | "title": "A String", # The title of the shared drive. |
| 1009 | }, |
| 1010 | "user": { # Information about an end user. # The user that owns the Drive item. |
| 1011 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 1012 | }, |
| 1013 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 1014 | }, |
| 1015 | "knownUser": { # A known user. # A known user. |
| 1016 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 1017 | # more information. The format is "people/ACCOUNT_ID". See |
| 1018 | # https://developers.google.com/people/. |
| 1019 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 1020 | }, |
| 1021 | }, |
| 1022 | }, |
| 1023 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 1024 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 1025 | }, |
| 1026 | }, |
| 1027 | "drive": { # Information about a shared drive. # The target is a shared drive. |
| 1028 | "root": { # A Drive item, such as a file or folder. # The root of this shared drive. |
| 1029 | "mimeType": "A String", # The MIME type of the Drive item. See |
| 1030 | # https://developers.google.com/drive/v3/web/mime-types. |
| 1031 | "name": "A String", # The target Drive item. The format is "items/ITEM_ID". |
| 1032 | "title": "A String", # The title of the Drive item. |
| 1033 | "driveFolder": { # A Drive item which is a folder. # The Drive item is a folder. |
| 1034 | "type": "A String", # The type of Drive folder. |
| 1035 | }, |
| 1036 | "driveFile": { # A Drive item which is a file. # The Drive item is a file. |
| 1037 | }, |
| 1038 | "file": { # This item is deprecated; please see `DriveFile` instead. # This field is deprecated; please use the `driveFile` field instead. |
| 1039 | }, |
| 1040 | "owner": { # Information about the owner of a Drive item. # Information about the owner of this Drive item. |
| 1041 | "teamDrive": { # This item is deprecated; please see `DriveReference` instead. # This field is deprecated; please use the `drive` field instead. |
| 1042 | "name": "A String", # This field is deprecated; please see `DriveReference.name` instead. |
| 1043 | "title": "A String", # This field is deprecated; please see `DriveReference.title` instead. |
| 1044 | }, |
| 1045 | "domain": { # Information about a domain. # The domain of the Drive item owner. |
| 1046 | "name": "A String", # The name of the domain, e.g. "google.com". |
| 1047 | "legacyId": "A String", # An opaque string used to identify this domain. |
| 1048 | }, |
| 1049 | "drive": { # A lightweight reference to a shared drive. # The drive that owns the item. |
| 1050 | "name": "A String", # The resource name of the shared drive. The format is |
| 1051 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 1052 | # ID for this resource name. |
| 1053 | "title": "A String", # The title of the shared drive. |
| 1054 | }, |
| 1055 | "user": { # Information about an end user. # The user that owns the Drive item. |
| 1056 | "unknownUser": { # A user about whom nothing is currently known. # A user about whom nothing is currently known. |
| 1057 | }, |
| 1058 | "deletedUser": { # A user whose account has since been deleted. # A user whose account has since been deleted. |
| 1059 | }, |
| 1060 | "knownUser": { # A known user. # A known user. |
| 1061 | "personName": "A String", # The identifier for this user that can be used with the People API to get |
| 1062 | # more information. The format is "people/ACCOUNT_ID". See |
| 1063 | # https://developers.google.com/people/. |
| 1064 | "isCurrentUser": True or False, # True if this is the user making the request. |
| 1065 | }, |
| 1066 | }, |
| 1067 | }, |
| 1068 | "folder": { # This item is deprecated; please see `DriveFolder` instead. # This field is deprecated; please use the `driveFolder` field instead. |
| 1069 | "type": "A String", # This field is deprecated; please see `DriveFolder.type` instead. |
| 1070 | }, |
| 1071 | }, |
| 1072 | "name": "A String", # The resource name of the shared drive. The format is |
| 1073 | # "COLLECTION_ID/DRIVE_ID". Clients should not assume a specific collection |
| 1074 | # ID for this resource name. |
| 1075 | "title": "A String", # The title of the shared drive. |
| 1076 | }, |
| 1077 | }, |
| 1078 | ], |
| 1079 | }, |
| 1080 | ], |
| 1081 | }</pre> |
| 1082 | </div> |
| 1083 | |
| 1084 | <div class="method"> |
| 1085 | <code class="details" id="query_next">query_next(previous_request, previous_response)</code> |
| 1086 | <pre>Retrieves the next page of results. |
| 1087 | |
| 1088 | Args: |
| 1089 | previous_request: The request for the previous page. (required) |
| 1090 | previous_response: The response from the request for the previous page. (required) |
| 1091 | |
| 1092 | Returns: |
| 1093 | A request object that you can call 'execute()' on to request the next |
| 1094 | page. Returns None if there are no more items in the collection. |
| 1095 | </pre> |
| 1096 | </div> |
| 1097 | |
| 1098 | </body></html> |