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

Side by Side Diff: generated/googleapis/lib/youtubeanalytics/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
« no previous file with comments | « generated/googleapis/lib/youtube/v3.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 library googleapis.youtubeAnalytics.v1; 1 library googleapis.youtubeAnalytics.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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 uploadOptions: _uploadOptions, 266 uploadOptions: _uploadOptions,
267 uploadMedia: _uploadMedia, 267 uploadMedia: _uploadMedia,
268 downloadOptions: _downloadOptions); 268 downloadOptions: _downloadOptions);
269 return _response.then((data) => new ResultTable.fromJson(data)); 269 return _response.then((data) => new ResultTable.fromJson(data));
270 } 270 }
271 271
272 } 272 }
273 273
274 274
275 275
276 /** 276 /** Not documented yet. */
277 * A paginated list of batchReportDefinition resources returned in response to a 277 class BatchReportOutputs {
278 * youtubeAnalytics.batchReportDefinitions.list request.
279 */
280 class BatchReportDefinitionList {
281 /** 278 /**
282 * A list of batchReportDefinition resources that match the request criteria. 279 * Cloud storage URL to download this report. This URL is valid for 30
280 * minutes.
283 */ 281 */
284 core.List<BatchReportDefinitionTemplate> items; 282 core.String downloadUrl;
285 283
286 /**
287 * This value specifies the type of data included in the API response. For the
288 * list method, the kind property value is
289 * youtubeAnalytics#batchReportDefinitionList.
290 */
291 core.String kind;
292
293
294 BatchReportDefinitionList();
295
296 BatchReportDefinitionList.fromJson(core.Map _json) {
297 if (_json.containsKey("items")) {
298 items = _json["items"].map((value) => new BatchReportDefinitionTemplate.fr omJson(value)).toList();
299 }
300 if (_json.containsKey("kind")) {
301 kind = _json["kind"];
302 }
303 }
304
305 core.Map toJson() {
306 var _json = new core.Map();
307 if (items != null) {
308 _json["items"] = items.map((value) => (value).toJson()).toList();
309 }
310 if (kind != null) {
311 _json["kind"] = kind;
312 }
313 return _json;
314 }
315 }
316
317
318 /** Not documented yet. */
319 class BatchReportDefinitionTemplateDefaultOutput {
320 /** Format of the output. */ 284 /** Format of the output. */
321 core.String format; 285 core.String format;
322 286
323 /** Type of the output. */ 287 /** Type of the output. */
324 core.String type; 288 core.String type;
325 289
326 290
327 BatchReportDefinitionTemplateDefaultOutput(); 291 BatchReportOutputs();
328 292
329 BatchReportDefinitionTemplateDefaultOutput.fromJson(core.Map _json) { 293 BatchReportOutputs.fromJson(core.Map _json) {
294 if (_json.containsKey("downloadUrl")) {
295 downloadUrl = _json["downloadUrl"];
296 }
330 if (_json.containsKey("format")) { 297 if (_json.containsKey("format")) {
331 format = _json["format"]; 298 format = _json["format"];
332 } 299 }
333 if (_json.containsKey("type")) { 300 if (_json.containsKey("type")) {
334 type = _json["type"]; 301 type = _json["type"];
335 } 302 }
336 } 303 }
337 304
338 core.Map toJson() { 305 core.Map toJson() {
339 var _json = new core.Map(); 306 var _json = new core.Map();
307 if (downloadUrl != null) {
308 _json["downloadUrl"] = downloadUrl;
309 }
340 if (format != null) { 310 if (format != null) {
341 _json["format"] = format; 311 _json["format"] = format;
342 } 312 }
343 if (type != null) { 313 if (type != null) {
344 _json["type"] = type; 314 _json["type"] = type;
345 } 315 }
346 return _json; 316 return _json;
347 } 317 }
348 } 318 }
349 319
350 320
321 /**
322 * Period included in the report. For reports containing all entities endTime is
323 * not set. Both startTime and endTime are inclusive.
324 */
325 class BatchReportTimeSpan {
326 /**
327 * End of the period included in the report. Inclusive. For reports containing
328 * all entities endTime is not set.
329 */
330 core.DateTime endTime;
331
332 /** Start of the period included in the report. Inclusive. */
333 core.DateTime startTime;
334
335
336 BatchReportTimeSpan();
337
338 BatchReportTimeSpan.fromJson(core.Map _json) {
339 if (_json.containsKey("endTime")) {
340 endTime = core.DateTime.parse(_json["endTime"]);
341 }
342 if (_json.containsKey("startTime")) {
343 startTime = core.DateTime.parse(_json["startTime"]);
344 }
345 }
346
347 core.Map toJson() {
348 var _json = new core.Map();
349 if (endTime != null) {
350 _json["endTime"] = (endTime).toIso8601String();
351 }
352 if (startTime != null) {
353 _json["startTime"] = (startTime).toIso8601String();
354 }
355 return _json;
356 }
357 }
358
359
360 /** Contains single batchReport resource. */
361 class BatchReport {
362 /** The ID that YouTube assigns and uses to uniquely identify the report. */
363 core.String id;
364
365 /**
366 * This value specifies the type of data of this item. For batch report the
367 * kind property value is youtubeAnalytics#batchReport.
368 */
369 core.String kind;
370
371 /** Report outputs. */
372 core.List<BatchReportOutputs> outputs;
373
374 /** The ID of the the report definition. */
375 core.String reportId;
376
377 /**
378 * Period included in the report. For reports containing all entities endTime
379 * is not set. Both startTime and endTime are inclusive.
380 */
381 BatchReportTimeSpan timeSpan;
382
383 /** The time when the report was updated. */
384 core.DateTime timeUpdated;
385
386
387 BatchReport();
388
389 BatchReport.fromJson(core.Map _json) {
390 if (_json.containsKey("id")) {
391 id = _json["id"];
392 }
393 if (_json.containsKey("kind")) {
394 kind = _json["kind"];
395 }
396 if (_json.containsKey("outputs")) {
397 outputs = _json["outputs"].map((value) => new BatchReportOutputs.fromJson( value)).toList();
398 }
399 if (_json.containsKey("reportId")) {
400 reportId = _json["reportId"];
401 }
402 if (_json.containsKey("timeSpan")) {
403 timeSpan = new BatchReportTimeSpan.fromJson(_json["timeSpan"]);
404 }
405 if (_json.containsKey("timeUpdated")) {
406 timeUpdated = core.DateTime.parse(_json["timeUpdated"]);
407 }
408 }
409
410 core.Map toJson() {
411 var _json = new core.Map();
412 if (id != null) {
413 _json["id"] = id;
414 }
415 if (kind != null) {
416 _json["kind"] = kind;
417 }
418 if (outputs != null) {
419 _json["outputs"] = outputs.map((value) => (value).toJson()).toList();
420 }
421 if (reportId != null) {
422 _json["reportId"] = reportId;
423 }
424 if (timeSpan != null) {
425 _json["timeSpan"] = (timeSpan).toJson();
426 }
427 if (timeUpdated != null) {
428 _json["timeUpdated"] = (timeUpdated).toIso8601String();
429 }
430 return _json;
431 }
432 }
433
434
351 /** Contains single batchReportDefinition resource. */ 435 /** Contains single batchReportDefinition resource. */
352 class BatchReportDefinitionTemplate { 436 class BatchReportDefinition {
353 /** Default report definition's output. */
354 core.List<BatchReportDefinitionTemplateDefaultOutput> defaultOutput;
355
356 /** 437 /**
357 * The ID that YouTube assigns and uses to uniquely identify the report 438 * The ID that YouTube assigns and uses to uniquely identify the report
358 * definition. 439 * definition.
359 */ 440 */
360 core.String id; 441 core.String id;
361 442
443 /**
444 * This value specifies the type of data of this item. For batch report
445 * definition the kind property value is
446 * youtubeAnalytics#batchReportDefinition.
447 */
448 core.String kind;
449
362 /** Name of the report definition. */ 450 /** Name of the report definition. */
363 core.String name; 451 core.String name;
364 452
365 /** Status of the report definition. */ 453 /** Status of the report definition. */
366 core.String status; 454 core.String status;
367 455
368 /** Type of the report definition. */ 456 /** Type of the report definition. */
369 core.String type; 457 core.String type;
370 458
371 459
372 BatchReportDefinitionTemplate(); 460 BatchReportDefinition();
373 461
374 BatchReportDefinitionTemplate.fromJson(core.Map _json) { 462 BatchReportDefinition.fromJson(core.Map _json) {
375 if (_json.containsKey("defaultOutput")) {
376 defaultOutput = _json["defaultOutput"].map((value) => new BatchReportDefin itionTemplateDefaultOutput.fromJson(value)).toList();
377 }
378 if (_json.containsKey("id")) { 463 if (_json.containsKey("id")) {
379 id = _json["id"]; 464 id = _json["id"];
380 } 465 }
466 if (_json.containsKey("kind")) {
467 kind = _json["kind"];
468 }
381 if (_json.containsKey("name")) { 469 if (_json.containsKey("name")) {
382 name = _json["name"]; 470 name = _json["name"];
383 } 471 }
384 if (_json.containsKey("status")) { 472 if (_json.containsKey("status")) {
385 status = _json["status"]; 473 status = _json["status"];
386 } 474 }
387 if (_json.containsKey("type")) { 475 if (_json.containsKey("type")) {
388 type = _json["type"]; 476 type = _json["type"];
389 }
390 }
391
392 core.Map toJson() {
393 var _json = new core.Map();
394 if (defaultOutput != null) {
395 _json["defaultOutput"] = defaultOutput.map((value) => (value).toJson()).to List();
396 }
397 if (id != null) {
398 _json["id"] = id;
399 }
400 if (name != null) {
401 _json["name"] = name;
402 }
403 if (status != null) {
404 _json["status"] = status;
405 }
406 if (type != null) {
407 _json["type"] = type;
408 }
409 return _json;
410 }
411 }
412
413
414 /**
415 * A paginated list of batchReport resources returned in response to a
416 * youtubeAnalytics.batchReport.list request.
417 */
418 class BatchReportList {
419 /** A list of batchReport resources that match the request criteria. */
420 core.List<BatchReportTemplate> items;
421
422 /**
423 * This value specifies the type of data included in the API response. For the
424 * list method, the kind property value is youtubeAnalytics#batchReportList.
425 */
426 core.String kind;
427
428
429 BatchReportList();
430
431 BatchReportList.fromJson(core.Map _json) {
432 if (_json.containsKey("items")) {
433 items = _json["items"].map((value) => new BatchReportTemplate.fromJson(val ue)).toList();
434 }
435 if (_json.containsKey("kind")) {
436 kind = _json["kind"];
437 }
438 }
439
440 core.Map toJson() {
441 var _json = new core.Map();
442 if (items != null) {
443 _json["items"] = items.map((value) => (value).toJson()).toList();
444 }
445 if (kind != null) {
446 _json["kind"] = kind;
447 }
448 return _json;
449 }
450 }
451
452
453 /** Not documented yet. */
454 class BatchReportTemplateOutputs {
455 /**
456 * Cloud storage URL to download this report. This URL is valid for 30
457 * minutes.
458 */
459 core.String downloadUrl;
460
461 /** Format of the output. */
462 core.String format;
463
464 /** Type of the output. */
465 core.String type;
466
467
468 BatchReportTemplateOutputs();
469
470 BatchReportTemplateOutputs.fromJson(core.Map _json) {
471 if (_json.containsKey("downloadUrl")) {
472 downloadUrl = _json["downloadUrl"];
473 }
474 if (_json.containsKey("format")) {
475 format = _json["format"];
476 }
477 if (_json.containsKey("type")) {
478 type = _json["type"];
479 } 477 }
480 } 478 }
481 479
482 core.Map toJson() { 480 core.Map toJson() {
483 var _json = new core.Map(); 481 var _json = new core.Map();
484 if (downloadUrl != null) { 482 if (id != null) {
485 _json["downloadUrl"] = downloadUrl; 483 _json["id"] = id;
486 } 484 }
487 if (format != null) { 485 if (kind != null) {
488 _json["format"] = format; 486 _json["kind"] = kind;
487 }
488 if (name != null) {
489 _json["name"] = name;
490 }
491 if (status != null) {
492 _json["status"] = status;
489 } 493 }
490 if (type != null) { 494 if (type != null) {
491 _json["type"] = type; 495 _json["type"] = type;
492 } 496 }
493 return _json; 497 return _json;
494 } 498 }
495 } 499 }
496 500
497 501
498 /** 502 /**
499 * Period included in the report. For reports containing all entities endTime is 503 * A paginated list of batchReportDefinition resources returned in response to a
500 * not set. Both startTime and endTime are inclusive. 504 * youtubeAnalytics.batchReportDefinitions.list request.
501 */ 505 */
502 class BatchReportTemplateTimeSpan { 506 class BatchReportDefinitionList {
503 /** 507 /**
504 * End of the period included in the report. Inclusive. For reports containing 508 * A list of batchReportDefinition resources that match the request criteria.
505 * all entities endTime is not set.
506 */ 509 */
507 core.DateTime endTime; 510 core.List<BatchReportDefinition> items;
508 511
509 /** Start of the period included in the report. Inclusive. */ 512 /**
510 core.DateTime startTime; 513 * This value specifies the type of data included in the API response. For the
514 * list method, the kind property value is
515 * youtubeAnalytics#batchReportDefinitionList.
516 */
517 core.String kind;
511 518
512 519
513 BatchReportTemplateTimeSpan(); 520 BatchReportDefinitionList();
514 521
515 BatchReportTemplateTimeSpan.fromJson(core.Map _json) { 522 BatchReportDefinitionList.fromJson(core.Map _json) {
516 if (_json.containsKey("endTime")) { 523 if (_json.containsKey("items")) {
517 endTime = core.DateTime.parse(_json["endTime"]); 524 items = _json["items"].map((value) => new BatchReportDefinition.fromJson(v alue)).toList();
518 } 525 }
519 if (_json.containsKey("startTime")) { 526 if (_json.containsKey("kind")) {
520 startTime = core.DateTime.parse(_json["startTime"]); 527 kind = _json["kind"];
521 } 528 }
522 } 529 }
523 530
524 core.Map toJson() { 531 core.Map toJson() {
525 var _json = new core.Map(); 532 var _json = new core.Map();
526 if (endTime != null) { 533 if (items != null) {
527 _json["endTime"] = (endTime).toIso8601String(); 534 _json["items"] = items.map((value) => (value).toJson()).toList();
528 } 535 }
529 if (startTime != null) { 536 if (kind != null) {
530 _json["startTime"] = (startTime).toIso8601String(); 537 _json["kind"] = kind;
531 } 538 }
532 return _json; 539 return _json;
533 } 540 }
534 } 541 }
535 542
536 543
537 /** Contains single batchReport resource. */ 544 /**
538 class BatchReportTemplate { 545 * A paginated list of batchReport resources returned in response to a
539 /** The ID that YouTube assigns and uses to uniquely identify the report. */ 546 * youtubeAnalytics.batchReport.list request.
540 core.String id; 547 */
541 548 class BatchReportList {
542 /** Report outputs. */ 549 /** A list of batchReport resources that match the request criteria. */
543 core.List<BatchReportTemplateOutputs> outputs; 550 core.List<BatchReport> items;
544
545 /** The ID of the the report definition. */
546 core.String reportId;
547 551
548 /** 552 /**
549 * Period included in the report. For reports containing all entities endTime 553 * This value specifies the type of data included in the API response. For the
550 * is not set. Both startTime and endTime are inclusive. 554 * list method, the kind property value is youtubeAnalytics#batchReportList.
551 */ 555 */
552 BatchReportTemplateTimeSpan timeSpan; 556 core.String kind;
553
554 /** The time when the report was updated. */
555 core.DateTime timeUpdated;
556 557
557 558
558 BatchReportTemplate(); 559 BatchReportList();
559 560
560 BatchReportTemplate.fromJson(core.Map _json) { 561 BatchReportList.fromJson(core.Map _json) {
561 if (_json.containsKey("id")) { 562 if (_json.containsKey("items")) {
562 id = _json["id"]; 563 items = _json["items"].map((value) => new BatchReport.fromJson(value)).toL ist();
563 } 564 }
564 if (_json.containsKey("outputs")) { 565 if (_json.containsKey("kind")) {
565 outputs = _json["outputs"].map((value) => new BatchReportTemplateOutputs.f romJson(value)).toList(); 566 kind = _json["kind"];
566 }
567 if (_json.containsKey("report_id")) {
568 reportId = _json["report_id"];
569 }
570 if (_json.containsKey("timeSpan")) {
571 timeSpan = new BatchReportTemplateTimeSpan.fromJson(_json["timeSpan"]);
572 }
573 if (_json.containsKey("timeUpdated")) {
574 timeUpdated = core.DateTime.parse(_json["timeUpdated"]);
575 } 567 }
576 } 568 }
577 569
578 core.Map toJson() { 570 core.Map toJson() {
579 var _json = new core.Map(); 571 var _json = new core.Map();
580 if (id != null) { 572 if (items != null) {
581 _json["id"] = id; 573 _json["items"] = items.map((value) => (value).toJson()).toList();
582 } 574 }
583 if (outputs != null) { 575 if (kind != null) {
584 _json["outputs"] = outputs.map((value) => (value).toJson()).toList(); 576 _json["kind"] = kind;
585 }
586 if (reportId != null) {
587 _json["report_id"] = reportId;
588 }
589 if (timeSpan != null) {
590 _json["timeSpan"] = (timeSpan).toJson();
591 }
592 if (timeUpdated != null) {
593 _json["timeUpdated"] = (timeUpdated).toIso8601String();
594 } 577 }
595 return _json; 578 return _json;
596 } 579 }
597 } 580 }
598 581
599 582
600 /** Not documented yet. */ 583 /** Not documented yet. */
601 class ResultTableColumnHeaders { 584 class ResultTableColumnHeaders {
602 /** The type of the column (DIMENSION or METRIC). */ 585 /** The type of the column (DIMENSION or METRIC). */
603 core.String columnType; 586 core.String columnType;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 _json["kind"] = kind; 686 _json["kind"] = kind;
704 } 687 }
705 if (rows != null) { 688 if (rows != null) {
706 _json["rows"] = rows; 689 _json["rows"] = rows;
707 } 690 }
708 return _json; 691 return _json;
709 } 692 }
710 } 693 }
711 694
712 695
OLDNEW
« no previous file with comments | « generated/googleapis/lib/youtube/v3.dart ('k') | generated/googleapis/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698