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

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

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 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/youtubeanalytics/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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 uploadMedia: _uploadMedia, 186 uploadMedia: _uploadMedia,
187 downloadOptions: _downloadOptions); 187 downloadOptions: _downloadOptions);
188 return _response.then((data) => new Job.fromJson(data)); 188 return _response.then((data) => new Job.fromJson(data));
189 } 189 }
190 190
191 /** 191 /**
192 * Lists jobs. 192 * Lists jobs.
193 * 193 *
194 * Request parameters: 194 * Request parameters:
195 * 195 *
196 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf
197 * the user is acting on. If
198 * not set, the user is acting for himself (his own channel).
199 *
200 * [pageToken] - A token identifying a page of results the server should 196 * [pageToken] - A token identifying a page of results the server should
201 * return. Typically, 197 * return. Typically,
202 * this is the value of 198 * this is the value of
203 * ListReportTypesResponse.next_page_token 199 * ListReportTypesResponse.next_page_token
204 * returned in response to the previous call to the `ListJobs` method. 200 * returned in response to the previous call to the `ListJobs` method.
205 * 201 *
206 * [includeSystemManaged] - If set to true, also system-managed jobs will be 202 * [includeSystemManaged] - If set to true, also system-managed jobs will be
207 * returned; otherwise only 203 * returned; otherwise only
208 * user-created jobs will be returned. System-managed jobs can neither be 204 * user-created jobs will be returned. System-managed jobs can neither be
209 * modified nor deleted. 205 * modified nor deleted.
210 * 206 *
211 * [pageSize] - Requested page size. Server may return fewer jobs than 207 * [pageSize] - Requested page size. Server may return fewer jobs than
212 * requested. 208 * requested.
213 * If unspecified, server will pick an appropriate default. 209 * If unspecified, server will pick an appropriate default.
214 * 210 *
211 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf
212 * the user is acting on. If
213 * not set, the user is acting for himself (his own channel).
214 *
215 * Completes with a [ListJobsResponse]. 215 * Completes with a [ListJobsResponse].
216 * 216 *
217 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 217 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
218 * error. 218 * error.
219 * 219 *
220 * If the used [http.Client] completes with an error when making a REST call, 220 * If the used [http.Client] completes with an error when making a REST call,
221 * this method will complete with the same error. 221 * this method will complete with the same error.
222 */ 222 */
223 async.Future<ListJobsResponse> list({core.String onBehalfOfContentOwner, core. String pageToken, core.bool includeSystemManaged, core.int pageSize}) { 223 async.Future<ListJobsResponse> list({core.String pageToken, core.bool includeS ystemManaged, core.int pageSize, core.String onBehalfOfContentOwner}) {
224 var _url = null; 224 var _url = null;
225 var _queryParams = new core.Map(); 225 var _queryParams = new core.Map();
226 var _uploadMedia = null; 226 var _uploadMedia = null;
227 var _uploadOptions = null; 227 var _uploadOptions = null;
228 var _downloadOptions = commons.DownloadOptions.Metadata; 228 var _downloadOptions = commons.DownloadOptions.Metadata;
229 var _body = null; 229 var _body = null;
230 230
231 if (onBehalfOfContentOwner != null) {
232 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
233 }
234 if (pageToken != null) { 231 if (pageToken != null) {
235 _queryParams["pageToken"] = [pageToken]; 232 _queryParams["pageToken"] = [pageToken];
236 } 233 }
237 if (includeSystemManaged != null) { 234 if (includeSystemManaged != null) {
238 _queryParams["includeSystemManaged"] = ["${includeSystemManaged}"]; 235 _queryParams["includeSystemManaged"] = ["${includeSystemManaged}"];
239 } 236 }
240 if (pageSize != null) { 237 if (pageSize != null) {
241 _queryParams["pageSize"] = ["${pageSize}"]; 238 _queryParams["pageSize"] = ["${pageSize}"];
242 } 239 }
240 if (onBehalfOfContentOwner != null) {
241 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
242 }
243 243
244 _url = 'v1/jobs'; 244 _url = 'v1/jobs';
245 245
246 var _response = _requester.request(_url, 246 var _response = _requester.request(_url,
247 "GET", 247 "GET",
248 body: _body, 248 body: _body,
249 queryParams: _queryParams, 249 queryParams: _queryParams,
250 uploadOptions: _uploadOptions, 250 uploadOptions: _uploadOptions,
251 uploadMedia: _uploadMedia, 251 uploadMedia: _uploadMedia,
252 downloadOptions: _downloadOptions); 252 downloadOptions: _downloadOptions);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 } 314 }
315 315
316 /** 316 /**
317 * Lists reports created by a specific job. 317 * Lists reports created by a specific job.
318 * Returns NOT_FOUND if the job does not exist. 318 * Returns NOT_FOUND if the job does not exist.
319 * 319 *
320 * Request parameters: 320 * Request parameters:
321 * 321 *
322 * [jobId] - The ID of the job. 322 * [jobId] - The ID of the job.
323 * 323 *
324 * [startTimeBefore] - If set, only reports whose start time is smaller than
325 * the specified
326 * date/time are returned.
327 *
324 * [createdAfter] - If set, only reports created after the specified date/time 328 * [createdAfter] - If set, only reports created after the specified date/time
325 * are returned. 329 * are returned.
326 * 330 *
331 * [startTimeAtOrAfter] - If set, only reports whose start time is greater
332 * than or equal the
333 * specified date/time are returned.
334 *
327 * [pageToken] - A token identifying a page of results the server should 335 * [pageToken] - A token identifying a page of results the server should
328 * return. Typically, 336 * return. Typically,
329 * this is the value of 337 * this is the value of
330 * ListReportsResponse.next_page_token 338 * ListReportsResponse.next_page_token
331 * returned in response to the previous call to the `ListReports` method. 339 * returned in response to the previous call to the `ListReports` method.
332 * 340 *
333 * [startTimeAtOrAfter] - If set, only reports whose start time is greater
334 * than or equal the
335 * specified date/time are returned.
336 *
337 * [pageSize] - Requested page size. Server may return fewer report types than 341 * [pageSize] - Requested page size. Server may return fewer report types than
338 * requested. 342 * requested.
339 * If unspecified, server will pick an appropriate default. 343 * If unspecified, server will pick an appropriate default.
340 * 344 *
341 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf 345 * [onBehalfOfContentOwner] - The content owner's external ID on which behalf
342 * the user is acting on. If 346 * the user is acting on. If
343 * not set, the user is acting for himself (his own channel). 347 * not set, the user is acting for himself (his own channel).
344 * 348 *
345 * [startTimeBefore] - If set, only reports whose start time is smaller than
346 * the specified
347 * date/time are returned.
348 *
349 * Completes with a [ListReportsResponse]. 349 * Completes with a [ListReportsResponse].
350 * 350 *
351 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 351 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
352 * error. 352 * error.
353 * 353 *
354 * If the used [http.Client] completes with an error when making a REST call, 354 * If the used [http.Client] completes with an error when making a REST call,
355 * this method will complete with the same error. 355 * this method will complete with the same error.
356 */ 356 */
357 async.Future<ListReportsResponse> list(core.String jobId, {core.String created After, core.String pageToken, core.String startTimeAtOrAfter, core.int pageSize, core.String onBehalfOfContentOwner, core.String startTimeBefore}) { 357 async.Future<ListReportsResponse> list(core.String jobId, {core.String startTi meBefore, core.String createdAfter, core.String startTimeAtOrAfter, core.String pageToken, core.int pageSize, core.String onBehalfOfContentOwner}) {
358 var _url = null; 358 var _url = null;
359 var _queryParams = new core.Map(); 359 var _queryParams = new core.Map();
360 var _uploadMedia = null; 360 var _uploadMedia = null;
361 var _uploadOptions = null; 361 var _uploadOptions = null;
362 var _downloadOptions = commons.DownloadOptions.Metadata; 362 var _downloadOptions = commons.DownloadOptions.Metadata;
363 var _body = null; 363 var _body = null;
364 364
365 if (jobId == null) { 365 if (jobId == null) {
366 throw new core.ArgumentError("Parameter jobId is required."); 366 throw new core.ArgumentError("Parameter jobId is required.");
367 } 367 }
368 if (startTimeBefore != null) {
369 _queryParams["startTimeBefore"] = [startTimeBefore];
370 }
368 if (createdAfter != null) { 371 if (createdAfter != null) {
369 _queryParams["createdAfter"] = [createdAfter]; 372 _queryParams["createdAfter"] = [createdAfter];
370 } 373 }
374 if (startTimeAtOrAfter != null) {
375 _queryParams["startTimeAtOrAfter"] = [startTimeAtOrAfter];
376 }
371 if (pageToken != null) { 377 if (pageToken != null) {
372 _queryParams["pageToken"] = [pageToken]; 378 _queryParams["pageToken"] = [pageToken];
373 } 379 }
374 if (startTimeAtOrAfter != null) {
375 _queryParams["startTimeAtOrAfter"] = [startTimeAtOrAfter];
376 }
377 if (pageSize != null) { 380 if (pageSize != null) {
378 _queryParams["pageSize"] = ["${pageSize}"]; 381 _queryParams["pageSize"] = ["${pageSize}"];
379 } 382 }
380 if (onBehalfOfContentOwner != null) { 383 if (onBehalfOfContentOwner != null) {
381 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; 384 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner];
382 } 385 }
383 if (startTimeBefore != null) {
384 _queryParams["startTimeBefore"] = [startTimeBefore];
385 }
386 386
387 _url = 'v1/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/reports'; 387 _url = 'v1/jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/reports';
388 388
389 var _response = _requester.request(_url, 389 var _response = _requester.request(_url,
390 "GET", 390 "GET",
391 body: _body, 391 body: _body,
392 queryParams: _queryParams, 392 queryParams: _queryParams,
393 uploadOptions: _uploadOptions, 393 uploadOptions: _uploadOptions,
394 uploadMedia: _uploadMedia, 394 uploadMedia: _uploadMedia,
395 downloadOptions: _downloadOptions); 395 downloadOptions: _downloadOptions);
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 * 551 *
552 * The JSON representation for `Empty` is empty JSON object `{}`. 552 * The JSON representation for `Empty` is empty JSON object `{}`.
553 */ 553 */
554 class Empty { 554 class Empty {
555 555
556 Empty(); 556 Empty();
557 557
558 Empty.fromJson(core.Map _json) { 558 Empty.fromJson(core.Map _json) {
559 } 559 }
560 560
561 core.Map toJson() { 561 core.Map<core.String, core.Object> toJson() {
562 var _json = new core.Map(); 562 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
563 return _json; 563 return _json;
564 } 564 }
565 } 565 }
566 566
567 /** A job creating reports of a specific type. */ 567 /** A job creating reports of a specific type. */
568 class Job { 568 class Job {
569 /** The creation date/time of the job. */ 569 /** The creation date/time of the job. */
570 core.String createTime; 570 core.String createTime;
571 /** 571 /**
572 * The date/time when this job will expire/expired. After a job expired, no 572 * The date/time when this job will expire/expired. After a job expired, no
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 name = _json["name"]; 604 name = _json["name"];
605 } 605 }
606 if (_json.containsKey("reportTypeId")) { 606 if (_json.containsKey("reportTypeId")) {
607 reportTypeId = _json["reportTypeId"]; 607 reportTypeId = _json["reportTypeId"];
608 } 608 }
609 if (_json.containsKey("systemManaged")) { 609 if (_json.containsKey("systemManaged")) {
610 systemManaged = _json["systemManaged"]; 610 systemManaged = _json["systemManaged"];
611 } 611 }
612 } 612 }
613 613
614 core.Map toJson() { 614 core.Map<core.String, core.Object> toJson() {
615 var _json = new core.Map(); 615 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
616 if (createTime != null) { 616 if (createTime != null) {
617 _json["createTime"] = createTime; 617 _json["createTime"] = createTime;
618 } 618 }
619 if (expireTime != null) { 619 if (expireTime != null) {
620 _json["expireTime"] = expireTime; 620 _json["expireTime"] = expireTime;
621 } 621 }
622 if (id != null) { 622 if (id != null) {
623 _json["id"] = id; 623 _json["id"] = id;
624 } 624 }
625 if (name != null) { 625 if (name != null) {
(...skipping 26 matching lines...) Expand all
652 652
653 ListJobsResponse.fromJson(core.Map _json) { 653 ListJobsResponse.fromJson(core.Map _json) {
654 if (_json.containsKey("jobs")) { 654 if (_json.containsKey("jobs")) {
655 jobs = _json["jobs"].map((value) => new Job.fromJson(value)).toList(); 655 jobs = _json["jobs"].map((value) => new Job.fromJson(value)).toList();
656 } 656 }
657 if (_json.containsKey("nextPageToken")) { 657 if (_json.containsKey("nextPageToken")) {
658 nextPageToken = _json["nextPageToken"]; 658 nextPageToken = _json["nextPageToken"];
659 } 659 }
660 } 660 }
661 661
662 core.Map toJson() { 662 core.Map<core.String, core.Object> toJson() {
663 var _json = new core.Map(); 663 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
664 if (jobs != null) { 664 if (jobs != null) {
665 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); 665 _json["jobs"] = jobs.map((value) => (value).toJson()).toList();
666 } 666 }
667 if (nextPageToken != null) { 667 if (nextPageToken != null) {
668 _json["nextPageToken"] = nextPageToken; 668 _json["nextPageToken"] = nextPageToken;
669 } 669 }
670 return _json; 670 return _json;
671 } 671 }
672 } 672 }
673 673
(...skipping 15 matching lines...) Expand all
689 689
690 ListReportTypesResponse.fromJson(core.Map _json) { 690 ListReportTypesResponse.fromJson(core.Map _json) {
691 if (_json.containsKey("nextPageToken")) { 691 if (_json.containsKey("nextPageToken")) {
692 nextPageToken = _json["nextPageToken"]; 692 nextPageToken = _json["nextPageToken"];
693 } 693 }
694 if (_json.containsKey("reportTypes")) { 694 if (_json.containsKey("reportTypes")) {
695 reportTypes = _json["reportTypes"].map((value) => new ReportType.fromJson( value)).toList(); 695 reportTypes = _json["reportTypes"].map((value) => new ReportType.fromJson( value)).toList();
696 } 696 }
697 } 697 }
698 698
699 core.Map toJson() { 699 core.Map<core.String, core.Object> toJson() {
700 var _json = new core.Map(); 700 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
701 if (nextPageToken != null) { 701 if (nextPageToken != null) {
702 _json["nextPageToken"] = nextPageToken; 702 _json["nextPageToken"] = nextPageToken;
703 } 703 }
704 if (reportTypes != null) { 704 if (reportTypes != null) {
705 _json["reportTypes"] = reportTypes.map((value) => (value).toJson()).toList (); 705 _json["reportTypes"] = reportTypes.map((value) => (value).toJson()).toList ();
706 } 706 }
707 return _json; 707 return _json;
708 } 708 }
709 } 709 }
710 710
(...skipping 14 matching lines...) Expand all
725 725
726 ListReportsResponse.fromJson(core.Map _json) { 726 ListReportsResponse.fromJson(core.Map _json) {
727 if (_json.containsKey("nextPageToken")) { 727 if (_json.containsKey("nextPageToken")) {
728 nextPageToken = _json["nextPageToken"]; 728 nextPageToken = _json["nextPageToken"];
729 } 729 }
730 if (_json.containsKey("reports")) { 730 if (_json.containsKey("reports")) {
731 reports = _json["reports"].map((value) => new Report.fromJson(value)).toLi st(); 731 reports = _json["reports"].map((value) => new Report.fromJson(value)).toLi st();
732 } 732 }
733 } 733 }
734 734
735 core.Map toJson() { 735 core.Map<core.String, core.Object> toJson() {
736 var _json = new core.Map(); 736 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
737 if (nextPageToken != null) { 737 if (nextPageToken != null) {
738 _json["nextPageToken"] = nextPageToken; 738 _json["nextPageToken"] = nextPageToken;
739 } 739 }
740 if (reports != null) { 740 if (reports != null) {
741 _json["reports"] = reports.map((value) => (value).toJson()).toList(); 741 _json["reports"] = reports.map((value) => (value).toJson()).toList();
742 } 742 }
743 return _json; 743 return _json;
744 } 744 }
745 } 745 }
746 746
747 /** Media resource. */ 747 /** Media resource. */
748 class Media { 748 class Media {
749 /** Name of the media resource. */ 749 /** Name of the media resource. */
750 core.String resourceName; 750 core.String resourceName;
751 751
752 Media(); 752 Media();
753 753
754 Media.fromJson(core.Map _json) { 754 Media.fromJson(core.Map _json) {
755 if (_json.containsKey("resourceName")) { 755 if (_json.containsKey("resourceName")) {
756 resourceName = _json["resourceName"]; 756 resourceName = _json["resourceName"];
757 } 757 }
758 } 758 }
759 759
760 core.Map toJson() { 760 core.Map<core.String, core.Object> toJson() {
761 var _json = new core.Map(); 761 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
762 if (resourceName != null) { 762 if (resourceName != null) {
763 _json["resourceName"] = resourceName; 763 _json["resourceName"] = resourceName;
764 } 764 }
765 return _json; 765 return _json;
766 } 766 }
767 } 767 }
768 768
769 /** 769 /**
770 * A report's metadata including the URL from which the report itself can be 770 * A report's metadata including the URL from which the report itself can be
771 * downloaded. 771 * downloaded.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 jobExpireTime = _json["jobExpireTime"]; 813 jobExpireTime = _json["jobExpireTime"];
814 } 814 }
815 if (_json.containsKey("jobId")) { 815 if (_json.containsKey("jobId")) {
816 jobId = _json["jobId"]; 816 jobId = _json["jobId"];
817 } 817 }
818 if (_json.containsKey("startTime")) { 818 if (_json.containsKey("startTime")) {
819 startTime = _json["startTime"]; 819 startTime = _json["startTime"];
820 } 820 }
821 } 821 }
822 822
823 core.Map toJson() { 823 core.Map<core.String, core.Object> toJson() {
824 var _json = new core.Map(); 824 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
825 if (createTime != null) { 825 if (createTime != null) {
826 _json["createTime"] = createTime; 826 _json["createTime"] = createTime;
827 } 827 }
828 if (downloadUrl != null) { 828 if (downloadUrl != null) {
829 _json["downloadUrl"] = downloadUrl; 829 _json["downloadUrl"] = downloadUrl;
830 } 830 }
831 if (endTime != null) { 831 if (endTime != null) {
832 _json["endTime"] = endTime; 832 _json["endTime"] = endTime;
833 } 833 }
834 if (id != null) { 834 if (id != null) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 id = _json["id"]; 872 id = _json["id"];
873 } 873 }
874 if (_json.containsKey("name")) { 874 if (_json.containsKey("name")) {
875 name = _json["name"]; 875 name = _json["name"];
876 } 876 }
877 if (_json.containsKey("systemManaged")) { 877 if (_json.containsKey("systemManaged")) {
878 systemManaged = _json["systemManaged"]; 878 systemManaged = _json["systemManaged"];
879 } 879 }
880 } 880 }
881 881
882 core.Map toJson() { 882 core.Map<core.String, core.Object> toJson() {
883 var _json = new core.Map(); 883 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
884 if (deprecateTime != null) { 884 if (deprecateTime != null) {
885 _json["deprecateTime"] = deprecateTime; 885 _json["deprecateTime"] = deprecateTime;
886 } 886 }
887 if (id != null) { 887 if (id != null) {
888 _json["id"] = id; 888 _json["id"] = id;
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/youtubeanalytics/v1.dart ('k') | generated/googleapis/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698