| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.admin.reports_v1; | 3 library googleapis.admin.reports_v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client admin/reports_v1'; | 15 const core.String USER_AGENT = 'dart-api-client admin/reports_v1'; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * Fetches reports for the administrators of Google Apps customers about the | 18 * Fetches reports for the administrators of Google Apps customers about the |
| 19 * usage, collaboration, security, and risk for their users. | 19 * usage, collaboration, security, and risk for their users. |
| 20 */ | 20 */ |
| 21 class AdminApi { | 21 class AdminApi { |
| 22 /** View audit reports of Google Apps for your domain */ | 22 /** View audit reports for your G Suite domain */ |
| 23 static const AdminReportsAuditReadonlyScope = "https://www.googleapis.com/auth
/admin.reports.audit.readonly"; | 23 static const AdminReportsAuditReadonlyScope = "https://www.googleapis.com/auth
/admin.reports.audit.readonly"; |
| 24 | 24 |
| 25 /** View usage reports of Google Apps for your domain */ | 25 /** View usage reports for your G Suite domain */ |
| 26 static const AdminReportsUsageReadonlyScope = "https://www.googleapis.com/auth
/admin.reports.usage.readonly"; | 26 static const AdminReportsUsageReadonlyScope = "https://www.googleapis.com/auth
/admin.reports.usage.readonly"; |
| 27 | 27 |
| 28 | 28 |
| 29 final commons.ApiRequester _requester; | 29 final commons.ApiRequester _requester; |
| 30 | 30 |
| 31 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); | 31 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); |
| 32 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester); | 32 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester); |
| 33 CustomerUsageReportsResourceApi get customerUsageReports => new CustomerUsageR
eportsResourceApi(_requester); | 33 CustomerUsageReportsResourceApi get customerUsageReports => new CustomerUsageR
eportsResourceApi(_requester); |
| 34 UserUsageReportResourceApi get userUsageReport => new UserUsageReportResourceA
pi(_requester); | 34 UserUsageReportResourceApi get userUsageReport => new UserUsageReportResourceA
pi(_requester); |
| 35 | 35 |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 } | 1154 } |
| 1155 if (usageReports != null) { | 1155 if (usageReports != null) { |
| 1156 _json["usageReports"] = usageReports.map((value) => (value).toJson()).toLi
st(); | 1156 _json["usageReports"] = usageReports.map((value) => (value).toJson()).toLi
st(); |
| 1157 } | 1157 } |
| 1158 if (warnings != null) { | 1158 if (warnings != null) { |
| 1159 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | 1159 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
| 1160 } | 1160 } |
| 1161 return _json; | 1161 return _json; |
| 1162 } | 1162 } |
| 1163 } | 1163 } |
| OLD | NEW |