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