Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: discovery/googleapis/admin__reports_v1.json

Issue 559053002: Generate 0.1.0 version of googleapis/googleapis_beta (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 {
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/admin.reports.audit.readonly": {
6 "description": "View audit reports of Google Apps for your d omain"
7 },
8 "https://www.googleapis.com/auth/admin.reports.usage.readonly": {
9 "description": "View usage reports of Google Apps for your d omain"
10 }
11 }
12 }
13 },
14 "basePath": "/admin/reports/v1/",
15 "baseUrl": "https://www.googleapis.com/admin/reports/v1/",
16 "batchPath": "batch",
17 "canonicalName": "reports",
18 "description": "Allows the administrators of Google Apps customers to fetch reports about the usage, collaboration, security and risk for their users.",
19 "discoveryVersion": "v1",
20 "documentationLink": "https://developers.google.com/admin-sdk/reports/",
21 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/1CnyuAQi1v-9K692tzB6A2cyPVk\"",
22 "icons": {
23 "x16": "http://www.google.com/images/icons/product/search-16.gif",
24 "x32": "http://www.google.com/images/icons/product/search-32.gif"
25 },
26 "id": "admin:reports_v1",
27 "kind": "discovery#restDescription",
28 "name": "admin",
29 "ownerDomain": "google.com",
30 "ownerName": "Google",
31 "packagePath": "admin",
32 "parameters": {
33 "alt": {
34 "default": "json",
35 "description": "Data format for the response.",
36 "enum": [
37 "json"
38 ],
39 "enumDescriptions": [
40 "Responses with Content-Type of application/json"
41 ],
42 "location": "query",
43 "type": "string"
44 },
45 "fields": {
46 "description": "Selector specifying which fields to include in a par tial response.",
47 "location": "query",
48 "type": "string"
49 },
50 "key": {
51 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
52 "location": "query",
53 "type": "string"
54 },
55 "oauth_token": {
56 "description": "OAuth 2.0 token for the current user.",
57 "location": "query",
58 "type": "string"
59 },
60 "prettyPrint": {
61 "default": "true",
62 "description": "Returns response with indentations and line breaks." ,
63 "location": "query",
64 "type": "boolean"
65 },
66 "quotaUser": {
67 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters. Overrides userIp if both are provided.",
68 "location": "query",
69 "type": "string"
70 },
71 "userIp": {
72 "description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
73 "location": "query",
74 "type": "string"
75 }
76 },
77 "protocol": "rest",
78 "resources": {
79 "activities": {
80 "methods": {
81 "list": {
82 "description": "Retrieves a list of activities for a specifi c customer and application.",
83 "httpMethod": "GET",
84 "id": "reports.activities.list",
85 "parameterOrder": [
86 "userKey",
87 "applicationName"
88 ],
89 "parameters": {
90 "actorIpAddress": {
91 "description": "IP Address of host where the event w as performed. Supports both IPv4 and IPv6 addresses.",
92 "location": "query",
93 "type": "string"
94 },
95 "applicationName": {
96 "description": "Application name for which the event s are to be retrieved.",
97 "location": "path",
98 "pattern": "(admin)|(docs)|(drive)|(login)",
99 "required": true,
100 "type": "string"
101 },
102 "customerId": {
103 "description": "Represents the customer for which th e data is to be fetched.",
104 "location": "query",
105 "pattern": "C.+",
106 "type": "string"
107 },
108 "endTime": {
109 "description": "Return events which occured at or be fore this time.",
110 "location": "query",
111 "pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d ):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))",
112 "type": "string"
113 },
114 "eventName": {
115 "description": "Name of the event being queried.",
116 "location": "query",
117 "type": "string"
118 },
119 "filters": {
120 "description": "Event parameters in the form [parame ter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 va lue],...",
121 "location": "query",
122 "pattern": "(.+[<,<=,==,>=,>,<>].+,)*(.+[<,<=,==,>=, >,<>].+)",
123 "type": "string"
124 },
125 "maxResults": {
126 "description": "Number of activity records to be sho wn in each page.",
127 "format": "int32",
128 "location": "query",
129 "maximum": "1000",
130 "minimum": "1",
131 "type": "integer"
132 },
133 "pageToken": {
134 "description": "Token to specify next page.",
135 "location": "query",
136 "type": "string"
137 },
138 "startTime": {
139 "description": "Return events which occured at or af ter this time.",
140 "location": "query",
141 "pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d ):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))",
142 "type": "string"
143 },
144 "userKey": {
145 "description": "Represents the profile id or the use r email for which the data should be filtered. When 'all' is specified as the us erKey, it returns usageReports for all users.",
146 "location": "path",
147 "required": true,
148 "type": "string"
149 }
150 },
151 "path": "activity/users/{userKey}/applications/{applicationN ame}",
152 "response": {
153 "$ref": "Activities"
154 },
155 "scopes": [
156 "https://www.googleapis.com/auth/admin.reports.audit.rea donly"
157 ],
158 "supportsSubscription": true
159 },
160 "watch": {
161 "description": "Push changes to activities",
162 "httpMethod": "POST",
163 "id": "reports.activities.watch",
164 "parameterOrder": [
165 "userKey",
166 "applicationName"
167 ],
168 "parameters": {
169 "actorIpAddress": {
170 "description": "IP Address of host where the event w as performed. Supports both IPv4 and IPv6 addresses.",
171 "location": "query",
172 "type": "string"
173 },
174 "applicationName": {
175 "description": "Application name for which the event s are to be retrieved.",
176 "location": "path",
177 "pattern": "(admin)|(docs)|(drive)|(login)",
178 "required": true,
179 "type": "string"
180 },
181 "customerId": {
182 "description": "Represents the customer for which th e data is to be fetched.",
183 "location": "query",
184 "pattern": "C.+",
185 "type": "string"
186 },
187 "endTime": {
188 "description": "Return events which occured at or be fore this time.",
189 "location": "query",
190 "pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d ):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))",
191 "type": "string"
192 },
193 "eventName": {
194 "description": "Name of the event being queried.",
195 "location": "query",
196 "type": "string"
197 },
198 "filters": {
199 "description": "Event parameters in the form [parame ter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 va lue],...",
200 "location": "query",
201 "pattern": "(.+[<,<=,==,>=,>,<>].+,)*(.+[<,<=,==,>=, >,<>].+)",
202 "type": "string"
203 },
204 "maxResults": {
205 "description": "Number of activity records to be sho wn in each page.",
206 "format": "int32",
207 "location": "query",
208 "maximum": "1000",
209 "minimum": "1",
210 "type": "integer"
211 },
212 "pageToken": {
213 "description": "Token to specify next page.",
214 "location": "query",
215 "type": "string"
216 },
217 "startTime": {
218 "description": "Return events which occured at or af ter this time.",
219 "location": "query",
220 "pattern": "(\\d\\d\\d\\d)-(\\d\\d)-(\\d\\d)T(\\d\\d ):(\\d\\d):(\\d\\d)(?:\\.(\\d+))?(?:(Z)|([-+])(\\d\\d):(\\d\\d))",
221 "type": "string"
222 },
223 "userKey": {
224 "description": "Represents the profile id or the use r email for which the data should be filtered. When 'all' is specified as the us erKey, it returns usageReports for all users.",
225 "location": "path",
226 "required": true,
227 "type": "string"
228 }
229 },
230 "path": "activity/users/{userKey}/applications/{applicationN ame}/watch",
231 "request": {
232 "$ref": "Channel",
233 "parameterName": "resource"
234 },
235 "response": {
236 "$ref": "Channel"
237 },
238 "scopes": [
239 "https://www.googleapis.com/auth/admin.reports.audit.rea donly"
240 ],
241 "supportsSubscription": true
242 }
243 }
244 },
245 "channels": {
246 "methods": {
247 "stop": {
248 "description": "Stop watching resources through this channel ",
249 "httpMethod": "POST",
250 "id": "admin.channels.stop",
251 "path": "/admin/reports_v1/channels/stop",
252 "request": {
253 "$ref": "Channel",
254 "parameterName": "resource"
255 },
256 "scopes": [
257 "https://www.googleapis.com/auth/admin.reports.audit.rea donly"
258 ]
259 }
260 }
261 },
262 "customerUsageReports": {
263 "methods": {
264 "get": {
265 "description": "Retrieves a report which is a collection of properties / statistics for a specific customer.",
266 "httpMethod": "GET",
267 "id": "reports.customerUsageReports.get",
268 "parameterOrder": [
269 "date"
270 ],
271 "parameters": {
272 "customerId": {
273 "description": "Represents the customer for which th e data is to be fetched.",
274 "location": "query",
275 "pattern": "C.+",
276 "type": "string"
277 },
278 "date": {
279 "description": "Represents the date in yyyy-mm-dd fo rmat for which the data is to be fetched.",
280 "location": "path",
281 "pattern": "(\\d){4}-(\\d){2}-(\\d){2}",
282 "required": true,
283 "type": "string"
284 },
285 "pageToken": {
286 "description": "Token to specify next page.",
287 "location": "query",
288 "type": "string"
289 },
290 "parameters": {
291 "description": "Represents the application name, par ameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name 2.",
292 "location": "query",
293 "pattern": "(((accounts)|(gmail)|(calendar)|(docs)|( gplus)):.+,)*(((accounts)|(gmail)|(calendar)|(docs)|(gplus)):.+)",
294 "type": "string"
295 }
296 },
297 "path": "usage/dates/{date}",
298 "response": {
299 "$ref": "UsageReports"
300 },
301 "scopes": [
302 "https://www.googleapis.com/auth/admin.reports.usage.rea donly"
303 ]
304 }
305 }
306 },
307 "userUsageReport": {
308 "methods": {
309 "get": {
310 "description": "Retrieves a report which is a collection of properties / statistics for a set of users.",
311 "httpMethod": "GET",
312 "id": "reports.userUsageReport.get",
313 "parameterOrder": [
314 "userKey",
315 "date"
316 ],
317 "parameters": {
318 "customerId": {
319 "description": "Represents the customer for which th e data is to be fetched.",
320 "location": "query",
321 "pattern": "C.+",
322 "type": "string"
323 },
324 "date": {
325 "description": "Represents the date in yyyy-mm-dd fo rmat for which the data is to be fetched.",
326 "location": "path",
327 "pattern": "(\\d){4}-(\\d){2}-(\\d){2}",
328 "required": true,
329 "type": "string"
330 },
331 "filters": {
332 "description": "Represents the set of filters includ ing parameter operator value.",
333 "location": "query",
334 "pattern": "(((accounts)|(gmail)|(calendar)|(docs)|( gplus)):.+[<,<=,==,>=,>,!=].+,)*(((accounts)|(gmail)|(calendar)|(docs)|(gplus)): .+[<,<=,==,>=,>,!=].+)",
335 "type": "string"
336 },
337 "maxResults": {
338 "description": "Maximum number of results to return. Maximum allowed is 1000",
339 "format": "uint32",
340 "location": "query",
341 "maximum": "1000",
342 "type": "integer"
343 },
344 "pageToken": {
345 "description": "Token to specify next page.",
346 "location": "query",
347 "type": "string"
348 },
349 "parameters": {
350 "description": "Represents the application name, par ameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name 2.",
351 "location": "query",
352 "pattern": "(((accounts)|(gmail)|(calendar)|(docs)|( gplus)):.+,)*(((accounts)|(gmail)|(calendar)|(docs)|(gplus)):.+)",
353 "type": "string"
354 },
355 "userKey": {
356 "description": "Represents the profile id or the use r email for which the data should be filtered.",
357 "location": "path",
358 "required": true,
359 "type": "string"
360 }
361 },
362 "path": "usage/users/{userKey}/dates/{date}",
363 "response": {
364 "$ref": "UsageReports"
365 },
366 "scopes": [
367 "https://www.googleapis.com/auth/admin.reports.usage.rea donly"
368 ]
369 }
370 }
371 }
372 },
373 "revision": "20140725",
374 "rootUrl": "https://www.googleapis.com/",
375 "schemas": {
376 "Activities": {
377 "description": "JSON template for a collection of activites.",
378 "id": "Activities",
379 "properties": {
380 "etag": {
381 "description": "ETag of the resource.",
382 "type": "string"
383 },
384 "items": {
385 "description": "Each record in read response.",
386 "items": {
387 "$ref": "Activity"
388 },
389 "type": "array"
390 },
391 "kind": {
392 "default": "admin#reports#activities",
393 "description": "Kind of list response this is.",
394 "type": "string"
395 },
396 "nextPageToken": {
397 "description": "Token for retrieving the next page",
398 "type": "string"
399 }
400 },
401 "type": "object"
402 },
403 "Activity": {
404 "description": "JSON template for the activity resource.",
405 "id": "Activity",
406 "properties": {
407 "actor": {
408 "description": "User doing the action.",
409 "properties": {
410 "callerType": {
411 "description": "User or OAuth 2LO request.",
412 "type": "string"
413 },
414 "email": {
415 "description": "Email address of the user.",
416 "type": "string"
417 },
418 "key": {
419 "description": "For OAuth 2LO API requests, consumer _key of the requestor.",
420 "type": "string"
421 },
422 "profileId": {
423 "description": "Obfuscated user id of the user.",
424 "type": "string"
425 }
426 },
427 "type": "object"
428 },
429 "etag": {
430 "description": "ETag of the entry.",
431 "type": "string"
432 },
433 "events": {
434 "description": "Activity events.",
435 "items": {
436 "properties": {
437 "name": {
438 "description": "Name of event.",
439 "type": "string"
440 },
441 "parameters": {
442 "description": "Parameter value pairs for variou s applications.",
443 "items": {
444 "properties": {
445 "boolValue": {
446 "description": "Boolean value of the parameter.",
447 "type": "boolean"
448 },
449 "intValue": {
450 "description": "Integral value of th e parameter.",
451 "format": "int64",
452 "type": "string"
453 },
454 "name": {
455 "description": "The name of the para meter.",
456 "type": "string"
457 },
458 "value": {
459 "description": "String value of the parameter.",
460 "type": "string"
461 }
462 },
463 "type": "object"
464 },
465 "type": "array"
466 },
467 "type": {
468 "description": "Type of event.",
469 "type": "string"
470 }
471 },
472 "type": "object"
473 },
474 "type": "array"
475 },
476 "id": {
477 "description": "Unique identifier for each activity record." ,
478 "properties": {
479 "applicationName": {
480 "description": "Application name to which the event belongs.",
481 "type": "string"
482 },
483 "customerId": {
484 "description": "Obfuscated customer ID of the source customer.",
485 "type": "string"
486 },
487 "time": {
488 "description": "Time of occurrence of the activity." ,
489 "format": "date-time",
490 "type": "string"
491 },
492 "uniqueQualifier": {
493 "description": "Unique qualifier if multiple events have the same time.",
494 "format": "int64",
495 "type": "string"
496 }
497 },
498 "type": "object"
499 },
500 "ipAddress": {
501 "description": "IP Address of the user doing the action.",
502 "type": "string"
503 },
504 "kind": {
505 "default": "admin#reports#activity",
506 "description": "Kind of resource this is.",
507 "type": "string"
508 },
509 "ownerDomain": {
510 "description": "Domain of source customer.",
511 "type": "string"
512 }
513 },
514 "type": "object"
515 },
516 "Channel": {
517 "description": "An notification channel used to watch for resource c hanges.",
518 "id": "Channel",
519 "properties": {
520 "address": {
521 "description": "The address where notifications are delivere d for this channel.",
522 "type": "string"
523 },
524 "expiration": {
525 "description": "Date and time of notification channel expira tion, expressed as a Unix timestamp, in milliseconds. Optional.",
526 "format": "int64",
527 "type": "string"
528 },
529 "id": {
530 "description": "A UUID or similar unique string that identif ies this channel.",
531 "type": "string"
532 },
533 "kind": {
534 "default": "api#channel",
535 "description": "Identifies this as a notification channel us ed to watch for changes to a resource. Value: the fixed string \"api#channel\"." ,
536 "type": "string"
537 },
538 "params": {
539 "additionalProperties": {
540 "description": "Declares a new parameter by name.",
541 "type": "string"
542 },
543 "description": "Additional parameters controlling delivery c hannel behavior. Optional.",
544 "type": "object"
545 },
546 "payload": {
547 "description": "A Boolean value to indicate whether payload is wanted. Optional.",
548 "type": "boolean"
549 },
550 "resourceId": {
551 "description": "An opaque ID that identifies the resource be ing watched on this channel. Stable across different API versions.",
552 "type": "string"
553 },
554 "resourceUri": {
555 "description": "A version-specific identifier for the watche d resource.",
556 "type": "string"
557 },
558 "token": {
559 "description": "An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.",
560 "type": "string"
561 },
562 "type": {
563 "description": "The type of delivery mechanism used for this channel.",
564 "type": "string"
565 }
566 },
567 "type": "object"
568 },
569 "UsageReport": {
570 "description": "JSON template for a usage report.",
571 "id": "UsageReport",
572 "properties": {
573 "date": {
574 "description": "The date to which the record belongs.",
575 "readOnly": true,
576 "type": "string"
577 },
578 "entity": {
579 "description": "Information about the type of the item.",
580 "properties": {
581 "customerId": {
582 "description": "Obfuscated customer id for the recor d.",
583 "readOnly": true,
584 "type": "string"
585 },
586 "profileId": {
587 "description": "Obfuscated user id for the record.",
588 "readOnly": true,
589 "type": "string"
590 },
591 "type": {
592 "description": "The type of item, can be a customer or user.",
593 "readOnly": true,
594 "type": "string"
595 },
596 "userEmail": {
597 "description": "user's email.",
598 "readOnly": true,
599 "type": "string"
600 }
601 },
602 "readOnly": true,
603 "type": "object"
604 },
605 "etag": {
606 "description": "ETag of the resource.",
607 "type": "string"
608 },
609 "kind": {
610 "default": "admin#reports#usageReport",
611 "description": "The kind of object.",
612 "type": "string"
613 },
614 "parameters": {
615 "description": "Parameter value pairs for various applicatio ns.",
616 "items": {
617 "properties": {
618 "boolValue": {
619 "description": "Boolean value of the parameter." ,
620 "readOnly": true,
621 "type": "boolean"
622 },
623 "datetimeValue": {
624 "description": "RFC 3339 formatted value of the parameter.",
625 "format": "date-time",
626 "readOnly": true,
627 "type": "string"
628 },
629 "intValue": {
630 "description": "Integral value of the parameter. ",
631 "format": "int64",
632 "readOnly": true,
633 "type": "string"
634 },
635 "msgValue": {
636 "description": "Nested message value of the para meter.",
637 "items": {
638 "additionalProperties": {
639 "type": "any"
640 },
641 "type": "object"
642 },
643 "readOnly": true,
644 "type": "array"
645 },
646 "name": {
647 "description": "The name of the parameter.",
648 "type": "string"
649 },
650 "stringValue": {
651 "description": "String value of the parameter.",
652 "readOnly": true,
653 "type": "string"
654 }
655 },
656 "type": "object"
657 },
658 "readOnly": true,
659 "type": "array"
660 }
661 },
662 "type": "object"
663 },
664 "UsageReports": {
665 "description": "JSON template for a collection of usage reports.",
666 "id": "UsageReports",
667 "properties": {
668 "etag": {
669 "description": "ETag of the resource.",
670 "type": "string"
671 },
672 "kind": {
673 "default": "admin#reports#usageReports",
674 "description": "The kind of object.",
675 "type": "string"
676 },
677 "nextPageToken": {
678 "description": "Token for retrieving the next page",
679 "type": "string"
680 },
681 "usageReports": {
682 "description": "Various application parameter records.",
683 "items": {
684 "$ref": "UsageReport"
685 },
686 "type": "array"
687 },
688 "warnings": {
689 "description": "Warnings if any.",
690 "items": {
691 "properties": {
692 "code": {
693 "description": "Machine readable code / warning type.",
694 "type": "string"
695 },
696 "data": {
697 "description": "Key-Value pairs to give detailed information on the warning.",
698 "items": {
699 "properties": {
700 "key": {
701 "description": "Key associated with a key-value pair to give detailed information on the warning.",
702 "type": "string"
703 },
704 "value": {
705 "description": "Value associated wit h a key-value pair to give detailed information on the warning.",
706 "type": "string"
707 }
708 },
709 "type": "object"
710 },
711 "type": "array"
712 },
713 "message": {
714 "description": "Human readable message for the w arning.",
715 "type": "string"
716 }
717 },
718 "type": "object"
719 },
720 "type": "array"
721 }
722 },
723 "type": "object"
724 }
725 },
726 "servicePath": "admin/reports/v1/",
727 "title": "Admin Reports API",
728 "version": "reports_v1"
729 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698