| { |
| "description": "Provides a historical view of activity in Google Drive.", |
| "documentationLink": "https://developers.google.com/drive/activity/", |
| "batchPath": "batch", |
| "title": "Drive Activity API", |
| "protocol": "rest", |
| "icons": { |
| "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| }, |
| "parameters": { |
| "upload_protocol": { |
| "type": "string", |
| "location": "query", |
| "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")." |
| }, |
| "fields": { |
| "description": "Selector specifying which fields to include in a partial response.", |
| "location": "query", |
| "type": "string" |
| }, |
| "access_token": { |
| "type": "string", |
| "location": "query", |
| "description": "OAuth access token." |
| }, |
| "uploadType": { |
| "location": "query", |
| "type": "string", |
| "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")." |
| }, |
| "alt": { |
| "type": "string", |
| "enumDescriptions": [ |
| "Responses with Content-Type of application/json", |
| "Media download with context-dependent Content-Type", |
| "Responses with Content-Type of application/x-protobuf" |
| ], |
| "description": "Data format for response.", |
| "location": "query", |
| "enum": [ |
| "json", |
| "media", |
| "proto" |
| ], |
| "default": "json" |
| }, |
| "oauth_token": { |
| "type": "string", |
| "description": "OAuth 2.0 token for the current user.", |
| "location": "query" |
| }, |
| "$.xgafv": { |
| "type": "string", |
| "location": "query", |
| "enumDescriptions": [ |
| "v1 error format", |
| "v2 error format" |
| ], |
| "description": "V1 error format.", |
| "enum": [ |
| "1", |
| "2" |
| ] |
| }, |
| "quotaUser": { |
| "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
| "location": "query", |
| "type": "string" |
| }, |
| "key": { |
| "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
| "type": "string", |
| "location": "query" |
| }, |
| "callback": { |
| "description": "JSONP", |
| "type": "string", |
| "location": "query" |
| }, |
| "prettyPrint": { |
| "default": "true", |
| "location": "query", |
| "type": "boolean", |
| "description": "Returns response with indentations and line breaks." |
| } |
| }, |
| "ownerDomain": "google.com", |
| "rootUrl": "https://driveactivity.googleapis.com/", |
| "name": "driveactivity", |
| "resources": { |
| "activity": { |
| "methods": { |
| "query": { |
| "httpMethod": "POST", |
| "parameters": {}, |
| "response": { |
| "$ref": "QueryDriveActivityResponse" |
| }, |
| "path": "v2/activity:query", |
| "request": { |
| "$ref": "QueryDriveActivityRequest" |
| }, |
| "description": "Query past activity in Google Drive.", |
| "parameterOrder": [], |
| "scopes": [ |
| "https://www.googleapis.com/auth/drive.activity", |
| "https://www.googleapis.com/auth/drive.activity.readonly" |
| ], |
| "flatPath": "v2/activity:query", |
| "id": "driveactivity.activity.query" |
| } |
| } |
| } |
| }, |
| "mtlsRootUrl": "https://driveactivity.mtls.googleapis.com/", |
| "canonicalName": "Drive Activity", |
| "ownerName": "Google", |
| "baseUrl": "https://driveactivity.googleapis.com/", |
| "version_module": true, |
| "version": "v2", |
| "kind": "discovery#restDescription", |
| "servicePath": "", |
| "revision": "20200801", |
| "auth": { |
| "oauth2": { |
| "scopes": { |
| "https://www.googleapis.com/auth/drive.activity": { |
| "description": "View and add to the activity record of files in your Google Drive" |
| }, |
| "https://www.googleapis.com/auth/drive.activity.readonly": { |
| "description": "View the activity record of files in your Google Drive" |
| } |
| } |
| } |
| }, |
| "schemas": { |
| "QueryDriveActivityRequest": { |
| "description": "The request message for querying Drive activity.", |
| "type": "object", |
| "properties": { |
| "ancestorName": { |
| "type": "string", |
| "description": "Return activities for this Drive folder and all children and descendants. The format is \"items/ITEM_ID\"." |
| }, |
| "itemName": { |
| "description": "Return activities for this Drive item. The format is \"items/ITEM_ID\".", |
| "type": "string" |
| }, |
| "pageSize": { |
| "description": "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.", |
| "format": "int32", |
| "type": "integer" |
| }, |
| "consolidationStrategy": { |
| "$ref": "ConsolidationStrategy", |
| "description": "Details on how to consolidate related actions that make up the activity. If not set, then related actions are not consolidated." |
| }, |
| "filter": { |
| "description": "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 \u003e 1452409200000 AND time \u003c= 1492812924310 - time \u003e= \"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", |
| "type": "string" |
| }, |
| "pageToken": { |
| "type": "string", |
| "description": "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." |
| } |
| }, |
| "id": "QueryDriveActivityRequest" |
| }, |
| "Permission": { |
| "id": "Permission", |
| "properties": { |
| "anyone": { |
| "$ref": "Anyone", |
| "description": "If set, this permission applies to anyone, even logged out users." |
| }, |
| "domain": { |
| "description": "The domain to whom this permission applies.", |
| "$ref": "Domain" |
| }, |
| "user": { |
| "$ref": "User", |
| "description": "The user to whom this permission applies." |
| }, |
| "allowDiscovery": { |
| "description": "If true, the item can be discovered (e.g. in the user's \"Shared with me\" collection) without needing a link to the item.", |
| "type": "boolean" |
| }, |
| "group": { |
| "description": "The group to whom this permission applies.", |
| "$ref": "Group" |
| }, |
| "role": { |
| "description": "Indicates the Google Drive permissions role. The role determines a user's ability to read, write, and comment on items.", |
| "type": "string", |
| "enumDescriptions": [ |
| "The role is not available.", |
| "A role granting full access.", |
| "A role granting the ability to manage people and settings.", |
| "A role granting the ability to contribute and manage content.", |
| "A role granting the ability to contribute content. This role is sometimes also known as \"writer\".", |
| "A role granting the ability to view and comment on content.", |
| "A role granting the ability to view content. This role is sometimes also known as \"reader\".", |
| "A role granting the ability to view content only after it has been published to the web. This role is sometimes also known as \"published reader\". See https://support.google.com/sites/answer/6372880 for more information." |
| ], |
| "enum": [ |
| "ROLE_UNSPECIFIED", |
| "OWNER", |
| "ORGANIZER", |
| "FILE_ORGANIZER", |
| "EDITOR", |
| "COMMENTER", |
| "VIEWER", |
| "PUBLISHED_VIEWER" |
| ] |
| } |
| }, |
| "type": "object", |
| "description": "The permission setting of an object." |
| }, |
| "Administrator": { |
| "id": "Administrator", |
| "type": "object", |
| "properties": {}, |
| "description": "Empty message representing an administrator." |
| }, |
| "ActionDetail": { |
| "description": "Data describing the type and additional information of an action.", |
| "type": "object", |
| "properties": { |
| "edit": { |
| "description": "An object was edited.", |
| "$ref": "Edit" |
| }, |
| "rename": { |
| "description": "An object was renamed.", |
| "$ref": "Rename" |
| }, |
| "create": { |
| "$ref": "Create", |
| "description": "An object was created." |
| }, |
| "restore": { |
| "description": "A deleted object was restored.", |
| "$ref": "Restore" |
| }, |
| "comment": { |
| "$ref": "Comment", |
| "description": "A change about comments was made." |
| }, |
| "dlpChange": { |
| "description": "A change happened in data leak prevention status.", |
| "$ref": "DataLeakPreventionChange" |
| }, |
| "reference": { |
| "$ref": "ApplicationReference", |
| "description": "An object was referenced in an application outside of Drive/Docs." |
| }, |
| "move": { |
| "description": "An object was moved.", |
| "$ref": "Move" |
| }, |
| "permissionChange": { |
| "description": "The permission on an object was changed.", |
| "$ref": "PermissionChange" |
| }, |
| "delete": { |
| "description": "An object was deleted.", |
| "$ref": "Delete" |
| }, |
| "settingsChange": { |
| "description": "Settings were changed.", |
| "$ref": "SettingsChange" |
| } |
| }, |
| "id": "ActionDetail" |
| }, |
| "TargetReference": { |
| "id": "TargetReference", |
| "description": "A lightweight reference to the target of activity.", |
| "type": "object", |
| "properties": { |
| "drive": { |
| "description": "The target is a shared drive.", |
| "$ref": "DriveReference" |
| }, |
| "driveItem": { |
| "description": "The target is a Drive item.", |
| "$ref": "DriveItemReference" |
| }, |
| "teamDrive": { |
| "$ref": "TeamDriveReference", |
| "description": "This field is deprecated; please use the `drive` field instead." |
| } |
| } |
| }, |
| "DriveActivity": { |
| "properties": { |
| "timeRange": { |
| "$ref": "TimeRange", |
| "description": "The activity occurred over this time range." |
| }, |
| "timestamp": { |
| "format": "google-datetime", |
| "type": "string", |
| "description": "The activity occurred at this specific time." |
| }, |
| "actors": { |
| "items": { |
| "$ref": "Actor" |
| }, |
| "type": "array", |
| "description": "All actor(s) responsible for the activity." |
| }, |
| "targets": { |
| "type": "array", |
| "description": "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.", |
| "items": { |
| "$ref": "Target" |
| } |
| }, |
| "actions": { |
| "items": { |
| "$ref": "Action" |
| }, |
| "type": "array", |
| "description": "Details on all actions in this activity." |
| }, |
| "primaryActionDetail": { |
| "description": "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.", |
| "$ref": "ActionDetail" |
| } |
| }, |
| "type": "object", |
| "id": "DriveActivity", |
| "description": "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." |
| }, |
| "Post": { |
| "description": "A regular posted comment.", |
| "properties": { |
| "subtype": { |
| "enum": [ |
| "SUBTYPE_UNSPECIFIED", |
| "ADDED", |
| "DELETED", |
| "REPLY_ADDED", |
| "REPLY_DELETED", |
| "RESOLVED", |
| "REOPENED" |
| ], |
| "enumDescriptions": [ |
| "Subtype not available.", |
| "A post was added.", |
| "A post was deleted.", |
| "A reply was added.", |
| "A reply was deleted.", |
| "A posted comment was resolved.", |
| "A posted comment was reopened." |
| ], |
| "type": "string", |
| "description": "The sub-type of this event." |
| } |
| }, |
| "type": "object", |
| "id": "Post" |
| }, |
| "User": { |
| "properties": { |
| "deletedUser": { |
| "description": "A user whose account has since been deleted.", |
| "$ref": "DeletedUser" |
| }, |
| "unknownUser": { |
| "description": "A user about whom nothing is currently known.", |
| "$ref": "UnknownUser" |
| }, |
| "knownUser": { |
| "$ref": "KnownUser", |
| "description": "A known user." |
| } |
| }, |
| "description": "Information about an end user.", |
| "type": "object", |
| "id": "User" |
| }, |
| "QueryDriveActivityResponse": { |
| "type": "object", |
| "description": "Response message for querying Drive activity.", |
| "properties": { |
| "activities": { |
| "items": { |
| "$ref": "DriveActivity" |
| }, |
| "description": "List of activity requested.", |
| "type": "array" |
| }, |
| "nextPageToken": { |
| "type": "string", |
| "description": "Token to retrieve the next page of results, or empty if there are no more results in the list." |
| } |
| }, |
| "id": "QueryDriveActivityResponse" |
| }, |
| "ConsolidationStrategy": { |
| "id": "ConsolidationStrategy", |
| "description": "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.", |
| "type": "object", |
| "properties": { |
| "none": { |
| "$ref": "NoConsolidation", |
| "description": "The individual activities are not consolidated." |
| }, |
| "legacy": { |
| "description": "The individual activities are consolidated using the legacy strategy.", |
| "$ref": "Legacy" |
| } |
| } |
| }, |
| "Target": { |
| "description": "Information about the target of activity.", |
| "id": "Target", |
| "properties": { |
| "driveItem": { |
| "description": "The target is a Drive item.", |
| "$ref": "DriveItem" |
| }, |
| "fileComment": { |
| "description": "The target is a comment on a Drive file.", |
| "$ref": "FileComment" |
| }, |
| "teamDrive": { |
| "$ref": "TeamDrive", |
| "description": "This field is deprecated; please use the `drive` field instead." |
| }, |
| "drive": { |
| "$ref": "Drive", |
| "description": "The target is a shared drive." |
| } |
| }, |
| "type": "object" |
| }, |
| "New": { |
| "id": "New", |
| "description": "An object was created from scratch.", |
| "type": "object", |
| "properties": {} |
| }, |
| "KnownUser": { |
| "description": "A known user.", |
| "type": "object", |
| "properties": { |
| "personName": { |
| "type": "string", |
| "description": "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/." |
| }, |
| "isCurrentUser": { |
| "type": "boolean", |
| "description": "True if this is the user making the request." |
| } |
| }, |
| "id": "KnownUser" |
| }, |
| "DriveItemReference": { |
| "description": "A lightweight reference to a Drive item, such as a file or folder.", |
| "type": "object", |
| "id": "DriveItemReference", |
| "properties": { |
| "driveFile": { |
| "description": "The Drive item is a file.", |
| "$ref": "DriveFile" |
| }, |
| "file": { |
| "$ref": "File", |
| "description": "This field is deprecated; please use the `driveFile` field instead." |
| }, |
| "name": { |
| "type": "string", |
| "description": "The target Drive item. The format is \"items/ITEM_ID\"." |
| }, |
| "title": { |
| "type": "string", |
| "description": "The title of the Drive item." |
| }, |
| "folder": { |
| "description": "This field is deprecated; please use the `driveFolder` field instead.", |
| "$ref": "Folder" |
| }, |
| "driveFolder": { |
| "$ref": "DriveFolder", |
| "description": "The Drive item is a folder. Includes information about the type of folder." |
| } |
| } |
| }, |
| "RestrictionChange": { |
| "type": "object", |
| "properties": { |
| "feature": { |
| "description": "The feature which had a change in restriction policy.", |
| "enum": [ |
| "FEATURE_UNSPECIFIED", |
| "SHARING_OUTSIDE_DOMAIN", |
| "DIRECT_SHARING", |
| "ITEM_DUPLICATION", |
| "DRIVE_FILE_STREAM" |
| ], |
| "enumDescriptions": [ |
| "The feature which changed restriction settings was not available.", |
| "When restricted, this prevents items from being shared outside the domain.", |
| "When restricted, this prevents direct sharing of individual items.", |
| "When restricted, this prevents actions like copy, download, and print that might result in uncontrolled duplicates of items.", |
| "When restricted, this prevents use of Drive File Stream." |
| ], |
| "type": "string" |
| }, |
| "newRestriction": { |
| "enumDescriptions": [ |
| "The type of restriction is not available.", |
| "The feature is available without restriction.", |
| "The use of this feature is fully restricted." |
| ], |
| "description": "The restriction in place after the change.", |
| "type": "string", |
| "enum": [ |
| "RESTRICTION_UNSPECIFIED", |
| "UNRESTRICTED", |
| "FULLY_RESTRICTED" |
| ] |
| } |
| }, |
| "id": "RestrictionChange", |
| "description": "Information about restriction policy changes to a feature." |
| }, |
| "Drive": { |
| "properties": { |
| "title": { |
| "type": "string", |
| "description": "The title of the shared drive." |
| }, |
| "name": { |
| "description": "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.", |
| "type": "string" |
| }, |
| "root": { |
| "$ref": "DriveItem", |
| "description": "The root of this shared drive." |
| } |
| }, |
| "type": "object", |
| "id": "Drive", |
| "description": "Information about a shared drive." |
| }, |
| "Move": { |
| "description": "An object was moved.", |
| "properties": { |
| "removedParents": { |
| "items": { |
| "$ref": "TargetReference" |
| }, |
| "description": "The removed parent object(s).", |
| "type": "array" |
| }, |
| "addedParents": { |
| "description": "The added parent object(s).", |
| "items": { |
| "$ref": "TargetReference" |
| }, |
| "type": "array" |
| } |
| }, |
| "id": "Move", |
| "type": "object" |
| }, |
| "Edit": { |
| "description": "An empty message indicating an object was edited.", |
| "type": "object", |
| "properties": {}, |
| "id": "Edit" |
| }, |
| "NoConsolidation": { |
| "properties": {}, |
| "description": "A strategy which does no consolidation of individual activities.", |
| "type": "object", |
| "id": "NoConsolidation" |
| }, |
| "PermissionChange": { |
| "description": "A change of the permission setting on an item.", |
| "type": "object", |
| "properties": { |
| "removedPermissions": { |
| "description": "The set of permissions removed by this change.", |
| "type": "array", |
| "items": { |
| "$ref": "Permission" |
| } |
| }, |
| "addedPermissions": { |
| "description": "The set of permissions added by this change.", |
| "items": { |
| "$ref": "Permission" |
| }, |
| "type": "array" |
| } |
| }, |
| "id": "PermissionChange" |
| }, |
| "TeamDrive": { |
| "properties": { |
| "root": { |
| "description": "This field is deprecated; please see `Drive.root` instead.", |
| "$ref": "DriveItem" |
| }, |
| "name": { |
| "description": "This field is deprecated; please see `Drive.name` instead.", |
| "type": "string" |
| }, |
| "title": { |
| "description": "This field is deprecated; please see `Drive.title` instead.", |
| "type": "string" |
| } |
| }, |
| "type": "object", |
| "description": "This item is deprecated; please see `Drive` instead.", |
| "id": "TeamDrive" |
| }, |
| "Assignment": { |
| "type": "object", |
| "properties": { |
| "subtype": { |
| "enumDescriptions": [ |
| "Subtype not available.", |
| "An assignment was added.", |
| "An assignment was deleted.", |
| "An assignment reply was added.", |
| "An assignment reply was deleted.", |
| "An assignment was resolved.", |
| "A resolved assignment was reopened.", |
| "An assignment was reassigned." |
| ], |
| "type": "string", |
| "description": "The sub-type of this event.", |
| "enum": [ |
| "SUBTYPE_UNSPECIFIED", |
| "ADDED", |
| "DELETED", |
| "REPLY_ADDED", |
| "REPLY_DELETED", |
| "RESOLVED", |
| "REOPENED", |
| "REASSIGNED" |
| ] |
| }, |
| "assignedUser": { |
| "description": "The user to whom the comment was assigned.", |
| "$ref": "User" |
| } |
| }, |
| "id": "Assignment", |
| "description": "A comment with an assignment." |
| }, |
| "AnonymousUser": { |
| "id": "AnonymousUser", |
| "properties": {}, |
| "description": "Empty message representing an anonymous user or indicating the authenticated user should be anonymized.", |
| "type": "object" |
| }, |
| "DriveFolder": { |
| "description": "A Drive item which is a folder.", |
| "id": "DriveFolder", |
| "type": "object", |
| "properties": { |
| "type": { |
| "description": "The type of Drive folder.", |
| "enum": [ |
| "TYPE_UNSPECIFIED", |
| "MY_DRIVE_ROOT", |
| "SHARED_DRIVE_ROOT", |
| "STANDARD_FOLDER" |
| ], |
| "type": "string", |
| "enumDescriptions": [ |
| "The folder type is unknown.", |
| "The folder is the root of a user's MyDrive.", |
| "The folder is the root of a shared drive.", |
| "The folder is a standard, non-root, folder." |
| ] |
| } |
| } |
| }, |
| "Comment": { |
| "type": "object", |
| "id": "Comment", |
| "properties": { |
| "assignment": { |
| "description": "A change on an assignment.", |
| "$ref": "Assignment" |
| }, |
| "post": { |
| "$ref": "Post", |
| "description": "A change on a regular posted comment." |
| }, |
| "suggestion": { |
| "$ref": "Suggestion", |
| "description": "A change on a suggestion." |
| }, |
| "mentionedUsers": { |
| "type": "array", |
| "items": { |
| "$ref": "User" |
| }, |
| "description": "Users who are mentioned in this comment." |
| } |
| }, |
| "description": "A change about comments on an object." |
| }, |
| "FileComment": { |
| "id": "FileComment", |
| "description": "A comment on a file.", |
| "type": "object", |
| "properties": { |
| "parent": { |
| "description": "The Drive item containing this comment.", |
| "$ref": "DriveItem" |
| }, |
| "legacyCommentId": { |
| "type": "string", |
| "description": "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" |
| }, |
| "linkToDiscussion": { |
| "description": "The link to the discussion thread containing this comment, for example, \"https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID\".", |
| "type": "string" |
| }, |
| "legacyDiscussionId": { |
| "description": "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", |
| "type": "string" |
| } |
| } |
| }, |
| "Folder": { |
| "properties": { |
| "type": { |
| "description": "This field is deprecated; please see `DriveFolder.type` instead.", |
| "type": "string", |
| "enum": [ |
| "TYPE_UNSPECIFIED", |
| "MY_DRIVE_ROOT", |
| "TEAM_DRIVE_ROOT", |
| "STANDARD_FOLDER" |
| ], |
| "enumDescriptions": [ |
| "This item is deprecated; please see `DriveFolder.Type` instead.", |
| "This item is deprecated; please see `DriveFolder.Type` instead.", |
| "This item is deprecated; please see `DriveFolder.Type` instead.", |
| "This item is deprecated; please see `DriveFolder.Type` instead." |
| ] |
| } |
| }, |
| "description": "This item is deprecated; please see `DriveFolder` instead.", |
| "id": "Folder", |
| "type": "object" |
| }, |
| "Actor": { |
| "type": "object", |
| "id": "Actor", |
| "properties": { |
| "system": { |
| "description": "A non-user actor (i.e. system triggered).", |
| "$ref": "SystemEvent" |
| }, |
| "user": { |
| "description": "An end user.", |
| "$ref": "User" |
| }, |
| "administrator": { |
| "$ref": "Administrator", |
| "description": "An administrator." |
| }, |
| "impersonation": { |
| "$ref": "Impersonation", |
| "description": "An account acting on behalf of another." |
| }, |
| "anonymous": { |
| "description": "An anonymous user.", |
| "$ref": "AnonymousUser" |
| } |
| }, |
| "description": "The actor of a Drive activity." |
| }, |
| "TeamDriveReference": { |
| "description": "This item is deprecated; please see `DriveReference` instead.", |
| "type": "object", |
| "properties": { |
| "name": { |
| "description": "This field is deprecated; please see `DriveReference.name` instead.", |
| "type": "string" |
| }, |
| "title": { |
| "description": "This field is deprecated; please see `DriveReference.title` instead.", |
| "type": "string" |
| } |
| }, |
| "id": "TeamDriveReference" |
| }, |
| "Action": { |
| "type": "object", |
| "id": "Action", |
| "properties": { |
| "timeRange": { |
| "description": "The action occurred over this time range.", |
| "$ref": "TimeRange" |
| }, |
| "target": { |
| "$ref": "Target", |
| "description": "The target this action affects (or empty if affecting all targets). This represents the state of the target immediately after this action occurred." |
| }, |
| "detail": { |
| "$ref": "ActionDetail", |
| "description": "The type and detailed information about the action." |
| }, |
| "timestamp": { |
| "description": "The action occurred at this specific time.", |
| "type": "string", |
| "format": "google-datetime" |
| }, |
| "actor": { |
| "$ref": "Actor", |
| "description": "The actor responsible for this action (or empty if all actors are responsible)." |
| } |
| }, |
| "description": "Information about the action." |
| }, |
| "Restore": { |
| "id": "Restore", |
| "description": "A deleted object was restored.", |
| "properties": { |
| "type": { |
| "description": "The type of restore action taken.", |
| "enum": [ |
| "TYPE_UNSPECIFIED", |
| "UNTRASH" |
| ], |
| "enumDescriptions": [ |
| "The type is not available.", |
| "An object was restored from the trash." |
| ], |
| "type": "string" |
| } |
| }, |
| "type": "object" |
| }, |
| "Group": { |
| "id": "Group", |
| "properties": { |
| "title": { |
| "type": "string", |
| "description": "The title of the group." |
| }, |
| "email": { |
| "description": "The email address of the group.", |
| "type": "string" |
| } |
| }, |
| "type": "object", |
| "description": "Information about a group." |
| }, |
| "ApplicationReference": { |
| "id": "ApplicationReference", |
| "type": "object", |
| "description": "Activity in applications other than Drive.", |
| "properties": { |
| "type": { |
| "enumDescriptions": [ |
| "The type is not available.", |
| "The links of one or more Drive items were posted.", |
| "Comments were made regarding a Drive item." |
| ], |
| "enum": [ |
| "UNSPECIFIED_REFERENCE_TYPE", |
| "LINK", |
| "DISCUSS" |
| ], |
| "description": "The reference type corresponding to this event.", |
| "type": "string" |
| } |
| } |
| }, |
| "SettingsChange": { |
| "properties": { |
| "restrictionChanges": { |
| "description": "The set of changes made to restrictions.", |
| "type": "array", |
| "items": { |
| "$ref": "RestrictionChange" |
| } |
| } |
| }, |
| "type": "object", |
| "id": "SettingsChange", |
| "description": "Information about settings changes." |
| }, |
| "DriveReference": { |
| "type": "object", |
| "properties": { |
| "name": { |
| "description": "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.", |
| "type": "string" |
| }, |
| "title": { |
| "description": "The title of the shared drive.", |
| "type": "string" |
| } |
| }, |
| "id": "DriveReference", |
| "description": "A lightweight reference to a shared drive." |
| }, |
| "Create": { |
| "type": "object", |
| "description": "An object was created.", |
| "id": "Create", |
| "properties": { |
| "copy": { |
| "$ref": "Copy", |
| "description": "If present, indicates the object was created by copying an existing Drive object." |
| }, |
| "new": { |
| "$ref": "New", |
| "description": "If present, indicates the object was newly created (e.g. as a blank document), not derived from a Drive object or external object." |
| }, |
| "upload": { |
| "description": "If present, indicates the object originated externally and was uploaded to Drive.", |
| "$ref": "Upload" |
| } |
| } |
| }, |
| "Copy": { |
| "type": "object", |
| "id": "Copy", |
| "description": "An object was created by copying an existing object.", |
| "properties": { |
| "originalObject": { |
| "description": "The the original object.", |
| "$ref": "TargetReference" |
| } |
| } |
| }, |
| "Rename": { |
| "properties": { |
| "newTitle": { |
| "description": "The new title of the drive object.", |
| "type": "string" |
| }, |
| "oldTitle": { |
| "description": "The previous title of the drive object.", |
| "type": "string" |
| } |
| }, |
| "id": "Rename", |
| "type": "object", |
| "description": "An object was renamed." |
| }, |
| "DriveItem": { |
| "description": "A Drive item, such as a file or folder.", |
| "id": "DriveItem", |
| "properties": { |
| "file": { |
| "$ref": "File", |
| "description": "This field is deprecated; please use the `driveFile` field instead." |
| }, |
| "mimeType": { |
| "type": "string", |
| "description": "The MIME type of the Drive item. See https://developers.google.com/drive/v3/web/mime-types." |
| }, |
| "folder": { |
| "description": "This field is deprecated; please use the `driveFolder` field instead.", |
| "$ref": "Folder" |
| }, |
| "title": { |
| "type": "string", |
| "description": "The title of the Drive item." |
| }, |
| "driveFolder": { |
| "description": "The Drive item is a folder. Includes information about the type of folder.", |
| "$ref": "DriveFolder" |
| }, |
| "owner": { |
| "description": "Information about the owner of this Drive item.", |
| "$ref": "Owner" |
| }, |
| "name": { |
| "type": "string", |
| "description": "The target Drive item. The format is \"items/ITEM_ID\"." |
| }, |
| "driveFile": { |
| "$ref": "DriveFile", |
| "description": "The Drive item is a file." |
| } |
| }, |
| "type": "object" |
| }, |
| "Owner": { |
| "id": "Owner", |
| "properties": { |
| "domain": { |
| "description": "The domain of the Drive item owner.", |
| "$ref": "Domain" |
| }, |
| "user": { |
| "$ref": "User", |
| "description": "The user that owns the Drive item." |
| }, |
| "teamDrive": { |
| "$ref": "TeamDriveReference", |
| "description": "This field is deprecated; please use the `drive` field instead." |
| }, |
| "drive": { |
| "$ref": "DriveReference", |
| "description": "The drive that owns the item." |
| } |
| }, |
| "description": "Information about the owner of a Drive item.", |
| "type": "object" |
| }, |
| "Delete": { |
| "id": "Delete", |
| "properties": { |
| "type": { |
| "enum": [ |
| "TYPE_UNSPECIFIED", |
| "TRASH", |
| "PERMANENT_DELETE" |
| ], |
| "enumDescriptions": [ |
| "Deletion type is not available.", |
| "An object was put into the trash.", |
| "An object was deleted permanently." |
| ], |
| "description": "The type of delete action taken.", |
| "type": "string" |
| } |
| }, |
| "description": "An object was deleted.", |
| "type": "object" |
| }, |
| "Upload": { |
| "properties": {}, |
| "id": "Upload", |
| "type": "object", |
| "description": "An object was uploaded into Drive." |
| }, |
| "SystemEvent": { |
| "properties": { |
| "type": { |
| "description": "The type of the system event that may triggered activity.", |
| "enumDescriptions": [ |
| "The event type is unspecified.", |
| "The event is a consequence of a user account being deleted.", |
| "The event is due to the system automatically purging trash." |
| ], |
| "enum": [ |
| "TYPE_UNSPECIFIED", |
| "USER_DELETION", |
| "TRASH_AUTO_PURGE" |
| ], |
| "type": "string" |
| } |
| }, |
| "type": "object", |
| "id": "SystemEvent", |
| "description": "Event triggered by system operations instead of end users." |
| }, |
| "UnknownUser": { |
| "id": "UnknownUser", |
| "properties": {}, |
| "description": "A user about whom nothing is currently known.", |
| "type": "object" |
| }, |
| "DeletedUser": { |
| "description": "A user whose account has since been deleted.", |
| "type": "object", |
| "id": "DeletedUser", |
| "properties": {} |
| }, |
| "Legacy": { |
| "type": "object", |
| "description": "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.", |
| "properties": {}, |
| "id": "Legacy" |
| }, |
| "TimeRange": { |
| "description": "Information about time ranges.", |
| "properties": { |
| "startTime": { |
| "type": "string", |
| "format": "google-datetime", |
| "description": "The start of the time range." |
| }, |
| "endTime": { |
| "format": "google-datetime", |
| "type": "string", |
| "description": "The end of the time range." |
| } |
| }, |
| "type": "object", |
| "id": "TimeRange" |
| }, |
| "DriveFile": { |
| "type": "object", |
| "description": "A Drive item which is a file.", |
| "id": "DriveFile", |
| "properties": {} |
| }, |
| "Domain": { |
| "id": "Domain", |
| "type": "object", |
| "properties": { |
| "name": { |
| "description": "The name of the domain, e.g. \"google.com\".", |
| "type": "string" |
| }, |
| "legacyId": { |
| "description": "An opaque string used to identify this domain.", |
| "type": "string" |
| } |
| }, |
| "description": "Information about a domain." |
| }, |
| "File": { |
| "properties": {}, |
| "description": "This item is deprecated; please see `DriveFile` instead.", |
| "id": "File", |
| "type": "object" |
| }, |
| "Suggestion": { |
| "type": "object", |
| "description": "A suggestion.", |
| "properties": { |
| "subtype": { |
| "type": "string", |
| "enumDescriptions": [ |
| "Subtype not available.", |
| "A suggestion was added.", |
| "A suggestion was deleted.", |
| "A suggestion reply was added.", |
| "A suggestion reply was deleted.", |
| "A suggestion was accepted.", |
| "A suggestion was rejected.", |
| "An accepted suggestion was deleted.", |
| "A rejected suggestion was deleted." |
| ], |
| "description": "The sub-type of this event.", |
| "enum": [ |
| "SUBTYPE_UNSPECIFIED", |
| "ADDED", |
| "DELETED", |
| "REPLY_ADDED", |
| "REPLY_DELETED", |
| "ACCEPTED", |
| "REJECTED", |
| "ACCEPT_DELETED", |
| "REJECT_DELETED" |
| ] |
| } |
| }, |
| "id": "Suggestion" |
| }, |
| "Anyone": { |
| "type": "object", |
| "properties": {}, |
| "id": "Anyone", |
| "description": "Represents any user (including a logged out user)." |
| }, |
| "DataLeakPreventionChange": { |
| "properties": { |
| "type": { |
| "enumDescriptions": [ |
| "An update to the DLP state that is neither FLAGGED or CLEARED.", |
| "Document has been flagged as containing sensitive content.", |
| "Document is no longer flagged as containing sensitive content." |
| ], |
| "type": "string", |
| "description": "The type of Data Leak Prevention (DLP) change.", |
| "enum": [ |
| "TYPE_UNSPECIFIED", |
| "FLAGGED", |
| "CLEARED" |
| ] |
| } |
| }, |
| "type": "object", |
| "description": "A change in the object's data leak prevention status.", |
| "id": "DataLeakPreventionChange" |
| }, |
| "Impersonation": { |
| "description": "Information about an impersonation, where an admin acts on behalf of an end user. Information about the acting admin is not currently available.", |
| "properties": { |
| "impersonatedUser": { |
| "description": "The impersonated user.", |
| "$ref": "User" |
| } |
| }, |
| "id": "Impersonation", |
| "type": "object" |
| } |
| }, |
| "id": "driveactivity:v2", |
| "fullyEncodeReservedExpansion": true, |
| "basePath": "", |
| "discoveryVersion": "v1" |
| } |