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

Side by Side Diff: generated/googleapis/lib/fitness/v1.dart

Issue 2226653002: Api-roll 40: 2016-08-08 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Addressed review comments Created 4 years, 4 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.fitness.v1; 3 library googleapis.fitness.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;
(...skipping 18 matching lines...) Expand all
29 29
30 /** View and store body sensor data in Google Fit */ 30 /** View and store body sensor data in Google Fit */
31 static const FitnessBodyWriteScope = "https://www.googleapis.com/auth/fitness. body.write"; 31 static const FitnessBodyWriteScope = "https://www.googleapis.com/auth/fitness. body.write";
32 32
33 /** View your stored location data in Google Fit */ 33 /** View your stored location data in Google Fit */
34 static const FitnessLocationReadScope = "https://www.googleapis.com/auth/fitne ss.location.read"; 34 static const FitnessLocationReadScope = "https://www.googleapis.com/auth/fitne ss.location.read";
35 35
36 /** View and store your location data in Google Fit */ 36 /** View and store your location data in Google Fit */
37 static const FitnessLocationWriteScope = "https://www.googleapis.com/auth/fitn ess.location.write"; 37 static const FitnessLocationWriteScope = "https://www.googleapis.com/auth/fitn ess.location.write";
38 38
39 /** View nutrition information in Google Fit */
40 static const FitnessNutritionReadScope = "https://www.googleapis.com/auth/fitn ess.nutrition.read";
41
42 /** View and store nutrition information in Google Fit */
43 static const FitnessNutritionWriteScope = "https://www.googleapis.com/auth/fit ness.nutrition.write";
44
39 45
40 final commons.ApiRequester _requester; 46 final commons.ApiRequester _requester;
41 47
42 UsersResourceApi get users => new UsersResourceApi(_requester); 48 UsersResourceApi get users => new UsersResourceApi(_requester);
43 49
44 FitnessApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c om/", core.String servicePath: "fitness/v1/users/"}) : 50 FitnessApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c om/", core.String servicePath: "fitness/v1/users/"}) :
45 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 51 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
46 } 52 }
47 53
48 54
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 * 467 *
462 * [dataSourceId] - The data stream ID of the data source that created the 468 * [dataSourceId] - The data stream ID of the data source that created the
463 * dataset. 469 * dataset.
464 * 470 *
465 * [datasetId] - Dataset identifier that is a composite of the minimum data 471 * [datasetId] - Dataset identifier that is a composite of the minimum data
466 * point start time and maximum data point end time represented as nanoseconds 472 * point start time and maximum data point end time represented as nanoseconds
467 * from the epoch. The ID is formatted like: "startTime-endTime" where 473 * from the epoch. The ID is formatted like: "startTime-endTime" where
468 * startTime and endTime are 64 bit integers. 474 * startTime and endTime are 64 bit integers.
469 * 475 *
470 * [limit] - If specified, no more than this many data points will be included 476 * [limit] - If specified, no more than this many data points will be included
471 * in the dataset. If the there are more data points in the dataset, 477 * in the dataset. If there are more data points in the dataset, nextPageToken
472 * nextPageToken will be set in the dataset response. 478 * will be set in the dataset response.
473 * 479 *
474 * [pageToken] - The continuation token, which is used to page through large 480 * [pageToken] - The continuation token, which is used to page through large
475 * datasets. To get the next page of a dataset, set this parameter to the 481 * datasets. To get the next page of a dataset, set this parameter to the
476 * value of nextPageToken from the previous response. Each subsequent call 482 * value of nextPageToken from the previous response. Each subsequent call
477 * will yield a partial dataset with data point end timestamps that are 483 * will yield a partial dataset with data point end timestamps that are
478 * strictly smaller than those in the previous partial response. 484 * strictly smaller than those in the previous partial response.
479 * 485 *
480 * Completes with a [Dataset]. 486 * Completes with a [Dataset].
481 * 487 *
482 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 488 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 * Specifies that data be aggregated by a single time interval. Mutually 987 * Specifies that data be aggregated by a single time interval. Mutually
982 * exclusive of other bucketing specifications. 988 * exclusive of other bucketing specifications.
983 */ 989 */
984 BucketByTime bucketByTime; 990 BucketByTime bucketByTime;
985 /** 991 /**
986 * The end of a window of time. Data that intersects with this time window 992 * The end of a window of time. Data that intersects with this time window
987 * will be aggregated. The time is in milliseconds since epoch, inclusive. 993 * will be aggregated. The time is in milliseconds since epoch, inclusive.
988 */ 994 */
989 core.String endTimeMillis; 995 core.String endTimeMillis;
990 /** 996 /**
997 * A list of acceptable data quality standards. Only data points which conform
998 * to at least one of the specified data quality standards will be returned.
999 * If the list is empty, all data points are returned.
1000 */
1001 core.List<core.String> filteredDataQualityStandard;
1002 /**
991 * The start of a window of time. Data that intersects with this time window 1003 * The start of a window of time. Data that intersects with this time window
992 * will be aggregated. The time is in milliseconds since epoch, inclusive. 1004 * will be aggregated. The time is in milliseconds since epoch, inclusive.
993 */ 1005 */
994 core.String startTimeMillis; 1006 core.String startTimeMillis;
995 1007
996 AggregateRequest(); 1008 AggregateRequest();
997 1009
998 AggregateRequest.fromJson(core.Map _json) { 1010 AggregateRequest.fromJson(core.Map _json) {
999 if (_json.containsKey("aggregateBy")) { 1011 if (_json.containsKey("aggregateBy")) {
1000 aggregateBy = _json["aggregateBy"].map((value) => new AggregateBy.fromJson (value)).toList(); 1012 aggregateBy = _json["aggregateBy"].map((value) => new AggregateBy.fromJson (value)).toList();
1001 } 1013 }
1002 if (_json.containsKey("bucketByActivitySegment")) { 1014 if (_json.containsKey("bucketByActivitySegment")) {
1003 bucketByActivitySegment = new BucketByActivity.fromJson(_json["bucketByAct ivitySegment"]); 1015 bucketByActivitySegment = new BucketByActivity.fromJson(_json["bucketByAct ivitySegment"]);
1004 } 1016 }
1005 if (_json.containsKey("bucketByActivityType")) { 1017 if (_json.containsKey("bucketByActivityType")) {
1006 bucketByActivityType = new BucketByActivity.fromJson(_json["bucketByActivi tyType"]); 1018 bucketByActivityType = new BucketByActivity.fromJson(_json["bucketByActivi tyType"]);
1007 } 1019 }
1008 if (_json.containsKey("bucketBySession")) { 1020 if (_json.containsKey("bucketBySession")) {
1009 bucketBySession = new BucketBySession.fromJson(_json["bucketBySession"]); 1021 bucketBySession = new BucketBySession.fromJson(_json["bucketBySession"]);
1010 } 1022 }
1011 if (_json.containsKey("bucketByTime")) { 1023 if (_json.containsKey("bucketByTime")) {
1012 bucketByTime = new BucketByTime.fromJson(_json["bucketByTime"]); 1024 bucketByTime = new BucketByTime.fromJson(_json["bucketByTime"]);
1013 } 1025 }
1014 if (_json.containsKey("endTimeMillis")) { 1026 if (_json.containsKey("endTimeMillis")) {
1015 endTimeMillis = _json["endTimeMillis"]; 1027 endTimeMillis = _json["endTimeMillis"];
1016 } 1028 }
1029 if (_json.containsKey("filteredDataQualityStandard")) {
1030 filteredDataQualityStandard = _json["filteredDataQualityStandard"];
1031 }
1017 if (_json.containsKey("startTimeMillis")) { 1032 if (_json.containsKey("startTimeMillis")) {
1018 startTimeMillis = _json["startTimeMillis"]; 1033 startTimeMillis = _json["startTimeMillis"];
1019 } 1034 }
1020 } 1035 }
1021 1036
1022 core.Map toJson() { 1037 core.Map toJson() {
1023 var _json = new core.Map(); 1038 var _json = new core.Map();
1024 if (aggregateBy != null) { 1039 if (aggregateBy != null) {
1025 _json["aggregateBy"] = aggregateBy.map((value) => (value).toJson()).toList (); 1040 _json["aggregateBy"] = aggregateBy.map((value) => (value).toJson()).toList ();
1026 } 1041 }
1027 if (bucketByActivitySegment != null) { 1042 if (bucketByActivitySegment != null) {
1028 _json["bucketByActivitySegment"] = (bucketByActivitySegment).toJson(); 1043 _json["bucketByActivitySegment"] = (bucketByActivitySegment).toJson();
1029 } 1044 }
1030 if (bucketByActivityType != null) { 1045 if (bucketByActivityType != null) {
1031 _json["bucketByActivityType"] = (bucketByActivityType).toJson(); 1046 _json["bucketByActivityType"] = (bucketByActivityType).toJson();
1032 } 1047 }
1033 if (bucketBySession != null) { 1048 if (bucketBySession != null) {
1034 _json["bucketBySession"] = (bucketBySession).toJson(); 1049 _json["bucketBySession"] = (bucketBySession).toJson();
1035 } 1050 }
1036 if (bucketByTime != null) { 1051 if (bucketByTime != null) {
1037 _json["bucketByTime"] = (bucketByTime).toJson(); 1052 _json["bucketByTime"] = (bucketByTime).toJson();
1038 } 1053 }
1039 if (endTimeMillis != null) { 1054 if (endTimeMillis != null) {
1040 _json["endTimeMillis"] = endTimeMillis; 1055 _json["endTimeMillis"] = endTimeMillis;
1041 } 1056 }
1057 if (filteredDataQualityStandard != null) {
1058 _json["filteredDataQualityStandard"] = filteredDataQualityStandard;
1059 }
1042 if (startTimeMillis != null) { 1060 if (startTimeMillis != null) {
1043 _json["startTimeMillis"] = startTimeMillis; 1061 _json["startTimeMillis"] = startTimeMillis;
1044 } 1062 }
1045 return _json; 1063 return _json;
1046 } 1064 }
1047 } 1065 }
1048 1066
1049 class AggregateResponse { 1067 class AggregateResponse {
1050 /** A list of buckets containing the aggregated data. */ 1068 /** A list of buckets containing the aggregated data. */
1051 core.List<AggregateBucket> bucket; 1069 core.List<AggregateBucket> bucket;
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
1703 */ 1721 */
1704 class Device { 1722 class Device {
1705 /** Manufacturer of the product/hardware. */ 1723 /** Manufacturer of the product/hardware. */
1706 core.String manufacturer; 1724 core.String manufacturer;
1707 /** End-user visible model name for the device. */ 1725 /** End-user visible model name for the device. */
1708 core.String model; 1726 core.String model;
1709 /** 1727 /**
1710 * A constant representing the type of the device. 1728 * A constant representing the type of the device.
1711 * Possible string values are: 1729 * Possible string values are:
1712 * - "chestStrap" 1730 * - "chestStrap"
1731 * - "headMounted"
1713 * - "phone" 1732 * - "phone"
1714 * - "scale" 1733 * - "scale"
1715 * - "tablet" 1734 * - "tablet"
1716 * - "unknown" 1735 * - "unknown"
1717 * - "watch" 1736 * - "watch"
1718 */ 1737 */
1719 core.String type; 1738 core.String type;
1720 /** 1739 /**
1721 * The serial number or other unique ID for the hardware. This field is 1740 * The serial number or other unique ID for the hardware. This field is
1722 * obfuscated when read by any REST or Android client that did not create the 1741 * obfuscated when read by any REST or Android client that did not create the
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
2040 var _json = new core.Map(); 2059 var _json = new core.Map();
2041 if (key != null) { 2060 if (key != null) {
2042 _json["key"] = key; 2061 _json["key"] = key;
2043 } 2062 }
2044 if (value != null) { 2063 if (value != null) {
2045 _json["value"] = (value).toJson(); 2064 _json["value"] = (value).toJson();
2046 } 2065 }
2047 return _json; 2066 return _json;
2048 } 2067 }
2049 } 2068 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/dfareporting/v2_6.dart ('k') | generated/googleapis/lib/genomics/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698