| OLD | NEW |
| 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_beta.taskqueue.v1beta2; | 3 library googleapis_beta.taskqueue.v1beta2; |
| 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 queueName = _json["queueName"]; | 531 queueName = _json["queueName"]; |
| 532 } | 532 } |
| 533 if (_json.containsKey("retry_count")) { | 533 if (_json.containsKey("retry_count")) { |
| 534 retryCount = _json["retry_count"]; | 534 retryCount = _json["retry_count"]; |
| 535 } | 535 } |
| 536 if (_json.containsKey("tag")) { | 536 if (_json.containsKey("tag")) { |
| 537 tag = _json["tag"]; | 537 tag = _json["tag"]; |
| 538 } | 538 } |
| 539 } | 539 } |
| 540 | 540 |
| 541 core.Map toJson() { | 541 core.Map<core.String, core.Object> toJson() { |
| 542 var _json = new core.Map(); | 542 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 543 if (enqueueTimestamp != null) { | 543 if (enqueueTimestamp != null) { |
| 544 _json["enqueueTimestamp"] = enqueueTimestamp; | 544 _json["enqueueTimestamp"] = enqueueTimestamp; |
| 545 } | 545 } |
| 546 if (id != null) { | 546 if (id != null) { |
| 547 _json["id"] = id; | 547 _json["id"] = id; |
| 548 } | 548 } |
| 549 if (kind != null) { | 549 if (kind != null) { |
| 550 _json["kind"] = kind; | 550 _json["kind"] = kind; |
| 551 } | 551 } |
| 552 if (leaseTimestamp != null) { | 552 if (leaseTimestamp != null) { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 adminEmails = _json["adminEmails"]; | 593 adminEmails = _json["adminEmails"]; |
| 594 } | 594 } |
| 595 if (_json.containsKey("consumerEmails")) { | 595 if (_json.containsKey("consumerEmails")) { |
| 596 consumerEmails = _json["consumerEmails"]; | 596 consumerEmails = _json["consumerEmails"]; |
| 597 } | 597 } |
| 598 if (_json.containsKey("producerEmails")) { | 598 if (_json.containsKey("producerEmails")) { |
| 599 producerEmails = _json["producerEmails"]; | 599 producerEmails = _json["producerEmails"]; |
| 600 } | 600 } |
| 601 } | 601 } |
| 602 | 602 |
| 603 core.Map toJson() { | 603 core.Map<core.String, core.Object> toJson() { |
| 604 var _json = new core.Map(); | 604 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 605 if (adminEmails != null) { | 605 if (adminEmails != null) { |
| 606 _json["adminEmails"] = adminEmails; | 606 _json["adminEmails"] = adminEmails; |
| 607 } | 607 } |
| 608 if (consumerEmails != null) { | 608 if (consumerEmails != null) { |
| 609 _json["consumerEmails"] = consumerEmails; | 609 _json["consumerEmails"] = consumerEmails; |
| 610 } | 610 } |
| 611 if (producerEmails != null) { | 611 if (producerEmails != null) { |
| 612 _json["producerEmails"] = producerEmails; | 612 _json["producerEmails"] = producerEmails; |
| 613 } | 613 } |
| 614 return _json; | 614 return _json; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 638 leasedLastMinute = _json["leasedLastMinute"]; | 638 leasedLastMinute = _json["leasedLastMinute"]; |
| 639 } | 639 } |
| 640 if (_json.containsKey("oldestTask")) { | 640 if (_json.containsKey("oldestTask")) { |
| 641 oldestTask = _json["oldestTask"]; | 641 oldestTask = _json["oldestTask"]; |
| 642 } | 642 } |
| 643 if (_json.containsKey("totalTasks")) { | 643 if (_json.containsKey("totalTasks")) { |
| 644 totalTasks = _json["totalTasks"]; | 644 totalTasks = _json["totalTasks"]; |
| 645 } | 645 } |
| 646 } | 646 } |
| 647 | 647 |
| 648 core.Map toJson() { | 648 core.Map<core.String, core.Object> toJson() { |
| 649 var _json = new core.Map(); | 649 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 650 if (leasedLastHour != null) { | 650 if (leasedLastHour != null) { |
| 651 _json["leasedLastHour"] = leasedLastHour; | 651 _json["leasedLastHour"] = leasedLastHour; |
| 652 } | 652 } |
| 653 if (leasedLastMinute != null) { | 653 if (leasedLastMinute != null) { |
| 654 _json["leasedLastMinute"] = leasedLastMinute; | 654 _json["leasedLastMinute"] = leasedLastMinute; |
| 655 } | 655 } |
| 656 if (oldestTask != null) { | 656 if (oldestTask != null) { |
| 657 _json["oldestTask"] = oldestTask; | 657 _json["oldestTask"] = oldestTask; |
| 658 } | 658 } |
| 659 if (totalTasks != null) { | 659 if (totalTasks != null) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 kind = _json["kind"]; | 691 kind = _json["kind"]; |
| 692 } | 692 } |
| 693 if (_json.containsKey("maxLeases")) { | 693 if (_json.containsKey("maxLeases")) { |
| 694 maxLeases = _json["maxLeases"]; | 694 maxLeases = _json["maxLeases"]; |
| 695 } | 695 } |
| 696 if (_json.containsKey("stats")) { | 696 if (_json.containsKey("stats")) { |
| 697 stats = new TaskQueueStats.fromJson(_json["stats"]); | 697 stats = new TaskQueueStats.fromJson(_json["stats"]); |
| 698 } | 698 } |
| 699 } | 699 } |
| 700 | 700 |
| 701 core.Map toJson() { | 701 core.Map<core.String, core.Object> toJson() { |
| 702 var _json = new core.Map(); | 702 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 703 if (acl != null) { | 703 if (acl != null) { |
| 704 _json["acl"] = (acl).toJson(); | 704 _json["acl"] = (acl).toJson(); |
| 705 } | 705 } |
| 706 if (id != null) { | 706 if (id != null) { |
| 707 _json["id"] = id; | 707 _json["id"] = id; |
| 708 } | 708 } |
| 709 if (kind != null) { | 709 if (kind != null) { |
| 710 _json["kind"] = kind; | 710 _json["kind"] = kind; |
| 711 } | 711 } |
| 712 if (maxLeases != null) { | 712 if (maxLeases != null) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 729 | 729 |
| 730 Tasks.fromJson(core.Map _json) { | 730 Tasks.fromJson(core.Map _json) { |
| 731 if (_json.containsKey("items")) { | 731 if (_json.containsKey("items")) { |
| 732 items = _json["items"].map((value) => new Task.fromJson(value)).toList(); | 732 items = _json["items"].map((value) => new Task.fromJson(value)).toList(); |
| 733 } | 733 } |
| 734 if (_json.containsKey("kind")) { | 734 if (_json.containsKey("kind")) { |
| 735 kind = _json["kind"]; | 735 kind = _json["kind"]; |
| 736 } | 736 } |
| 737 } | 737 } |
| 738 | 738 |
| 739 core.Map toJson() { | 739 core.Map<core.String, core.Object> toJson() { |
| 740 var _json = new core.Map(); | 740 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 741 if (items != null) { | 741 if (items != null) { |
| 742 _json["items"] = items.map((value) => (value).toJson()).toList(); | 742 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 743 } | 743 } |
| 744 if (kind != null) { | 744 if (kind != null) { |
| 745 _json["kind"] = kind; | 745 _json["kind"] = kind; |
| 746 } | 746 } |
| 747 return _json; | 747 return _json; |
| 748 } | 748 } |
| 749 } | 749 } |
| 750 | 750 |
| 751 class Tasks2 { | 751 class Tasks2 { |
| 752 /** The actual list of tasks currently active in the TaskQueue. */ | 752 /** The actual list of tasks currently active in the TaskQueue. */ |
| 753 core.List<Task> items; | 753 core.List<Task> items; |
| 754 /** The kind of object returned, a list of tasks. */ | 754 /** The kind of object returned, a list of tasks. */ |
| 755 core.String kind; | 755 core.String kind; |
| 756 | 756 |
| 757 Tasks2(); | 757 Tasks2(); |
| 758 | 758 |
| 759 Tasks2.fromJson(core.Map _json) { | 759 Tasks2.fromJson(core.Map _json) { |
| 760 if (_json.containsKey("items")) { | 760 if (_json.containsKey("items")) { |
| 761 items = _json["items"].map((value) => new Task.fromJson(value)).toList(); | 761 items = _json["items"].map((value) => new Task.fromJson(value)).toList(); |
| 762 } | 762 } |
| 763 if (_json.containsKey("kind")) { | 763 if (_json.containsKey("kind")) { |
| 764 kind = _json["kind"]; | 764 kind = _json["kind"]; |
| 765 } | 765 } |
| 766 } | 766 } |
| 767 | 767 |
| 768 core.Map toJson() { | 768 core.Map<core.String, core.Object> toJson() { |
| 769 var _json = new core.Map(); | 769 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 770 if (items != null) { | 770 if (items != null) { |
| 771 _json["items"] = items.map((value) => (value).toJson()).toList(); | 771 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 772 } | 772 } |
| 773 if (kind != null) { | 773 if (kind != null) { |
| 774 _json["kind"] = kind; | 774 _json["kind"] = kind; |
| 775 } | 775 } |
| 776 return _json; | 776 return _json; |
| 777 } | 777 } |
| 778 } | 778 } |
| OLD | NEW |