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