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

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

Issue 770773002: Api roll 7: 2014-12-01 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years 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 library googleapis.fitness.v1; 1 library googleapis.fitness.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 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 * the authenticated user. Only me is supported at this time. 420 * the authenticated user. Only me is supported at this time.
421 * 421 *
422 * [dataSourceId] - The data stream ID of the data source that created the 422 * [dataSourceId] - The data stream ID of the data source that created the
423 * dataset. 423 * dataset.
424 * 424 *
425 * [datasetId] - Dataset identifier that is a composite of the minimum data 425 * [datasetId] - Dataset identifier that is a composite of the minimum data
426 * point start time and maximum data point end time represented as nanoseconds 426 * point start time and maximum data point end time represented as nanoseconds
427 * from the epoch. The ID is formatted like: "startTime-endTime" where 427 * from the epoch. The ID is formatted like: "startTime-endTime" where
428 * startTime and endTime are 64 bit integers. 428 * startTime and endTime are 64 bit integers.
429 * 429 *
430 * [limit] - If specified, no more than this many data points will be included
431 * in the dataset. If the there are more data points in the dataset,
432 * nextPageToken will be set in the dataset response.
433 *
430 * [pageToken] - The continuation token, which is used to page through large 434 * [pageToken] - The continuation token, which is used to page through large
431 * datasets. To get the next page of a dataset, set this parameter to the 435 * datasets. To get the next page of a dataset, set this parameter to the
432 * value of nextPageToken from the previous response. Each subsequent call 436 * value of nextPageToken from the previous response. Each subsequent call
433 * will yield a partial dataset with data point end timestamps that are 437 * will yield a partial dataset with data point end timestamps that are
434 * strictly smaller than those in the previous partial response. 438 * strictly smaller than those in the previous partial response.
435 * 439 *
436 * Completes with a [Dataset]. 440 * Completes with a [Dataset].
437 * 441 *
438 * Completes with a [common.ApiRequestError] if the API endpoint returned an 442 * Completes with a [common.ApiRequestError] if the API endpoint returned an
439 * error. 443 * error.
440 * 444 *
441 * If the used [http.Client] completes with an error when making a REST call, 445 * If the used [http.Client] completes with an error when making a REST call,
442 * this method will complete with the same error. 446 * this method will complete with the same error.
443 */ 447 */
444 async.Future<Dataset> get(core.String userId, core.String dataSourceId, core.S tring datasetId, {core.String pageToken}) { 448 async.Future<Dataset> get(core.String userId, core.String dataSourceId, core.S tring datasetId, {core.int limit, core.String pageToken}) {
445 var _url = null; 449 var _url = null;
446 var _queryParams = new core.Map(); 450 var _queryParams = new core.Map();
447 var _uploadMedia = null; 451 var _uploadMedia = null;
448 var _uploadOptions = null; 452 var _uploadOptions = null;
449 var _downloadOptions = common.DownloadOptions.Metadata; 453 var _downloadOptions = common.DownloadOptions.Metadata;
450 var _body = null; 454 var _body = null;
451 455
452 if (userId == null) { 456 if (userId == null) {
453 throw new core.ArgumentError("Parameter userId is required."); 457 throw new core.ArgumentError("Parameter userId is required.");
454 } 458 }
455 if (dataSourceId == null) { 459 if (dataSourceId == null) {
456 throw new core.ArgumentError("Parameter dataSourceId is required."); 460 throw new core.ArgumentError("Parameter dataSourceId is required.");
457 } 461 }
458 if (datasetId == null) { 462 if (datasetId == null) {
459 throw new core.ArgumentError("Parameter datasetId is required."); 463 throw new core.ArgumentError("Parameter datasetId is required.");
460 } 464 }
465 if (limit != null) {
466 _queryParams["limit"] = ["${limit}"];
467 }
461 if (pageToken != null) { 468 if (pageToken != null) {
462 _queryParams["pageToken"] = [pageToken]; 469 _queryParams["pageToken"] = [pageToken];
463 } 470 }
464 471
465 472
466 _url = common_internal.Escaper.ecapeVariable('$userId') + '/dataSources/' + common_internal.Escaper.ecapeVariable('$dataSourceId') + '/datasets/' + common_i nternal.Escaper.ecapeVariable('$datasetId'); 473 _url = common_internal.Escaper.ecapeVariable('$userId') + '/dataSources/' + common_internal.Escaper.ecapeVariable('$dataSourceId') + '/datasets/' + common_i nternal.Escaper.ecapeVariable('$datasetId');
467 474
468 var _response = _requester.request(_url, 475 var _response = _requester.request(_url,
469 "GET", 476 "GET",
470 body: _body, 477 body: _body,
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 _json["fpVal"] = fpVal; 1536 _json["fpVal"] = fpVal;
1530 } 1537 }
1531 if (intVal != null) { 1538 if (intVal != null) {
1532 _json["intVal"] = intVal; 1539 _json["intVal"] = intVal;
1533 } 1540 }
1534 return _json; 1541 return _json;
1535 } 1542 }
1536 } 1543 }
1537 1544
1538 1545
OLDNEW
« no previous file with comments | « generated/googleapis/lib/doubleclicksearch/v2.dart ('k') | generated/googleapis/lib/mapsengine/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698