| 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.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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 if (pivotValueRegions != null) { | 312 if (pivotValueRegions != null) { |
| 313 _json["pivotValueRegions"] = pivotValueRegions.map((value) => (value).toJs
on()).toList(); | 313 _json["pivotValueRegions"] = pivotValueRegions.map((value) => (value).toJs
on()).toList(); |
| 314 } | 314 } |
| 315 if (values != null) { | 315 if (values != null) { |
| 316 _json["values"] = values; | 316 _json["values"] = values; |
| 317 } | 317 } |
| 318 return _json; | 318 return _json; |
| 319 } | 319 } |
| 320 } | 320 } |
| 321 | 321 |
| 322 /** A dimension in the request. */ | 322 /** |
| 323 * [Dimensions](https://support.google.com/analytics/answer/1033861) |
| 324 * are attributes of your data. For example, the dimension `ga:city` |
| 325 * indicates the city, for example, "Paris" or "New York", from which |
| 326 * a session originates. |
| 327 */ |
| 323 class Dimension { | 328 class Dimension { |
| 324 /** | 329 /** |
| 325 * If non-empty, we place dimension values into buckets after string to | 330 * If non-empty, we place dimension values into buckets after string to |
| 326 * int64. Dimension values that are not the string representation of an | 331 * int64. Dimension values that are not the string representation of an |
| 327 * integral value will be converted to zero. The bucket values have to be in | 332 * integral value will be converted to zero. The bucket values have to be in |
| 328 * increasing order. Each bucket is closed on the lower end, and open on the | 333 * increasing order. Each bucket is closed on the lower end, and open on the |
| 329 * upper end. The "first" bucket includes all values less than the first | 334 * upper end. The "first" bucket includes all values less than the first |
| 330 * boundary, the "last" bucket includes all values up to infinity. Dimension | 335 * boundary, the "last" bucket includes all values up to infinity. Dimension |
| 331 * values that fall in a bucket get transformed to a new dimension value. For | 336 * values that fall in a bucket get transformed to a new dimension value. For |
| 332 * example, if one gives a list of "0, 1, 3, 4, 7", then we return the | 337 * example, if one gives a list of "0, 1, 3, 4, 7", then we return the |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 | 617 |
| 613 core.Map toJson() { | 618 core.Map toJson() { |
| 614 var _json = new core.Map(); | 619 var _json = new core.Map(); |
| 615 if (reports != null) { | 620 if (reports != null) { |
| 616 _json["reports"] = reports.map((value) => (value).toJson()).toList(); | 621 _json["reports"] = reports.map((value) => (value).toJson()).toList(); |
| 617 } | 622 } |
| 618 return _json; | 623 return _json; |
| 619 } | 624 } |
| 620 } | 625 } |
| 621 | 626 |
| 622 /** A metric in the request. */ | 627 /** |
| 628 * [Metrics](https://support.google.com/analytics/answer/1033861) |
| 629 * are the quantitative measurements. For example, the metric `ga:users` |
| 630 * indicates the total number of users for the requested time period. |
| 631 */ |
| 623 class Metric { | 632 class Metric { |
| 624 /** | 633 /** |
| 625 * An alias for the metric expression is an alternate name for the | 634 * An alias for the metric expression is an alternate name for the |
| 626 * expression. The alias can be used for filtering and sorting. This field | 635 * expression. The alias can be used for filtering and sorting. This field |
| 627 * is optional and is useful if the expression is not a single metric but | 636 * is optional and is useful if the expression is not a single metric but |
| 628 * a complex expression which cannot be used in filtering and sorting. | 637 * a complex expression which cannot be used in filtering and sorting. |
| 629 * The alias is also used in the response column header. | 638 * The alias is also used in the response column header. |
| 630 */ | 639 */ |
| 631 core.String alias; | 640 core.String alias; |
| 632 /** | 641 /** |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 /** | 982 /** |
| 974 * DimensionFilterClauses are logically combined with an `AND` operator: only | 983 * DimensionFilterClauses are logically combined with an `AND` operator: only |
| 975 * data that is included by all these DimensionFilterClauses contributes to | 984 * data that is included by all these DimensionFilterClauses contributes to |
| 976 * the values in this pivot region. Dimension filters can be used to restrict | 985 * the values in this pivot region. Dimension filters can be used to restrict |
| 977 * the columns shown in the pivot region. For example if you have | 986 * the columns shown in the pivot region. For example if you have |
| 978 * `ga:browser` as the requested dimension in the pivot region, and you | 987 * `ga:browser` as the requested dimension in the pivot region, and you |
| 979 * specify key filters to restrict `ga:browser` to only "IE" or "Firefox", | 988 * specify key filters to restrict `ga:browser` to only "IE" or "Firefox", |
| 980 * then only those two browsers would show up as columns. | 989 * then only those two browsers would show up as columns. |
| 981 */ | 990 */ |
| 982 core.List<DimensionFilterClause> dimensionFilterClauses; | 991 core.List<DimensionFilterClause> dimensionFilterClauses; |
| 983 /** A list of dimensions to show as pivot columns. */ | 992 /** |
| 993 * A list of dimensions to show as pivot columns. A Pivot can have a maximum |
| 994 * of 4 dimensions. |
| 995 */ |
| 984 core.List<Dimension> dimensions; | 996 core.List<Dimension> dimensions; |
| 985 /** | 997 /** |
| 986 * Specifies the maximum number of groups to return. | 998 * Specifies the maximum number of groups to return. |
| 987 * The default value is 10, also the maximum value is 1,000. | 999 * The default value is 10, also the maximum value is 1,000. |
| 988 */ | 1000 */ |
| 989 core.int maxGroupCount; | 1001 core.int maxGroupCount; |
| 990 /** Metrics to aggregate and return. */ | 1002 /** |
| 1003 * The pivot metrics. Pivot metrics are part of the |
| 1004 * restriction on total number of metrics in the request. |
| 1005 */ |
| 991 core.List<Metric> metrics; | 1006 core.List<Metric> metrics; |
| 992 /** | 1007 /** |
| 993 * If k metrics were requested, then the response will contain some | 1008 * If k metrics were requested, then the response will contain some |
| 994 * data-dependent multiple of k columns in the report. E.g., if you pivoted | 1009 * data-dependent multiple of k columns in the report. E.g., if you pivoted |
| 995 * on the dimension `ga:browser` then you'd get k columns for "Firefox", k | 1010 * on the dimension `ga:browser` then you'd get k columns for "Firefox", k |
| 996 * columns for "IE", k columns for "Chrome", etc. The ordering of the groups | 1011 * columns for "IE", k columns for "Chrome", etc. The ordering of the groups |
| 997 * of columns is determined by descending order of "total" for the first of | 1012 * of columns is determined by descending order of "total" for the first of |
| 998 * the k values. Ties are broken by lexicographic ordering of the first | 1013 * the k values. Ties are broken by lexicographic ordering of the first |
| 999 * pivot dimension, then lexicographic ordering of the second pivot | 1014 * pivot dimension, then lexicographic ordering of the second pivot |
| 1000 * dimension, and so on. E.g., if the totals for the first value for | 1015 * dimension, and so on. E.g., if the totals for the first value for |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1315 * contain the same `dateRanges` definition. | 1330 * contain the same `dateRanges` definition. |
| 1316 */ | 1331 */ |
| 1317 core.List<DateRange> dateRanges; | 1332 core.List<DateRange> dateRanges; |
| 1318 /** | 1333 /** |
| 1319 * The dimension filter clauses for filtering Dimension Values. They are | 1334 * The dimension filter clauses for filtering Dimension Values. They are |
| 1320 * logically combined with the `AND` operator. Note that filtering occurs | 1335 * logically combined with the `AND` operator. Note that filtering occurs |
| 1321 * before any dimensions are aggregated, so that the returned metrics | 1336 * before any dimensions are aggregated, so that the returned metrics |
| 1322 * represent the total for only the relevant dimensions. | 1337 * represent the total for only the relevant dimensions. |
| 1323 */ | 1338 */ |
| 1324 core.List<DimensionFilterClause> dimensionFilterClauses; | 1339 core.List<DimensionFilterClause> dimensionFilterClauses; |
| 1325 /** Dimensions requested in the request. */ | 1340 /** |
| 1341 * The dimensions requested. |
| 1342 * Requests can have a total of 7 dimensions. |
| 1343 */ |
| 1326 core.List<Dimension> dimensions; | 1344 core.List<Dimension> dimensions; |
| 1327 /** | 1345 /** |
| 1328 * Dimension or metric filters that restrict the data returned for your | 1346 * Dimension or metric filters that restrict the data returned for your |
| 1329 * request. To use the `filtersExpression`, supply a dimension or metric on | 1347 * request. To use the `filtersExpression`, supply a dimension or metric on |
| 1330 * which to filter, followed by the filter expression. For example, the | 1348 * which to filter, followed by the filter expression. For example, the |
| 1331 * following expression selects `ga:browser` dimension which starts with | 1349 * following expression selects `ga:browser` dimension which starts with |
| 1332 * Firefox; `ga:browser=~^Firefox`. For more information on dimensions | 1350 * Firefox; `ga:browser=~^Firefox`. For more information on dimensions |
| 1333 * and metric filters, see | 1351 * and metric filters, see |
| 1334 * [Filters | 1352 * [Filters |
| 1335 * reference](https://developers.google.com/analytics/devguides/reporting/core
/v3/reference#filters). | 1353 * reference](https://developers.google.com/analytics/devguides/reporting/core
/v3/reference#filters). |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1352 */ | 1370 */ |
| 1353 core.bool includeEmptyRows; | 1371 core.bool includeEmptyRows; |
| 1354 /** | 1372 /** |
| 1355 * The metric filter clauses. They are logically combined with the `AND` | 1373 * The metric filter clauses. They are logically combined with the `AND` |
| 1356 * operator. Metric filters look at only the first date range and not the | 1374 * operator. Metric filters look at only the first date range and not the |
| 1357 * comparing date range. Note that filtering on metrics occurs after the | 1375 * comparing date range. Note that filtering on metrics occurs after the |
| 1358 * metrics are aggregated. | 1376 * metrics are aggregated. |
| 1359 */ | 1377 */ |
| 1360 core.List<MetricFilterClause> metricFilterClauses; | 1378 core.List<MetricFilterClause> metricFilterClauses; |
| 1361 /** | 1379 /** |
| 1362 * Metrics, the quantitative measurements, requested in the request. | 1380 * The metrics requested. |
| 1363 * Requests must specify at least one metric. | 1381 * Requests must specify at least one metric. Requests can have a |
| 1382 * total of 10 metrics. |
| 1364 */ | 1383 */ |
| 1365 core.List<Metric> metrics; | 1384 core.List<Metric> metrics; |
| 1366 /** | 1385 /** |
| 1367 * Sort order on output rows. To compare two rows, the elements of the | 1386 * Sort order on output rows. To compare two rows, the elements of the |
| 1368 * following are applied in order until a difference is found. All date | 1387 * following are applied in order until a difference is found. All date |
| 1369 * ranges in the output get the same row order. | 1388 * ranges in the output get the same row order. |
| 1370 */ | 1389 */ |
| 1371 core.List<OrderBy> orderBys; | 1390 core.List<OrderBy> orderBys; |
| 1372 /** | 1391 /** |
| 1373 * Page size is for paging and specifies the maximum number of returned rows. | 1392 * Page size is for paging and specifies the maximum number of returned rows. |
| 1374 * Page size should be >= 0. A query returns the default of 1,000 rows. | 1393 * Page size should be >= 0. A query returns the default of 1,000 rows. |
| 1375 * The Analytics Core Reporting API returns a maximum of 10,000 rows per | 1394 * The Analytics Core Reporting API returns a maximum of 10,000 rows per |
| 1376 * request, no matter how many you ask for. It can also return fewer rows | 1395 * request, no matter how many you ask for. It can also return fewer rows |
| 1377 * than requested, if there aren't as many dimension segments as you expect. | 1396 * than requested, if there aren't as many dimension segments as you expect. |
| 1378 * For instance, there are fewer than 300 possible values for `ga:country`, | 1397 * For instance, there are fewer than 300 possible values for `ga:country`, |
| 1379 * so when segmenting only by country, you can't get more than 300 rows, | 1398 * so when segmenting only by country, you can't get more than 300 rows, |
| 1380 * even if you set `pageSize` to a higher value. | 1399 * even if you set `pageSize` to a higher value. |
| 1381 */ | 1400 */ |
| 1382 core.int pageSize; | 1401 core.int pageSize; |
| 1383 /** | 1402 /** |
| 1384 * A continuation token to get the next page of the results. Adding this to | 1403 * A continuation token to get the next page of the results. Adding this to |
| 1385 * the request will return the rows after the pageToken. The pageToken should | 1404 * the request will return the rows after the pageToken. The pageToken should |
| 1386 * be the value returned in the nextPageToken parameter in the response to | 1405 * be the value returned in the nextPageToken parameter in the response to |
| 1387 * the GetReports request. | 1406 * the GetReports request. |
| 1388 */ | 1407 */ |
| 1389 core.String pageToken; | 1408 core.String pageToken; |
| 1390 /** The pivot definitions. */ | 1409 /** The pivot definitions. Requests can have a maximum of 2 pivots. */ |
| 1391 core.List<Pivot> pivots; | 1410 core.List<Pivot> pivots; |
| 1392 /** | 1411 /** |
| 1393 * The desired report | 1412 * The desired report |
| 1394 * [sample](https://support.google.com/analytics/answer/2637192) size. | 1413 * [sample](https://support.google.com/analytics/answer/2637192) size. |
| 1395 * If the the `samplingLevel` field is unspecified the `DEFAULT` sampling | 1414 * If the the `samplingLevel` field is unspecified the `DEFAULT` sampling |
| 1396 * level is used. Every [ReportRequest](#ReportRequest) within a | 1415 * level is used. Every [ReportRequest](#ReportRequest) within a |
| 1397 * `batchGet` method must contain the same `samplingLevel` definition. See | 1416 * `batchGet` method must contain the same `samplingLevel` definition. See |
| 1398 * [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling) | 1417 * [developer guide](/analytics/devguides/reporting/core/v4/basics#sampling) |
| 1399 * for details. | 1418 * for details. |
| 1400 * Possible string values are: | 1419 * Possible string values are: |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2035 } | 2054 } |
| 2036 | 2055 |
| 2037 core.Map toJson() { | 2056 core.Map toJson() { |
| 2038 var _json = new core.Map(); | 2057 var _json = new core.Map(); |
| 2039 if (orFiltersForSegment != null) { | 2058 if (orFiltersForSegment != null) { |
| 2040 _json["orFiltersForSegment"] = orFiltersForSegment.map((value) => (value).
toJson()).toList(); | 2059 _json["orFiltersForSegment"] = orFiltersForSegment.map((value) => (value).
toJson()).toList(); |
| 2041 } | 2060 } |
| 2042 return _json; | 2061 return _json; |
| 2043 } | 2062 } |
| 2044 } | 2063 } |
| OLD | NEW |