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

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

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 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.streetviewpublish.v1; 3 library googleapis.streetviewpublish.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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 uploadMedia: _uploadMedia, 512 uploadMedia: _uploadMedia,
513 downloadOptions: _downloadOptions); 513 downloadOptions: _downloadOptions);
514 return _response.then((data) => new BatchUpdatePhotosResponse.fromJson(data) ); 514 return _response.then((data) => new BatchUpdatePhotosResponse.fromJson(data) );
515 } 515 }
516 516
517 /** 517 /**
518 * Lists all the Photos that belong to the user. 518 * Lists all the Photos that belong to the user.
519 * 519 *
520 * Request parameters: 520 * Request parameters:
521 * 521 *
522 * [filter] - The filter expression. For example:
523 * `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.
524 *
522 * [pageToken] - The 525 * [pageToken] - The
523 * nextPageToken 526 * nextPageToken
524 * value returned from a previous 527 * value returned from a previous
525 * ListPhotos 528 * ListPhotos
526 * request, if any. 529 * request, if any.
527 * 530 *
528 * [pageSize] - The maximum number of photos to return. 531 * [pageSize] - The maximum number of photos to return.
529 * `pageSize` must be non-negative. If `pageSize` is zero or is not provided, 532 * `pageSize` must be non-negative. If `pageSize` is zero or is not provided,
530 * the default page size of 100 will be used. 533 * the default page size of 100 will be used.
531 * The number of photos returned in the response may be less than `pageSize` 534 * The number of photos returned in the response may be less than `pageSize`
532 * if the number of photos that belong to the user is less than `pageSize`. 535 * if the number of photos that belong to the user is less than `pageSize`.
533 * 536 *
534 * [view] - Specifies if a download URL for the photos bytes should be 537 * [view] - Specifies if a download URL for the photos bytes should be
535 * returned in the 538 * returned in the
536 * Photos response. 539 * Photos response.
537 * Possible string values are: 540 * Possible string values are:
538 * - "BASIC" : A BASIC. 541 * - "BASIC" : A BASIC.
539 * - "INCLUDE_DOWNLOAD_URL" : A INCLUDE_DOWNLOAD_URL. 542 * - "INCLUDE_DOWNLOAD_URL" : A INCLUDE_DOWNLOAD_URL.
540 * 543 *
541 * [filter] - The filter expression. For example:
542 * `placeId=ChIJj61dQgK6j4AR4GeTYWZsKWw`.
543 *
544 * Completes with a [ListPhotosResponse]. 544 * Completes with a [ListPhotosResponse].
545 * 545 *
546 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 546 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
547 * error. 547 * error.
548 * 548 *
549 * If the used [http.Client] completes with an error when making a REST call, 549 * If the used [http.Client] completes with an error when making a REST call,
550 * this method will complete with the same error. 550 * this method will complete with the same error.
551 */ 551 */
552 async.Future<ListPhotosResponse> list({core.String pageToken, core.int pageSiz e, core.String view, core.String filter}) { 552 async.Future<ListPhotosResponse> list({core.String filter, core.String pageTok en, core.int pageSize, core.String view}) {
553 var _url = null; 553 var _url = null;
554 var _queryParams = new core.Map(); 554 var _queryParams = new core.Map();
555 var _uploadMedia = null; 555 var _uploadMedia = null;
556 var _uploadOptions = null; 556 var _uploadOptions = null;
557 var _downloadOptions = commons.DownloadOptions.Metadata; 557 var _downloadOptions = commons.DownloadOptions.Metadata;
558 var _body = null; 558 var _body = null;
559 559
560 if (filter != null) {
561 _queryParams["filter"] = [filter];
562 }
560 if (pageToken != null) { 563 if (pageToken != null) {
561 _queryParams["pageToken"] = [pageToken]; 564 _queryParams["pageToken"] = [pageToken];
562 } 565 }
563 if (pageSize != null) { 566 if (pageSize != null) {
564 _queryParams["pageSize"] = ["${pageSize}"]; 567 _queryParams["pageSize"] = ["${pageSize}"];
565 } 568 }
566 if (view != null) { 569 if (view != null) {
567 _queryParams["view"] = [view]; 570 _queryParams["view"] = [view];
568 } 571 }
569 if (filter != null) {
570 _queryParams["filter"] = [filter];
571 }
572 572
573 _url = 'v1/photos'; 573 _url = 'v1/photos';
574 574
575 var _response = _requester.request(_url, 575 var _response = _requester.request(_url,
576 "GET", 576 "GET",
577 body: _body, 577 body: _body,
578 queryParams: _queryParams, 578 queryParams: _queryParams,
579 uploadOptions: _uploadOptions, 579 uploadOptions: _uploadOptions,
580 uploadMedia: _uploadMedia, 580 uploadMedia: _uploadMedia,
581 downloadOptions: _downloadOptions); 581 downloadOptions: _downloadOptions);
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 } 1400 }
1401 1401
1402 core.Map<core.String, core.Object> toJson() { 1402 core.Map<core.String, core.Object> toJson() {
1403 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1403 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1404 if (uploadUrl != null) { 1404 if (uploadUrl != null) {
1405 _json["uploadUrl"] = uploadUrl; 1405 _json["uploadUrl"] = uploadUrl;
1406 } 1406 }
1407 return _json; 1407 return _json;
1408 } 1408 }
1409 } 1409 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/storagetransfer/v1.dart ('k') | generated/googleapis/lib/vault/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698