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.replicapool.v1beta2; | 3 library googleapis_beta.replicapool.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 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
892 selfLink = _json["selfLink"]; | 892 selfLink = _json["selfLink"]; |
893 } | 893 } |
894 if (_json.containsKey("targetPools")) { | 894 if (_json.containsKey("targetPools")) { |
895 targetPools = _json["targetPools"]; | 895 targetPools = _json["targetPools"]; |
896 } | 896 } |
897 if (_json.containsKey("targetSize")) { | 897 if (_json.containsKey("targetSize")) { |
898 targetSize = _json["targetSize"]; | 898 targetSize = _json["targetSize"]; |
899 } | 899 } |
900 } | 900 } |
901 | 901 |
902 core.Map toJson() { | 902 core.Map<core.String, core.Object> toJson() { |
903 var _json = new core.Map(); | 903 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
904 if (autoHealingPolicies != null) { | 904 if (autoHealingPolicies != null) { |
905 _json["autoHealingPolicies"] = autoHealingPolicies.map((value) => (value).
toJson()).toList(); | 905 _json["autoHealingPolicies"] = autoHealingPolicies.map((value) => (value).
toJson()).toList(); |
906 } | 906 } |
907 if (baseInstanceName != null) { | 907 if (baseInstanceName != null) { |
908 _json["baseInstanceName"] = baseInstanceName; | 908 _json["baseInstanceName"] = baseInstanceName; |
909 } | 909 } |
910 if (creationTimestamp != null) { | 910 if (creationTimestamp != null) { |
911 _json["creationTimestamp"] = creationTimestamp; | 911 _json["creationTimestamp"] = creationTimestamp; |
912 } | 912 } |
913 if (currentSize != null) { | 913 if (currentSize != null) { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
974 kind = _json["kind"]; | 974 kind = _json["kind"]; |
975 } | 975 } |
976 if (_json.containsKey("nextPageToken")) { | 976 if (_json.containsKey("nextPageToken")) { |
977 nextPageToken = _json["nextPageToken"]; | 977 nextPageToken = _json["nextPageToken"]; |
978 } | 978 } |
979 if (_json.containsKey("selfLink")) { | 979 if (_json.containsKey("selfLink")) { |
980 selfLink = _json["selfLink"]; | 980 selfLink = _json["selfLink"]; |
981 } | 981 } |
982 } | 982 } |
983 | 983 |
984 core.Map toJson() { | 984 core.Map<core.String, core.Object> toJson() { |
985 var _json = new core.Map(); | 985 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
986 if (id != null) { | 986 if (id != null) { |
987 _json["id"] = id; | 987 _json["id"] = id; |
988 } | 988 } |
989 if (items != null) { | 989 if (items != null) { |
990 _json["items"] = items.map((value) => (value).toJson()).toList(); | 990 _json["items"] = items.map((value) => (value).toJson()).toList(); |
991 } | 991 } |
992 if (kind != null) { | 992 if (kind != null) { |
993 _json["kind"] = kind; | 993 _json["kind"] = kind; |
994 } | 994 } |
995 if (nextPageToken != null) { | 995 if (nextPageToken != null) { |
(...skipping 14 matching lines...) Expand all Loading... |
1010 core.List<core.String> instances; | 1010 core.List<core.String> instances; |
1011 | 1011 |
1012 InstanceGroupManagersAbandonInstancesRequest(); | 1012 InstanceGroupManagersAbandonInstancesRequest(); |
1013 | 1013 |
1014 InstanceGroupManagersAbandonInstancesRequest.fromJson(core.Map _json) { | 1014 InstanceGroupManagersAbandonInstancesRequest.fromJson(core.Map _json) { |
1015 if (_json.containsKey("instances")) { | 1015 if (_json.containsKey("instances")) { |
1016 instances = _json["instances"]; | 1016 instances = _json["instances"]; |
1017 } | 1017 } |
1018 } | 1018 } |
1019 | 1019 |
1020 core.Map toJson() { | 1020 core.Map<core.String, core.Object> toJson() { |
1021 var _json = new core.Map(); | 1021 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1022 if (instances != null) { | 1022 if (instances != null) { |
1023 _json["instances"] = instances; | 1023 _json["instances"] = instances; |
1024 } | 1024 } |
1025 return _json; | 1025 return _json; |
1026 } | 1026 } |
1027 } | 1027 } |
1028 | 1028 |
1029 class InstanceGroupManagersDeleteInstancesRequest { | 1029 class InstanceGroupManagersDeleteInstancesRequest { |
1030 /** | 1030 /** |
1031 * Names of instances to delete. | 1031 * Names of instances to delete. |
1032 * | 1032 * |
1033 * Example: 'instance-foo', 'instance-bar' | 1033 * Example: 'instance-foo', 'instance-bar' |
1034 */ | 1034 */ |
1035 core.List<core.String> instances; | 1035 core.List<core.String> instances; |
1036 | 1036 |
1037 InstanceGroupManagersDeleteInstancesRequest(); | 1037 InstanceGroupManagersDeleteInstancesRequest(); |
1038 | 1038 |
1039 InstanceGroupManagersDeleteInstancesRequest.fromJson(core.Map _json) { | 1039 InstanceGroupManagersDeleteInstancesRequest.fromJson(core.Map _json) { |
1040 if (_json.containsKey("instances")) { | 1040 if (_json.containsKey("instances")) { |
1041 instances = _json["instances"]; | 1041 instances = _json["instances"]; |
1042 } | 1042 } |
1043 } | 1043 } |
1044 | 1044 |
1045 core.Map toJson() { | 1045 core.Map<core.String, core.Object> toJson() { |
1046 var _json = new core.Map(); | 1046 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1047 if (instances != null) { | 1047 if (instances != null) { |
1048 _json["instances"] = instances; | 1048 _json["instances"] = instances; |
1049 } | 1049 } |
1050 return _json; | 1050 return _json; |
1051 } | 1051 } |
1052 } | 1052 } |
1053 | 1053 |
1054 class InstanceGroupManagersRecreateInstancesRequest { | 1054 class InstanceGroupManagersRecreateInstancesRequest { |
1055 /** | 1055 /** |
1056 * The names of one or more instances to recreate. For example: | 1056 * The names of one or more instances to recreate. For example: |
1057 * { 'instances': [ 'instance-c3po', 'instance-r2d2' ] } | 1057 * { 'instances': [ 'instance-c3po', 'instance-r2d2' ] } |
1058 */ | 1058 */ |
1059 core.List<core.String> instances; | 1059 core.List<core.String> instances; |
1060 | 1060 |
1061 InstanceGroupManagersRecreateInstancesRequest(); | 1061 InstanceGroupManagersRecreateInstancesRequest(); |
1062 | 1062 |
1063 InstanceGroupManagersRecreateInstancesRequest.fromJson(core.Map _json) { | 1063 InstanceGroupManagersRecreateInstancesRequest.fromJson(core.Map _json) { |
1064 if (_json.containsKey("instances")) { | 1064 if (_json.containsKey("instances")) { |
1065 instances = _json["instances"]; | 1065 instances = _json["instances"]; |
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 (instances != null) { | 1071 if (instances != null) { |
1072 _json["instances"] = instances; | 1072 _json["instances"] = instances; |
1073 } | 1073 } |
1074 return _json; | 1074 return _json; |
1075 } | 1075 } |
1076 } | 1076 } |
1077 | 1077 |
1078 class InstanceGroupManagersSetInstanceTemplateRequest { | 1078 class InstanceGroupManagersSetInstanceTemplateRequest { |
1079 /** | 1079 /** |
1080 * The full URL to an Instance Template from which all new instances will be | 1080 * The full URL to an Instance Template from which all new instances will be |
1081 * created. | 1081 * created. |
1082 */ | 1082 */ |
1083 core.String instanceTemplate; | 1083 core.String instanceTemplate; |
1084 | 1084 |
1085 InstanceGroupManagersSetInstanceTemplateRequest(); | 1085 InstanceGroupManagersSetInstanceTemplateRequest(); |
1086 | 1086 |
1087 InstanceGroupManagersSetInstanceTemplateRequest.fromJson(core.Map _json) { | 1087 InstanceGroupManagersSetInstanceTemplateRequest.fromJson(core.Map _json) { |
1088 if (_json.containsKey("instanceTemplate")) { | 1088 if (_json.containsKey("instanceTemplate")) { |
1089 instanceTemplate = _json["instanceTemplate"]; | 1089 instanceTemplate = _json["instanceTemplate"]; |
1090 } | 1090 } |
1091 } | 1091 } |
1092 | 1092 |
1093 core.Map toJson() { | 1093 core.Map<core.String, core.Object> toJson() { |
1094 var _json = new core.Map(); | 1094 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1095 if (instanceTemplate != null) { | 1095 if (instanceTemplate != null) { |
1096 _json["instanceTemplate"] = instanceTemplate; | 1096 _json["instanceTemplate"] = instanceTemplate; |
1097 } | 1097 } |
1098 return _json; | 1098 return _json; |
1099 } | 1099 } |
1100 } | 1100 } |
1101 | 1101 |
1102 class InstanceGroupManagersSetTargetPoolsRequest { | 1102 class InstanceGroupManagersSetTargetPoolsRequest { |
1103 /** | 1103 /** |
1104 * The current fingerprint of the Instance Group Manager resource. If this | 1104 * The current fingerprint of the Instance Group Manager resource. If this |
(...skipping 19 matching lines...) Expand all Loading... |
1124 | 1124 |
1125 InstanceGroupManagersSetTargetPoolsRequest.fromJson(core.Map _json) { | 1125 InstanceGroupManagersSetTargetPoolsRequest.fromJson(core.Map _json) { |
1126 if (_json.containsKey("fingerprint")) { | 1126 if (_json.containsKey("fingerprint")) { |
1127 fingerprint = _json["fingerprint"]; | 1127 fingerprint = _json["fingerprint"]; |
1128 } | 1128 } |
1129 if (_json.containsKey("targetPools")) { | 1129 if (_json.containsKey("targetPools")) { |
1130 targetPools = _json["targetPools"]; | 1130 targetPools = _json["targetPools"]; |
1131 } | 1131 } |
1132 } | 1132 } |
1133 | 1133 |
1134 core.Map toJson() { | 1134 core.Map<core.String, core.Object> toJson() { |
1135 var _json = new core.Map(); | 1135 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1136 if (fingerprint != null) { | 1136 if (fingerprint != null) { |
1137 _json["fingerprint"] = fingerprint; | 1137 _json["fingerprint"] = fingerprint; |
1138 } | 1138 } |
1139 if (targetPools != null) { | 1139 if (targetPools != null) { |
1140 _json["targetPools"] = targetPools; | 1140 _json["targetPools"] = targetPools; |
1141 } | 1141 } |
1142 return _json; | 1142 return _json; |
1143 } | 1143 } |
1144 } | 1144 } |
1145 | 1145 |
(...skipping 15 matching lines...) Expand all Loading... |
1161 code = _json["code"]; | 1161 code = _json["code"]; |
1162 } | 1162 } |
1163 if (_json.containsKey("location")) { | 1163 if (_json.containsKey("location")) { |
1164 location = _json["location"]; | 1164 location = _json["location"]; |
1165 } | 1165 } |
1166 if (_json.containsKey("message")) { | 1166 if (_json.containsKey("message")) { |
1167 message = _json["message"]; | 1167 message = _json["message"]; |
1168 } | 1168 } |
1169 } | 1169 } |
1170 | 1170 |
1171 core.Map toJson() { | 1171 core.Map<core.String, core.Object> toJson() { |
1172 var _json = new core.Map(); | 1172 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1173 if (code != null) { | 1173 if (code != null) { |
1174 _json["code"] = code; | 1174 _json["code"] = code; |
1175 } | 1175 } |
1176 if (location != null) { | 1176 if (location != null) { |
1177 _json["location"] = location; | 1177 _json["location"] = location; |
1178 } | 1178 } |
1179 if (message != null) { | 1179 if (message != null) { |
1180 _json["message"] = message; | 1180 _json["message"] = message; |
1181 } | 1181 } |
1182 return _json; | 1182 return _json; |
(...skipping 12 matching lines...) Expand all Loading... |
1195 core.List<OperationErrorErrors> errors; | 1195 core.List<OperationErrorErrors> errors; |
1196 | 1196 |
1197 OperationError(); | 1197 OperationError(); |
1198 | 1198 |
1199 OperationError.fromJson(core.Map _json) { | 1199 OperationError.fromJson(core.Map _json) { |
1200 if (_json.containsKey("errors")) { | 1200 if (_json.containsKey("errors")) { |
1201 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); | 1201 errors = _json["errors"].map((value) => new OperationErrorErrors.fromJson(
value)).toList(); |
1202 } | 1202 } |
1203 } | 1203 } |
1204 | 1204 |
1205 core.Map toJson() { | 1205 core.Map<core.String, core.Object> toJson() { |
1206 var _json = new core.Map(); | 1206 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1207 if (errors != null) { | 1207 if (errors != null) { |
1208 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 1208 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
1209 } | 1209 } |
1210 return _json; | 1210 return _json; |
1211 } | 1211 } |
1212 } | 1212 } |
1213 | 1213 |
1214 class OperationWarningsData { | 1214 class OperationWarningsData { |
1215 /** [Output Only] Metadata key for this warning. */ | 1215 /** [Output Only] Metadata key for this warning. */ |
1216 core.String key; | 1216 core.String key; |
1217 /** [Output Only] Metadata value for this warning. */ | 1217 /** [Output Only] Metadata value for this warning. */ |
1218 core.String value; | 1218 core.String value; |
1219 | 1219 |
1220 OperationWarningsData(); | 1220 OperationWarningsData(); |
1221 | 1221 |
1222 OperationWarningsData.fromJson(core.Map _json) { | 1222 OperationWarningsData.fromJson(core.Map _json) { |
1223 if (_json.containsKey("key")) { | 1223 if (_json.containsKey("key")) { |
1224 key = _json["key"]; | 1224 key = _json["key"]; |
1225 } | 1225 } |
1226 if (_json.containsKey("value")) { | 1226 if (_json.containsKey("value")) { |
1227 value = _json["value"]; | 1227 value = _json["value"]; |
1228 } | 1228 } |
1229 } | 1229 } |
1230 | 1230 |
1231 core.Map toJson() { | 1231 core.Map<core.String, core.Object> toJson() { |
1232 var _json = new core.Map(); | 1232 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1233 if (key != null) { | 1233 if (key != null) { |
1234 _json["key"] = key; | 1234 _json["key"] = key; |
1235 } | 1235 } |
1236 if (value != null) { | 1236 if (value != null) { |
1237 _json["value"] = value; | 1237 _json["value"] = value; |
1238 } | 1238 } |
1239 return _json; | 1239 return _json; |
1240 } | 1240 } |
1241 } | 1241 } |
1242 | 1242 |
(...skipping 28 matching lines...) Expand all Loading... |
1271 code = _json["code"]; | 1271 code = _json["code"]; |
1272 } | 1272 } |
1273 if (_json.containsKey("data")) { | 1273 if (_json.containsKey("data")) { |
1274 data = _json["data"].map((value) => new OperationWarningsData.fromJson(val
ue)).toList(); | 1274 data = _json["data"].map((value) => new OperationWarningsData.fromJson(val
ue)).toList(); |
1275 } | 1275 } |
1276 if (_json.containsKey("message")) { | 1276 if (_json.containsKey("message")) { |
1277 message = _json["message"]; | 1277 message = _json["message"]; |
1278 } | 1278 } |
1279 } | 1279 } |
1280 | 1280 |
1281 core.Map toJson() { | 1281 core.Map<core.String, core.Object> toJson() { |
1282 var _json = new core.Map(); | 1282 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1283 if (code != null) { | 1283 if (code != null) { |
1284 _json["code"] = code; | 1284 _json["code"] = code; |
1285 } | 1285 } |
1286 if (data != null) { | 1286 if (data != null) { |
1287 _json["data"] = data.map((value) => (value).toJson()).toList(); | 1287 _json["data"] = data.map((value) => (value).toJson()).toList(); |
1288 } | 1288 } |
1289 if (message != null) { | 1289 if (message != null) { |
1290 _json["message"] = message; | 1290 _json["message"] = message; |
1291 } | 1291 } |
1292 return _json; | 1292 return _json; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1458 user = _json["user"]; | 1458 user = _json["user"]; |
1459 } | 1459 } |
1460 if (_json.containsKey("warnings")) { | 1460 if (_json.containsKey("warnings")) { |
1461 warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson
(value)).toList(); | 1461 warnings = _json["warnings"].map((value) => new OperationWarnings.fromJson
(value)).toList(); |
1462 } | 1462 } |
1463 if (_json.containsKey("zone")) { | 1463 if (_json.containsKey("zone")) { |
1464 zone = _json["zone"]; | 1464 zone = _json["zone"]; |
1465 } | 1465 } |
1466 } | 1466 } |
1467 | 1467 |
1468 core.Map toJson() { | 1468 core.Map<core.String, core.Object> toJson() { |
1469 var _json = new core.Map(); | 1469 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1470 if (clientOperationId != null) { | 1470 if (clientOperationId != null) { |
1471 _json["clientOperationId"] = clientOperationId; | 1471 _json["clientOperationId"] = clientOperationId; |
1472 } | 1472 } |
1473 if (creationTimestamp != null) { | 1473 if (creationTimestamp != null) { |
1474 _json["creationTimestamp"] = creationTimestamp; | 1474 _json["creationTimestamp"] = creationTimestamp; |
1475 } | 1475 } |
1476 if (endTime != null) { | 1476 if (endTime != null) { |
1477 _json["endTime"] = endTime; | 1477 _json["endTime"] = endTime; |
1478 } | 1478 } |
1479 if (error != null) { | 1479 if (error != null) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1564 kind = _json["kind"]; | 1564 kind = _json["kind"]; |
1565 } | 1565 } |
1566 if (_json.containsKey("nextPageToken")) { | 1566 if (_json.containsKey("nextPageToken")) { |
1567 nextPageToken = _json["nextPageToken"]; | 1567 nextPageToken = _json["nextPageToken"]; |
1568 } | 1568 } |
1569 if (_json.containsKey("selfLink")) { | 1569 if (_json.containsKey("selfLink")) { |
1570 selfLink = _json["selfLink"]; | 1570 selfLink = _json["selfLink"]; |
1571 } | 1571 } |
1572 } | 1572 } |
1573 | 1573 |
1574 core.Map toJson() { | 1574 core.Map<core.String, core.Object> toJson() { |
1575 var _json = new core.Map(); | 1575 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1576 if (id != null) { | 1576 if (id != null) { |
1577 _json["id"] = id; | 1577 _json["id"] = id; |
1578 } | 1578 } |
1579 if (items != null) { | 1579 if (items != null) { |
1580 _json["items"] = items.map((value) => (value).toJson()).toList(); | 1580 _json["items"] = items.map((value) => (value).toJson()).toList(); |
1581 } | 1581 } |
1582 if (kind != null) { | 1582 if (kind != null) { |
1583 _json["kind"] = kind; | 1583 _json["kind"] = kind; |
1584 } | 1584 } |
1585 if (nextPageToken != null) { | 1585 if (nextPageToken != null) { |
(...skipping 25 matching lines...) Expand all Loading... |
1611 | 1611 |
1612 ReplicaPoolAutoHealingPolicy.fromJson(core.Map _json) { | 1612 ReplicaPoolAutoHealingPolicy.fromJson(core.Map _json) { |
1613 if (_json.containsKey("actionType")) { | 1613 if (_json.containsKey("actionType")) { |
1614 actionType = _json["actionType"]; | 1614 actionType = _json["actionType"]; |
1615 } | 1615 } |
1616 if (_json.containsKey("healthCheck")) { | 1616 if (_json.containsKey("healthCheck")) { |
1617 healthCheck = _json["healthCheck"]; | 1617 healthCheck = _json["healthCheck"]; |
1618 } | 1618 } |
1619 } | 1619 } |
1620 | 1620 |
1621 core.Map toJson() { | 1621 core.Map<core.String, core.Object> toJson() { |
1622 var _json = new core.Map(); | 1622 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1623 if (actionType != null) { | 1623 if (actionType != null) { |
1624 _json["actionType"] = actionType; | 1624 _json["actionType"] = actionType; |
1625 } | 1625 } |
1626 if (healthCheck != null) { | 1626 if (healthCheck != null) { |
1627 _json["healthCheck"] = healthCheck; | 1627 _json["healthCheck"] = healthCheck; |
1628 } | 1628 } |
1629 return _json; | 1629 return _json; |
1630 } | 1630 } |
1631 } | 1631 } |
OLD | NEW |