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

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

Issue 2779563003: Api-roll 47: 2017-03-27 (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « generated/googleapis/lib/vision/v1.dart ('k') | generated/googleapis/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.youtubereporting.v1; 3 library googleapis.youtubereporting.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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 final commons.ApiRequester _requester; 469 final commons.ApiRequester _requester;
470 470
471 ReportTypesResourceApi(commons.ApiRequester client) : 471 ReportTypesResourceApi(commons.ApiRequester client) :
472 _requester = client; 472 _requester = client;
473 473
474 /** 474 /**
475 * Lists report types. 475 * Lists report types.
476 * 476 *
477 * Request parameters: 477 * Request parameters:
478 * 478 *
479 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf
480 * the user is acting on. If
481 * not set, the user is acting for himself (his own channel).
482 *
483 * [pageToken] - A token identifying a page of results the server should 479 * [pageToken] - A token identifying a page of results the server should
484 * return. Typically, 480 * return. Typically,
485 * this is the value of 481 * this is the value of
486 * ListReportTypesResponse.next_page_token 482 * ListReportTypesResponse.next_page_token
487 * returned in response to the previous call to the `ListReportTypes` method. 483 * returned in response to the previous call to the `ListReportTypes` method.
488 * 484 *
489 * [includeSystemManaged] - If set to true, also system-managed report types 485 * [includeSystemManaged] - If set to true, also system-managed report types
490 * will be returned; 486 * will be returned;
491 * otherwise only the report types that can be used to create new reporting 487 * otherwise only the report types that can be used to create new reporting
492 * jobs will be returned. 488 * jobs will be returned.
493 * 489 *
494 * [pageSize] - Requested page size. Server may return fewer report types than 490 * [pageSize] - Requested page size. Server may return fewer report types than
495 * requested. 491 * requested.
496 * If unspecified, server will pick an appropriate default. 492 * If unspecified, server will pick an appropriate default.
497 * 493 *
494 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf
495 * the user is acting on. If
496 * not set, the user is acting for himself (his own channel).
497 *
498 * Completes with a [ListReportTypesResponse]. 498 * Completes with a [ListReportTypesResponse].
499 * 499 *
500 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 500 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
501 * error. 501 * error.
502 * 502 *
503 * If the used [http.Client] completes with an error when making a REST call, 503 * If the used [http.Client] completes with an error when making a REST call,
504 * this method will complete with the same error. 504 * this method will complete with the same error.
505 */ 505 */
506 async.Future<ListReportTypesResponse> list({core.String onBehalfOfContentOwner , core.String pageToken, core.bool includeSystemManaged, core.int pageSize}) { 506 async.Future<ListReportTypesResponse> list({core.String pageToken, core.bool i ncludeSystemManaged, core.int pageSize, core.String onBehalfOfContentOwner}) {
507 var _url = null; 507 var _url = null;
508 var _queryParams = new core.Map(); 508 var _queryParams = new core.Map();
509 var _uploadMedia = null; 509 var _uploadMedia = null;
510 var _uploadOptions = null; 510 var _uploadOptions = null;
511 var _downloadOptions = commons.DownloadOptions.Metadata; 511 var _downloadOptions = commons.DownloadOptions.Metadata;
512 var _body = null; 512 var _body = null;
513 513
514 if (onBehalfOfContentOwner != null) {
515 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
516 }
517 if (pageToken != null) { 514 if (pageToken != null) {
518 _queryParams["pageToken"] = [pageToken]; 515 _queryParams["pageToken"] = [pageToken];
519 } 516 }
520 if (includeSystemManaged != null) { 517 if (includeSystemManaged != null) {
521 _queryParams["includeSystemManaged"] = ["${includeSystemManaged}"]; 518 _queryParams["includeSystemManaged"] = ["${includeSystemManaged}"];
522 } 519 }
523 if (pageSize != null) { 520 if (pageSize != null) {
524 _queryParams["pageSize"] = ["${pageSize}"]; 521 _queryParams["pageSize"] = ["${pageSize}"];
525 } 522 }
523 if (onBehalfOfContentOwner != null) {
524 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
525 }
526 526
527 _url = 'v1/reportTypes'; 527 _url = 'v1/reportTypes';
528 528
529 var _response = _requester.request(_url, 529 var _response = _requester.request(_url,
530 "GET", 530 "GET",
531 body: _body, 531 body: _body,
532 queryParams: _queryParams, 532 queryParams: _queryParams,
533 uploadOptions: _uploadOptions, 533 uploadOptions: _uploadOptions,
534 uploadMedia: _uploadMedia, 534 uploadMedia: _uploadMedia,
535 downloadOptions: _downloadOptions); 535 downloadOptions: _downloadOptions);
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 } 889 }
890 if (name != null) { 890 if (name != null) {
891 _json["name"] = name; 891 _json["name"] = name;
892 } 892 }
893 if (systemManaged != null) { 893 if (systemManaged != null) {
894 _json["systemManaged"] = systemManaged; 894 _json["systemManaged"] = systemManaged;
895 } 895 }
896 return _json; 896 return _json;
897 } 897 }
898 } 898 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/vision/v1.dart ('k') | generated/googleapis/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698