| 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.resourceviews.v1beta2; | 3 library googleapis_beta.resourceviews.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 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 | 715 |
| 716 Label.fromJson(core.Map _json) { | 716 Label.fromJson(core.Map _json) { |
| 717 if (_json.containsKey("key")) { | 717 if (_json.containsKey("key")) { |
| 718 key = _json["key"]; | 718 key = _json["key"]; |
| 719 } | 719 } |
| 720 if (_json.containsKey("value")) { | 720 if (_json.containsKey("value")) { |
| 721 value = _json["value"]; | 721 value = _json["value"]; |
| 722 } | 722 } |
| 723 } | 723 } |
| 724 | 724 |
| 725 core.Map toJson() { | 725 core.Map<core.String, core.Object> toJson() { |
| 726 var _json = new core.Map(); | 726 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 727 if (key != null) { | 727 if (key != null) { |
| 728 _json["key"] = key; | 728 _json["key"] = key; |
| 729 } | 729 } |
| 730 if (value != null) { | 730 if (value != null) { |
| 731 _json["value"] = value; | 731 _json["value"] = value; |
| 732 } | 732 } |
| 733 return _json; | 733 return _json; |
| 734 } | 734 } |
| 735 } | 735 } |
| 736 | 736 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 747 | 747 |
| 748 ListResourceResponseItem.fromJson(core.Map _json) { | 748 ListResourceResponseItem.fromJson(core.Map _json) { |
| 749 if (_json.containsKey("endpoints")) { | 749 if (_json.containsKey("endpoints")) { |
| 750 endpoints = _json["endpoints"]; | 750 endpoints = _json["endpoints"]; |
| 751 } | 751 } |
| 752 if (_json.containsKey("resource")) { | 752 if (_json.containsKey("resource")) { |
| 753 resource = _json["resource"]; | 753 resource = _json["resource"]; |
| 754 } | 754 } |
| 755 } | 755 } |
| 756 | 756 |
| 757 core.Map toJson() { | 757 core.Map<core.String, core.Object> toJson() { |
| 758 var _json = new core.Map(); | 758 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 759 if (endpoints != null) { | 759 if (endpoints != null) { |
| 760 _json["endpoints"] = endpoints; | 760 _json["endpoints"] = endpoints; |
| 761 } | 761 } |
| 762 if (resource != null) { | 762 if (resource != null) { |
| 763 _json["resource"] = resource; | 763 _json["resource"] = resource; |
| 764 } | 764 } |
| 765 return _json; | 765 return _json; |
| 766 } | 766 } |
| 767 } | 767 } |
| 768 | 768 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 784 code = _json["code"]; | 784 code = _json["code"]; |
| 785 } | 785 } |
| 786 if (_json.containsKey("location")) { | 786 if (_json.containsKey("location")) { |
| 787 location = _json["location"]; | 787 location = _json["location"]; |
| 788 } | 788 } |
| 789 if (_json.containsKey("message")) { | 789 if (_json.containsKey("message")) { |
| 790 message = _json["message"]; | 790 message = _json["message"]; |
| 791 } | 791 } |
| 792 } | 792 } |
| 793 | 793 |
| 794 core.Map toJson() { | 794 core.Map<core.String, core.Object> toJson() { |
| 795 var _json = new core.Map(); | 795 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 796 if (code != null) { | 796 if (code != null) { |
| 797 _json["code"] = code; | 797 _json["code"] = code; |
| 798 } | 798 } |
| 799 if (location != null) { | 799 if (location != null) { |
| 800 _json["location"] = location; | 800 _json["location"] = location; |
| 801 } | 801 } |
| 802 if (message != null) { | 802 if (message != null) { |
| 803 _json["message"] = message; | 803 _json["message"] = message; |
| 804 } | 804 } |
| 805 return _json; | 805 return _json; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 818 core.List<OperationErrorErrors> errors; | 818 core.List<OperationErrorErrors> errors; |
| 819 | 819 |
| 820 OperationError(); | 820 OperationError(); |
| 821 | 821 |
| 822 OperationError.fromJson(core.Map _json) { | 822 OperationError.fromJson(core.Map _json) { |
| 823 if (_json.containsKey("errors")) { | 823 if (_json.containsKey("errors")) { |
| 824 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); | 824 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); |
| 825 } | 825 } |
| 826 } | 826 } |
| 827 | 827 |
| 828 core.Map toJson() { | 828 core.Map<core.String, core.Object> toJson() { |
| 829 var _json = new core.Map(); | 829 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 830 if (errors != null) { | 830 if (errors != null) { |
| 831 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 831 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
| 832 } | 832 } |
| 833 return _json; | 833 return _json; |
| 834 } | 834 } |
| 835 } | 835 } |
| 836 | 836 |
| 837 class OperationWarningsData { | 837 class OperationWarningsData { |
| 838 /** [Output Only] Metadata key for this warning. */ | 838 /** [Output Only] Metadata key for this warning. */ |
| 839 core.String key; | 839 core.String key; |
| 840 /** [Output Only] Metadata value for this warning. */ | 840 /** [Output Only] Metadata value for this warning. */ |
| 841 core.String value; | 841 core.String value; |
| 842 | 842 |
| 843 OperationWarningsData(); | 843 OperationWarningsData(); |
| 844 | 844 |
| 845 OperationWarningsData.fromJson(core.Map _json) { | 845 OperationWarningsData.fromJson(core.Map _json) { |
| 846 if (_json.containsKey("key")) { | 846 if (_json.containsKey("key")) { |
| 847 key = _json["key"]; | 847 key = _json["key"]; |
| 848 } | 848 } |
| 849 if (_json.containsKey("value")) { | 849 if (_json.containsKey("value")) { |
| 850 value = _json["value"]; | 850 value = _json["value"]; |
| 851 } | 851 } |
| 852 } | 852 } |
| 853 | 853 |
| 854 core.Map toJson() { | 854 core.Map<core.String, core.Object> toJson() { |
| 855 var _json = new core.Map(); | 855 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 856 if (key != null) { | 856 if (key != null) { |
| 857 _json["key"] = key; | 857 _json["key"] = key; |
| 858 } | 858 } |
| 859 if (value != null) { | 859 if (value != null) { |
| 860 _json["value"] = value; | 860 _json["value"] = value; |
| 861 } | 861 } |
| 862 return _json; | 862 return _json; |
| 863 } | 863 } |
| 864 } | 864 } |
| 865 | 865 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 878 code = _json["code"]; | 878 code = _json["code"]; |
| 879 } | 879 } |
| 880 if (_json.containsKey("data")) { | 880 if (_json.containsKey("data")) { |
| 881 data = _json["data"].map((value) => new OperationWarningsData.fromJson(val
ue)).toList(); | 881 data = _json["data"].map((value) => new OperationWarningsData.fromJson(val
ue)).toList(); |
| 882 } | 882 } |
| 883 if (_json.containsKey("message")) { | 883 if (_json.containsKey("message")) { |
| 884 message = _json["message"]; | 884 message = _json["message"]; |
| 885 } | 885 } |
| 886 } | 886 } |
| 887 | 887 |
| 888 core.Map toJson() { | 888 core.Map<core.String, core.Object> toJson() { |
| 889 var _json = new core.Map(); | 889 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 890 if (code != null) { | 890 if (code != null) { |
| 891 _json["code"] = code; | 891 _json["code"] = code; |
| 892 } | 892 } |
| 893 if (data != null) { | 893 if (data != null) { |
| 894 _json["data"] = data.map((value) => (value).toJson()).toList(); | 894 _json["data"] = data.map((value) => (value).toJson()).toList(); |
| 895 } | 895 } |
| 896 if (message != null) { | 896 if (message != null) { |
| 897 _json["message"] = message; | 897 _json["message"] = message; |
| 898 } | 898 } |
| 899 return _json; | 899 return _json; |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 user = _json["user"]; | 1059 user = _json["user"]; |
| 1060 } | 1060 } |
| 1061 if (_json.containsKey("warnings")) { | 1061 if (_json.containsKey("warnings")) { |
| 1062 warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson
(value)).toList(); | 1062 warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson
(value)).toList(); |
| 1063 } | 1063 } |
| 1064 if (_json.containsKey("zone")) { | 1064 if (_json.containsKey("zone")) { |
| 1065 zone = _json["zone"]; | 1065 zone = _json["zone"]; |
| 1066 } | 1066 } |
| 1067 } | 1067 } |
| 1068 | 1068 |
| 1069 core.Map toJson() { | 1069 core.Map<core.String, core.Object> toJson() { |
| 1070 var _json = new core.Map(); | 1070 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1071 if (clientOperationId != null) { | 1071 if (clientOperationId != null) { |
| 1072 _json["clientOperationId"] = clientOperationId; | 1072 _json["clientOperationId"] = clientOperationId; |
| 1073 } | 1073 } |
| 1074 if (creationTimestamp != null) { | 1074 if (creationTimestamp != null) { |
| 1075 _json["creationTimestamp"] = creationTimestamp; | 1075 _json["creationTimestamp"] = creationTimestamp; |
| 1076 } | 1076 } |
| 1077 if (endTime != null) { | 1077 if (endTime != null) { |
| 1078 _json["endTime"] = endTime; | 1078 _json["endTime"] = endTime; |
| 1079 } | 1079 } |
| 1080 if (error != null) { | 1080 if (error != null) { |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1165 kind = _json["kind"]; | 1165 kind = _json["kind"]; |
| 1166 } | 1166 } |
| 1167 if (_json.containsKey("nextPageToken")) { | 1167 if (_json.containsKey("nextPageToken")) { |
| 1168 nextPageToken = _json["nextPageToken"]; | 1168 nextPageToken = _json["nextPageToken"]; |
| 1169 } | 1169 } |
| 1170 if (_json.containsKey("selfLink")) { | 1170 if (_json.containsKey("selfLink")) { |
| 1171 selfLink = _json["selfLink"]; | 1171 selfLink = _json["selfLink"]; |
| 1172 } | 1172 } |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 core.Map toJson() { | 1175 core.Map<core.String, core.Object> toJson() { |
| 1176 var _json = new core.Map(); | 1176 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1177 if (id != null) { | 1177 if (id != null) { |
| 1178 _json["id"] = id; | 1178 _json["id"] = id; |
| 1179 } | 1179 } |
| 1180 if (items != null) { | 1180 if (items != null) { |
| 1181 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1181 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1182 } | 1182 } |
| 1183 if (kind != null) { | 1183 if (kind != null) { |
| 1184 _json["kind"] = kind; | 1184 _json["kind"] = kind; |
| 1185 } | 1185 } |
| 1186 if (nextPageToken != null) { | 1186 if (nextPageToken != null) { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1257 resources = _json["resources"]; | 1257 resources = _json["resources"]; |
| 1258 } | 1258 } |
| 1259 if (_json.containsKey("selfLink")) { | 1259 if (_json.containsKey("selfLink")) { |
| 1260 selfLink = _json["selfLink"]; | 1260 selfLink = _json["selfLink"]; |
| 1261 } | 1261 } |
| 1262 if (_json.containsKey("size")) { | 1262 if (_json.containsKey("size")) { |
| 1263 size = _json["size"]; | 1263 size = _json["size"]; |
| 1264 } | 1264 } |
| 1265 } | 1265 } |
| 1266 | 1266 |
| 1267 core.Map toJson() { | 1267 core.Map<core.String, core.Object> toJson() { |
| 1268 var _json = new core.Map(); | 1268 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1269 if (creationTimestamp != null) { | 1269 if (creationTimestamp != null) { |
| 1270 _json["creationTimestamp"] = creationTimestamp; | 1270 _json["creationTimestamp"] = creationTimestamp; |
| 1271 } | 1271 } |
| 1272 if (description != null) { | 1272 if (description != null) { |
| 1273 _json["description"] = description; | 1273 _json["description"] = description; |
| 1274 } | 1274 } |
| 1275 if (endpoints != null) { | 1275 if (endpoints != null) { |
| 1276 _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList(); | 1276 _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList(); |
| 1277 } | 1277 } |
| 1278 if (fingerprint != null) { | 1278 if (fingerprint != null) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1317 | 1317 |
| 1318 ServiceEndpoint.fromJson(core.Map _json) { | 1318 ServiceEndpoint.fromJson(core.Map _json) { |
| 1319 if (_json.containsKey("name")) { | 1319 if (_json.containsKey("name")) { |
| 1320 name = _json["name"]; | 1320 name = _json["name"]; |
| 1321 } | 1321 } |
| 1322 if (_json.containsKey("port")) { | 1322 if (_json.containsKey("port")) { |
| 1323 port = _json["port"]; | 1323 port = _json["port"]; |
| 1324 } | 1324 } |
| 1325 } | 1325 } |
| 1326 | 1326 |
| 1327 core.Map toJson() { | 1327 core.Map<core.String, core.Object> toJson() { |
| 1328 var _json = new core.Map(); | 1328 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1329 if (name != null) { | 1329 if (name != null) { |
| 1330 _json["name"] = name; | 1330 _json["name"] = name; |
| 1331 } | 1331 } |
| 1332 if (port != null) { | 1332 if (port != null) { |
| 1333 _json["port"] = port; | 1333 _json["port"] = port; |
| 1334 } | 1334 } |
| 1335 return _json; | 1335 return _json; |
| 1336 } | 1336 } |
| 1337 } | 1337 } |
| 1338 | 1338 |
| 1339 /** The request to add resources to the resource view. */ | 1339 /** The request to add resources to the resource view. */ |
| 1340 class ZoneViewsAddResourcesRequest { | 1340 class ZoneViewsAddResourcesRequest { |
| 1341 /** The list of resources to be added. */ | 1341 /** The list of resources to be added. */ |
| 1342 core.List<core.String> resources; | 1342 core.List<core.String> resources; |
| 1343 | 1343 |
| 1344 ZoneViewsAddResourcesRequest(); | 1344 ZoneViewsAddResourcesRequest(); |
| 1345 | 1345 |
| 1346 ZoneViewsAddResourcesRequest.fromJson(core.Map _json) { | 1346 ZoneViewsAddResourcesRequest.fromJson(core.Map _json) { |
| 1347 if (_json.containsKey("resources")) { | 1347 if (_json.containsKey("resources")) { |
| 1348 resources = _json["resources"]; | 1348 resources = _json["resources"]; |
| 1349 } | 1349 } |
| 1350 } | 1350 } |
| 1351 | 1351 |
| 1352 core.Map toJson() { | 1352 core.Map<core.String, core.Object> toJson() { |
| 1353 var _json = new core.Map(); | 1353 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1354 if (resources != null) { | 1354 if (resources != null) { |
| 1355 _json["resources"] = resources; | 1355 _json["resources"] = resources; |
| 1356 } | 1356 } |
| 1357 return _json; | 1357 return _json; |
| 1358 } | 1358 } |
| 1359 } | 1359 } |
| 1360 | 1360 |
| 1361 class ZoneViewsGetServiceResponse { | 1361 class ZoneViewsGetServiceResponse { |
| 1362 /** The service information. */ | 1362 /** The service information. */ |
| 1363 core.List<ServiceEndpoint> endpoints; | 1363 core.List<ServiceEndpoint> endpoints; |
| 1364 /** The fingerprint of the service information. */ | 1364 /** The fingerprint of the service information. */ |
| 1365 core.String fingerprint; | 1365 core.String fingerprint; |
| 1366 | 1366 |
| 1367 ZoneViewsGetServiceResponse(); | 1367 ZoneViewsGetServiceResponse(); |
| 1368 | 1368 |
| 1369 ZoneViewsGetServiceResponse.fromJson(core.Map _json) { | 1369 ZoneViewsGetServiceResponse.fromJson(core.Map _json) { |
| 1370 if (_json.containsKey("endpoints")) { | 1370 if (_json.containsKey("endpoints")) { |
| 1371 endpoints = _json["endpoints"].map((value) => new ServiceEndpoint.fromJson
(value)).toList(); | 1371 endpoints = _json["endpoints"].map((value) => new ServiceEndpoint.fromJson
(value)).toList(); |
| 1372 } | 1372 } |
| 1373 if (_json.containsKey("fingerprint")) { | 1373 if (_json.containsKey("fingerprint")) { |
| 1374 fingerprint = _json["fingerprint"]; | 1374 fingerprint = _json["fingerprint"]; |
| 1375 } | 1375 } |
| 1376 } | 1376 } |
| 1377 | 1377 |
| 1378 core.Map toJson() { | 1378 core.Map<core.String, core.Object> toJson() { |
| 1379 var _json = new core.Map(); | 1379 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1380 if (endpoints != null) { | 1380 if (endpoints != null) { |
| 1381 _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList(); | 1381 _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList(); |
| 1382 } | 1382 } |
| 1383 if (fingerprint != null) { | 1383 if (fingerprint != null) { |
| 1384 _json["fingerprint"] = fingerprint; | 1384 _json["fingerprint"] = fingerprint; |
| 1385 } | 1385 } |
| 1386 return _json; | 1386 return _json; |
| 1387 } | 1387 } |
| 1388 } | 1388 } |
| 1389 | 1389 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1408 kind = _json["kind"]; | 1408 kind = _json["kind"]; |
| 1409 } | 1409 } |
| 1410 if (_json.containsKey("nextPageToken")) { | 1410 if (_json.containsKey("nextPageToken")) { |
| 1411 nextPageToken = _json["nextPageToken"]; | 1411 nextPageToken = _json["nextPageToken"]; |
| 1412 } | 1412 } |
| 1413 if (_json.containsKey("selfLink")) { | 1413 if (_json.containsKey("selfLink")) { |
| 1414 selfLink = _json["selfLink"]; | 1414 selfLink = _json["selfLink"]; |
| 1415 } | 1415 } |
| 1416 } | 1416 } |
| 1417 | 1417 |
| 1418 core.Map toJson() { | 1418 core.Map<core.String, core.Object> toJson() { |
| 1419 var _json = new core.Map(); | 1419 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1420 if (items != null) { | 1420 if (items != null) { |
| 1421 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1421 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1422 } | 1422 } |
| 1423 if (kind != null) { | 1423 if (kind != null) { |
| 1424 _json["kind"] = kind; | 1424 _json["kind"] = kind; |
| 1425 } | 1425 } |
| 1426 if (nextPageToken != null) { | 1426 if (nextPageToken != null) { |
| 1427 _json["nextPageToken"] = nextPageToken; | 1427 _json["nextPageToken"] = nextPageToken; |
| 1428 } | 1428 } |
| 1429 if (selfLink != null) { | 1429 if (selfLink != null) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1452 items = _json["items"].map((value) => new ListResourceResponseItem.fromJso
n(value)).toList(); | 1452 items = _json["items"].map((value) => new ListResourceResponseItem.fromJso
n(value)).toList(); |
| 1453 } | 1453 } |
| 1454 if (_json.containsKey("network")) { | 1454 if (_json.containsKey("network")) { |
| 1455 network = _json["network"]; | 1455 network = _json["network"]; |
| 1456 } | 1456 } |
| 1457 if (_json.containsKey("nextPageToken")) { | 1457 if (_json.containsKey("nextPageToken")) { |
| 1458 nextPageToken = _json["nextPageToken"]; | 1458 nextPageToken = _json["nextPageToken"]; |
| 1459 } | 1459 } |
| 1460 } | 1460 } |
| 1461 | 1461 |
| 1462 core.Map toJson() { | 1462 core.Map<core.String, core.Object> toJson() { |
| 1463 var _json = new core.Map(); | 1463 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1464 if (items != null) { | 1464 if (items != null) { |
| 1465 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1465 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 1466 } | 1466 } |
| 1467 if (network != null) { | 1467 if (network != null) { |
| 1468 _json["network"] = network; | 1468 _json["network"] = network; |
| 1469 } | 1469 } |
| 1470 if (nextPageToken != null) { | 1470 if (nextPageToken != null) { |
| 1471 _json["nextPageToken"] = nextPageToken; | 1471 _json["nextPageToken"] = nextPageToken; |
| 1472 } | 1472 } |
| 1473 return _json; | 1473 return _json; |
| 1474 } | 1474 } |
| 1475 } | 1475 } |
| 1476 | 1476 |
| 1477 /** The request to remove resources from the resource view. */ | 1477 /** The request to remove resources from the resource view. */ |
| 1478 class ZoneViewsRemoveResourcesRequest { | 1478 class ZoneViewsRemoveResourcesRequest { |
| 1479 /** The list of resources to be removed. */ | 1479 /** The list of resources to be removed. */ |
| 1480 core.List<core.String> resources; | 1480 core.List<core.String> resources; |
| 1481 | 1481 |
| 1482 ZoneViewsRemoveResourcesRequest(); | 1482 ZoneViewsRemoveResourcesRequest(); |
| 1483 | 1483 |
| 1484 ZoneViewsRemoveResourcesRequest.fromJson(core.Map _json) { | 1484 ZoneViewsRemoveResourcesRequest.fromJson(core.Map _json) { |
| 1485 if (_json.containsKey("resources")) { | 1485 if (_json.containsKey("resources")) { |
| 1486 resources = _json["resources"]; | 1486 resources = _json["resources"]; |
| 1487 } | 1487 } |
| 1488 } | 1488 } |
| 1489 | 1489 |
| 1490 core.Map toJson() { | 1490 core.Map<core.String, core.Object> toJson() { |
| 1491 var _json = new core.Map(); | 1491 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1492 if (resources != null) { | 1492 if (resources != null) { |
| 1493 _json["resources"] = resources; | 1493 _json["resources"] = resources; |
| 1494 } | 1494 } |
| 1495 return _json; | 1495 return _json; |
| 1496 } | 1496 } |
| 1497 } | 1497 } |
| 1498 | 1498 |
| 1499 class ZoneViewsSetServiceRequest { | 1499 class ZoneViewsSetServiceRequest { |
| 1500 /** The service information to be updated. */ | 1500 /** The service information to be updated. */ |
| 1501 core.List<ServiceEndpoint> endpoints; | 1501 core.List<ServiceEndpoint> endpoints; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1517 endpoints = _json["endpoints"].map((value) => new ServiceEndpoint.fromJson
(value)).toList(); | 1517 endpoints = _json["endpoints"].map((value) => new ServiceEndpoint.fromJson
(value)).toList(); |
| 1518 } | 1518 } |
| 1519 if (_json.containsKey("fingerprint")) { | 1519 if (_json.containsKey("fingerprint")) { |
| 1520 fingerprint = _json["fingerprint"]; | 1520 fingerprint = _json["fingerprint"]; |
| 1521 } | 1521 } |
| 1522 if (_json.containsKey("resourceName")) { | 1522 if (_json.containsKey("resourceName")) { |
| 1523 resourceName = _json["resourceName"]; | 1523 resourceName = _json["resourceName"]; |
| 1524 } | 1524 } |
| 1525 } | 1525 } |
| 1526 | 1526 |
| 1527 core.Map toJson() { | 1527 core.Map<core.String, core.Object> toJson() { |
| 1528 var _json = new core.Map(); | 1528 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 1529 if (endpoints != null) { | 1529 if (endpoints != null) { |
| 1530 _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList(); | 1530 _json["endpoints"] = endpoints.map((value) => (value).toJson()).toList(); |
| 1531 } | 1531 } |
| 1532 if (fingerprint != null) { | 1532 if (fingerprint != null) { |
| 1533 _json["fingerprint"] = fingerprint; | 1533 _json["fingerprint"] = fingerprint; |
| 1534 } | 1534 } |
| 1535 if (resourceName != null) { | 1535 if (resourceName != null) { |
| 1536 _json["resourceName"] = resourceName; | 1536 _json["resourceName"] = resourceName; |
| 1537 } | 1537 } |
| 1538 return _json; | 1538 return _json; |
| 1539 } | 1539 } |
| 1540 } | 1540 } |
| OLD | NEW |