| OLD | NEW |
| 1 library googleapis.admin.reports_v1; | 1 library googleapis.admin.reports_v1; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
| 9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 static const AdminReportsUsageReadonlyScope = "https://www.googleapis.com/auth
/admin.reports.usage.readonly"; | 25 static const AdminReportsUsageReadonlyScope = "https://www.googleapis.com/auth
/admin.reports.usage.readonly"; |
| 26 | 26 |
| 27 | 27 |
| 28 final common_internal.ApiRequester _requester; | 28 final common_internal.ApiRequester _requester; |
| 29 | 29 |
| 30 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); | 30 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); |
| 31 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester); | 31 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester); |
| 32 CustomerUsageReportsResourceApi get customerUsageReports => new CustomerUsageR
eportsResourceApi(_requester); | 32 CustomerUsageReportsResourceApi get customerUsageReports => new CustomerUsageR
eportsResourceApi(_requester); |
| 33 UserUsageReportResourceApi get userUsageReport => new UserUsageReportResourceA
pi(_requester); | 33 UserUsageReportResourceApi get userUsageReport => new UserUsageReportResourceA
pi(_requester); |
| 34 | 34 |
| 35 AdminApi(http.Client client) : | 35 AdminApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com
/", core.String servicePath: "admin/reports/v1/"}) : |
| 36 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "admin/reports/v1/"); | 36 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); |
| 37 } | 37 } |
| 38 | 38 |
| 39 | 39 |
| 40 /** Not documented yet. */ | 40 /** Not documented yet. */ |
| 41 class ActivitiesResourceApi { | 41 class ActivitiesResourceApi { |
| 42 final common_internal.ApiRequester _requester; | 42 final common_internal.ApiRequester _requester; |
| 43 | 43 |
| 44 ActivitiesResourceApi(common_internal.ApiRequester client) : | 44 ActivitiesResourceApi(common_internal.ApiRequester client) : |
| 45 _requester = client; | 45 _requester = client; |
| 46 | 46 |
| 47 /** | 47 /** |
| 48 * Retrieves a list of activities for a specific customer and application. | 48 * Retrieves a list of activities for a specific customer and application. |
| 49 * | 49 * |
| 50 * Request parameters: | 50 * Request parameters: |
| 51 * | 51 * |
| 52 * [userKey] - Represents the profile id or the user email for which the data | 52 * [userKey] - Represents the profile id or the user email for which the data |
| 53 * should be filtered. When 'all' is specified as the userKey, it returns | 53 * should be filtered. When 'all' is specified as the userKey, it returns |
| 54 * usageReports for all users. | 54 * usageReports for all users. |
| 55 * | 55 * |
| 56 * [applicationName] - Application name for which the events are to be | 56 * [applicationName] - Application name for which the events are to be |
| 57 * retrieved. | 57 * retrieved. |
| 58 * Value must have pattern "(admin)|(docs)|(drive)|(login)|(token)". | 58 * Value must have pattern |
| 59 * "(admin)|(calendar)|(docs)|(drive)|(login)|(token)". |
| 59 * | 60 * |
| 60 * [actorIpAddress] - IP Address of host where the event was performed. | 61 * [actorIpAddress] - IP Address of host where the event was performed. |
| 61 * Supports both IPv4 and IPv6 addresses. | 62 * Supports both IPv4 and IPv6 addresses. |
| 62 * | 63 * |
| 63 * [customerId] - Represents the customer for which the data is to be fetched. | 64 * [customerId] - Represents the customer for which the data is to be fetched. |
| 64 * Value must have pattern "C.+". | 65 * Value must have pattern "C.+". |
| 65 * | 66 * |
| 66 * [endTime] - Return events which occured at or before this time. | 67 * [endTime] - Return events which occured at or before this time. |
| 67 * Value must have pattern | 68 * Value must have pattern |
| 68 * "(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|([-+])(\d\
d):(\d\d))". | 69 * "(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|([-+])(\d\
d):(\d\d))". |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 * [request] - The metadata request object. | 150 * [request] - The metadata request object. |
| 150 * | 151 * |
| 151 * Request parameters: | 152 * Request parameters: |
| 152 * | 153 * |
| 153 * [userKey] - Represents the profile id or the user email for which the data | 154 * [userKey] - Represents the profile id or the user email for which the data |
| 154 * should be filtered. When 'all' is specified as the userKey, it returns | 155 * should be filtered. When 'all' is specified as the userKey, it returns |
| 155 * usageReports for all users. | 156 * usageReports for all users. |
| 156 * | 157 * |
| 157 * [applicationName] - Application name for which the events are to be | 158 * [applicationName] - Application name for which the events are to be |
| 158 * retrieved. | 159 * retrieved. |
| 159 * Value must have pattern "(admin)|(docs)|(drive)|(login)|(token)". | 160 * Value must have pattern |
| 161 * "(admin)|(calendar)|(docs)|(drive)|(login)|(token)". |
| 160 * | 162 * |
| 161 * [actorIpAddress] - IP Address of host where the event was performed. | 163 * [actorIpAddress] - IP Address of host where the event was performed. |
| 162 * Supports both IPv4 and IPv6 addresses. | 164 * Supports both IPv4 and IPv6 addresses. |
| 163 * | 165 * |
| 164 * [customerId] - Represents the customer for which the data is to be fetched. | 166 * [customerId] - Represents the customer for which the data is to be fetched. |
| 165 * Value must have pattern "C.+". | 167 * Value must have pattern "C.+". |
| 166 * | 168 * |
| 167 * [endTime] - Return events which occured at or before this time. | 169 * [endTime] - Return events which occured at or before this time. |
| 168 * Value must have pattern | 170 * Value must have pattern |
| 169 * "(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|([-+])(\d\
d):(\d\d))". | 171 * "(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:\.(\d+))?(?:(Z)|([-+])(\d\
d):(\d\d))". |
| (...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 _json["usageReports"] = usageReports.map((value) => (value).toJson()).toLi
st(); | 1243 _json["usageReports"] = usageReports.map((value) => (value).toJson()).toLi
st(); |
| 1242 } | 1244 } |
| 1243 if (warnings != null) { | 1245 if (warnings != null) { |
| 1244 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); | 1246 _json["warnings"] = warnings.map((value) => (value).toJson()).toList(); |
| 1245 } | 1247 } |
| 1246 return _json; | 1248 return _json; |
| 1247 } | 1249 } |
| 1248 } | 1250 } |
| 1249 | 1251 |
| 1250 | 1252 |
| OLD | NEW |