mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-21 05:11:17 +00:00
1112 lines
No EOL
36 KiB
JSON
1112 lines
No EOL
36 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"basePath": "",
|
|
"baseUrl": "https://driveactivity.googleapis.com/",
|
|
"batchPath": "batch",
|
|
"canonicalName": "Drive Activity",
|
|
"description": "Provides a historical view of activity in Google Drive.",
|
|
"discoveryVersion": "v1",
|
|
"documentationLink": "https://developers.google.com/drive/activity/",
|
|
"fullyEncodeReservedExpansion": true,
|
|
"icons": {
|
|
"x16": "http://www.google.com/images/icons/product/search-16.gif",
|
|
"x32": "http://www.google.com/images/icons/product/search-32.gif"
|
|
},
|
|
"id": "driveactivity:v2",
|
|
"kind": "discovery#restDescription",
|
|
"name": "driveactivity",
|
|
"ownerDomain": "google.com",
|
|
"ownerName": "Google",
|
|
"parameters": {
|
|
"$.xgafv": {
|
|
"description": "V1 error format.",
|
|
"enum": [
|
|
"1",
|
|
"2"
|
|
],
|
|
"enumDescriptions": [
|
|
"v1 error format",
|
|
"v2 error format"
|
|
],
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"access_token": {
|
|
"description": "OAuth access token.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"alt": {
|
|
"default": "json",
|
|
"description": "Data format for response.",
|
|
"enum": [
|
|
"json",
|
|
"media",
|
|
"proto"
|
|
],
|
|
"enumDescriptions": [
|
|
"Responses with Content-Type of application/json",
|
|
"Media download with context-dependent Content-Type",
|
|
"Responses with Content-Type of application/x-protobuf"
|
|
],
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"callback": {
|
|
"description": "JSONP",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"fields": {
|
|
"description": "Selector specifying which fields to include in a partial response.",
|
|
"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.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"oauth_token": {
|
|
"description": "OAuth 2.0 token for the current user.",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"prettyPrint": {
|
|
"default": "true",
|
|
"description": "Returns response with indentations and line breaks.",
|
|
"location": "query",
|
|
"type": "boolean"
|
|
},
|
|
"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"
|
|
},
|
|
"uploadType": {
|
|
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
|
|
"location": "query",
|
|
"type": "string"
|
|
},
|
|
"upload_protocol": {
|
|
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
|
|
"location": "query",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"protocol": "rest",
|
|
"resources": {
|
|
"activity": {
|
|
"methods": {
|
|
"query": {
|
|
"description": "Query past activity in Google Drive.",
|
|
"flatPath": "v2/activity:query",
|
|
"httpMethod": "POST",
|
|
"id": "driveactivity.activity.query",
|
|
"parameterOrder": [],
|
|
"parameters": {},
|
|
"path": "v2/activity:query",
|
|
"request": {
|
|
"$ref": "QueryDriveActivityRequest"
|
|
},
|
|
"response": {
|
|
"$ref": "QueryDriveActivityResponse"
|
|
},
|
|
"scopes": [
|
|
"https://www.googleapis.com/auth/drive.activity",
|
|
"https://www.googleapis.com/auth/drive.activity.readonly"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"revision": "20181128",
|
|
"rootUrl": "https://driveactivity.googleapis.com/",
|
|
"schemas": {
|
|
"Action": {
|
|
"description": "Information about the action.",
|
|
"id": "Action",
|
|
"properties": {
|
|
"actor": {
|
|
"$ref": "Actor",
|
|
"description": "The actor responsible for this action (or empty if all actors are\nresponsible)."
|
|
},
|
|
"detail": {
|
|
"$ref": "ActionDetail",
|
|
"description": "The type and detailed information about the action."
|
|
},
|
|
"target": {
|
|
"$ref": "Target",
|
|
"description": "The target this action affects (or empty if affecting all targets). This\nrepresents the state of the target immediately after this action occurred."
|
|
},
|
|
"timeRange": {
|
|
"$ref": "TimeRange",
|
|
"description": "The action occurred over this time range."
|
|
},
|
|
"timestamp": {
|
|
"description": "The action occurred at this specific time.",
|
|
"format": "google-datetime",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ActionDetail": {
|
|
"description": "Data describing the type and additional information of an action.",
|
|
"id": "ActionDetail",
|
|
"properties": {
|
|
"comment": {
|
|
"$ref": "Comment",
|
|
"description": "A change about comments was made."
|
|
},
|
|
"create": {
|
|
"$ref": "Create",
|
|
"description": "An object was created."
|
|
},
|
|
"delete": {
|
|
"$ref": "Delete",
|
|
"description": "An object was deleted."
|
|
},
|
|
"dlpChange": {
|
|
"$ref": "DataLeakPreventionChange",
|
|
"description": "A change happened in data leak prevention status."
|
|
},
|
|
"edit": {
|
|
"$ref": "Edit",
|
|
"description": "An object was edited."
|
|
},
|
|
"move": {
|
|
"$ref": "Move",
|
|
"description": "An object was moved."
|
|
},
|
|
"permissionChange": {
|
|
"$ref": "PermissionChange",
|
|
"description": "The permission on an object was changed."
|
|
},
|
|
"reference": {
|
|
"$ref": "ApplicationReference",
|
|
"description": "An object was referenced in an application outside of Drive/Docs."
|
|
},
|
|
"rename": {
|
|
"$ref": "Rename",
|
|
"description": "An object was renamed."
|
|
},
|
|
"restore": {
|
|
"$ref": "Restore",
|
|
"description": "A deleted object was restored."
|
|
},
|
|
"settingsChange": {
|
|
"$ref": "SettingsChange",
|
|
"description": "Settings were changed."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Actor": {
|
|
"description": "The actor of a Drive activity.",
|
|
"id": "Actor",
|
|
"properties": {
|
|
"administrator": {
|
|
"$ref": "Administrator",
|
|
"description": "An administrator."
|
|
},
|
|
"anonymous": {
|
|
"$ref": "AnonymousUser",
|
|
"description": "An anonymous user."
|
|
},
|
|
"impersonation": {
|
|
"$ref": "Impersonation",
|
|
"description": "An account acting on behalf of another."
|
|
},
|
|
"system": {
|
|
"$ref": "SystemEvent",
|
|
"description": "A non-user actor (i.e. system triggered)."
|
|
},
|
|
"user": {
|
|
"$ref": "User",
|
|
"description": "An end user."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Administrator": {
|
|
"description": "Empty message representing an administrator.",
|
|
"id": "Administrator",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"AnonymousUser": {
|
|
"description": "Empty message representing an anonymous user or indicating the authenticated\nuser should be anonymized.",
|
|
"id": "AnonymousUser",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"Anyone": {
|
|
"description": "Represents any user (including a logged out user).",
|
|
"id": "Anyone",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"ApplicationReference": {
|
|
"description": "Activity in applications other than Drive.",
|
|
"id": "ApplicationReference",
|
|
"properties": {
|
|
"type": {
|
|
"description": "The reference type corresponding to this event.",
|
|
"enum": [
|
|
"UNSPECIFIED_REFERENCE_TYPE",
|
|
"LINK",
|
|
"DISCUSS"
|
|
],
|
|
"enumDescriptions": [
|
|
"The type is not available.",
|
|
"The links of one or more Drive items were posted.",
|
|
"Comments were made regarding a Drive item."
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Assignment": {
|
|
"description": "A comment with an assignment.",
|
|
"id": "Assignment",
|
|
"properties": {
|
|
"subtype": {
|
|
"description": "The sub-type of this event.",
|
|
"enum": [
|
|
"SUBTYPE_UNSPECIFIED",
|
|
"ADDED",
|
|
"DELETED",
|
|
"REPLY_ADDED",
|
|
"REPLY_DELETED",
|
|
"RESOLVED",
|
|
"REOPENED",
|
|
"REASSIGNED"
|
|
],
|
|
"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"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Comment": {
|
|
"description": "A change about comments on an object.",
|
|
"id": "Comment",
|
|
"properties": {
|
|
"assignment": {
|
|
"$ref": "Assignment",
|
|
"description": "A change on an assignment."
|
|
},
|
|
"mentionedUsers": {
|
|
"description": "Users who are mentioned in this comment.",
|
|
"items": {
|
|
"$ref": "User"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"post": {
|
|
"$ref": "Post",
|
|
"description": "A change on a regular posted comment."
|
|
},
|
|
"suggestion": {
|
|
"$ref": "Suggestion",
|
|
"description": "A change on a suggestion."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"ConsolidationStrategy": {
|
|
"description": "How the individual activities are consolidated. A set of activities may be\nconsolidated into one combined activity if they are related in some way, such\nas one actor performing the same action on multiple targets, or multiple\nactors performing the same action on a single target. The strategy defines\nthe rules for which activities are related.",
|
|
"id": "ConsolidationStrategy",
|
|
"properties": {
|
|
"legacy": {
|
|
"$ref": "Legacy",
|
|
"description": "The individual activities are consolidated using the legacy strategy."
|
|
},
|
|
"none": {
|
|
"$ref": "NoConsolidation",
|
|
"description": "The individual activities are not consolidated."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Copy": {
|
|
"description": "An object was created by copying an existing object.",
|
|
"id": "Copy",
|
|
"properties": {
|
|
"originalObject": {
|
|
"$ref": "TargetReference",
|
|
"description": "The the original object."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Create": {
|
|
"description": "An object was created.",
|
|
"id": "Create",
|
|
"properties": {
|
|
"copy": {
|
|
"$ref": "Copy",
|
|
"description": "If present, indicates the object was created by copying an existing Drive\nobject."
|
|
},
|
|
"new": {
|
|
"$ref": "New",
|
|
"description": "If present, indicates the object was newly created (e.g. as a blank\ndocument), not derived from a Drive object or external object."
|
|
},
|
|
"upload": {
|
|
"$ref": "Upload",
|
|
"description": "If present, indicates the object originated externally and was uploaded\nto Drive."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"DataLeakPreventionChange": {
|
|
"description": "A change in the object's data leak prevention status.",
|
|
"id": "DataLeakPreventionChange",
|
|
"properties": {
|
|
"type": {
|
|
"description": "The type of Data Leak Prevention (DLP) change.",
|
|
"enum": [
|
|
"TYPE_UNSPECIFIED",
|
|
"FLAGGED",
|
|
"CLEARED"
|
|
],
|
|
"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"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Delete": {
|
|
"description": "An object was deleted.",
|
|
"id": "Delete",
|
|
"properties": {
|
|
"type": {
|
|
"description": "The type of delete action taken.",
|
|
"enum": [
|
|
"TYPE_UNSPECIFIED",
|
|
"TRASH",
|
|
"PERMANENT_DELETE"
|
|
],
|
|
"enumDescriptions": [
|
|
"Deletion type is not available.",
|
|
"An object was put into the trash.",
|
|
"An object was deleted permanently."
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"DeletedUser": {
|
|
"description": "A user whose account has since been deleted.",
|
|
"id": "DeletedUser",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"Domain": {
|
|
"description": "Information about a domain.",
|
|
"id": "Domain",
|
|
"properties": {
|
|
"legacyId": {
|
|
"description": "An opaque string used to identify this domain.",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "The name of the domain, e.g. \"google.com\".",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"DriveActivity": {
|
|
"description": "A single Drive activity comprising one or more Actions by one or more\nActors on one or more Targets. Some Action groupings occur spontaneously,\nsuch as moving an item into a shared folder triggering a permission change.\nOther groupings of related Actions, such as multiple Actors editing one item\nor moving multiple files into a new folder, are controlled by the selection\nof a ConsolidationStrategy in the QueryDriveActivityRequest.",
|
|
"id": "DriveActivity",
|
|
"properties": {
|
|
"actions": {
|
|
"description": "Details on all actions in this activity.",
|
|
"items": {
|
|
"$ref": "Action"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"actors": {
|
|
"description": "All actor(s) responsible for the activity.",
|
|
"items": {
|
|
"$ref": "Actor"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"primaryActionDetail": {
|
|
"$ref": "ActionDetail",
|
|
"description": "Key information about the primary action for this activity. This is either\nrepresentative, or the most important, of all actions in the activity,\naccording to the ConsolidationStrategy in the request."
|
|
},
|
|
"targets": {
|
|
"description": "All Drive objects this activity is about (e.g. file, folder, Team Drive).\nThis represents the state of the target immediately after the actions\noccurred.",
|
|
"items": {
|
|
"$ref": "Target"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"timeRange": {
|
|
"$ref": "TimeRange",
|
|
"description": "The activity occurred over this time range."
|
|
},
|
|
"timestamp": {
|
|
"description": "The activity occurred at this specific time.",
|
|
"format": "google-datetime",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"DriveItem": {
|
|
"description": "A Drive item, such as a file or folder.",
|
|
"id": "DriveItem",
|
|
"properties": {
|
|
"file": {
|
|
"$ref": "File",
|
|
"description": "The Drive item is a file."
|
|
},
|
|
"folder": {
|
|
"$ref": "Folder",
|
|
"description": "The Drive item is a folder."
|
|
},
|
|
"mimeType": {
|
|
"description": "The MIME type of the Drive item. See\nhttps://developers.google.com/drive/v3/web/mime-types.",
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"description": "The target Drive item. The format is \"items/ITEM_ID\".",
|
|
"type": "string"
|
|
},
|
|
"owner": {
|
|
"$ref": "Owner",
|
|
"description": "Information about the owner of this Drive item."
|
|
},
|
|
"title": {
|
|
"description": "The title of the Drive item.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"DriveItemReference": {
|
|
"description": "A lightweight reference to a Drive item, such as a file or folder.",
|
|
"id": "DriveItemReference",
|
|
"properties": {
|
|
"file": {
|
|
"$ref": "File",
|
|
"description": "The Drive item is a file."
|
|
},
|
|
"folder": {
|
|
"$ref": "Folder",
|
|
"description": "The Drive item is a folder."
|
|
},
|
|
"name": {
|
|
"description": "The target Drive item. The format is \"items/ITEM_ID\".",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"description": "The title of the Drive item.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Edit": {
|
|
"description": "An empty message indicating an object was edited.",
|
|
"id": "Edit",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"File": {
|
|
"description": "A Drive item which is a file.",
|
|
"id": "File",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"FileComment": {
|
|
"description": "A comment on a file.",
|
|
"id": "FileComment",
|
|
"properties": {
|
|
"legacyCommentId": {
|
|
"description": "The comment in the discussion thread. This identifier is an opaque string\ncompatible with the Drive API; see\nhttps://developers.google.com/drive/v3/reference/comments/get",
|
|
"type": "string"
|
|
},
|
|
"legacyDiscussionId": {
|
|
"description": "The discussion thread to which the comment was added. This identifier is an\nopaque string compatible with the Drive API and references the first\ncomment in a discussion; see\nhttps://developers.google.com/drive/v3/reference/comments/get",
|
|
"type": "string"
|
|
},
|
|
"linkToDiscussion": {
|
|
"description": "The link to the discussion thread containing this comment, for example,\n\"https://docs.google.com/DOCUMENT_ID/edit?disco=THREAD_ID\".",
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"$ref": "DriveItem",
|
|
"description": "The Drive item containing this comment."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Folder": {
|
|
"description": "A Drive item which is a folder.",
|
|
"id": "Folder",
|
|
"properties": {
|
|
"type": {
|
|
"description": "The type of Drive folder.",
|
|
"enum": [
|
|
"TYPE_UNSPECIFIED",
|
|
"MY_DRIVE_ROOT",
|
|
"TEAM_DRIVE_ROOT",
|
|
"STANDARD_FOLDER"
|
|
],
|
|
"enumDescriptions": [
|
|
"The folder type is unknown.",
|
|
"The folder is the root of a user's MyDrive.",
|
|
"The folder is the root of a Team Drive. Note that this folder is\na Drive item, and is a distinct entity from the Team Drive itself.",
|
|
"The folder is a standard, non-root, folder."
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Group": {
|
|
"description": "Information about a group.",
|
|
"id": "Group",
|
|
"properties": {
|
|
"email": {
|
|
"description": "The email address of the group.",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"description": "The title of the group.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Impersonation": {
|
|
"description": "Information about an impersonation, where an admin acts on behalf of an end\nuser. Information about the acting admin is not currently available.",
|
|
"id": "Impersonation",
|
|
"properties": {
|
|
"impersonatedUser": {
|
|
"$ref": "User",
|
|
"description": "The impersonated user."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"KnownUser": {
|
|
"description": "A known user.",
|
|
"id": "KnownUser",
|
|
"properties": {
|
|
"isCurrentUser": {
|
|
"description": "True if this is the user making the request.",
|
|
"type": "boolean"
|
|
},
|
|
"personName": {
|
|
"description": "The identifier for this user that can be used with the People API to get\nmore information. The format is \"people/ACCOUNT_ID\". See\nhttps://developers.google.com/people/.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Legacy": {
|
|
"description": "A strategy which consolidates activities using the grouping rules from the\nlegacy V1 Activity API. Similar actions occurring within a window of time\ncan be grouped across multiple targets (such as moving a set of files at\nonce) or multiple actors (such as several users editing the same item).\nGrouping rules for this strategy are specific to each type of action.",
|
|
"id": "Legacy",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"Move": {
|
|
"description": "An object was moved.",
|
|
"id": "Move",
|
|
"properties": {
|
|
"addedParents": {
|
|
"description": "The added parent object(s).",
|
|
"items": {
|
|
"$ref": "TargetReference"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"removedParents": {
|
|
"description": "The removed parent object(s).",
|
|
"items": {
|
|
"$ref": "TargetReference"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"New": {
|
|
"description": "An object was created from scratch.",
|
|
"id": "New",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"NoConsolidation": {
|
|
"description": "A strategy which does no consolidation of individual activities.",
|
|
"id": "NoConsolidation",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"Owner": {
|
|
"description": "Information about the owner of a Drive item.",
|
|
"id": "Owner",
|
|
"properties": {
|
|
"domain": {
|
|
"$ref": "Domain",
|
|
"description": "The domain of the Drive item owner."
|
|
},
|
|
"teamDrive": {
|
|
"$ref": "TeamDriveReference",
|
|
"description": "The Team Drive that owns the Drive item."
|
|
},
|
|
"user": {
|
|
"$ref": "User",
|
|
"description": "The user that owns the Drive item."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Permission": {
|
|
"description": "The permission setting of an object.",
|
|
"id": "Permission",
|
|
"properties": {
|
|
"allowDiscovery": {
|
|
"description": "If true, the item can be discovered (e.g. in the user's \"Shared with me\"\ncollection) without needing a link to the item.",
|
|
"type": "boolean"
|
|
},
|
|
"anyone": {
|
|
"$ref": "Anyone",
|
|
"description": "If set, this permission applies to anyone, even logged out users."
|
|
},
|
|
"domain": {
|
|
"$ref": "Domain",
|
|
"description": "The domain to whom this permission applies."
|
|
},
|
|
"group": {
|
|
"$ref": "Group",
|
|
"description": "The group to whom this permission applies."
|
|
},
|
|
"role": {
|
|
"description": "Indicates the\n\u003ca href=\"/drive/web/manage-sharing#roles\"\u003eGoogle Drive permissions\nrole\u003c/a\u003e. The role determines a user's ability to read, write, and\ncomment on items.",
|
|
"enum": [
|
|
"ROLE_UNSPECIFIED",
|
|
"OWNER",
|
|
"ORGANIZER",
|
|
"FILE_ORGANIZER",
|
|
"EDITOR",
|
|
"COMMENTER",
|
|
"VIEWER",
|
|
"PUBLISHED_VIEWER"
|
|
],
|
|
"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\nalso 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\nknown as \"reader\".",
|
|
"A role granting the ability to view content only after it has been\npublished to the web. This role is sometimes also known as \"published\nreader\". See https://support.google.com/sites/answer/6372880 for more\ninformation."
|
|
],
|
|
"type": "string"
|
|
},
|
|
"user": {
|
|
"$ref": "User",
|
|
"description": "The user to whom this permission applies."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"PermissionChange": {
|
|
"description": "A change of the permission setting on an item.",
|
|
"id": "PermissionChange",
|
|
"properties": {
|
|
"addedPermissions": {
|
|
"description": "The set of permissions added by this change.",
|
|
"items": {
|
|
"$ref": "Permission"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"removedPermissions": {
|
|
"description": "The set of permissions removed by this change.",
|
|
"items": {
|
|
"$ref": "Permission"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Post": {
|
|
"description": "A regular posted comment.",
|
|
"id": "Post",
|
|
"properties": {
|
|
"subtype": {
|
|
"description": "The sub-type of this event.",
|
|
"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"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"QueryDriveActivityRequest": {
|
|
"description": "The request message for querying Drive activity.",
|
|
"id": "QueryDriveActivityRequest",
|
|
"properties": {
|
|
"ancestorName": {
|
|
"description": "Return activities for this Drive folder and all children and descendants.\nThe format is \"items/ITEM_ID\".",
|
|
"type": "string"
|
|
},
|
|
"consolidationStrategy": {
|
|
"$ref": "ConsolidationStrategy",
|
|
"description": "Details on how to consolidate related actions that make up the activity. If\nnot set, then related actions will not be consolidated."
|
|
},
|
|
"filter": {
|
|
"description": "The filtering for items returned from this query request. The format of the\nfilter string is a sequence of expressions, joined by an optional \"AND\",\nwhere each expression is of the form \"field operator value\".\n\nSupported fields:\n\n - \u003ctt\u003etime\u003c/tt\u003e: Uses numerical operators on date values either in\n terms of milliseconds since Jan 1, 1970 or in RFC 3339 format.\n Examples:\n - \u003ctt\u003etime \u003e 1452409200000 AND time \u003c= 1492812924310\u003c/tt\u003e\n - \u003ctt\u003etime \u003e= \"2016-01-10T01:02:03-05:00\"\u003c/tt\u003e\n\n - \u003ctt\u003edetail.action_detail_case\u003c/tt\u003e: Uses the \"has\" operator (:) and\n either a singular value or a list of allowed action types enclosed in\n parentheses.\n Examples:\n - \u003ctt\u003edetail.action_detail_case: RENAME\u003c/tt\u003e\n - \u003ctt\u003edetail.action_detail_case:(CREATE UPLOAD)\u003c/tt\u003e\n - \u003ctt\u003e-detail.action_detail_case:MOVE\u003c/tt\u003e",
|
|
"type": "string"
|
|
},
|
|
"itemName": {
|
|
"description": "Return activities for this Drive item. The format is\n\"items/ITEM_ID\".",
|
|
"type": "string"
|
|
},
|
|
"pageSize": {
|
|
"description": "The requested number of activity to return. If not set, a default value\nwill be used.",
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"pageToken": {
|
|
"description": "The next_page_token value returned from a previous QueryDriveActivity\nrequest, if any.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"QueryDriveActivityResponse": {
|
|
"description": "Response message for querying Drive activity.",
|
|
"id": "QueryDriveActivityResponse",
|
|
"properties": {
|
|
"activities": {
|
|
"description": "List of activity requested.",
|
|
"items": {
|
|
"$ref": "DriveActivity"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"nextPageToken": {
|
|
"description": "Token to retrieve the next page of results, or\nempty if there are no more results in the list.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Rename": {
|
|
"description": "An object was renamed.",
|
|
"id": "Rename",
|
|
"properties": {
|
|
"newTitle": {
|
|
"description": "The new title of the drive object.",
|
|
"type": "string"
|
|
},
|
|
"oldTitle": {
|
|
"description": "The previous title of the drive object.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Restore": {
|
|
"description": "A deleted object was restored.",
|
|
"id": "Restore",
|
|
"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"
|
|
},
|
|
"RestrictionChange": {
|
|
"description": "Information about restriction policy changes to a feature.",
|
|
"id": "RestrictionChange",
|
|
"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\ndomain.",
|
|
"When restricted, this prevents direct sharing of individual items.",
|
|
"When restricted, this prevents actions like copy, download, and print\nthat might result in uncontrolled duplicates of items.",
|
|
"When restricted, this prevents use of Drive File Stream."
|
|
],
|
|
"type": "string"
|
|
},
|
|
"newRestriction": {
|
|
"description": "The restriction in place after the change.",
|
|
"enum": [
|
|
"RESTRICTION_UNSPECIFIED",
|
|
"UNRESTRICTED",
|
|
"FULLY_RESTRICTED"
|
|
],
|
|
"enumDescriptions": [
|
|
"The type of restriction is not available.",
|
|
"The feature is available without restriction.",
|
|
"The use of this feature is fully restricted."
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"SettingsChange": {
|
|
"description": "Information about settings changes.",
|
|
"id": "SettingsChange",
|
|
"properties": {
|
|
"restrictionChanges": {
|
|
"description": "The set of changes made to restrictions.",
|
|
"items": {
|
|
"$ref": "RestrictionChange"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Suggestion": {
|
|
"description": "A suggestion.",
|
|
"id": "Suggestion",
|
|
"properties": {
|
|
"subtype": {
|
|
"description": "The sub-type of this event.",
|
|
"enum": [
|
|
"SUBTYPE_UNSPECIFIED",
|
|
"ADDED",
|
|
"DELETED",
|
|
"REPLY_ADDED",
|
|
"REPLY_DELETED",
|
|
"ACCEPTED",
|
|
"REJECTED",
|
|
"ACCEPT_DELETED",
|
|
"REJECT_DELETED"
|
|
],
|
|
"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."
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"SystemEvent": {
|
|
"description": "Event triggered by system operations instead of end users.",
|
|
"id": "SystemEvent",
|
|
"properties": {
|
|
"type": {
|
|
"description": "The type of the system event that may triggered activity.",
|
|
"enum": [
|
|
"TYPE_UNSPECIFIED",
|
|
"USER_DELETION",
|
|
"TRASH_AUTO_PURGE"
|
|
],
|
|
"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."
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"Target": {
|
|
"description": "Information about the target of activity.",
|
|
"id": "Target",
|
|
"properties": {
|
|
"driveItem": {
|
|
"$ref": "DriveItem",
|
|
"description": "The target is a Drive item."
|
|
},
|
|
"fileComment": {
|
|
"$ref": "FileComment",
|
|
"description": "The target is a comment on a Drive file."
|
|
},
|
|
"teamDrive": {
|
|
"$ref": "TeamDrive",
|
|
"description": "The target is a Team Drive."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"TargetReference": {
|
|
"description": "A lightweight reference to the target of activity.",
|
|
"id": "TargetReference",
|
|
"properties": {
|
|
"driveItem": {
|
|
"$ref": "DriveItemReference",
|
|
"description": "The target is a Drive item."
|
|
},
|
|
"teamDrive": {
|
|
"$ref": "TeamDriveReference",
|
|
"description": "The target is a Team Drive."
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"TeamDrive": {
|
|
"description": "Information about a Team Drive.",
|
|
"id": "TeamDrive",
|
|
"properties": {
|
|
"name": {
|
|
"description": "The resource name of the Team Drive. The format is\n\"teamDrives/TEAM_DRIVE_ID\".",
|
|
"type": "string"
|
|
},
|
|
"root": {
|
|
"$ref": "DriveItem",
|
|
"description": "The root of this Team Drive."
|
|
},
|
|
"title": {
|
|
"description": "The title of the Team Drive.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"TeamDriveReference": {
|
|
"description": "A lightweight reference to a Team Drive.",
|
|
"id": "TeamDriveReference",
|
|
"properties": {
|
|
"name": {
|
|
"description": "The resource name of the Team Drive. The format is\n\"teamDrives/TEAM_DRIVE_ID\".",
|
|
"type": "string"
|
|
},
|
|
"title": {
|
|
"description": "The title of the Team Drive.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"TimeRange": {
|
|
"description": "Information about time ranges.",
|
|
"id": "TimeRange",
|
|
"properties": {
|
|
"endTime": {
|
|
"description": "The end of the time range.",
|
|
"format": "google-datetime",
|
|
"type": "string"
|
|
},
|
|
"startTime": {
|
|
"description": "The start of the time range.",
|
|
"format": "google-datetime",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object"
|
|
},
|
|
"UnknownUser": {
|
|
"description": "A user about whom nothing is currently known.",
|
|
"id": "UnknownUser",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"Upload": {
|
|
"description": "An object was uploaded into Drive.",
|
|
"id": "Upload",
|
|
"properties": {},
|
|
"type": "object"
|
|
},
|
|
"User": {
|
|
"description": "Information about an end user.",
|
|
"id": "User",
|
|
"properties": {
|
|
"deletedUser": {
|
|
"$ref": "DeletedUser",
|
|
"description": "A user whose account has since been deleted."
|
|
},
|
|
"knownUser": {
|
|
"$ref": "KnownUser",
|
|
"description": "A known user."
|
|
},
|
|
"unknownUser": {
|
|
"$ref": "UnknownUser",
|
|
"description": "A user about whom nothing is currently known."
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|
|
},
|
|
"servicePath": "",
|
|
"title": "Drive Activity API",
|
|
"version": "v2",
|
|
"version_module": true
|
|
} |