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

Side by Side Diff: generated/googleapis/lib/analyticsreporting/v4.dart

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 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
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.analyticsreporting.v4; 3 library googleapis.analyticsreporting.v4;
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;
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 } 566 }
567 return _json; 567 return _json;
568 } 568 }
569 } 569 }
570 570
571 /** The batch request containing multiple report request. */ 571 /** The batch request containing multiple report request. */
572 class GetReportsRequest { 572 class GetReportsRequest {
573 /** 573 /**
574 * Requests, each request will have a separate response. 574 * Requests, each request will have a separate response.
575 * There can be a maximum of 5 requests. All requests should have the same 575 * There can be a maximum of 5 requests. All requests should have the same
576 * `dateRange`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`. 576 * `dateRanges`, `viewId`, `segments`, `samplingLevel`, and `cohortGroup`.
577 */ 577 */
578 core.List<ReportRequest> reportRequests; 578 core.List<ReportRequest> reportRequests;
579 579
580 GetReportsRequest(); 580 GetReportsRequest();
581 581
582 GetReportsRequest.fromJson(core.Map _json) { 582 GetReportsRequest.fromJson(core.Map _json) {
583 if (_json.containsKey("reportRequests")) { 583 if (_json.containsKey("reportRequests")) {
584 reportRequests = _json["reportRequests"].map((value) => new ReportRequest. fromJson(value)).toList(); 584 reportRequests = _json["reportRequests"].map((value) => new ReportRequest. fromJson(value)).toList();
585 } 585 }
586 } 586 }
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 * `ga:browser, ga:city` is not valid. 897 * `ga:browser, ga:city` is not valid.
898 */ 898 */
899 core.String fieldName; 899 core.String fieldName;
900 /** 900 /**
901 * The order type. The default orderType is `VALUE`. 901 * The order type. The default orderType is `VALUE`.
902 * Possible string values are: 902 * Possible string values are:
903 * - "ORDER_TYPE_UNSPECIFIED" : Unspecified order type will be treated as sort 903 * - "ORDER_TYPE_UNSPECIFIED" : Unspecified order type will be treated as sort
904 * based on value. 904 * based on value.
905 * - "VALUE" : The sort order is based on the value of the chosen column; 905 * - "VALUE" : The sort order is based on the value of the chosen column;
906 * looks only at 906 * looks only at
907 * the first date range 907 * the first date range.
908 * - "DELTA" : The sort order is based on the difference of the values of the 908 * - "DELTA" : The sort order is based on the difference of the values of the
909 * chosen 909 * chosen
910 * column between the first two date ranges. Usable only if there are 910 * column between the first two date ranges. Usable only if there are
911 * exactly two date ranges. 911 * exactly two date ranges.
912 * - "SMART" : The sort order is based on weighted value of the chosen column. 912 * - "SMART" : The sort order is based on weighted value of the chosen column.
913 * If 913 * If
914 * column has n/d format, then weighted value of this ratio will 914 * column has n/d format, then weighted value of this ratio will
915 * be `(n + totals.n)/(d + totals.d)` Usable only for metrics that 915 * be `(n + totals.n)/(d + totals.d)` Usable only for metrics that
916 * represent ratios. 916 * represent ratios.
917 * - "HISTOGRAM_BUCKET" : Histogram order type is applicable only to dimension 917 * - "HISTOGRAM_BUCKET" : Histogram order type is applicable only to dimension
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 } 1075 }
1076 return _json; 1076 return _json;
1077 } 1077 }
1078 } 1078 }
1079 1079
1080 /** 1080 /**
1081 * The headers for the each of the metric column corresponding to the metrics 1081 * The headers for the each of the metric column corresponding to the metrics
1082 * requested in the pivots section of the response. 1082 * requested in the pivots section of the response.
1083 */ 1083 */
1084 class PivotHeaderEntry { 1084 class PivotHeaderEntry {
1085 /** 1085 /** The name of the dimensions in the pivot response. */
1086 * The name of the dimensions in the pivotDimensionValues field in the
1087 * response.
1088 */
1089 core.List<core.String> dimensionNames; 1086 core.List<core.String> dimensionNames;
1090 /** The values for the dimensions in the pivot. */ 1087 /** The values for the dimensions in the pivot. */
1091 core.List<core.String> dimensionValues; 1088 core.List<core.String> dimensionValues;
1092 /** The metric header for the metric in the pivot. */ 1089 /** The metric header for the metric in the pivot. */
1093 MetricHeaderEntry metric; 1090 MetricHeaderEntry metric;
1094 1091
1095 PivotHeaderEntry(); 1092 PivotHeaderEntry();
1096 1093
1097 PivotHeaderEntry.fromJson(core.Map _json) { 1094 PivotHeaderEntry.fromJson(core.Map _json) {
1098 if (_json.containsKey("dimensionNames")) { 1095 if (_json.containsKey("dimensionNames")) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 * Minimum and maximum values seen over all matching rows. These are both 1196 * Minimum and maximum values seen over all matching rows. These are both
1200 * empty when `hideValueRanges` in the request is false, or when 1197 * empty when `hideValueRanges` in the request is false, or when
1201 * rowCount is zero. 1198 * rowCount is zero.
1202 */ 1199 */
1203 core.List<DateRangeValues> minimums; 1200 core.List<DateRangeValues> minimums;
1204 /** Total number of matching rows for this query. */ 1201 /** Total number of matching rows for this query. */
1205 core.int rowCount; 1202 core.int rowCount;
1206 /** There's one ReportRow for every unique combination of dimensions. */ 1203 /** There's one ReportRow for every unique combination of dimensions. */
1207 core.List<ReportRow> rows; 1204 core.List<ReportRow> rows;
1208 /** 1205 /**
1209 * If sampling was enabled, this returns the total number of samples 1206 * If the results are
1210 * read, one entry per date range 1207 * [sampled](https://support.google.com/analytics/answer/2637192),
1208 * this returns the total number of samples read, one entry per date range.
1209 * If the results are not sampled this field will not be defined. See
1210 * [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
1211 * for details.
1211 */ 1212 */
1212 core.List<core.String> samplesReadCounts; 1213 core.List<core.String> samplesReadCounts;
1213 /** 1214 /**
1214 * If sampling was enabled, this returns the total number of samples 1215 * If the results are
1215 * present, one entry per date range. 1216 * [sampled](https://support.google.com/analytics/answer/2637192),
1217 * this returns the total number of
1218 * samples present, one entry per date range. If the results are not sampled
1219 * this field will not be defined. See
1220 * [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
1221 * for details.
1216 */ 1222 */
1217 core.List<core.String> samplingSpaceSizes; 1223 core.List<core.String> samplingSpaceSizes;
1218 /** 1224 /**
1219 * For each requested date range, for the set of all rows that match 1225 * For each requested date range, for the set of all rows that match
1220 * the query, every requested value format gets a total. The total 1226 * the query, every requested value format gets a total. The total
1221 * for a value format is computed by first totaling the metrics 1227 * for a value format is computed by first totaling the metrics
1222 * mentioned in the value format and then evaluating the value 1228 * mentioned in the value format and then evaluating the value
1223 * format as a scalar expression. E.g., The "totals" for 1229 * format as a scalar expression. E.g., The "totals" for
1224 * `3 / (ga:sessions + 2)` we compute 1230 * `3 / (ga:sessions + 2)` we compute
1225 * `3 / ((sum of all relevant ga:sessions) + 2)`. 1231 * `3 / ((sum of all relevant ga:sessions) + 2)`.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 _json["totals"] = totals.map((value) => (value).toJson()).toList(); 1289 _json["totals"] = totals.map((value) => (value).toJson()).toList();
1284 } 1290 }
1285 return _json; 1291 return _json;
1286 } 1292 }
1287 } 1293 }
1288 1294
1289 /** The main request class which specifies the Reporting API request. */ 1295 /** The main request class which specifies the Reporting API request. */
1290 class ReportRequest { 1296 class ReportRequest {
1291 /** 1297 /**
1292 * Cohort group associated with this request. If there is a cohort group 1298 * Cohort group associated with this request. If there is a cohort group
1293 * in the request the `ga:cohort` dimension must be present. All requests 1299 * in the request the `ga:cohort` dimension must be present.
1294 * should have the same cohort definitions. 1300 * Every [ReportRequest](#ReportRequest) within a `batchGet` method must
1301 * contain the same `cohortGroup` definition.
1295 */ 1302 */
1296 CohortGroup cohortGroup; 1303 CohortGroup cohortGroup;
1297 /** 1304 /**
1298 * Date ranges in the request. The request can have a maximum of 2 date 1305 * Date ranges in the request. The request can have a maximum of 2 date
1299 * ranges. The response will contain a set of metric values for each 1306 * ranges. The response will contain a set of metric values for each
1300 * combination of the dimensions for each date range in the request. So, if 1307 * combination of the dimensions for each date range in the request. So, if
1301 * there are two date ranges, there will be two set of metric values, one for 1308 * there are two date ranges, there will be two set of metric values, one for
1302 * the original date range and one for the second date range. 1309 * the original date range and one for the second date range.
1303 * The `reportRequest.dateRanges` field should not be specified for cohorts 1310 * The `reportRequest.dateRanges` field should not be specified for cohorts
1304 * or Lifetime value requests. 1311 * or Lifetime value requests.
1305 * If a date range is not provided, the default date range is (startDate: 1312 * If a date range is not provided, the default date range is (startDate:
1306 * current date - 7 days, endDate: current date - 1 day) 1313 * current date - 7 days, endDate: current date - 1 day). Every
1314 * [ReportRequest](#ReportRequest) within a `batchGet` method must
1315 * contain the same `dateRanges` definition.
1307 */ 1316 */
1308 core.List<DateRange> dateRanges; 1317 core.List<DateRange> dateRanges;
1309 /** 1318 /**
1310 * The dimension filter clauses for filtering Dimension Values. They are 1319 * The dimension filter clauses for filtering Dimension Values. They are
1311 * logically combined with the `AND` operator. Note that filtering occurs 1320 * logically combined with the `AND` operator. Note that filtering occurs
1312 * before any dimensions are aggregated, so that the returned metrics 1321 * before any dimensions are aggregated, so that the returned metrics
1313 * represent the total for only the relevant dimensions. 1322 * represent the total for only the relevant dimensions.
1314 */ 1323 */
1315 core.List<DimensionFilterClause> dimensionFilterClauses; 1324 core.List<DimensionFilterClause> dimensionFilterClauses;
1316 /** Dimensions requested in the request. */ 1325 /** Dimensions requested in the request. */
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 /** 1383 /**
1375 * A continuation token to get the next page of the results. Adding this to 1384 * A continuation token to get the next page of the results. Adding this to
1376 * the request will return the rows after the pageToken. The pageToken should 1385 * the request will return the rows after the pageToken. The pageToken should
1377 * be the value returned in the nextPageToken parameter in the response to 1386 * be the value returned in the nextPageToken parameter in the response to
1378 * the GetReports request. 1387 * the GetReports request.
1379 */ 1388 */
1380 core.String pageToken; 1389 core.String pageToken;
1381 /** The pivot definitions. */ 1390 /** The pivot definitions. */
1382 core.List<Pivot> pivots; 1391 core.List<Pivot> pivots;
1383 /** 1392 /**
1384 * The desired sampling level. If the sampling level is not specified the 1393 * The desired report
1385 * DEFAULT sampling level will be used. All requests should have same 1394 * [sample](https://support.google.com/analytics/answer/2637192) size.
1386 * `samplingLevel`. 1395 * If the the `samplingLevel` field is unspecified the `DEFAULT` sampling
1396 * level is used. Every [ReportRequest](#ReportRequest) within a
1397 * `batchGet` method must contain the same `samplingLevel` definition. See
1398 * [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling)
1399 * for details.
1387 * Possible string values are: 1400 * Possible string values are:
1388 * - "SAMPLING_UNSPECIFIED" : If sampling level is unspecified the default 1401 * - "SAMPLING_UNSPECIFIED" : If the `samplingLevel` field is unspecified the
1389 * sampling level is used. 1402 * `DEFAULT` sampling level
1403 * is used.
1390 * - "DEFAULT" : Returns response with a sample size that balances speed and 1404 * - "DEFAULT" : Returns response with a sample size that balances speed and
1391 * accuracy. 1405 * accuracy.
1392 * - "SMALL" : It returns a fast response with a smaller sampling size. 1406 * - "SMALL" : It returns a fast response with a smaller sampling size.
1393 * - "LARGE" : Returns a more accurate response using a large sampling size. 1407 * - "LARGE" : Returns a more accurate response using a large sampling size.
1394 * But this 1408 * But this
1395 * may result in response being slower. 1409 * may result in response being slower.
1396 */ 1410 */
1397 core.String samplingLevel; 1411 core.String samplingLevel;
1398 /** 1412 /**
1399 * Segment the data returned for the request. A segment definition helps look 1413 * Segment the data returned for the request. A segment definition helps look
1400 * at a subset of the segment request. A request can contain up to four 1414 * at a subset of the segment request. A request can contain up to four
1401 * segments. All requests should have the same segment definitions. Requests 1415 * segments. Every [ReportRequest](#ReportRequest) within a
1416 * `batchGet` method must contain the same `segments` definition. Requests
1402 * with segments must have the `ga:segment` dimension. 1417 * with segments must have the `ga:segment` dimension.
1403 */ 1418 */
1404 core.List<Segment> segments; 1419 core.List<Segment> segments;
1405 /** Unique View Id for retrieving Analytics data. */ 1420 /**
1421 * The Analytics
1422 * [view ID](https://support.google.com/analytics/answer/1009618)
1423 * from which to retrieve data. Every [ReportRequest](#ReportRequest)
1424 * within a `batchGet` method must contain the same `viewId`.
1425 */
1406 core.String viewId; 1426 core.String viewId;
1407 1427
1408 ReportRequest(); 1428 ReportRequest();
1409 1429
1410 ReportRequest.fromJson(core.Map _json) { 1430 ReportRequest.fromJson(core.Map _json) {
1411 if (_json.containsKey("cohortGroup")) { 1431 if (_json.containsKey("cohortGroup")) {
1412 cohortGroup = new CohortGroup.fromJson(_json["cohortGroup"]); 1432 cohortGroup = new CohortGroup.fromJson(_json["cohortGroup"]);
1413 } 1433 }
1414 if (_json.containsKey("dateRanges")) { 1434 if (_json.containsKey("dateRanges")) {
1415 dateRanges = _json["dateRanges"].map((value) => new DateRange.fromJson(val ue)).toList(); 1435 dateRanges = _json["dateRanges"].map((value) => new DateRange.fromJson(val ue)).toList();
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 _json["viewId"] = viewId; 1535 _json["viewId"] = viewId;
1516 } 1536 }
1517 return _json; 1537 return _json;
1518 } 1538 }
1519 } 1539 }
1520 1540
1521 /** A row in the report. */ 1541 /** A row in the report. */
1522 class ReportRow { 1542 class ReportRow {
1523 /** List of requested dimensions. */ 1543 /** List of requested dimensions. */
1524 core.List<core.String> dimensions; 1544 core.List<core.String> dimensions;
1525 /** List of metrics for each requested DateRange */ 1545 /** List of metrics for each requested DateRange. */
1526 core.List<DateRangeValues> metrics; 1546 core.List<DateRangeValues> metrics;
1527 1547
1528 ReportRow(); 1548 ReportRow();
1529 1549
1530 ReportRow.fromJson(core.Map _json) { 1550 ReportRow.fromJson(core.Map _json) {
1531 if (_json.containsKey("dimensions")) { 1551 if (_json.containsKey("dimensions")) {
1532 dimensions = _json["dimensions"]; 1552 dimensions = _json["dimensions"];
1533 } 1553 }
1534 if (_json.containsKey("metrics")) { 1554 if (_json.containsKey("metrics")) {
1535 metrics = _json["metrics"].map((value) => new DateRangeValues.fromJson(val ue)).toList(); 1555 metrics = _json["metrics"].map((value) => new DateRangeValues.fromJson(val ue)).toList();
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2015 } 2035 }
2016 2036
2017 core.Map toJson() { 2037 core.Map toJson() {
2018 var _json = new core.Map(); 2038 var _json = new core.Map();
2019 if (orFiltersForSegment != null) { 2039 if (orFiltersForSegment != null) {
2020 _json["orFiltersForSegment"] = orFiltersForSegment.map((value) => (value). toJson()).toList(); 2040 _json["orFiltersForSegment"] = orFiltersForSegment.map((value) => (value). toJson()).toList();
2021 } 2041 }
2022 return _json; 2042 return _json;
2023 } 2043 }
2024 } 2044 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/admin/directory_v1.dart ('k') | generated/googleapis/lib/androidenterprise/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698