You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

475 regels
15 KiB

  1. {
  2. "auth": {
  3. "oauth2": {
  4. "scopes": {
  5. "https://www.googleapis.com/auth/activity": {
  6. "description": "View the activity history of your Google apps"
  7. }
  8. }
  9. }
  10. },
  11. "basePath": "/appsactivity/v1/",
  12. "baseUrl": "https://www.googleapis.com/appsactivity/v1/",
  13. "batchPath": "batch/appsactivity/v1",
  14. "description": "Provides a historical view of activity.",
  15. "discoveryVersion": "v1",
  16. "documentationLink": "https://developers.google.com/google-apps/activity/",
  17. "etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/-hyAWGar4795omTTHxjqM49pECE\"",
  18. "icons": {
  19. "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
  20. "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
  21. },
  22. "id": "appsactivity:v1",
  23. "kind": "discovery#restDescription",
  24. "name": "appsactivity",
  25. "ownerDomain": "google.com",
  26. "ownerName": "Google",
  27. "parameters": {
  28. "alt": {
  29. "default": "json",
  30. "description": "Data format for the response.",
  31. "enum": [
  32. "json"
  33. ],
  34. "enumDescriptions": [
  35. "Responses with Content-Type of application/json"
  36. ],
  37. "location": "query",
  38. "type": "string"
  39. },
  40. "fields": {
  41. "description": "Selector specifying which fields to include in a partial response.",
  42. "location": "query",
  43. "type": "string"
  44. },
  45. "key": {
  46. "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.",
  47. "location": "query",
  48. "type": "string"
  49. },
  50. "oauth_token": {
  51. "description": "OAuth 2.0 token for the current user.",
  52. "location": "query",
  53. "type": "string"
  54. },
  55. "prettyPrint": {
  56. "default": "true",
  57. "description": "Returns response with indentations and line breaks.",
  58. "location": "query",
  59. "type": "boolean"
  60. },
  61. "quotaUser": {
  62. "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.",
  63. "location": "query",
  64. "type": "string"
  65. },
  66. "userIp": {
  67. "description": "Deprecated. Please use quotaUser instead.",
  68. "location": "query",
  69. "type": "string"
  70. }
  71. },
  72. "protocol": "rest",
  73. "resources": {
  74. "activities": {
  75. "methods": {
  76. "list": {
  77. "description": "Returns a list of activities visible to the current logged in user. Visible activities are determined by the visiblity settings of the object that was acted on, e.g. Drive files a user can see. An activity is a record of past events. Multiple events may be merged if they are similar. A request is scoped to activities from a given Google service using the source parameter.",
  78. "httpMethod": "GET",
  79. "id": "appsactivity.activities.list",
  80. "parameters": {
  81. "drive.ancestorId": {
  82. "description": "Identifies the Drive folder containing the items for which to return activities.",
  83. "location": "query",
  84. "type": "string"
  85. },
  86. "drive.fileId": {
  87. "description": "Identifies the Drive item to return activities for.",
  88. "location": "query",
  89. "type": "string"
  90. },
  91. "groupingStrategy": {
  92. "default": "driveUi",
  93. "description": "Indicates the strategy to use when grouping singleEvents items in the associated combinedEvent object.",
  94. "enum": [
  95. "driveUi",
  96. "none"
  97. ],
  98. "enumDescriptions": [
  99. "",
  100. ""
  101. ],
  102. "location": "query",
  103. "type": "string"
  104. },
  105. "pageSize": {
  106. "default": "50",
  107. "description": "The maximum number of events to return on a page. The response includes a continuation token if there are more events.",
  108. "format": "int32",
  109. "location": "query",
  110. "type": "integer"
  111. },
  112. "pageToken": {
  113. "description": "A token to retrieve a specific page of results.",
  114. "location": "query",
  115. "type": "string"
  116. },
  117. "source": {
  118. "description": "The Google service from which to return activities. Possible values of source are: \n- drive.google.com",
  119. "location": "query",
  120. "type": "string"
  121. },
  122. "userId": {
  123. "default": "me",
  124. "description": "Indicates the user to return activity for. Use the special value me to indicate the currently authenticated user.",
  125. "location": "query",
  126. "type": "string"
  127. }
  128. },
  129. "path": "activities",
  130. "response": {
  131. "$ref": "ListActivitiesResponse"
  132. },
  133. "scopes": [
  134. "https://www.googleapis.com/auth/activity"
  135. ]
  136. }
  137. }
  138. }
  139. },
  140. "revision": "20180427",
  141. "rootUrl": "https://www.googleapis.com/",
  142. "schemas": {
  143. "Activity": {
  144. "description": "An Activity resource is a combined view of multiple events. An activity has a list of individual events and a combined view of the common fields among all events.",
  145. "id": "Activity",
  146. "properties": {
  147. "combinedEvent": {
  148. "$ref": "Event",
  149. "description": "The fields common to all of the singleEvents that make up the Activity."
  150. },
  151. "singleEvents": {
  152. "description": "A list of all the Events that make up the Activity.",
  153. "items": {
  154. "$ref": "Event"
  155. },
  156. "type": "array"
  157. }
  158. },
  159. "type": "object"
  160. },
  161. "Event": {
  162. "description": "Represents the changes associated with an action taken by a user.",
  163. "id": "Event",
  164. "properties": {
  165. "additionalEventTypes": {
  166. "description": "Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event.",
  167. "items": {
  168. "enum": [
  169. "comment",
  170. "create",
  171. "edit",
  172. "emptyTrash",
  173. "move",
  174. "permissionChange",
  175. "rename",
  176. "trash",
  177. "unknown",
  178. "untrash",
  179. "upload"
  180. ],
  181. "enumDescriptions": [
  182. "",
  183. "",
  184. "",
  185. "",
  186. "",
  187. "",
  188. "",
  189. "",
  190. "",
  191. "",
  192. ""
  193. ],
  194. "type": "string"
  195. },
  196. "type": "array"
  197. },
  198. "eventTimeMillis": {
  199. "description": "The time at which the event occurred formatted as Unix time in milliseconds.",
  200. "format": "uint64",
  201. "type": "string"
  202. },
  203. "fromUserDeletion": {
  204. "description": "Whether this event is caused by a user being deleted.",
  205. "type": "boolean"
  206. },
  207. "move": {
  208. "$ref": "Move",
  209. "description": "Extra information for move type events, such as changes in an object's parents."
  210. },
  211. "permissionChanges": {
  212. "description": "Extra information for permissionChange type events, such as the user or group the new permission applies to.",
  213. "items": {
  214. "$ref": "PermissionChange"
  215. },
  216. "type": "array"
  217. },
  218. "primaryEventType": {
  219. "description": "The main type of event that occurred.",
  220. "enum": [
  221. "comment",
  222. "create",
  223. "edit",
  224. "emptyTrash",
  225. "move",
  226. "permissionChange",
  227. "rename",
  228. "trash",
  229. "unknown",
  230. "untrash",
  231. "upload"
  232. ],
  233. "enumDescriptions": [
  234. "",
  235. "",
  236. "",
  237. "",
  238. "",
  239. "",
  240. "",
  241. "",
  242. "",
  243. "",
  244. ""
  245. ],
  246. "type": "string"
  247. },
  248. "rename": {
  249. "$ref": "Rename",
  250. "description": "Extra information for rename type events, such as the old and new names."
  251. },
  252. "target": {
  253. "$ref": "Target",
  254. "description": "Information specific to the Target object modified by the event."
  255. },
  256. "user": {
  257. "$ref": "User",
  258. "description": "Represents the user responsible for the event."
  259. }
  260. },
  261. "type": "object"
  262. },
  263. "ListActivitiesResponse": {
  264. "description": "The response from the list request. Contains a list of activities and a token to retrieve the next page of results.",
  265. "id": "ListActivitiesResponse",
  266. "properties": {
  267. "activities": {
  268. "description": "List of activities.",
  269. "items": {
  270. "$ref": "Activity"
  271. },
  272. "type": "array"
  273. },
  274. "nextPageToken": {
  275. "description": "Token for the next page of results.",
  276. "type": "string"
  277. }
  278. },
  279. "type": "object"
  280. },
  281. "Move": {
  282. "description": "Contains information about changes in an object's parents as a result of a move type event.",
  283. "id": "Move",
  284. "properties": {
  285. "addedParents": {
  286. "description": "The added parent(s).",
  287. "items": {
  288. "$ref": "Parent"
  289. },
  290. "type": "array"
  291. },
  292. "removedParents": {
  293. "description": "The removed parent(s).",
  294. "items": {
  295. "$ref": "Parent"
  296. },
  297. "type": "array"
  298. }
  299. },
  300. "type": "object"
  301. },
  302. "Parent": {
  303. "description": "Contains information about a parent object. For example, a folder in Drive is a parent for all files within it.",
  304. "id": "Parent",
  305. "properties": {
  306. "id": {
  307. "description": "The parent's ID.",
  308. "type": "string"
  309. },
  310. "isRoot": {
  311. "description": "Whether this is the root folder.",
  312. "type": "boolean"
  313. },
  314. "title": {
  315. "description": "The parent's title.",
  316. "type": "string"
  317. }
  318. },
  319. "type": "object"
  320. },
  321. "Permission": {
  322. "description": "Contains information about the permissions and type of access allowed with regards to a Google Drive object. This is a subset of the fields contained in a corresponding Drive Permissions object.",
  323. "id": "Permission",
  324. "properties": {
  325. "name": {
  326. "description": "The name of the user or group the permission applies to.",
  327. "type": "string"
  328. },
  329. "permissionId": {
  330. "description": "The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource.",
  331. "type": "string"
  332. },
  333. "role": {
  334. "description": "Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.",
  335. "enum": [
  336. "commenter",
  337. "owner",
  338. "publishedReader",
  339. "reader",
  340. "writer"
  341. ],
  342. "enumDescriptions": [
  343. "",
  344. "",
  345. "",
  346. "",
  347. ""
  348. ],
  349. "type": "string"
  350. },
  351. "type": {
  352. "description": "Indicates how widely permissions are granted.",
  353. "enum": [
  354. "anyone",
  355. "domain",
  356. "group",
  357. "user"
  358. ],
  359. "enumDescriptions": [
  360. "",
  361. "",
  362. "",
  363. ""
  364. ],
  365. "type": "string"
  366. },
  367. "user": {
  368. "$ref": "User",
  369. "description": "The user's information if the type is USER."
  370. },
  371. "withLink": {
  372. "description": "Whether the permission requires a link to the file.",
  373. "type": "boolean"
  374. }
  375. },
  376. "type": "object"
  377. },
  378. "PermissionChange": {
  379. "description": "Contains information about a Drive object's permissions that changed as a result of a permissionChange type event.",
  380. "id": "PermissionChange",
  381. "properties": {
  382. "addedPermissions": {
  383. "description": "Lists all Permission objects added.",
  384. "items": {
  385. "$ref": "Permission"
  386. },
  387. "type": "array"
  388. },
  389. "removedPermissions": {
  390. "description": "Lists all Permission objects removed.",
  391. "items": {
  392. "$ref": "Permission"
  393. },
  394. "type": "array"
  395. }
  396. },
  397. "type": "object"
  398. },
  399. "Photo": {
  400. "description": "Photo information for a user.",
  401. "id": "Photo",
  402. "properties": {
  403. "url": {
  404. "description": "The URL of the photo.",
  405. "type": "string"
  406. }
  407. },
  408. "type": "object"
  409. },
  410. "Rename": {
  411. "description": "Contains information about a renametype event.",
  412. "id": "Rename",
  413. "properties": {
  414. "newTitle": {
  415. "description": "The new title.",
  416. "type": "string"
  417. },
  418. "oldTitle": {
  419. "description": "The old title.",
  420. "type": "string"
  421. }
  422. },
  423. "type": "object"
  424. },
  425. "Target": {
  426. "description": "Information about the object modified by the event.",
  427. "id": "Target",
  428. "properties": {
  429. "id": {
  430. "description": "The ID of the target. For example, in Google Drive, this is the file or folder ID.",
  431. "type": "string"
  432. },
  433. "mimeType": {
  434. "description": "The MIME type of the target.",
  435. "type": "string"
  436. },
  437. "name": {
  438. "description": "The name of the target. For example, in Google Drive, this is the title of the file.",
  439. "type": "string"
  440. }
  441. },
  442. "type": "object"
  443. },
  444. "User": {
  445. "description": "A representation of a user.",
  446. "id": "User",
  447. "properties": {
  448. "isDeleted": {
  449. "description": "A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted.",
  450. "type": "boolean"
  451. },
  452. "isMe": {
  453. "description": "Whether the user is the authenticated user.",
  454. "type": "boolean"
  455. },
  456. "name": {
  457. "description": "The displayable name of the user.",
  458. "type": "string"
  459. },
  460. "permissionId": {
  461. "description": "The permission ID associated with this user. Equivalent to the Drive API's permission ID for this user, returned as part of the Drive Permissions resource.",
  462. "type": "string"
  463. },
  464. "photo": {
  465. "$ref": "Photo",
  466. "description": "The profile photo of the user. Not present if the user has no profile photo."
  467. }
  468. },
  469. "type": "object"
  470. }
  471. },
  472. "servicePath": "appsactivity/v1/",
  473. "title": "G Suite Activity API",
  474. "version": "v1"
  475. }