Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

474 lignes
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": "\"J3WqvAcMk4eQjJXvfSI4Yr8VouA/adguqXy9JBlA2vwrlXZEhWfVyo0\"",
  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. "rootUrl": "https://www.googleapis.com/",
  141. "schemas": {
  142. "Activity": {
  143. "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.",
  144. "id": "Activity",
  145. "properties": {
  146. "combinedEvent": {
  147. "$ref": "Event",
  148. "description": "The fields common to all of the singleEvents that make up the Activity."
  149. },
  150. "singleEvents": {
  151. "description": "A list of all the Events that make up the Activity.",
  152. "items": {
  153. "$ref": "Event"
  154. },
  155. "type": "array"
  156. }
  157. },
  158. "type": "object"
  159. },
  160. "Event": {
  161. "description": "Represents the changes associated with an action taken by a user.",
  162. "id": "Event",
  163. "properties": {
  164. "additionalEventTypes": {
  165. "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.",
  166. "items": {
  167. "enum": [
  168. "comment",
  169. "create",
  170. "edit",
  171. "emptyTrash",
  172. "move",
  173. "permissionChange",
  174. "rename",
  175. "trash",
  176. "unknown",
  177. "untrash",
  178. "upload"
  179. ],
  180. "enumDescriptions": [
  181. "",
  182. "",
  183. "",
  184. "",
  185. "",
  186. "",
  187. "",
  188. "",
  189. "",
  190. "",
  191. ""
  192. ],
  193. "type": "string"
  194. },
  195. "type": "array"
  196. },
  197. "eventTimeMillis": {
  198. "description": "The time at which the event occurred formatted as Unix time in milliseconds.",
  199. "format": "uint64",
  200. "type": "string"
  201. },
  202. "fromUserDeletion": {
  203. "description": "Whether this event is caused by a user being deleted.",
  204. "type": "boolean"
  205. },
  206. "move": {
  207. "$ref": "Move",
  208. "description": "Extra information for move type events, such as changes in an object's parents."
  209. },
  210. "permissionChanges": {
  211. "description": "Extra information for permissionChange type events, such as the user or group the new permission applies to.",
  212. "items": {
  213. "$ref": "PermissionChange"
  214. },
  215. "type": "array"
  216. },
  217. "primaryEventType": {
  218. "description": "The main type of event that occurred.",
  219. "enum": [
  220. "comment",
  221. "create",
  222. "edit",
  223. "emptyTrash",
  224. "move",
  225. "permissionChange",
  226. "rename",
  227. "trash",
  228. "unknown",
  229. "untrash",
  230. "upload"
  231. ],
  232. "enumDescriptions": [
  233. "",
  234. "",
  235. "",
  236. "",
  237. "",
  238. "",
  239. "",
  240. "",
  241. "",
  242. "",
  243. ""
  244. ],
  245. "type": "string"
  246. },
  247. "rename": {
  248. "$ref": "Rename",
  249. "description": "Extra information for rename type events, such as the old and new names."
  250. },
  251. "target": {
  252. "$ref": "Target",
  253. "description": "Information specific to the Target object modified by the event."
  254. },
  255. "user": {
  256. "$ref": "User",
  257. "description": "Represents the user responsible for the event."
  258. }
  259. },
  260. "type": "object"
  261. },
  262. "ListActivitiesResponse": {
  263. "description": "The response from the list request. Contains a list of activities and a token to retrieve the next page of results.",
  264. "id": "ListActivitiesResponse",
  265. "properties": {
  266. "activities": {
  267. "description": "List of activities.",
  268. "items": {
  269. "$ref": "Activity"
  270. },
  271. "type": "array"
  272. },
  273. "nextPageToken": {
  274. "description": "Token for the next page of results.",
  275. "type": "string"
  276. }
  277. },
  278. "type": "object"
  279. },
  280. "Move": {
  281. "description": "Contains information about changes in an object's parents as a result of a move type event.",
  282. "id": "Move",
  283. "properties": {
  284. "addedParents": {
  285. "description": "The added parent(s).",
  286. "items": {
  287. "$ref": "Parent"
  288. },
  289. "type": "array"
  290. },
  291. "removedParents": {
  292. "description": "The removed parent(s).",
  293. "items": {
  294. "$ref": "Parent"
  295. },
  296. "type": "array"
  297. }
  298. },
  299. "type": "object"
  300. },
  301. "Parent": {
  302. "description": "Contains information about a parent object. For example, a folder in Drive is a parent for all files within it.",
  303. "id": "Parent",
  304. "properties": {
  305. "id": {
  306. "description": "The parent's ID.",
  307. "type": "string"
  308. },
  309. "isRoot": {
  310. "description": "Whether this is the root folder.",
  311. "type": "boolean"
  312. },
  313. "title": {
  314. "description": "The parent's title.",
  315. "type": "string"
  316. }
  317. },
  318. "type": "object"
  319. },
  320. "Permission": {
  321. "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.",
  322. "id": "Permission",
  323. "properties": {
  324. "name": {
  325. "description": "The name of the user or group the permission applies to.",
  326. "type": "string"
  327. },
  328. "permissionId": {
  329. "description": "The ID for this permission. Corresponds to the Drive API's permission ID returned as part of the Drive Permissions resource.",
  330. "type": "string"
  331. },
  332. "role": {
  333. "description": "Indicates the Google Drive permissions role. The role determines a user's ability to read, write, or comment on the file.",
  334. "enum": [
  335. "commenter",
  336. "owner",
  337. "publishedReader",
  338. "reader",
  339. "writer"
  340. ],
  341. "enumDescriptions": [
  342. "",
  343. "",
  344. "",
  345. "",
  346. ""
  347. ],
  348. "type": "string"
  349. },
  350. "type": {
  351. "description": "Indicates how widely permissions are granted.",
  352. "enum": [
  353. "anyone",
  354. "domain",
  355. "group",
  356. "user"
  357. ],
  358. "enumDescriptions": [
  359. "",
  360. "",
  361. "",
  362. ""
  363. ],
  364. "type": "string"
  365. },
  366. "user": {
  367. "$ref": "User",
  368. "description": "The user's information if the type is USER."
  369. },
  370. "withLink": {
  371. "description": "Whether the permission requires a link to the file.",
  372. "type": "boolean"
  373. }
  374. },
  375. "type": "object"
  376. },
  377. "PermissionChange": {
  378. "description": "Contains information about a Drive object's permissions that changed as a result of a permissionChange type event.",
  379. "id": "PermissionChange",
  380. "properties": {
  381. "addedPermissions": {
  382. "description": "Lists all Permission objects added.",
  383. "items": {
  384. "$ref": "Permission"
  385. },
  386. "type": "array"
  387. },
  388. "removedPermissions": {
  389. "description": "Lists all Permission objects removed.",
  390. "items": {
  391. "$ref": "Permission"
  392. },
  393. "type": "array"
  394. }
  395. },
  396. "type": "object"
  397. },
  398. "Photo": {
  399. "description": "Photo information for a user.",
  400. "id": "Photo",
  401. "properties": {
  402. "url": {
  403. "description": "The URL of the photo.",
  404. "type": "string"
  405. }
  406. },
  407. "type": "object"
  408. },
  409. "Rename": {
  410. "description": "Contains information about a renametype event.",
  411. "id": "Rename",
  412. "properties": {
  413. "newTitle": {
  414. "description": "The new title.",
  415. "type": "string"
  416. },
  417. "oldTitle": {
  418. "description": "The old title.",
  419. "type": "string"
  420. }
  421. },
  422. "type": "object"
  423. },
  424. "Target": {
  425. "description": "Information about the object modified by the event.",
  426. "id": "Target",
  427. "properties": {
  428. "id": {
  429. "description": "The ID of the target. For example, in Google Drive, this is the file or folder ID.",
  430. "type": "string"
  431. },
  432. "mimeType": {
  433. "description": "The MIME type of the target.",
  434. "type": "string"
  435. },
  436. "name": {
  437. "description": "The name of the target. For example, in Google Drive, this is the title of the file.",
  438. "type": "string"
  439. }
  440. },
  441. "type": "object"
  442. },
  443. "User": {
  444. "description": "A representation of a user.",
  445. "id": "User",
  446. "properties": {
  447. "isDeleted": {
  448. "description": "A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted.",
  449. "type": "boolean"
  450. },
  451. "isMe": {
  452. "description": "Whether the user is the authenticated user.",
  453. "type": "boolean"
  454. },
  455. "name": {
  456. "description": "The displayable name of the user.",
  457. "type": "string"
  458. },
  459. "permissionId": {
  460. "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.",
  461. "type": "string"
  462. },
  463. "photo": {
  464. "$ref": "Photo",
  465. "description": "The profile photo of the user. Not present if the user has no profile photo."
  466. }
  467. },
  468. "type": "object"
  469. }
  470. },
  471. "servicePath": "appsactivity/v1/",
  472. "title": "Drive Activity API",
  473. "version": "v1"
  474. }