| 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.dns.v1; | 3 library googleapis.dns.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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 kind = _json["kind"]; | 590 kind = _json["kind"]; |
| 591 } | 591 } |
| 592 if (_json.containsKey("startTime")) { | 592 if (_json.containsKey("startTime")) { |
| 593 startTime = _json["startTime"]; | 593 startTime = _json["startTime"]; |
| 594 } | 594 } |
| 595 if (_json.containsKey("status")) { | 595 if (_json.containsKey("status")) { |
| 596 status = _json["status"]; | 596 status = _json["status"]; |
| 597 } | 597 } |
| 598 } | 598 } |
| 599 | 599 |
| 600 core.Map toJson() { | 600 core.Map<core.String, core.Object> toJson() { |
| 601 var _json = new core.Map(); | 601 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 602 if (additions != null) { | 602 if (additions != null) { |
| 603 _json["additions"] = additions.map((value) => (value).toJson()).toList(); | 603 _json["additions"] = additions.map((value) => (value).toJson()).toList(); |
| 604 } | 604 } |
| 605 if (deletions != null) { | 605 if (deletions != null) { |
| 606 _json["deletions"] = deletions.map((value) => (value).toJson()).toList(); | 606 _json["deletions"] = deletions.map((value) => (value).toJson()).toList(); |
| 607 } | 607 } |
| 608 if (id != null) { | 608 if (id != null) { |
| 609 _json["id"] = id; | 609 _json["id"] = id; |
| 610 } | 610 } |
| 611 if (kind != null) { | 611 if (kind != null) { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 changes = _json["changes"].map((value) => new Change.fromJson(value)).toLi
st(); | 651 changes = _json["changes"].map((value) => new Change.fromJson(value)).toLi
st(); |
| 652 } | 652 } |
| 653 if (_json.containsKey("kind")) { | 653 if (_json.containsKey("kind")) { |
| 654 kind = _json["kind"]; | 654 kind = _json["kind"]; |
| 655 } | 655 } |
| 656 if (_json.containsKey("nextPageToken")) { | 656 if (_json.containsKey("nextPageToken")) { |
| 657 nextPageToken = _json["nextPageToken"]; | 657 nextPageToken = _json["nextPageToken"]; |
| 658 } | 658 } |
| 659 } | 659 } |
| 660 | 660 |
| 661 core.Map toJson() { | 661 core.Map<core.String, core.Object> toJson() { |
| 662 var _json = new core.Map(); | 662 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 663 if (changes != null) { | 663 if (changes != null) { |
| 664 _json["changes"] = changes.map((value) => (value).toJson()).toList(); | 664 _json["changes"] = changes.map((value) => (value).toJson()).toList(); |
| 665 } | 665 } |
| 666 if (kind != null) { | 666 if (kind != null) { |
| 667 _json["kind"] = kind; | 667 _json["kind"] = kind; |
| 668 } | 668 } |
| 669 if (nextPageToken != null) { | 669 if (nextPageToken != null) { |
| 670 _json["nextPageToken"] = nextPageToken; | 670 _json["nextPageToken"] = nextPageToken; |
| 671 } | 671 } |
| 672 return _json; | 672 return _json; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 name = _json["name"]; | 740 name = _json["name"]; |
| 741 } | 741 } |
| 742 if (_json.containsKey("nameServerSet")) { | 742 if (_json.containsKey("nameServerSet")) { |
| 743 nameServerSet = _json["nameServerSet"]; | 743 nameServerSet = _json["nameServerSet"]; |
| 744 } | 744 } |
| 745 if (_json.containsKey("nameServers")) { | 745 if (_json.containsKey("nameServers")) { |
| 746 nameServers = _json["nameServers"]; | 746 nameServers = _json["nameServers"]; |
| 747 } | 747 } |
| 748 } | 748 } |
| 749 | 749 |
| 750 core.Map toJson() { | 750 core.Map<core.String, core.Object> toJson() { |
| 751 var _json = new core.Map(); | 751 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 752 if (creationTime != null) { | 752 if (creationTime != null) { |
| 753 _json["creationTime"] = creationTime; | 753 _json["creationTime"] = creationTime; |
| 754 } | 754 } |
| 755 if (description != null) { | 755 if (description != null) { |
| 756 _json["description"] = description; | 756 _json["description"] = description; |
| 757 } | 757 } |
| 758 if (dnsName != null) { | 758 if (dnsName != null) { |
| 759 _json["dnsName"] = dnsName; | 759 _json["dnsName"] = dnsName; |
| 760 } | 760 } |
| 761 if (id != null) { | 761 if (id != null) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 kind = _json["kind"]; | 803 kind = _json["kind"]; |
| 804 } | 804 } |
| 805 if (_json.containsKey("managedZones")) { | 805 if (_json.containsKey("managedZones")) { |
| 806 managedZones = _json["managedZones"].map((value) => new ManagedZone.fromJs
on(value)).toList(); | 806 managedZones = _json["managedZones"].map((value) => new ManagedZone.fromJs
on(value)).toList(); |
| 807 } | 807 } |
| 808 if (_json.containsKey("nextPageToken")) { | 808 if (_json.containsKey("nextPageToken")) { |
| 809 nextPageToken = _json["nextPageToken"]; | 809 nextPageToken = _json["nextPageToken"]; |
| 810 } | 810 } |
| 811 } | 811 } |
| 812 | 812 |
| 813 core.Map toJson() { | 813 core.Map<core.String, core.Object> toJson() { |
| 814 var _json = new core.Map(); | 814 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 815 if (kind != null) { | 815 if (kind != null) { |
| 816 _json["kind"] = kind; | 816 _json["kind"] = kind; |
| 817 } | 817 } |
| 818 if (managedZones != null) { | 818 if (managedZones != null) { |
| 819 _json["managedZones"] = managedZones.map((value) => (value).toJson()).toLi
st(); | 819 _json["managedZones"] = managedZones.map((value) => (value).toJson()).toLi
st(); |
| 820 } | 820 } |
| 821 if (nextPageToken != null) { | 821 if (nextPageToken != null) { |
| 822 _json["nextPageToken"] = nextPageToken; | 822 _json["nextPageToken"] = nextPageToken; |
| 823 } | 823 } |
| 824 return _json; | 824 return _json; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 kind = _json["kind"]; | 856 kind = _json["kind"]; |
| 857 } | 857 } |
| 858 if (_json.containsKey("number")) { | 858 if (_json.containsKey("number")) { |
| 859 number = _json["number"]; | 859 number = _json["number"]; |
| 860 } | 860 } |
| 861 if (_json.containsKey("quota")) { | 861 if (_json.containsKey("quota")) { |
| 862 quota = new Quota.fromJson(_json["quota"]); | 862 quota = new Quota.fromJson(_json["quota"]); |
| 863 } | 863 } |
| 864 } | 864 } |
| 865 | 865 |
| 866 core.Map toJson() { | 866 core.Map<core.String, core.Object> toJson() { |
| 867 var _json = new core.Map(); | 867 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 868 if (id != null) { | 868 if (id != null) { |
| 869 _json["id"] = id; | 869 _json["id"] = id; |
| 870 } | 870 } |
| 871 if (kind != null) { | 871 if (kind != null) { |
| 872 _json["kind"] = kind; | 872 _json["kind"] = kind; |
| 873 } | 873 } |
| 874 if (number != null) { | 874 if (number != null) { |
| 875 _json["number"] = number; | 875 _json["number"] = number; |
| 876 } | 876 } |
| 877 if (quota != null) { | 877 if (quota != null) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 rrsetDeletionsPerChange = _json["rrsetDeletionsPerChange"]; | 928 rrsetDeletionsPerChange = _json["rrsetDeletionsPerChange"]; |
| 929 } | 929 } |
| 930 if (_json.containsKey("rrsetsPerManagedZone")) { | 930 if (_json.containsKey("rrsetsPerManagedZone")) { |
| 931 rrsetsPerManagedZone = _json["rrsetsPerManagedZone"]; | 931 rrsetsPerManagedZone = _json["rrsetsPerManagedZone"]; |
| 932 } | 932 } |
| 933 if (_json.containsKey("totalRrdataSizePerChange")) { | 933 if (_json.containsKey("totalRrdataSizePerChange")) { |
| 934 totalRrdataSizePerChange = _json["totalRrdataSizePerChange"]; | 934 totalRrdataSizePerChange = _json["totalRrdataSizePerChange"]; |
| 935 } | 935 } |
| 936 } | 936 } |
| 937 | 937 |
| 938 core.Map toJson() { | 938 core.Map<core.String, core.Object> toJson() { |
| 939 var _json = new core.Map(); | 939 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 940 if (kind != null) { | 940 if (kind != null) { |
| 941 _json["kind"] = kind; | 941 _json["kind"] = kind; |
| 942 } | 942 } |
| 943 if (managedZones != null) { | 943 if (managedZones != null) { |
| 944 _json["managedZones"] = managedZones; | 944 _json["managedZones"] = managedZones; |
| 945 } | 945 } |
| 946 if (resourceRecordsPerRrset != null) { | 946 if (resourceRecordsPerRrset != null) { |
| 947 _json["resourceRecordsPerRrset"] = resourceRecordsPerRrset; | 947 _json["resourceRecordsPerRrset"] = resourceRecordsPerRrset; |
| 948 } | 948 } |
| 949 if (rrsetAdditionsPerChange != null) { | 949 if (rrsetAdditionsPerChange != null) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 996 rrdatas = _json["rrdatas"]; | 996 rrdatas = _json["rrdatas"]; |
| 997 } | 997 } |
| 998 if (_json.containsKey("ttl")) { | 998 if (_json.containsKey("ttl")) { |
| 999 ttl = _json["ttl"]; | 999 ttl = _json["ttl"]; |
| 1000 } | 1000 } |
| 1001 if (_json.containsKey("type")) { | 1001 if (_json.containsKey("type")) { |
| 1002 type = _json["type"]; | 1002 type = _json["type"]; |
| 1003 } | 1003 } |
| 1004 } | 1004 } |
| 1005 | 1005 |
| 1006 core.Map toJson() { | 1006 core.Map<core.String, core.Object> toJson() { |
| 1007 var _json = new core.Map(); | 1007 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1008 if (kind != null) { | 1008 if (kind != null) { |
| 1009 _json["kind"] = kind; | 1009 _json["kind"] = kind; |
| 1010 } | 1010 } |
| 1011 if (name != null) { | 1011 if (name != null) { |
| 1012 _json["name"] = name; | 1012 _json["name"] = name; |
| 1013 } | 1013 } |
| 1014 if (rrdatas != null) { | 1014 if (rrdatas != null) { |
| 1015 _json["rrdatas"] = rrdatas; | 1015 _json["rrdatas"] = rrdatas; |
| 1016 } | 1016 } |
| 1017 if (ttl != null) { | 1017 if (ttl != null) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 kind = _json["kind"]; | 1050 kind = _json["kind"]; |
| 1051 } | 1051 } |
| 1052 if (_json.containsKey("nextPageToken")) { | 1052 if (_json.containsKey("nextPageToken")) { |
| 1053 nextPageToken = _json["nextPageToken"]; | 1053 nextPageToken = _json["nextPageToken"]; |
| 1054 } | 1054 } |
| 1055 if (_json.containsKey("rrsets")) { | 1055 if (_json.containsKey("rrsets")) { |
| 1056 rrsets = _json["rrsets"].map((value) => new ResourceRecordSet.fromJson(val
ue)).toList(); | 1056 rrsets = _json["rrsets"].map((value) => new ResourceRecordSet.fromJson(val
ue)).toList(); |
| 1057 } | 1057 } |
| 1058 } | 1058 } |
| 1059 | 1059 |
| 1060 core.Map toJson() { | 1060 core.Map<core.String, core.Object> toJson() { |
| 1061 var _json = new core.Map(); | 1061 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1062 if (kind != null) { | 1062 if (kind != null) { |
| 1063 _json["kind"] = kind; | 1063 _json["kind"] = kind; |
| 1064 } | 1064 } |
| 1065 if (nextPageToken != null) { | 1065 if (nextPageToken != null) { |
| 1066 _json["nextPageToken"] = nextPageToken; | 1066 _json["nextPageToken"] = nextPageToken; |
| 1067 } | 1067 } |
| 1068 if (rrsets != null) { | 1068 if (rrsets != null) { |
| 1069 _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList(); | 1069 _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList(); |
| 1070 } | 1070 } |
| 1071 return _json; | 1071 return _json; |
| 1072 } | 1072 } |
| 1073 } | 1073 } |
| OLD | NEW |