| OLD | NEW |
| 1 library googleapis.compute.v1.test; | 1 library googleapis.compute.v1.test; |
| 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:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| 11 import 'package:googleapis/common/common.dart' as common; | |
| 12 import 'package:googleapis/src/common_internal.dart' as common_internal; | |
| 13 import '../common/common_internal_test.dart' as common_test; | |
| 14 | 11 |
| 15 import 'package:googleapis/compute/v1.dart' as api; | 12 import 'package:googleapis/compute/v1.dart' as api; |
| 16 | 13 |
| 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; |
| 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; |
| 20 _expectJson = expectJson; |
| 21 } |
| 22 |
| 23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
| 24 if (_expectJson) { |
| 25 return request.finalize() |
| 26 .transform(convert.UTF8.decoder) |
| 27 .join('') |
| 28 .then((core.String jsonString) { |
| 29 if (jsonString.isEmpty) { |
| 30 return _callback(request, null); |
| 31 } else { |
| 32 return _callback(request, convert.JSON.decode(jsonString)); |
| 33 } |
| 34 }); |
| 35 } else { |
| 36 var stream = request.finalize(); |
| 37 if (stream == null) { |
| 38 return _callback(request, []); |
| 39 } else { |
| 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); |
| 42 }); |
| 43 } |
| 44 } |
| 45 } |
| 46 } |
| 47 |
| 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } |
| 18 | 53 |
| 19 core.int buildCounterAccessConfig = 0; | 54 core.int buildCounterAccessConfig = 0; |
| 20 buildAccessConfig() { | 55 buildAccessConfig() { |
| 21 var o = new api.AccessConfig(); | 56 var o = new api.AccessConfig(); |
| 22 buildCounterAccessConfig++; | 57 buildCounterAccessConfig++; |
| 23 if (buildCounterAccessConfig < 3) { | 58 if (buildCounterAccessConfig < 3) { |
| 24 o.kind = "foo"; | 59 o.kind = "foo"; |
| 25 o.name = "foo"; | 60 o.name = "foo"; |
| 26 o.natIP = "foo"; | 61 o.natIP = "foo"; |
| 27 o.type = "foo"; | 62 o.type = "foo"; |
| 28 } | 63 } |
| 29 buildCounterAccessConfig--; | 64 buildCounterAccessConfig--; |
| 30 return o; | 65 return o; |
| 31 } | 66 } |
| 32 | 67 |
| 33 checkAccessConfig(api.AccessConfig o) { | 68 checkAccessConfig(api.AccessConfig o) { |
| 34 buildCounterAccessConfig++; | 69 buildCounterAccessConfig++; |
| 35 if (buildCounterAccessConfig < 3) { | 70 if (buildCounterAccessConfig < 3) { |
| 36 unittest.expect(o.kind, unittest.equals('foo')); | 71 unittest.expect(o.kind, unittest.equals('foo')); |
| 37 unittest.expect(o.name, unittest.equals('foo')); | 72 unittest.expect(o.name, unittest.equals('foo')); |
| 38 unittest.expect(o.natIP, unittest.equals('foo')); | 73 unittest.expect(o.natIP, unittest.equals('foo')); |
| 39 unittest.expect(o.type, unittest.equals('foo')); | 74 unittest.expect(o.type, unittest.equals('foo')); |
| 40 } | 75 } |
| 41 buildCounterAccessConfig--; | 76 buildCounterAccessConfig--; |
| 42 } | 77 } |
| 43 | 78 |
| 44 buildUnnamed1235() { | 79 buildUnnamed450() { |
| 45 var o = new core.List<core.String>(); | 80 var o = new core.List<core.String>(); |
| 46 o.add("foo"); | 81 o.add("foo"); |
| 47 o.add("foo"); | 82 o.add("foo"); |
| 48 return o; | 83 return o; |
| 49 } | 84 } |
| 50 | 85 |
| 51 checkUnnamed1235(core.List<core.String> o) { | 86 checkUnnamed450(core.List<core.String> o) { |
| 52 unittest.expect(o, unittest.hasLength(2)); | 87 unittest.expect(o, unittest.hasLength(2)); |
| 53 unittest.expect(o[0], unittest.equals('foo')); | 88 unittest.expect(o[0], unittest.equals('foo')); |
| 54 unittest.expect(o[1], unittest.equals('foo')); | 89 unittest.expect(o[1], unittest.equals('foo')); |
| 55 } | 90 } |
| 56 | 91 |
| 57 core.int buildCounterAddress = 0; | 92 core.int buildCounterAddress = 0; |
| 58 buildAddress() { | 93 buildAddress() { |
| 59 var o = new api.Address(); | 94 var o = new api.Address(); |
| 60 buildCounterAddress++; | 95 buildCounterAddress++; |
| 61 if (buildCounterAddress < 3) { | 96 if (buildCounterAddress < 3) { |
| 62 o.address = "foo"; | 97 o.address = "foo"; |
| 63 o.creationTimestamp = "foo"; | 98 o.creationTimestamp = "foo"; |
| 64 o.description = "foo"; | 99 o.description = "foo"; |
| 65 o.id = "foo"; | 100 o.id = "foo"; |
| 66 o.kind = "foo"; | 101 o.kind = "foo"; |
| 67 o.name = "foo"; | 102 o.name = "foo"; |
| 68 o.region = "foo"; | 103 o.region = "foo"; |
| 69 o.selfLink = "foo"; | 104 o.selfLink = "foo"; |
| 70 o.status = "foo"; | 105 o.status = "foo"; |
| 71 o.users = buildUnnamed1235(); | 106 o.users = buildUnnamed450(); |
| 72 } | 107 } |
| 73 buildCounterAddress--; | 108 buildCounterAddress--; |
| 74 return o; | 109 return o; |
| 75 } | 110 } |
| 76 | 111 |
| 77 checkAddress(api.Address o) { | 112 checkAddress(api.Address o) { |
| 78 buildCounterAddress++; | 113 buildCounterAddress++; |
| 79 if (buildCounterAddress < 3) { | 114 if (buildCounterAddress < 3) { |
| 80 unittest.expect(o.address, unittest.equals('foo')); | 115 unittest.expect(o.address, unittest.equals('foo')); |
| 81 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 116 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 82 unittest.expect(o.description, unittest.equals('foo')); | 117 unittest.expect(o.description, unittest.equals('foo')); |
| 83 unittest.expect(o.id, unittest.equals('foo')); | 118 unittest.expect(o.id, unittest.equals('foo')); |
| 84 unittest.expect(o.kind, unittest.equals('foo')); | 119 unittest.expect(o.kind, unittest.equals('foo')); |
| 85 unittest.expect(o.name, unittest.equals('foo')); | 120 unittest.expect(o.name, unittest.equals('foo')); |
| 86 unittest.expect(o.region, unittest.equals('foo')); | 121 unittest.expect(o.region, unittest.equals('foo')); |
| 87 unittest.expect(o.selfLink, unittest.equals('foo')); | 122 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 88 unittest.expect(o.status, unittest.equals('foo')); | 123 unittest.expect(o.status, unittest.equals('foo')); |
| 89 checkUnnamed1235(o.users); | 124 checkUnnamed450(o.users); |
| 90 } | 125 } |
| 91 buildCounterAddress--; | 126 buildCounterAddress--; |
| 92 } | 127 } |
| 93 | 128 |
| 94 buildUnnamed1236() { | 129 buildUnnamed451() { |
| 95 var o = new core.Map<core.String, api.AddressesScopedList>(); | 130 var o = new core.Map<core.String, api.AddressesScopedList>(); |
| 96 o["x"] = buildAddressesScopedList(); | 131 o["x"] = buildAddressesScopedList(); |
| 97 o["y"] = buildAddressesScopedList(); | 132 o["y"] = buildAddressesScopedList(); |
| 98 return o; | 133 return o; |
| 99 } | 134 } |
| 100 | 135 |
| 101 checkUnnamed1236(core.Map<core.String, api.AddressesScopedList> o) { | 136 checkUnnamed451(core.Map<core.String, api.AddressesScopedList> o) { |
| 102 unittest.expect(o, unittest.hasLength(2)); | 137 unittest.expect(o, unittest.hasLength(2)); |
| 103 checkAddressesScopedList(o["x"]); | 138 checkAddressesScopedList(o["x"]); |
| 104 checkAddressesScopedList(o["y"]); | 139 checkAddressesScopedList(o["y"]); |
| 105 } | 140 } |
| 106 | 141 |
| 107 core.int buildCounterAddressAggregatedList = 0; | 142 core.int buildCounterAddressAggregatedList = 0; |
| 108 buildAddressAggregatedList() { | 143 buildAddressAggregatedList() { |
| 109 var o = new api.AddressAggregatedList(); | 144 var o = new api.AddressAggregatedList(); |
| 110 buildCounterAddressAggregatedList++; | 145 buildCounterAddressAggregatedList++; |
| 111 if (buildCounterAddressAggregatedList < 3) { | 146 if (buildCounterAddressAggregatedList < 3) { |
| 112 o.id = "foo"; | 147 o.id = "foo"; |
| 113 o.items = buildUnnamed1236(); | 148 o.items = buildUnnamed451(); |
| 114 o.kind = "foo"; | 149 o.kind = "foo"; |
| 115 o.nextPageToken = "foo"; | 150 o.nextPageToken = "foo"; |
| 116 o.selfLink = "foo"; | 151 o.selfLink = "foo"; |
| 117 } | 152 } |
| 118 buildCounterAddressAggregatedList--; | 153 buildCounterAddressAggregatedList--; |
| 119 return o; | 154 return o; |
| 120 } | 155 } |
| 121 | 156 |
| 122 checkAddressAggregatedList(api.AddressAggregatedList o) { | 157 checkAddressAggregatedList(api.AddressAggregatedList o) { |
| 123 buildCounterAddressAggregatedList++; | 158 buildCounterAddressAggregatedList++; |
| 124 if (buildCounterAddressAggregatedList < 3) { | 159 if (buildCounterAddressAggregatedList < 3) { |
| 125 unittest.expect(o.id, unittest.equals('foo')); | 160 unittest.expect(o.id, unittest.equals('foo')); |
| 126 checkUnnamed1236(o.items); | 161 checkUnnamed451(o.items); |
| 127 unittest.expect(o.kind, unittest.equals('foo')); | 162 unittest.expect(o.kind, unittest.equals('foo')); |
| 128 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 163 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 129 unittest.expect(o.selfLink, unittest.equals('foo')); | 164 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 130 } | 165 } |
| 131 buildCounterAddressAggregatedList--; | 166 buildCounterAddressAggregatedList--; |
| 132 } | 167 } |
| 133 | 168 |
| 134 buildUnnamed1237() { | 169 buildUnnamed452() { |
| 135 var o = new core.List<api.Address>(); | 170 var o = new core.List<api.Address>(); |
| 136 o.add(buildAddress()); | 171 o.add(buildAddress()); |
| 137 o.add(buildAddress()); | 172 o.add(buildAddress()); |
| 138 return o; | 173 return o; |
| 139 } | 174 } |
| 140 | 175 |
| 141 checkUnnamed1237(core.List<api.Address> o) { | 176 checkUnnamed452(core.List<api.Address> o) { |
| 142 unittest.expect(o, unittest.hasLength(2)); | 177 unittest.expect(o, unittest.hasLength(2)); |
| 143 checkAddress(o[0]); | 178 checkAddress(o[0]); |
| 144 checkAddress(o[1]); | 179 checkAddress(o[1]); |
| 145 } | 180 } |
| 146 | 181 |
| 147 core.int buildCounterAddressList = 0; | 182 core.int buildCounterAddressList = 0; |
| 148 buildAddressList() { | 183 buildAddressList() { |
| 149 var o = new api.AddressList(); | 184 var o = new api.AddressList(); |
| 150 buildCounterAddressList++; | 185 buildCounterAddressList++; |
| 151 if (buildCounterAddressList < 3) { | 186 if (buildCounterAddressList < 3) { |
| 152 o.id = "foo"; | 187 o.id = "foo"; |
| 153 o.items = buildUnnamed1237(); | 188 o.items = buildUnnamed452(); |
| 154 o.kind = "foo"; | 189 o.kind = "foo"; |
| 155 o.nextPageToken = "foo"; | 190 o.nextPageToken = "foo"; |
| 156 o.selfLink = "foo"; | 191 o.selfLink = "foo"; |
| 157 } | 192 } |
| 158 buildCounterAddressList--; | 193 buildCounterAddressList--; |
| 159 return o; | 194 return o; |
| 160 } | 195 } |
| 161 | 196 |
| 162 checkAddressList(api.AddressList o) { | 197 checkAddressList(api.AddressList o) { |
| 163 buildCounterAddressList++; | 198 buildCounterAddressList++; |
| 164 if (buildCounterAddressList < 3) { | 199 if (buildCounterAddressList < 3) { |
| 165 unittest.expect(o.id, unittest.equals('foo')); | 200 unittest.expect(o.id, unittest.equals('foo')); |
| 166 checkUnnamed1237(o.items); | 201 checkUnnamed452(o.items); |
| 167 unittest.expect(o.kind, unittest.equals('foo')); | 202 unittest.expect(o.kind, unittest.equals('foo')); |
| 168 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 203 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 169 unittest.expect(o.selfLink, unittest.equals('foo')); | 204 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 170 } | 205 } |
| 171 buildCounterAddressList--; | 206 buildCounterAddressList--; |
| 172 } | 207 } |
| 173 | 208 |
| 174 buildUnnamed1238() { | 209 buildUnnamed453() { |
| 175 var o = new core.List<api.Address>(); | 210 var o = new core.List<api.Address>(); |
| 176 o.add(buildAddress()); | 211 o.add(buildAddress()); |
| 177 o.add(buildAddress()); | 212 o.add(buildAddress()); |
| 178 return o; | 213 return o; |
| 179 } | 214 } |
| 180 | 215 |
| 181 checkUnnamed1238(core.List<api.Address> o) { | 216 checkUnnamed453(core.List<api.Address> o) { |
| 182 unittest.expect(o, unittest.hasLength(2)); | 217 unittest.expect(o, unittest.hasLength(2)); |
| 183 checkAddress(o[0]); | 218 checkAddress(o[0]); |
| 184 checkAddress(o[1]); | 219 checkAddress(o[1]); |
| 185 } | 220 } |
| 186 | 221 |
| 187 core.int buildCounterAddressesScopedListWarningData = 0; | 222 core.int buildCounterAddressesScopedListWarningData = 0; |
| 188 buildAddressesScopedListWarningData() { | 223 buildAddressesScopedListWarningData() { |
| 189 var o = new api.AddressesScopedListWarningData(); | 224 var o = new api.AddressesScopedListWarningData(); |
| 190 buildCounterAddressesScopedListWarningData++; | 225 buildCounterAddressesScopedListWarningData++; |
| 191 if (buildCounterAddressesScopedListWarningData < 3) { | 226 if (buildCounterAddressesScopedListWarningData < 3) { |
| 192 o.key = "foo"; | 227 o.key = "foo"; |
| 193 o.value = "foo"; | 228 o.value = "foo"; |
| 194 } | 229 } |
| 195 buildCounterAddressesScopedListWarningData--; | 230 buildCounterAddressesScopedListWarningData--; |
| 196 return o; | 231 return o; |
| 197 } | 232 } |
| 198 | 233 |
| 199 checkAddressesScopedListWarningData(api.AddressesScopedListWarningData o) { | 234 checkAddressesScopedListWarningData(api.AddressesScopedListWarningData o) { |
| 200 buildCounterAddressesScopedListWarningData++; | 235 buildCounterAddressesScopedListWarningData++; |
| 201 if (buildCounterAddressesScopedListWarningData < 3) { | 236 if (buildCounterAddressesScopedListWarningData < 3) { |
| 202 unittest.expect(o.key, unittest.equals('foo')); | 237 unittest.expect(o.key, unittest.equals('foo')); |
| 203 unittest.expect(o.value, unittest.equals('foo')); | 238 unittest.expect(o.value, unittest.equals('foo')); |
| 204 } | 239 } |
| 205 buildCounterAddressesScopedListWarningData--; | 240 buildCounterAddressesScopedListWarningData--; |
| 206 } | 241 } |
| 207 | 242 |
| 208 buildUnnamed1239() { | 243 buildUnnamed454() { |
| 209 var o = new core.List<api.AddressesScopedListWarningData>(); | 244 var o = new core.List<api.AddressesScopedListWarningData>(); |
| 210 o.add(buildAddressesScopedListWarningData()); | 245 o.add(buildAddressesScopedListWarningData()); |
| 211 o.add(buildAddressesScopedListWarningData()); | 246 o.add(buildAddressesScopedListWarningData()); |
| 212 return o; | 247 return o; |
| 213 } | 248 } |
| 214 | 249 |
| 215 checkUnnamed1239(core.List<api.AddressesScopedListWarningData> o) { | 250 checkUnnamed454(core.List<api.AddressesScopedListWarningData> o) { |
| 216 unittest.expect(o, unittest.hasLength(2)); | 251 unittest.expect(o, unittest.hasLength(2)); |
| 217 checkAddressesScopedListWarningData(o[0]); | 252 checkAddressesScopedListWarningData(o[0]); |
| 218 checkAddressesScopedListWarningData(o[1]); | 253 checkAddressesScopedListWarningData(o[1]); |
| 219 } | 254 } |
| 220 | 255 |
| 221 core.int buildCounterAddressesScopedListWarning = 0; | 256 core.int buildCounterAddressesScopedListWarning = 0; |
| 222 buildAddressesScopedListWarning() { | 257 buildAddressesScopedListWarning() { |
| 223 var o = new api.AddressesScopedListWarning(); | 258 var o = new api.AddressesScopedListWarning(); |
| 224 buildCounterAddressesScopedListWarning++; | 259 buildCounterAddressesScopedListWarning++; |
| 225 if (buildCounterAddressesScopedListWarning < 3) { | 260 if (buildCounterAddressesScopedListWarning < 3) { |
| 226 o.code = "foo"; | 261 o.code = "foo"; |
| 227 o.data = buildUnnamed1239(); | 262 o.data = buildUnnamed454(); |
| 228 o.message = "foo"; | 263 o.message = "foo"; |
| 229 } | 264 } |
| 230 buildCounterAddressesScopedListWarning--; | 265 buildCounterAddressesScopedListWarning--; |
| 231 return o; | 266 return o; |
| 232 } | 267 } |
| 233 | 268 |
| 234 checkAddressesScopedListWarning(api.AddressesScopedListWarning o) { | 269 checkAddressesScopedListWarning(api.AddressesScopedListWarning o) { |
| 235 buildCounterAddressesScopedListWarning++; | 270 buildCounterAddressesScopedListWarning++; |
| 236 if (buildCounterAddressesScopedListWarning < 3) { | 271 if (buildCounterAddressesScopedListWarning < 3) { |
| 237 unittest.expect(o.code, unittest.equals('foo')); | 272 unittest.expect(o.code, unittest.equals('foo')); |
| 238 checkUnnamed1239(o.data); | 273 checkUnnamed454(o.data); |
| 239 unittest.expect(o.message, unittest.equals('foo')); | 274 unittest.expect(o.message, unittest.equals('foo')); |
| 240 } | 275 } |
| 241 buildCounterAddressesScopedListWarning--; | 276 buildCounterAddressesScopedListWarning--; |
| 242 } | 277 } |
| 243 | 278 |
| 244 core.int buildCounterAddressesScopedList = 0; | 279 core.int buildCounterAddressesScopedList = 0; |
| 245 buildAddressesScopedList() { | 280 buildAddressesScopedList() { |
| 246 var o = new api.AddressesScopedList(); | 281 var o = new api.AddressesScopedList(); |
| 247 buildCounterAddressesScopedList++; | 282 buildCounterAddressesScopedList++; |
| 248 if (buildCounterAddressesScopedList < 3) { | 283 if (buildCounterAddressesScopedList < 3) { |
| 249 o.addresses = buildUnnamed1238(); | 284 o.addresses = buildUnnamed453(); |
| 250 o.warning = buildAddressesScopedListWarning(); | 285 o.warning = buildAddressesScopedListWarning(); |
| 251 } | 286 } |
| 252 buildCounterAddressesScopedList--; | 287 buildCounterAddressesScopedList--; |
| 253 return o; | 288 return o; |
| 254 } | 289 } |
| 255 | 290 |
| 256 checkAddressesScopedList(api.AddressesScopedList o) { | 291 checkAddressesScopedList(api.AddressesScopedList o) { |
| 257 buildCounterAddressesScopedList++; | 292 buildCounterAddressesScopedList++; |
| 258 if (buildCounterAddressesScopedList < 3) { | 293 if (buildCounterAddressesScopedList < 3) { |
| 259 checkUnnamed1238(o.addresses); | 294 checkUnnamed453(o.addresses); |
| 260 checkAddressesScopedListWarning(o.warning); | 295 checkAddressesScopedListWarning(o.warning); |
| 261 } | 296 } |
| 262 buildCounterAddressesScopedList--; | 297 buildCounterAddressesScopedList--; |
| 263 } | 298 } |
| 264 | 299 |
| 265 buildUnnamed1240() { | 300 buildUnnamed455() { |
| 266 var o = new core.List<core.String>(); | 301 var o = new core.List<core.String>(); |
| 267 o.add("foo"); | 302 o.add("foo"); |
| 268 o.add("foo"); | 303 o.add("foo"); |
| 269 return o; | 304 return o; |
| 270 } | 305 } |
| 271 | 306 |
| 272 checkUnnamed1240(core.List<core.String> o) { | 307 checkUnnamed455(core.List<core.String> o) { |
| 273 unittest.expect(o, unittest.hasLength(2)); | 308 unittest.expect(o, unittest.hasLength(2)); |
| 274 unittest.expect(o[0], unittest.equals('foo')); | 309 unittest.expect(o[0], unittest.equals('foo')); |
| 275 unittest.expect(o[1], unittest.equals('foo')); | 310 unittest.expect(o[1], unittest.equals('foo')); |
| 276 } | 311 } |
| 277 | 312 |
| 278 core.int buildCounterAttachedDisk = 0; | 313 core.int buildCounterAttachedDisk = 0; |
| 279 buildAttachedDisk() { | 314 buildAttachedDisk() { |
| 280 var o = new api.AttachedDisk(); | 315 var o = new api.AttachedDisk(); |
| 281 buildCounterAttachedDisk++; | 316 buildCounterAttachedDisk++; |
| 282 if (buildCounterAttachedDisk < 3) { | 317 if (buildCounterAttachedDisk < 3) { |
| 283 o.autoDelete = true; | 318 o.autoDelete = true; |
| 284 o.boot = true; | 319 o.boot = true; |
| 285 o.deviceName = "foo"; | 320 o.deviceName = "foo"; |
| 286 o.index = 42; | 321 o.index = 42; |
| 287 o.initializeParams = buildAttachedDiskInitializeParams(); | 322 o.initializeParams = buildAttachedDiskInitializeParams(); |
| 288 o.interface = "foo"; | 323 o.interface = "foo"; |
| 289 o.kind = "foo"; | 324 o.kind = "foo"; |
| 290 o.licenses = buildUnnamed1240(); | 325 o.licenses = buildUnnamed455(); |
| 291 o.mode = "foo"; | 326 o.mode = "foo"; |
| 292 o.source = "foo"; | 327 o.source = "foo"; |
| 293 o.type = "foo"; | 328 o.type = "foo"; |
| 294 } | 329 } |
| 295 buildCounterAttachedDisk--; | 330 buildCounterAttachedDisk--; |
| 296 return o; | 331 return o; |
| 297 } | 332 } |
| 298 | 333 |
| 299 checkAttachedDisk(api.AttachedDisk o) { | 334 checkAttachedDisk(api.AttachedDisk o) { |
| 300 buildCounterAttachedDisk++; | 335 buildCounterAttachedDisk++; |
| 301 if (buildCounterAttachedDisk < 3) { | 336 if (buildCounterAttachedDisk < 3) { |
| 302 unittest.expect(o.autoDelete, unittest.isTrue); | 337 unittest.expect(o.autoDelete, unittest.isTrue); |
| 303 unittest.expect(o.boot, unittest.isTrue); | 338 unittest.expect(o.boot, unittest.isTrue); |
| 304 unittest.expect(o.deviceName, unittest.equals('foo')); | 339 unittest.expect(o.deviceName, unittest.equals('foo')); |
| 305 unittest.expect(o.index, unittest.equals(42)); | 340 unittest.expect(o.index, unittest.equals(42)); |
| 306 checkAttachedDiskInitializeParams(o.initializeParams); | 341 checkAttachedDiskInitializeParams(o.initializeParams); |
| 307 unittest.expect(o.interface, unittest.equals('foo')); | 342 unittest.expect(o.interface, unittest.equals('foo')); |
| 308 unittest.expect(o.kind, unittest.equals('foo')); | 343 unittest.expect(o.kind, unittest.equals('foo')); |
| 309 checkUnnamed1240(o.licenses); | 344 checkUnnamed455(o.licenses); |
| 310 unittest.expect(o.mode, unittest.equals('foo')); | 345 unittest.expect(o.mode, unittest.equals('foo')); |
| 311 unittest.expect(o.source, unittest.equals('foo')); | 346 unittest.expect(o.source, unittest.equals('foo')); |
| 312 unittest.expect(o.type, unittest.equals('foo')); | 347 unittest.expect(o.type, unittest.equals('foo')); |
| 313 } | 348 } |
| 314 buildCounterAttachedDisk--; | 349 buildCounterAttachedDisk--; |
| 315 } | 350 } |
| 316 | 351 |
| 317 core.int buildCounterAttachedDiskInitializeParams = 0; | 352 core.int buildCounterAttachedDiskInitializeParams = 0; |
| 318 buildAttachedDiskInitializeParams() { | 353 buildAttachedDiskInitializeParams() { |
| 319 var o = new api.AttachedDiskInitializeParams(); | 354 var o = new api.AttachedDiskInitializeParams(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 unittest.expect(o.capacityScaler, unittest.equals(42.0)); | 398 unittest.expect(o.capacityScaler, unittest.equals(42.0)); |
| 364 unittest.expect(o.description, unittest.equals('foo')); | 399 unittest.expect(o.description, unittest.equals('foo')); |
| 365 unittest.expect(o.group, unittest.equals('foo')); | 400 unittest.expect(o.group, unittest.equals('foo')); |
| 366 unittest.expect(o.maxRate, unittest.equals(42)); | 401 unittest.expect(o.maxRate, unittest.equals(42)); |
| 367 unittest.expect(o.maxRatePerInstance, unittest.equals(42.0)); | 402 unittest.expect(o.maxRatePerInstance, unittest.equals(42.0)); |
| 368 unittest.expect(o.maxUtilization, unittest.equals(42.0)); | 403 unittest.expect(o.maxUtilization, unittest.equals(42.0)); |
| 369 } | 404 } |
| 370 buildCounterBackend--; | 405 buildCounterBackend--; |
| 371 } | 406 } |
| 372 | 407 |
| 373 buildUnnamed1241() { | 408 buildUnnamed456() { |
| 374 var o = new core.List<api.Backend>(); | 409 var o = new core.List<api.Backend>(); |
| 375 o.add(buildBackend()); | 410 o.add(buildBackend()); |
| 376 o.add(buildBackend()); | 411 o.add(buildBackend()); |
| 377 return o; | 412 return o; |
| 378 } | 413 } |
| 379 | 414 |
| 380 checkUnnamed1241(core.List<api.Backend> o) { | 415 checkUnnamed456(core.List<api.Backend> o) { |
| 381 unittest.expect(o, unittest.hasLength(2)); | 416 unittest.expect(o, unittest.hasLength(2)); |
| 382 checkBackend(o[0]); | 417 checkBackend(o[0]); |
| 383 checkBackend(o[1]); | 418 checkBackend(o[1]); |
| 384 } | 419 } |
| 385 | 420 |
| 386 buildUnnamed1242() { | 421 buildUnnamed457() { |
| 387 var o = new core.List<core.String>(); | 422 var o = new core.List<core.String>(); |
| 388 o.add("foo"); | 423 o.add("foo"); |
| 389 o.add("foo"); | 424 o.add("foo"); |
| 390 return o; | 425 return o; |
| 391 } | 426 } |
| 392 | 427 |
| 393 checkUnnamed1242(core.List<core.String> o) { | 428 checkUnnamed457(core.List<core.String> o) { |
| 394 unittest.expect(o, unittest.hasLength(2)); | 429 unittest.expect(o, unittest.hasLength(2)); |
| 395 unittest.expect(o[0], unittest.equals('foo')); | 430 unittest.expect(o[0], unittest.equals('foo')); |
| 396 unittest.expect(o[1], unittest.equals('foo')); | 431 unittest.expect(o[1], unittest.equals('foo')); |
| 397 } | 432 } |
| 398 | 433 |
| 399 core.int buildCounterBackendService = 0; | 434 core.int buildCounterBackendService = 0; |
| 400 buildBackendService() { | 435 buildBackendService() { |
| 401 var o = new api.BackendService(); | 436 var o = new api.BackendService(); |
| 402 buildCounterBackendService++; | 437 buildCounterBackendService++; |
| 403 if (buildCounterBackendService < 3) { | 438 if (buildCounterBackendService < 3) { |
| 404 o.backends = buildUnnamed1241(); | 439 o.backends = buildUnnamed456(); |
| 405 o.creationTimestamp = "foo"; | 440 o.creationTimestamp = "foo"; |
| 406 o.description = "foo"; | 441 o.description = "foo"; |
| 407 o.fingerprint = "foo"; | 442 o.fingerprint = "foo"; |
| 408 o.healthChecks = buildUnnamed1242(); | 443 o.healthChecks = buildUnnamed457(); |
| 409 o.id = "foo"; | 444 o.id = "foo"; |
| 410 o.kind = "foo"; | 445 o.kind = "foo"; |
| 411 o.name = "foo"; | 446 o.name = "foo"; |
| 412 o.port = 42; | 447 o.port = 42; |
| 413 o.portName = "foo"; | 448 o.portName = "foo"; |
| 414 o.protocol = "foo"; | 449 o.protocol = "foo"; |
| 415 o.selfLink = "foo"; | 450 o.selfLink = "foo"; |
| 416 o.timeoutSec = 42; | 451 o.timeoutSec = 42; |
| 417 } | 452 } |
| 418 buildCounterBackendService--; | 453 buildCounterBackendService--; |
| 419 return o; | 454 return o; |
| 420 } | 455 } |
| 421 | 456 |
| 422 checkBackendService(api.BackendService o) { | 457 checkBackendService(api.BackendService o) { |
| 423 buildCounterBackendService++; | 458 buildCounterBackendService++; |
| 424 if (buildCounterBackendService < 3) { | 459 if (buildCounterBackendService < 3) { |
| 425 checkUnnamed1241(o.backends); | 460 checkUnnamed456(o.backends); |
| 426 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 461 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 427 unittest.expect(o.description, unittest.equals('foo')); | 462 unittest.expect(o.description, unittest.equals('foo')); |
| 428 unittest.expect(o.fingerprint, unittest.equals('foo')); | 463 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 429 checkUnnamed1242(o.healthChecks); | 464 checkUnnamed457(o.healthChecks); |
| 430 unittest.expect(o.id, unittest.equals('foo')); | 465 unittest.expect(o.id, unittest.equals('foo')); |
| 431 unittest.expect(o.kind, unittest.equals('foo')); | 466 unittest.expect(o.kind, unittest.equals('foo')); |
| 432 unittest.expect(o.name, unittest.equals('foo')); | 467 unittest.expect(o.name, unittest.equals('foo')); |
| 433 unittest.expect(o.port, unittest.equals(42)); | 468 unittest.expect(o.port, unittest.equals(42)); |
| 434 unittest.expect(o.portName, unittest.equals('foo')); | 469 unittest.expect(o.portName, unittest.equals('foo')); |
| 435 unittest.expect(o.protocol, unittest.equals('foo')); | 470 unittest.expect(o.protocol, unittest.equals('foo')); |
| 436 unittest.expect(o.selfLink, unittest.equals('foo')); | 471 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 437 unittest.expect(o.timeoutSec, unittest.equals(42)); | 472 unittest.expect(o.timeoutSec, unittest.equals(42)); |
| 438 } | 473 } |
| 439 buildCounterBackendService--; | 474 buildCounterBackendService--; |
| 440 } | 475 } |
| 441 | 476 |
| 442 buildUnnamed1243() { | 477 buildUnnamed458() { |
| 443 var o = new core.List<api.HealthStatus>(); | 478 var o = new core.List<api.HealthStatus>(); |
| 444 o.add(buildHealthStatus()); | 479 o.add(buildHealthStatus()); |
| 445 o.add(buildHealthStatus()); | 480 o.add(buildHealthStatus()); |
| 446 return o; | 481 return o; |
| 447 } | 482 } |
| 448 | 483 |
| 449 checkUnnamed1243(core.List<api.HealthStatus> o) { | 484 checkUnnamed458(core.List<api.HealthStatus> o) { |
| 450 unittest.expect(o, unittest.hasLength(2)); | 485 unittest.expect(o, unittest.hasLength(2)); |
| 451 checkHealthStatus(o[0]); | 486 checkHealthStatus(o[0]); |
| 452 checkHealthStatus(o[1]); | 487 checkHealthStatus(o[1]); |
| 453 } | 488 } |
| 454 | 489 |
| 455 core.int buildCounterBackendServiceGroupHealth = 0; | 490 core.int buildCounterBackendServiceGroupHealth = 0; |
| 456 buildBackendServiceGroupHealth() { | 491 buildBackendServiceGroupHealth() { |
| 457 var o = new api.BackendServiceGroupHealth(); | 492 var o = new api.BackendServiceGroupHealth(); |
| 458 buildCounterBackendServiceGroupHealth++; | 493 buildCounterBackendServiceGroupHealth++; |
| 459 if (buildCounterBackendServiceGroupHealth < 3) { | 494 if (buildCounterBackendServiceGroupHealth < 3) { |
| 460 o.healthStatus = buildUnnamed1243(); | 495 o.healthStatus = buildUnnamed458(); |
| 461 o.kind = "foo"; | 496 o.kind = "foo"; |
| 462 } | 497 } |
| 463 buildCounterBackendServiceGroupHealth--; | 498 buildCounterBackendServiceGroupHealth--; |
| 464 return o; | 499 return o; |
| 465 } | 500 } |
| 466 | 501 |
| 467 checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { | 502 checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { |
| 468 buildCounterBackendServiceGroupHealth++; | 503 buildCounterBackendServiceGroupHealth++; |
| 469 if (buildCounterBackendServiceGroupHealth < 3) { | 504 if (buildCounterBackendServiceGroupHealth < 3) { |
| 470 checkUnnamed1243(o.healthStatus); | 505 checkUnnamed458(o.healthStatus); |
| 471 unittest.expect(o.kind, unittest.equals('foo')); | 506 unittest.expect(o.kind, unittest.equals('foo')); |
| 472 } | 507 } |
| 473 buildCounterBackendServiceGroupHealth--; | 508 buildCounterBackendServiceGroupHealth--; |
| 474 } | 509 } |
| 475 | 510 |
| 476 buildUnnamed1244() { | 511 buildUnnamed459() { |
| 477 var o = new core.List<api.BackendService>(); | 512 var o = new core.List<api.BackendService>(); |
| 478 o.add(buildBackendService()); | 513 o.add(buildBackendService()); |
| 479 o.add(buildBackendService()); | 514 o.add(buildBackendService()); |
| 480 return o; | 515 return o; |
| 481 } | 516 } |
| 482 | 517 |
| 483 checkUnnamed1244(core.List<api.BackendService> o) { | 518 checkUnnamed459(core.List<api.BackendService> o) { |
| 484 unittest.expect(o, unittest.hasLength(2)); | 519 unittest.expect(o, unittest.hasLength(2)); |
| 485 checkBackendService(o[0]); | 520 checkBackendService(o[0]); |
| 486 checkBackendService(o[1]); | 521 checkBackendService(o[1]); |
| 487 } | 522 } |
| 488 | 523 |
| 489 core.int buildCounterBackendServiceList = 0; | 524 core.int buildCounterBackendServiceList = 0; |
| 490 buildBackendServiceList() { | 525 buildBackendServiceList() { |
| 491 var o = new api.BackendServiceList(); | 526 var o = new api.BackendServiceList(); |
| 492 buildCounterBackendServiceList++; | 527 buildCounterBackendServiceList++; |
| 493 if (buildCounterBackendServiceList < 3) { | 528 if (buildCounterBackendServiceList < 3) { |
| 494 o.id = "foo"; | 529 o.id = "foo"; |
| 495 o.items = buildUnnamed1244(); | 530 o.items = buildUnnamed459(); |
| 496 o.kind = "foo"; | 531 o.kind = "foo"; |
| 497 o.nextPageToken = "foo"; | 532 o.nextPageToken = "foo"; |
| 498 o.selfLink = "foo"; | 533 o.selfLink = "foo"; |
| 499 } | 534 } |
| 500 buildCounterBackendServiceList--; | 535 buildCounterBackendServiceList--; |
| 501 return o; | 536 return o; |
| 502 } | 537 } |
| 503 | 538 |
| 504 checkBackendServiceList(api.BackendServiceList o) { | 539 checkBackendServiceList(api.BackendServiceList o) { |
| 505 buildCounterBackendServiceList++; | 540 buildCounterBackendServiceList++; |
| 506 if (buildCounterBackendServiceList < 3) { | 541 if (buildCounterBackendServiceList < 3) { |
| 507 unittest.expect(o.id, unittest.equals('foo')); | 542 unittest.expect(o.id, unittest.equals('foo')); |
| 508 checkUnnamed1244(o.items); | 543 checkUnnamed459(o.items); |
| 509 unittest.expect(o.kind, unittest.equals('foo')); | 544 unittest.expect(o.kind, unittest.equals('foo')); |
| 510 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 545 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 511 unittest.expect(o.selfLink, unittest.equals('foo')); | 546 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 512 } | 547 } |
| 513 buildCounterBackendServiceList--; | 548 buildCounterBackendServiceList--; |
| 514 } | 549 } |
| 515 | 550 |
| 516 core.int buildCounterDeprecationStatus = 0; | 551 core.int buildCounterDeprecationStatus = 0; |
| 517 buildDeprecationStatus() { | 552 buildDeprecationStatus() { |
| 518 var o = new api.DeprecationStatus(); | 553 var o = new api.DeprecationStatus(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 533 if (buildCounterDeprecationStatus < 3) { | 568 if (buildCounterDeprecationStatus < 3) { |
| 534 unittest.expect(o.deleted, unittest.equals('foo')); | 569 unittest.expect(o.deleted, unittest.equals('foo')); |
| 535 unittest.expect(o.deprecated, unittest.equals('foo')); | 570 unittest.expect(o.deprecated, unittest.equals('foo')); |
| 536 unittest.expect(o.obsolete, unittest.equals('foo')); | 571 unittest.expect(o.obsolete, unittest.equals('foo')); |
| 537 unittest.expect(o.replacement, unittest.equals('foo')); | 572 unittest.expect(o.replacement, unittest.equals('foo')); |
| 538 unittest.expect(o.state, unittest.equals('foo')); | 573 unittest.expect(o.state, unittest.equals('foo')); |
| 539 } | 574 } |
| 540 buildCounterDeprecationStatus--; | 575 buildCounterDeprecationStatus--; |
| 541 } | 576 } |
| 542 | 577 |
| 543 buildUnnamed1245() { | 578 buildUnnamed460() { |
| 544 var o = new core.List<core.String>(); | 579 var o = new core.List<core.String>(); |
| 545 o.add("foo"); | 580 o.add("foo"); |
| 546 o.add("foo"); | 581 o.add("foo"); |
| 547 return o; | 582 return o; |
| 548 } | 583 } |
| 549 | 584 |
| 550 checkUnnamed1245(core.List<core.String> o) { | 585 checkUnnamed460(core.List<core.String> o) { |
| 551 unittest.expect(o, unittest.hasLength(2)); | 586 unittest.expect(o, unittest.hasLength(2)); |
| 552 unittest.expect(o[0], unittest.equals('foo')); | 587 unittest.expect(o[0], unittest.equals('foo')); |
| 553 unittest.expect(o[1], unittest.equals('foo')); | 588 unittest.expect(o[1], unittest.equals('foo')); |
| 554 } | 589 } |
| 555 | 590 |
| 556 core.int buildCounterDisk = 0; | 591 core.int buildCounterDisk = 0; |
| 557 buildDisk() { | 592 buildDisk() { |
| 558 var o = new api.Disk(); | 593 var o = new api.Disk(); |
| 559 buildCounterDisk++; | 594 buildCounterDisk++; |
| 560 if (buildCounterDisk < 3) { | 595 if (buildCounterDisk < 3) { |
| 561 o.creationTimestamp = "foo"; | 596 o.creationTimestamp = "foo"; |
| 562 o.description = "foo"; | 597 o.description = "foo"; |
| 563 o.id = "foo"; | 598 o.id = "foo"; |
| 564 o.kind = "foo"; | 599 o.kind = "foo"; |
| 565 o.licenses = buildUnnamed1245(); | 600 o.licenses = buildUnnamed460(); |
| 566 o.name = "foo"; | 601 o.name = "foo"; |
| 567 o.options = "foo"; | 602 o.options = "foo"; |
| 568 o.selfLink = "foo"; | 603 o.selfLink = "foo"; |
| 569 o.sizeGb = "foo"; | 604 o.sizeGb = "foo"; |
| 570 o.sourceImage = "foo"; | 605 o.sourceImage = "foo"; |
| 571 o.sourceImageId = "foo"; | 606 o.sourceImageId = "foo"; |
| 572 o.sourceSnapshot = "foo"; | 607 o.sourceSnapshot = "foo"; |
| 573 o.sourceSnapshotId = "foo"; | 608 o.sourceSnapshotId = "foo"; |
| 574 o.status = "foo"; | 609 o.status = "foo"; |
| 575 o.type = "foo"; | 610 o.type = "foo"; |
| 576 o.zone = "foo"; | 611 o.zone = "foo"; |
| 577 } | 612 } |
| 578 buildCounterDisk--; | 613 buildCounterDisk--; |
| 579 return o; | 614 return o; |
| 580 } | 615 } |
| 581 | 616 |
| 582 checkDisk(api.Disk o) { | 617 checkDisk(api.Disk o) { |
| 583 buildCounterDisk++; | 618 buildCounterDisk++; |
| 584 if (buildCounterDisk < 3) { | 619 if (buildCounterDisk < 3) { |
| 585 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 620 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 586 unittest.expect(o.description, unittest.equals('foo')); | 621 unittest.expect(o.description, unittest.equals('foo')); |
| 587 unittest.expect(o.id, unittest.equals('foo')); | 622 unittest.expect(o.id, unittest.equals('foo')); |
| 588 unittest.expect(o.kind, unittest.equals('foo')); | 623 unittest.expect(o.kind, unittest.equals('foo')); |
| 589 checkUnnamed1245(o.licenses); | 624 checkUnnamed460(o.licenses); |
| 590 unittest.expect(o.name, unittest.equals('foo')); | 625 unittest.expect(o.name, unittest.equals('foo')); |
| 591 unittest.expect(o.options, unittest.equals('foo')); | 626 unittest.expect(o.options, unittest.equals('foo')); |
| 592 unittest.expect(o.selfLink, unittest.equals('foo')); | 627 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 593 unittest.expect(o.sizeGb, unittest.equals('foo')); | 628 unittest.expect(o.sizeGb, unittest.equals('foo')); |
| 594 unittest.expect(o.sourceImage, unittest.equals('foo')); | 629 unittest.expect(o.sourceImage, unittest.equals('foo')); |
| 595 unittest.expect(o.sourceImageId, unittest.equals('foo')); | 630 unittest.expect(o.sourceImageId, unittest.equals('foo')); |
| 596 unittest.expect(o.sourceSnapshot, unittest.equals('foo')); | 631 unittest.expect(o.sourceSnapshot, unittest.equals('foo')); |
| 597 unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); | 632 unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); |
| 598 unittest.expect(o.status, unittest.equals('foo')); | 633 unittest.expect(o.status, unittest.equals('foo')); |
| 599 unittest.expect(o.type, unittest.equals('foo')); | 634 unittest.expect(o.type, unittest.equals('foo')); |
| 600 unittest.expect(o.zone, unittest.equals('foo')); | 635 unittest.expect(o.zone, unittest.equals('foo')); |
| 601 } | 636 } |
| 602 buildCounterDisk--; | 637 buildCounterDisk--; |
| 603 } | 638 } |
| 604 | 639 |
| 605 buildUnnamed1246() { | 640 buildUnnamed461() { |
| 606 var o = new core.Map<core.String, api.DisksScopedList>(); | 641 var o = new core.Map<core.String, api.DisksScopedList>(); |
| 607 o["x"] = buildDisksScopedList(); | 642 o["x"] = buildDisksScopedList(); |
| 608 o["y"] = buildDisksScopedList(); | 643 o["y"] = buildDisksScopedList(); |
| 609 return o; | 644 return o; |
| 610 } | 645 } |
| 611 | 646 |
| 612 checkUnnamed1246(core.Map<core.String, api.DisksScopedList> o) { | 647 checkUnnamed461(core.Map<core.String, api.DisksScopedList> o) { |
| 613 unittest.expect(o, unittest.hasLength(2)); | 648 unittest.expect(o, unittest.hasLength(2)); |
| 614 checkDisksScopedList(o["x"]); | 649 checkDisksScopedList(o["x"]); |
| 615 checkDisksScopedList(o["y"]); | 650 checkDisksScopedList(o["y"]); |
| 616 } | 651 } |
| 617 | 652 |
| 618 core.int buildCounterDiskAggregatedList = 0; | 653 core.int buildCounterDiskAggregatedList = 0; |
| 619 buildDiskAggregatedList() { | 654 buildDiskAggregatedList() { |
| 620 var o = new api.DiskAggregatedList(); | 655 var o = new api.DiskAggregatedList(); |
| 621 buildCounterDiskAggregatedList++; | 656 buildCounterDiskAggregatedList++; |
| 622 if (buildCounterDiskAggregatedList < 3) { | 657 if (buildCounterDiskAggregatedList < 3) { |
| 623 o.id = "foo"; | 658 o.id = "foo"; |
| 624 o.items = buildUnnamed1246(); | 659 o.items = buildUnnamed461(); |
| 625 o.kind = "foo"; | 660 o.kind = "foo"; |
| 626 o.nextPageToken = "foo"; | 661 o.nextPageToken = "foo"; |
| 627 o.selfLink = "foo"; | 662 o.selfLink = "foo"; |
| 628 } | 663 } |
| 629 buildCounterDiskAggregatedList--; | 664 buildCounterDiskAggregatedList--; |
| 630 return o; | 665 return o; |
| 631 } | 666 } |
| 632 | 667 |
| 633 checkDiskAggregatedList(api.DiskAggregatedList o) { | 668 checkDiskAggregatedList(api.DiskAggregatedList o) { |
| 634 buildCounterDiskAggregatedList++; | 669 buildCounterDiskAggregatedList++; |
| 635 if (buildCounterDiskAggregatedList < 3) { | 670 if (buildCounterDiskAggregatedList < 3) { |
| 636 unittest.expect(o.id, unittest.equals('foo')); | 671 unittest.expect(o.id, unittest.equals('foo')); |
| 637 checkUnnamed1246(o.items); | 672 checkUnnamed461(o.items); |
| 638 unittest.expect(o.kind, unittest.equals('foo')); | 673 unittest.expect(o.kind, unittest.equals('foo')); |
| 639 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 674 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 640 unittest.expect(o.selfLink, unittest.equals('foo')); | 675 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 641 } | 676 } |
| 642 buildCounterDiskAggregatedList--; | 677 buildCounterDiskAggregatedList--; |
| 643 } | 678 } |
| 644 | 679 |
| 645 buildUnnamed1247() { | 680 buildUnnamed462() { |
| 646 var o = new core.List<api.Disk>(); | 681 var o = new core.List<api.Disk>(); |
| 647 o.add(buildDisk()); | 682 o.add(buildDisk()); |
| 648 o.add(buildDisk()); | 683 o.add(buildDisk()); |
| 649 return o; | 684 return o; |
| 650 } | 685 } |
| 651 | 686 |
| 652 checkUnnamed1247(core.List<api.Disk> o) { | 687 checkUnnamed462(core.List<api.Disk> o) { |
| 653 unittest.expect(o, unittest.hasLength(2)); | 688 unittest.expect(o, unittest.hasLength(2)); |
| 654 checkDisk(o[0]); | 689 checkDisk(o[0]); |
| 655 checkDisk(o[1]); | 690 checkDisk(o[1]); |
| 656 } | 691 } |
| 657 | 692 |
| 658 core.int buildCounterDiskList = 0; | 693 core.int buildCounterDiskList = 0; |
| 659 buildDiskList() { | 694 buildDiskList() { |
| 660 var o = new api.DiskList(); | 695 var o = new api.DiskList(); |
| 661 buildCounterDiskList++; | 696 buildCounterDiskList++; |
| 662 if (buildCounterDiskList < 3) { | 697 if (buildCounterDiskList < 3) { |
| 663 o.id = "foo"; | 698 o.id = "foo"; |
| 664 o.items = buildUnnamed1247(); | 699 o.items = buildUnnamed462(); |
| 665 o.kind = "foo"; | 700 o.kind = "foo"; |
| 666 o.nextPageToken = "foo"; | 701 o.nextPageToken = "foo"; |
| 667 o.selfLink = "foo"; | 702 o.selfLink = "foo"; |
| 668 } | 703 } |
| 669 buildCounterDiskList--; | 704 buildCounterDiskList--; |
| 670 return o; | 705 return o; |
| 671 } | 706 } |
| 672 | 707 |
| 673 checkDiskList(api.DiskList o) { | 708 checkDiskList(api.DiskList o) { |
| 674 buildCounterDiskList++; | 709 buildCounterDiskList++; |
| 675 if (buildCounterDiskList < 3) { | 710 if (buildCounterDiskList < 3) { |
| 676 unittest.expect(o.id, unittest.equals('foo')); | 711 unittest.expect(o.id, unittest.equals('foo')); |
| 677 checkUnnamed1247(o.items); | 712 checkUnnamed462(o.items); |
| 678 unittest.expect(o.kind, unittest.equals('foo')); | 713 unittest.expect(o.kind, unittest.equals('foo')); |
| 679 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 714 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 680 unittest.expect(o.selfLink, unittest.equals('foo')); | 715 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 681 } | 716 } |
| 682 buildCounterDiskList--; | 717 buildCounterDiskList--; |
| 683 } | 718 } |
| 684 | 719 |
| 720 core.int buildCounterDiskMoveRequest = 0; |
| 721 buildDiskMoveRequest() { |
| 722 var o = new api.DiskMoveRequest(); |
| 723 buildCounterDiskMoveRequest++; |
| 724 if (buildCounterDiskMoveRequest < 3) { |
| 725 o.destinationZone = "foo"; |
| 726 o.targetDisk = "foo"; |
| 727 } |
| 728 buildCounterDiskMoveRequest--; |
| 729 return o; |
| 730 } |
| 731 |
| 732 checkDiskMoveRequest(api.DiskMoveRequest o) { |
| 733 buildCounterDiskMoveRequest++; |
| 734 if (buildCounterDiskMoveRequest < 3) { |
| 735 unittest.expect(o.destinationZone, unittest.equals('foo')); |
| 736 unittest.expect(o.targetDisk, unittest.equals('foo')); |
| 737 } |
| 738 buildCounterDiskMoveRequest--; |
| 739 } |
| 740 |
| 685 core.int buildCounterDiskType = 0; | 741 core.int buildCounterDiskType = 0; |
| 686 buildDiskType() { | 742 buildDiskType() { |
| 687 var o = new api.DiskType(); | 743 var o = new api.DiskType(); |
| 688 buildCounterDiskType++; | 744 buildCounterDiskType++; |
| 689 if (buildCounterDiskType < 3) { | 745 if (buildCounterDiskType < 3) { |
| 690 o.creationTimestamp = "foo"; | 746 o.creationTimestamp = "foo"; |
| 691 o.defaultDiskSizeGb = "foo"; | 747 o.defaultDiskSizeGb = "foo"; |
| 692 o.deprecated = buildDeprecationStatus(); | 748 o.deprecated = buildDeprecationStatus(); |
| 693 o.description = "foo"; | 749 o.description = "foo"; |
| 694 o.id = "foo"; | 750 o.id = "foo"; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 712 unittest.expect(o.id, unittest.equals('foo')); | 768 unittest.expect(o.id, unittest.equals('foo')); |
| 713 unittest.expect(o.kind, unittest.equals('foo')); | 769 unittest.expect(o.kind, unittest.equals('foo')); |
| 714 unittest.expect(o.name, unittest.equals('foo')); | 770 unittest.expect(o.name, unittest.equals('foo')); |
| 715 unittest.expect(o.selfLink, unittest.equals('foo')); | 771 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 716 unittest.expect(o.validDiskSize, unittest.equals('foo')); | 772 unittest.expect(o.validDiskSize, unittest.equals('foo')); |
| 717 unittest.expect(o.zone, unittest.equals('foo')); | 773 unittest.expect(o.zone, unittest.equals('foo')); |
| 718 } | 774 } |
| 719 buildCounterDiskType--; | 775 buildCounterDiskType--; |
| 720 } | 776 } |
| 721 | 777 |
| 722 buildUnnamed1248() { | 778 buildUnnamed463() { |
| 723 var o = new core.Map<core.String, api.DiskTypesScopedList>(); | 779 var o = new core.Map<core.String, api.DiskTypesScopedList>(); |
| 724 o["x"] = buildDiskTypesScopedList(); | 780 o["x"] = buildDiskTypesScopedList(); |
| 725 o["y"] = buildDiskTypesScopedList(); | 781 o["y"] = buildDiskTypesScopedList(); |
| 726 return o; | 782 return o; |
| 727 } | 783 } |
| 728 | 784 |
| 729 checkUnnamed1248(core.Map<core.String, api.DiskTypesScopedList> o) { | 785 checkUnnamed463(core.Map<core.String, api.DiskTypesScopedList> o) { |
| 730 unittest.expect(o, unittest.hasLength(2)); | 786 unittest.expect(o, unittest.hasLength(2)); |
| 731 checkDiskTypesScopedList(o["x"]); | 787 checkDiskTypesScopedList(o["x"]); |
| 732 checkDiskTypesScopedList(o["y"]); | 788 checkDiskTypesScopedList(o["y"]); |
| 733 } | 789 } |
| 734 | 790 |
| 735 core.int buildCounterDiskTypeAggregatedList = 0; | 791 core.int buildCounterDiskTypeAggregatedList = 0; |
| 736 buildDiskTypeAggregatedList() { | 792 buildDiskTypeAggregatedList() { |
| 737 var o = new api.DiskTypeAggregatedList(); | 793 var o = new api.DiskTypeAggregatedList(); |
| 738 buildCounterDiskTypeAggregatedList++; | 794 buildCounterDiskTypeAggregatedList++; |
| 739 if (buildCounterDiskTypeAggregatedList < 3) { | 795 if (buildCounterDiskTypeAggregatedList < 3) { |
| 740 o.id = "foo"; | 796 o.id = "foo"; |
| 741 o.items = buildUnnamed1248(); | 797 o.items = buildUnnamed463(); |
| 742 o.kind = "foo"; | 798 o.kind = "foo"; |
| 743 o.nextPageToken = "foo"; | 799 o.nextPageToken = "foo"; |
| 744 o.selfLink = "foo"; | 800 o.selfLink = "foo"; |
| 745 } | 801 } |
| 746 buildCounterDiskTypeAggregatedList--; | 802 buildCounterDiskTypeAggregatedList--; |
| 747 return o; | 803 return o; |
| 748 } | 804 } |
| 749 | 805 |
| 750 checkDiskTypeAggregatedList(api.DiskTypeAggregatedList o) { | 806 checkDiskTypeAggregatedList(api.DiskTypeAggregatedList o) { |
| 751 buildCounterDiskTypeAggregatedList++; | 807 buildCounterDiskTypeAggregatedList++; |
| 752 if (buildCounterDiskTypeAggregatedList < 3) { | 808 if (buildCounterDiskTypeAggregatedList < 3) { |
| 753 unittest.expect(o.id, unittest.equals('foo')); | 809 unittest.expect(o.id, unittest.equals('foo')); |
| 754 checkUnnamed1248(o.items); | 810 checkUnnamed463(o.items); |
| 755 unittest.expect(o.kind, unittest.equals('foo')); | 811 unittest.expect(o.kind, unittest.equals('foo')); |
| 756 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 812 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 757 unittest.expect(o.selfLink, unittest.equals('foo')); | 813 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 758 } | 814 } |
| 759 buildCounterDiskTypeAggregatedList--; | 815 buildCounterDiskTypeAggregatedList--; |
| 760 } | 816 } |
| 761 | 817 |
| 762 buildUnnamed1249() { | 818 buildUnnamed464() { |
| 763 var o = new core.List<api.DiskType>(); | 819 var o = new core.List<api.DiskType>(); |
| 764 o.add(buildDiskType()); | 820 o.add(buildDiskType()); |
| 765 o.add(buildDiskType()); | 821 o.add(buildDiskType()); |
| 766 return o; | 822 return o; |
| 767 } | 823 } |
| 768 | 824 |
| 769 checkUnnamed1249(core.List<api.DiskType> o) { | 825 checkUnnamed464(core.List<api.DiskType> o) { |
| 770 unittest.expect(o, unittest.hasLength(2)); | 826 unittest.expect(o, unittest.hasLength(2)); |
| 771 checkDiskType(o[0]); | 827 checkDiskType(o[0]); |
| 772 checkDiskType(o[1]); | 828 checkDiskType(o[1]); |
| 773 } | 829 } |
| 774 | 830 |
| 775 core.int buildCounterDiskTypeList = 0; | 831 core.int buildCounterDiskTypeList = 0; |
| 776 buildDiskTypeList() { | 832 buildDiskTypeList() { |
| 777 var o = new api.DiskTypeList(); | 833 var o = new api.DiskTypeList(); |
| 778 buildCounterDiskTypeList++; | 834 buildCounterDiskTypeList++; |
| 779 if (buildCounterDiskTypeList < 3) { | 835 if (buildCounterDiskTypeList < 3) { |
| 780 o.id = "foo"; | 836 o.id = "foo"; |
| 781 o.items = buildUnnamed1249(); | 837 o.items = buildUnnamed464(); |
| 782 o.kind = "foo"; | 838 o.kind = "foo"; |
| 783 o.nextPageToken = "foo"; | 839 o.nextPageToken = "foo"; |
| 784 o.selfLink = "foo"; | 840 o.selfLink = "foo"; |
| 785 } | 841 } |
| 786 buildCounterDiskTypeList--; | 842 buildCounterDiskTypeList--; |
| 787 return o; | 843 return o; |
| 788 } | 844 } |
| 789 | 845 |
| 790 checkDiskTypeList(api.DiskTypeList o) { | 846 checkDiskTypeList(api.DiskTypeList o) { |
| 791 buildCounterDiskTypeList++; | 847 buildCounterDiskTypeList++; |
| 792 if (buildCounterDiskTypeList < 3) { | 848 if (buildCounterDiskTypeList < 3) { |
| 793 unittest.expect(o.id, unittest.equals('foo')); | 849 unittest.expect(o.id, unittest.equals('foo')); |
| 794 checkUnnamed1249(o.items); | 850 checkUnnamed464(o.items); |
| 795 unittest.expect(o.kind, unittest.equals('foo')); | 851 unittest.expect(o.kind, unittest.equals('foo')); |
| 796 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 852 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 797 unittest.expect(o.selfLink, unittest.equals('foo')); | 853 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 798 } | 854 } |
| 799 buildCounterDiskTypeList--; | 855 buildCounterDiskTypeList--; |
| 800 } | 856 } |
| 801 | 857 |
| 802 buildUnnamed1250() { | 858 buildUnnamed465() { |
| 803 var o = new core.List<api.DiskType>(); | 859 var o = new core.List<api.DiskType>(); |
| 804 o.add(buildDiskType()); | 860 o.add(buildDiskType()); |
| 805 o.add(buildDiskType()); | 861 o.add(buildDiskType()); |
| 806 return o; | 862 return o; |
| 807 } | 863 } |
| 808 | 864 |
| 809 checkUnnamed1250(core.List<api.DiskType> o) { | 865 checkUnnamed465(core.List<api.DiskType> o) { |
| 810 unittest.expect(o, unittest.hasLength(2)); | 866 unittest.expect(o, unittest.hasLength(2)); |
| 811 checkDiskType(o[0]); | 867 checkDiskType(o[0]); |
| 812 checkDiskType(o[1]); | 868 checkDiskType(o[1]); |
| 813 } | 869 } |
| 814 | 870 |
| 815 core.int buildCounterDiskTypesScopedListWarningData = 0; | 871 core.int buildCounterDiskTypesScopedListWarningData = 0; |
| 816 buildDiskTypesScopedListWarningData() { | 872 buildDiskTypesScopedListWarningData() { |
| 817 var o = new api.DiskTypesScopedListWarningData(); | 873 var o = new api.DiskTypesScopedListWarningData(); |
| 818 buildCounterDiskTypesScopedListWarningData++; | 874 buildCounterDiskTypesScopedListWarningData++; |
| 819 if (buildCounterDiskTypesScopedListWarningData < 3) { | 875 if (buildCounterDiskTypesScopedListWarningData < 3) { |
| 820 o.key = "foo"; | 876 o.key = "foo"; |
| 821 o.value = "foo"; | 877 o.value = "foo"; |
| 822 } | 878 } |
| 823 buildCounterDiskTypesScopedListWarningData--; | 879 buildCounterDiskTypesScopedListWarningData--; |
| 824 return o; | 880 return o; |
| 825 } | 881 } |
| 826 | 882 |
| 827 checkDiskTypesScopedListWarningData(api.DiskTypesScopedListWarningData o) { | 883 checkDiskTypesScopedListWarningData(api.DiskTypesScopedListWarningData o) { |
| 828 buildCounterDiskTypesScopedListWarningData++; | 884 buildCounterDiskTypesScopedListWarningData++; |
| 829 if (buildCounterDiskTypesScopedListWarningData < 3) { | 885 if (buildCounterDiskTypesScopedListWarningData < 3) { |
| 830 unittest.expect(o.key, unittest.equals('foo')); | 886 unittest.expect(o.key, unittest.equals('foo')); |
| 831 unittest.expect(o.value, unittest.equals('foo')); | 887 unittest.expect(o.value, unittest.equals('foo')); |
| 832 } | 888 } |
| 833 buildCounterDiskTypesScopedListWarningData--; | 889 buildCounterDiskTypesScopedListWarningData--; |
| 834 } | 890 } |
| 835 | 891 |
| 836 buildUnnamed1251() { | 892 buildUnnamed466() { |
| 837 var o = new core.List<api.DiskTypesScopedListWarningData>(); | 893 var o = new core.List<api.DiskTypesScopedListWarningData>(); |
| 838 o.add(buildDiskTypesScopedListWarningData()); | 894 o.add(buildDiskTypesScopedListWarningData()); |
| 839 o.add(buildDiskTypesScopedListWarningData()); | 895 o.add(buildDiskTypesScopedListWarningData()); |
| 840 return o; | 896 return o; |
| 841 } | 897 } |
| 842 | 898 |
| 843 checkUnnamed1251(core.List<api.DiskTypesScopedListWarningData> o) { | 899 checkUnnamed466(core.List<api.DiskTypesScopedListWarningData> o) { |
| 844 unittest.expect(o, unittest.hasLength(2)); | 900 unittest.expect(o, unittest.hasLength(2)); |
| 845 checkDiskTypesScopedListWarningData(o[0]); | 901 checkDiskTypesScopedListWarningData(o[0]); |
| 846 checkDiskTypesScopedListWarningData(o[1]); | 902 checkDiskTypesScopedListWarningData(o[1]); |
| 847 } | 903 } |
| 848 | 904 |
| 849 core.int buildCounterDiskTypesScopedListWarning = 0; | 905 core.int buildCounterDiskTypesScopedListWarning = 0; |
| 850 buildDiskTypesScopedListWarning() { | 906 buildDiskTypesScopedListWarning() { |
| 851 var o = new api.DiskTypesScopedListWarning(); | 907 var o = new api.DiskTypesScopedListWarning(); |
| 852 buildCounterDiskTypesScopedListWarning++; | 908 buildCounterDiskTypesScopedListWarning++; |
| 853 if (buildCounterDiskTypesScopedListWarning < 3) { | 909 if (buildCounterDiskTypesScopedListWarning < 3) { |
| 854 o.code = "foo"; | 910 o.code = "foo"; |
| 855 o.data = buildUnnamed1251(); | 911 o.data = buildUnnamed466(); |
| 856 o.message = "foo"; | 912 o.message = "foo"; |
| 857 } | 913 } |
| 858 buildCounterDiskTypesScopedListWarning--; | 914 buildCounterDiskTypesScopedListWarning--; |
| 859 return o; | 915 return o; |
| 860 } | 916 } |
| 861 | 917 |
| 862 checkDiskTypesScopedListWarning(api.DiskTypesScopedListWarning o) { | 918 checkDiskTypesScopedListWarning(api.DiskTypesScopedListWarning o) { |
| 863 buildCounterDiskTypesScopedListWarning++; | 919 buildCounterDiskTypesScopedListWarning++; |
| 864 if (buildCounterDiskTypesScopedListWarning < 3) { | 920 if (buildCounterDiskTypesScopedListWarning < 3) { |
| 865 unittest.expect(o.code, unittest.equals('foo')); | 921 unittest.expect(o.code, unittest.equals('foo')); |
| 866 checkUnnamed1251(o.data); | 922 checkUnnamed466(o.data); |
| 867 unittest.expect(o.message, unittest.equals('foo')); | 923 unittest.expect(o.message, unittest.equals('foo')); |
| 868 } | 924 } |
| 869 buildCounterDiskTypesScopedListWarning--; | 925 buildCounterDiskTypesScopedListWarning--; |
| 870 } | 926 } |
| 871 | 927 |
| 872 core.int buildCounterDiskTypesScopedList = 0; | 928 core.int buildCounterDiskTypesScopedList = 0; |
| 873 buildDiskTypesScopedList() { | 929 buildDiskTypesScopedList() { |
| 874 var o = new api.DiskTypesScopedList(); | 930 var o = new api.DiskTypesScopedList(); |
| 875 buildCounterDiskTypesScopedList++; | 931 buildCounterDiskTypesScopedList++; |
| 876 if (buildCounterDiskTypesScopedList < 3) { | 932 if (buildCounterDiskTypesScopedList < 3) { |
| 877 o.diskTypes = buildUnnamed1250(); | 933 o.diskTypes = buildUnnamed465(); |
| 878 o.warning = buildDiskTypesScopedListWarning(); | 934 o.warning = buildDiskTypesScopedListWarning(); |
| 879 } | 935 } |
| 880 buildCounterDiskTypesScopedList--; | 936 buildCounterDiskTypesScopedList--; |
| 881 return o; | 937 return o; |
| 882 } | 938 } |
| 883 | 939 |
| 884 checkDiskTypesScopedList(api.DiskTypesScopedList o) { | 940 checkDiskTypesScopedList(api.DiskTypesScopedList o) { |
| 885 buildCounterDiskTypesScopedList++; | 941 buildCounterDiskTypesScopedList++; |
| 886 if (buildCounterDiskTypesScopedList < 3) { | 942 if (buildCounterDiskTypesScopedList < 3) { |
| 887 checkUnnamed1250(o.diskTypes); | 943 checkUnnamed465(o.diskTypes); |
| 888 checkDiskTypesScopedListWarning(o.warning); | 944 checkDiskTypesScopedListWarning(o.warning); |
| 889 } | 945 } |
| 890 buildCounterDiskTypesScopedList--; | 946 buildCounterDiskTypesScopedList--; |
| 891 } | 947 } |
| 892 | 948 |
| 893 buildUnnamed1252() { | 949 buildUnnamed467() { |
| 894 var o = new core.List<api.Disk>(); | 950 var o = new core.List<api.Disk>(); |
| 895 o.add(buildDisk()); | 951 o.add(buildDisk()); |
| 896 o.add(buildDisk()); | 952 o.add(buildDisk()); |
| 897 return o; | 953 return o; |
| 898 } | 954 } |
| 899 | 955 |
| 900 checkUnnamed1252(core.List<api.Disk> o) { | 956 checkUnnamed467(core.List<api.Disk> o) { |
| 901 unittest.expect(o, unittest.hasLength(2)); | 957 unittest.expect(o, unittest.hasLength(2)); |
| 902 checkDisk(o[0]); | 958 checkDisk(o[0]); |
| 903 checkDisk(o[1]); | 959 checkDisk(o[1]); |
| 904 } | 960 } |
| 905 | 961 |
| 906 core.int buildCounterDisksScopedListWarningData = 0; | 962 core.int buildCounterDisksScopedListWarningData = 0; |
| 907 buildDisksScopedListWarningData() { | 963 buildDisksScopedListWarningData() { |
| 908 var o = new api.DisksScopedListWarningData(); | 964 var o = new api.DisksScopedListWarningData(); |
| 909 buildCounterDisksScopedListWarningData++; | 965 buildCounterDisksScopedListWarningData++; |
| 910 if (buildCounterDisksScopedListWarningData < 3) { | 966 if (buildCounterDisksScopedListWarningData < 3) { |
| 911 o.key = "foo"; | 967 o.key = "foo"; |
| 912 o.value = "foo"; | 968 o.value = "foo"; |
| 913 } | 969 } |
| 914 buildCounterDisksScopedListWarningData--; | 970 buildCounterDisksScopedListWarningData--; |
| 915 return o; | 971 return o; |
| 916 } | 972 } |
| 917 | 973 |
| 918 checkDisksScopedListWarningData(api.DisksScopedListWarningData o) { | 974 checkDisksScopedListWarningData(api.DisksScopedListWarningData o) { |
| 919 buildCounterDisksScopedListWarningData++; | 975 buildCounterDisksScopedListWarningData++; |
| 920 if (buildCounterDisksScopedListWarningData < 3) { | 976 if (buildCounterDisksScopedListWarningData < 3) { |
| 921 unittest.expect(o.key, unittest.equals('foo')); | 977 unittest.expect(o.key, unittest.equals('foo')); |
| 922 unittest.expect(o.value, unittest.equals('foo')); | 978 unittest.expect(o.value, unittest.equals('foo')); |
| 923 } | 979 } |
| 924 buildCounterDisksScopedListWarningData--; | 980 buildCounterDisksScopedListWarningData--; |
| 925 } | 981 } |
| 926 | 982 |
| 927 buildUnnamed1253() { | 983 buildUnnamed468() { |
| 928 var o = new core.List<api.DisksScopedListWarningData>(); | 984 var o = new core.List<api.DisksScopedListWarningData>(); |
| 929 o.add(buildDisksScopedListWarningData()); | 985 o.add(buildDisksScopedListWarningData()); |
| 930 o.add(buildDisksScopedListWarningData()); | 986 o.add(buildDisksScopedListWarningData()); |
| 931 return o; | 987 return o; |
| 932 } | 988 } |
| 933 | 989 |
| 934 checkUnnamed1253(core.List<api.DisksScopedListWarningData> o) { | 990 checkUnnamed468(core.List<api.DisksScopedListWarningData> o) { |
| 935 unittest.expect(o, unittest.hasLength(2)); | 991 unittest.expect(o, unittest.hasLength(2)); |
| 936 checkDisksScopedListWarningData(o[0]); | 992 checkDisksScopedListWarningData(o[0]); |
| 937 checkDisksScopedListWarningData(o[1]); | 993 checkDisksScopedListWarningData(o[1]); |
| 938 } | 994 } |
| 939 | 995 |
| 940 core.int buildCounterDisksScopedListWarning = 0; | 996 core.int buildCounterDisksScopedListWarning = 0; |
| 941 buildDisksScopedListWarning() { | 997 buildDisksScopedListWarning() { |
| 942 var o = new api.DisksScopedListWarning(); | 998 var o = new api.DisksScopedListWarning(); |
| 943 buildCounterDisksScopedListWarning++; | 999 buildCounterDisksScopedListWarning++; |
| 944 if (buildCounterDisksScopedListWarning < 3) { | 1000 if (buildCounterDisksScopedListWarning < 3) { |
| 945 o.code = "foo"; | 1001 o.code = "foo"; |
| 946 o.data = buildUnnamed1253(); | 1002 o.data = buildUnnamed468(); |
| 947 o.message = "foo"; | 1003 o.message = "foo"; |
| 948 } | 1004 } |
| 949 buildCounterDisksScopedListWarning--; | 1005 buildCounterDisksScopedListWarning--; |
| 950 return o; | 1006 return o; |
| 951 } | 1007 } |
| 952 | 1008 |
| 953 checkDisksScopedListWarning(api.DisksScopedListWarning o) { | 1009 checkDisksScopedListWarning(api.DisksScopedListWarning o) { |
| 954 buildCounterDisksScopedListWarning++; | 1010 buildCounterDisksScopedListWarning++; |
| 955 if (buildCounterDisksScopedListWarning < 3) { | 1011 if (buildCounterDisksScopedListWarning < 3) { |
| 956 unittest.expect(o.code, unittest.equals('foo')); | 1012 unittest.expect(o.code, unittest.equals('foo')); |
| 957 checkUnnamed1253(o.data); | 1013 checkUnnamed468(o.data); |
| 958 unittest.expect(o.message, unittest.equals('foo')); | 1014 unittest.expect(o.message, unittest.equals('foo')); |
| 959 } | 1015 } |
| 960 buildCounterDisksScopedListWarning--; | 1016 buildCounterDisksScopedListWarning--; |
| 961 } | 1017 } |
| 962 | 1018 |
| 963 core.int buildCounterDisksScopedList = 0; | 1019 core.int buildCounterDisksScopedList = 0; |
| 964 buildDisksScopedList() { | 1020 buildDisksScopedList() { |
| 965 var o = new api.DisksScopedList(); | 1021 var o = new api.DisksScopedList(); |
| 966 buildCounterDisksScopedList++; | 1022 buildCounterDisksScopedList++; |
| 967 if (buildCounterDisksScopedList < 3) { | 1023 if (buildCounterDisksScopedList < 3) { |
| 968 o.disks = buildUnnamed1252(); | 1024 o.disks = buildUnnamed467(); |
| 969 o.warning = buildDisksScopedListWarning(); | 1025 o.warning = buildDisksScopedListWarning(); |
| 970 } | 1026 } |
| 971 buildCounterDisksScopedList--; | 1027 buildCounterDisksScopedList--; |
| 972 return o; | 1028 return o; |
| 973 } | 1029 } |
| 974 | 1030 |
| 975 checkDisksScopedList(api.DisksScopedList o) { | 1031 checkDisksScopedList(api.DisksScopedList o) { |
| 976 buildCounterDisksScopedList++; | 1032 buildCounterDisksScopedList++; |
| 977 if (buildCounterDisksScopedList < 3) { | 1033 if (buildCounterDisksScopedList < 3) { |
| 978 checkUnnamed1252(o.disks); | 1034 checkUnnamed467(o.disks); |
| 979 checkDisksScopedListWarning(o.warning); | 1035 checkDisksScopedListWarning(o.warning); |
| 980 } | 1036 } |
| 981 buildCounterDisksScopedList--; | 1037 buildCounterDisksScopedList--; |
| 982 } | 1038 } |
| 983 | 1039 |
| 984 buildUnnamed1254() { | 1040 buildUnnamed469() { |
| 985 var o = new core.List<core.String>(); | 1041 var o = new core.List<core.String>(); |
| 986 o.add("foo"); | 1042 o.add("foo"); |
| 987 o.add("foo"); | 1043 o.add("foo"); |
| 988 return o; | 1044 return o; |
| 989 } | 1045 } |
| 990 | 1046 |
| 991 checkUnnamed1254(core.List<core.String> o) { | 1047 checkUnnamed469(core.List<core.String> o) { |
| 992 unittest.expect(o, unittest.hasLength(2)); | 1048 unittest.expect(o, unittest.hasLength(2)); |
| 993 unittest.expect(o[0], unittest.equals('foo')); | 1049 unittest.expect(o[0], unittest.equals('foo')); |
| 994 unittest.expect(o[1], unittest.equals('foo')); | 1050 unittest.expect(o[1], unittest.equals('foo')); |
| 995 } | 1051 } |
| 996 | 1052 |
| 997 core.int buildCounterFirewallAllowed = 0; | 1053 core.int buildCounterFirewallAllowed = 0; |
| 998 buildFirewallAllowed() { | 1054 buildFirewallAllowed() { |
| 999 var o = new api.FirewallAllowed(); | 1055 var o = new api.FirewallAllowed(); |
| 1000 buildCounterFirewallAllowed++; | 1056 buildCounterFirewallAllowed++; |
| 1001 if (buildCounterFirewallAllowed < 3) { | 1057 if (buildCounterFirewallAllowed < 3) { |
| 1002 o.IPProtocol = "foo"; | 1058 o.IPProtocol = "foo"; |
| 1003 o.ports = buildUnnamed1254(); | 1059 o.ports = buildUnnamed469(); |
| 1004 } | 1060 } |
| 1005 buildCounterFirewallAllowed--; | 1061 buildCounterFirewallAllowed--; |
| 1006 return o; | 1062 return o; |
| 1007 } | 1063 } |
| 1008 | 1064 |
| 1009 checkFirewallAllowed(api.FirewallAllowed o) { | 1065 checkFirewallAllowed(api.FirewallAllowed o) { |
| 1010 buildCounterFirewallAllowed++; | 1066 buildCounterFirewallAllowed++; |
| 1011 if (buildCounterFirewallAllowed < 3) { | 1067 if (buildCounterFirewallAllowed < 3) { |
| 1012 unittest.expect(o.IPProtocol, unittest.equals('foo')); | 1068 unittest.expect(o.IPProtocol, unittest.equals('foo')); |
| 1013 checkUnnamed1254(o.ports); | 1069 checkUnnamed469(o.ports); |
| 1014 } | 1070 } |
| 1015 buildCounterFirewallAllowed--; | 1071 buildCounterFirewallAllowed--; |
| 1016 } | 1072 } |
| 1017 | 1073 |
| 1018 buildUnnamed1255() { | 1074 buildUnnamed470() { |
| 1019 var o = new core.List<api.FirewallAllowed>(); | 1075 var o = new core.List<api.FirewallAllowed>(); |
| 1020 o.add(buildFirewallAllowed()); | 1076 o.add(buildFirewallAllowed()); |
| 1021 o.add(buildFirewallAllowed()); | 1077 o.add(buildFirewallAllowed()); |
| 1022 return o; | 1078 return o; |
| 1023 } | 1079 } |
| 1024 | 1080 |
| 1025 checkUnnamed1255(core.List<api.FirewallAllowed> o) { | 1081 checkUnnamed470(core.List<api.FirewallAllowed> o) { |
| 1026 unittest.expect(o, unittest.hasLength(2)); | 1082 unittest.expect(o, unittest.hasLength(2)); |
| 1027 checkFirewallAllowed(o[0]); | 1083 checkFirewallAllowed(o[0]); |
| 1028 checkFirewallAllowed(o[1]); | 1084 checkFirewallAllowed(o[1]); |
| 1029 } | 1085 } |
| 1030 | 1086 |
| 1031 buildUnnamed1256() { | 1087 buildUnnamed471() { |
| 1032 var o = new core.List<core.String>(); | 1088 var o = new core.List<core.String>(); |
| 1033 o.add("foo"); | 1089 o.add("foo"); |
| 1034 o.add("foo"); | 1090 o.add("foo"); |
| 1035 return o; | 1091 return o; |
| 1036 } | 1092 } |
| 1037 | 1093 |
| 1038 checkUnnamed1256(core.List<core.String> o) { | 1094 checkUnnamed471(core.List<core.String> o) { |
| 1039 unittest.expect(o, unittest.hasLength(2)); | 1095 unittest.expect(o, unittest.hasLength(2)); |
| 1040 unittest.expect(o[0], unittest.equals('foo')); | 1096 unittest.expect(o[0], unittest.equals('foo')); |
| 1041 unittest.expect(o[1], unittest.equals('foo')); | 1097 unittest.expect(o[1], unittest.equals('foo')); |
| 1042 } | 1098 } |
| 1043 | 1099 |
| 1044 buildUnnamed1257() { | 1100 buildUnnamed472() { |
| 1045 var o = new core.List<core.String>(); | 1101 var o = new core.List<core.String>(); |
| 1046 o.add("foo"); | 1102 o.add("foo"); |
| 1047 o.add("foo"); | 1103 o.add("foo"); |
| 1048 return o; | 1104 return o; |
| 1049 } | 1105 } |
| 1050 | 1106 |
| 1051 checkUnnamed1257(core.List<core.String> o) { | 1107 checkUnnamed472(core.List<core.String> o) { |
| 1052 unittest.expect(o, unittest.hasLength(2)); | 1108 unittest.expect(o, unittest.hasLength(2)); |
| 1053 unittest.expect(o[0], unittest.equals('foo')); | 1109 unittest.expect(o[0], unittest.equals('foo')); |
| 1054 unittest.expect(o[1], unittest.equals('foo')); | 1110 unittest.expect(o[1], unittest.equals('foo')); |
| 1055 } | 1111 } |
| 1056 | 1112 |
| 1057 buildUnnamed1258() { | 1113 buildUnnamed473() { |
| 1058 var o = new core.List<core.String>(); | 1114 var o = new core.List<core.String>(); |
| 1059 o.add("foo"); | 1115 o.add("foo"); |
| 1060 o.add("foo"); | 1116 o.add("foo"); |
| 1061 return o; | 1117 return o; |
| 1062 } | 1118 } |
| 1063 | 1119 |
| 1064 checkUnnamed1258(core.List<core.String> o) { | 1120 checkUnnamed473(core.List<core.String> o) { |
| 1065 unittest.expect(o, unittest.hasLength(2)); | 1121 unittest.expect(o, unittest.hasLength(2)); |
| 1066 unittest.expect(o[0], unittest.equals('foo')); | 1122 unittest.expect(o[0], unittest.equals('foo')); |
| 1067 unittest.expect(o[1], unittest.equals('foo')); | 1123 unittest.expect(o[1], unittest.equals('foo')); |
| 1068 } | 1124 } |
| 1069 | 1125 |
| 1070 core.int buildCounterFirewall = 0; | 1126 core.int buildCounterFirewall = 0; |
| 1071 buildFirewall() { | 1127 buildFirewall() { |
| 1072 var o = new api.Firewall(); | 1128 var o = new api.Firewall(); |
| 1073 buildCounterFirewall++; | 1129 buildCounterFirewall++; |
| 1074 if (buildCounterFirewall < 3) { | 1130 if (buildCounterFirewall < 3) { |
| 1075 o.allowed = buildUnnamed1255(); | 1131 o.allowed = buildUnnamed470(); |
| 1076 o.creationTimestamp = "foo"; | 1132 o.creationTimestamp = "foo"; |
| 1077 o.description = "foo"; | 1133 o.description = "foo"; |
| 1078 o.id = "foo"; | 1134 o.id = "foo"; |
| 1079 o.kind = "foo"; | 1135 o.kind = "foo"; |
| 1080 o.name = "foo"; | 1136 o.name = "foo"; |
| 1081 o.network = "foo"; | 1137 o.network = "foo"; |
| 1082 o.selfLink = "foo"; | 1138 o.selfLink = "foo"; |
| 1083 o.sourceRanges = buildUnnamed1256(); | 1139 o.sourceRanges = buildUnnamed471(); |
| 1084 o.sourceTags = buildUnnamed1257(); | 1140 o.sourceTags = buildUnnamed472(); |
| 1085 o.targetTags = buildUnnamed1258(); | 1141 o.targetTags = buildUnnamed473(); |
| 1086 } | 1142 } |
| 1087 buildCounterFirewall--; | 1143 buildCounterFirewall--; |
| 1088 return o; | 1144 return o; |
| 1089 } | 1145 } |
| 1090 | 1146 |
| 1091 checkFirewall(api.Firewall o) { | 1147 checkFirewall(api.Firewall o) { |
| 1092 buildCounterFirewall++; | 1148 buildCounterFirewall++; |
| 1093 if (buildCounterFirewall < 3) { | 1149 if (buildCounterFirewall < 3) { |
| 1094 checkUnnamed1255(o.allowed); | 1150 checkUnnamed470(o.allowed); |
| 1095 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 1151 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 1096 unittest.expect(o.description, unittest.equals('foo')); | 1152 unittest.expect(o.description, unittest.equals('foo')); |
| 1097 unittest.expect(o.id, unittest.equals('foo')); | 1153 unittest.expect(o.id, unittest.equals('foo')); |
| 1098 unittest.expect(o.kind, unittest.equals('foo')); | 1154 unittest.expect(o.kind, unittest.equals('foo')); |
| 1099 unittest.expect(o.name, unittest.equals('foo')); | 1155 unittest.expect(o.name, unittest.equals('foo')); |
| 1100 unittest.expect(o.network, unittest.equals('foo')); | 1156 unittest.expect(o.network, unittest.equals('foo')); |
| 1101 unittest.expect(o.selfLink, unittest.equals('foo')); | 1157 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1102 checkUnnamed1256(o.sourceRanges); | 1158 checkUnnamed471(o.sourceRanges); |
| 1103 checkUnnamed1257(o.sourceTags); | 1159 checkUnnamed472(o.sourceTags); |
| 1104 checkUnnamed1258(o.targetTags); | 1160 checkUnnamed473(o.targetTags); |
| 1105 } | 1161 } |
| 1106 buildCounterFirewall--; | 1162 buildCounterFirewall--; |
| 1107 } | 1163 } |
| 1108 | 1164 |
| 1109 buildUnnamed1259() { | 1165 buildUnnamed474() { |
| 1110 var o = new core.List<api.Firewall>(); | 1166 var o = new core.List<api.Firewall>(); |
| 1111 o.add(buildFirewall()); | 1167 o.add(buildFirewall()); |
| 1112 o.add(buildFirewall()); | 1168 o.add(buildFirewall()); |
| 1113 return o; | 1169 return o; |
| 1114 } | 1170 } |
| 1115 | 1171 |
| 1116 checkUnnamed1259(core.List<api.Firewall> o) { | 1172 checkUnnamed474(core.List<api.Firewall> o) { |
| 1117 unittest.expect(o, unittest.hasLength(2)); | 1173 unittest.expect(o, unittest.hasLength(2)); |
| 1118 checkFirewall(o[0]); | 1174 checkFirewall(o[0]); |
| 1119 checkFirewall(o[1]); | 1175 checkFirewall(o[1]); |
| 1120 } | 1176 } |
| 1121 | 1177 |
| 1122 core.int buildCounterFirewallList = 0; | 1178 core.int buildCounterFirewallList = 0; |
| 1123 buildFirewallList() { | 1179 buildFirewallList() { |
| 1124 var o = new api.FirewallList(); | 1180 var o = new api.FirewallList(); |
| 1125 buildCounterFirewallList++; | 1181 buildCounterFirewallList++; |
| 1126 if (buildCounterFirewallList < 3) { | 1182 if (buildCounterFirewallList < 3) { |
| 1127 o.id = "foo"; | 1183 o.id = "foo"; |
| 1128 o.items = buildUnnamed1259(); | 1184 o.items = buildUnnamed474(); |
| 1129 o.kind = "foo"; | 1185 o.kind = "foo"; |
| 1130 o.nextPageToken = "foo"; | 1186 o.nextPageToken = "foo"; |
| 1131 o.selfLink = "foo"; | 1187 o.selfLink = "foo"; |
| 1132 } | 1188 } |
| 1133 buildCounterFirewallList--; | 1189 buildCounterFirewallList--; |
| 1134 return o; | 1190 return o; |
| 1135 } | 1191 } |
| 1136 | 1192 |
| 1137 checkFirewallList(api.FirewallList o) { | 1193 checkFirewallList(api.FirewallList o) { |
| 1138 buildCounterFirewallList++; | 1194 buildCounterFirewallList++; |
| 1139 if (buildCounterFirewallList < 3) { | 1195 if (buildCounterFirewallList < 3) { |
| 1140 unittest.expect(o.id, unittest.equals('foo')); | 1196 unittest.expect(o.id, unittest.equals('foo')); |
| 1141 checkUnnamed1259(o.items); | 1197 checkUnnamed474(o.items); |
| 1142 unittest.expect(o.kind, unittest.equals('foo')); | 1198 unittest.expect(o.kind, unittest.equals('foo')); |
| 1143 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1199 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1144 unittest.expect(o.selfLink, unittest.equals('foo')); | 1200 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1145 } | 1201 } |
| 1146 buildCounterFirewallList--; | 1202 buildCounterFirewallList--; |
| 1147 } | 1203 } |
| 1148 | 1204 |
| 1149 core.int buildCounterForwardingRule = 0; | 1205 core.int buildCounterForwardingRule = 0; |
| 1150 buildForwardingRule() { | 1206 buildForwardingRule() { |
| 1151 var o = new api.ForwardingRule(); | 1207 var o = new api.ForwardingRule(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1178 unittest.expect(o.kind, unittest.equals('foo')); | 1234 unittest.expect(o.kind, unittest.equals('foo')); |
| 1179 unittest.expect(o.name, unittest.equals('foo')); | 1235 unittest.expect(o.name, unittest.equals('foo')); |
| 1180 unittest.expect(o.portRange, unittest.equals('foo')); | 1236 unittest.expect(o.portRange, unittest.equals('foo')); |
| 1181 unittest.expect(o.region, unittest.equals('foo')); | 1237 unittest.expect(o.region, unittest.equals('foo')); |
| 1182 unittest.expect(o.selfLink, unittest.equals('foo')); | 1238 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1183 unittest.expect(o.target, unittest.equals('foo')); | 1239 unittest.expect(o.target, unittest.equals('foo')); |
| 1184 } | 1240 } |
| 1185 buildCounterForwardingRule--; | 1241 buildCounterForwardingRule--; |
| 1186 } | 1242 } |
| 1187 | 1243 |
| 1188 buildUnnamed1260() { | 1244 buildUnnamed475() { |
| 1189 var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); | 1245 var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); |
| 1190 o["x"] = buildForwardingRulesScopedList(); | 1246 o["x"] = buildForwardingRulesScopedList(); |
| 1191 o["y"] = buildForwardingRulesScopedList(); | 1247 o["y"] = buildForwardingRulesScopedList(); |
| 1192 return o; | 1248 return o; |
| 1193 } | 1249 } |
| 1194 | 1250 |
| 1195 checkUnnamed1260(core.Map<core.String, api.ForwardingRulesScopedList> o) { | 1251 checkUnnamed475(core.Map<core.String, api.ForwardingRulesScopedList> o) { |
| 1196 unittest.expect(o, unittest.hasLength(2)); | 1252 unittest.expect(o, unittest.hasLength(2)); |
| 1197 checkForwardingRulesScopedList(o["x"]); | 1253 checkForwardingRulesScopedList(o["x"]); |
| 1198 checkForwardingRulesScopedList(o["y"]); | 1254 checkForwardingRulesScopedList(o["y"]); |
| 1199 } | 1255 } |
| 1200 | 1256 |
| 1201 core.int buildCounterForwardingRuleAggregatedList = 0; | 1257 core.int buildCounterForwardingRuleAggregatedList = 0; |
| 1202 buildForwardingRuleAggregatedList() { | 1258 buildForwardingRuleAggregatedList() { |
| 1203 var o = new api.ForwardingRuleAggregatedList(); | 1259 var o = new api.ForwardingRuleAggregatedList(); |
| 1204 buildCounterForwardingRuleAggregatedList++; | 1260 buildCounterForwardingRuleAggregatedList++; |
| 1205 if (buildCounterForwardingRuleAggregatedList < 3) { | 1261 if (buildCounterForwardingRuleAggregatedList < 3) { |
| 1206 o.id = "foo"; | 1262 o.id = "foo"; |
| 1207 o.items = buildUnnamed1260(); | 1263 o.items = buildUnnamed475(); |
| 1208 o.kind = "foo"; | 1264 o.kind = "foo"; |
| 1209 o.nextPageToken = "foo"; | 1265 o.nextPageToken = "foo"; |
| 1210 o.selfLink = "foo"; | 1266 o.selfLink = "foo"; |
| 1211 } | 1267 } |
| 1212 buildCounterForwardingRuleAggregatedList--; | 1268 buildCounterForwardingRuleAggregatedList--; |
| 1213 return o; | 1269 return o; |
| 1214 } | 1270 } |
| 1215 | 1271 |
| 1216 checkForwardingRuleAggregatedList(api.ForwardingRuleAggregatedList o) { | 1272 checkForwardingRuleAggregatedList(api.ForwardingRuleAggregatedList o) { |
| 1217 buildCounterForwardingRuleAggregatedList++; | 1273 buildCounterForwardingRuleAggregatedList++; |
| 1218 if (buildCounterForwardingRuleAggregatedList < 3) { | 1274 if (buildCounterForwardingRuleAggregatedList < 3) { |
| 1219 unittest.expect(o.id, unittest.equals('foo')); | 1275 unittest.expect(o.id, unittest.equals('foo')); |
| 1220 checkUnnamed1260(o.items); | 1276 checkUnnamed475(o.items); |
| 1221 unittest.expect(o.kind, unittest.equals('foo')); | 1277 unittest.expect(o.kind, unittest.equals('foo')); |
| 1222 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1278 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1223 unittest.expect(o.selfLink, unittest.equals('foo')); | 1279 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1224 } | 1280 } |
| 1225 buildCounterForwardingRuleAggregatedList--; | 1281 buildCounterForwardingRuleAggregatedList--; |
| 1226 } | 1282 } |
| 1227 | 1283 |
| 1228 buildUnnamed1261() { | 1284 buildUnnamed476() { |
| 1229 var o = new core.List<api.ForwardingRule>(); | 1285 var o = new core.List<api.ForwardingRule>(); |
| 1230 o.add(buildForwardingRule()); | 1286 o.add(buildForwardingRule()); |
| 1231 o.add(buildForwardingRule()); | 1287 o.add(buildForwardingRule()); |
| 1232 return o; | 1288 return o; |
| 1233 } | 1289 } |
| 1234 | 1290 |
| 1235 checkUnnamed1261(core.List<api.ForwardingRule> o) { | 1291 checkUnnamed476(core.List<api.ForwardingRule> o) { |
| 1236 unittest.expect(o, unittest.hasLength(2)); | 1292 unittest.expect(o, unittest.hasLength(2)); |
| 1237 checkForwardingRule(o[0]); | 1293 checkForwardingRule(o[0]); |
| 1238 checkForwardingRule(o[1]); | 1294 checkForwardingRule(o[1]); |
| 1239 } | 1295 } |
| 1240 | 1296 |
| 1241 core.int buildCounterForwardingRuleList = 0; | 1297 core.int buildCounterForwardingRuleList = 0; |
| 1242 buildForwardingRuleList() { | 1298 buildForwardingRuleList() { |
| 1243 var o = new api.ForwardingRuleList(); | 1299 var o = new api.ForwardingRuleList(); |
| 1244 buildCounterForwardingRuleList++; | 1300 buildCounterForwardingRuleList++; |
| 1245 if (buildCounterForwardingRuleList < 3) { | 1301 if (buildCounterForwardingRuleList < 3) { |
| 1246 o.id = "foo"; | 1302 o.id = "foo"; |
| 1247 o.items = buildUnnamed1261(); | 1303 o.items = buildUnnamed476(); |
| 1248 o.kind = "foo"; | 1304 o.kind = "foo"; |
| 1249 o.nextPageToken = "foo"; | 1305 o.nextPageToken = "foo"; |
| 1250 o.selfLink = "foo"; | 1306 o.selfLink = "foo"; |
| 1251 } | 1307 } |
| 1252 buildCounterForwardingRuleList--; | 1308 buildCounterForwardingRuleList--; |
| 1253 return o; | 1309 return o; |
| 1254 } | 1310 } |
| 1255 | 1311 |
| 1256 checkForwardingRuleList(api.ForwardingRuleList o) { | 1312 checkForwardingRuleList(api.ForwardingRuleList o) { |
| 1257 buildCounterForwardingRuleList++; | 1313 buildCounterForwardingRuleList++; |
| 1258 if (buildCounterForwardingRuleList < 3) { | 1314 if (buildCounterForwardingRuleList < 3) { |
| 1259 unittest.expect(o.id, unittest.equals('foo')); | 1315 unittest.expect(o.id, unittest.equals('foo')); |
| 1260 checkUnnamed1261(o.items); | 1316 checkUnnamed476(o.items); |
| 1261 unittest.expect(o.kind, unittest.equals('foo')); | 1317 unittest.expect(o.kind, unittest.equals('foo')); |
| 1262 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1318 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1263 unittest.expect(o.selfLink, unittest.equals('foo')); | 1319 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1264 } | 1320 } |
| 1265 buildCounterForwardingRuleList--; | 1321 buildCounterForwardingRuleList--; |
| 1266 } | 1322 } |
| 1267 | 1323 |
| 1268 buildUnnamed1262() { | 1324 buildUnnamed477() { |
| 1269 var o = new core.List<api.ForwardingRule>(); | 1325 var o = new core.List<api.ForwardingRule>(); |
| 1270 o.add(buildForwardingRule()); | 1326 o.add(buildForwardingRule()); |
| 1271 o.add(buildForwardingRule()); | 1327 o.add(buildForwardingRule()); |
| 1272 return o; | 1328 return o; |
| 1273 } | 1329 } |
| 1274 | 1330 |
| 1275 checkUnnamed1262(core.List<api.ForwardingRule> o) { | 1331 checkUnnamed477(core.List<api.ForwardingRule> o) { |
| 1276 unittest.expect(o, unittest.hasLength(2)); | 1332 unittest.expect(o, unittest.hasLength(2)); |
| 1277 checkForwardingRule(o[0]); | 1333 checkForwardingRule(o[0]); |
| 1278 checkForwardingRule(o[1]); | 1334 checkForwardingRule(o[1]); |
| 1279 } | 1335 } |
| 1280 | 1336 |
| 1281 core.int buildCounterForwardingRulesScopedListWarningData = 0; | 1337 core.int buildCounterForwardingRulesScopedListWarningData = 0; |
| 1282 buildForwardingRulesScopedListWarningData() { | 1338 buildForwardingRulesScopedListWarningData() { |
| 1283 var o = new api.ForwardingRulesScopedListWarningData(); | 1339 var o = new api.ForwardingRulesScopedListWarningData(); |
| 1284 buildCounterForwardingRulesScopedListWarningData++; | 1340 buildCounterForwardingRulesScopedListWarningData++; |
| 1285 if (buildCounterForwardingRulesScopedListWarningData < 3) { | 1341 if (buildCounterForwardingRulesScopedListWarningData < 3) { |
| 1286 o.key = "foo"; | 1342 o.key = "foo"; |
| 1287 o.value = "foo"; | 1343 o.value = "foo"; |
| 1288 } | 1344 } |
| 1289 buildCounterForwardingRulesScopedListWarningData--; | 1345 buildCounterForwardingRulesScopedListWarningData--; |
| 1290 return o; | 1346 return o; |
| 1291 } | 1347 } |
| 1292 | 1348 |
| 1293 checkForwardingRulesScopedListWarningData(api.ForwardingRulesScopedListWarningDa
ta o) { | 1349 checkForwardingRulesScopedListWarningData(api.ForwardingRulesScopedListWarningDa
ta o) { |
| 1294 buildCounterForwardingRulesScopedListWarningData++; | 1350 buildCounterForwardingRulesScopedListWarningData++; |
| 1295 if (buildCounterForwardingRulesScopedListWarningData < 3) { | 1351 if (buildCounterForwardingRulesScopedListWarningData < 3) { |
| 1296 unittest.expect(o.key, unittest.equals('foo')); | 1352 unittest.expect(o.key, unittest.equals('foo')); |
| 1297 unittest.expect(o.value, unittest.equals('foo')); | 1353 unittest.expect(o.value, unittest.equals('foo')); |
| 1298 } | 1354 } |
| 1299 buildCounterForwardingRulesScopedListWarningData--; | 1355 buildCounterForwardingRulesScopedListWarningData--; |
| 1300 } | 1356 } |
| 1301 | 1357 |
| 1302 buildUnnamed1263() { | 1358 buildUnnamed478() { |
| 1303 var o = new core.List<api.ForwardingRulesScopedListWarningData>(); | 1359 var o = new core.List<api.ForwardingRulesScopedListWarningData>(); |
| 1304 o.add(buildForwardingRulesScopedListWarningData()); | 1360 o.add(buildForwardingRulesScopedListWarningData()); |
| 1305 o.add(buildForwardingRulesScopedListWarningData()); | 1361 o.add(buildForwardingRulesScopedListWarningData()); |
| 1306 return o; | 1362 return o; |
| 1307 } | 1363 } |
| 1308 | 1364 |
| 1309 checkUnnamed1263(core.List<api.ForwardingRulesScopedListWarningData> o) { | 1365 checkUnnamed478(core.List<api.ForwardingRulesScopedListWarningData> o) { |
| 1310 unittest.expect(o, unittest.hasLength(2)); | 1366 unittest.expect(o, unittest.hasLength(2)); |
| 1311 checkForwardingRulesScopedListWarningData(o[0]); | 1367 checkForwardingRulesScopedListWarningData(o[0]); |
| 1312 checkForwardingRulesScopedListWarningData(o[1]); | 1368 checkForwardingRulesScopedListWarningData(o[1]); |
| 1313 } | 1369 } |
| 1314 | 1370 |
| 1315 core.int buildCounterForwardingRulesScopedListWarning = 0; | 1371 core.int buildCounterForwardingRulesScopedListWarning = 0; |
| 1316 buildForwardingRulesScopedListWarning() { | 1372 buildForwardingRulesScopedListWarning() { |
| 1317 var o = new api.ForwardingRulesScopedListWarning(); | 1373 var o = new api.ForwardingRulesScopedListWarning(); |
| 1318 buildCounterForwardingRulesScopedListWarning++; | 1374 buildCounterForwardingRulesScopedListWarning++; |
| 1319 if (buildCounterForwardingRulesScopedListWarning < 3) { | 1375 if (buildCounterForwardingRulesScopedListWarning < 3) { |
| 1320 o.code = "foo"; | 1376 o.code = "foo"; |
| 1321 o.data = buildUnnamed1263(); | 1377 o.data = buildUnnamed478(); |
| 1322 o.message = "foo"; | 1378 o.message = "foo"; |
| 1323 } | 1379 } |
| 1324 buildCounterForwardingRulesScopedListWarning--; | 1380 buildCounterForwardingRulesScopedListWarning--; |
| 1325 return o; | 1381 return o; |
| 1326 } | 1382 } |
| 1327 | 1383 |
| 1328 checkForwardingRulesScopedListWarning(api.ForwardingRulesScopedListWarning o) { | 1384 checkForwardingRulesScopedListWarning(api.ForwardingRulesScopedListWarning o) { |
| 1329 buildCounterForwardingRulesScopedListWarning++; | 1385 buildCounterForwardingRulesScopedListWarning++; |
| 1330 if (buildCounterForwardingRulesScopedListWarning < 3) { | 1386 if (buildCounterForwardingRulesScopedListWarning < 3) { |
| 1331 unittest.expect(o.code, unittest.equals('foo')); | 1387 unittest.expect(o.code, unittest.equals('foo')); |
| 1332 checkUnnamed1263(o.data); | 1388 checkUnnamed478(o.data); |
| 1333 unittest.expect(o.message, unittest.equals('foo')); | 1389 unittest.expect(o.message, unittest.equals('foo')); |
| 1334 } | 1390 } |
| 1335 buildCounterForwardingRulesScopedListWarning--; | 1391 buildCounterForwardingRulesScopedListWarning--; |
| 1336 } | 1392 } |
| 1337 | 1393 |
| 1338 core.int buildCounterForwardingRulesScopedList = 0; | 1394 core.int buildCounterForwardingRulesScopedList = 0; |
| 1339 buildForwardingRulesScopedList() { | 1395 buildForwardingRulesScopedList() { |
| 1340 var o = new api.ForwardingRulesScopedList(); | 1396 var o = new api.ForwardingRulesScopedList(); |
| 1341 buildCounterForwardingRulesScopedList++; | 1397 buildCounterForwardingRulesScopedList++; |
| 1342 if (buildCounterForwardingRulesScopedList < 3) { | 1398 if (buildCounterForwardingRulesScopedList < 3) { |
| 1343 o.forwardingRules = buildUnnamed1262(); | 1399 o.forwardingRules = buildUnnamed477(); |
| 1344 o.warning = buildForwardingRulesScopedListWarning(); | 1400 o.warning = buildForwardingRulesScopedListWarning(); |
| 1345 } | 1401 } |
| 1346 buildCounterForwardingRulesScopedList--; | 1402 buildCounterForwardingRulesScopedList--; |
| 1347 return o; | 1403 return o; |
| 1348 } | 1404 } |
| 1349 | 1405 |
| 1350 checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { | 1406 checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { |
| 1351 buildCounterForwardingRulesScopedList++; | 1407 buildCounterForwardingRulesScopedList++; |
| 1352 if (buildCounterForwardingRulesScopedList < 3) { | 1408 if (buildCounterForwardingRulesScopedList < 3) { |
| 1353 checkUnnamed1262(o.forwardingRules); | 1409 checkUnnamed477(o.forwardingRules); |
| 1354 checkForwardingRulesScopedListWarning(o.warning); | 1410 checkForwardingRulesScopedListWarning(o.warning); |
| 1355 } | 1411 } |
| 1356 buildCounterForwardingRulesScopedList--; | 1412 buildCounterForwardingRulesScopedList--; |
| 1357 } | 1413 } |
| 1358 | 1414 |
| 1359 core.int buildCounterHealthCheckReference = 0; | 1415 core.int buildCounterHealthCheckReference = 0; |
| 1360 buildHealthCheckReference() { | 1416 buildHealthCheckReference() { |
| 1361 var o = new api.HealthCheckReference(); | 1417 var o = new api.HealthCheckReference(); |
| 1362 buildCounterHealthCheckReference++; | 1418 buildCounterHealthCheckReference++; |
| 1363 if (buildCounterHealthCheckReference < 3) { | 1419 if (buildCounterHealthCheckReference < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1393 buildCounterHealthStatus++; | 1449 buildCounterHealthStatus++; |
| 1394 if (buildCounterHealthStatus < 3) { | 1450 if (buildCounterHealthStatus < 3) { |
| 1395 unittest.expect(o.healthState, unittest.equals('foo')); | 1451 unittest.expect(o.healthState, unittest.equals('foo')); |
| 1396 unittest.expect(o.instance, unittest.equals('foo')); | 1452 unittest.expect(o.instance, unittest.equals('foo')); |
| 1397 unittest.expect(o.ipAddress, unittest.equals('foo')); | 1453 unittest.expect(o.ipAddress, unittest.equals('foo')); |
| 1398 unittest.expect(o.port, unittest.equals(42)); | 1454 unittest.expect(o.port, unittest.equals(42)); |
| 1399 } | 1455 } |
| 1400 buildCounterHealthStatus--; | 1456 buildCounterHealthStatus--; |
| 1401 } | 1457 } |
| 1402 | 1458 |
| 1403 buildUnnamed1264() { | 1459 buildUnnamed479() { |
| 1404 var o = new core.List<core.String>(); | 1460 var o = new core.List<core.String>(); |
| 1405 o.add("foo"); | 1461 o.add("foo"); |
| 1406 o.add("foo"); | 1462 o.add("foo"); |
| 1407 return o; | 1463 return o; |
| 1408 } | 1464 } |
| 1409 | 1465 |
| 1410 checkUnnamed1264(core.List<core.String> o) { | 1466 checkUnnamed479(core.List<core.String> o) { |
| 1411 unittest.expect(o, unittest.hasLength(2)); | 1467 unittest.expect(o, unittest.hasLength(2)); |
| 1412 unittest.expect(o[0], unittest.equals('foo')); | 1468 unittest.expect(o[0], unittest.equals('foo')); |
| 1413 unittest.expect(o[1], unittest.equals('foo')); | 1469 unittest.expect(o[1], unittest.equals('foo')); |
| 1414 } | 1470 } |
| 1415 | 1471 |
| 1416 core.int buildCounterHostRule = 0; | 1472 core.int buildCounterHostRule = 0; |
| 1417 buildHostRule() { | 1473 buildHostRule() { |
| 1418 var o = new api.HostRule(); | 1474 var o = new api.HostRule(); |
| 1419 buildCounterHostRule++; | 1475 buildCounterHostRule++; |
| 1420 if (buildCounterHostRule < 3) { | 1476 if (buildCounterHostRule < 3) { |
| 1421 o.description = "foo"; | 1477 o.description = "foo"; |
| 1422 o.hosts = buildUnnamed1264(); | 1478 o.hosts = buildUnnamed479(); |
| 1423 o.pathMatcher = "foo"; | 1479 o.pathMatcher = "foo"; |
| 1424 } | 1480 } |
| 1425 buildCounterHostRule--; | 1481 buildCounterHostRule--; |
| 1426 return o; | 1482 return o; |
| 1427 } | 1483 } |
| 1428 | 1484 |
| 1429 checkHostRule(api.HostRule o) { | 1485 checkHostRule(api.HostRule o) { |
| 1430 buildCounterHostRule++; | 1486 buildCounterHostRule++; |
| 1431 if (buildCounterHostRule < 3) { | 1487 if (buildCounterHostRule < 3) { |
| 1432 unittest.expect(o.description, unittest.equals('foo')); | 1488 unittest.expect(o.description, unittest.equals('foo')); |
| 1433 checkUnnamed1264(o.hosts); | 1489 checkUnnamed479(o.hosts); |
| 1434 unittest.expect(o.pathMatcher, unittest.equals('foo')); | 1490 unittest.expect(o.pathMatcher, unittest.equals('foo')); |
| 1435 } | 1491 } |
| 1436 buildCounterHostRule--; | 1492 buildCounterHostRule--; |
| 1437 } | 1493 } |
| 1438 | 1494 |
| 1439 core.int buildCounterHttpHealthCheck = 0; | 1495 core.int buildCounterHttpHealthCheck = 0; |
| 1440 buildHttpHealthCheck() { | 1496 buildHttpHealthCheck() { |
| 1441 var o = new api.HttpHealthCheck(); | 1497 var o = new api.HttpHealthCheck(); |
| 1442 buildCounterHttpHealthCheck++; | 1498 buildCounterHttpHealthCheck++; |
| 1443 if (buildCounterHttpHealthCheck < 3) { | 1499 if (buildCounterHttpHealthCheck < 3) { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1472 unittest.expect(o.name, unittest.equals('foo')); | 1528 unittest.expect(o.name, unittest.equals('foo')); |
| 1473 unittest.expect(o.port, unittest.equals(42)); | 1529 unittest.expect(o.port, unittest.equals(42)); |
| 1474 unittest.expect(o.requestPath, unittest.equals('foo')); | 1530 unittest.expect(o.requestPath, unittest.equals('foo')); |
| 1475 unittest.expect(o.selfLink, unittest.equals('foo')); | 1531 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1476 unittest.expect(o.timeoutSec, unittest.equals(42)); | 1532 unittest.expect(o.timeoutSec, unittest.equals(42)); |
| 1477 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); | 1533 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); |
| 1478 } | 1534 } |
| 1479 buildCounterHttpHealthCheck--; | 1535 buildCounterHttpHealthCheck--; |
| 1480 } | 1536 } |
| 1481 | 1537 |
| 1482 buildUnnamed1265() { | 1538 buildUnnamed480() { |
| 1483 var o = new core.List<api.HttpHealthCheck>(); | 1539 var o = new core.List<api.HttpHealthCheck>(); |
| 1484 o.add(buildHttpHealthCheck()); | 1540 o.add(buildHttpHealthCheck()); |
| 1485 o.add(buildHttpHealthCheck()); | 1541 o.add(buildHttpHealthCheck()); |
| 1486 return o; | 1542 return o; |
| 1487 } | 1543 } |
| 1488 | 1544 |
| 1489 checkUnnamed1265(core.List<api.HttpHealthCheck> o) { | 1545 checkUnnamed480(core.List<api.HttpHealthCheck> o) { |
| 1490 unittest.expect(o, unittest.hasLength(2)); | 1546 unittest.expect(o, unittest.hasLength(2)); |
| 1491 checkHttpHealthCheck(o[0]); | 1547 checkHttpHealthCheck(o[0]); |
| 1492 checkHttpHealthCheck(o[1]); | 1548 checkHttpHealthCheck(o[1]); |
| 1493 } | 1549 } |
| 1494 | 1550 |
| 1495 core.int buildCounterHttpHealthCheckList = 0; | 1551 core.int buildCounterHttpHealthCheckList = 0; |
| 1496 buildHttpHealthCheckList() { | 1552 buildHttpHealthCheckList() { |
| 1497 var o = new api.HttpHealthCheckList(); | 1553 var o = new api.HttpHealthCheckList(); |
| 1498 buildCounterHttpHealthCheckList++; | 1554 buildCounterHttpHealthCheckList++; |
| 1499 if (buildCounterHttpHealthCheckList < 3) { | 1555 if (buildCounterHttpHealthCheckList < 3) { |
| 1500 o.id = "foo"; | 1556 o.id = "foo"; |
| 1501 o.items = buildUnnamed1265(); | 1557 o.items = buildUnnamed480(); |
| 1502 o.kind = "foo"; | 1558 o.kind = "foo"; |
| 1503 o.nextPageToken = "foo"; | 1559 o.nextPageToken = "foo"; |
| 1504 o.selfLink = "foo"; | 1560 o.selfLink = "foo"; |
| 1505 } | 1561 } |
| 1506 buildCounterHttpHealthCheckList--; | 1562 buildCounterHttpHealthCheckList--; |
| 1507 return o; | 1563 return o; |
| 1508 } | 1564 } |
| 1509 | 1565 |
| 1510 checkHttpHealthCheckList(api.HttpHealthCheckList o) { | 1566 checkHttpHealthCheckList(api.HttpHealthCheckList o) { |
| 1511 buildCounterHttpHealthCheckList++; | 1567 buildCounterHttpHealthCheckList++; |
| 1512 if (buildCounterHttpHealthCheckList < 3) { | 1568 if (buildCounterHttpHealthCheckList < 3) { |
| 1513 unittest.expect(o.id, unittest.equals('foo')); | 1569 unittest.expect(o.id, unittest.equals('foo')); |
| 1514 checkUnnamed1265(o.items); | 1570 checkUnnamed480(o.items); |
| 1515 unittest.expect(o.kind, unittest.equals('foo')); | 1571 unittest.expect(o.kind, unittest.equals('foo')); |
| 1516 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1572 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1517 unittest.expect(o.selfLink, unittest.equals('foo')); | 1573 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1518 } | 1574 } |
| 1519 buildCounterHttpHealthCheckList--; | 1575 buildCounterHttpHealthCheckList--; |
| 1520 } | 1576 } |
| 1521 | 1577 |
| 1522 buildUnnamed1266() { | 1578 buildUnnamed481() { |
| 1523 var o = new core.List<core.String>(); | 1579 var o = new core.List<core.String>(); |
| 1524 o.add("foo"); | 1580 o.add("foo"); |
| 1525 o.add("foo"); | 1581 o.add("foo"); |
| 1526 return o; | 1582 return o; |
| 1527 } | 1583 } |
| 1528 | 1584 |
| 1529 checkUnnamed1266(core.List<core.String> o) { | 1585 checkUnnamed481(core.List<core.String> o) { |
| 1530 unittest.expect(o, unittest.hasLength(2)); | 1586 unittest.expect(o, unittest.hasLength(2)); |
| 1531 unittest.expect(o[0], unittest.equals('foo')); | 1587 unittest.expect(o[0], unittest.equals('foo')); |
| 1532 unittest.expect(o[1], unittest.equals('foo')); | 1588 unittest.expect(o[1], unittest.equals('foo')); |
| 1533 } | 1589 } |
| 1534 | 1590 |
| 1535 core.int buildCounterImageRawDisk = 0; | 1591 core.int buildCounterImageRawDisk = 0; |
| 1536 buildImageRawDisk() { | 1592 buildImageRawDisk() { |
| 1537 var o = new api.ImageRawDisk(); | 1593 var o = new api.ImageRawDisk(); |
| 1538 buildCounterImageRawDisk++; | 1594 buildCounterImageRawDisk++; |
| 1539 if (buildCounterImageRawDisk < 3) { | 1595 if (buildCounterImageRawDisk < 3) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1560 var o = new api.Image(); | 1616 var o = new api.Image(); |
| 1561 buildCounterImage++; | 1617 buildCounterImage++; |
| 1562 if (buildCounterImage < 3) { | 1618 if (buildCounterImage < 3) { |
| 1563 o.archiveSizeBytes = "foo"; | 1619 o.archiveSizeBytes = "foo"; |
| 1564 o.creationTimestamp = "foo"; | 1620 o.creationTimestamp = "foo"; |
| 1565 o.deprecated = buildDeprecationStatus(); | 1621 o.deprecated = buildDeprecationStatus(); |
| 1566 o.description = "foo"; | 1622 o.description = "foo"; |
| 1567 o.diskSizeGb = "foo"; | 1623 o.diskSizeGb = "foo"; |
| 1568 o.id = "foo"; | 1624 o.id = "foo"; |
| 1569 o.kind = "foo"; | 1625 o.kind = "foo"; |
| 1570 o.licenses = buildUnnamed1266(); | 1626 o.licenses = buildUnnamed481(); |
| 1571 o.name = "foo"; | 1627 o.name = "foo"; |
| 1572 o.rawDisk = buildImageRawDisk(); | 1628 o.rawDisk = buildImageRawDisk(); |
| 1573 o.selfLink = "foo"; | 1629 o.selfLink = "foo"; |
| 1574 o.sourceDisk = "foo"; | 1630 o.sourceDisk = "foo"; |
| 1575 o.sourceDiskId = "foo"; | 1631 o.sourceDiskId = "foo"; |
| 1576 o.sourceType = "foo"; | 1632 o.sourceType = "foo"; |
| 1577 o.status = "foo"; | 1633 o.status = "foo"; |
| 1578 } | 1634 } |
| 1579 buildCounterImage--; | 1635 buildCounterImage--; |
| 1580 return o; | 1636 return o; |
| 1581 } | 1637 } |
| 1582 | 1638 |
| 1583 checkImage(api.Image o) { | 1639 checkImage(api.Image o) { |
| 1584 buildCounterImage++; | 1640 buildCounterImage++; |
| 1585 if (buildCounterImage < 3) { | 1641 if (buildCounterImage < 3) { |
| 1586 unittest.expect(o.archiveSizeBytes, unittest.equals('foo')); | 1642 unittest.expect(o.archiveSizeBytes, unittest.equals('foo')); |
| 1587 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 1643 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 1588 checkDeprecationStatus(o.deprecated); | 1644 checkDeprecationStatus(o.deprecated); |
| 1589 unittest.expect(o.description, unittest.equals('foo')); | 1645 unittest.expect(o.description, unittest.equals('foo')); |
| 1590 unittest.expect(o.diskSizeGb, unittest.equals('foo')); | 1646 unittest.expect(o.diskSizeGb, unittest.equals('foo')); |
| 1591 unittest.expect(o.id, unittest.equals('foo')); | 1647 unittest.expect(o.id, unittest.equals('foo')); |
| 1592 unittest.expect(o.kind, unittest.equals('foo')); | 1648 unittest.expect(o.kind, unittest.equals('foo')); |
| 1593 checkUnnamed1266(o.licenses); | 1649 checkUnnamed481(o.licenses); |
| 1594 unittest.expect(o.name, unittest.equals('foo')); | 1650 unittest.expect(o.name, unittest.equals('foo')); |
| 1595 checkImageRawDisk(o.rawDisk); | 1651 checkImageRawDisk(o.rawDisk); |
| 1596 unittest.expect(o.selfLink, unittest.equals('foo')); | 1652 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1597 unittest.expect(o.sourceDisk, unittest.equals('foo')); | 1653 unittest.expect(o.sourceDisk, unittest.equals('foo')); |
| 1598 unittest.expect(o.sourceDiskId, unittest.equals('foo')); | 1654 unittest.expect(o.sourceDiskId, unittest.equals('foo')); |
| 1599 unittest.expect(o.sourceType, unittest.equals('foo')); | 1655 unittest.expect(o.sourceType, unittest.equals('foo')); |
| 1600 unittest.expect(o.status, unittest.equals('foo')); | 1656 unittest.expect(o.status, unittest.equals('foo')); |
| 1601 } | 1657 } |
| 1602 buildCounterImage--; | 1658 buildCounterImage--; |
| 1603 } | 1659 } |
| 1604 | 1660 |
| 1605 buildUnnamed1267() { | 1661 buildUnnamed482() { |
| 1606 var o = new core.List<api.Image>(); | 1662 var o = new core.List<api.Image>(); |
| 1607 o.add(buildImage()); | 1663 o.add(buildImage()); |
| 1608 o.add(buildImage()); | 1664 o.add(buildImage()); |
| 1609 return o; | 1665 return o; |
| 1610 } | 1666 } |
| 1611 | 1667 |
| 1612 checkUnnamed1267(core.List<api.Image> o) { | 1668 checkUnnamed482(core.List<api.Image> o) { |
| 1613 unittest.expect(o, unittest.hasLength(2)); | 1669 unittest.expect(o, unittest.hasLength(2)); |
| 1614 checkImage(o[0]); | 1670 checkImage(o[0]); |
| 1615 checkImage(o[1]); | 1671 checkImage(o[1]); |
| 1616 } | 1672 } |
| 1617 | 1673 |
| 1618 core.int buildCounterImageList = 0; | 1674 core.int buildCounterImageList = 0; |
| 1619 buildImageList() { | 1675 buildImageList() { |
| 1620 var o = new api.ImageList(); | 1676 var o = new api.ImageList(); |
| 1621 buildCounterImageList++; | 1677 buildCounterImageList++; |
| 1622 if (buildCounterImageList < 3) { | 1678 if (buildCounterImageList < 3) { |
| 1623 o.id = "foo"; | 1679 o.id = "foo"; |
| 1624 o.items = buildUnnamed1267(); | 1680 o.items = buildUnnamed482(); |
| 1625 o.kind = "foo"; | 1681 o.kind = "foo"; |
| 1626 o.nextPageToken = "foo"; | 1682 o.nextPageToken = "foo"; |
| 1627 o.selfLink = "foo"; | 1683 o.selfLink = "foo"; |
| 1628 } | 1684 } |
| 1629 buildCounterImageList--; | 1685 buildCounterImageList--; |
| 1630 return o; | 1686 return o; |
| 1631 } | 1687 } |
| 1632 | 1688 |
| 1633 checkImageList(api.ImageList o) { | 1689 checkImageList(api.ImageList o) { |
| 1634 buildCounterImageList++; | 1690 buildCounterImageList++; |
| 1635 if (buildCounterImageList < 3) { | 1691 if (buildCounterImageList < 3) { |
| 1636 unittest.expect(o.id, unittest.equals('foo')); | 1692 unittest.expect(o.id, unittest.equals('foo')); |
| 1637 checkUnnamed1267(o.items); | 1693 checkUnnamed482(o.items); |
| 1638 unittest.expect(o.kind, unittest.equals('foo')); | 1694 unittest.expect(o.kind, unittest.equals('foo')); |
| 1639 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1695 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1640 unittest.expect(o.selfLink, unittest.equals('foo')); | 1696 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1641 } | 1697 } |
| 1642 buildCounterImageList--; | 1698 buildCounterImageList--; |
| 1643 } | 1699 } |
| 1644 | 1700 |
| 1645 buildUnnamed1268() { | 1701 buildUnnamed483() { |
| 1646 var o = new core.List<api.AttachedDisk>(); | 1702 var o = new core.List<api.AttachedDisk>(); |
| 1647 o.add(buildAttachedDisk()); | 1703 o.add(buildAttachedDisk()); |
| 1648 o.add(buildAttachedDisk()); | 1704 o.add(buildAttachedDisk()); |
| 1649 return o; | 1705 return o; |
| 1650 } | 1706 } |
| 1651 | 1707 |
| 1652 checkUnnamed1268(core.List<api.AttachedDisk> o) { | 1708 checkUnnamed483(core.List<api.AttachedDisk> o) { |
| 1653 unittest.expect(o, unittest.hasLength(2)); | 1709 unittest.expect(o, unittest.hasLength(2)); |
| 1654 checkAttachedDisk(o[0]); | 1710 checkAttachedDisk(o[0]); |
| 1655 checkAttachedDisk(o[1]); | 1711 checkAttachedDisk(o[1]); |
| 1656 } | 1712 } |
| 1657 | 1713 |
| 1658 buildUnnamed1269() { | 1714 buildUnnamed484() { |
| 1659 var o = new core.List<api.NetworkInterface>(); | 1715 var o = new core.List<api.NetworkInterface>(); |
| 1660 o.add(buildNetworkInterface()); | 1716 o.add(buildNetworkInterface()); |
| 1661 o.add(buildNetworkInterface()); | 1717 o.add(buildNetworkInterface()); |
| 1662 return o; | 1718 return o; |
| 1663 } | 1719 } |
| 1664 | 1720 |
| 1665 checkUnnamed1269(core.List<api.NetworkInterface> o) { | 1721 checkUnnamed484(core.List<api.NetworkInterface> o) { |
| 1666 unittest.expect(o, unittest.hasLength(2)); | 1722 unittest.expect(o, unittest.hasLength(2)); |
| 1667 checkNetworkInterface(o[0]); | 1723 checkNetworkInterface(o[0]); |
| 1668 checkNetworkInterface(o[1]); | 1724 checkNetworkInterface(o[1]); |
| 1669 } | 1725 } |
| 1670 | 1726 |
| 1671 buildUnnamed1270() { | 1727 buildUnnamed485() { |
| 1672 var o = new core.List<api.ServiceAccount>(); | 1728 var o = new core.List<api.ServiceAccount>(); |
| 1673 o.add(buildServiceAccount()); | 1729 o.add(buildServiceAccount()); |
| 1674 o.add(buildServiceAccount()); | 1730 o.add(buildServiceAccount()); |
| 1675 return o; | 1731 return o; |
| 1676 } | 1732 } |
| 1677 | 1733 |
| 1678 checkUnnamed1270(core.List<api.ServiceAccount> o) { | 1734 checkUnnamed485(core.List<api.ServiceAccount> o) { |
| 1679 unittest.expect(o, unittest.hasLength(2)); | 1735 unittest.expect(o, unittest.hasLength(2)); |
| 1680 checkServiceAccount(o[0]); | 1736 checkServiceAccount(o[0]); |
| 1681 checkServiceAccount(o[1]); | 1737 checkServiceAccount(o[1]); |
| 1682 } | 1738 } |
| 1683 | 1739 |
| 1684 core.int buildCounterInstance = 0; | 1740 core.int buildCounterInstance = 0; |
| 1685 buildInstance() { | 1741 buildInstance() { |
| 1686 var o = new api.Instance(); | 1742 var o = new api.Instance(); |
| 1687 buildCounterInstance++; | 1743 buildCounterInstance++; |
| 1688 if (buildCounterInstance < 3) { | 1744 if (buildCounterInstance < 3) { |
| 1689 o.canIpForward = true; | 1745 o.canIpForward = true; |
| 1746 o.cpuPlatform = "foo"; |
| 1690 o.creationTimestamp = "foo"; | 1747 o.creationTimestamp = "foo"; |
| 1691 o.description = "foo"; | 1748 o.description = "foo"; |
| 1692 o.disks = buildUnnamed1268(); | 1749 o.disks = buildUnnamed483(); |
| 1693 o.id = "foo"; | 1750 o.id = "foo"; |
| 1694 o.kind = "foo"; | 1751 o.kind = "foo"; |
| 1695 o.machineType = "foo"; | 1752 o.machineType = "foo"; |
| 1696 o.metadata = buildMetadata(); | 1753 o.metadata = buildMetadata(); |
| 1697 o.name = "foo"; | 1754 o.name = "foo"; |
| 1698 o.networkInterfaces = buildUnnamed1269(); | 1755 o.networkInterfaces = buildUnnamed484(); |
| 1699 o.scheduling = buildScheduling(); | 1756 o.scheduling = buildScheduling(); |
| 1700 o.selfLink = "foo"; | 1757 o.selfLink = "foo"; |
| 1701 o.serviceAccounts = buildUnnamed1270(); | 1758 o.serviceAccounts = buildUnnamed485(); |
| 1702 o.status = "foo"; | 1759 o.status = "foo"; |
| 1703 o.statusMessage = "foo"; | 1760 o.statusMessage = "foo"; |
| 1704 o.tags = buildTags(); | 1761 o.tags = buildTags(); |
| 1705 o.zone = "foo"; | 1762 o.zone = "foo"; |
| 1706 } | 1763 } |
| 1707 buildCounterInstance--; | 1764 buildCounterInstance--; |
| 1708 return o; | 1765 return o; |
| 1709 } | 1766 } |
| 1710 | 1767 |
| 1711 checkInstance(api.Instance o) { | 1768 checkInstance(api.Instance o) { |
| 1712 buildCounterInstance++; | 1769 buildCounterInstance++; |
| 1713 if (buildCounterInstance < 3) { | 1770 if (buildCounterInstance < 3) { |
| 1714 unittest.expect(o.canIpForward, unittest.isTrue); | 1771 unittest.expect(o.canIpForward, unittest.isTrue); |
| 1772 unittest.expect(o.cpuPlatform, unittest.equals('foo')); |
| 1715 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 1773 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 1716 unittest.expect(o.description, unittest.equals('foo')); | 1774 unittest.expect(o.description, unittest.equals('foo')); |
| 1717 checkUnnamed1268(o.disks); | 1775 checkUnnamed483(o.disks); |
| 1718 unittest.expect(o.id, unittest.equals('foo')); | 1776 unittest.expect(o.id, unittest.equals('foo')); |
| 1719 unittest.expect(o.kind, unittest.equals('foo')); | 1777 unittest.expect(o.kind, unittest.equals('foo')); |
| 1720 unittest.expect(o.machineType, unittest.equals('foo')); | 1778 unittest.expect(o.machineType, unittest.equals('foo')); |
| 1721 checkMetadata(o.metadata); | 1779 checkMetadata(o.metadata); |
| 1722 unittest.expect(o.name, unittest.equals('foo')); | 1780 unittest.expect(o.name, unittest.equals('foo')); |
| 1723 checkUnnamed1269(o.networkInterfaces); | 1781 checkUnnamed484(o.networkInterfaces); |
| 1724 checkScheduling(o.scheduling); | 1782 checkScheduling(o.scheduling); |
| 1725 unittest.expect(o.selfLink, unittest.equals('foo')); | 1783 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1726 checkUnnamed1270(o.serviceAccounts); | 1784 checkUnnamed485(o.serviceAccounts); |
| 1727 unittest.expect(o.status, unittest.equals('foo')); | 1785 unittest.expect(o.status, unittest.equals('foo')); |
| 1728 unittest.expect(o.statusMessage, unittest.equals('foo')); | 1786 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 1729 checkTags(o.tags); | 1787 checkTags(o.tags); |
| 1730 unittest.expect(o.zone, unittest.equals('foo')); | 1788 unittest.expect(o.zone, unittest.equals('foo')); |
| 1731 } | 1789 } |
| 1732 buildCounterInstance--; | 1790 buildCounterInstance--; |
| 1733 } | 1791 } |
| 1734 | 1792 |
| 1735 buildUnnamed1271() { | 1793 buildUnnamed486() { |
| 1736 var o = new core.Map<core.String, api.InstancesScopedList>(); | 1794 var o = new core.Map<core.String, api.InstancesScopedList>(); |
| 1737 o["x"] = buildInstancesScopedList(); | 1795 o["x"] = buildInstancesScopedList(); |
| 1738 o["y"] = buildInstancesScopedList(); | 1796 o["y"] = buildInstancesScopedList(); |
| 1739 return o; | 1797 return o; |
| 1740 } | 1798 } |
| 1741 | 1799 |
| 1742 checkUnnamed1271(core.Map<core.String, api.InstancesScopedList> o) { | 1800 checkUnnamed486(core.Map<core.String, api.InstancesScopedList> o) { |
| 1743 unittest.expect(o, unittest.hasLength(2)); | 1801 unittest.expect(o, unittest.hasLength(2)); |
| 1744 checkInstancesScopedList(o["x"]); | 1802 checkInstancesScopedList(o["x"]); |
| 1745 checkInstancesScopedList(o["y"]); | 1803 checkInstancesScopedList(o["y"]); |
| 1746 } | 1804 } |
| 1747 | 1805 |
| 1748 core.int buildCounterInstanceAggregatedList = 0; | 1806 core.int buildCounterInstanceAggregatedList = 0; |
| 1749 buildInstanceAggregatedList() { | 1807 buildInstanceAggregatedList() { |
| 1750 var o = new api.InstanceAggregatedList(); | 1808 var o = new api.InstanceAggregatedList(); |
| 1751 buildCounterInstanceAggregatedList++; | 1809 buildCounterInstanceAggregatedList++; |
| 1752 if (buildCounterInstanceAggregatedList < 3) { | 1810 if (buildCounterInstanceAggregatedList < 3) { |
| 1753 o.id = "foo"; | 1811 o.id = "foo"; |
| 1754 o.items = buildUnnamed1271(); | 1812 o.items = buildUnnamed486(); |
| 1755 o.kind = "foo"; | 1813 o.kind = "foo"; |
| 1756 o.nextPageToken = "foo"; | 1814 o.nextPageToken = "foo"; |
| 1757 o.selfLink = "foo"; | 1815 o.selfLink = "foo"; |
| 1758 } | 1816 } |
| 1759 buildCounterInstanceAggregatedList--; | 1817 buildCounterInstanceAggregatedList--; |
| 1760 return o; | 1818 return o; |
| 1761 } | 1819 } |
| 1762 | 1820 |
| 1763 checkInstanceAggregatedList(api.InstanceAggregatedList o) { | 1821 checkInstanceAggregatedList(api.InstanceAggregatedList o) { |
| 1764 buildCounterInstanceAggregatedList++; | 1822 buildCounterInstanceAggregatedList++; |
| 1765 if (buildCounterInstanceAggregatedList < 3) { | 1823 if (buildCounterInstanceAggregatedList < 3) { |
| 1766 unittest.expect(o.id, unittest.equals('foo')); | 1824 unittest.expect(o.id, unittest.equals('foo')); |
| 1767 checkUnnamed1271(o.items); | 1825 checkUnnamed486(o.items); |
| 1768 unittest.expect(o.kind, unittest.equals('foo')); | 1826 unittest.expect(o.kind, unittest.equals('foo')); |
| 1769 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1827 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1770 unittest.expect(o.selfLink, unittest.equals('foo')); | 1828 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1771 } | 1829 } |
| 1772 buildCounterInstanceAggregatedList--; | 1830 buildCounterInstanceAggregatedList--; |
| 1773 } | 1831 } |
| 1774 | 1832 |
| 1775 buildUnnamed1272() { | 1833 buildUnnamed487() { |
| 1776 var o = new core.List<api.Instance>(); | 1834 var o = new core.List<api.Instance>(); |
| 1777 o.add(buildInstance()); | 1835 o.add(buildInstance()); |
| 1778 o.add(buildInstance()); | 1836 o.add(buildInstance()); |
| 1779 return o; | 1837 return o; |
| 1780 } | 1838 } |
| 1781 | 1839 |
| 1782 checkUnnamed1272(core.List<api.Instance> o) { | 1840 checkUnnamed487(core.List<api.Instance> o) { |
| 1783 unittest.expect(o, unittest.hasLength(2)); | 1841 unittest.expect(o, unittest.hasLength(2)); |
| 1784 checkInstance(o[0]); | 1842 checkInstance(o[0]); |
| 1785 checkInstance(o[1]); | 1843 checkInstance(o[1]); |
| 1786 } | 1844 } |
| 1787 | 1845 |
| 1788 core.int buildCounterInstanceList = 0; | 1846 core.int buildCounterInstanceList = 0; |
| 1789 buildInstanceList() { | 1847 buildInstanceList() { |
| 1790 var o = new api.InstanceList(); | 1848 var o = new api.InstanceList(); |
| 1791 buildCounterInstanceList++; | 1849 buildCounterInstanceList++; |
| 1792 if (buildCounterInstanceList < 3) { | 1850 if (buildCounterInstanceList < 3) { |
| 1793 o.id = "foo"; | 1851 o.id = "foo"; |
| 1794 o.items = buildUnnamed1272(); | 1852 o.items = buildUnnamed487(); |
| 1795 o.kind = "foo"; | 1853 o.kind = "foo"; |
| 1796 o.nextPageToken = "foo"; | 1854 o.nextPageToken = "foo"; |
| 1797 o.selfLink = "foo"; | 1855 o.selfLink = "foo"; |
| 1798 } | 1856 } |
| 1799 buildCounterInstanceList--; | 1857 buildCounterInstanceList--; |
| 1800 return o; | 1858 return o; |
| 1801 } | 1859 } |
| 1802 | 1860 |
| 1803 checkInstanceList(api.InstanceList o) { | 1861 checkInstanceList(api.InstanceList o) { |
| 1804 buildCounterInstanceList++; | 1862 buildCounterInstanceList++; |
| 1805 if (buildCounterInstanceList < 3) { | 1863 if (buildCounterInstanceList < 3) { |
| 1806 unittest.expect(o.id, unittest.equals('foo')); | 1864 unittest.expect(o.id, unittest.equals('foo')); |
| 1807 checkUnnamed1272(o.items); | 1865 checkUnnamed487(o.items); |
| 1808 unittest.expect(o.kind, unittest.equals('foo')); | 1866 unittest.expect(o.kind, unittest.equals('foo')); |
| 1809 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1867 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1810 unittest.expect(o.selfLink, unittest.equals('foo')); | 1868 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1811 } | 1869 } |
| 1812 buildCounterInstanceList--; | 1870 buildCounterInstanceList--; |
| 1813 } | 1871 } |
| 1814 | 1872 |
| 1815 buildUnnamed1273() { | 1873 core.int buildCounterInstanceMoveRequest = 0; |
| 1874 buildInstanceMoveRequest() { |
| 1875 var o = new api.InstanceMoveRequest(); |
| 1876 buildCounterInstanceMoveRequest++; |
| 1877 if (buildCounterInstanceMoveRequest < 3) { |
| 1878 o.destinationZone = "foo"; |
| 1879 o.targetInstance = "foo"; |
| 1880 } |
| 1881 buildCounterInstanceMoveRequest--; |
| 1882 return o; |
| 1883 } |
| 1884 |
| 1885 checkInstanceMoveRequest(api.InstanceMoveRequest o) { |
| 1886 buildCounterInstanceMoveRequest++; |
| 1887 if (buildCounterInstanceMoveRequest < 3) { |
| 1888 unittest.expect(o.destinationZone, unittest.equals('foo')); |
| 1889 unittest.expect(o.targetInstance, unittest.equals('foo')); |
| 1890 } |
| 1891 buildCounterInstanceMoveRequest--; |
| 1892 } |
| 1893 |
| 1894 buildUnnamed488() { |
| 1816 var o = new core.List<api.AttachedDisk>(); | 1895 var o = new core.List<api.AttachedDisk>(); |
| 1817 o.add(buildAttachedDisk()); | 1896 o.add(buildAttachedDisk()); |
| 1818 o.add(buildAttachedDisk()); | 1897 o.add(buildAttachedDisk()); |
| 1819 return o; | 1898 return o; |
| 1820 } | 1899 } |
| 1821 | 1900 |
| 1822 checkUnnamed1273(core.List<api.AttachedDisk> o) { | 1901 checkUnnamed488(core.List<api.AttachedDisk> o) { |
| 1823 unittest.expect(o, unittest.hasLength(2)); | 1902 unittest.expect(o, unittest.hasLength(2)); |
| 1824 checkAttachedDisk(o[0]); | 1903 checkAttachedDisk(o[0]); |
| 1825 checkAttachedDisk(o[1]); | 1904 checkAttachedDisk(o[1]); |
| 1826 } | 1905 } |
| 1827 | 1906 |
| 1828 buildUnnamed1274() { | 1907 buildUnnamed489() { |
| 1829 var o = new core.List<api.NetworkInterface>(); | 1908 var o = new core.List<api.NetworkInterface>(); |
| 1830 o.add(buildNetworkInterface()); | 1909 o.add(buildNetworkInterface()); |
| 1831 o.add(buildNetworkInterface()); | 1910 o.add(buildNetworkInterface()); |
| 1832 return o; | 1911 return o; |
| 1833 } | 1912 } |
| 1834 | 1913 |
| 1835 checkUnnamed1274(core.List<api.NetworkInterface> o) { | 1914 checkUnnamed489(core.List<api.NetworkInterface> o) { |
| 1836 unittest.expect(o, unittest.hasLength(2)); | 1915 unittest.expect(o, unittest.hasLength(2)); |
| 1837 checkNetworkInterface(o[0]); | 1916 checkNetworkInterface(o[0]); |
| 1838 checkNetworkInterface(o[1]); | 1917 checkNetworkInterface(o[1]); |
| 1839 } | 1918 } |
| 1840 | 1919 |
| 1841 buildUnnamed1275() { | 1920 buildUnnamed490() { |
| 1842 var o = new core.List<api.ServiceAccount>(); | 1921 var o = new core.List<api.ServiceAccount>(); |
| 1843 o.add(buildServiceAccount()); | 1922 o.add(buildServiceAccount()); |
| 1844 o.add(buildServiceAccount()); | 1923 o.add(buildServiceAccount()); |
| 1845 return o; | 1924 return o; |
| 1846 } | 1925 } |
| 1847 | 1926 |
| 1848 checkUnnamed1275(core.List<api.ServiceAccount> o) { | 1927 checkUnnamed490(core.List<api.ServiceAccount> o) { |
| 1849 unittest.expect(o, unittest.hasLength(2)); | 1928 unittest.expect(o, unittest.hasLength(2)); |
| 1850 checkServiceAccount(o[0]); | 1929 checkServiceAccount(o[0]); |
| 1851 checkServiceAccount(o[1]); | 1930 checkServiceAccount(o[1]); |
| 1852 } | 1931 } |
| 1853 | 1932 |
| 1854 core.int buildCounterInstanceProperties = 0; | 1933 core.int buildCounterInstanceProperties = 0; |
| 1855 buildInstanceProperties() { | 1934 buildInstanceProperties() { |
| 1856 var o = new api.InstanceProperties(); | 1935 var o = new api.InstanceProperties(); |
| 1857 buildCounterInstanceProperties++; | 1936 buildCounterInstanceProperties++; |
| 1858 if (buildCounterInstanceProperties < 3) { | 1937 if (buildCounterInstanceProperties < 3) { |
| 1859 o.canIpForward = true; | 1938 o.canIpForward = true; |
| 1860 o.description = "foo"; | 1939 o.description = "foo"; |
| 1861 o.disks = buildUnnamed1273(); | 1940 o.disks = buildUnnamed488(); |
| 1862 o.machineType = "foo"; | 1941 o.machineType = "foo"; |
| 1863 o.metadata = buildMetadata(); | 1942 o.metadata = buildMetadata(); |
| 1864 o.networkInterfaces = buildUnnamed1274(); | 1943 o.networkInterfaces = buildUnnamed489(); |
| 1865 o.scheduling = buildScheduling(); | 1944 o.scheduling = buildScheduling(); |
| 1866 o.serviceAccounts = buildUnnamed1275(); | 1945 o.serviceAccounts = buildUnnamed490(); |
| 1867 o.tags = buildTags(); | 1946 o.tags = buildTags(); |
| 1868 } | 1947 } |
| 1869 buildCounterInstanceProperties--; | 1948 buildCounterInstanceProperties--; |
| 1870 return o; | 1949 return o; |
| 1871 } | 1950 } |
| 1872 | 1951 |
| 1873 checkInstanceProperties(api.InstanceProperties o) { | 1952 checkInstanceProperties(api.InstanceProperties o) { |
| 1874 buildCounterInstanceProperties++; | 1953 buildCounterInstanceProperties++; |
| 1875 if (buildCounterInstanceProperties < 3) { | 1954 if (buildCounterInstanceProperties < 3) { |
| 1876 unittest.expect(o.canIpForward, unittest.isTrue); | 1955 unittest.expect(o.canIpForward, unittest.isTrue); |
| 1877 unittest.expect(o.description, unittest.equals('foo')); | 1956 unittest.expect(o.description, unittest.equals('foo')); |
| 1878 checkUnnamed1273(o.disks); | 1957 checkUnnamed488(o.disks); |
| 1879 unittest.expect(o.machineType, unittest.equals('foo')); | 1958 unittest.expect(o.machineType, unittest.equals('foo')); |
| 1880 checkMetadata(o.metadata); | 1959 checkMetadata(o.metadata); |
| 1881 checkUnnamed1274(o.networkInterfaces); | 1960 checkUnnamed489(o.networkInterfaces); |
| 1882 checkScheduling(o.scheduling); | 1961 checkScheduling(o.scheduling); |
| 1883 checkUnnamed1275(o.serviceAccounts); | 1962 checkUnnamed490(o.serviceAccounts); |
| 1884 checkTags(o.tags); | 1963 checkTags(o.tags); |
| 1885 } | 1964 } |
| 1886 buildCounterInstanceProperties--; | 1965 buildCounterInstanceProperties--; |
| 1887 } | 1966 } |
| 1888 | 1967 |
| 1889 core.int buildCounterInstanceReference = 0; | 1968 core.int buildCounterInstanceReference = 0; |
| 1890 buildInstanceReference() { | 1969 buildInstanceReference() { |
| 1891 var o = new api.InstanceReference(); | 1970 var o = new api.InstanceReference(); |
| 1892 buildCounterInstanceReference++; | 1971 buildCounterInstanceReference++; |
| 1893 if (buildCounterInstanceReference < 3) { | 1972 if (buildCounterInstanceReference < 3) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1929 unittest.expect(o.description, unittest.equals('foo')); | 2008 unittest.expect(o.description, unittest.equals('foo')); |
| 1930 unittest.expect(o.id, unittest.equals('foo')); | 2009 unittest.expect(o.id, unittest.equals('foo')); |
| 1931 unittest.expect(o.kind, unittest.equals('foo')); | 2010 unittest.expect(o.kind, unittest.equals('foo')); |
| 1932 unittest.expect(o.name, unittest.equals('foo')); | 2011 unittest.expect(o.name, unittest.equals('foo')); |
| 1933 checkInstanceProperties(o.properties); | 2012 checkInstanceProperties(o.properties); |
| 1934 unittest.expect(o.selfLink, unittest.equals('foo')); | 2013 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1935 } | 2014 } |
| 1936 buildCounterInstanceTemplate--; | 2015 buildCounterInstanceTemplate--; |
| 1937 } | 2016 } |
| 1938 | 2017 |
| 1939 buildUnnamed1276() { | 2018 buildUnnamed491() { |
| 1940 var o = new core.List<api.InstanceTemplate>(); | 2019 var o = new core.List<api.InstanceTemplate>(); |
| 1941 o.add(buildInstanceTemplate()); | 2020 o.add(buildInstanceTemplate()); |
| 1942 o.add(buildInstanceTemplate()); | 2021 o.add(buildInstanceTemplate()); |
| 1943 return o; | 2022 return o; |
| 1944 } | 2023 } |
| 1945 | 2024 |
| 1946 checkUnnamed1276(core.List<api.InstanceTemplate> o) { | 2025 checkUnnamed491(core.List<api.InstanceTemplate> o) { |
| 1947 unittest.expect(o, unittest.hasLength(2)); | 2026 unittest.expect(o, unittest.hasLength(2)); |
| 1948 checkInstanceTemplate(o[0]); | 2027 checkInstanceTemplate(o[0]); |
| 1949 checkInstanceTemplate(o[1]); | 2028 checkInstanceTemplate(o[1]); |
| 1950 } | 2029 } |
| 1951 | 2030 |
| 1952 core.int buildCounterInstanceTemplateList = 0; | 2031 core.int buildCounterInstanceTemplateList = 0; |
| 1953 buildInstanceTemplateList() { | 2032 buildInstanceTemplateList() { |
| 1954 var o = new api.InstanceTemplateList(); | 2033 var o = new api.InstanceTemplateList(); |
| 1955 buildCounterInstanceTemplateList++; | 2034 buildCounterInstanceTemplateList++; |
| 1956 if (buildCounterInstanceTemplateList < 3) { | 2035 if (buildCounterInstanceTemplateList < 3) { |
| 1957 o.id = "foo"; | 2036 o.id = "foo"; |
| 1958 o.items = buildUnnamed1276(); | 2037 o.items = buildUnnamed491(); |
| 1959 o.kind = "foo"; | 2038 o.kind = "foo"; |
| 1960 o.nextPageToken = "foo"; | 2039 o.nextPageToken = "foo"; |
| 1961 o.selfLink = "foo"; | 2040 o.selfLink = "foo"; |
| 1962 } | 2041 } |
| 1963 buildCounterInstanceTemplateList--; | 2042 buildCounterInstanceTemplateList--; |
| 1964 return o; | 2043 return o; |
| 1965 } | 2044 } |
| 1966 | 2045 |
| 1967 checkInstanceTemplateList(api.InstanceTemplateList o) { | 2046 checkInstanceTemplateList(api.InstanceTemplateList o) { |
| 1968 buildCounterInstanceTemplateList++; | 2047 buildCounterInstanceTemplateList++; |
| 1969 if (buildCounterInstanceTemplateList < 3) { | 2048 if (buildCounterInstanceTemplateList < 3) { |
| 1970 unittest.expect(o.id, unittest.equals('foo')); | 2049 unittest.expect(o.id, unittest.equals('foo')); |
| 1971 checkUnnamed1276(o.items); | 2050 checkUnnamed491(o.items); |
| 1972 unittest.expect(o.kind, unittest.equals('foo')); | 2051 unittest.expect(o.kind, unittest.equals('foo')); |
| 1973 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2052 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1974 unittest.expect(o.selfLink, unittest.equals('foo')); | 2053 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1975 } | 2054 } |
| 1976 buildCounterInstanceTemplateList--; | 2055 buildCounterInstanceTemplateList--; |
| 1977 } | 2056 } |
| 1978 | 2057 |
| 1979 buildUnnamed1277() { | 2058 buildUnnamed492() { |
| 1980 var o = new core.List<api.Instance>(); | 2059 var o = new core.List<api.Instance>(); |
| 1981 o.add(buildInstance()); | 2060 o.add(buildInstance()); |
| 1982 o.add(buildInstance()); | 2061 o.add(buildInstance()); |
| 1983 return o; | 2062 return o; |
| 1984 } | 2063 } |
| 1985 | 2064 |
| 1986 checkUnnamed1277(core.List<api.Instance> o) { | 2065 checkUnnamed492(core.List<api.Instance> o) { |
| 1987 unittest.expect(o, unittest.hasLength(2)); | 2066 unittest.expect(o, unittest.hasLength(2)); |
| 1988 checkInstance(o[0]); | 2067 checkInstance(o[0]); |
| 1989 checkInstance(o[1]); | 2068 checkInstance(o[1]); |
| 1990 } | 2069 } |
| 1991 | 2070 |
| 1992 core.int buildCounterInstancesScopedListWarningData = 0; | 2071 core.int buildCounterInstancesScopedListWarningData = 0; |
| 1993 buildInstancesScopedListWarningData() { | 2072 buildInstancesScopedListWarningData() { |
| 1994 var o = new api.InstancesScopedListWarningData(); | 2073 var o = new api.InstancesScopedListWarningData(); |
| 1995 buildCounterInstancesScopedListWarningData++; | 2074 buildCounterInstancesScopedListWarningData++; |
| 1996 if (buildCounterInstancesScopedListWarningData < 3) { | 2075 if (buildCounterInstancesScopedListWarningData < 3) { |
| 1997 o.key = "foo"; | 2076 o.key = "foo"; |
| 1998 o.value = "foo"; | 2077 o.value = "foo"; |
| 1999 } | 2078 } |
| 2000 buildCounterInstancesScopedListWarningData--; | 2079 buildCounterInstancesScopedListWarningData--; |
| 2001 return o; | 2080 return o; |
| 2002 } | 2081 } |
| 2003 | 2082 |
| 2004 checkInstancesScopedListWarningData(api.InstancesScopedListWarningData o) { | 2083 checkInstancesScopedListWarningData(api.InstancesScopedListWarningData o) { |
| 2005 buildCounterInstancesScopedListWarningData++; | 2084 buildCounterInstancesScopedListWarningData++; |
| 2006 if (buildCounterInstancesScopedListWarningData < 3) { | 2085 if (buildCounterInstancesScopedListWarningData < 3) { |
| 2007 unittest.expect(o.key, unittest.equals('foo')); | 2086 unittest.expect(o.key, unittest.equals('foo')); |
| 2008 unittest.expect(o.value, unittest.equals('foo')); | 2087 unittest.expect(o.value, unittest.equals('foo')); |
| 2009 } | 2088 } |
| 2010 buildCounterInstancesScopedListWarningData--; | 2089 buildCounterInstancesScopedListWarningData--; |
| 2011 } | 2090 } |
| 2012 | 2091 |
| 2013 buildUnnamed1278() { | 2092 buildUnnamed493() { |
| 2014 var o = new core.List<api.InstancesScopedListWarningData>(); | 2093 var o = new core.List<api.InstancesScopedListWarningData>(); |
| 2015 o.add(buildInstancesScopedListWarningData()); | 2094 o.add(buildInstancesScopedListWarningData()); |
| 2016 o.add(buildInstancesScopedListWarningData()); | 2095 o.add(buildInstancesScopedListWarningData()); |
| 2017 return o; | 2096 return o; |
| 2018 } | 2097 } |
| 2019 | 2098 |
| 2020 checkUnnamed1278(core.List<api.InstancesScopedListWarningData> o) { | 2099 checkUnnamed493(core.List<api.InstancesScopedListWarningData> o) { |
| 2021 unittest.expect(o, unittest.hasLength(2)); | 2100 unittest.expect(o, unittest.hasLength(2)); |
| 2022 checkInstancesScopedListWarningData(o[0]); | 2101 checkInstancesScopedListWarningData(o[0]); |
| 2023 checkInstancesScopedListWarningData(o[1]); | 2102 checkInstancesScopedListWarningData(o[1]); |
| 2024 } | 2103 } |
| 2025 | 2104 |
| 2026 core.int buildCounterInstancesScopedListWarning = 0; | 2105 core.int buildCounterInstancesScopedListWarning = 0; |
| 2027 buildInstancesScopedListWarning() { | 2106 buildInstancesScopedListWarning() { |
| 2028 var o = new api.InstancesScopedListWarning(); | 2107 var o = new api.InstancesScopedListWarning(); |
| 2029 buildCounterInstancesScopedListWarning++; | 2108 buildCounterInstancesScopedListWarning++; |
| 2030 if (buildCounterInstancesScopedListWarning < 3) { | 2109 if (buildCounterInstancesScopedListWarning < 3) { |
| 2031 o.code = "foo"; | 2110 o.code = "foo"; |
| 2032 o.data = buildUnnamed1278(); | 2111 o.data = buildUnnamed493(); |
| 2033 o.message = "foo"; | 2112 o.message = "foo"; |
| 2034 } | 2113 } |
| 2035 buildCounterInstancesScopedListWarning--; | 2114 buildCounterInstancesScopedListWarning--; |
| 2036 return o; | 2115 return o; |
| 2037 } | 2116 } |
| 2038 | 2117 |
| 2039 checkInstancesScopedListWarning(api.InstancesScopedListWarning o) { | 2118 checkInstancesScopedListWarning(api.InstancesScopedListWarning o) { |
| 2040 buildCounterInstancesScopedListWarning++; | 2119 buildCounterInstancesScopedListWarning++; |
| 2041 if (buildCounterInstancesScopedListWarning < 3) { | 2120 if (buildCounterInstancesScopedListWarning < 3) { |
| 2042 unittest.expect(o.code, unittest.equals('foo')); | 2121 unittest.expect(o.code, unittest.equals('foo')); |
| 2043 checkUnnamed1278(o.data); | 2122 checkUnnamed493(o.data); |
| 2044 unittest.expect(o.message, unittest.equals('foo')); | 2123 unittest.expect(o.message, unittest.equals('foo')); |
| 2045 } | 2124 } |
| 2046 buildCounterInstancesScopedListWarning--; | 2125 buildCounterInstancesScopedListWarning--; |
| 2047 } | 2126 } |
| 2048 | 2127 |
| 2049 core.int buildCounterInstancesScopedList = 0; | 2128 core.int buildCounterInstancesScopedList = 0; |
| 2050 buildInstancesScopedList() { | 2129 buildInstancesScopedList() { |
| 2051 var o = new api.InstancesScopedList(); | 2130 var o = new api.InstancesScopedList(); |
| 2052 buildCounterInstancesScopedList++; | 2131 buildCounterInstancesScopedList++; |
| 2053 if (buildCounterInstancesScopedList < 3) { | 2132 if (buildCounterInstancesScopedList < 3) { |
| 2054 o.instances = buildUnnamed1277(); | 2133 o.instances = buildUnnamed492(); |
| 2055 o.warning = buildInstancesScopedListWarning(); | 2134 o.warning = buildInstancesScopedListWarning(); |
| 2056 } | 2135 } |
| 2057 buildCounterInstancesScopedList--; | 2136 buildCounterInstancesScopedList--; |
| 2058 return o; | 2137 return o; |
| 2059 } | 2138 } |
| 2060 | 2139 |
| 2061 checkInstancesScopedList(api.InstancesScopedList o) { | 2140 checkInstancesScopedList(api.InstancesScopedList o) { |
| 2062 buildCounterInstancesScopedList++; | 2141 buildCounterInstancesScopedList++; |
| 2063 if (buildCounterInstancesScopedList < 3) { | 2142 if (buildCounterInstancesScopedList < 3) { |
| 2064 checkUnnamed1277(o.instances); | 2143 checkUnnamed492(o.instances); |
| 2065 checkInstancesScopedListWarning(o.warning); | 2144 checkInstancesScopedListWarning(o.warning); |
| 2066 } | 2145 } |
| 2067 buildCounterInstancesScopedList--; | 2146 buildCounterInstancesScopedList--; |
| 2068 } | 2147 } |
| 2069 | 2148 |
| 2070 core.int buildCounterLicense = 0; | 2149 core.int buildCounterLicense = 0; |
| 2071 buildLicense() { | 2150 buildLicense() { |
| 2072 var o = new api.License(); | 2151 var o = new api.License(); |
| 2073 buildCounterLicense++; | 2152 buildCounterLicense++; |
| 2074 if (buildCounterLicense < 3) { | 2153 if (buildCounterLicense < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 2104 } | 2183 } |
| 2105 | 2184 |
| 2106 checkMachineTypeScratchDisks(api.MachineTypeScratchDisks o) { | 2185 checkMachineTypeScratchDisks(api.MachineTypeScratchDisks o) { |
| 2107 buildCounterMachineTypeScratchDisks++; | 2186 buildCounterMachineTypeScratchDisks++; |
| 2108 if (buildCounterMachineTypeScratchDisks < 3) { | 2187 if (buildCounterMachineTypeScratchDisks < 3) { |
| 2109 unittest.expect(o.diskGb, unittest.equals(42)); | 2188 unittest.expect(o.diskGb, unittest.equals(42)); |
| 2110 } | 2189 } |
| 2111 buildCounterMachineTypeScratchDisks--; | 2190 buildCounterMachineTypeScratchDisks--; |
| 2112 } | 2191 } |
| 2113 | 2192 |
| 2114 buildUnnamed1279() { | 2193 buildUnnamed494() { |
| 2115 var o = new core.List<api.MachineTypeScratchDisks>(); | 2194 var o = new core.List<api.MachineTypeScratchDisks>(); |
| 2116 o.add(buildMachineTypeScratchDisks()); | 2195 o.add(buildMachineTypeScratchDisks()); |
| 2117 o.add(buildMachineTypeScratchDisks()); | 2196 o.add(buildMachineTypeScratchDisks()); |
| 2118 return o; | 2197 return o; |
| 2119 } | 2198 } |
| 2120 | 2199 |
| 2121 checkUnnamed1279(core.List<api.MachineTypeScratchDisks> o) { | 2200 checkUnnamed494(core.List<api.MachineTypeScratchDisks> o) { |
| 2122 unittest.expect(o, unittest.hasLength(2)); | 2201 unittest.expect(o, unittest.hasLength(2)); |
| 2123 checkMachineTypeScratchDisks(o[0]); | 2202 checkMachineTypeScratchDisks(o[0]); |
| 2124 checkMachineTypeScratchDisks(o[1]); | 2203 checkMachineTypeScratchDisks(o[1]); |
| 2125 } | 2204 } |
| 2126 | 2205 |
| 2127 core.int buildCounterMachineType = 0; | 2206 core.int buildCounterMachineType = 0; |
| 2128 buildMachineType() { | 2207 buildMachineType() { |
| 2129 var o = new api.MachineType(); | 2208 var o = new api.MachineType(); |
| 2130 buildCounterMachineType++; | 2209 buildCounterMachineType++; |
| 2131 if (buildCounterMachineType < 3) { | 2210 if (buildCounterMachineType < 3) { |
| 2132 o.creationTimestamp = "foo"; | 2211 o.creationTimestamp = "foo"; |
| 2133 o.deprecated = buildDeprecationStatus(); | 2212 o.deprecated = buildDeprecationStatus(); |
| 2134 o.description = "foo"; | 2213 o.description = "foo"; |
| 2135 o.guestCpus = 42; | 2214 o.guestCpus = 42; |
| 2136 o.id = "foo"; | 2215 o.id = "foo"; |
| 2137 o.imageSpaceGb = 42; | 2216 o.imageSpaceGb = 42; |
| 2138 o.kind = "foo"; | 2217 o.kind = "foo"; |
| 2139 o.maximumPersistentDisks = 42; | 2218 o.maximumPersistentDisks = 42; |
| 2140 o.maximumPersistentDisksSizeGb = "foo"; | 2219 o.maximumPersistentDisksSizeGb = "foo"; |
| 2141 o.memoryMb = 42; | 2220 o.memoryMb = 42; |
| 2142 o.name = "foo"; | 2221 o.name = "foo"; |
| 2143 o.scratchDisks = buildUnnamed1279(); | 2222 o.scratchDisks = buildUnnamed494(); |
| 2144 o.selfLink = "foo"; | 2223 o.selfLink = "foo"; |
| 2145 o.zone = "foo"; | 2224 o.zone = "foo"; |
| 2146 } | 2225 } |
| 2147 buildCounterMachineType--; | 2226 buildCounterMachineType--; |
| 2148 return o; | 2227 return o; |
| 2149 } | 2228 } |
| 2150 | 2229 |
| 2151 checkMachineType(api.MachineType o) { | 2230 checkMachineType(api.MachineType o) { |
| 2152 buildCounterMachineType++; | 2231 buildCounterMachineType++; |
| 2153 if (buildCounterMachineType < 3) { | 2232 if (buildCounterMachineType < 3) { |
| 2154 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 2233 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 2155 checkDeprecationStatus(o.deprecated); | 2234 checkDeprecationStatus(o.deprecated); |
| 2156 unittest.expect(o.description, unittest.equals('foo')); | 2235 unittest.expect(o.description, unittest.equals('foo')); |
| 2157 unittest.expect(o.guestCpus, unittest.equals(42)); | 2236 unittest.expect(o.guestCpus, unittest.equals(42)); |
| 2158 unittest.expect(o.id, unittest.equals('foo')); | 2237 unittest.expect(o.id, unittest.equals('foo')); |
| 2159 unittest.expect(o.imageSpaceGb, unittest.equals(42)); | 2238 unittest.expect(o.imageSpaceGb, unittest.equals(42)); |
| 2160 unittest.expect(o.kind, unittest.equals('foo')); | 2239 unittest.expect(o.kind, unittest.equals('foo')); |
| 2161 unittest.expect(o.maximumPersistentDisks, unittest.equals(42)); | 2240 unittest.expect(o.maximumPersistentDisks, unittest.equals(42)); |
| 2162 unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); | 2241 unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); |
| 2163 unittest.expect(o.memoryMb, unittest.equals(42)); | 2242 unittest.expect(o.memoryMb, unittest.equals(42)); |
| 2164 unittest.expect(o.name, unittest.equals('foo')); | 2243 unittest.expect(o.name, unittest.equals('foo')); |
| 2165 checkUnnamed1279(o.scratchDisks); | 2244 checkUnnamed494(o.scratchDisks); |
| 2166 unittest.expect(o.selfLink, unittest.equals('foo')); | 2245 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2167 unittest.expect(o.zone, unittest.equals('foo')); | 2246 unittest.expect(o.zone, unittest.equals('foo')); |
| 2168 } | 2247 } |
| 2169 buildCounterMachineType--; | 2248 buildCounterMachineType--; |
| 2170 } | 2249 } |
| 2171 | 2250 |
| 2172 buildUnnamed1280() { | 2251 buildUnnamed495() { |
| 2173 var o = new core.Map<core.String, api.MachineTypesScopedList>(); | 2252 var o = new core.Map<core.String, api.MachineTypesScopedList>(); |
| 2174 o["x"] = buildMachineTypesScopedList(); | 2253 o["x"] = buildMachineTypesScopedList(); |
| 2175 o["y"] = buildMachineTypesScopedList(); | 2254 o["y"] = buildMachineTypesScopedList(); |
| 2176 return o; | 2255 return o; |
| 2177 } | 2256 } |
| 2178 | 2257 |
| 2179 checkUnnamed1280(core.Map<core.String, api.MachineTypesScopedList> o) { | 2258 checkUnnamed495(core.Map<core.String, api.MachineTypesScopedList> o) { |
| 2180 unittest.expect(o, unittest.hasLength(2)); | 2259 unittest.expect(o, unittest.hasLength(2)); |
| 2181 checkMachineTypesScopedList(o["x"]); | 2260 checkMachineTypesScopedList(o["x"]); |
| 2182 checkMachineTypesScopedList(o["y"]); | 2261 checkMachineTypesScopedList(o["y"]); |
| 2183 } | 2262 } |
| 2184 | 2263 |
| 2185 core.int buildCounterMachineTypeAggregatedList = 0; | 2264 core.int buildCounterMachineTypeAggregatedList = 0; |
| 2186 buildMachineTypeAggregatedList() { | 2265 buildMachineTypeAggregatedList() { |
| 2187 var o = new api.MachineTypeAggregatedList(); | 2266 var o = new api.MachineTypeAggregatedList(); |
| 2188 buildCounterMachineTypeAggregatedList++; | 2267 buildCounterMachineTypeAggregatedList++; |
| 2189 if (buildCounterMachineTypeAggregatedList < 3) { | 2268 if (buildCounterMachineTypeAggregatedList < 3) { |
| 2190 o.id = "foo"; | 2269 o.id = "foo"; |
| 2191 o.items = buildUnnamed1280(); | 2270 o.items = buildUnnamed495(); |
| 2192 o.kind = "foo"; | 2271 o.kind = "foo"; |
| 2193 o.nextPageToken = "foo"; | 2272 o.nextPageToken = "foo"; |
| 2194 o.selfLink = "foo"; | 2273 o.selfLink = "foo"; |
| 2195 } | 2274 } |
| 2196 buildCounterMachineTypeAggregatedList--; | 2275 buildCounterMachineTypeAggregatedList--; |
| 2197 return o; | 2276 return o; |
| 2198 } | 2277 } |
| 2199 | 2278 |
| 2200 checkMachineTypeAggregatedList(api.MachineTypeAggregatedList o) { | 2279 checkMachineTypeAggregatedList(api.MachineTypeAggregatedList o) { |
| 2201 buildCounterMachineTypeAggregatedList++; | 2280 buildCounterMachineTypeAggregatedList++; |
| 2202 if (buildCounterMachineTypeAggregatedList < 3) { | 2281 if (buildCounterMachineTypeAggregatedList < 3) { |
| 2203 unittest.expect(o.id, unittest.equals('foo')); | 2282 unittest.expect(o.id, unittest.equals('foo')); |
| 2204 checkUnnamed1280(o.items); | 2283 checkUnnamed495(o.items); |
| 2205 unittest.expect(o.kind, unittest.equals('foo')); | 2284 unittest.expect(o.kind, unittest.equals('foo')); |
| 2206 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2285 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2207 unittest.expect(o.selfLink, unittest.equals('foo')); | 2286 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2208 } | 2287 } |
| 2209 buildCounterMachineTypeAggregatedList--; | 2288 buildCounterMachineTypeAggregatedList--; |
| 2210 } | 2289 } |
| 2211 | 2290 |
| 2212 buildUnnamed1281() { | 2291 buildUnnamed496() { |
| 2213 var o = new core.List<api.MachineType>(); | 2292 var o = new core.List<api.MachineType>(); |
| 2214 o.add(buildMachineType()); | 2293 o.add(buildMachineType()); |
| 2215 o.add(buildMachineType()); | 2294 o.add(buildMachineType()); |
| 2216 return o; | 2295 return o; |
| 2217 } | 2296 } |
| 2218 | 2297 |
| 2219 checkUnnamed1281(core.List<api.MachineType> o) { | 2298 checkUnnamed496(core.List<api.MachineType> o) { |
| 2220 unittest.expect(o, unittest.hasLength(2)); | 2299 unittest.expect(o, unittest.hasLength(2)); |
| 2221 checkMachineType(o[0]); | 2300 checkMachineType(o[0]); |
| 2222 checkMachineType(o[1]); | 2301 checkMachineType(o[1]); |
| 2223 } | 2302 } |
| 2224 | 2303 |
| 2225 core.int buildCounterMachineTypeList = 0; | 2304 core.int buildCounterMachineTypeList = 0; |
| 2226 buildMachineTypeList() { | 2305 buildMachineTypeList() { |
| 2227 var o = new api.MachineTypeList(); | 2306 var o = new api.MachineTypeList(); |
| 2228 buildCounterMachineTypeList++; | 2307 buildCounterMachineTypeList++; |
| 2229 if (buildCounterMachineTypeList < 3) { | 2308 if (buildCounterMachineTypeList < 3) { |
| 2230 o.id = "foo"; | 2309 o.id = "foo"; |
| 2231 o.items = buildUnnamed1281(); | 2310 o.items = buildUnnamed496(); |
| 2232 o.kind = "foo"; | 2311 o.kind = "foo"; |
| 2233 o.nextPageToken = "foo"; | 2312 o.nextPageToken = "foo"; |
| 2234 o.selfLink = "foo"; | 2313 o.selfLink = "foo"; |
| 2235 } | 2314 } |
| 2236 buildCounterMachineTypeList--; | 2315 buildCounterMachineTypeList--; |
| 2237 return o; | 2316 return o; |
| 2238 } | 2317 } |
| 2239 | 2318 |
| 2240 checkMachineTypeList(api.MachineTypeList o) { | 2319 checkMachineTypeList(api.MachineTypeList o) { |
| 2241 buildCounterMachineTypeList++; | 2320 buildCounterMachineTypeList++; |
| 2242 if (buildCounterMachineTypeList < 3) { | 2321 if (buildCounterMachineTypeList < 3) { |
| 2243 unittest.expect(o.id, unittest.equals('foo')); | 2322 unittest.expect(o.id, unittest.equals('foo')); |
| 2244 checkUnnamed1281(o.items); | 2323 checkUnnamed496(o.items); |
| 2245 unittest.expect(o.kind, unittest.equals('foo')); | 2324 unittest.expect(o.kind, unittest.equals('foo')); |
| 2246 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2325 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2247 unittest.expect(o.selfLink, unittest.equals('foo')); | 2326 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2248 } | 2327 } |
| 2249 buildCounterMachineTypeList--; | 2328 buildCounterMachineTypeList--; |
| 2250 } | 2329 } |
| 2251 | 2330 |
| 2252 buildUnnamed1282() { | 2331 buildUnnamed497() { |
| 2253 var o = new core.List<api.MachineType>(); | 2332 var o = new core.List<api.MachineType>(); |
| 2254 o.add(buildMachineType()); | 2333 o.add(buildMachineType()); |
| 2255 o.add(buildMachineType()); | 2334 o.add(buildMachineType()); |
| 2256 return o; | 2335 return o; |
| 2257 } | 2336 } |
| 2258 | 2337 |
| 2259 checkUnnamed1282(core.List<api.MachineType> o) { | 2338 checkUnnamed497(core.List<api.MachineType> o) { |
| 2260 unittest.expect(o, unittest.hasLength(2)); | 2339 unittest.expect(o, unittest.hasLength(2)); |
| 2261 checkMachineType(o[0]); | 2340 checkMachineType(o[0]); |
| 2262 checkMachineType(o[1]); | 2341 checkMachineType(o[1]); |
| 2263 } | 2342 } |
| 2264 | 2343 |
| 2265 core.int buildCounterMachineTypesScopedListWarningData = 0; | 2344 core.int buildCounterMachineTypesScopedListWarningData = 0; |
| 2266 buildMachineTypesScopedListWarningData() { | 2345 buildMachineTypesScopedListWarningData() { |
| 2267 var o = new api.MachineTypesScopedListWarningData(); | 2346 var o = new api.MachineTypesScopedListWarningData(); |
| 2268 buildCounterMachineTypesScopedListWarningData++; | 2347 buildCounterMachineTypesScopedListWarningData++; |
| 2269 if (buildCounterMachineTypesScopedListWarningData < 3) { | 2348 if (buildCounterMachineTypesScopedListWarningData < 3) { |
| 2270 o.key = "foo"; | 2349 o.key = "foo"; |
| 2271 o.value = "foo"; | 2350 o.value = "foo"; |
| 2272 } | 2351 } |
| 2273 buildCounterMachineTypesScopedListWarningData--; | 2352 buildCounterMachineTypesScopedListWarningData--; |
| 2274 return o; | 2353 return o; |
| 2275 } | 2354 } |
| 2276 | 2355 |
| 2277 checkMachineTypesScopedListWarningData(api.MachineTypesScopedListWarningData o)
{ | 2356 checkMachineTypesScopedListWarningData(api.MachineTypesScopedListWarningData o)
{ |
| 2278 buildCounterMachineTypesScopedListWarningData++; | 2357 buildCounterMachineTypesScopedListWarningData++; |
| 2279 if (buildCounterMachineTypesScopedListWarningData < 3) { | 2358 if (buildCounterMachineTypesScopedListWarningData < 3) { |
| 2280 unittest.expect(o.key, unittest.equals('foo')); | 2359 unittest.expect(o.key, unittest.equals('foo')); |
| 2281 unittest.expect(o.value, unittest.equals('foo')); | 2360 unittest.expect(o.value, unittest.equals('foo')); |
| 2282 } | 2361 } |
| 2283 buildCounterMachineTypesScopedListWarningData--; | 2362 buildCounterMachineTypesScopedListWarningData--; |
| 2284 } | 2363 } |
| 2285 | 2364 |
| 2286 buildUnnamed1283() { | 2365 buildUnnamed498() { |
| 2287 var o = new core.List<api.MachineTypesScopedListWarningData>(); | 2366 var o = new core.List<api.MachineTypesScopedListWarningData>(); |
| 2288 o.add(buildMachineTypesScopedListWarningData()); | 2367 o.add(buildMachineTypesScopedListWarningData()); |
| 2289 o.add(buildMachineTypesScopedListWarningData()); | 2368 o.add(buildMachineTypesScopedListWarningData()); |
| 2290 return o; | 2369 return o; |
| 2291 } | 2370 } |
| 2292 | 2371 |
| 2293 checkUnnamed1283(core.List<api.MachineTypesScopedListWarningData> o) { | 2372 checkUnnamed498(core.List<api.MachineTypesScopedListWarningData> o) { |
| 2294 unittest.expect(o, unittest.hasLength(2)); | 2373 unittest.expect(o, unittest.hasLength(2)); |
| 2295 checkMachineTypesScopedListWarningData(o[0]); | 2374 checkMachineTypesScopedListWarningData(o[0]); |
| 2296 checkMachineTypesScopedListWarningData(o[1]); | 2375 checkMachineTypesScopedListWarningData(o[1]); |
| 2297 } | 2376 } |
| 2298 | 2377 |
| 2299 core.int buildCounterMachineTypesScopedListWarning = 0; | 2378 core.int buildCounterMachineTypesScopedListWarning = 0; |
| 2300 buildMachineTypesScopedListWarning() { | 2379 buildMachineTypesScopedListWarning() { |
| 2301 var o = new api.MachineTypesScopedListWarning(); | 2380 var o = new api.MachineTypesScopedListWarning(); |
| 2302 buildCounterMachineTypesScopedListWarning++; | 2381 buildCounterMachineTypesScopedListWarning++; |
| 2303 if (buildCounterMachineTypesScopedListWarning < 3) { | 2382 if (buildCounterMachineTypesScopedListWarning < 3) { |
| 2304 o.code = "foo"; | 2383 o.code = "foo"; |
| 2305 o.data = buildUnnamed1283(); | 2384 o.data = buildUnnamed498(); |
| 2306 o.message = "foo"; | 2385 o.message = "foo"; |
| 2307 } | 2386 } |
| 2308 buildCounterMachineTypesScopedListWarning--; | 2387 buildCounterMachineTypesScopedListWarning--; |
| 2309 return o; | 2388 return o; |
| 2310 } | 2389 } |
| 2311 | 2390 |
| 2312 checkMachineTypesScopedListWarning(api.MachineTypesScopedListWarning o) { | 2391 checkMachineTypesScopedListWarning(api.MachineTypesScopedListWarning o) { |
| 2313 buildCounterMachineTypesScopedListWarning++; | 2392 buildCounterMachineTypesScopedListWarning++; |
| 2314 if (buildCounterMachineTypesScopedListWarning < 3) { | 2393 if (buildCounterMachineTypesScopedListWarning < 3) { |
| 2315 unittest.expect(o.code, unittest.equals('foo')); | 2394 unittest.expect(o.code, unittest.equals('foo')); |
| 2316 checkUnnamed1283(o.data); | 2395 checkUnnamed498(o.data); |
| 2317 unittest.expect(o.message, unittest.equals('foo')); | 2396 unittest.expect(o.message, unittest.equals('foo')); |
| 2318 } | 2397 } |
| 2319 buildCounterMachineTypesScopedListWarning--; | 2398 buildCounterMachineTypesScopedListWarning--; |
| 2320 } | 2399 } |
| 2321 | 2400 |
| 2322 core.int buildCounterMachineTypesScopedList = 0; | 2401 core.int buildCounterMachineTypesScopedList = 0; |
| 2323 buildMachineTypesScopedList() { | 2402 buildMachineTypesScopedList() { |
| 2324 var o = new api.MachineTypesScopedList(); | 2403 var o = new api.MachineTypesScopedList(); |
| 2325 buildCounterMachineTypesScopedList++; | 2404 buildCounterMachineTypesScopedList++; |
| 2326 if (buildCounterMachineTypesScopedList < 3) { | 2405 if (buildCounterMachineTypesScopedList < 3) { |
| 2327 o.machineTypes = buildUnnamed1282(); | 2406 o.machineTypes = buildUnnamed497(); |
| 2328 o.warning = buildMachineTypesScopedListWarning(); | 2407 o.warning = buildMachineTypesScopedListWarning(); |
| 2329 } | 2408 } |
| 2330 buildCounterMachineTypesScopedList--; | 2409 buildCounterMachineTypesScopedList--; |
| 2331 return o; | 2410 return o; |
| 2332 } | 2411 } |
| 2333 | 2412 |
| 2334 checkMachineTypesScopedList(api.MachineTypesScopedList o) { | 2413 checkMachineTypesScopedList(api.MachineTypesScopedList o) { |
| 2335 buildCounterMachineTypesScopedList++; | 2414 buildCounterMachineTypesScopedList++; |
| 2336 if (buildCounterMachineTypesScopedList < 3) { | 2415 if (buildCounterMachineTypesScopedList < 3) { |
| 2337 checkUnnamed1282(o.machineTypes); | 2416 checkUnnamed497(o.machineTypes); |
| 2338 checkMachineTypesScopedListWarning(o.warning); | 2417 checkMachineTypesScopedListWarning(o.warning); |
| 2339 } | 2418 } |
| 2340 buildCounterMachineTypesScopedList--; | 2419 buildCounterMachineTypesScopedList--; |
| 2341 } | 2420 } |
| 2342 | 2421 |
| 2343 core.int buildCounterMetadataItems = 0; | 2422 core.int buildCounterMetadataItems = 0; |
| 2344 buildMetadataItems() { | 2423 buildMetadataItems() { |
| 2345 var o = new api.MetadataItems(); | 2424 var o = new api.MetadataItems(); |
| 2346 buildCounterMetadataItems++; | 2425 buildCounterMetadataItems++; |
| 2347 if (buildCounterMetadataItems < 3) { | 2426 if (buildCounterMetadataItems < 3) { |
| 2348 o.key = "foo"; | 2427 o.key = "foo"; |
| 2349 o.value = "foo"; | 2428 o.value = "foo"; |
| 2350 } | 2429 } |
| 2351 buildCounterMetadataItems--; | 2430 buildCounterMetadataItems--; |
| 2352 return o; | 2431 return o; |
| 2353 } | 2432 } |
| 2354 | 2433 |
| 2355 checkMetadataItems(api.MetadataItems o) { | 2434 checkMetadataItems(api.MetadataItems o) { |
| 2356 buildCounterMetadataItems++; | 2435 buildCounterMetadataItems++; |
| 2357 if (buildCounterMetadataItems < 3) { | 2436 if (buildCounterMetadataItems < 3) { |
| 2358 unittest.expect(o.key, unittest.equals('foo')); | 2437 unittest.expect(o.key, unittest.equals('foo')); |
| 2359 unittest.expect(o.value, unittest.equals('foo')); | 2438 unittest.expect(o.value, unittest.equals('foo')); |
| 2360 } | 2439 } |
| 2361 buildCounterMetadataItems--; | 2440 buildCounterMetadataItems--; |
| 2362 } | 2441 } |
| 2363 | 2442 |
| 2364 buildUnnamed1284() { | 2443 buildUnnamed499() { |
| 2365 var o = new core.List<api.MetadataItems>(); | 2444 var o = new core.List<api.MetadataItems>(); |
| 2366 o.add(buildMetadataItems()); | 2445 o.add(buildMetadataItems()); |
| 2367 o.add(buildMetadataItems()); | 2446 o.add(buildMetadataItems()); |
| 2368 return o; | 2447 return o; |
| 2369 } | 2448 } |
| 2370 | 2449 |
| 2371 checkUnnamed1284(core.List<api.MetadataItems> o) { | 2450 checkUnnamed499(core.List<api.MetadataItems> o) { |
| 2372 unittest.expect(o, unittest.hasLength(2)); | 2451 unittest.expect(o, unittest.hasLength(2)); |
| 2373 checkMetadataItems(o[0]); | 2452 checkMetadataItems(o[0]); |
| 2374 checkMetadataItems(o[1]); | 2453 checkMetadataItems(o[1]); |
| 2375 } | 2454 } |
| 2376 | 2455 |
| 2377 core.int buildCounterMetadata = 0; | 2456 core.int buildCounterMetadata = 0; |
| 2378 buildMetadata() { | 2457 buildMetadata() { |
| 2379 var o = new api.Metadata(); | 2458 var o = new api.Metadata(); |
| 2380 buildCounterMetadata++; | 2459 buildCounterMetadata++; |
| 2381 if (buildCounterMetadata < 3) { | 2460 if (buildCounterMetadata < 3) { |
| 2382 o.fingerprint = "foo"; | 2461 o.fingerprint = "foo"; |
| 2383 o.items = buildUnnamed1284(); | 2462 o.items = buildUnnamed499(); |
| 2384 o.kind = "foo"; | 2463 o.kind = "foo"; |
| 2385 } | 2464 } |
| 2386 buildCounterMetadata--; | 2465 buildCounterMetadata--; |
| 2387 return o; | 2466 return o; |
| 2388 } | 2467 } |
| 2389 | 2468 |
| 2390 checkMetadata(api.Metadata o) { | 2469 checkMetadata(api.Metadata o) { |
| 2391 buildCounterMetadata++; | 2470 buildCounterMetadata++; |
| 2392 if (buildCounterMetadata < 3) { | 2471 if (buildCounterMetadata < 3) { |
| 2393 unittest.expect(o.fingerprint, unittest.equals('foo')); | 2472 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 2394 checkUnnamed1284(o.items); | 2473 checkUnnamed499(o.items); |
| 2395 unittest.expect(o.kind, unittest.equals('foo')); | 2474 unittest.expect(o.kind, unittest.equals('foo')); |
| 2396 } | 2475 } |
| 2397 buildCounterMetadata--; | 2476 buildCounterMetadata--; |
| 2398 } | 2477 } |
| 2399 | 2478 |
| 2400 core.int buildCounterNetwork = 0; | 2479 core.int buildCounterNetwork = 0; |
| 2401 buildNetwork() { | 2480 buildNetwork() { |
| 2402 var o = new api.Network(); | 2481 var o = new api.Network(); |
| 2403 buildCounterNetwork++; | 2482 buildCounterNetwork++; |
| 2404 if (buildCounterNetwork < 3) { | 2483 if (buildCounterNetwork < 3) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2423 unittest.expect(o.description, unittest.equals('foo')); | 2502 unittest.expect(o.description, unittest.equals('foo')); |
| 2424 unittest.expect(o.gatewayIPv4, unittest.equals('foo')); | 2503 unittest.expect(o.gatewayIPv4, unittest.equals('foo')); |
| 2425 unittest.expect(o.id, unittest.equals('foo')); | 2504 unittest.expect(o.id, unittest.equals('foo')); |
| 2426 unittest.expect(o.kind, unittest.equals('foo')); | 2505 unittest.expect(o.kind, unittest.equals('foo')); |
| 2427 unittest.expect(o.name, unittest.equals('foo')); | 2506 unittest.expect(o.name, unittest.equals('foo')); |
| 2428 unittest.expect(o.selfLink, unittest.equals('foo')); | 2507 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2429 } | 2508 } |
| 2430 buildCounterNetwork--; | 2509 buildCounterNetwork--; |
| 2431 } | 2510 } |
| 2432 | 2511 |
| 2433 buildUnnamed1285() { | 2512 buildUnnamed500() { |
| 2434 var o = new core.List<api.AccessConfig>(); | 2513 var o = new core.List<api.AccessConfig>(); |
| 2435 o.add(buildAccessConfig()); | 2514 o.add(buildAccessConfig()); |
| 2436 o.add(buildAccessConfig()); | 2515 o.add(buildAccessConfig()); |
| 2437 return o; | 2516 return o; |
| 2438 } | 2517 } |
| 2439 | 2518 |
| 2440 checkUnnamed1285(core.List<api.AccessConfig> o) { | 2519 checkUnnamed500(core.List<api.AccessConfig> o) { |
| 2441 unittest.expect(o, unittest.hasLength(2)); | 2520 unittest.expect(o, unittest.hasLength(2)); |
| 2442 checkAccessConfig(o[0]); | 2521 checkAccessConfig(o[0]); |
| 2443 checkAccessConfig(o[1]); | 2522 checkAccessConfig(o[1]); |
| 2444 } | 2523 } |
| 2445 | 2524 |
| 2446 core.int buildCounterNetworkInterface = 0; | 2525 core.int buildCounterNetworkInterface = 0; |
| 2447 buildNetworkInterface() { | 2526 buildNetworkInterface() { |
| 2448 var o = new api.NetworkInterface(); | 2527 var o = new api.NetworkInterface(); |
| 2449 buildCounterNetworkInterface++; | 2528 buildCounterNetworkInterface++; |
| 2450 if (buildCounterNetworkInterface < 3) { | 2529 if (buildCounterNetworkInterface < 3) { |
| 2451 o.accessConfigs = buildUnnamed1285(); | 2530 o.accessConfigs = buildUnnamed500(); |
| 2452 o.name = "foo"; | 2531 o.name = "foo"; |
| 2453 o.network = "foo"; | 2532 o.network = "foo"; |
| 2454 o.networkIP = "foo"; | 2533 o.networkIP = "foo"; |
| 2455 } | 2534 } |
| 2456 buildCounterNetworkInterface--; | 2535 buildCounterNetworkInterface--; |
| 2457 return o; | 2536 return o; |
| 2458 } | 2537 } |
| 2459 | 2538 |
| 2460 checkNetworkInterface(api.NetworkInterface o) { | 2539 checkNetworkInterface(api.NetworkInterface o) { |
| 2461 buildCounterNetworkInterface++; | 2540 buildCounterNetworkInterface++; |
| 2462 if (buildCounterNetworkInterface < 3) { | 2541 if (buildCounterNetworkInterface < 3) { |
| 2463 checkUnnamed1285(o.accessConfigs); | 2542 checkUnnamed500(o.accessConfigs); |
| 2464 unittest.expect(o.name, unittest.equals('foo')); | 2543 unittest.expect(o.name, unittest.equals('foo')); |
| 2465 unittest.expect(o.network, unittest.equals('foo')); | 2544 unittest.expect(o.network, unittest.equals('foo')); |
| 2466 unittest.expect(o.networkIP, unittest.equals('foo')); | 2545 unittest.expect(o.networkIP, unittest.equals('foo')); |
| 2467 } | 2546 } |
| 2468 buildCounterNetworkInterface--; | 2547 buildCounterNetworkInterface--; |
| 2469 } | 2548 } |
| 2470 | 2549 |
| 2471 buildUnnamed1286() { | 2550 buildUnnamed501() { |
| 2472 var o = new core.List<api.Network>(); | 2551 var o = new core.List<api.Network>(); |
| 2473 o.add(buildNetwork()); | 2552 o.add(buildNetwork()); |
| 2474 o.add(buildNetwork()); | 2553 o.add(buildNetwork()); |
| 2475 return o; | 2554 return o; |
| 2476 } | 2555 } |
| 2477 | 2556 |
| 2478 checkUnnamed1286(core.List<api.Network> o) { | 2557 checkUnnamed501(core.List<api.Network> o) { |
| 2479 unittest.expect(o, unittest.hasLength(2)); | 2558 unittest.expect(o, unittest.hasLength(2)); |
| 2480 checkNetwork(o[0]); | 2559 checkNetwork(o[0]); |
| 2481 checkNetwork(o[1]); | 2560 checkNetwork(o[1]); |
| 2482 } | 2561 } |
| 2483 | 2562 |
| 2484 core.int buildCounterNetworkList = 0; | 2563 core.int buildCounterNetworkList = 0; |
| 2485 buildNetworkList() { | 2564 buildNetworkList() { |
| 2486 var o = new api.NetworkList(); | 2565 var o = new api.NetworkList(); |
| 2487 buildCounterNetworkList++; | 2566 buildCounterNetworkList++; |
| 2488 if (buildCounterNetworkList < 3) { | 2567 if (buildCounterNetworkList < 3) { |
| 2489 o.id = "foo"; | 2568 o.id = "foo"; |
| 2490 o.items = buildUnnamed1286(); | 2569 o.items = buildUnnamed501(); |
| 2491 o.kind = "foo"; | 2570 o.kind = "foo"; |
| 2492 o.nextPageToken = "foo"; | 2571 o.nextPageToken = "foo"; |
| 2493 o.selfLink = "foo"; | 2572 o.selfLink = "foo"; |
| 2494 } | 2573 } |
| 2495 buildCounterNetworkList--; | 2574 buildCounterNetworkList--; |
| 2496 return o; | 2575 return o; |
| 2497 } | 2576 } |
| 2498 | 2577 |
| 2499 checkNetworkList(api.NetworkList o) { | 2578 checkNetworkList(api.NetworkList o) { |
| 2500 buildCounterNetworkList++; | 2579 buildCounterNetworkList++; |
| 2501 if (buildCounterNetworkList < 3) { | 2580 if (buildCounterNetworkList < 3) { |
| 2502 unittest.expect(o.id, unittest.equals('foo')); | 2581 unittest.expect(o.id, unittest.equals('foo')); |
| 2503 checkUnnamed1286(o.items); | 2582 checkUnnamed501(o.items); |
| 2504 unittest.expect(o.kind, unittest.equals('foo')); | 2583 unittest.expect(o.kind, unittest.equals('foo')); |
| 2505 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2584 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2506 unittest.expect(o.selfLink, unittest.equals('foo')); | 2585 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2507 } | 2586 } |
| 2508 buildCounterNetworkList--; | 2587 buildCounterNetworkList--; |
| 2509 } | 2588 } |
| 2510 | 2589 |
| 2511 core.int buildCounterOperationErrorErrors = 0; | 2590 core.int buildCounterOperationErrorErrors = 0; |
| 2512 buildOperationErrorErrors() { | 2591 buildOperationErrorErrors() { |
| 2513 var o = new api.OperationErrorErrors(); | 2592 var o = new api.OperationErrorErrors(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2524 checkOperationErrorErrors(api.OperationErrorErrors o) { | 2603 checkOperationErrorErrors(api.OperationErrorErrors o) { |
| 2525 buildCounterOperationErrorErrors++; | 2604 buildCounterOperationErrorErrors++; |
| 2526 if (buildCounterOperationErrorErrors < 3) { | 2605 if (buildCounterOperationErrorErrors < 3) { |
| 2527 unittest.expect(o.code, unittest.equals('foo')); | 2606 unittest.expect(o.code, unittest.equals('foo')); |
| 2528 unittest.expect(o.location, unittest.equals('foo')); | 2607 unittest.expect(o.location, unittest.equals('foo')); |
| 2529 unittest.expect(o.message, unittest.equals('foo')); | 2608 unittest.expect(o.message, unittest.equals('foo')); |
| 2530 } | 2609 } |
| 2531 buildCounterOperationErrorErrors--; | 2610 buildCounterOperationErrorErrors--; |
| 2532 } | 2611 } |
| 2533 | 2612 |
| 2534 buildUnnamed1287() { | 2613 buildUnnamed502() { |
| 2535 var o = new core.List<api.OperationErrorErrors>(); | 2614 var o = new core.List<api.OperationErrorErrors>(); |
| 2536 o.add(buildOperationErrorErrors()); | 2615 o.add(buildOperationErrorErrors()); |
| 2537 o.add(buildOperationErrorErrors()); | 2616 o.add(buildOperationErrorErrors()); |
| 2538 return o; | 2617 return o; |
| 2539 } | 2618 } |
| 2540 | 2619 |
| 2541 checkUnnamed1287(core.List<api.OperationErrorErrors> o) { | 2620 checkUnnamed502(core.List<api.OperationErrorErrors> o) { |
| 2542 unittest.expect(o, unittest.hasLength(2)); | 2621 unittest.expect(o, unittest.hasLength(2)); |
| 2543 checkOperationErrorErrors(o[0]); | 2622 checkOperationErrorErrors(o[0]); |
| 2544 checkOperationErrorErrors(o[1]); | 2623 checkOperationErrorErrors(o[1]); |
| 2545 } | 2624 } |
| 2546 | 2625 |
| 2547 core.int buildCounterOperationError = 0; | 2626 core.int buildCounterOperationError = 0; |
| 2548 buildOperationError() { | 2627 buildOperationError() { |
| 2549 var o = new api.OperationError(); | 2628 var o = new api.OperationError(); |
| 2550 buildCounterOperationError++; | 2629 buildCounterOperationError++; |
| 2551 if (buildCounterOperationError < 3) { | 2630 if (buildCounterOperationError < 3) { |
| 2552 o.errors = buildUnnamed1287(); | 2631 o.errors = buildUnnamed502(); |
| 2553 } | 2632 } |
| 2554 buildCounterOperationError--; | 2633 buildCounterOperationError--; |
| 2555 return o; | 2634 return o; |
| 2556 } | 2635 } |
| 2557 | 2636 |
| 2558 checkOperationError(api.OperationError o) { | 2637 checkOperationError(api.OperationError o) { |
| 2559 buildCounterOperationError++; | 2638 buildCounterOperationError++; |
| 2560 if (buildCounterOperationError < 3) { | 2639 if (buildCounterOperationError < 3) { |
| 2561 checkUnnamed1287(o.errors); | 2640 checkUnnamed502(o.errors); |
| 2562 } | 2641 } |
| 2563 buildCounterOperationError--; | 2642 buildCounterOperationError--; |
| 2564 } | 2643 } |
| 2565 | 2644 |
| 2566 core.int buildCounterOperationWarningsData = 0; | 2645 core.int buildCounterOperationWarningsData = 0; |
| 2567 buildOperationWarningsData() { | 2646 buildOperationWarningsData() { |
| 2568 var o = new api.OperationWarningsData(); | 2647 var o = new api.OperationWarningsData(); |
| 2569 buildCounterOperationWarningsData++; | 2648 buildCounterOperationWarningsData++; |
| 2570 if (buildCounterOperationWarningsData < 3) { | 2649 if (buildCounterOperationWarningsData < 3) { |
| 2571 o.key = "foo"; | 2650 o.key = "foo"; |
| 2572 o.value = "foo"; | 2651 o.value = "foo"; |
| 2573 } | 2652 } |
| 2574 buildCounterOperationWarningsData--; | 2653 buildCounterOperationWarningsData--; |
| 2575 return o; | 2654 return o; |
| 2576 } | 2655 } |
| 2577 | 2656 |
| 2578 checkOperationWarningsData(api.OperationWarningsData o) { | 2657 checkOperationWarningsData(api.OperationWarningsData o) { |
| 2579 buildCounterOperationWarningsData++; | 2658 buildCounterOperationWarningsData++; |
| 2580 if (buildCounterOperationWarningsData < 3) { | 2659 if (buildCounterOperationWarningsData < 3) { |
| 2581 unittest.expect(o.key, unittest.equals('foo')); | 2660 unittest.expect(o.key, unittest.equals('foo')); |
| 2582 unittest.expect(o.value, unittest.equals('foo')); | 2661 unittest.expect(o.value, unittest.equals('foo')); |
| 2583 } | 2662 } |
| 2584 buildCounterOperationWarningsData--; | 2663 buildCounterOperationWarningsData--; |
| 2585 } | 2664 } |
| 2586 | 2665 |
| 2587 buildUnnamed1288() { | 2666 buildUnnamed503() { |
| 2588 var o = new core.List<api.OperationWarningsData>(); | 2667 var o = new core.List<api.OperationWarningsData>(); |
| 2589 o.add(buildOperationWarningsData()); | 2668 o.add(buildOperationWarningsData()); |
| 2590 o.add(buildOperationWarningsData()); | 2669 o.add(buildOperationWarningsData()); |
| 2591 return o; | 2670 return o; |
| 2592 } | 2671 } |
| 2593 | 2672 |
| 2594 checkUnnamed1288(core.List<api.OperationWarningsData> o) { | 2673 checkUnnamed503(core.List<api.OperationWarningsData> o) { |
| 2595 unittest.expect(o, unittest.hasLength(2)); | 2674 unittest.expect(o, unittest.hasLength(2)); |
| 2596 checkOperationWarningsData(o[0]); | 2675 checkOperationWarningsData(o[0]); |
| 2597 checkOperationWarningsData(o[1]); | 2676 checkOperationWarningsData(o[1]); |
| 2598 } | 2677 } |
| 2599 | 2678 |
| 2600 core.int buildCounterOperationWarnings = 0; | 2679 core.int buildCounterOperationWarnings = 0; |
| 2601 buildOperationWarnings() { | 2680 buildOperationWarnings() { |
| 2602 var o = new api.OperationWarnings(); | 2681 var o = new api.OperationWarnings(); |
| 2603 buildCounterOperationWarnings++; | 2682 buildCounterOperationWarnings++; |
| 2604 if (buildCounterOperationWarnings < 3) { | 2683 if (buildCounterOperationWarnings < 3) { |
| 2605 o.code = "foo"; | 2684 o.code = "foo"; |
| 2606 o.data = buildUnnamed1288(); | 2685 o.data = buildUnnamed503(); |
| 2607 o.message = "foo"; | 2686 o.message = "foo"; |
| 2608 } | 2687 } |
| 2609 buildCounterOperationWarnings--; | 2688 buildCounterOperationWarnings--; |
| 2610 return o; | 2689 return o; |
| 2611 } | 2690 } |
| 2612 | 2691 |
| 2613 checkOperationWarnings(api.OperationWarnings o) { | 2692 checkOperationWarnings(api.OperationWarnings o) { |
| 2614 buildCounterOperationWarnings++; | 2693 buildCounterOperationWarnings++; |
| 2615 if (buildCounterOperationWarnings < 3) { | 2694 if (buildCounterOperationWarnings < 3) { |
| 2616 unittest.expect(o.code, unittest.equals('foo')); | 2695 unittest.expect(o.code, unittest.equals('foo')); |
| 2617 checkUnnamed1288(o.data); | 2696 checkUnnamed503(o.data); |
| 2618 unittest.expect(o.message, unittest.equals('foo')); | 2697 unittest.expect(o.message, unittest.equals('foo')); |
| 2619 } | 2698 } |
| 2620 buildCounterOperationWarnings--; | 2699 buildCounterOperationWarnings--; |
| 2621 } | 2700 } |
| 2622 | 2701 |
| 2623 buildUnnamed1289() { | 2702 buildUnnamed504() { |
| 2624 var o = new core.List<api.OperationWarnings>(); | 2703 var o = new core.List<api.OperationWarnings>(); |
| 2625 o.add(buildOperationWarnings()); | 2704 o.add(buildOperationWarnings()); |
| 2626 o.add(buildOperationWarnings()); | 2705 o.add(buildOperationWarnings()); |
| 2627 return o; | 2706 return o; |
| 2628 } | 2707 } |
| 2629 | 2708 |
| 2630 checkUnnamed1289(core.List<api.OperationWarnings> o) { | 2709 checkUnnamed504(core.List<api.OperationWarnings> o) { |
| 2631 unittest.expect(o, unittest.hasLength(2)); | 2710 unittest.expect(o, unittest.hasLength(2)); |
| 2632 checkOperationWarnings(o[0]); | 2711 checkOperationWarnings(o[0]); |
| 2633 checkOperationWarnings(o[1]); | 2712 checkOperationWarnings(o[1]); |
| 2634 } | 2713 } |
| 2635 | 2714 |
| 2636 core.int buildCounterOperation = 0; | 2715 core.int buildCounterOperation = 0; |
| 2637 buildOperation() { | 2716 buildOperation() { |
| 2638 var o = new api.Operation(); | 2717 var o = new api.Operation(); |
| 2639 buildCounterOperation++; | 2718 buildCounterOperation++; |
| 2640 if (buildCounterOperation < 3) { | 2719 if (buildCounterOperation < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2651 o.operationType = "foo"; | 2730 o.operationType = "foo"; |
| 2652 o.progress = 42; | 2731 o.progress = 42; |
| 2653 o.region = "foo"; | 2732 o.region = "foo"; |
| 2654 o.selfLink = "foo"; | 2733 o.selfLink = "foo"; |
| 2655 o.startTime = "foo"; | 2734 o.startTime = "foo"; |
| 2656 o.status = "foo"; | 2735 o.status = "foo"; |
| 2657 o.statusMessage = "foo"; | 2736 o.statusMessage = "foo"; |
| 2658 o.targetId = "foo"; | 2737 o.targetId = "foo"; |
| 2659 o.targetLink = "foo"; | 2738 o.targetLink = "foo"; |
| 2660 o.user = "foo"; | 2739 o.user = "foo"; |
| 2661 o.warnings = buildUnnamed1289(); | 2740 o.warnings = buildUnnamed504(); |
| 2662 o.zone = "foo"; | 2741 o.zone = "foo"; |
| 2663 } | 2742 } |
| 2664 buildCounterOperation--; | 2743 buildCounterOperation--; |
| 2665 return o; | 2744 return o; |
| 2666 } | 2745 } |
| 2667 | 2746 |
| 2668 checkOperation(api.Operation o) { | 2747 checkOperation(api.Operation o) { |
| 2669 buildCounterOperation++; | 2748 buildCounterOperation++; |
| 2670 if (buildCounterOperation < 3) { | 2749 if (buildCounterOperation < 3) { |
| 2671 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 2750 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
| 2672 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 2751 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 2673 unittest.expect(o.endTime, unittest.equals('foo')); | 2752 unittest.expect(o.endTime, unittest.equals('foo')); |
| 2674 checkOperationError(o.error); | 2753 checkOperationError(o.error); |
| 2675 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); | 2754 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); |
| 2676 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); | 2755 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); |
| 2677 unittest.expect(o.id, unittest.equals('foo')); | 2756 unittest.expect(o.id, unittest.equals('foo')); |
| 2678 unittest.expect(o.insertTime, unittest.equals('foo')); | 2757 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 2679 unittest.expect(o.kind, unittest.equals('foo')); | 2758 unittest.expect(o.kind, unittest.equals('foo')); |
| 2680 unittest.expect(o.name, unittest.equals('foo')); | 2759 unittest.expect(o.name, unittest.equals('foo')); |
| 2681 unittest.expect(o.operationType, unittest.equals('foo')); | 2760 unittest.expect(o.operationType, unittest.equals('foo')); |
| 2682 unittest.expect(o.progress, unittest.equals(42)); | 2761 unittest.expect(o.progress, unittest.equals(42)); |
| 2683 unittest.expect(o.region, unittest.equals('foo')); | 2762 unittest.expect(o.region, unittest.equals('foo')); |
| 2684 unittest.expect(o.selfLink, unittest.equals('foo')); | 2763 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2685 unittest.expect(o.startTime, unittest.equals('foo')); | 2764 unittest.expect(o.startTime, unittest.equals('foo')); |
| 2686 unittest.expect(o.status, unittest.equals('foo')); | 2765 unittest.expect(o.status, unittest.equals('foo')); |
| 2687 unittest.expect(o.statusMessage, unittest.equals('foo')); | 2766 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 2688 unittest.expect(o.targetId, unittest.equals('foo')); | 2767 unittest.expect(o.targetId, unittest.equals('foo')); |
| 2689 unittest.expect(o.targetLink, unittest.equals('foo')); | 2768 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 2690 unittest.expect(o.user, unittest.equals('foo')); | 2769 unittest.expect(o.user, unittest.equals('foo')); |
| 2691 checkUnnamed1289(o.warnings); | 2770 checkUnnamed504(o.warnings); |
| 2692 unittest.expect(o.zone, unittest.equals('foo')); | 2771 unittest.expect(o.zone, unittest.equals('foo')); |
| 2693 } | 2772 } |
| 2694 buildCounterOperation--; | 2773 buildCounterOperation--; |
| 2695 } | 2774 } |
| 2696 | 2775 |
| 2697 buildUnnamed1290() { | 2776 buildUnnamed505() { |
| 2698 var o = new core.Map<core.String, api.OperationsScopedList>(); | 2777 var o = new core.Map<core.String, api.OperationsScopedList>(); |
| 2699 o["x"] = buildOperationsScopedList(); | 2778 o["x"] = buildOperationsScopedList(); |
| 2700 o["y"] = buildOperationsScopedList(); | 2779 o["y"] = buildOperationsScopedList(); |
| 2701 return o; | 2780 return o; |
| 2702 } | 2781 } |
| 2703 | 2782 |
| 2704 checkUnnamed1290(core.Map<core.String, api.OperationsScopedList> o) { | 2783 checkUnnamed505(core.Map<core.String, api.OperationsScopedList> o) { |
| 2705 unittest.expect(o, unittest.hasLength(2)); | 2784 unittest.expect(o, unittest.hasLength(2)); |
| 2706 checkOperationsScopedList(o["x"]); | 2785 checkOperationsScopedList(o["x"]); |
| 2707 checkOperationsScopedList(o["y"]); | 2786 checkOperationsScopedList(o["y"]); |
| 2708 } | 2787 } |
| 2709 | 2788 |
| 2710 core.int buildCounterOperationAggregatedList = 0; | 2789 core.int buildCounterOperationAggregatedList = 0; |
| 2711 buildOperationAggregatedList() { | 2790 buildOperationAggregatedList() { |
| 2712 var o = new api.OperationAggregatedList(); | 2791 var o = new api.OperationAggregatedList(); |
| 2713 buildCounterOperationAggregatedList++; | 2792 buildCounterOperationAggregatedList++; |
| 2714 if (buildCounterOperationAggregatedList < 3) { | 2793 if (buildCounterOperationAggregatedList < 3) { |
| 2715 o.id = "foo"; | 2794 o.id = "foo"; |
| 2716 o.items = buildUnnamed1290(); | 2795 o.items = buildUnnamed505(); |
| 2717 o.kind = "foo"; | 2796 o.kind = "foo"; |
| 2718 o.nextPageToken = "foo"; | 2797 o.nextPageToken = "foo"; |
| 2719 o.selfLink = "foo"; | 2798 o.selfLink = "foo"; |
| 2720 } | 2799 } |
| 2721 buildCounterOperationAggregatedList--; | 2800 buildCounterOperationAggregatedList--; |
| 2722 return o; | 2801 return o; |
| 2723 } | 2802 } |
| 2724 | 2803 |
| 2725 checkOperationAggregatedList(api.OperationAggregatedList o) { | 2804 checkOperationAggregatedList(api.OperationAggregatedList o) { |
| 2726 buildCounterOperationAggregatedList++; | 2805 buildCounterOperationAggregatedList++; |
| 2727 if (buildCounterOperationAggregatedList < 3) { | 2806 if (buildCounterOperationAggregatedList < 3) { |
| 2728 unittest.expect(o.id, unittest.equals('foo')); | 2807 unittest.expect(o.id, unittest.equals('foo')); |
| 2729 checkUnnamed1290(o.items); | 2808 checkUnnamed505(o.items); |
| 2730 unittest.expect(o.kind, unittest.equals('foo')); | 2809 unittest.expect(o.kind, unittest.equals('foo')); |
| 2731 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2810 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2732 unittest.expect(o.selfLink, unittest.equals('foo')); | 2811 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2733 } | 2812 } |
| 2734 buildCounterOperationAggregatedList--; | 2813 buildCounterOperationAggregatedList--; |
| 2735 } | 2814 } |
| 2736 | 2815 |
| 2737 buildUnnamed1291() { | 2816 buildUnnamed506() { |
| 2738 var o = new core.List<api.Operation>(); | 2817 var o = new core.List<api.Operation>(); |
| 2739 o.add(buildOperation()); | 2818 o.add(buildOperation()); |
| 2740 o.add(buildOperation()); | 2819 o.add(buildOperation()); |
| 2741 return o; | 2820 return o; |
| 2742 } | 2821 } |
| 2743 | 2822 |
| 2744 checkUnnamed1291(core.List<api.Operation> o) { | 2823 checkUnnamed506(core.List<api.Operation> o) { |
| 2745 unittest.expect(o, unittest.hasLength(2)); | 2824 unittest.expect(o, unittest.hasLength(2)); |
| 2746 checkOperation(o[0]); | 2825 checkOperation(o[0]); |
| 2747 checkOperation(o[1]); | 2826 checkOperation(o[1]); |
| 2748 } | 2827 } |
| 2749 | 2828 |
| 2750 core.int buildCounterOperationList = 0; | 2829 core.int buildCounterOperationList = 0; |
| 2751 buildOperationList() { | 2830 buildOperationList() { |
| 2752 var o = new api.OperationList(); | 2831 var o = new api.OperationList(); |
| 2753 buildCounterOperationList++; | 2832 buildCounterOperationList++; |
| 2754 if (buildCounterOperationList < 3) { | 2833 if (buildCounterOperationList < 3) { |
| 2755 o.id = "foo"; | 2834 o.id = "foo"; |
| 2756 o.items = buildUnnamed1291(); | 2835 o.items = buildUnnamed506(); |
| 2757 o.kind = "foo"; | 2836 o.kind = "foo"; |
| 2758 o.nextPageToken = "foo"; | 2837 o.nextPageToken = "foo"; |
| 2759 o.selfLink = "foo"; | 2838 o.selfLink = "foo"; |
| 2760 } | 2839 } |
| 2761 buildCounterOperationList--; | 2840 buildCounterOperationList--; |
| 2762 return o; | 2841 return o; |
| 2763 } | 2842 } |
| 2764 | 2843 |
| 2765 checkOperationList(api.OperationList o) { | 2844 checkOperationList(api.OperationList o) { |
| 2766 buildCounterOperationList++; | 2845 buildCounterOperationList++; |
| 2767 if (buildCounterOperationList < 3) { | 2846 if (buildCounterOperationList < 3) { |
| 2768 unittest.expect(o.id, unittest.equals('foo')); | 2847 unittest.expect(o.id, unittest.equals('foo')); |
| 2769 checkUnnamed1291(o.items); | 2848 checkUnnamed506(o.items); |
| 2770 unittest.expect(o.kind, unittest.equals('foo')); | 2849 unittest.expect(o.kind, unittest.equals('foo')); |
| 2771 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2850 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2772 unittest.expect(o.selfLink, unittest.equals('foo')); | 2851 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2773 } | 2852 } |
| 2774 buildCounterOperationList--; | 2853 buildCounterOperationList--; |
| 2775 } | 2854 } |
| 2776 | 2855 |
| 2777 buildUnnamed1292() { | 2856 buildUnnamed507() { |
| 2778 var o = new core.List<api.Operation>(); | 2857 var o = new core.List<api.Operation>(); |
| 2779 o.add(buildOperation()); | 2858 o.add(buildOperation()); |
| 2780 o.add(buildOperation()); | 2859 o.add(buildOperation()); |
| 2781 return o; | 2860 return o; |
| 2782 } | 2861 } |
| 2783 | 2862 |
| 2784 checkUnnamed1292(core.List<api.Operation> o) { | 2863 checkUnnamed507(core.List<api.Operation> o) { |
| 2785 unittest.expect(o, unittest.hasLength(2)); | 2864 unittest.expect(o, unittest.hasLength(2)); |
| 2786 checkOperation(o[0]); | 2865 checkOperation(o[0]); |
| 2787 checkOperation(o[1]); | 2866 checkOperation(o[1]); |
| 2788 } | 2867 } |
| 2789 | 2868 |
| 2790 core.int buildCounterOperationsScopedListWarningData = 0; | 2869 core.int buildCounterOperationsScopedListWarningData = 0; |
| 2791 buildOperationsScopedListWarningData() { | 2870 buildOperationsScopedListWarningData() { |
| 2792 var o = new api.OperationsScopedListWarningData(); | 2871 var o = new api.OperationsScopedListWarningData(); |
| 2793 buildCounterOperationsScopedListWarningData++; | 2872 buildCounterOperationsScopedListWarningData++; |
| 2794 if (buildCounterOperationsScopedListWarningData < 3) { | 2873 if (buildCounterOperationsScopedListWarningData < 3) { |
| 2795 o.key = "foo"; | 2874 o.key = "foo"; |
| 2796 o.value = "foo"; | 2875 o.value = "foo"; |
| 2797 } | 2876 } |
| 2798 buildCounterOperationsScopedListWarningData--; | 2877 buildCounterOperationsScopedListWarningData--; |
| 2799 return o; | 2878 return o; |
| 2800 } | 2879 } |
| 2801 | 2880 |
| 2802 checkOperationsScopedListWarningData(api.OperationsScopedListWarningData o) { | 2881 checkOperationsScopedListWarningData(api.OperationsScopedListWarningData o) { |
| 2803 buildCounterOperationsScopedListWarningData++; | 2882 buildCounterOperationsScopedListWarningData++; |
| 2804 if (buildCounterOperationsScopedListWarningData < 3) { | 2883 if (buildCounterOperationsScopedListWarningData < 3) { |
| 2805 unittest.expect(o.key, unittest.equals('foo')); | 2884 unittest.expect(o.key, unittest.equals('foo')); |
| 2806 unittest.expect(o.value, unittest.equals('foo')); | 2885 unittest.expect(o.value, unittest.equals('foo')); |
| 2807 } | 2886 } |
| 2808 buildCounterOperationsScopedListWarningData--; | 2887 buildCounterOperationsScopedListWarningData--; |
| 2809 } | 2888 } |
| 2810 | 2889 |
| 2811 buildUnnamed1293() { | 2890 buildUnnamed508() { |
| 2812 var o = new core.List<api.OperationsScopedListWarningData>(); | 2891 var o = new core.List<api.OperationsScopedListWarningData>(); |
| 2813 o.add(buildOperationsScopedListWarningData()); | 2892 o.add(buildOperationsScopedListWarningData()); |
| 2814 o.add(buildOperationsScopedListWarningData()); | 2893 o.add(buildOperationsScopedListWarningData()); |
| 2815 return o; | 2894 return o; |
| 2816 } | 2895 } |
| 2817 | 2896 |
| 2818 checkUnnamed1293(core.List<api.OperationsScopedListWarningData> o) { | 2897 checkUnnamed508(core.List<api.OperationsScopedListWarningData> o) { |
| 2819 unittest.expect(o, unittest.hasLength(2)); | 2898 unittest.expect(o, unittest.hasLength(2)); |
| 2820 checkOperationsScopedListWarningData(o[0]); | 2899 checkOperationsScopedListWarningData(o[0]); |
| 2821 checkOperationsScopedListWarningData(o[1]); | 2900 checkOperationsScopedListWarningData(o[1]); |
| 2822 } | 2901 } |
| 2823 | 2902 |
| 2824 core.int buildCounterOperationsScopedListWarning = 0; | 2903 core.int buildCounterOperationsScopedListWarning = 0; |
| 2825 buildOperationsScopedListWarning() { | 2904 buildOperationsScopedListWarning() { |
| 2826 var o = new api.OperationsScopedListWarning(); | 2905 var o = new api.OperationsScopedListWarning(); |
| 2827 buildCounterOperationsScopedListWarning++; | 2906 buildCounterOperationsScopedListWarning++; |
| 2828 if (buildCounterOperationsScopedListWarning < 3) { | 2907 if (buildCounterOperationsScopedListWarning < 3) { |
| 2829 o.code = "foo"; | 2908 o.code = "foo"; |
| 2830 o.data = buildUnnamed1293(); | 2909 o.data = buildUnnamed508(); |
| 2831 o.message = "foo"; | 2910 o.message = "foo"; |
| 2832 } | 2911 } |
| 2833 buildCounterOperationsScopedListWarning--; | 2912 buildCounterOperationsScopedListWarning--; |
| 2834 return o; | 2913 return o; |
| 2835 } | 2914 } |
| 2836 | 2915 |
| 2837 checkOperationsScopedListWarning(api.OperationsScopedListWarning o) { | 2916 checkOperationsScopedListWarning(api.OperationsScopedListWarning o) { |
| 2838 buildCounterOperationsScopedListWarning++; | 2917 buildCounterOperationsScopedListWarning++; |
| 2839 if (buildCounterOperationsScopedListWarning < 3) { | 2918 if (buildCounterOperationsScopedListWarning < 3) { |
| 2840 unittest.expect(o.code, unittest.equals('foo')); | 2919 unittest.expect(o.code, unittest.equals('foo')); |
| 2841 checkUnnamed1293(o.data); | 2920 checkUnnamed508(o.data); |
| 2842 unittest.expect(o.message, unittest.equals('foo')); | 2921 unittest.expect(o.message, unittest.equals('foo')); |
| 2843 } | 2922 } |
| 2844 buildCounterOperationsScopedListWarning--; | 2923 buildCounterOperationsScopedListWarning--; |
| 2845 } | 2924 } |
| 2846 | 2925 |
| 2847 core.int buildCounterOperationsScopedList = 0; | 2926 core.int buildCounterOperationsScopedList = 0; |
| 2848 buildOperationsScopedList() { | 2927 buildOperationsScopedList() { |
| 2849 var o = new api.OperationsScopedList(); | 2928 var o = new api.OperationsScopedList(); |
| 2850 buildCounterOperationsScopedList++; | 2929 buildCounterOperationsScopedList++; |
| 2851 if (buildCounterOperationsScopedList < 3) { | 2930 if (buildCounterOperationsScopedList < 3) { |
| 2852 o.operations = buildUnnamed1292(); | 2931 o.operations = buildUnnamed507(); |
| 2853 o.warning = buildOperationsScopedListWarning(); | 2932 o.warning = buildOperationsScopedListWarning(); |
| 2854 } | 2933 } |
| 2855 buildCounterOperationsScopedList--; | 2934 buildCounterOperationsScopedList--; |
| 2856 return o; | 2935 return o; |
| 2857 } | 2936 } |
| 2858 | 2937 |
| 2859 checkOperationsScopedList(api.OperationsScopedList o) { | 2938 checkOperationsScopedList(api.OperationsScopedList o) { |
| 2860 buildCounterOperationsScopedList++; | 2939 buildCounterOperationsScopedList++; |
| 2861 if (buildCounterOperationsScopedList < 3) { | 2940 if (buildCounterOperationsScopedList < 3) { |
| 2862 checkUnnamed1292(o.operations); | 2941 checkUnnamed507(o.operations); |
| 2863 checkOperationsScopedListWarning(o.warning); | 2942 checkOperationsScopedListWarning(o.warning); |
| 2864 } | 2943 } |
| 2865 buildCounterOperationsScopedList--; | 2944 buildCounterOperationsScopedList--; |
| 2866 } | 2945 } |
| 2867 | 2946 |
| 2868 buildUnnamed1294() { | 2947 buildUnnamed509() { |
| 2869 var o = new core.List<api.PathRule>(); | 2948 var o = new core.List<api.PathRule>(); |
| 2870 o.add(buildPathRule()); | 2949 o.add(buildPathRule()); |
| 2871 o.add(buildPathRule()); | 2950 o.add(buildPathRule()); |
| 2872 return o; | 2951 return o; |
| 2873 } | 2952 } |
| 2874 | 2953 |
| 2875 checkUnnamed1294(core.List<api.PathRule> o) { | 2954 checkUnnamed509(core.List<api.PathRule> o) { |
| 2876 unittest.expect(o, unittest.hasLength(2)); | 2955 unittest.expect(o, unittest.hasLength(2)); |
| 2877 checkPathRule(o[0]); | 2956 checkPathRule(o[0]); |
| 2878 checkPathRule(o[1]); | 2957 checkPathRule(o[1]); |
| 2879 } | 2958 } |
| 2880 | 2959 |
| 2881 core.int buildCounterPathMatcher = 0; | 2960 core.int buildCounterPathMatcher = 0; |
| 2882 buildPathMatcher() { | 2961 buildPathMatcher() { |
| 2883 var o = new api.PathMatcher(); | 2962 var o = new api.PathMatcher(); |
| 2884 buildCounterPathMatcher++; | 2963 buildCounterPathMatcher++; |
| 2885 if (buildCounterPathMatcher < 3) { | 2964 if (buildCounterPathMatcher < 3) { |
| 2886 o.defaultService = "foo"; | 2965 o.defaultService = "foo"; |
| 2887 o.description = "foo"; | 2966 o.description = "foo"; |
| 2888 o.name = "foo"; | 2967 o.name = "foo"; |
| 2889 o.pathRules = buildUnnamed1294(); | 2968 o.pathRules = buildUnnamed509(); |
| 2890 } | 2969 } |
| 2891 buildCounterPathMatcher--; | 2970 buildCounterPathMatcher--; |
| 2892 return o; | 2971 return o; |
| 2893 } | 2972 } |
| 2894 | 2973 |
| 2895 checkPathMatcher(api.PathMatcher o) { | 2974 checkPathMatcher(api.PathMatcher o) { |
| 2896 buildCounterPathMatcher++; | 2975 buildCounterPathMatcher++; |
| 2897 if (buildCounterPathMatcher < 3) { | 2976 if (buildCounterPathMatcher < 3) { |
| 2898 unittest.expect(o.defaultService, unittest.equals('foo')); | 2977 unittest.expect(o.defaultService, unittest.equals('foo')); |
| 2899 unittest.expect(o.description, unittest.equals('foo')); | 2978 unittest.expect(o.description, unittest.equals('foo')); |
| 2900 unittest.expect(o.name, unittest.equals('foo')); | 2979 unittest.expect(o.name, unittest.equals('foo')); |
| 2901 checkUnnamed1294(o.pathRules); | 2980 checkUnnamed509(o.pathRules); |
| 2902 } | 2981 } |
| 2903 buildCounterPathMatcher--; | 2982 buildCounterPathMatcher--; |
| 2904 } | 2983 } |
| 2905 | 2984 |
| 2906 buildUnnamed1295() { | 2985 buildUnnamed510() { |
| 2907 var o = new core.List<core.String>(); | 2986 var o = new core.List<core.String>(); |
| 2908 o.add("foo"); | 2987 o.add("foo"); |
| 2909 o.add("foo"); | 2988 o.add("foo"); |
| 2910 return o; | 2989 return o; |
| 2911 } | 2990 } |
| 2912 | 2991 |
| 2913 checkUnnamed1295(core.List<core.String> o) { | 2992 checkUnnamed510(core.List<core.String> o) { |
| 2914 unittest.expect(o, unittest.hasLength(2)); | 2993 unittest.expect(o, unittest.hasLength(2)); |
| 2915 unittest.expect(o[0], unittest.equals('foo')); | 2994 unittest.expect(o[0], unittest.equals('foo')); |
| 2916 unittest.expect(o[1], unittest.equals('foo')); | 2995 unittest.expect(o[1], unittest.equals('foo')); |
| 2917 } | 2996 } |
| 2918 | 2997 |
| 2919 core.int buildCounterPathRule = 0; | 2998 core.int buildCounterPathRule = 0; |
| 2920 buildPathRule() { | 2999 buildPathRule() { |
| 2921 var o = new api.PathRule(); | 3000 var o = new api.PathRule(); |
| 2922 buildCounterPathRule++; | 3001 buildCounterPathRule++; |
| 2923 if (buildCounterPathRule < 3) { | 3002 if (buildCounterPathRule < 3) { |
| 2924 o.paths = buildUnnamed1295(); | 3003 o.paths = buildUnnamed510(); |
| 2925 o.service = "foo"; | 3004 o.service = "foo"; |
| 2926 } | 3005 } |
| 2927 buildCounterPathRule--; | 3006 buildCounterPathRule--; |
| 2928 return o; | 3007 return o; |
| 2929 } | 3008 } |
| 2930 | 3009 |
| 2931 checkPathRule(api.PathRule o) { | 3010 checkPathRule(api.PathRule o) { |
| 2932 buildCounterPathRule++; | 3011 buildCounterPathRule++; |
| 2933 if (buildCounterPathRule < 3) { | 3012 if (buildCounterPathRule < 3) { |
| 2934 checkUnnamed1295(o.paths); | 3013 checkUnnamed510(o.paths); |
| 2935 unittest.expect(o.service, unittest.equals('foo')); | 3014 unittest.expect(o.service, unittest.equals('foo')); |
| 2936 } | 3015 } |
| 2937 buildCounterPathRule--; | 3016 buildCounterPathRule--; |
| 2938 } | 3017 } |
| 2939 | 3018 |
| 2940 buildUnnamed1296() { | 3019 buildUnnamed511() { |
| 2941 var o = new core.List<api.Quota>(); | 3020 var o = new core.List<api.Quota>(); |
| 2942 o.add(buildQuota()); | 3021 o.add(buildQuota()); |
| 2943 o.add(buildQuota()); | 3022 o.add(buildQuota()); |
| 2944 return o; | 3023 return o; |
| 2945 } | 3024 } |
| 2946 | 3025 |
| 2947 checkUnnamed1296(core.List<api.Quota> o) { | 3026 checkUnnamed511(core.List<api.Quota> o) { |
| 2948 unittest.expect(o, unittest.hasLength(2)); | 3027 unittest.expect(o, unittest.hasLength(2)); |
| 2949 checkQuota(o[0]); | 3028 checkQuota(o[0]); |
| 2950 checkQuota(o[1]); | 3029 checkQuota(o[1]); |
| 2951 } | 3030 } |
| 2952 | 3031 |
| 2953 core.int buildCounterProject = 0; | 3032 core.int buildCounterProject = 0; |
| 2954 buildProject() { | 3033 buildProject() { |
| 2955 var o = new api.Project(); | 3034 var o = new api.Project(); |
| 2956 buildCounterProject++; | 3035 buildCounterProject++; |
| 2957 if (buildCounterProject < 3) { | 3036 if (buildCounterProject < 3) { |
| 2958 o.commonInstanceMetadata = buildMetadata(); | 3037 o.commonInstanceMetadata = buildMetadata(); |
| 2959 o.creationTimestamp = "foo"; | 3038 o.creationTimestamp = "foo"; |
| 2960 o.description = "foo"; | 3039 o.description = "foo"; |
| 2961 o.id = "foo"; | 3040 o.id = "foo"; |
| 2962 o.kind = "foo"; | 3041 o.kind = "foo"; |
| 2963 o.name = "foo"; | 3042 o.name = "foo"; |
| 2964 o.quotas = buildUnnamed1296(); | 3043 o.quotas = buildUnnamed511(); |
| 2965 o.selfLink = "foo"; | 3044 o.selfLink = "foo"; |
| 2966 o.usageExportLocation = buildUsageExportLocation(); | 3045 o.usageExportLocation = buildUsageExportLocation(); |
| 2967 } | 3046 } |
| 2968 buildCounterProject--; | 3047 buildCounterProject--; |
| 2969 return o; | 3048 return o; |
| 2970 } | 3049 } |
| 2971 | 3050 |
| 2972 checkProject(api.Project o) { | 3051 checkProject(api.Project o) { |
| 2973 buildCounterProject++; | 3052 buildCounterProject++; |
| 2974 if (buildCounterProject < 3) { | 3053 if (buildCounterProject < 3) { |
| 2975 checkMetadata(o.commonInstanceMetadata); | 3054 checkMetadata(o.commonInstanceMetadata); |
| 2976 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 3055 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 2977 unittest.expect(o.description, unittest.equals('foo')); | 3056 unittest.expect(o.description, unittest.equals('foo')); |
| 2978 unittest.expect(o.id, unittest.equals('foo')); | 3057 unittest.expect(o.id, unittest.equals('foo')); |
| 2979 unittest.expect(o.kind, unittest.equals('foo')); | 3058 unittest.expect(o.kind, unittest.equals('foo')); |
| 2980 unittest.expect(o.name, unittest.equals('foo')); | 3059 unittest.expect(o.name, unittest.equals('foo')); |
| 2981 checkUnnamed1296(o.quotas); | 3060 checkUnnamed511(o.quotas); |
| 2982 unittest.expect(o.selfLink, unittest.equals('foo')); | 3061 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2983 checkUsageExportLocation(o.usageExportLocation); | 3062 checkUsageExportLocation(o.usageExportLocation); |
| 2984 } | 3063 } |
| 2985 buildCounterProject--; | 3064 buildCounterProject--; |
| 2986 } | 3065 } |
| 2987 | 3066 |
| 2988 core.int buildCounterQuota = 0; | 3067 core.int buildCounterQuota = 0; |
| 2989 buildQuota() { | 3068 buildQuota() { |
| 2990 var o = new api.Quota(); | 3069 var o = new api.Quota(); |
| 2991 buildCounterQuota++; | 3070 buildCounterQuota++; |
| 2992 if (buildCounterQuota < 3) { | 3071 if (buildCounterQuota < 3) { |
| 2993 o.limit = 42.0; | 3072 o.limit = 42.0; |
| 2994 o.metric = "foo"; | 3073 o.metric = "foo"; |
| 2995 o.usage = 42.0; | 3074 o.usage = 42.0; |
| 2996 } | 3075 } |
| 2997 buildCounterQuota--; | 3076 buildCounterQuota--; |
| 2998 return o; | 3077 return o; |
| 2999 } | 3078 } |
| 3000 | 3079 |
| 3001 checkQuota(api.Quota o) { | 3080 checkQuota(api.Quota o) { |
| 3002 buildCounterQuota++; | 3081 buildCounterQuota++; |
| 3003 if (buildCounterQuota < 3) { | 3082 if (buildCounterQuota < 3) { |
| 3004 unittest.expect(o.limit, unittest.equals(42.0)); | 3083 unittest.expect(o.limit, unittest.equals(42.0)); |
| 3005 unittest.expect(o.metric, unittest.equals('foo')); | 3084 unittest.expect(o.metric, unittest.equals('foo')); |
| 3006 unittest.expect(o.usage, unittest.equals(42.0)); | 3085 unittest.expect(o.usage, unittest.equals(42.0)); |
| 3007 } | 3086 } |
| 3008 buildCounterQuota--; | 3087 buildCounterQuota--; |
| 3009 } | 3088 } |
| 3010 | 3089 |
| 3011 buildUnnamed1297() { | 3090 buildUnnamed512() { |
| 3012 var o = new core.List<api.Quota>(); | 3091 var o = new core.List<api.Quota>(); |
| 3013 o.add(buildQuota()); | 3092 o.add(buildQuota()); |
| 3014 o.add(buildQuota()); | 3093 o.add(buildQuota()); |
| 3015 return o; | 3094 return o; |
| 3016 } | 3095 } |
| 3017 | 3096 |
| 3018 checkUnnamed1297(core.List<api.Quota> o) { | 3097 checkUnnamed512(core.List<api.Quota> o) { |
| 3019 unittest.expect(o, unittest.hasLength(2)); | 3098 unittest.expect(o, unittest.hasLength(2)); |
| 3020 checkQuota(o[0]); | 3099 checkQuota(o[0]); |
| 3021 checkQuota(o[1]); | 3100 checkQuota(o[1]); |
| 3022 } | 3101 } |
| 3023 | 3102 |
| 3024 buildUnnamed1298() { | 3103 buildUnnamed513() { |
| 3025 var o = new core.List<core.String>(); | 3104 var o = new core.List<core.String>(); |
| 3026 o.add("foo"); | 3105 o.add("foo"); |
| 3027 o.add("foo"); | 3106 o.add("foo"); |
| 3028 return o; | 3107 return o; |
| 3029 } | 3108 } |
| 3030 | 3109 |
| 3031 checkUnnamed1298(core.List<core.String> o) { | 3110 checkUnnamed513(core.List<core.String> o) { |
| 3032 unittest.expect(o, unittest.hasLength(2)); | 3111 unittest.expect(o, unittest.hasLength(2)); |
| 3033 unittest.expect(o[0], unittest.equals('foo')); | 3112 unittest.expect(o[0], unittest.equals('foo')); |
| 3034 unittest.expect(o[1], unittest.equals('foo')); | 3113 unittest.expect(o[1], unittest.equals('foo')); |
| 3035 } | 3114 } |
| 3036 | 3115 |
| 3037 core.int buildCounterRegion = 0; | 3116 core.int buildCounterRegion = 0; |
| 3038 buildRegion() { | 3117 buildRegion() { |
| 3039 var o = new api.Region(); | 3118 var o = new api.Region(); |
| 3040 buildCounterRegion++; | 3119 buildCounterRegion++; |
| 3041 if (buildCounterRegion < 3) { | 3120 if (buildCounterRegion < 3) { |
| 3042 o.creationTimestamp = "foo"; | 3121 o.creationTimestamp = "foo"; |
| 3043 o.deprecated = buildDeprecationStatus(); | 3122 o.deprecated = buildDeprecationStatus(); |
| 3044 o.description = "foo"; | 3123 o.description = "foo"; |
| 3045 o.id = "foo"; | 3124 o.id = "foo"; |
| 3046 o.kind = "foo"; | 3125 o.kind = "foo"; |
| 3047 o.name = "foo"; | 3126 o.name = "foo"; |
| 3048 o.quotas = buildUnnamed1297(); | 3127 o.quotas = buildUnnamed512(); |
| 3049 o.selfLink = "foo"; | 3128 o.selfLink = "foo"; |
| 3050 o.status = "foo"; | 3129 o.status = "foo"; |
| 3051 o.zones = buildUnnamed1298(); | 3130 o.zones = buildUnnamed513(); |
| 3052 } | 3131 } |
| 3053 buildCounterRegion--; | 3132 buildCounterRegion--; |
| 3054 return o; | 3133 return o; |
| 3055 } | 3134 } |
| 3056 | 3135 |
| 3057 checkRegion(api.Region o) { | 3136 checkRegion(api.Region o) { |
| 3058 buildCounterRegion++; | 3137 buildCounterRegion++; |
| 3059 if (buildCounterRegion < 3) { | 3138 if (buildCounterRegion < 3) { |
| 3060 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 3139 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 3061 checkDeprecationStatus(o.deprecated); | 3140 checkDeprecationStatus(o.deprecated); |
| 3062 unittest.expect(o.description, unittest.equals('foo')); | 3141 unittest.expect(o.description, unittest.equals('foo')); |
| 3063 unittest.expect(o.id, unittest.equals('foo')); | 3142 unittest.expect(o.id, unittest.equals('foo')); |
| 3064 unittest.expect(o.kind, unittest.equals('foo')); | 3143 unittest.expect(o.kind, unittest.equals('foo')); |
| 3065 unittest.expect(o.name, unittest.equals('foo')); | 3144 unittest.expect(o.name, unittest.equals('foo')); |
| 3066 checkUnnamed1297(o.quotas); | 3145 checkUnnamed512(o.quotas); |
| 3067 unittest.expect(o.selfLink, unittest.equals('foo')); | 3146 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3068 unittest.expect(o.status, unittest.equals('foo')); | 3147 unittest.expect(o.status, unittest.equals('foo')); |
| 3069 checkUnnamed1298(o.zones); | 3148 checkUnnamed513(o.zones); |
| 3070 } | 3149 } |
| 3071 buildCounterRegion--; | 3150 buildCounterRegion--; |
| 3072 } | 3151 } |
| 3073 | 3152 |
| 3074 buildUnnamed1299() { | 3153 buildUnnamed514() { |
| 3075 var o = new core.List<api.Region>(); | 3154 var o = new core.List<api.Region>(); |
| 3076 o.add(buildRegion()); | 3155 o.add(buildRegion()); |
| 3077 o.add(buildRegion()); | 3156 o.add(buildRegion()); |
| 3078 return o; | 3157 return o; |
| 3079 } | 3158 } |
| 3080 | 3159 |
| 3081 checkUnnamed1299(core.List<api.Region> o) { | 3160 checkUnnamed514(core.List<api.Region> o) { |
| 3082 unittest.expect(o, unittest.hasLength(2)); | 3161 unittest.expect(o, unittest.hasLength(2)); |
| 3083 checkRegion(o[0]); | 3162 checkRegion(o[0]); |
| 3084 checkRegion(o[1]); | 3163 checkRegion(o[1]); |
| 3085 } | 3164 } |
| 3086 | 3165 |
| 3087 core.int buildCounterRegionList = 0; | 3166 core.int buildCounterRegionList = 0; |
| 3088 buildRegionList() { | 3167 buildRegionList() { |
| 3089 var o = new api.RegionList(); | 3168 var o = new api.RegionList(); |
| 3090 buildCounterRegionList++; | 3169 buildCounterRegionList++; |
| 3091 if (buildCounterRegionList < 3) { | 3170 if (buildCounterRegionList < 3) { |
| 3092 o.id = "foo"; | 3171 o.id = "foo"; |
| 3093 o.items = buildUnnamed1299(); | 3172 o.items = buildUnnamed514(); |
| 3094 o.kind = "foo"; | 3173 o.kind = "foo"; |
| 3095 o.nextPageToken = "foo"; | 3174 o.nextPageToken = "foo"; |
| 3096 o.selfLink = "foo"; | 3175 o.selfLink = "foo"; |
| 3097 } | 3176 } |
| 3098 buildCounterRegionList--; | 3177 buildCounterRegionList--; |
| 3099 return o; | 3178 return o; |
| 3100 } | 3179 } |
| 3101 | 3180 |
| 3102 checkRegionList(api.RegionList o) { | 3181 checkRegionList(api.RegionList o) { |
| 3103 buildCounterRegionList++; | 3182 buildCounterRegionList++; |
| 3104 if (buildCounterRegionList < 3) { | 3183 if (buildCounterRegionList < 3) { |
| 3105 unittest.expect(o.id, unittest.equals('foo')); | 3184 unittest.expect(o.id, unittest.equals('foo')); |
| 3106 checkUnnamed1299(o.items); | 3185 checkUnnamed514(o.items); |
| 3107 unittest.expect(o.kind, unittest.equals('foo')); | 3186 unittest.expect(o.kind, unittest.equals('foo')); |
| 3108 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3187 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3109 unittest.expect(o.selfLink, unittest.equals('foo')); | 3188 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3110 } | 3189 } |
| 3111 buildCounterRegionList--; | 3190 buildCounterRegionList--; |
| 3112 } | 3191 } |
| 3113 | 3192 |
| 3114 core.int buildCounterResourceGroupReference = 0; | 3193 core.int buildCounterResourceGroupReference = 0; |
| 3115 buildResourceGroupReference() { | 3194 buildResourceGroupReference() { |
| 3116 var o = new api.ResourceGroupReference(); | 3195 var o = new api.ResourceGroupReference(); |
| 3117 buildCounterResourceGroupReference++; | 3196 buildCounterResourceGroupReference++; |
| 3118 if (buildCounterResourceGroupReference < 3) { | 3197 if (buildCounterResourceGroupReference < 3) { |
| 3119 o.group = "foo"; | 3198 o.group = "foo"; |
| 3120 } | 3199 } |
| 3121 buildCounterResourceGroupReference--; | 3200 buildCounterResourceGroupReference--; |
| 3122 return o; | 3201 return o; |
| 3123 } | 3202 } |
| 3124 | 3203 |
| 3125 checkResourceGroupReference(api.ResourceGroupReference o) { | 3204 checkResourceGroupReference(api.ResourceGroupReference o) { |
| 3126 buildCounterResourceGroupReference++; | 3205 buildCounterResourceGroupReference++; |
| 3127 if (buildCounterResourceGroupReference < 3) { | 3206 if (buildCounterResourceGroupReference < 3) { |
| 3128 unittest.expect(o.group, unittest.equals('foo')); | 3207 unittest.expect(o.group, unittest.equals('foo')); |
| 3129 } | 3208 } |
| 3130 buildCounterResourceGroupReference--; | 3209 buildCounterResourceGroupReference--; |
| 3131 } | 3210 } |
| 3132 | 3211 |
| 3133 buildUnnamed1300() { | 3212 buildUnnamed515() { |
| 3134 var o = new core.List<core.String>(); | 3213 var o = new core.List<core.String>(); |
| 3135 o.add("foo"); | 3214 o.add("foo"); |
| 3136 o.add("foo"); | 3215 o.add("foo"); |
| 3137 return o; | 3216 return o; |
| 3138 } | 3217 } |
| 3139 | 3218 |
| 3140 checkUnnamed1300(core.List<core.String> o) { | 3219 checkUnnamed515(core.List<core.String> o) { |
| 3141 unittest.expect(o, unittest.hasLength(2)); | 3220 unittest.expect(o, unittest.hasLength(2)); |
| 3142 unittest.expect(o[0], unittest.equals('foo')); | 3221 unittest.expect(o[0], unittest.equals('foo')); |
| 3143 unittest.expect(o[1], unittest.equals('foo')); | 3222 unittest.expect(o[1], unittest.equals('foo')); |
| 3144 } | 3223 } |
| 3145 | 3224 |
| 3146 core.int buildCounterRouteWarningsData = 0; | 3225 core.int buildCounterRouteWarningsData = 0; |
| 3147 buildRouteWarningsData() { | 3226 buildRouteWarningsData() { |
| 3148 var o = new api.RouteWarningsData(); | 3227 var o = new api.RouteWarningsData(); |
| 3149 buildCounterRouteWarningsData++; | 3228 buildCounterRouteWarningsData++; |
| 3150 if (buildCounterRouteWarningsData < 3) { | 3229 if (buildCounterRouteWarningsData < 3) { |
| 3151 o.key = "foo"; | 3230 o.key = "foo"; |
| 3152 o.value = "foo"; | 3231 o.value = "foo"; |
| 3153 } | 3232 } |
| 3154 buildCounterRouteWarningsData--; | 3233 buildCounterRouteWarningsData--; |
| 3155 return o; | 3234 return o; |
| 3156 } | 3235 } |
| 3157 | 3236 |
| 3158 checkRouteWarningsData(api.RouteWarningsData o) { | 3237 checkRouteWarningsData(api.RouteWarningsData o) { |
| 3159 buildCounterRouteWarningsData++; | 3238 buildCounterRouteWarningsData++; |
| 3160 if (buildCounterRouteWarningsData < 3) { | 3239 if (buildCounterRouteWarningsData < 3) { |
| 3161 unittest.expect(o.key, unittest.equals('foo')); | 3240 unittest.expect(o.key, unittest.equals('foo')); |
| 3162 unittest.expect(o.value, unittest.equals('foo')); | 3241 unittest.expect(o.value, unittest.equals('foo')); |
| 3163 } | 3242 } |
| 3164 buildCounterRouteWarningsData--; | 3243 buildCounterRouteWarningsData--; |
| 3165 } | 3244 } |
| 3166 | 3245 |
| 3167 buildUnnamed1301() { | 3246 buildUnnamed516() { |
| 3168 var o = new core.List<api.RouteWarningsData>(); | 3247 var o = new core.List<api.RouteWarningsData>(); |
| 3169 o.add(buildRouteWarningsData()); | 3248 o.add(buildRouteWarningsData()); |
| 3170 o.add(buildRouteWarningsData()); | 3249 o.add(buildRouteWarningsData()); |
| 3171 return o; | 3250 return o; |
| 3172 } | 3251 } |
| 3173 | 3252 |
| 3174 checkUnnamed1301(core.List<api.RouteWarningsData> o) { | 3253 checkUnnamed516(core.List<api.RouteWarningsData> o) { |
| 3175 unittest.expect(o, unittest.hasLength(2)); | 3254 unittest.expect(o, unittest.hasLength(2)); |
| 3176 checkRouteWarningsData(o[0]); | 3255 checkRouteWarningsData(o[0]); |
| 3177 checkRouteWarningsData(o[1]); | 3256 checkRouteWarningsData(o[1]); |
| 3178 } | 3257 } |
| 3179 | 3258 |
| 3180 core.int buildCounterRouteWarnings = 0; | 3259 core.int buildCounterRouteWarnings = 0; |
| 3181 buildRouteWarnings() { | 3260 buildRouteWarnings() { |
| 3182 var o = new api.RouteWarnings(); | 3261 var o = new api.RouteWarnings(); |
| 3183 buildCounterRouteWarnings++; | 3262 buildCounterRouteWarnings++; |
| 3184 if (buildCounterRouteWarnings < 3) { | 3263 if (buildCounterRouteWarnings < 3) { |
| 3185 o.code = "foo"; | 3264 o.code = "foo"; |
| 3186 o.data = buildUnnamed1301(); | 3265 o.data = buildUnnamed516(); |
| 3187 o.message = "foo"; | 3266 o.message = "foo"; |
| 3188 } | 3267 } |
| 3189 buildCounterRouteWarnings--; | 3268 buildCounterRouteWarnings--; |
| 3190 return o; | 3269 return o; |
| 3191 } | 3270 } |
| 3192 | 3271 |
| 3193 checkRouteWarnings(api.RouteWarnings o) { | 3272 checkRouteWarnings(api.RouteWarnings o) { |
| 3194 buildCounterRouteWarnings++; | 3273 buildCounterRouteWarnings++; |
| 3195 if (buildCounterRouteWarnings < 3) { | 3274 if (buildCounterRouteWarnings < 3) { |
| 3196 unittest.expect(o.code, unittest.equals('foo')); | 3275 unittest.expect(o.code, unittest.equals('foo')); |
| 3197 checkUnnamed1301(o.data); | 3276 checkUnnamed516(o.data); |
| 3198 unittest.expect(o.message, unittest.equals('foo')); | 3277 unittest.expect(o.message, unittest.equals('foo')); |
| 3199 } | 3278 } |
| 3200 buildCounterRouteWarnings--; | 3279 buildCounterRouteWarnings--; |
| 3201 } | 3280 } |
| 3202 | 3281 |
| 3203 buildUnnamed1302() { | 3282 buildUnnamed517() { |
| 3204 var o = new core.List<api.RouteWarnings>(); | 3283 var o = new core.List<api.RouteWarnings>(); |
| 3205 o.add(buildRouteWarnings()); | 3284 o.add(buildRouteWarnings()); |
| 3206 o.add(buildRouteWarnings()); | 3285 o.add(buildRouteWarnings()); |
| 3207 return o; | 3286 return o; |
| 3208 } | 3287 } |
| 3209 | 3288 |
| 3210 checkUnnamed1302(core.List<api.RouteWarnings> o) { | 3289 checkUnnamed517(core.List<api.RouteWarnings> o) { |
| 3211 unittest.expect(o, unittest.hasLength(2)); | 3290 unittest.expect(o, unittest.hasLength(2)); |
| 3212 checkRouteWarnings(o[0]); | 3291 checkRouteWarnings(o[0]); |
| 3213 checkRouteWarnings(o[1]); | 3292 checkRouteWarnings(o[1]); |
| 3214 } | 3293 } |
| 3215 | 3294 |
| 3216 core.int buildCounterRoute = 0; | 3295 core.int buildCounterRoute = 0; |
| 3217 buildRoute() { | 3296 buildRoute() { |
| 3218 var o = new api.Route(); | 3297 var o = new api.Route(); |
| 3219 buildCounterRoute++; | 3298 buildCounterRoute++; |
| 3220 if (buildCounterRoute < 3) { | 3299 if (buildCounterRoute < 3) { |
| 3221 o.creationTimestamp = "foo"; | 3300 o.creationTimestamp = "foo"; |
| 3222 o.description = "foo"; | 3301 o.description = "foo"; |
| 3223 o.destRange = "foo"; | 3302 o.destRange = "foo"; |
| 3224 o.id = "foo"; | 3303 o.id = "foo"; |
| 3225 o.kind = "foo"; | 3304 o.kind = "foo"; |
| 3226 o.name = "foo"; | 3305 o.name = "foo"; |
| 3227 o.network = "foo"; | 3306 o.network = "foo"; |
| 3228 o.nextHopGateway = "foo"; | 3307 o.nextHopGateway = "foo"; |
| 3229 o.nextHopInstance = "foo"; | 3308 o.nextHopInstance = "foo"; |
| 3230 o.nextHopIp = "foo"; | 3309 o.nextHopIp = "foo"; |
| 3231 o.nextHopNetwork = "foo"; | 3310 o.nextHopNetwork = "foo"; |
| 3311 o.nextHopVpnTunnel = "foo"; |
| 3232 o.priority = 42; | 3312 o.priority = 42; |
| 3233 o.selfLink = "foo"; | 3313 o.selfLink = "foo"; |
| 3234 o.tags = buildUnnamed1300(); | 3314 o.tags = buildUnnamed515(); |
| 3235 o.warnings = buildUnnamed1302(); | 3315 o.warnings = buildUnnamed517(); |
| 3236 } | 3316 } |
| 3237 buildCounterRoute--; | 3317 buildCounterRoute--; |
| 3238 return o; | 3318 return o; |
| 3239 } | 3319 } |
| 3240 | 3320 |
| 3241 checkRoute(api.Route o) { | 3321 checkRoute(api.Route o) { |
| 3242 buildCounterRoute++; | 3322 buildCounterRoute++; |
| 3243 if (buildCounterRoute < 3) { | 3323 if (buildCounterRoute < 3) { |
| 3244 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 3324 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 3245 unittest.expect(o.description, unittest.equals('foo')); | 3325 unittest.expect(o.description, unittest.equals('foo')); |
| 3246 unittest.expect(o.destRange, unittest.equals('foo')); | 3326 unittest.expect(o.destRange, unittest.equals('foo')); |
| 3247 unittest.expect(o.id, unittest.equals('foo')); | 3327 unittest.expect(o.id, unittest.equals('foo')); |
| 3248 unittest.expect(o.kind, unittest.equals('foo')); | 3328 unittest.expect(o.kind, unittest.equals('foo')); |
| 3249 unittest.expect(o.name, unittest.equals('foo')); | 3329 unittest.expect(o.name, unittest.equals('foo')); |
| 3250 unittest.expect(o.network, unittest.equals('foo')); | 3330 unittest.expect(o.network, unittest.equals('foo')); |
| 3251 unittest.expect(o.nextHopGateway, unittest.equals('foo')); | 3331 unittest.expect(o.nextHopGateway, unittest.equals('foo')); |
| 3252 unittest.expect(o.nextHopInstance, unittest.equals('foo')); | 3332 unittest.expect(o.nextHopInstance, unittest.equals('foo')); |
| 3253 unittest.expect(o.nextHopIp, unittest.equals('foo')); | 3333 unittest.expect(o.nextHopIp, unittest.equals('foo')); |
| 3254 unittest.expect(o.nextHopNetwork, unittest.equals('foo')); | 3334 unittest.expect(o.nextHopNetwork, unittest.equals('foo')); |
| 3335 unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo')); |
| 3255 unittest.expect(o.priority, unittest.equals(42)); | 3336 unittest.expect(o.priority, unittest.equals(42)); |
| 3256 unittest.expect(o.selfLink, unittest.equals('foo')); | 3337 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3257 checkUnnamed1300(o.tags); | 3338 checkUnnamed515(o.tags); |
| 3258 checkUnnamed1302(o.warnings); | 3339 checkUnnamed517(o.warnings); |
| 3259 } | 3340 } |
| 3260 buildCounterRoute--; | 3341 buildCounterRoute--; |
| 3261 } | 3342 } |
| 3262 | 3343 |
| 3263 buildUnnamed1303() { | 3344 buildUnnamed518() { |
| 3264 var o = new core.List<api.Route>(); | 3345 var o = new core.List<api.Route>(); |
| 3265 o.add(buildRoute()); | 3346 o.add(buildRoute()); |
| 3266 o.add(buildRoute()); | 3347 o.add(buildRoute()); |
| 3267 return o; | 3348 return o; |
| 3268 } | 3349 } |
| 3269 | 3350 |
| 3270 checkUnnamed1303(core.List<api.Route> o) { | 3351 checkUnnamed518(core.List<api.Route> o) { |
| 3271 unittest.expect(o, unittest.hasLength(2)); | 3352 unittest.expect(o, unittest.hasLength(2)); |
| 3272 checkRoute(o[0]); | 3353 checkRoute(o[0]); |
| 3273 checkRoute(o[1]); | 3354 checkRoute(o[1]); |
| 3274 } | 3355 } |
| 3275 | 3356 |
| 3276 core.int buildCounterRouteList = 0; | 3357 core.int buildCounterRouteList = 0; |
| 3277 buildRouteList() { | 3358 buildRouteList() { |
| 3278 var o = new api.RouteList(); | 3359 var o = new api.RouteList(); |
| 3279 buildCounterRouteList++; | 3360 buildCounterRouteList++; |
| 3280 if (buildCounterRouteList < 3) { | 3361 if (buildCounterRouteList < 3) { |
| 3281 o.id = "foo"; | 3362 o.id = "foo"; |
| 3282 o.items = buildUnnamed1303(); | 3363 o.items = buildUnnamed518(); |
| 3283 o.kind = "foo"; | 3364 o.kind = "foo"; |
| 3284 o.nextPageToken = "foo"; | 3365 o.nextPageToken = "foo"; |
| 3285 o.selfLink = "foo"; | 3366 o.selfLink = "foo"; |
| 3286 } | 3367 } |
| 3287 buildCounterRouteList--; | 3368 buildCounterRouteList--; |
| 3288 return o; | 3369 return o; |
| 3289 } | 3370 } |
| 3290 | 3371 |
| 3291 checkRouteList(api.RouteList o) { | 3372 checkRouteList(api.RouteList o) { |
| 3292 buildCounterRouteList++; | 3373 buildCounterRouteList++; |
| 3293 if (buildCounterRouteList < 3) { | 3374 if (buildCounterRouteList < 3) { |
| 3294 unittest.expect(o.id, unittest.equals('foo')); | 3375 unittest.expect(o.id, unittest.equals('foo')); |
| 3295 checkUnnamed1303(o.items); | 3376 checkUnnamed518(o.items); |
| 3296 unittest.expect(o.kind, unittest.equals('foo')); | 3377 unittest.expect(o.kind, unittest.equals('foo')); |
| 3297 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3378 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3298 unittest.expect(o.selfLink, unittest.equals('foo')); | 3379 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3299 } | 3380 } |
| 3300 buildCounterRouteList--; | 3381 buildCounterRouteList--; |
| 3301 } | 3382 } |
| 3302 | 3383 |
| 3303 core.int buildCounterScheduling = 0; | 3384 core.int buildCounterScheduling = 0; |
| 3304 buildScheduling() { | 3385 buildScheduling() { |
| 3305 var o = new api.Scheduling(); | 3386 var o = new api.Scheduling(); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3337 checkSerialPortOutput(api.SerialPortOutput o) { | 3418 checkSerialPortOutput(api.SerialPortOutput o) { |
| 3338 buildCounterSerialPortOutput++; | 3419 buildCounterSerialPortOutput++; |
| 3339 if (buildCounterSerialPortOutput < 3) { | 3420 if (buildCounterSerialPortOutput < 3) { |
| 3340 unittest.expect(o.contents, unittest.equals('foo')); | 3421 unittest.expect(o.contents, unittest.equals('foo')); |
| 3341 unittest.expect(o.kind, unittest.equals('foo')); | 3422 unittest.expect(o.kind, unittest.equals('foo')); |
| 3342 unittest.expect(o.selfLink, unittest.equals('foo')); | 3423 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3343 } | 3424 } |
| 3344 buildCounterSerialPortOutput--; | 3425 buildCounterSerialPortOutput--; |
| 3345 } | 3426 } |
| 3346 | 3427 |
| 3347 buildUnnamed1304() { | 3428 buildUnnamed519() { |
| 3348 var o = new core.List<core.String>(); | 3429 var o = new core.List<core.String>(); |
| 3349 o.add("foo"); | 3430 o.add("foo"); |
| 3350 o.add("foo"); | 3431 o.add("foo"); |
| 3351 return o; | 3432 return o; |
| 3352 } | 3433 } |
| 3353 | 3434 |
| 3354 checkUnnamed1304(core.List<core.String> o) { | 3435 checkUnnamed519(core.List<core.String> o) { |
| 3355 unittest.expect(o, unittest.hasLength(2)); | 3436 unittest.expect(o, unittest.hasLength(2)); |
| 3356 unittest.expect(o[0], unittest.equals('foo')); | 3437 unittest.expect(o[0], unittest.equals('foo')); |
| 3357 unittest.expect(o[1], unittest.equals('foo')); | 3438 unittest.expect(o[1], unittest.equals('foo')); |
| 3358 } | 3439 } |
| 3359 | 3440 |
| 3360 core.int buildCounterServiceAccount = 0; | 3441 core.int buildCounterServiceAccount = 0; |
| 3361 buildServiceAccount() { | 3442 buildServiceAccount() { |
| 3362 var o = new api.ServiceAccount(); | 3443 var o = new api.ServiceAccount(); |
| 3363 buildCounterServiceAccount++; | 3444 buildCounterServiceAccount++; |
| 3364 if (buildCounterServiceAccount < 3) { | 3445 if (buildCounterServiceAccount < 3) { |
| 3365 o.email = "foo"; | 3446 o.email = "foo"; |
| 3366 o.scopes = buildUnnamed1304(); | 3447 o.scopes = buildUnnamed519(); |
| 3367 } | 3448 } |
| 3368 buildCounterServiceAccount--; | 3449 buildCounterServiceAccount--; |
| 3369 return o; | 3450 return o; |
| 3370 } | 3451 } |
| 3371 | 3452 |
| 3372 checkServiceAccount(api.ServiceAccount o) { | 3453 checkServiceAccount(api.ServiceAccount o) { |
| 3373 buildCounterServiceAccount++; | 3454 buildCounterServiceAccount++; |
| 3374 if (buildCounterServiceAccount < 3) { | 3455 if (buildCounterServiceAccount < 3) { |
| 3375 unittest.expect(o.email, unittest.equals('foo')); | 3456 unittest.expect(o.email, unittest.equals('foo')); |
| 3376 checkUnnamed1304(o.scopes); | 3457 checkUnnamed519(o.scopes); |
| 3377 } | 3458 } |
| 3378 buildCounterServiceAccount--; | 3459 buildCounterServiceAccount--; |
| 3379 } | 3460 } |
| 3380 | 3461 |
| 3381 buildUnnamed1305() { | 3462 buildUnnamed520() { |
| 3382 var o = new core.List<core.String>(); | 3463 var o = new core.List<core.String>(); |
| 3383 o.add("foo"); | 3464 o.add("foo"); |
| 3384 o.add("foo"); | 3465 o.add("foo"); |
| 3385 return o; | 3466 return o; |
| 3386 } | 3467 } |
| 3387 | 3468 |
| 3388 checkUnnamed1305(core.List<core.String> o) { | 3469 checkUnnamed520(core.List<core.String> o) { |
| 3389 unittest.expect(o, unittest.hasLength(2)); | 3470 unittest.expect(o, unittest.hasLength(2)); |
| 3390 unittest.expect(o[0], unittest.equals('foo')); | 3471 unittest.expect(o[0], unittest.equals('foo')); |
| 3391 unittest.expect(o[1], unittest.equals('foo')); | 3472 unittest.expect(o[1], unittest.equals('foo')); |
| 3392 } | 3473 } |
| 3393 | 3474 |
| 3394 core.int buildCounterSnapshot = 0; | 3475 core.int buildCounterSnapshot = 0; |
| 3395 buildSnapshot() { | 3476 buildSnapshot() { |
| 3396 var o = new api.Snapshot(); | 3477 var o = new api.Snapshot(); |
| 3397 buildCounterSnapshot++; | 3478 buildCounterSnapshot++; |
| 3398 if (buildCounterSnapshot < 3) { | 3479 if (buildCounterSnapshot < 3) { |
| 3399 o.creationTimestamp = "foo"; | 3480 o.creationTimestamp = "foo"; |
| 3400 o.description = "foo"; | 3481 o.description = "foo"; |
| 3401 o.diskSizeGb = "foo"; | 3482 o.diskSizeGb = "foo"; |
| 3402 o.id = "foo"; | 3483 o.id = "foo"; |
| 3403 o.kind = "foo"; | 3484 o.kind = "foo"; |
| 3404 o.licenses = buildUnnamed1305(); | 3485 o.licenses = buildUnnamed520(); |
| 3405 o.name = "foo"; | 3486 o.name = "foo"; |
| 3406 o.selfLink = "foo"; | 3487 o.selfLink = "foo"; |
| 3407 o.sourceDisk = "foo"; | 3488 o.sourceDisk = "foo"; |
| 3408 o.sourceDiskId = "foo"; | 3489 o.sourceDiskId = "foo"; |
| 3409 o.status = "foo"; | 3490 o.status = "foo"; |
| 3410 o.storageBytes = "foo"; | 3491 o.storageBytes = "foo"; |
| 3411 o.storageBytesStatus = "foo"; | 3492 o.storageBytesStatus = "foo"; |
| 3412 } | 3493 } |
| 3413 buildCounterSnapshot--; | 3494 buildCounterSnapshot--; |
| 3414 return o; | 3495 return o; |
| 3415 } | 3496 } |
| 3416 | 3497 |
| 3417 checkSnapshot(api.Snapshot o) { | 3498 checkSnapshot(api.Snapshot o) { |
| 3418 buildCounterSnapshot++; | 3499 buildCounterSnapshot++; |
| 3419 if (buildCounterSnapshot < 3) { | 3500 if (buildCounterSnapshot < 3) { |
| 3420 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 3501 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 3421 unittest.expect(o.description, unittest.equals('foo')); | 3502 unittest.expect(o.description, unittest.equals('foo')); |
| 3422 unittest.expect(o.diskSizeGb, unittest.equals('foo')); | 3503 unittest.expect(o.diskSizeGb, unittest.equals('foo')); |
| 3423 unittest.expect(o.id, unittest.equals('foo')); | 3504 unittest.expect(o.id, unittest.equals('foo')); |
| 3424 unittest.expect(o.kind, unittest.equals('foo')); | 3505 unittest.expect(o.kind, unittest.equals('foo')); |
| 3425 checkUnnamed1305(o.licenses); | 3506 checkUnnamed520(o.licenses); |
| 3426 unittest.expect(o.name, unittest.equals('foo')); | 3507 unittest.expect(o.name, unittest.equals('foo')); |
| 3427 unittest.expect(o.selfLink, unittest.equals('foo')); | 3508 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3428 unittest.expect(o.sourceDisk, unittest.equals('foo')); | 3509 unittest.expect(o.sourceDisk, unittest.equals('foo')); |
| 3429 unittest.expect(o.sourceDiskId, unittest.equals('foo')); | 3510 unittest.expect(o.sourceDiskId, unittest.equals('foo')); |
| 3430 unittest.expect(o.status, unittest.equals('foo')); | 3511 unittest.expect(o.status, unittest.equals('foo')); |
| 3431 unittest.expect(o.storageBytes, unittest.equals('foo')); | 3512 unittest.expect(o.storageBytes, unittest.equals('foo')); |
| 3432 unittest.expect(o.storageBytesStatus, unittest.equals('foo')); | 3513 unittest.expect(o.storageBytesStatus, unittest.equals('foo')); |
| 3433 } | 3514 } |
| 3434 buildCounterSnapshot--; | 3515 buildCounterSnapshot--; |
| 3435 } | 3516 } |
| 3436 | 3517 |
| 3437 buildUnnamed1306() { | 3518 buildUnnamed521() { |
| 3438 var o = new core.List<api.Snapshot>(); | 3519 var o = new core.List<api.Snapshot>(); |
| 3439 o.add(buildSnapshot()); | 3520 o.add(buildSnapshot()); |
| 3440 o.add(buildSnapshot()); | 3521 o.add(buildSnapshot()); |
| 3441 return o; | 3522 return o; |
| 3442 } | 3523 } |
| 3443 | 3524 |
| 3444 checkUnnamed1306(core.List<api.Snapshot> o) { | 3525 checkUnnamed521(core.List<api.Snapshot> o) { |
| 3445 unittest.expect(o, unittest.hasLength(2)); | 3526 unittest.expect(o, unittest.hasLength(2)); |
| 3446 checkSnapshot(o[0]); | 3527 checkSnapshot(o[0]); |
| 3447 checkSnapshot(o[1]); | 3528 checkSnapshot(o[1]); |
| 3448 } | 3529 } |
| 3449 | 3530 |
| 3450 core.int buildCounterSnapshotList = 0; | 3531 core.int buildCounterSnapshotList = 0; |
| 3451 buildSnapshotList() { | 3532 buildSnapshotList() { |
| 3452 var o = new api.SnapshotList(); | 3533 var o = new api.SnapshotList(); |
| 3453 buildCounterSnapshotList++; | 3534 buildCounterSnapshotList++; |
| 3454 if (buildCounterSnapshotList < 3) { | 3535 if (buildCounterSnapshotList < 3) { |
| 3455 o.id = "foo"; | 3536 o.id = "foo"; |
| 3456 o.items = buildUnnamed1306(); | 3537 o.items = buildUnnamed521(); |
| 3457 o.kind = "foo"; | 3538 o.kind = "foo"; |
| 3458 o.nextPageToken = "foo"; | 3539 o.nextPageToken = "foo"; |
| 3459 o.selfLink = "foo"; | 3540 o.selfLink = "foo"; |
| 3460 } | 3541 } |
| 3461 buildCounterSnapshotList--; | 3542 buildCounterSnapshotList--; |
| 3462 return o; | 3543 return o; |
| 3463 } | 3544 } |
| 3464 | 3545 |
| 3465 checkSnapshotList(api.SnapshotList o) { | 3546 checkSnapshotList(api.SnapshotList o) { |
| 3466 buildCounterSnapshotList++; | 3547 buildCounterSnapshotList++; |
| 3467 if (buildCounterSnapshotList < 3) { | 3548 if (buildCounterSnapshotList < 3) { |
| 3468 unittest.expect(o.id, unittest.equals('foo')); | 3549 unittest.expect(o.id, unittest.equals('foo')); |
| 3469 checkUnnamed1306(o.items); | 3550 checkUnnamed521(o.items); |
| 3470 unittest.expect(o.kind, unittest.equals('foo')); | 3551 unittest.expect(o.kind, unittest.equals('foo')); |
| 3471 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3552 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3472 unittest.expect(o.selfLink, unittest.equals('foo')); | 3553 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3473 } | 3554 } |
| 3474 buildCounterSnapshotList--; | 3555 buildCounterSnapshotList--; |
| 3475 } | 3556 } |
| 3476 | 3557 |
| 3477 buildUnnamed1307() { | 3558 buildUnnamed522() { |
| 3478 var o = new core.List<core.String>(); | 3559 var o = new core.List<core.String>(); |
| 3479 o.add("foo"); | 3560 o.add("foo"); |
| 3480 o.add("foo"); | 3561 o.add("foo"); |
| 3481 return o; | 3562 return o; |
| 3482 } | 3563 } |
| 3483 | 3564 |
| 3484 checkUnnamed1307(core.List<core.String> o) { | 3565 checkUnnamed522(core.List<core.String> o) { |
| 3485 unittest.expect(o, unittest.hasLength(2)); | 3566 unittest.expect(o, unittest.hasLength(2)); |
| 3486 unittest.expect(o[0], unittest.equals('foo')); | 3567 unittest.expect(o[0], unittest.equals('foo')); |
| 3487 unittest.expect(o[1], unittest.equals('foo')); | 3568 unittest.expect(o[1], unittest.equals('foo')); |
| 3488 } | 3569 } |
| 3489 | 3570 |
| 3490 core.int buildCounterTags = 0; | 3571 core.int buildCounterTags = 0; |
| 3491 buildTags() { | 3572 buildTags() { |
| 3492 var o = new api.Tags(); | 3573 var o = new api.Tags(); |
| 3493 buildCounterTags++; | 3574 buildCounterTags++; |
| 3494 if (buildCounterTags < 3) { | 3575 if (buildCounterTags < 3) { |
| 3495 o.fingerprint = "foo"; | 3576 o.fingerprint = "foo"; |
| 3496 o.items = buildUnnamed1307(); | 3577 o.items = buildUnnamed522(); |
| 3497 } | 3578 } |
| 3498 buildCounterTags--; | 3579 buildCounterTags--; |
| 3499 return o; | 3580 return o; |
| 3500 } | 3581 } |
| 3501 | 3582 |
| 3502 checkTags(api.Tags o) { | 3583 checkTags(api.Tags o) { |
| 3503 buildCounterTags++; | 3584 buildCounterTags++; |
| 3504 if (buildCounterTags < 3) { | 3585 if (buildCounterTags < 3) { |
| 3505 unittest.expect(o.fingerprint, unittest.equals('foo')); | 3586 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 3506 checkUnnamed1307(o.items); | 3587 checkUnnamed522(o.items); |
| 3507 } | 3588 } |
| 3508 buildCounterTags--; | 3589 buildCounterTags--; |
| 3509 } | 3590 } |
| 3510 | 3591 |
| 3511 core.int buildCounterTargetHttpProxy = 0; | 3592 core.int buildCounterTargetHttpProxy = 0; |
| 3512 buildTargetHttpProxy() { | 3593 buildTargetHttpProxy() { |
| 3513 var o = new api.TargetHttpProxy(); | 3594 var o = new api.TargetHttpProxy(); |
| 3514 buildCounterTargetHttpProxy++; | 3595 buildCounterTargetHttpProxy++; |
| 3515 if (buildCounterTargetHttpProxy < 3) { | 3596 if (buildCounterTargetHttpProxy < 3) { |
| 3516 o.creationTimestamp = "foo"; | 3597 o.creationTimestamp = "foo"; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 3532 unittest.expect(o.description, unittest.equals('foo')); | 3613 unittest.expect(o.description, unittest.equals('foo')); |
| 3533 unittest.expect(o.id, unittest.equals('foo')); | 3614 unittest.expect(o.id, unittest.equals('foo')); |
| 3534 unittest.expect(o.kind, unittest.equals('foo')); | 3615 unittest.expect(o.kind, unittest.equals('foo')); |
| 3535 unittest.expect(o.name, unittest.equals('foo')); | 3616 unittest.expect(o.name, unittest.equals('foo')); |
| 3536 unittest.expect(o.selfLink, unittest.equals('foo')); | 3617 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3537 unittest.expect(o.urlMap, unittest.equals('foo')); | 3618 unittest.expect(o.urlMap, unittest.equals('foo')); |
| 3538 } | 3619 } |
| 3539 buildCounterTargetHttpProxy--; | 3620 buildCounterTargetHttpProxy--; |
| 3540 } | 3621 } |
| 3541 | 3622 |
| 3542 buildUnnamed1308() { | 3623 buildUnnamed523() { |
| 3543 var o = new core.List<api.TargetHttpProxy>(); | 3624 var o = new core.List<api.TargetHttpProxy>(); |
| 3544 o.add(buildTargetHttpProxy()); | 3625 o.add(buildTargetHttpProxy()); |
| 3545 o.add(buildTargetHttpProxy()); | 3626 o.add(buildTargetHttpProxy()); |
| 3546 return o; | 3627 return o; |
| 3547 } | 3628 } |
| 3548 | 3629 |
| 3549 checkUnnamed1308(core.List<api.TargetHttpProxy> o) { | 3630 checkUnnamed523(core.List<api.TargetHttpProxy> o) { |
| 3550 unittest.expect(o, unittest.hasLength(2)); | 3631 unittest.expect(o, unittest.hasLength(2)); |
| 3551 checkTargetHttpProxy(o[0]); | 3632 checkTargetHttpProxy(o[0]); |
| 3552 checkTargetHttpProxy(o[1]); | 3633 checkTargetHttpProxy(o[1]); |
| 3553 } | 3634 } |
| 3554 | 3635 |
| 3555 core.int buildCounterTargetHttpProxyList = 0; | 3636 core.int buildCounterTargetHttpProxyList = 0; |
| 3556 buildTargetHttpProxyList() { | 3637 buildTargetHttpProxyList() { |
| 3557 var o = new api.TargetHttpProxyList(); | 3638 var o = new api.TargetHttpProxyList(); |
| 3558 buildCounterTargetHttpProxyList++; | 3639 buildCounterTargetHttpProxyList++; |
| 3559 if (buildCounterTargetHttpProxyList < 3) { | 3640 if (buildCounterTargetHttpProxyList < 3) { |
| 3560 o.id = "foo"; | 3641 o.id = "foo"; |
| 3561 o.items = buildUnnamed1308(); | 3642 o.items = buildUnnamed523(); |
| 3562 o.kind = "foo"; | 3643 o.kind = "foo"; |
| 3563 o.nextPageToken = "foo"; | 3644 o.nextPageToken = "foo"; |
| 3564 o.selfLink = "foo"; | 3645 o.selfLink = "foo"; |
| 3565 } | 3646 } |
| 3566 buildCounterTargetHttpProxyList--; | 3647 buildCounterTargetHttpProxyList--; |
| 3567 return o; | 3648 return o; |
| 3568 } | 3649 } |
| 3569 | 3650 |
| 3570 checkTargetHttpProxyList(api.TargetHttpProxyList o) { | 3651 checkTargetHttpProxyList(api.TargetHttpProxyList o) { |
| 3571 buildCounterTargetHttpProxyList++; | 3652 buildCounterTargetHttpProxyList++; |
| 3572 if (buildCounterTargetHttpProxyList < 3) { | 3653 if (buildCounterTargetHttpProxyList < 3) { |
| 3573 unittest.expect(o.id, unittest.equals('foo')); | 3654 unittest.expect(o.id, unittest.equals('foo')); |
| 3574 checkUnnamed1308(o.items); | 3655 checkUnnamed523(o.items); |
| 3575 unittest.expect(o.kind, unittest.equals('foo')); | 3656 unittest.expect(o.kind, unittest.equals('foo')); |
| 3576 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3657 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3577 unittest.expect(o.selfLink, unittest.equals('foo')); | 3658 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3578 } | 3659 } |
| 3579 buildCounterTargetHttpProxyList--; | 3660 buildCounterTargetHttpProxyList--; |
| 3580 } | 3661 } |
| 3581 | 3662 |
| 3582 core.int buildCounterTargetInstance = 0; | 3663 core.int buildCounterTargetInstance = 0; |
| 3583 buildTargetInstance() { | 3664 buildTargetInstance() { |
| 3584 var o = new api.TargetInstance(); | 3665 var o = new api.TargetInstance(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 3607 unittest.expect(o.instance, unittest.equals('foo')); | 3688 unittest.expect(o.instance, unittest.equals('foo')); |
| 3608 unittest.expect(o.kind, unittest.equals('foo')); | 3689 unittest.expect(o.kind, unittest.equals('foo')); |
| 3609 unittest.expect(o.name, unittest.equals('foo')); | 3690 unittest.expect(o.name, unittest.equals('foo')); |
| 3610 unittest.expect(o.natPolicy, unittest.equals('foo')); | 3691 unittest.expect(o.natPolicy, unittest.equals('foo')); |
| 3611 unittest.expect(o.selfLink, unittest.equals('foo')); | 3692 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3612 unittest.expect(o.zone, unittest.equals('foo')); | 3693 unittest.expect(o.zone, unittest.equals('foo')); |
| 3613 } | 3694 } |
| 3614 buildCounterTargetInstance--; | 3695 buildCounterTargetInstance--; |
| 3615 } | 3696 } |
| 3616 | 3697 |
| 3617 buildUnnamed1309() { | 3698 buildUnnamed524() { |
| 3618 var o = new core.Map<core.String, api.TargetInstancesScopedList>(); | 3699 var o = new core.Map<core.String, api.TargetInstancesScopedList>(); |
| 3619 o["x"] = buildTargetInstancesScopedList(); | 3700 o["x"] = buildTargetInstancesScopedList(); |
| 3620 o["y"] = buildTargetInstancesScopedList(); | 3701 o["y"] = buildTargetInstancesScopedList(); |
| 3621 return o; | 3702 return o; |
| 3622 } | 3703 } |
| 3623 | 3704 |
| 3624 checkUnnamed1309(core.Map<core.String, api.TargetInstancesScopedList> o) { | 3705 checkUnnamed524(core.Map<core.String, api.TargetInstancesScopedList> o) { |
| 3625 unittest.expect(o, unittest.hasLength(2)); | 3706 unittest.expect(o, unittest.hasLength(2)); |
| 3626 checkTargetInstancesScopedList(o["x"]); | 3707 checkTargetInstancesScopedList(o["x"]); |
| 3627 checkTargetInstancesScopedList(o["y"]); | 3708 checkTargetInstancesScopedList(o["y"]); |
| 3628 } | 3709 } |
| 3629 | 3710 |
| 3630 core.int buildCounterTargetInstanceAggregatedList = 0; | 3711 core.int buildCounterTargetInstanceAggregatedList = 0; |
| 3631 buildTargetInstanceAggregatedList() { | 3712 buildTargetInstanceAggregatedList() { |
| 3632 var o = new api.TargetInstanceAggregatedList(); | 3713 var o = new api.TargetInstanceAggregatedList(); |
| 3633 buildCounterTargetInstanceAggregatedList++; | 3714 buildCounterTargetInstanceAggregatedList++; |
| 3634 if (buildCounterTargetInstanceAggregatedList < 3) { | 3715 if (buildCounterTargetInstanceAggregatedList < 3) { |
| 3635 o.id = "foo"; | 3716 o.id = "foo"; |
| 3636 o.items = buildUnnamed1309(); | 3717 o.items = buildUnnamed524(); |
| 3637 o.kind = "foo"; | 3718 o.kind = "foo"; |
| 3638 o.nextPageToken = "foo"; | 3719 o.nextPageToken = "foo"; |
| 3639 o.selfLink = "foo"; | 3720 o.selfLink = "foo"; |
| 3640 } | 3721 } |
| 3641 buildCounterTargetInstanceAggregatedList--; | 3722 buildCounterTargetInstanceAggregatedList--; |
| 3642 return o; | 3723 return o; |
| 3643 } | 3724 } |
| 3644 | 3725 |
| 3645 checkTargetInstanceAggregatedList(api.TargetInstanceAggregatedList o) { | 3726 checkTargetInstanceAggregatedList(api.TargetInstanceAggregatedList o) { |
| 3646 buildCounterTargetInstanceAggregatedList++; | 3727 buildCounterTargetInstanceAggregatedList++; |
| 3647 if (buildCounterTargetInstanceAggregatedList < 3) { | 3728 if (buildCounterTargetInstanceAggregatedList < 3) { |
| 3648 unittest.expect(o.id, unittest.equals('foo')); | 3729 unittest.expect(o.id, unittest.equals('foo')); |
| 3649 checkUnnamed1309(o.items); | 3730 checkUnnamed524(o.items); |
| 3650 unittest.expect(o.kind, unittest.equals('foo')); | 3731 unittest.expect(o.kind, unittest.equals('foo')); |
| 3651 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3732 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3652 unittest.expect(o.selfLink, unittest.equals('foo')); | 3733 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3653 } | 3734 } |
| 3654 buildCounterTargetInstanceAggregatedList--; | 3735 buildCounterTargetInstanceAggregatedList--; |
| 3655 } | 3736 } |
| 3656 | 3737 |
| 3657 buildUnnamed1310() { | 3738 buildUnnamed525() { |
| 3658 var o = new core.List<api.TargetInstance>(); | 3739 var o = new core.List<api.TargetInstance>(); |
| 3659 o.add(buildTargetInstance()); | 3740 o.add(buildTargetInstance()); |
| 3660 o.add(buildTargetInstance()); | 3741 o.add(buildTargetInstance()); |
| 3661 return o; | 3742 return o; |
| 3662 } | 3743 } |
| 3663 | 3744 |
| 3664 checkUnnamed1310(core.List<api.TargetInstance> o) { | 3745 checkUnnamed525(core.List<api.TargetInstance> o) { |
| 3665 unittest.expect(o, unittest.hasLength(2)); | 3746 unittest.expect(o, unittest.hasLength(2)); |
| 3666 checkTargetInstance(o[0]); | 3747 checkTargetInstance(o[0]); |
| 3667 checkTargetInstance(o[1]); | 3748 checkTargetInstance(o[1]); |
| 3668 } | 3749 } |
| 3669 | 3750 |
| 3670 core.int buildCounterTargetInstanceList = 0; | 3751 core.int buildCounterTargetInstanceList = 0; |
| 3671 buildTargetInstanceList() { | 3752 buildTargetInstanceList() { |
| 3672 var o = new api.TargetInstanceList(); | 3753 var o = new api.TargetInstanceList(); |
| 3673 buildCounterTargetInstanceList++; | 3754 buildCounterTargetInstanceList++; |
| 3674 if (buildCounterTargetInstanceList < 3) { | 3755 if (buildCounterTargetInstanceList < 3) { |
| 3675 o.id = "foo"; | 3756 o.id = "foo"; |
| 3676 o.items = buildUnnamed1310(); | 3757 o.items = buildUnnamed525(); |
| 3677 o.kind = "foo"; | 3758 o.kind = "foo"; |
| 3678 o.nextPageToken = "foo"; | 3759 o.nextPageToken = "foo"; |
| 3679 o.selfLink = "foo"; | 3760 o.selfLink = "foo"; |
| 3680 } | 3761 } |
| 3681 buildCounterTargetInstanceList--; | 3762 buildCounterTargetInstanceList--; |
| 3682 return o; | 3763 return o; |
| 3683 } | 3764 } |
| 3684 | 3765 |
| 3685 checkTargetInstanceList(api.TargetInstanceList o) { | 3766 checkTargetInstanceList(api.TargetInstanceList o) { |
| 3686 buildCounterTargetInstanceList++; | 3767 buildCounterTargetInstanceList++; |
| 3687 if (buildCounterTargetInstanceList < 3) { | 3768 if (buildCounterTargetInstanceList < 3) { |
| 3688 unittest.expect(o.id, unittest.equals('foo')); | 3769 unittest.expect(o.id, unittest.equals('foo')); |
| 3689 checkUnnamed1310(o.items); | 3770 checkUnnamed525(o.items); |
| 3690 unittest.expect(o.kind, unittest.equals('foo')); | 3771 unittest.expect(o.kind, unittest.equals('foo')); |
| 3691 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3772 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3692 unittest.expect(o.selfLink, unittest.equals('foo')); | 3773 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3693 } | 3774 } |
| 3694 buildCounterTargetInstanceList--; | 3775 buildCounterTargetInstanceList--; |
| 3695 } | 3776 } |
| 3696 | 3777 |
| 3697 buildUnnamed1311() { | 3778 buildUnnamed526() { |
| 3698 var o = new core.List<api.TargetInstance>(); | 3779 var o = new core.List<api.TargetInstance>(); |
| 3699 o.add(buildTargetInstance()); | 3780 o.add(buildTargetInstance()); |
| 3700 o.add(buildTargetInstance()); | 3781 o.add(buildTargetInstance()); |
| 3701 return o; | 3782 return o; |
| 3702 } | 3783 } |
| 3703 | 3784 |
| 3704 checkUnnamed1311(core.List<api.TargetInstance> o) { | 3785 checkUnnamed526(core.List<api.TargetInstance> o) { |
| 3705 unittest.expect(o, unittest.hasLength(2)); | 3786 unittest.expect(o, unittest.hasLength(2)); |
| 3706 checkTargetInstance(o[0]); | 3787 checkTargetInstance(o[0]); |
| 3707 checkTargetInstance(o[1]); | 3788 checkTargetInstance(o[1]); |
| 3708 } | 3789 } |
| 3709 | 3790 |
| 3710 core.int buildCounterTargetInstancesScopedListWarningData = 0; | 3791 core.int buildCounterTargetInstancesScopedListWarningData = 0; |
| 3711 buildTargetInstancesScopedListWarningData() { | 3792 buildTargetInstancesScopedListWarningData() { |
| 3712 var o = new api.TargetInstancesScopedListWarningData(); | 3793 var o = new api.TargetInstancesScopedListWarningData(); |
| 3713 buildCounterTargetInstancesScopedListWarningData++; | 3794 buildCounterTargetInstancesScopedListWarningData++; |
| 3714 if (buildCounterTargetInstancesScopedListWarningData < 3) { | 3795 if (buildCounterTargetInstancesScopedListWarningData < 3) { |
| 3715 o.key = "foo"; | 3796 o.key = "foo"; |
| 3716 o.value = "foo"; | 3797 o.value = "foo"; |
| 3717 } | 3798 } |
| 3718 buildCounterTargetInstancesScopedListWarningData--; | 3799 buildCounterTargetInstancesScopedListWarningData--; |
| 3719 return o; | 3800 return o; |
| 3720 } | 3801 } |
| 3721 | 3802 |
| 3722 checkTargetInstancesScopedListWarningData(api.TargetInstancesScopedListWarningDa
ta o) { | 3803 checkTargetInstancesScopedListWarningData(api.TargetInstancesScopedListWarningDa
ta o) { |
| 3723 buildCounterTargetInstancesScopedListWarningData++; | 3804 buildCounterTargetInstancesScopedListWarningData++; |
| 3724 if (buildCounterTargetInstancesScopedListWarningData < 3) { | 3805 if (buildCounterTargetInstancesScopedListWarningData < 3) { |
| 3725 unittest.expect(o.key, unittest.equals('foo')); | 3806 unittest.expect(o.key, unittest.equals('foo')); |
| 3726 unittest.expect(o.value, unittest.equals('foo')); | 3807 unittest.expect(o.value, unittest.equals('foo')); |
| 3727 } | 3808 } |
| 3728 buildCounterTargetInstancesScopedListWarningData--; | 3809 buildCounterTargetInstancesScopedListWarningData--; |
| 3729 } | 3810 } |
| 3730 | 3811 |
| 3731 buildUnnamed1312() { | 3812 buildUnnamed527() { |
| 3732 var o = new core.List<api.TargetInstancesScopedListWarningData>(); | 3813 var o = new core.List<api.TargetInstancesScopedListWarningData>(); |
| 3733 o.add(buildTargetInstancesScopedListWarningData()); | 3814 o.add(buildTargetInstancesScopedListWarningData()); |
| 3734 o.add(buildTargetInstancesScopedListWarningData()); | 3815 o.add(buildTargetInstancesScopedListWarningData()); |
| 3735 return o; | 3816 return o; |
| 3736 } | 3817 } |
| 3737 | 3818 |
| 3738 checkUnnamed1312(core.List<api.TargetInstancesScopedListWarningData> o) { | 3819 checkUnnamed527(core.List<api.TargetInstancesScopedListWarningData> o) { |
| 3739 unittest.expect(o, unittest.hasLength(2)); | 3820 unittest.expect(o, unittest.hasLength(2)); |
| 3740 checkTargetInstancesScopedListWarningData(o[0]); | 3821 checkTargetInstancesScopedListWarningData(o[0]); |
| 3741 checkTargetInstancesScopedListWarningData(o[1]); | 3822 checkTargetInstancesScopedListWarningData(o[1]); |
| 3742 } | 3823 } |
| 3743 | 3824 |
| 3744 core.int buildCounterTargetInstancesScopedListWarning = 0; | 3825 core.int buildCounterTargetInstancesScopedListWarning = 0; |
| 3745 buildTargetInstancesScopedListWarning() { | 3826 buildTargetInstancesScopedListWarning() { |
| 3746 var o = new api.TargetInstancesScopedListWarning(); | 3827 var o = new api.TargetInstancesScopedListWarning(); |
| 3747 buildCounterTargetInstancesScopedListWarning++; | 3828 buildCounterTargetInstancesScopedListWarning++; |
| 3748 if (buildCounterTargetInstancesScopedListWarning < 3) { | 3829 if (buildCounterTargetInstancesScopedListWarning < 3) { |
| 3749 o.code = "foo"; | 3830 o.code = "foo"; |
| 3750 o.data = buildUnnamed1312(); | 3831 o.data = buildUnnamed527(); |
| 3751 o.message = "foo"; | 3832 o.message = "foo"; |
| 3752 } | 3833 } |
| 3753 buildCounterTargetInstancesScopedListWarning--; | 3834 buildCounterTargetInstancesScopedListWarning--; |
| 3754 return o; | 3835 return o; |
| 3755 } | 3836 } |
| 3756 | 3837 |
| 3757 checkTargetInstancesScopedListWarning(api.TargetInstancesScopedListWarning o) { | 3838 checkTargetInstancesScopedListWarning(api.TargetInstancesScopedListWarning o) { |
| 3758 buildCounterTargetInstancesScopedListWarning++; | 3839 buildCounterTargetInstancesScopedListWarning++; |
| 3759 if (buildCounterTargetInstancesScopedListWarning < 3) { | 3840 if (buildCounterTargetInstancesScopedListWarning < 3) { |
| 3760 unittest.expect(o.code, unittest.equals('foo')); | 3841 unittest.expect(o.code, unittest.equals('foo')); |
| 3761 checkUnnamed1312(o.data); | 3842 checkUnnamed527(o.data); |
| 3762 unittest.expect(o.message, unittest.equals('foo')); | 3843 unittest.expect(o.message, unittest.equals('foo')); |
| 3763 } | 3844 } |
| 3764 buildCounterTargetInstancesScopedListWarning--; | 3845 buildCounterTargetInstancesScopedListWarning--; |
| 3765 } | 3846 } |
| 3766 | 3847 |
| 3767 core.int buildCounterTargetInstancesScopedList = 0; | 3848 core.int buildCounterTargetInstancesScopedList = 0; |
| 3768 buildTargetInstancesScopedList() { | 3849 buildTargetInstancesScopedList() { |
| 3769 var o = new api.TargetInstancesScopedList(); | 3850 var o = new api.TargetInstancesScopedList(); |
| 3770 buildCounterTargetInstancesScopedList++; | 3851 buildCounterTargetInstancesScopedList++; |
| 3771 if (buildCounterTargetInstancesScopedList < 3) { | 3852 if (buildCounterTargetInstancesScopedList < 3) { |
| 3772 o.targetInstances = buildUnnamed1311(); | 3853 o.targetInstances = buildUnnamed526(); |
| 3773 o.warning = buildTargetInstancesScopedListWarning(); | 3854 o.warning = buildTargetInstancesScopedListWarning(); |
| 3774 } | 3855 } |
| 3775 buildCounterTargetInstancesScopedList--; | 3856 buildCounterTargetInstancesScopedList--; |
| 3776 return o; | 3857 return o; |
| 3777 } | 3858 } |
| 3778 | 3859 |
| 3779 checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { | 3860 checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { |
| 3780 buildCounterTargetInstancesScopedList++; | 3861 buildCounterTargetInstancesScopedList++; |
| 3781 if (buildCounterTargetInstancesScopedList < 3) { | 3862 if (buildCounterTargetInstancesScopedList < 3) { |
| 3782 checkUnnamed1311(o.targetInstances); | 3863 checkUnnamed526(o.targetInstances); |
| 3783 checkTargetInstancesScopedListWarning(o.warning); | 3864 checkTargetInstancesScopedListWarning(o.warning); |
| 3784 } | 3865 } |
| 3785 buildCounterTargetInstancesScopedList--; | 3866 buildCounterTargetInstancesScopedList--; |
| 3786 } | 3867 } |
| 3787 | 3868 |
| 3788 buildUnnamed1313() { | 3869 buildUnnamed528() { |
| 3789 var o = new core.List<core.String>(); | 3870 var o = new core.List<core.String>(); |
| 3790 o.add("foo"); | 3871 o.add("foo"); |
| 3791 o.add("foo"); | 3872 o.add("foo"); |
| 3792 return o; | 3873 return o; |
| 3793 } | 3874 } |
| 3794 | 3875 |
| 3795 checkUnnamed1313(core.List<core.String> o) { | 3876 checkUnnamed528(core.List<core.String> o) { |
| 3796 unittest.expect(o, unittest.hasLength(2)); | 3877 unittest.expect(o, unittest.hasLength(2)); |
| 3797 unittest.expect(o[0], unittest.equals('foo')); | 3878 unittest.expect(o[0], unittest.equals('foo')); |
| 3798 unittest.expect(o[1], unittest.equals('foo')); | 3879 unittest.expect(o[1], unittest.equals('foo')); |
| 3799 } | 3880 } |
| 3800 | 3881 |
| 3801 buildUnnamed1314() { | 3882 buildUnnamed529() { |
| 3802 var o = new core.List<core.String>(); | 3883 var o = new core.List<core.String>(); |
| 3803 o.add("foo"); | 3884 o.add("foo"); |
| 3804 o.add("foo"); | 3885 o.add("foo"); |
| 3805 return o; | 3886 return o; |
| 3806 } | 3887 } |
| 3807 | 3888 |
| 3808 checkUnnamed1314(core.List<core.String> o) { | 3889 checkUnnamed529(core.List<core.String> o) { |
| 3809 unittest.expect(o, unittest.hasLength(2)); | 3890 unittest.expect(o, unittest.hasLength(2)); |
| 3810 unittest.expect(o[0], unittest.equals('foo')); | 3891 unittest.expect(o[0], unittest.equals('foo')); |
| 3811 unittest.expect(o[1], unittest.equals('foo')); | 3892 unittest.expect(o[1], unittest.equals('foo')); |
| 3812 } | 3893 } |
| 3813 | 3894 |
| 3814 core.int buildCounterTargetPool = 0; | 3895 core.int buildCounterTargetPool = 0; |
| 3815 buildTargetPool() { | 3896 buildTargetPool() { |
| 3816 var o = new api.TargetPool(); | 3897 var o = new api.TargetPool(); |
| 3817 buildCounterTargetPool++; | 3898 buildCounterTargetPool++; |
| 3818 if (buildCounterTargetPool < 3) { | 3899 if (buildCounterTargetPool < 3) { |
| 3819 o.backupPool = "foo"; | 3900 o.backupPool = "foo"; |
| 3820 o.creationTimestamp = "foo"; | 3901 o.creationTimestamp = "foo"; |
| 3821 o.description = "foo"; | 3902 o.description = "foo"; |
| 3822 o.failoverRatio = 42.0; | 3903 o.failoverRatio = 42.0; |
| 3823 o.healthChecks = buildUnnamed1313(); | 3904 o.healthChecks = buildUnnamed528(); |
| 3824 o.id = "foo"; | 3905 o.id = "foo"; |
| 3825 o.instances = buildUnnamed1314(); | 3906 o.instances = buildUnnamed529(); |
| 3826 o.kind = "foo"; | 3907 o.kind = "foo"; |
| 3827 o.name = "foo"; | 3908 o.name = "foo"; |
| 3828 o.region = "foo"; | 3909 o.region = "foo"; |
| 3829 o.selfLink = "foo"; | 3910 o.selfLink = "foo"; |
| 3830 o.sessionAffinity = "foo"; | 3911 o.sessionAffinity = "foo"; |
| 3831 } | 3912 } |
| 3832 buildCounterTargetPool--; | 3913 buildCounterTargetPool--; |
| 3833 return o; | 3914 return o; |
| 3834 } | 3915 } |
| 3835 | 3916 |
| 3836 checkTargetPool(api.TargetPool o) { | 3917 checkTargetPool(api.TargetPool o) { |
| 3837 buildCounterTargetPool++; | 3918 buildCounterTargetPool++; |
| 3838 if (buildCounterTargetPool < 3) { | 3919 if (buildCounterTargetPool < 3) { |
| 3839 unittest.expect(o.backupPool, unittest.equals('foo')); | 3920 unittest.expect(o.backupPool, unittest.equals('foo')); |
| 3840 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 3921 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 3841 unittest.expect(o.description, unittest.equals('foo')); | 3922 unittest.expect(o.description, unittest.equals('foo')); |
| 3842 unittest.expect(o.failoverRatio, unittest.equals(42.0)); | 3923 unittest.expect(o.failoverRatio, unittest.equals(42.0)); |
| 3843 checkUnnamed1313(o.healthChecks); | 3924 checkUnnamed528(o.healthChecks); |
| 3844 unittest.expect(o.id, unittest.equals('foo')); | 3925 unittest.expect(o.id, unittest.equals('foo')); |
| 3845 checkUnnamed1314(o.instances); | 3926 checkUnnamed529(o.instances); |
| 3846 unittest.expect(o.kind, unittest.equals('foo')); | 3927 unittest.expect(o.kind, unittest.equals('foo')); |
| 3847 unittest.expect(o.name, unittest.equals('foo')); | 3928 unittest.expect(o.name, unittest.equals('foo')); |
| 3848 unittest.expect(o.region, unittest.equals('foo')); | 3929 unittest.expect(o.region, unittest.equals('foo')); |
| 3849 unittest.expect(o.selfLink, unittest.equals('foo')); | 3930 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3850 unittest.expect(o.sessionAffinity, unittest.equals('foo')); | 3931 unittest.expect(o.sessionAffinity, unittest.equals('foo')); |
| 3851 } | 3932 } |
| 3852 buildCounterTargetPool--; | 3933 buildCounterTargetPool--; |
| 3853 } | 3934 } |
| 3854 | 3935 |
| 3855 buildUnnamed1315() { | 3936 buildUnnamed530() { |
| 3856 var o = new core.Map<core.String, api.TargetPoolsScopedList>(); | 3937 var o = new core.Map<core.String, api.TargetPoolsScopedList>(); |
| 3857 o["x"] = buildTargetPoolsScopedList(); | 3938 o["x"] = buildTargetPoolsScopedList(); |
| 3858 o["y"] = buildTargetPoolsScopedList(); | 3939 o["y"] = buildTargetPoolsScopedList(); |
| 3859 return o; | 3940 return o; |
| 3860 } | 3941 } |
| 3861 | 3942 |
| 3862 checkUnnamed1315(core.Map<core.String, api.TargetPoolsScopedList> o) { | 3943 checkUnnamed530(core.Map<core.String, api.TargetPoolsScopedList> o) { |
| 3863 unittest.expect(o, unittest.hasLength(2)); | 3944 unittest.expect(o, unittest.hasLength(2)); |
| 3864 checkTargetPoolsScopedList(o["x"]); | 3945 checkTargetPoolsScopedList(o["x"]); |
| 3865 checkTargetPoolsScopedList(o["y"]); | 3946 checkTargetPoolsScopedList(o["y"]); |
| 3866 } | 3947 } |
| 3867 | 3948 |
| 3868 core.int buildCounterTargetPoolAggregatedList = 0; | 3949 core.int buildCounterTargetPoolAggregatedList = 0; |
| 3869 buildTargetPoolAggregatedList() { | 3950 buildTargetPoolAggregatedList() { |
| 3870 var o = new api.TargetPoolAggregatedList(); | 3951 var o = new api.TargetPoolAggregatedList(); |
| 3871 buildCounterTargetPoolAggregatedList++; | 3952 buildCounterTargetPoolAggregatedList++; |
| 3872 if (buildCounterTargetPoolAggregatedList < 3) { | 3953 if (buildCounterTargetPoolAggregatedList < 3) { |
| 3873 o.id = "foo"; | 3954 o.id = "foo"; |
| 3874 o.items = buildUnnamed1315(); | 3955 o.items = buildUnnamed530(); |
| 3875 o.kind = "foo"; | 3956 o.kind = "foo"; |
| 3876 o.nextPageToken = "foo"; | 3957 o.nextPageToken = "foo"; |
| 3877 o.selfLink = "foo"; | 3958 o.selfLink = "foo"; |
| 3878 } | 3959 } |
| 3879 buildCounterTargetPoolAggregatedList--; | 3960 buildCounterTargetPoolAggregatedList--; |
| 3880 return o; | 3961 return o; |
| 3881 } | 3962 } |
| 3882 | 3963 |
| 3883 checkTargetPoolAggregatedList(api.TargetPoolAggregatedList o) { | 3964 checkTargetPoolAggregatedList(api.TargetPoolAggregatedList o) { |
| 3884 buildCounterTargetPoolAggregatedList++; | 3965 buildCounterTargetPoolAggregatedList++; |
| 3885 if (buildCounterTargetPoolAggregatedList < 3) { | 3966 if (buildCounterTargetPoolAggregatedList < 3) { |
| 3886 unittest.expect(o.id, unittest.equals('foo')); | 3967 unittest.expect(o.id, unittest.equals('foo')); |
| 3887 checkUnnamed1315(o.items); | 3968 checkUnnamed530(o.items); |
| 3888 unittest.expect(o.kind, unittest.equals('foo')); | 3969 unittest.expect(o.kind, unittest.equals('foo')); |
| 3889 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3970 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3890 unittest.expect(o.selfLink, unittest.equals('foo')); | 3971 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3891 } | 3972 } |
| 3892 buildCounterTargetPoolAggregatedList--; | 3973 buildCounterTargetPoolAggregatedList--; |
| 3893 } | 3974 } |
| 3894 | 3975 |
| 3895 buildUnnamed1316() { | 3976 buildUnnamed531() { |
| 3896 var o = new core.List<api.HealthStatus>(); | 3977 var o = new core.List<api.HealthStatus>(); |
| 3897 o.add(buildHealthStatus()); | 3978 o.add(buildHealthStatus()); |
| 3898 o.add(buildHealthStatus()); | 3979 o.add(buildHealthStatus()); |
| 3899 return o; | 3980 return o; |
| 3900 } | 3981 } |
| 3901 | 3982 |
| 3902 checkUnnamed1316(core.List<api.HealthStatus> o) { | 3983 checkUnnamed531(core.List<api.HealthStatus> o) { |
| 3903 unittest.expect(o, unittest.hasLength(2)); | 3984 unittest.expect(o, unittest.hasLength(2)); |
| 3904 checkHealthStatus(o[0]); | 3985 checkHealthStatus(o[0]); |
| 3905 checkHealthStatus(o[1]); | 3986 checkHealthStatus(o[1]); |
| 3906 } | 3987 } |
| 3907 | 3988 |
| 3908 core.int buildCounterTargetPoolInstanceHealth = 0; | 3989 core.int buildCounterTargetPoolInstanceHealth = 0; |
| 3909 buildTargetPoolInstanceHealth() { | 3990 buildTargetPoolInstanceHealth() { |
| 3910 var o = new api.TargetPoolInstanceHealth(); | 3991 var o = new api.TargetPoolInstanceHealth(); |
| 3911 buildCounterTargetPoolInstanceHealth++; | 3992 buildCounterTargetPoolInstanceHealth++; |
| 3912 if (buildCounterTargetPoolInstanceHealth < 3) { | 3993 if (buildCounterTargetPoolInstanceHealth < 3) { |
| 3913 o.healthStatus = buildUnnamed1316(); | 3994 o.healthStatus = buildUnnamed531(); |
| 3914 o.kind = "foo"; | 3995 o.kind = "foo"; |
| 3915 } | 3996 } |
| 3916 buildCounterTargetPoolInstanceHealth--; | 3997 buildCounterTargetPoolInstanceHealth--; |
| 3917 return o; | 3998 return o; |
| 3918 } | 3999 } |
| 3919 | 4000 |
| 3920 checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { | 4001 checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { |
| 3921 buildCounterTargetPoolInstanceHealth++; | 4002 buildCounterTargetPoolInstanceHealth++; |
| 3922 if (buildCounterTargetPoolInstanceHealth < 3) { | 4003 if (buildCounterTargetPoolInstanceHealth < 3) { |
| 3923 checkUnnamed1316(o.healthStatus); | 4004 checkUnnamed531(o.healthStatus); |
| 3924 unittest.expect(o.kind, unittest.equals('foo')); | 4005 unittest.expect(o.kind, unittest.equals('foo')); |
| 3925 } | 4006 } |
| 3926 buildCounterTargetPoolInstanceHealth--; | 4007 buildCounterTargetPoolInstanceHealth--; |
| 3927 } | 4008 } |
| 3928 | 4009 |
| 3929 buildUnnamed1317() { | 4010 buildUnnamed532() { |
| 3930 var o = new core.List<api.TargetPool>(); | 4011 var o = new core.List<api.TargetPool>(); |
| 3931 o.add(buildTargetPool()); | 4012 o.add(buildTargetPool()); |
| 3932 o.add(buildTargetPool()); | 4013 o.add(buildTargetPool()); |
| 3933 return o; | 4014 return o; |
| 3934 } | 4015 } |
| 3935 | 4016 |
| 3936 checkUnnamed1317(core.List<api.TargetPool> o) { | 4017 checkUnnamed532(core.List<api.TargetPool> o) { |
| 3937 unittest.expect(o, unittest.hasLength(2)); | 4018 unittest.expect(o, unittest.hasLength(2)); |
| 3938 checkTargetPool(o[0]); | 4019 checkTargetPool(o[0]); |
| 3939 checkTargetPool(o[1]); | 4020 checkTargetPool(o[1]); |
| 3940 } | 4021 } |
| 3941 | 4022 |
| 3942 core.int buildCounterTargetPoolList = 0; | 4023 core.int buildCounterTargetPoolList = 0; |
| 3943 buildTargetPoolList() { | 4024 buildTargetPoolList() { |
| 3944 var o = new api.TargetPoolList(); | 4025 var o = new api.TargetPoolList(); |
| 3945 buildCounterTargetPoolList++; | 4026 buildCounterTargetPoolList++; |
| 3946 if (buildCounterTargetPoolList < 3) { | 4027 if (buildCounterTargetPoolList < 3) { |
| 3947 o.id = "foo"; | 4028 o.id = "foo"; |
| 3948 o.items = buildUnnamed1317(); | 4029 o.items = buildUnnamed532(); |
| 3949 o.kind = "foo"; | 4030 o.kind = "foo"; |
| 3950 o.nextPageToken = "foo"; | 4031 o.nextPageToken = "foo"; |
| 3951 o.selfLink = "foo"; | 4032 o.selfLink = "foo"; |
| 3952 } | 4033 } |
| 3953 buildCounterTargetPoolList--; | 4034 buildCounterTargetPoolList--; |
| 3954 return o; | 4035 return o; |
| 3955 } | 4036 } |
| 3956 | 4037 |
| 3957 checkTargetPoolList(api.TargetPoolList o) { | 4038 checkTargetPoolList(api.TargetPoolList o) { |
| 3958 buildCounterTargetPoolList++; | 4039 buildCounterTargetPoolList++; |
| 3959 if (buildCounterTargetPoolList < 3) { | 4040 if (buildCounterTargetPoolList < 3) { |
| 3960 unittest.expect(o.id, unittest.equals('foo')); | 4041 unittest.expect(o.id, unittest.equals('foo')); |
| 3961 checkUnnamed1317(o.items); | 4042 checkUnnamed532(o.items); |
| 3962 unittest.expect(o.kind, unittest.equals('foo')); | 4043 unittest.expect(o.kind, unittest.equals('foo')); |
| 3963 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 4044 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 3964 unittest.expect(o.selfLink, unittest.equals('foo')); | 4045 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 3965 } | 4046 } |
| 3966 buildCounterTargetPoolList--; | 4047 buildCounterTargetPoolList--; |
| 3967 } | 4048 } |
| 3968 | 4049 |
| 3969 buildUnnamed1318() { | 4050 buildUnnamed533() { |
| 3970 var o = new core.List<api.HealthCheckReference>(); | 4051 var o = new core.List<api.HealthCheckReference>(); |
| 3971 o.add(buildHealthCheckReference()); | 4052 o.add(buildHealthCheckReference()); |
| 3972 o.add(buildHealthCheckReference()); | 4053 o.add(buildHealthCheckReference()); |
| 3973 return o; | 4054 return o; |
| 3974 } | 4055 } |
| 3975 | 4056 |
| 3976 checkUnnamed1318(core.List<api.HealthCheckReference> o) { | 4057 checkUnnamed533(core.List<api.HealthCheckReference> o) { |
| 3977 unittest.expect(o, unittest.hasLength(2)); | 4058 unittest.expect(o, unittest.hasLength(2)); |
| 3978 checkHealthCheckReference(o[0]); | 4059 checkHealthCheckReference(o[0]); |
| 3979 checkHealthCheckReference(o[1]); | 4060 checkHealthCheckReference(o[1]); |
| 3980 } | 4061 } |
| 3981 | 4062 |
| 3982 core.int buildCounterTargetPoolsAddHealthCheckRequest = 0; | 4063 core.int buildCounterTargetPoolsAddHealthCheckRequest = 0; |
| 3983 buildTargetPoolsAddHealthCheckRequest() { | 4064 buildTargetPoolsAddHealthCheckRequest() { |
| 3984 var o = new api.TargetPoolsAddHealthCheckRequest(); | 4065 var o = new api.TargetPoolsAddHealthCheckRequest(); |
| 3985 buildCounterTargetPoolsAddHealthCheckRequest++; | 4066 buildCounterTargetPoolsAddHealthCheckRequest++; |
| 3986 if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { | 4067 if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { |
| 3987 o.healthChecks = buildUnnamed1318(); | 4068 o.healthChecks = buildUnnamed533(); |
| 3988 } | 4069 } |
| 3989 buildCounterTargetPoolsAddHealthCheckRequest--; | 4070 buildCounterTargetPoolsAddHealthCheckRequest--; |
| 3990 return o; | 4071 return o; |
| 3991 } | 4072 } |
| 3992 | 4073 |
| 3993 checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { | 4074 checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { |
| 3994 buildCounterTargetPoolsAddHealthCheckRequest++; | 4075 buildCounterTargetPoolsAddHealthCheckRequest++; |
| 3995 if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { | 4076 if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { |
| 3996 checkUnnamed1318(o.healthChecks); | 4077 checkUnnamed533(o.healthChecks); |
| 3997 } | 4078 } |
| 3998 buildCounterTargetPoolsAddHealthCheckRequest--; | 4079 buildCounterTargetPoolsAddHealthCheckRequest--; |
| 3999 } | 4080 } |
| 4000 | 4081 |
| 4001 buildUnnamed1319() { | 4082 buildUnnamed534() { |
| 4002 var o = new core.List<api.InstanceReference>(); | 4083 var o = new core.List<api.InstanceReference>(); |
| 4003 o.add(buildInstanceReference()); | 4084 o.add(buildInstanceReference()); |
| 4004 o.add(buildInstanceReference()); | 4085 o.add(buildInstanceReference()); |
| 4005 return o; | 4086 return o; |
| 4006 } | 4087 } |
| 4007 | 4088 |
| 4008 checkUnnamed1319(core.List<api.InstanceReference> o) { | 4089 checkUnnamed534(core.List<api.InstanceReference> o) { |
| 4009 unittest.expect(o, unittest.hasLength(2)); | 4090 unittest.expect(o, unittest.hasLength(2)); |
| 4010 checkInstanceReference(o[0]); | 4091 checkInstanceReference(o[0]); |
| 4011 checkInstanceReference(o[1]); | 4092 checkInstanceReference(o[1]); |
| 4012 } | 4093 } |
| 4013 | 4094 |
| 4014 core.int buildCounterTargetPoolsAddInstanceRequest = 0; | 4095 core.int buildCounterTargetPoolsAddInstanceRequest = 0; |
| 4015 buildTargetPoolsAddInstanceRequest() { | 4096 buildTargetPoolsAddInstanceRequest() { |
| 4016 var o = new api.TargetPoolsAddInstanceRequest(); | 4097 var o = new api.TargetPoolsAddInstanceRequest(); |
| 4017 buildCounterTargetPoolsAddInstanceRequest++; | 4098 buildCounterTargetPoolsAddInstanceRequest++; |
| 4018 if (buildCounterTargetPoolsAddInstanceRequest < 3) { | 4099 if (buildCounterTargetPoolsAddInstanceRequest < 3) { |
| 4019 o.instances = buildUnnamed1319(); | 4100 o.instances = buildUnnamed534(); |
| 4020 } | 4101 } |
| 4021 buildCounterTargetPoolsAddInstanceRequest--; | 4102 buildCounterTargetPoolsAddInstanceRequest--; |
| 4022 return o; | 4103 return o; |
| 4023 } | 4104 } |
| 4024 | 4105 |
| 4025 checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { | 4106 checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { |
| 4026 buildCounterTargetPoolsAddInstanceRequest++; | 4107 buildCounterTargetPoolsAddInstanceRequest++; |
| 4027 if (buildCounterTargetPoolsAddInstanceRequest < 3) { | 4108 if (buildCounterTargetPoolsAddInstanceRequest < 3) { |
| 4028 checkUnnamed1319(o.instances); | 4109 checkUnnamed534(o.instances); |
| 4029 } | 4110 } |
| 4030 buildCounterTargetPoolsAddInstanceRequest--; | 4111 buildCounterTargetPoolsAddInstanceRequest--; |
| 4031 } | 4112 } |
| 4032 | 4113 |
| 4033 buildUnnamed1320() { | 4114 buildUnnamed535() { |
| 4034 var o = new core.List<api.HealthCheckReference>(); | 4115 var o = new core.List<api.HealthCheckReference>(); |
| 4035 o.add(buildHealthCheckReference()); | 4116 o.add(buildHealthCheckReference()); |
| 4036 o.add(buildHealthCheckReference()); | 4117 o.add(buildHealthCheckReference()); |
| 4037 return o; | 4118 return o; |
| 4038 } | 4119 } |
| 4039 | 4120 |
| 4040 checkUnnamed1320(core.List<api.HealthCheckReference> o) { | 4121 checkUnnamed535(core.List<api.HealthCheckReference> o) { |
| 4041 unittest.expect(o, unittest.hasLength(2)); | 4122 unittest.expect(o, unittest.hasLength(2)); |
| 4042 checkHealthCheckReference(o[0]); | 4123 checkHealthCheckReference(o[0]); |
| 4043 checkHealthCheckReference(o[1]); | 4124 checkHealthCheckReference(o[1]); |
| 4044 } | 4125 } |
| 4045 | 4126 |
| 4046 core.int buildCounterTargetPoolsRemoveHealthCheckRequest = 0; | 4127 core.int buildCounterTargetPoolsRemoveHealthCheckRequest = 0; |
| 4047 buildTargetPoolsRemoveHealthCheckRequest() { | 4128 buildTargetPoolsRemoveHealthCheckRequest() { |
| 4048 var o = new api.TargetPoolsRemoveHealthCheckRequest(); | 4129 var o = new api.TargetPoolsRemoveHealthCheckRequest(); |
| 4049 buildCounterTargetPoolsRemoveHealthCheckRequest++; | 4130 buildCounterTargetPoolsRemoveHealthCheckRequest++; |
| 4050 if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { | 4131 if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { |
| 4051 o.healthChecks = buildUnnamed1320(); | 4132 o.healthChecks = buildUnnamed535(); |
| 4052 } | 4133 } |
| 4053 buildCounterTargetPoolsRemoveHealthCheckRequest--; | 4134 buildCounterTargetPoolsRemoveHealthCheckRequest--; |
| 4054 return o; | 4135 return o; |
| 4055 } | 4136 } |
| 4056 | 4137 |
| 4057 checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest
o) { | 4138 checkTargetPoolsRemoveHealthCheckRequest(api.TargetPoolsRemoveHealthCheckRequest
o) { |
| 4058 buildCounterTargetPoolsRemoveHealthCheckRequest++; | 4139 buildCounterTargetPoolsRemoveHealthCheckRequest++; |
| 4059 if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { | 4140 if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { |
| 4060 checkUnnamed1320(o.healthChecks); | 4141 checkUnnamed535(o.healthChecks); |
| 4061 } | 4142 } |
| 4062 buildCounterTargetPoolsRemoveHealthCheckRequest--; | 4143 buildCounterTargetPoolsRemoveHealthCheckRequest--; |
| 4063 } | 4144 } |
| 4064 | 4145 |
| 4065 buildUnnamed1321() { | 4146 buildUnnamed536() { |
| 4066 var o = new core.List<api.InstanceReference>(); | 4147 var o = new core.List<api.InstanceReference>(); |
| 4067 o.add(buildInstanceReference()); | 4148 o.add(buildInstanceReference()); |
| 4068 o.add(buildInstanceReference()); | 4149 o.add(buildInstanceReference()); |
| 4069 return o; | 4150 return o; |
| 4070 } | 4151 } |
| 4071 | 4152 |
| 4072 checkUnnamed1321(core.List<api.InstanceReference> o) { | 4153 checkUnnamed536(core.List<api.InstanceReference> o) { |
| 4073 unittest.expect(o, unittest.hasLength(2)); | 4154 unittest.expect(o, unittest.hasLength(2)); |
| 4074 checkInstanceReference(o[0]); | 4155 checkInstanceReference(o[0]); |
| 4075 checkInstanceReference(o[1]); | 4156 checkInstanceReference(o[1]); |
| 4076 } | 4157 } |
| 4077 | 4158 |
| 4078 core.int buildCounterTargetPoolsRemoveInstanceRequest = 0; | 4159 core.int buildCounterTargetPoolsRemoveInstanceRequest = 0; |
| 4079 buildTargetPoolsRemoveInstanceRequest() { | 4160 buildTargetPoolsRemoveInstanceRequest() { |
| 4080 var o = new api.TargetPoolsRemoveInstanceRequest(); | 4161 var o = new api.TargetPoolsRemoveInstanceRequest(); |
| 4081 buildCounterTargetPoolsRemoveInstanceRequest++; | 4162 buildCounterTargetPoolsRemoveInstanceRequest++; |
| 4082 if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { | 4163 if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { |
| 4083 o.instances = buildUnnamed1321(); | 4164 o.instances = buildUnnamed536(); |
| 4084 } | 4165 } |
| 4085 buildCounterTargetPoolsRemoveInstanceRequest--; | 4166 buildCounterTargetPoolsRemoveInstanceRequest--; |
| 4086 return o; | 4167 return o; |
| 4087 } | 4168 } |
| 4088 | 4169 |
| 4089 checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { | 4170 checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { |
| 4090 buildCounterTargetPoolsRemoveInstanceRequest++; | 4171 buildCounterTargetPoolsRemoveInstanceRequest++; |
| 4091 if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { | 4172 if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { |
| 4092 checkUnnamed1321(o.instances); | 4173 checkUnnamed536(o.instances); |
| 4093 } | 4174 } |
| 4094 buildCounterTargetPoolsRemoveInstanceRequest--; | 4175 buildCounterTargetPoolsRemoveInstanceRequest--; |
| 4095 } | 4176 } |
| 4096 | 4177 |
| 4097 buildUnnamed1322() { | 4178 buildUnnamed537() { |
| 4098 var o = new core.List<api.TargetPool>(); | 4179 var o = new core.List<api.TargetPool>(); |
| 4099 o.add(buildTargetPool()); | 4180 o.add(buildTargetPool()); |
| 4100 o.add(buildTargetPool()); | 4181 o.add(buildTargetPool()); |
| 4101 return o; | 4182 return o; |
| 4102 } | 4183 } |
| 4103 | 4184 |
| 4104 checkUnnamed1322(core.List<api.TargetPool> o) { | 4185 checkUnnamed537(core.List<api.TargetPool> o) { |
| 4105 unittest.expect(o, unittest.hasLength(2)); | 4186 unittest.expect(o, unittest.hasLength(2)); |
| 4106 checkTargetPool(o[0]); | 4187 checkTargetPool(o[0]); |
| 4107 checkTargetPool(o[1]); | 4188 checkTargetPool(o[1]); |
| 4108 } | 4189 } |
| 4109 | 4190 |
| 4110 core.int buildCounterTargetPoolsScopedListWarningData = 0; | 4191 core.int buildCounterTargetPoolsScopedListWarningData = 0; |
| 4111 buildTargetPoolsScopedListWarningData() { | 4192 buildTargetPoolsScopedListWarningData() { |
| 4112 var o = new api.TargetPoolsScopedListWarningData(); | 4193 var o = new api.TargetPoolsScopedListWarningData(); |
| 4113 buildCounterTargetPoolsScopedListWarningData++; | 4194 buildCounterTargetPoolsScopedListWarningData++; |
| 4114 if (buildCounterTargetPoolsScopedListWarningData < 3) { | 4195 if (buildCounterTargetPoolsScopedListWarningData < 3) { |
| 4115 o.key = "foo"; | 4196 o.key = "foo"; |
| 4116 o.value = "foo"; | 4197 o.value = "foo"; |
| 4117 } | 4198 } |
| 4118 buildCounterTargetPoolsScopedListWarningData--; | 4199 buildCounterTargetPoolsScopedListWarningData--; |
| 4119 return o; | 4200 return o; |
| 4120 } | 4201 } |
| 4121 | 4202 |
| 4122 checkTargetPoolsScopedListWarningData(api.TargetPoolsScopedListWarningData o) { | 4203 checkTargetPoolsScopedListWarningData(api.TargetPoolsScopedListWarningData o) { |
| 4123 buildCounterTargetPoolsScopedListWarningData++; | 4204 buildCounterTargetPoolsScopedListWarningData++; |
| 4124 if (buildCounterTargetPoolsScopedListWarningData < 3) { | 4205 if (buildCounterTargetPoolsScopedListWarningData < 3) { |
| 4125 unittest.expect(o.key, unittest.equals('foo')); | 4206 unittest.expect(o.key, unittest.equals('foo')); |
| 4126 unittest.expect(o.value, unittest.equals('foo')); | 4207 unittest.expect(o.value, unittest.equals('foo')); |
| 4127 } | 4208 } |
| 4128 buildCounterTargetPoolsScopedListWarningData--; | 4209 buildCounterTargetPoolsScopedListWarningData--; |
| 4129 } | 4210 } |
| 4130 | 4211 |
| 4131 buildUnnamed1323() { | 4212 buildUnnamed538() { |
| 4132 var o = new core.List<api.TargetPoolsScopedListWarningData>(); | 4213 var o = new core.List<api.TargetPoolsScopedListWarningData>(); |
| 4133 o.add(buildTargetPoolsScopedListWarningData()); | 4214 o.add(buildTargetPoolsScopedListWarningData()); |
| 4134 o.add(buildTargetPoolsScopedListWarningData()); | 4215 o.add(buildTargetPoolsScopedListWarningData()); |
| 4135 return o; | 4216 return o; |
| 4136 } | 4217 } |
| 4137 | 4218 |
| 4138 checkUnnamed1323(core.List<api.TargetPoolsScopedListWarningData> o) { | 4219 checkUnnamed538(core.List<api.TargetPoolsScopedListWarningData> o) { |
| 4139 unittest.expect(o, unittest.hasLength(2)); | 4220 unittest.expect(o, unittest.hasLength(2)); |
| 4140 checkTargetPoolsScopedListWarningData(o[0]); | 4221 checkTargetPoolsScopedListWarningData(o[0]); |
| 4141 checkTargetPoolsScopedListWarningData(o[1]); | 4222 checkTargetPoolsScopedListWarningData(o[1]); |
| 4142 } | 4223 } |
| 4143 | 4224 |
| 4144 core.int buildCounterTargetPoolsScopedListWarning = 0; | 4225 core.int buildCounterTargetPoolsScopedListWarning = 0; |
| 4145 buildTargetPoolsScopedListWarning() { | 4226 buildTargetPoolsScopedListWarning() { |
| 4146 var o = new api.TargetPoolsScopedListWarning(); | 4227 var o = new api.TargetPoolsScopedListWarning(); |
| 4147 buildCounterTargetPoolsScopedListWarning++; | 4228 buildCounterTargetPoolsScopedListWarning++; |
| 4148 if (buildCounterTargetPoolsScopedListWarning < 3) { | 4229 if (buildCounterTargetPoolsScopedListWarning < 3) { |
| 4149 o.code = "foo"; | 4230 o.code = "foo"; |
| 4150 o.data = buildUnnamed1323(); | 4231 o.data = buildUnnamed538(); |
| 4151 o.message = "foo"; | 4232 o.message = "foo"; |
| 4152 } | 4233 } |
| 4153 buildCounterTargetPoolsScopedListWarning--; | 4234 buildCounterTargetPoolsScopedListWarning--; |
| 4154 return o; | 4235 return o; |
| 4155 } | 4236 } |
| 4156 | 4237 |
| 4157 checkTargetPoolsScopedListWarning(api.TargetPoolsScopedListWarning o) { | 4238 checkTargetPoolsScopedListWarning(api.TargetPoolsScopedListWarning o) { |
| 4158 buildCounterTargetPoolsScopedListWarning++; | 4239 buildCounterTargetPoolsScopedListWarning++; |
| 4159 if (buildCounterTargetPoolsScopedListWarning < 3) { | 4240 if (buildCounterTargetPoolsScopedListWarning < 3) { |
| 4160 unittest.expect(o.code, unittest.equals('foo')); | 4241 unittest.expect(o.code, unittest.equals('foo')); |
| 4161 checkUnnamed1323(o.data); | 4242 checkUnnamed538(o.data); |
| 4162 unittest.expect(o.message, unittest.equals('foo')); | 4243 unittest.expect(o.message, unittest.equals('foo')); |
| 4163 } | 4244 } |
| 4164 buildCounterTargetPoolsScopedListWarning--; | 4245 buildCounterTargetPoolsScopedListWarning--; |
| 4165 } | 4246 } |
| 4166 | 4247 |
| 4167 core.int buildCounterTargetPoolsScopedList = 0; | 4248 core.int buildCounterTargetPoolsScopedList = 0; |
| 4168 buildTargetPoolsScopedList() { | 4249 buildTargetPoolsScopedList() { |
| 4169 var o = new api.TargetPoolsScopedList(); | 4250 var o = new api.TargetPoolsScopedList(); |
| 4170 buildCounterTargetPoolsScopedList++; | 4251 buildCounterTargetPoolsScopedList++; |
| 4171 if (buildCounterTargetPoolsScopedList < 3) { | 4252 if (buildCounterTargetPoolsScopedList < 3) { |
| 4172 o.targetPools = buildUnnamed1322(); | 4253 o.targetPools = buildUnnamed537(); |
| 4173 o.warning = buildTargetPoolsScopedListWarning(); | 4254 o.warning = buildTargetPoolsScopedListWarning(); |
| 4174 } | 4255 } |
| 4175 buildCounterTargetPoolsScopedList--; | 4256 buildCounterTargetPoolsScopedList--; |
| 4176 return o; | 4257 return o; |
| 4177 } | 4258 } |
| 4178 | 4259 |
| 4179 checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { | 4260 checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { |
| 4180 buildCounterTargetPoolsScopedList++; | 4261 buildCounterTargetPoolsScopedList++; |
| 4181 if (buildCounterTargetPoolsScopedList < 3) { | 4262 if (buildCounterTargetPoolsScopedList < 3) { |
| 4182 checkUnnamed1322(o.targetPools); | 4263 checkUnnamed537(o.targetPools); |
| 4183 checkTargetPoolsScopedListWarning(o.warning); | 4264 checkTargetPoolsScopedListWarning(o.warning); |
| 4184 } | 4265 } |
| 4185 buildCounterTargetPoolsScopedList--; | 4266 buildCounterTargetPoolsScopedList--; |
| 4186 } | 4267 } |
| 4187 | 4268 |
| 4188 core.int buildCounterTargetReference = 0; | 4269 core.int buildCounterTargetReference = 0; |
| 4189 buildTargetReference() { | 4270 buildTargetReference() { |
| 4190 var o = new api.TargetReference(); | 4271 var o = new api.TargetReference(); |
| 4191 buildCounterTargetReference++; | 4272 buildCounterTargetReference++; |
| 4192 if (buildCounterTargetReference < 3) { | 4273 if (buildCounterTargetReference < 3) { |
| 4193 o.target = "foo"; | 4274 o.target = "foo"; |
| 4194 } | 4275 } |
| 4195 buildCounterTargetReference--; | 4276 buildCounterTargetReference--; |
| 4196 return o; | 4277 return o; |
| 4197 } | 4278 } |
| 4198 | 4279 |
| 4199 checkTargetReference(api.TargetReference o) { | 4280 checkTargetReference(api.TargetReference o) { |
| 4200 buildCounterTargetReference++; | 4281 buildCounterTargetReference++; |
| 4201 if (buildCounterTargetReference < 3) { | 4282 if (buildCounterTargetReference < 3) { |
| 4202 unittest.expect(o.target, unittest.equals('foo')); | 4283 unittest.expect(o.target, unittest.equals('foo')); |
| 4203 } | 4284 } |
| 4204 buildCounterTargetReference--; | 4285 buildCounterTargetReference--; |
| 4205 } | 4286 } |
| 4206 | 4287 |
| 4288 buildUnnamed539() { |
| 4289 var o = new core.List<core.String>(); |
| 4290 o.add("foo"); |
| 4291 o.add("foo"); |
| 4292 return o; |
| 4293 } |
| 4294 |
| 4295 checkUnnamed539(core.List<core.String> o) { |
| 4296 unittest.expect(o, unittest.hasLength(2)); |
| 4297 unittest.expect(o[0], unittest.equals('foo')); |
| 4298 unittest.expect(o[1], unittest.equals('foo')); |
| 4299 } |
| 4300 |
| 4301 buildUnnamed540() { |
| 4302 var o = new core.List<core.String>(); |
| 4303 o.add("foo"); |
| 4304 o.add("foo"); |
| 4305 return o; |
| 4306 } |
| 4307 |
| 4308 checkUnnamed540(core.List<core.String> o) { |
| 4309 unittest.expect(o, unittest.hasLength(2)); |
| 4310 unittest.expect(o[0], unittest.equals('foo')); |
| 4311 unittest.expect(o[1], unittest.equals('foo')); |
| 4312 } |
| 4313 |
| 4314 core.int buildCounterTargetVpnGateway = 0; |
| 4315 buildTargetVpnGateway() { |
| 4316 var o = new api.TargetVpnGateway(); |
| 4317 buildCounterTargetVpnGateway++; |
| 4318 if (buildCounterTargetVpnGateway < 3) { |
| 4319 o.creationTimestamp = "foo"; |
| 4320 o.description = "foo"; |
| 4321 o.forwardingRules = buildUnnamed539(); |
| 4322 o.id = "foo"; |
| 4323 o.kind = "foo"; |
| 4324 o.name = "foo"; |
| 4325 o.network = "foo"; |
| 4326 o.region = "foo"; |
| 4327 o.selfLink = "foo"; |
| 4328 o.status = "foo"; |
| 4329 o.tunnels = buildUnnamed540(); |
| 4330 } |
| 4331 buildCounterTargetVpnGateway--; |
| 4332 return o; |
| 4333 } |
| 4334 |
| 4335 checkTargetVpnGateway(api.TargetVpnGateway o) { |
| 4336 buildCounterTargetVpnGateway++; |
| 4337 if (buildCounterTargetVpnGateway < 3) { |
| 4338 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 4339 unittest.expect(o.description, unittest.equals('foo')); |
| 4340 checkUnnamed539(o.forwardingRules); |
| 4341 unittest.expect(o.id, unittest.equals('foo')); |
| 4342 unittest.expect(o.kind, unittest.equals('foo')); |
| 4343 unittest.expect(o.name, unittest.equals('foo')); |
| 4344 unittest.expect(o.network, unittest.equals('foo')); |
| 4345 unittest.expect(o.region, unittest.equals('foo')); |
| 4346 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4347 unittest.expect(o.status, unittest.equals('foo')); |
| 4348 checkUnnamed540(o.tunnels); |
| 4349 } |
| 4350 buildCounterTargetVpnGateway--; |
| 4351 } |
| 4352 |
| 4353 buildUnnamed541() { |
| 4354 var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>(); |
| 4355 o["x"] = buildTargetVpnGatewaysScopedList(); |
| 4356 o["y"] = buildTargetVpnGatewaysScopedList(); |
| 4357 return o; |
| 4358 } |
| 4359 |
| 4360 checkUnnamed541(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { |
| 4361 unittest.expect(o, unittest.hasLength(2)); |
| 4362 checkTargetVpnGatewaysScopedList(o["x"]); |
| 4363 checkTargetVpnGatewaysScopedList(o["y"]); |
| 4364 } |
| 4365 |
| 4366 core.int buildCounterTargetVpnGatewayAggregatedList = 0; |
| 4367 buildTargetVpnGatewayAggregatedList() { |
| 4368 var o = new api.TargetVpnGatewayAggregatedList(); |
| 4369 buildCounterTargetVpnGatewayAggregatedList++; |
| 4370 if (buildCounterTargetVpnGatewayAggregatedList < 3) { |
| 4371 o.id = "foo"; |
| 4372 o.items = buildUnnamed541(); |
| 4373 o.kind = "foo"; |
| 4374 o.nextPageToken = "foo"; |
| 4375 o.selfLink = "foo"; |
| 4376 } |
| 4377 buildCounterTargetVpnGatewayAggregatedList--; |
| 4378 return o; |
| 4379 } |
| 4380 |
| 4381 checkTargetVpnGatewayAggregatedList(api.TargetVpnGatewayAggregatedList o) { |
| 4382 buildCounterTargetVpnGatewayAggregatedList++; |
| 4383 if (buildCounterTargetVpnGatewayAggregatedList < 3) { |
| 4384 unittest.expect(o.id, unittest.equals('foo')); |
| 4385 checkUnnamed541(o.items); |
| 4386 unittest.expect(o.kind, unittest.equals('foo')); |
| 4387 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4388 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4389 } |
| 4390 buildCounterTargetVpnGatewayAggregatedList--; |
| 4391 } |
| 4392 |
| 4393 buildUnnamed542() { |
| 4394 var o = new core.List<api.TargetVpnGateway>(); |
| 4395 o.add(buildTargetVpnGateway()); |
| 4396 o.add(buildTargetVpnGateway()); |
| 4397 return o; |
| 4398 } |
| 4399 |
| 4400 checkUnnamed542(core.List<api.TargetVpnGateway> o) { |
| 4401 unittest.expect(o, unittest.hasLength(2)); |
| 4402 checkTargetVpnGateway(o[0]); |
| 4403 checkTargetVpnGateway(o[1]); |
| 4404 } |
| 4405 |
| 4406 core.int buildCounterTargetVpnGatewayList = 0; |
| 4407 buildTargetVpnGatewayList() { |
| 4408 var o = new api.TargetVpnGatewayList(); |
| 4409 buildCounterTargetVpnGatewayList++; |
| 4410 if (buildCounterTargetVpnGatewayList < 3) { |
| 4411 o.id = "foo"; |
| 4412 o.items = buildUnnamed542(); |
| 4413 o.kind = "foo"; |
| 4414 o.nextPageToken = "foo"; |
| 4415 o.selfLink = "foo"; |
| 4416 } |
| 4417 buildCounterTargetVpnGatewayList--; |
| 4418 return o; |
| 4419 } |
| 4420 |
| 4421 checkTargetVpnGatewayList(api.TargetVpnGatewayList o) { |
| 4422 buildCounterTargetVpnGatewayList++; |
| 4423 if (buildCounterTargetVpnGatewayList < 3) { |
| 4424 unittest.expect(o.id, unittest.equals('foo')); |
| 4425 checkUnnamed542(o.items); |
| 4426 unittest.expect(o.kind, unittest.equals('foo')); |
| 4427 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4428 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4429 } |
| 4430 buildCounterTargetVpnGatewayList--; |
| 4431 } |
| 4432 |
| 4433 buildUnnamed543() { |
| 4434 var o = new core.List<api.TargetVpnGateway>(); |
| 4435 o.add(buildTargetVpnGateway()); |
| 4436 o.add(buildTargetVpnGateway()); |
| 4437 return o; |
| 4438 } |
| 4439 |
| 4440 checkUnnamed543(core.List<api.TargetVpnGateway> o) { |
| 4441 unittest.expect(o, unittest.hasLength(2)); |
| 4442 checkTargetVpnGateway(o[0]); |
| 4443 checkTargetVpnGateway(o[1]); |
| 4444 } |
| 4445 |
| 4446 core.int buildCounterTargetVpnGatewaysScopedListWarningData = 0; |
| 4447 buildTargetVpnGatewaysScopedListWarningData() { |
| 4448 var o = new api.TargetVpnGatewaysScopedListWarningData(); |
| 4449 buildCounterTargetVpnGatewaysScopedListWarningData++; |
| 4450 if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) { |
| 4451 o.key = "foo"; |
| 4452 o.value = "foo"; |
| 4453 } |
| 4454 buildCounterTargetVpnGatewaysScopedListWarningData--; |
| 4455 return o; |
| 4456 } |
| 4457 |
| 4458 checkTargetVpnGatewaysScopedListWarningData(api.TargetVpnGatewaysScopedListWarni
ngData o) { |
| 4459 buildCounterTargetVpnGatewaysScopedListWarningData++; |
| 4460 if (buildCounterTargetVpnGatewaysScopedListWarningData < 3) { |
| 4461 unittest.expect(o.key, unittest.equals('foo')); |
| 4462 unittest.expect(o.value, unittest.equals('foo')); |
| 4463 } |
| 4464 buildCounterTargetVpnGatewaysScopedListWarningData--; |
| 4465 } |
| 4466 |
| 4467 buildUnnamed544() { |
| 4468 var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>(); |
| 4469 o.add(buildTargetVpnGatewaysScopedListWarningData()); |
| 4470 o.add(buildTargetVpnGatewaysScopedListWarningData()); |
| 4471 return o; |
| 4472 } |
| 4473 |
| 4474 checkUnnamed544(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { |
| 4475 unittest.expect(o, unittest.hasLength(2)); |
| 4476 checkTargetVpnGatewaysScopedListWarningData(o[0]); |
| 4477 checkTargetVpnGatewaysScopedListWarningData(o[1]); |
| 4478 } |
| 4479 |
| 4480 core.int buildCounterTargetVpnGatewaysScopedListWarning = 0; |
| 4481 buildTargetVpnGatewaysScopedListWarning() { |
| 4482 var o = new api.TargetVpnGatewaysScopedListWarning(); |
| 4483 buildCounterTargetVpnGatewaysScopedListWarning++; |
| 4484 if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { |
| 4485 o.code = "foo"; |
| 4486 o.data = buildUnnamed544(); |
| 4487 o.message = "foo"; |
| 4488 } |
| 4489 buildCounterTargetVpnGatewaysScopedListWarning--; |
| 4490 return o; |
| 4491 } |
| 4492 |
| 4493 checkTargetVpnGatewaysScopedListWarning(api.TargetVpnGatewaysScopedListWarning o
) { |
| 4494 buildCounterTargetVpnGatewaysScopedListWarning++; |
| 4495 if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { |
| 4496 unittest.expect(o.code, unittest.equals('foo')); |
| 4497 checkUnnamed544(o.data); |
| 4498 unittest.expect(o.message, unittest.equals('foo')); |
| 4499 } |
| 4500 buildCounterTargetVpnGatewaysScopedListWarning--; |
| 4501 } |
| 4502 |
| 4503 core.int buildCounterTargetVpnGatewaysScopedList = 0; |
| 4504 buildTargetVpnGatewaysScopedList() { |
| 4505 var o = new api.TargetVpnGatewaysScopedList(); |
| 4506 buildCounterTargetVpnGatewaysScopedList++; |
| 4507 if (buildCounterTargetVpnGatewaysScopedList < 3) { |
| 4508 o.targetVpnGateways = buildUnnamed543(); |
| 4509 o.warning = buildTargetVpnGatewaysScopedListWarning(); |
| 4510 } |
| 4511 buildCounterTargetVpnGatewaysScopedList--; |
| 4512 return o; |
| 4513 } |
| 4514 |
| 4515 checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { |
| 4516 buildCounterTargetVpnGatewaysScopedList++; |
| 4517 if (buildCounterTargetVpnGatewaysScopedList < 3) { |
| 4518 checkUnnamed543(o.targetVpnGateways); |
| 4519 checkTargetVpnGatewaysScopedListWarning(o.warning); |
| 4520 } |
| 4521 buildCounterTargetVpnGatewaysScopedList--; |
| 4522 } |
| 4523 |
| 4207 core.int buildCounterTestFailure = 0; | 4524 core.int buildCounterTestFailure = 0; |
| 4208 buildTestFailure() { | 4525 buildTestFailure() { |
| 4209 var o = new api.TestFailure(); | 4526 var o = new api.TestFailure(); |
| 4210 buildCounterTestFailure++; | 4527 buildCounterTestFailure++; |
| 4211 if (buildCounterTestFailure < 3) { | 4528 if (buildCounterTestFailure < 3) { |
| 4212 o.actualService = "foo"; | 4529 o.actualService = "foo"; |
| 4213 o.expectedService = "foo"; | 4530 o.expectedService = "foo"; |
| 4214 o.host = "foo"; | 4531 o.host = "foo"; |
| 4215 o.path = "foo"; | 4532 o.path = "foo"; |
| 4216 } | 4533 } |
| 4217 buildCounterTestFailure--; | 4534 buildCounterTestFailure--; |
| 4218 return o; | 4535 return o; |
| 4219 } | 4536 } |
| 4220 | 4537 |
| 4221 checkTestFailure(api.TestFailure o) { | 4538 checkTestFailure(api.TestFailure o) { |
| 4222 buildCounterTestFailure++; | 4539 buildCounterTestFailure++; |
| 4223 if (buildCounterTestFailure < 3) { | 4540 if (buildCounterTestFailure < 3) { |
| 4224 unittest.expect(o.actualService, unittest.equals('foo')); | 4541 unittest.expect(o.actualService, unittest.equals('foo')); |
| 4225 unittest.expect(o.expectedService, unittest.equals('foo')); | 4542 unittest.expect(o.expectedService, unittest.equals('foo')); |
| 4226 unittest.expect(o.host, unittest.equals('foo')); | 4543 unittest.expect(o.host, unittest.equals('foo')); |
| 4227 unittest.expect(o.path, unittest.equals('foo')); | 4544 unittest.expect(o.path, unittest.equals('foo')); |
| 4228 } | 4545 } |
| 4229 buildCounterTestFailure--; | 4546 buildCounterTestFailure--; |
| 4230 } | 4547 } |
| 4231 | 4548 |
| 4232 buildUnnamed1324() { | 4549 buildUnnamed545() { |
| 4233 var o = new core.List<api.HostRule>(); | 4550 var o = new core.List<api.HostRule>(); |
| 4234 o.add(buildHostRule()); | 4551 o.add(buildHostRule()); |
| 4235 o.add(buildHostRule()); | 4552 o.add(buildHostRule()); |
| 4236 return o; | 4553 return o; |
| 4237 } | 4554 } |
| 4238 | 4555 |
| 4239 checkUnnamed1324(core.List<api.HostRule> o) { | 4556 checkUnnamed545(core.List<api.HostRule> o) { |
| 4240 unittest.expect(o, unittest.hasLength(2)); | 4557 unittest.expect(o, unittest.hasLength(2)); |
| 4241 checkHostRule(o[0]); | 4558 checkHostRule(o[0]); |
| 4242 checkHostRule(o[1]); | 4559 checkHostRule(o[1]); |
| 4243 } | 4560 } |
| 4244 | 4561 |
| 4245 buildUnnamed1325() { | 4562 buildUnnamed546() { |
| 4246 var o = new core.List<api.PathMatcher>(); | 4563 var o = new core.List<api.PathMatcher>(); |
| 4247 o.add(buildPathMatcher()); | 4564 o.add(buildPathMatcher()); |
| 4248 o.add(buildPathMatcher()); | 4565 o.add(buildPathMatcher()); |
| 4249 return o; | 4566 return o; |
| 4250 } | 4567 } |
| 4251 | 4568 |
| 4252 checkUnnamed1325(core.List<api.PathMatcher> o) { | 4569 checkUnnamed546(core.List<api.PathMatcher> o) { |
| 4253 unittest.expect(o, unittest.hasLength(2)); | 4570 unittest.expect(o, unittest.hasLength(2)); |
| 4254 checkPathMatcher(o[0]); | 4571 checkPathMatcher(o[0]); |
| 4255 checkPathMatcher(o[1]); | 4572 checkPathMatcher(o[1]); |
| 4256 } | 4573 } |
| 4257 | 4574 |
| 4258 buildUnnamed1326() { | 4575 buildUnnamed547() { |
| 4259 var o = new core.List<api.UrlMapTest>(); | 4576 var o = new core.List<api.UrlMapTest>(); |
| 4260 o.add(buildUrlMapTest()); | 4577 o.add(buildUrlMapTest()); |
| 4261 o.add(buildUrlMapTest()); | 4578 o.add(buildUrlMapTest()); |
| 4262 return o; | 4579 return o; |
| 4263 } | 4580 } |
| 4264 | 4581 |
| 4265 checkUnnamed1326(core.List<api.UrlMapTest> o) { | 4582 checkUnnamed547(core.List<api.UrlMapTest> o) { |
| 4266 unittest.expect(o, unittest.hasLength(2)); | 4583 unittest.expect(o, unittest.hasLength(2)); |
| 4267 checkUrlMapTest(o[0]); | 4584 checkUrlMapTest(o[0]); |
| 4268 checkUrlMapTest(o[1]); | 4585 checkUrlMapTest(o[1]); |
| 4269 } | 4586 } |
| 4270 | 4587 |
| 4271 core.int buildCounterUrlMap = 0; | 4588 core.int buildCounterUrlMap = 0; |
| 4272 buildUrlMap() { | 4589 buildUrlMap() { |
| 4273 var o = new api.UrlMap(); | 4590 var o = new api.UrlMap(); |
| 4274 buildCounterUrlMap++; | 4591 buildCounterUrlMap++; |
| 4275 if (buildCounterUrlMap < 3) { | 4592 if (buildCounterUrlMap < 3) { |
| 4276 o.creationTimestamp = "foo"; | 4593 o.creationTimestamp = "foo"; |
| 4277 o.defaultService = "foo"; | 4594 o.defaultService = "foo"; |
| 4278 o.description = "foo"; | 4595 o.description = "foo"; |
| 4279 o.fingerprint = "foo"; | 4596 o.fingerprint = "foo"; |
| 4280 o.hostRules = buildUnnamed1324(); | 4597 o.hostRules = buildUnnamed545(); |
| 4281 o.id = "foo"; | 4598 o.id = "foo"; |
| 4282 o.kind = "foo"; | 4599 o.kind = "foo"; |
| 4283 o.name = "foo"; | 4600 o.name = "foo"; |
| 4284 o.pathMatchers = buildUnnamed1325(); | 4601 o.pathMatchers = buildUnnamed546(); |
| 4285 o.selfLink = "foo"; | 4602 o.selfLink = "foo"; |
| 4286 o.tests = buildUnnamed1326(); | 4603 o.tests = buildUnnamed547(); |
| 4287 } | 4604 } |
| 4288 buildCounterUrlMap--; | 4605 buildCounterUrlMap--; |
| 4289 return o; | 4606 return o; |
| 4290 } | 4607 } |
| 4291 | 4608 |
| 4292 checkUrlMap(api.UrlMap o) { | 4609 checkUrlMap(api.UrlMap o) { |
| 4293 buildCounterUrlMap++; | 4610 buildCounterUrlMap++; |
| 4294 if (buildCounterUrlMap < 3) { | 4611 if (buildCounterUrlMap < 3) { |
| 4295 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 4612 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 4296 unittest.expect(o.defaultService, unittest.equals('foo')); | 4613 unittest.expect(o.defaultService, unittest.equals('foo')); |
| 4297 unittest.expect(o.description, unittest.equals('foo')); | 4614 unittest.expect(o.description, unittest.equals('foo')); |
| 4298 unittest.expect(o.fingerprint, unittest.equals('foo')); | 4615 unittest.expect(o.fingerprint, unittest.equals('foo')); |
| 4299 checkUnnamed1324(o.hostRules); | 4616 checkUnnamed545(o.hostRules); |
| 4300 unittest.expect(o.id, unittest.equals('foo')); | 4617 unittest.expect(o.id, unittest.equals('foo')); |
| 4301 unittest.expect(o.kind, unittest.equals('foo')); | 4618 unittest.expect(o.kind, unittest.equals('foo')); |
| 4302 unittest.expect(o.name, unittest.equals('foo')); | 4619 unittest.expect(o.name, unittest.equals('foo')); |
| 4303 checkUnnamed1325(o.pathMatchers); | 4620 checkUnnamed546(o.pathMatchers); |
| 4304 unittest.expect(o.selfLink, unittest.equals('foo')); | 4621 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4305 checkUnnamed1326(o.tests); | 4622 checkUnnamed547(o.tests); |
| 4306 } | 4623 } |
| 4307 buildCounterUrlMap--; | 4624 buildCounterUrlMap--; |
| 4308 } | 4625 } |
| 4309 | 4626 |
| 4310 buildUnnamed1327() { | 4627 buildUnnamed548() { |
| 4311 var o = new core.List<api.UrlMap>(); | 4628 var o = new core.List<api.UrlMap>(); |
| 4312 o.add(buildUrlMap()); | 4629 o.add(buildUrlMap()); |
| 4313 o.add(buildUrlMap()); | 4630 o.add(buildUrlMap()); |
| 4314 return o; | 4631 return o; |
| 4315 } | 4632 } |
| 4316 | 4633 |
| 4317 checkUnnamed1327(core.List<api.UrlMap> o) { | 4634 checkUnnamed548(core.List<api.UrlMap> o) { |
| 4318 unittest.expect(o, unittest.hasLength(2)); | 4635 unittest.expect(o, unittest.hasLength(2)); |
| 4319 checkUrlMap(o[0]); | 4636 checkUrlMap(o[0]); |
| 4320 checkUrlMap(o[1]); | 4637 checkUrlMap(o[1]); |
| 4321 } | 4638 } |
| 4322 | 4639 |
| 4323 core.int buildCounterUrlMapList = 0; | 4640 core.int buildCounterUrlMapList = 0; |
| 4324 buildUrlMapList() { | 4641 buildUrlMapList() { |
| 4325 var o = new api.UrlMapList(); | 4642 var o = new api.UrlMapList(); |
| 4326 buildCounterUrlMapList++; | 4643 buildCounterUrlMapList++; |
| 4327 if (buildCounterUrlMapList < 3) { | 4644 if (buildCounterUrlMapList < 3) { |
| 4328 o.id = "foo"; | 4645 o.id = "foo"; |
| 4329 o.items = buildUnnamed1327(); | 4646 o.items = buildUnnamed548(); |
| 4330 o.kind = "foo"; | 4647 o.kind = "foo"; |
| 4331 o.nextPageToken = "foo"; | 4648 o.nextPageToken = "foo"; |
| 4332 o.selfLink = "foo"; | 4649 o.selfLink = "foo"; |
| 4333 } | 4650 } |
| 4334 buildCounterUrlMapList--; | 4651 buildCounterUrlMapList--; |
| 4335 return o; | 4652 return o; |
| 4336 } | 4653 } |
| 4337 | 4654 |
| 4338 checkUrlMapList(api.UrlMapList o) { | 4655 checkUrlMapList(api.UrlMapList o) { |
| 4339 buildCounterUrlMapList++; | 4656 buildCounterUrlMapList++; |
| 4340 if (buildCounterUrlMapList < 3) { | 4657 if (buildCounterUrlMapList < 3) { |
| 4341 unittest.expect(o.id, unittest.equals('foo')); | 4658 unittest.expect(o.id, unittest.equals('foo')); |
| 4342 checkUnnamed1327(o.items); | 4659 checkUnnamed548(o.items); |
| 4343 unittest.expect(o.kind, unittest.equals('foo')); | 4660 unittest.expect(o.kind, unittest.equals('foo')); |
| 4344 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 4661 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4345 unittest.expect(o.selfLink, unittest.equals('foo')); | 4662 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4346 } | 4663 } |
| 4347 buildCounterUrlMapList--; | 4664 buildCounterUrlMapList--; |
| 4348 } | 4665 } |
| 4349 | 4666 |
| 4350 core.int buildCounterUrlMapReference = 0; | 4667 core.int buildCounterUrlMapReference = 0; |
| 4351 buildUrlMapReference() { | 4668 buildUrlMapReference() { |
| 4352 var o = new api.UrlMapReference(); | 4669 var o = new api.UrlMapReference(); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4384 buildCounterUrlMapTest++; | 4701 buildCounterUrlMapTest++; |
| 4385 if (buildCounterUrlMapTest < 3) { | 4702 if (buildCounterUrlMapTest < 3) { |
| 4386 unittest.expect(o.description, unittest.equals('foo')); | 4703 unittest.expect(o.description, unittest.equals('foo')); |
| 4387 unittest.expect(o.host, unittest.equals('foo')); | 4704 unittest.expect(o.host, unittest.equals('foo')); |
| 4388 unittest.expect(o.path, unittest.equals('foo')); | 4705 unittest.expect(o.path, unittest.equals('foo')); |
| 4389 unittest.expect(o.service, unittest.equals('foo')); | 4706 unittest.expect(o.service, unittest.equals('foo')); |
| 4390 } | 4707 } |
| 4391 buildCounterUrlMapTest--; | 4708 buildCounterUrlMapTest--; |
| 4392 } | 4709 } |
| 4393 | 4710 |
| 4394 buildUnnamed1328() { | 4711 buildUnnamed549() { |
| 4395 var o = new core.List<core.String>(); | 4712 var o = new core.List<core.String>(); |
| 4396 o.add("foo"); | 4713 o.add("foo"); |
| 4397 o.add("foo"); | 4714 o.add("foo"); |
| 4398 return o; | 4715 return o; |
| 4399 } | 4716 } |
| 4400 | 4717 |
| 4401 checkUnnamed1328(core.List<core.String> o) { | 4718 checkUnnamed549(core.List<core.String> o) { |
| 4402 unittest.expect(o, unittest.hasLength(2)); | 4719 unittest.expect(o, unittest.hasLength(2)); |
| 4403 unittest.expect(o[0], unittest.equals('foo')); | 4720 unittest.expect(o[0], unittest.equals('foo')); |
| 4404 unittest.expect(o[1], unittest.equals('foo')); | 4721 unittest.expect(o[1], unittest.equals('foo')); |
| 4405 } | 4722 } |
| 4406 | 4723 |
| 4407 buildUnnamed1329() { | 4724 buildUnnamed550() { |
| 4408 var o = new core.List<api.TestFailure>(); | 4725 var o = new core.List<api.TestFailure>(); |
| 4409 o.add(buildTestFailure()); | 4726 o.add(buildTestFailure()); |
| 4410 o.add(buildTestFailure()); | 4727 o.add(buildTestFailure()); |
| 4411 return o; | 4728 return o; |
| 4412 } | 4729 } |
| 4413 | 4730 |
| 4414 checkUnnamed1329(core.List<api.TestFailure> o) { | 4731 checkUnnamed550(core.List<api.TestFailure> o) { |
| 4415 unittest.expect(o, unittest.hasLength(2)); | 4732 unittest.expect(o, unittest.hasLength(2)); |
| 4416 checkTestFailure(o[0]); | 4733 checkTestFailure(o[0]); |
| 4417 checkTestFailure(o[1]); | 4734 checkTestFailure(o[1]); |
| 4418 } | 4735 } |
| 4419 | 4736 |
| 4420 core.int buildCounterUrlMapValidationResult = 0; | 4737 core.int buildCounterUrlMapValidationResult = 0; |
| 4421 buildUrlMapValidationResult() { | 4738 buildUrlMapValidationResult() { |
| 4422 var o = new api.UrlMapValidationResult(); | 4739 var o = new api.UrlMapValidationResult(); |
| 4423 buildCounterUrlMapValidationResult++; | 4740 buildCounterUrlMapValidationResult++; |
| 4424 if (buildCounterUrlMapValidationResult < 3) { | 4741 if (buildCounterUrlMapValidationResult < 3) { |
| 4425 o.loadErrors = buildUnnamed1328(); | 4742 o.loadErrors = buildUnnamed549(); |
| 4426 o.loadSucceeded = true; | 4743 o.loadSucceeded = true; |
| 4427 o.testFailures = buildUnnamed1329(); | 4744 o.testFailures = buildUnnamed550(); |
| 4428 o.testPassed = true; | 4745 o.testPassed = true; |
| 4429 } | 4746 } |
| 4430 buildCounterUrlMapValidationResult--; | 4747 buildCounterUrlMapValidationResult--; |
| 4431 return o; | 4748 return o; |
| 4432 } | 4749 } |
| 4433 | 4750 |
| 4434 checkUrlMapValidationResult(api.UrlMapValidationResult o) { | 4751 checkUrlMapValidationResult(api.UrlMapValidationResult o) { |
| 4435 buildCounterUrlMapValidationResult++; | 4752 buildCounterUrlMapValidationResult++; |
| 4436 if (buildCounterUrlMapValidationResult < 3) { | 4753 if (buildCounterUrlMapValidationResult < 3) { |
| 4437 checkUnnamed1328(o.loadErrors); | 4754 checkUnnamed549(o.loadErrors); |
| 4438 unittest.expect(o.loadSucceeded, unittest.isTrue); | 4755 unittest.expect(o.loadSucceeded, unittest.isTrue); |
| 4439 checkUnnamed1329(o.testFailures); | 4756 checkUnnamed550(o.testFailures); |
| 4440 unittest.expect(o.testPassed, unittest.isTrue); | 4757 unittest.expect(o.testPassed, unittest.isTrue); |
| 4441 } | 4758 } |
| 4442 buildCounterUrlMapValidationResult--; | 4759 buildCounterUrlMapValidationResult--; |
| 4443 } | 4760 } |
| 4444 | 4761 |
| 4445 core.int buildCounterUrlMapsValidateRequest = 0; | 4762 core.int buildCounterUrlMapsValidateRequest = 0; |
| 4446 buildUrlMapsValidateRequest() { | 4763 buildUrlMapsValidateRequest() { |
| 4447 var o = new api.UrlMapsValidateRequest(); | 4764 var o = new api.UrlMapsValidateRequest(); |
| 4448 buildCounterUrlMapsValidateRequest++; | 4765 buildCounterUrlMapsValidateRequest++; |
| 4449 if (buildCounterUrlMapsValidateRequest < 3) { | 4766 if (buildCounterUrlMapsValidateRequest < 3) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4494 | 4811 |
| 4495 checkUsageExportLocation(api.UsageExportLocation o) { | 4812 checkUsageExportLocation(api.UsageExportLocation o) { |
| 4496 buildCounterUsageExportLocation++; | 4813 buildCounterUsageExportLocation++; |
| 4497 if (buildCounterUsageExportLocation < 3) { | 4814 if (buildCounterUsageExportLocation < 3) { |
| 4498 unittest.expect(o.bucketName, unittest.equals('foo')); | 4815 unittest.expect(o.bucketName, unittest.equals('foo')); |
| 4499 unittest.expect(o.reportNamePrefix, unittest.equals('foo')); | 4816 unittest.expect(o.reportNamePrefix, unittest.equals('foo')); |
| 4500 } | 4817 } |
| 4501 buildCounterUsageExportLocation--; | 4818 buildCounterUsageExportLocation--; |
| 4502 } | 4819 } |
| 4503 | 4820 |
| 4821 buildUnnamed551() { |
| 4822 var o = new core.List<core.String>(); |
| 4823 o.add("foo"); |
| 4824 o.add("foo"); |
| 4825 return o; |
| 4826 } |
| 4827 |
| 4828 checkUnnamed551(core.List<core.String> o) { |
| 4829 unittest.expect(o, unittest.hasLength(2)); |
| 4830 unittest.expect(o[0], unittest.equals('foo')); |
| 4831 unittest.expect(o[1], unittest.equals('foo')); |
| 4832 } |
| 4833 |
| 4834 core.int buildCounterVpnTunnel = 0; |
| 4835 buildVpnTunnel() { |
| 4836 var o = new api.VpnTunnel(); |
| 4837 buildCounterVpnTunnel++; |
| 4838 if (buildCounterVpnTunnel < 3) { |
| 4839 o.creationTimestamp = "foo"; |
| 4840 o.description = "foo"; |
| 4841 o.detailedStatus = "foo"; |
| 4842 o.id = "foo"; |
| 4843 o.ikeNetworks = buildUnnamed551(); |
| 4844 o.ikeVersion = 42; |
| 4845 o.kind = "foo"; |
| 4846 o.name = "foo"; |
| 4847 o.peerIp = "foo"; |
| 4848 o.region = "foo"; |
| 4849 o.selfLink = "foo"; |
| 4850 o.sharedSecret = "foo"; |
| 4851 o.sharedSecretHash = "foo"; |
| 4852 o.status = "foo"; |
| 4853 o.targetVpnGateway = "foo"; |
| 4854 } |
| 4855 buildCounterVpnTunnel--; |
| 4856 return o; |
| 4857 } |
| 4858 |
| 4859 checkVpnTunnel(api.VpnTunnel o) { |
| 4860 buildCounterVpnTunnel++; |
| 4861 if (buildCounterVpnTunnel < 3) { |
| 4862 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 4863 unittest.expect(o.description, unittest.equals('foo')); |
| 4864 unittest.expect(o.detailedStatus, unittest.equals('foo')); |
| 4865 unittest.expect(o.id, unittest.equals('foo')); |
| 4866 checkUnnamed551(o.ikeNetworks); |
| 4867 unittest.expect(o.ikeVersion, unittest.equals(42)); |
| 4868 unittest.expect(o.kind, unittest.equals('foo')); |
| 4869 unittest.expect(o.name, unittest.equals('foo')); |
| 4870 unittest.expect(o.peerIp, unittest.equals('foo')); |
| 4871 unittest.expect(o.region, unittest.equals('foo')); |
| 4872 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4873 unittest.expect(o.sharedSecret, unittest.equals('foo')); |
| 4874 unittest.expect(o.sharedSecretHash, unittest.equals('foo')); |
| 4875 unittest.expect(o.status, unittest.equals('foo')); |
| 4876 unittest.expect(o.targetVpnGateway, unittest.equals('foo')); |
| 4877 } |
| 4878 buildCounterVpnTunnel--; |
| 4879 } |
| 4880 |
| 4881 buildUnnamed552() { |
| 4882 var o = new core.Map<core.String, api.VpnTunnelsScopedList>(); |
| 4883 o["x"] = buildVpnTunnelsScopedList(); |
| 4884 o["y"] = buildVpnTunnelsScopedList(); |
| 4885 return o; |
| 4886 } |
| 4887 |
| 4888 checkUnnamed552(core.Map<core.String, api.VpnTunnelsScopedList> o) { |
| 4889 unittest.expect(o, unittest.hasLength(2)); |
| 4890 checkVpnTunnelsScopedList(o["x"]); |
| 4891 checkVpnTunnelsScopedList(o["y"]); |
| 4892 } |
| 4893 |
| 4894 core.int buildCounterVpnTunnelAggregatedList = 0; |
| 4895 buildVpnTunnelAggregatedList() { |
| 4896 var o = new api.VpnTunnelAggregatedList(); |
| 4897 buildCounterVpnTunnelAggregatedList++; |
| 4898 if (buildCounterVpnTunnelAggregatedList < 3) { |
| 4899 o.id = "foo"; |
| 4900 o.items = buildUnnamed552(); |
| 4901 o.kind = "foo"; |
| 4902 o.nextPageToken = "foo"; |
| 4903 o.selfLink = "foo"; |
| 4904 } |
| 4905 buildCounterVpnTunnelAggregatedList--; |
| 4906 return o; |
| 4907 } |
| 4908 |
| 4909 checkVpnTunnelAggregatedList(api.VpnTunnelAggregatedList o) { |
| 4910 buildCounterVpnTunnelAggregatedList++; |
| 4911 if (buildCounterVpnTunnelAggregatedList < 3) { |
| 4912 unittest.expect(o.id, unittest.equals('foo')); |
| 4913 checkUnnamed552(o.items); |
| 4914 unittest.expect(o.kind, unittest.equals('foo')); |
| 4915 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4916 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4917 } |
| 4918 buildCounterVpnTunnelAggregatedList--; |
| 4919 } |
| 4920 |
| 4921 buildUnnamed553() { |
| 4922 var o = new core.List<api.VpnTunnel>(); |
| 4923 o.add(buildVpnTunnel()); |
| 4924 o.add(buildVpnTunnel()); |
| 4925 return o; |
| 4926 } |
| 4927 |
| 4928 checkUnnamed553(core.List<api.VpnTunnel> o) { |
| 4929 unittest.expect(o, unittest.hasLength(2)); |
| 4930 checkVpnTunnel(o[0]); |
| 4931 checkVpnTunnel(o[1]); |
| 4932 } |
| 4933 |
| 4934 core.int buildCounterVpnTunnelList = 0; |
| 4935 buildVpnTunnelList() { |
| 4936 var o = new api.VpnTunnelList(); |
| 4937 buildCounterVpnTunnelList++; |
| 4938 if (buildCounterVpnTunnelList < 3) { |
| 4939 o.id = "foo"; |
| 4940 o.items = buildUnnamed553(); |
| 4941 o.kind = "foo"; |
| 4942 o.nextPageToken = "foo"; |
| 4943 o.selfLink = "foo"; |
| 4944 } |
| 4945 buildCounterVpnTunnelList--; |
| 4946 return o; |
| 4947 } |
| 4948 |
| 4949 checkVpnTunnelList(api.VpnTunnelList o) { |
| 4950 buildCounterVpnTunnelList++; |
| 4951 if (buildCounterVpnTunnelList < 3) { |
| 4952 unittest.expect(o.id, unittest.equals('foo')); |
| 4953 checkUnnamed553(o.items); |
| 4954 unittest.expect(o.kind, unittest.equals('foo')); |
| 4955 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4956 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4957 } |
| 4958 buildCounterVpnTunnelList--; |
| 4959 } |
| 4960 |
| 4961 buildUnnamed554() { |
| 4962 var o = new core.List<api.VpnTunnel>(); |
| 4963 o.add(buildVpnTunnel()); |
| 4964 o.add(buildVpnTunnel()); |
| 4965 return o; |
| 4966 } |
| 4967 |
| 4968 checkUnnamed554(core.List<api.VpnTunnel> o) { |
| 4969 unittest.expect(o, unittest.hasLength(2)); |
| 4970 checkVpnTunnel(o[0]); |
| 4971 checkVpnTunnel(o[1]); |
| 4972 } |
| 4973 |
| 4974 core.int buildCounterVpnTunnelsScopedListWarningData = 0; |
| 4975 buildVpnTunnelsScopedListWarningData() { |
| 4976 var o = new api.VpnTunnelsScopedListWarningData(); |
| 4977 buildCounterVpnTunnelsScopedListWarningData++; |
| 4978 if (buildCounterVpnTunnelsScopedListWarningData < 3) { |
| 4979 o.key = "foo"; |
| 4980 o.value = "foo"; |
| 4981 } |
| 4982 buildCounterVpnTunnelsScopedListWarningData--; |
| 4983 return o; |
| 4984 } |
| 4985 |
| 4986 checkVpnTunnelsScopedListWarningData(api.VpnTunnelsScopedListWarningData o) { |
| 4987 buildCounterVpnTunnelsScopedListWarningData++; |
| 4988 if (buildCounterVpnTunnelsScopedListWarningData < 3) { |
| 4989 unittest.expect(o.key, unittest.equals('foo')); |
| 4990 unittest.expect(o.value, unittest.equals('foo')); |
| 4991 } |
| 4992 buildCounterVpnTunnelsScopedListWarningData--; |
| 4993 } |
| 4994 |
| 4995 buildUnnamed555() { |
| 4996 var o = new core.List<api.VpnTunnelsScopedListWarningData>(); |
| 4997 o.add(buildVpnTunnelsScopedListWarningData()); |
| 4998 o.add(buildVpnTunnelsScopedListWarningData()); |
| 4999 return o; |
| 5000 } |
| 5001 |
| 5002 checkUnnamed555(core.List<api.VpnTunnelsScopedListWarningData> o) { |
| 5003 unittest.expect(o, unittest.hasLength(2)); |
| 5004 checkVpnTunnelsScopedListWarningData(o[0]); |
| 5005 checkVpnTunnelsScopedListWarningData(o[1]); |
| 5006 } |
| 5007 |
| 5008 core.int buildCounterVpnTunnelsScopedListWarning = 0; |
| 5009 buildVpnTunnelsScopedListWarning() { |
| 5010 var o = new api.VpnTunnelsScopedListWarning(); |
| 5011 buildCounterVpnTunnelsScopedListWarning++; |
| 5012 if (buildCounterVpnTunnelsScopedListWarning < 3) { |
| 5013 o.code = "foo"; |
| 5014 o.data = buildUnnamed555(); |
| 5015 o.message = "foo"; |
| 5016 } |
| 5017 buildCounterVpnTunnelsScopedListWarning--; |
| 5018 return o; |
| 5019 } |
| 5020 |
| 5021 checkVpnTunnelsScopedListWarning(api.VpnTunnelsScopedListWarning o) { |
| 5022 buildCounterVpnTunnelsScopedListWarning++; |
| 5023 if (buildCounterVpnTunnelsScopedListWarning < 3) { |
| 5024 unittest.expect(o.code, unittest.equals('foo')); |
| 5025 checkUnnamed555(o.data); |
| 5026 unittest.expect(o.message, unittest.equals('foo')); |
| 5027 } |
| 5028 buildCounterVpnTunnelsScopedListWarning--; |
| 5029 } |
| 5030 |
| 5031 core.int buildCounterVpnTunnelsScopedList = 0; |
| 5032 buildVpnTunnelsScopedList() { |
| 5033 var o = new api.VpnTunnelsScopedList(); |
| 5034 buildCounterVpnTunnelsScopedList++; |
| 5035 if (buildCounterVpnTunnelsScopedList < 3) { |
| 5036 o.vpnTunnels = buildUnnamed554(); |
| 5037 o.warning = buildVpnTunnelsScopedListWarning(); |
| 5038 } |
| 5039 buildCounterVpnTunnelsScopedList--; |
| 5040 return o; |
| 5041 } |
| 5042 |
| 5043 checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { |
| 5044 buildCounterVpnTunnelsScopedList++; |
| 5045 if (buildCounterVpnTunnelsScopedList < 3) { |
| 5046 checkUnnamed554(o.vpnTunnels); |
| 5047 checkVpnTunnelsScopedListWarning(o.warning); |
| 5048 } |
| 5049 buildCounterVpnTunnelsScopedList--; |
| 5050 } |
| 5051 |
| 4504 core.int buildCounterZoneMaintenanceWindows = 0; | 5052 core.int buildCounterZoneMaintenanceWindows = 0; |
| 4505 buildZoneMaintenanceWindows() { | 5053 buildZoneMaintenanceWindows() { |
| 4506 var o = new api.ZoneMaintenanceWindows(); | 5054 var o = new api.ZoneMaintenanceWindows(); |
| 4507 buildCounterZoneMaintenanceWindows++; | 5055 buildCounterZoneMaintenanceWindows++; |
| 4508 if (buildCounterZoneMaintenanceWindows < 3) { | 5056 if (buildCounterZoneMaintenanceWindows < 3) { |
| 4509 o.beginTime = "foo"; | 5057 o.beginTime = "foo"; |
| 4510 o.description = "foo"; | 5058 o.description = "foo"; |
| 4511 o.endTime = "foo"; | 5059 o.endTime = "foo"; |
| 4512 o.name = "foo"; | 5060 o.name = "foo"; |
| 4513 } | 5061 } |
| 4514 buildCounterZoneMaintenanceWindows--; | 5062 buildCounterZoneMaintenanceWindows--; |
| 4515 return o; | 5063 return o; |
| 4516 } | 5064 } |
| 4517 | 5065 |
| 4518 checkZoneMaintenanceWindows(api.ZoneMaintenanceWindows o) { | 5066 checkZoneMaintenanceWindows(api.ZoneMaintenanceWindows o) { |
| 4519 buildCounterZoneMaintenanceWindows++; | 5067 buildCounterZoneMaintenanceWindows++; |
| 4520 if (buildCounterZoneMaintenanceWindows < 3) { | 5068 if (buildCounterZoneMaintenanceWindows < 3) { |
| 4521 unittest.expect(o.beginTime, unittest.equals('foo')); | 5069 unittest.expect(o.beginTime, unittest.equals('foo')); |
| 4522 unittest.expect(o.description, unittest.equals('foo')); | 5070 unittest.expect(o.description, unittest.equals('foo')); |
| 4523 unittest.expect(o.endTime, unittest.equals('foo')); | 5071 unittest.expect(o.endTime, unittest.equals('foo')); |
| 4524 unittest.expect(o.name, unittest.equals('foo')); | 5072 unittest.expect(o.name, unittest.equals('foo')); |
| 4525 } | 5073 } |
| 4526 buildCounterZoneMaintenanceWindows--; | 5074 buildCounterZoneMaintenanceWindows--; |
| 4527 } | 5075 } |
| 4528 | 5076 |
| 4529 buildUnnamed1330() { | 5077 buildUnnamed556() { |
| 4530 var o = new core.List<api.ZoneMaintenanceWindows>(); | 5078 var o = new core.List<api.ZoneMaintenanceWindows>(); |
| 4531 o.add(buildZoneMaintenanceWindows()); | 5079 o.add(buildZoneMaintenanceWindows()); |
| 4532 o.add(buildZoneMaintenanceWindows()); | 5080 o.add(buildZoneMaintenanceWindows()); |
| 4533 return o; | 5081 return o; |
| 4534 } | 5082 } |
| 4535 | 5083 |
| 4536 checkUnnamed1330(core.List<api.ZoneMaintenanceWindows> o) { | 5084 checkUnnamed556(core.List<api.ZoneMaintenanceWindows> o) { |
| 4537 unittest.expect(o, unittest.hasLength(2)); | 5085 unittest.expect(o, unittest.hasLength(2)); |
| 4538 checkZoneMaintenanceWindows(o[0]); | 5086 checkZoneMaintenanceWindows(o[0]); |
| 4539 checkZoneMaintenanceWindows(o[1]); | 5087 checkZoneMaintenanceWindows(o[1]); |
| 4540 } | 5088 } |
| 4541 | 5089 |
| 4542 core.int buildCounterZone = 0; | 5090 core.int buildCounterZone = 0; |
| 4543 buildZone() { | 5091 buildZone() { |
| 4544 var o = new api.Zone(); | 5092 var o = new api.Zone(); |
| 4545 buildCounterZone++; | 5093 buildCounterZone++; |
| 4546 if (buildCounterZone < 3) { | 5094 if (buildCounterZone < 3) { |
| 4547 o.creationTimestamp = "foo"; | 5095 o.creationTimestamp = "foo"; |
| 4548 o.deprecated = buildDeprecationStatus(); | 5096 o.deprecated = buildDeprecationStatus(); |
| 4549 o.description = "foo"; | 5097 o.description = "foo"; |
| 4550 o.id = "foo"; | 5098 o.id = "foo"; |
| 4551 o.kind = "foo"; | 5099 o.kind = "foo"; |
| 4552 o.maintenanceWindows = buildUnnamed1330(); | 5100 o.maintenanceWindows = buildUnnamed556(); |
| 4553 o.name = "foo"; | 5101 o.name = "foo"; |
| 4554 o.region = "foo"; | 5102 o.region = "foo"; |
| 4555 o.selfLink = "foo"; | 5103 o.selfLink = "foo"; |
| 4556 o.status = "foo"; | 5104 o.status = "foo"; |
| 4557 } | 5105 } |
| 4558 buildCounterZone--; | 5106 buildCounterZone--; |
| 4559 return o; | 5107 return o; |
| 4560 } | 5108 } |
| 4561 | 5109 |
| 4562 checkZone(api.Zone o) { | 5110 checkZone(api.Zone o) { |
| 4563 buildCounterZone++; | 5111 buildCounterZone++; |
| 4564 if (buildCounterZone < 3) { | 5112 if (buildCounterZone < 3) { |
| 4565 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 5113 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 4566 checkDeprecationStatus(o.deprecated); | 5114 checkDeprecationStatus(o.deprecated); |
| 4567 unittest.expect(o.description, unittest.equals('foo')); | 5115 unittest.expect(o.description, unittest.equals('foo')); |
| 4568 unittest.expect(o.id, unittest.equals('foo')); | 5116 unittest.expect(o.id, unittest.equals('foo')); |
| 4569 unittest.expect(o.kind, unittest.equals('foo')); | 5117 unittest.expect(o.kind, unittest.equals('foo')); |
| 4570 checkUnnamed1330(o.maintenanceWindows); | 5118 checkUnnamed556(o.maintenanceWindows); |
| 4571 unittest.expect(o.name, unittest.equals('foo')); | 5119 unittest.expect(o.name, unittest.equals('foo')); |
| 4572 unittest.expect(o.region, unittest.equals('foo')); | 5120 unittest.expect(o.region, unittest.equals('foo')); |
| 4573 unittest.expect(o.selfLink, unittest.equals('foo')); | 5121 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4574 unittest.expect(o.status, unittest.equals('foo')); | 5122 unittest.expect(o.status, unittest.equals('foo')); |
| 4575 } | 5123 } |
| 4576 buildCounterZone--; | 5124 buildCounterZone--; |
| 4577 } | 5125 } |
| 4578 | 5126 |
| 4579 buildUnnamed1331() { | 5127 buildUnnamed557() { |
| 4580 var o = new core.List<api.Zone>(); | 5128 var o = new core.List<api.Zone>(); |
| 4581 o.add(buildZone()); | 5129 o.add(buildZone()); |
| 4582 o.add(buildZone()); | 5130 o.add(buildZone()); |
| 4583 return o; | 5131 return o; |
| 4584 } | 5132 } |
| 4585 | 5133 |
| 4586 checkUnnamed1331(core.List<api.Zone> o) { | 5134 checkUnnamed557(core.List<api.Zone> o) { |
| 4587 unittest.expect(o, unittest.hasLength(2)); | 5135 unittest.expect(o, unittest.hasLength(2)); |
| 4588 checkZone(o[0]); | 5136 checkZone(o[0]); |
| 4589 checkZone(o[1]); | 5137 checkZone(o[1]); |
| 4590 } | 5138 } |
| 4591 | 5139 |
| 4592 core.int buildCounterZoneList = 0; | 5140 core.int buildCounterZoneList = 0; |
| 4593 buildZoneList() { | 5141 buildZoneList() { |
| 4594 var o = new api.ZoneList(); | 5142 var o = new api.ZoneList(); |
| 4595 buildCounterZoneList++; | 5143 buildCounterZoneList++; |
| 4596 if (buildCounterZoneList < 3) { | 5144 if (buildCounterZoneList < 3) { |
| 4597 o.id = "foo"; | 5145 o.id = "foo"; |
| 4598 o.items = buildUnnamed1331(); | 5146 o.items = buildUnnamed557(); |
| 4599 o.kind = "foo"; | 5147 o.kind = "foo"; |
| 4600 o.nextPageToken = "foo"; | 5148 o.nextPageToken = "foo"; |
| 4601 o.selfLink = "foo"; | 5149 o.selfLink = "foo"; |
| 4602 } | 5150 } |
| 4603 buildCounterZoneList--; | 5151 buildCounterZoneList--; |
| 4604 return o; | 5152 return o; |
| 4605 } | 5153 } |
| 4606 | 5154 |
| 4607 checkZoneList(api.ZoneList o) { | 5155 checkZoneList(api.ZoneList o) { |
| 4608 buildCounterZoneList++; | 5156 buildCounterZoneList++; |
| 4609 if (buildCounterZoneList < 3) { | 5157 if (buildCounterZoneList < 3) { |
| 4610 unittest.expect(o.id, unittest.equals('foo')); | 5158 unittest.expect(o.id, unittest.equals('foo')); |
| 4611 checkUnnamed1331(o.items); | 5159 checkUnnamed557(o.items); |
| 4612 unittest.expect(o.kind, unittest.equals('foo')); | 5160 unittest.expect(o.kind, unittest.equals('foo')); |
| 4613 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 5161 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 4614 unittest.expect(o.selfLink, unittest.equals('foo')); | 5162 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 4615 } | 5163 } |
| 4616 buildCounterZoneList--; | 5164 buildCounterZoneList--; |
| 4617 } | 5165 } |
| 4618 | 5166 |
| 4619 | 5167 |
| 4620 main() { | 5168 main() { |
| 4621 unittest.group("obj-schema-AccessConfig", () { | 5169 unittest.group("obj-schema-AccessConfig", () { |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4764 | 5312 |
| 4765 unittest.group("obj-schema-DiskList", () { | 5313 unittest.group("obj-schema-DiskList", () { |
| 4766 unittest.test("to-json--from-json", () { | 5314 unittest.test("to-json--from-json", () { |
| 4767 var o = buildDiskList(); | 5315 var o = buildDiskList(); |
| 4768 var od = new api.DiskList.fromJson(o.toJson()); | 5316 var od = new api.DiskList.fromJson(o.toJson()); |
| 4769 checkDiskList(od); | 5317 checkDiskList(od); |
| 4770 }); | 5318 }); |
| 4771 }); | 5319 }); |
| 4772 | 5320 |
| 4773 | 5321 |
| 5322 unittest.group("obj-schema-DiskMoveRequest", () { |
| 5323 unittest.test("to-json--from-json", () { |
| 5324 var o = buildDiskMoveRequest(); |
| 5325 var od = new api.DiskMoveRequest.fromJson(o.toJson()); |
| 5326 checkDiskMoveRequest(od); |
| 5327 }); |
| 5328 }); |
| 5329 |
| 5330 |
| 4774 unittest.group("obj-schema-DiskType", () { | 5331 unittest.group("obj-schema-DiskType", () { |
| 4775 unittest.test("to-json--from-json", () { | 5332 unittest.test("to-json--from-json", () { |
| 4776 var o = buildDiskType(); | 5333 var o = buildDiskType(); |
| 4777 var od = new api.DiskType.fromJson(o.toJson()); | 5334 var od = new api.DiskType.fromJson(o.toJson()); |
| 4778 checkDiskType(od); | 5335 checkDiskType(od); |
| 4779 }); | 5336 }); |
| 4780 }); | 5337 }); |
| 4781 | 5338 |
| 4782 | 5339 |
| 4783 unittest.group("obj-schema-DiskTypeAggregatedList", () { | 5340 unittest.group("obj-schema-DiskTypeAggregatedList", () { |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5025 | 5582 |
| 5026 unittest.group("obj-schema-InstanceList", () { | 5583 unittest.group("obj-schema-InstanceList", () { |
| 5027 unittest.test("to-json--from-json", () { | 5584 unittest.test("to-json--from-json", () { |
| 5028 var o = buildInstanceList(); | 5585 var o = buildInstanceList(); |
| 5029 var od = new api.InstanceList.fromJson(o.toJson()); | 5586 var od = new api.InstanceList.fromJson(o.toJson()); |
| 5030 checkInstanceList(od); | 5587 checkInstanceList(od); |
| 5031 }); | 5588 }); |
| 5032 }); | 5589 }); |
| 5033 | 5590 |
| 5034 | 5591 |
| 5592 unittest.group("obj-schema-InstanceMoveRequest", () { |
| 5593 unittest.test("to-json--from-json", () { |
| 5594 var o = buildInstanceMoveRequest(); |
| 5595 var od = new api.InstanceMoveRequest.fromJson(o.toJson()); |
| 5596 checkInstanceMoveRequest(od); |
| 5597 }); |
| 5598 }); |
| 5599 |
| 5600 |
| 5035 unittest.group("obj-schema-InstanceProperties", () { | 5601 unittest.group("obj-schema-InstanceProperties", () { |
| 5036 unittest.test("to-json--from-json", () { | 5602 unittest.test("to-json--from-json", () { |
| 5037 var o = buildInstanceProperties(); | 5603 var o = buildInstanceProperties(); |
| 5038 var od = new api.InstanceProperties.fromJson(o.toJson()); | 5604 var od = new api.InstanceProperties.fromJson(o.toJson()); |
| 5039 checkInstanceProperties(od); | 5605 checkInstanceProperties(od); |
| 5040 }); | 5606 }); |
| 5041 }); | 5607 }); |
| 5042 | 5608 |
| 5043 | 5609 |
| 5044 unittest.group("obj-schema-InstanceReference", () { | 5610 unittest.group("obj-schema-InstanceReference", () { |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5628 | 6194 |
| 5629 unittest.group("obj-schema-TargetReference", () { | 6195 unittest.group("obj-schema-TargetReference", () { |
| 5630 unittest.test("to-json--from-json", () { | 6196 unittest.test("to-json--from-json", () { |
| 5631 var o = buildTargetReference(); | 6197 var o = buildTargetReference(); |
| 5632 var od = new api.TargetReference.fromJson(o.toJson()); | 6198 var od = new api.TargetReference.fromJson(o.toJson()); |
| 5633 checkTargetReference(od); | 6199 checkTargetReference(od); |
| 5634 }); | 6200 }); |
| 5635 }); | 6201 }); |
| 5636 | 6202 |
| 5637 | 6203 |
| 6204 unittest.group("obj-schema-TargetVpnGateway", () { |
| 6205 unittest.test("to-json--from-json", () { |
| 6206 var o = buildTargetVpnGateway(); |
| 6207 var od = new api.TargetVpnGateway.fromJson(o.toJson()); |
| 6208 checkTargetVpnGateway(od); |
| 6209 }); |
| 6210 }); |
| 6211 |
| 6212 |
| 6213 unittest.group("obj-schema-TargetVpnGatewayAggregatedList", () { |
| 6214 unittest.test("to-json--from-json", () { |
| 6215 var o = buildTargetVpnGatewayAggregatedList(); |
| 6216 var od = new api.TargetVpnGatewayAggregatedList.fromJson(o.toJson()); |
| 6217 checkTargetVpnGatewayAggregatedList(od); |
| 6218 }); |
| 6219 }); |
| 6220 |
| 6221 |
| 6222 unittest.group("obj-schema-TargetVpnGatewayList", () { |
| 6223 unittest.test("to-json--from-json", () { |
| 6224 var o = buildTargetVpnGatewayList(); |
| 6225 var od = new api.TargetVpnGatewayList.fromJson(o.toJson()); |
| 6226 checkTargetVpnGatewayList(od); |
| 6227 }); |
| 6228 }); |
| 6229 |
| 6230 |
| 6231 unittest.group("obj-schema-TargetVpnGatewaysScopedListWarningData", () { |
| 6232 unittest.test("to-json--from-json", () { |
| 6233 var o = buildTargetVpnGatewaysScopedListWarningData(); |
| 6234 var od = new api.TargetVpnGatewaysScopedListWarningData.fromJson(o.toJson(
)); |
| 6235 checkTargetVpnGatewaysScopedListWarningData(od); |
| 6236 }); |
| 6237 }); |
| 6238 |
| 6239 |
| 6240 unittest.group("obj-schema-TargetVpnGatewaysScopedListWarning", () { |
| 6241 unittest.test("to-json--from-json", () { |
| 6242 var o = buildTargetVpnGatewaysScopedListWarning(); |
| 6243 var od = new api.TargetVpnGatewaysScopedListWarning.fromJson(o.toJson()); |
| 6244 checkTargetVpnGatewaysScopedListWarning(od); |
| 6245 }); |
| 6246 }); |
| 6247 |
| 6248 |
| 6249 unittest.group("obj-schema-TargetVpnGatewaysScopedList", () { |
| 6250 unittest.test("to-json--from-json", () { |
| 6251 var o = buildTargetVpnGatewaysScopedList(); |
| 6252 var od = new api.TargetVpnGatewaysScopedList.fromJson(o.toJson()); |
| 6253 checkTargetVpnGatewaysScopedList(od); |
| 6254 }); |
| 6255 }); |
| 6256 |
| 6257 |
| 5638 unittest.group("obj-schema-TestFailure", () { | 6258 unittest.group("obj-schema-TestFailure", () { |
| 5639 unittest.test("to-json--from-json", () { | 6259 unittest.test("to-json--from-json", () { |
| 5640 var o = buildTestFailure(); | 6260 var o = buildTestFailure(); |
| 5641 var od = new api.TestFailure.fromJson(o.toJson()); | 6261 var od = new api.TestFailure.fromJson(o.toJson()); |
| 5642 checkTestFailure(od); | 6262 checkTestFailure(od); |
| 5643 }); | 6263 }); |
| 5644 }); | 6264 }); |
| 5645 | 6265 |
| 5646 | 6266 |
| 5647 unittest.group("obj-schema-UrlMap", () { | 6267 unittest.group("obj-schema-UrlMap", () { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5709 | 6329 |
| 5710 unittest.group("obj-schema-UsageExportLocation", () { | 6330 unittest.group("obj-schema-UsageExportLocation", () { |
| 5711 unittest.test("to-json--from-json", () { | 6331 unittest.test("to-json--from-json", () { |
| 5712 var o = buildUsageExportLocation(); | 6332 var o = buildUsageExportLocation(); |
| 5713 var od = new api.UsageExportLocation.fromJson(o.toJson()); | 6333 var od = new api.UsageExportLocation.fromJson(o.toJson()); |
| 5714 checkUsageExportLocation(od); | 6334 checkUsageExportLocation(od); |
| 5715 }); | 6335 }); |
| 5716 }); | 6336 }); |
| 5717 | 6337 |
| 5718 | 6338 |
| 6339 unittest.group("obj-schema-VpnTunnel", () { |
| 6340 unittest.test("to-json--from-json", () { |
| 6341 var o = buildVpnTunnel(); |
| 6342 var od = new api.VpnTunnel.fromJson(o.toJson()); |
| 6343 checkVpnTunnel(od); |
| 6344 }); |
| 6345 }); |
| 6346 |
| 6347 |
| 6348 unittest.group("obj-schema-VpnTunnelAggregatedList", () { |
| 6349 unittest.test("to-json--from-json", () { |
| 6350 var o = buildVpnTunnelAggregatedList(); |
| 6351 var od = new api.VpnTunnelAggregatedList.fromJson(o.toJson()); |
| 6352 checkVpnTunnelAggregatedList(od); |
| 6353 }); |
| 6354 }); |
| 6355 |
| 6356 |
| 6357 unittest.group("obj-schema-VpnTunnelList", () { |
| 6358 unittest.test("to-json--from-json", () { |
| 6359 var o = buildVpnTunnelList(); |
| 6360 var od = new api.VpnTunnelList.fromJson(o.toJson()); |
| 6361 checkVpnTunnelList(od); |
| 6362 }); |
| 6363 }); |
| 6364 |
| 6365 |
| 6366 unittest.group("obj-schema-VpnTunnelsScopedListWarningData", () { |
| 6367 unittest.test("to-json--from-json", () { |
| 6368 var o = buildVpnTunnelsScopedListWarningData(); |
| 6369 var od = new api.VpnTunnelsScopedListWarningData.fromJson(o.toJson()); |
| 6370 checkVpnTunnelsScopedListWarningData(od); |
| 6371 }); |
| 6372 }); |
| 6373 |
| 6374 |
| 6375 unittest.group("obj-schema-VpnTunnelsScopedListWarning", () { |
| 6376 unittest.test("to-json--from-json", () { |
| 6377 var o = buildVpnTunnelsScopedListWarning(); |
| 6378 var od = new api.VpnTunnelsScopedListWarning.fromJson(o.toJson()); |
| 6379 checkVpnTunnelsScopedListWarning(od); |
| 6380 }); |
| 6381 }); |
| 6382 |
| 6383 |
| 6384 unittest.group("obj-schema-VpnTunnelsScopedList", () { |
| 6385 unittest.test("to-json--from-json", () { |
| 6386 var o = buildVpnTunnelsScopedList(); |
| 6387 var od = new api.VpnTunnelsScopedList.fromJson(o.toJson()); |
| 6388 checkVpnTunnelsScopedList(od); |
| 6389 }); |
| 6390 }); |
| 6391 |
| 6392 |
| 5719 unittest.group("obj-schema-ZoneMaintenanceWindows", () { | 6393 unittest.group("obj-schema-ZoneMaintenanceWindows", () { |
| 5720 unittest.test("to-json--from-json", () { | 6394 unittest.test("to-json--from-json", () { |
| 5721 var o = buildZoneMaintenanceWindows(); | 6395 var o = buildZoneMaintenanceWindows(); |
| 5722 var od = new api.ZoneMaintenanceWindows.fromJson(o.toJson()); | 6396 var od = new api.ZoneMaintenanceWindows.fromJson(o.toJson()); |
| 5723 checkZoneMaintenanceWindows(od); | 6397 checkZoneMaintenanceWindows(od); |
| 5724 }); | 6398 }); |
| 5725 }); | 6399 }); |
| 5726 | 6400 |
| 5727 | 6401 |
| 5728 unittest.group("obj-schema-Zone", () { | 6402 unittest.group("obj-schema-Zone", () { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 5739 var o = buildZoneList(); | 6413 var o = buildZoneList(); |
| 5740 var od = new api.ZoneList.fromJson(o.toJson()); | 6414 var od = new api.ZoneList.fromJson(o.toJson()); |
| 5741 checkZoneList(od); | 6415 checkZoneList(od); |
| 5742 }); | 6416 }); |
| 5743 }); | 6417 }); |
| 5744 | 6418 |
| 5745 | 6419 |
| 5746 unittest.group("resource-AddressesResourceApi", () { | 6420 unittest.group("resource-AddressesResourceApi", () { |
| 5747 unittest.test("method--aggregatedList", () { | 6421 unittest.test("method--aggregatedList", () { |
| 5748 | 6422 |
| 5749 var mock = new common_test.HttpServerMock(); | 6423 var mock = new HttpServerMock(); |
| 5750 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 6424 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 5751 var arg_project = "foo"; | 6425 var arg_project = "foo"; |
| 5752 var arg_filter = "foo"; | 6426 var arg_filter = "foo"; |
| 5753 var arg_maxResults = 42; | 6427 var arg_maxResults = 42; |
| 5754 var arg_pageToken = "foo"; | 6428 var arg_pageToken = "foo"; |
| 5755 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6429 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5756 var path = (req.url).path; | 6430 var path = (req.url).path; |
| 5757 var pathOffset = 0; | 6431 var pathOffset = 0; |
| 5758 var index; | 6432 var index; |
| 5759 var subPart; | 6433 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 5778 } | 6452 } |
| 5779 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 6453 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 5780 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6454 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5781 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6455 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5782 | 6456 |
| 5783 | 6457 |
| 5784 var h = { | 6458 var h = { |
| 5785 "content-type" : "application/json; charset=utf-8", | 6459 "content-type" : "application/json; charset=utf-8", |
| 5786 }; | 6460 }; |
| 5787 var resp = convert.JSON.encode(buildAddressAggregatedList()); | 6461 var resp = convert.JSON.encode(buildAddressAggregatedList()); |
| 5788 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6462 return new async.Future.value(stringResponse(200, h, resp)); |
| 5789 }), true); | 6463 }), true); |
| 5790 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressAggregate
dList response) { | 6464 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressAggregate
dList response) { |
| 5791 checkAddressAggregatedList(response); | 6465 checkAddressAggregatedList(response); |
| 5792 }))); | 6466 }))); |
| 5793 }); | 6467 }); |
| 5794 | 6468 |
| 5795 unittest.test("method--delete", () { | 6469 unittest.test("method--delete", () { |
| 5796 | 6470 |
| 5797 var mock = new common_test.HttpServerMock(); | 6471 var mock = new HttpServerMock(); |
| 5798 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 6472 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 5799 var arg_project = "foo"; | 6473 var arg_project = "foo"; |
| 5800 var arg_region = "foo"; | 6474 var arg_region = "foo"; |
| 5801 var arg_address = "foo"; | 6475 var arg_address = "foo"; |
| 5802 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6476 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5803 var path = (req.url).path; | 6477 var path = (req.url).path; |
| 5804 var pathOffset = 0; | 6478 var pathOffset = 0; |
| 5805 var index; | 6479 var index; |
| 5806 var subPart; | 6480 var subPart; |
| 5807 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6481 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 5822 var keyvalue = part.split("="); | 6496 var keyvalue = part.split("="); |
| 5823 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6497 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5824 } | 6498 } |
| 5825 } | 6499 } |
| 5826 | 6500 |
| 5827 | 6501 |
| 5828 var h = { | 6502 var h = { |
| 5829 "content-type" : "application/json; charset=utf-8", | 6503 "content-type" : "application/json; charset=utf-8", |
| 5830 }; | 6504 }; |
| 5831 var resp = convert.JSON.encode(buildOperation()); | 6505 var resp = convert.JSON.encode(buildOperation()); |
| 5832 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6506 return new async.Future.value(stringResponse(200, h, resp)); |
| 5833 }), true); | 6507 }), true); |
| 5834 res.delete(arg_project, arg_region, arg_address).then(unittest.expectAsync
(((api.Operation response) { | 6508 res.delete(arg_project, arg_region, arg_address).then(unittest.expectAsync
(((api.Operation response) { |
| 5835 checkOperation(response); | 6509 checkOperation(response); |
| 5836 }))); | 6510 }))); |
| 5837 }); | 6511 }); |
| 5838 | 6512 |
| 5839 unittest.test("method--get", () { | 6513 unittest.test("method--get", () { |
| 5840 | 6514 |
| 5841 var mock = new common_test.HttpServerMock(); | 6515 var mock = new HttpServerMock(); |
| 5842 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 6516 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 5843 var arg_project = "foo"; | 6517 var arg_project = "foo"; |
| 5844 var arg_region = "foo"; | 6518 var arg_region = "foo"; |
| 5845 var arg_address = "foo"; | 6519 var arg_address = "foo"; |
| 5846 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6520 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5847 var path = (req.url).path; | 6521 var path = (req.url).path; |
| 5848 var pathOffset = 0; | 6522 var pathOffset = 0; |
| 5849 var index; | 6523 var index; |
| 5850 var subPart; | 6524 var subPart; |
| 5851 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6525 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 5866 var keyvalue = part.split("="); | 6540 var keyvalue = part.split("="); |
| 5867 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6541 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5868 } | 6542 } |
| 5869 } | 6543 } |
| 5870 | 6544 |
| 5871 | 6545 |
| 5872 var h = { | 6546 var h = { |
| 5873 "content-type" : "application/json; charset=utf-8", | 6547 "content-type" : "application/json; charset=utf-8", |
| 5874 }; | 6548 }; |
| 5875 var resp = convert.JSON.encode(buildAddress()); | 6549 var resp = convert.JSON.encode(buildAddress()); |
| 5876 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6550 return new async.Future.value(stringResponse(200, h, resp)); |
| 5877 }), true); | 6551 }), true); |
| 5878 res.get(arg_project, arg_region, arg_address).then(unittest.expectAsync(((
api.Address response) { | 6552 res.get(arg_project, arg_region, arg_address).then(unittest.expectAsync(((
api.Address response) { |
| 5879 checkAddress(response); | 6553 checkAddress(response); |
| 5880 }))); | 6554 }))); |
| 5881 }); | 6555 }); |
| 5882 | 6556 |
| 5883 unittest.test("method--insert", () { | 6557 unittest.test("method--insert", () { |
| 5884 | 6558 |
| 5885 var mock = new common_test.HttpServerMock(); | 6559 var mock = new HttpServerMock(); |
| 5886 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 6560 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 5887 var arg_request = buildAddress(); | 6561 var arg_request = buildAddress(); |
| 5888 var arg_project = "foo"; | 6562 var arg_project = "foo"; |
| 5889 var arg_region = "foo"; | 6563 var arg_region = "foo"; |
| 5890 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6564 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5891 var obj = new api.Address.fromJson(json); | 6565 var obj = new api.Address.fromJson(json); |
| 5892 checkAddress(obj); | 6566 checkAddress(obj); |
| 5893 | 6567 |
| 5894 var path = (req.url).path; | 6568 var path = (req.url).path; |
| 5895 var pathOffset = 0; | 6569 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 5913 var keyvalue = part.split("="); | 6587 var keyvalue = part.split("="); |
| 5914 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6588 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5915 } | 6589 } |
| 5916 } | 6590 } |
| 5917 | 6591 |
| 5918 | 6592 |
| 5919 var h = { | 6593 var h = { |
| 5920 "content-type" : "application/json; charset=utf-8", | 6594 "content-type" : "application/json; charset=utf-8", |
| 5921 }; | 6595 }; |
| 5922 var resp = convert.JSON.encode(buildOperation()); | 6596 var resp = convert.JSON.encode(buildOperation()); |
| 5923 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6597 return new async.Future.value(stringResponse(200, h, resp)); |
| 5924 }), true); | 6598 }), true); |
| 5925 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { | 6599 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { |
| 5926 checkOperation(response); | 6600 checkOperation(response); |
| 5927 }))); | 6601 }))); |
| 5928 }); | 6602 }); |
| 5929 | 6603 |
| 5930 unittest.test("method--list", () { | 6604 unittest.test("method--list", () { |
| 5931 | 6605 |
| 5932 var mock = new common_test.HttpServerMock(); | 6606 var mock = new HttpServerMock(); |
| 5933 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; | 6607 api.AddressesResourceApi res = new api.ComputeApi(mock).addresses; |
| 5934 var arg_project = "foo"; | 6608 var arg_project = "foo"; |
| 5935 var arg_region = "foo"; | 6609 var arg_region = "foo"; |
| 5936 var arg_filter = "foo"; | 6610 var arg_filter = "foo"; |
| 5937 var arg_maxResults = 42; | 6611 var arg_maxResults = 42; |
| 5938 var arg_pageToken = "foo"; | 6612 var arg_pageToken = "foo"; |
| 5939 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6613 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5940 var path = (req.url).path; | 6614 var path = (req.url).path; |
| 5941 var pathOffset = 0; | 6615 var pathOffset = 0; |
| 5942 var index; | 6616 var index; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 5962 } | 6636 } |
| 5963 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 6637 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 5964 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6638 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 5965 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6639 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5966 | 6640 |
| 5967 | 6641 |
| 5968 var h = { | 6642 var h = { |
| 5969 "content-type" : "application/json; charset=utf-8", | 6643 "content-type" : "application/json; charset=utf-8", |
| 5970 }; | 6644 }; |
| 5971 var resp = convert.JSON.encode(buildAddressList()); | 6645 var resp = convert.JSON.encode(buildAddressList()); |
| 5972 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6646 return new async.Future.value(stringResponse(200, h, resp)); |
| 5973 }), true); | 6647 }), true); |
| 5974 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList re
sponse) { | 6648 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.AddressList re
sponse) { |
| 5975 checkAddressList(response); | 6649 checkAddressList(response); |
| 5976 }))); | 6650 }))); |
| 5977 }); | 6651 }); |
| 5978 | 6652 |
| 5979 }); | 6653 }); |
| 5980 | 6654 |
| 5981 | 6655 |
| 5982 unittest.group("resource-BackendServicesResourceApi", () { | 6656 unittest.group("resource-BackendServicesResourceApi", () { |
| 5983 unittest.test("method--delete", () { | 6657 unittest.test("method--delete", () { |
| 5984 | 6658 |
| 5985 var mock = new common_test.HttpServerMock(); | 6659 var mock = new HttpServerMock(); |
| 5986 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 6660 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 5987 var arg_project = "foo"; | 6661 var arg_project = "foo"; |
| 5988 var arg_backendService = "foo"; | 6662 var arg_backendService = "foo"; |
| 5989 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6663 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5990 var path = (req.url).path; | 6664 var path = (req.url).path; |
| 5991 var pathOffset = 0; | 6665 var pathOffset = 0; |
| 5992 var index; | 6666 var index; |
| 5993 var subPart; | 6667 var subPart; |
| 5994 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6668 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5995 pathOffset += 1; | 6669 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 6009 var keyvalue = part.split("="); | 6683 var keyvalue = part.split("="); |
| 6010 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6684 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6011 } | 6685 } |
| 6012 } | 6686 } |
| 6013 | 6687 |
| 6014 | 6688 |
| 6015 var h = { | 6689 var h = { |
| 6016 "content-type" : "application/json; charset=utf-8", | 6690 "content-type" : "application/json; charset=utf-8", |
| 6017 }; | 6691 }; |
| 6018 var resp = convert.JSON.encode(buildOperation()); | 6692 var resp = convert.JSON.encode(buildOperation()); |
| 6019 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6693 return new async.Future.value(stringResponse(200, h, resp)); |
| 6020 }), true); | 6694 }), true); |
| 6021 res.delete(arg_project, arg_backendService).then(unittest.expectAsync(((ap
i.Operation response) { | 6695 res.delete(arg_project, arg_backendService).then(unittest.expectAsync(((ap
i.Operation response) { |
| 6022 checkOperation(response); | 6696 checkOperation(response); |
| 6023 }))); | 6697 }))); |
| 6024 }); | 6698 }); |
| 6025 | 6699 |
| 6026 unittest.test("method--get", () { | 6700 unittest.test("method--get", () { |
| 6027 | 6701 |
| 6028 var mock = new common_test.HttpServerMock(); | 6702 var mock = new HttpServerMock(); |
| 6029 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 6703 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 6030 var arg_project = "foo"; | 6704 var arg_project = "foo"; |
| 6031 var arg_backendService = "foo"; | 6705 var arg_backendService = "foo"; |
| 6032 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6706 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6033 var path = (req.url).path; | 6707 var path = (req.url).path; |
| 6034 var pathOffset = 0; | 6708 var pathOffset = 0; |
| 6035 var index; | 6709 var index; |
| 6036 var subPart; | 6710 var subPart; |
| 6037 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6711 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6038 pathOffset += 1; | 6712 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 6052 var keyvalue = part.split("="); | 6726 var keyvalue = part.split("="); |
| 6053 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6727 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6054 } | 6728 } |
| 6055 } | 6729 } |
| 6056 | 6730 |
| 6057 | 6731 |
| 6058 var h = { | 6732 var h = { |
| 6059 "content-type" : "application/json; charset=utf-8", | 6733 "content-type" : "application/json; charset=utf-8", |
| 6060 }; | 6734 }; |
| 6061 var resp = convert.JSON.encode(buildBackendService()); | 6735 var resp = convert.JSON.encode(buildBackendService()); |
| 6062 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6736 return new async.Future.value(stringResponse(200, h, resp)); |
| 6063 }), true); | 6737 }), true); |
| 6064 res.get(arg_project, arg_backendService).then(unittest.expectAsync(((api.B
ackendService response) { | 6738 res.get(arg_project, arg_backendService).then(unittest.expectAsync(((api.B
ackendService response) { |
| 6065 checkBackendService(response); | 6739 checkBackendService(response); |
| 6066 }))); | 6740 }))); |
| 6067 }); | 6741 }); |
| 6068 | 6742 |
| 6069 unittest.test("method--getHealth", () { | 6743 unittest.test("method--getHealth", () { |
| 6070 | 6744 |
| 6071 var mock = new common_test.HttpServerMock(); | 6745 var mock = new HttpServerMock(); |
| 6072 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 6746 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 6073 var arg_request = buildResourceGroupReference(); | 6747 var arg_request = buildResourceGroupReference(); |
| 6074 var arg_project = "foo"; | 6748 var arg_project = "foo"; |
| 6075 var arg_backendService = "foo"; | 6749 var arg_backendService = "foo"; |
| 6076 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6750 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6077 var obj = new api.ResourceGroupReference.fromJson(json); | 6751 var obj = new api.ResourceGroupReference.fromJson(json); |
| 6078 checkResourceGroupReference(obj); | 6752 checkResourceGroupReference(obj); |
| 6079 | 6753 |
| 6080 var path = (req.url).path; | 6754 var path = (req.url).path; |
| 6081 var pathOffset = 0; | 6755 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 6099 var keyvalue = part.split("="); | 6773 var keyvalue = part.split("="); |
| 6100 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6774 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6101 } | 6775 } |
| 6102 } | 6776 } |
| 6103 | 6777 |
| 6104 | 6778 |
| 6105 var h = { | 6779 var h = { |
| 6106 "content-type" : "application/json; charset=utf-8", | 6780 "content-type" : "application/json; charset=utf-8", |
| 6107 }; | 6781 }; |
| 6108 var resp = convert.JSON.encode(buildBackendServiceGroupHealth()); | 6782 var resp = convert.JSON.encode(buildBackendServiceGroupHealth()); |
| 6109 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6783 return new async.Future.value(stringResponse(200, h, resp)); |
| 6110 }), true); | 6784 }), true); |
| 6111 res.getHealth(arg_request, arg_project, arg_backendService).then(unittest.
expectAsync(((api.BackendServiceGroupHealth response) { | 6785 res.getHealth(arg_request, arg_project, arg_backendService).then(unittest.
expectAsync(((api.BackendServiceGroupHealth response) { |
| 6112 checkBackendServiceGroupHealth(response); | 6786 checkBackendServiceGroupHealth(response); |
| 6113 }))); | 6787 }))); |
| 6114 }); | 6788 }); |
| 6115 | 6789 |
| 6116 unittest.test("method--insert", () { | 6790 unittest.test("method--insert", () { |
| 6117 | 6791 |
| 6118 var mock = new common_test.HttpServerMock(); | 6792 var mock = new HttpServerMock(); |
| 6119 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 6793 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 6120 var arg_request = buildBackendService(); | 6794 var arg_request = buildBackendService(); |
| 6121 var arg_project = "foo"; | 6795 var arg_project = "foo"; |
| 6122 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6796 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6123 var obj = new api.BackendService.fromJson(json); | 6797 var obj = new api.BackendService.fromJson(json); |
| 6124 checkBackendService(obj); | 6798 checkBackendService(obj); |
| 6125 | 6799 |
| 6126 var path = (req.url).path; | 6800 var path = (req.url).path; |
| 6127 var pathOffset = 0; | 6801 var pathOffset = 0; |
| 6128 var index; | 6802 var index; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6145 var keyvalue = part.split("="); | 6819 var keyvalue = part.split("="); |
| 6146 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6820 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6147 } | 6821 } |
| 6148 } | 6822 } |
| 6149 | 6823 |
| 6150 | 6824 |
| 6151 var h = { | 6825 var h = { |
| 6152 "content-type" : "application/json; charset=utf-8", | 6826 "content-type" : "application/json; charset=utf-8", |
| 6153 }; | 6827 }; |
| 6154 var resp = convert.JSON.encode(buildOperation()); | 6828 var resp = convert.JSON.encode(buildOperation()); |
| 6155 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6829 return new async.Future.value(stringResponse(200, h, resp)); |
| 6156 }), true); | 6830 }), true); |
| 6157 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 6831 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
| 6158 checkOperation(response); | 6832 checkOperation(response); |
| 6159 }))); | 6833 }))); |
| 6160 }); | 6834 }); |
| 6161 | 6835 |
| 6162 unittest.test("method--list", () { | 6836 unittest.test("method--list", () { |
| 6163 | 6837 |
| 6164 var mock = new common_test.HttpServerMock(); | 6838 var mock = new HttpServerMock(); |
| 6165 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 6839 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 6166 var arg_project = "foo"; | 6840 var arg_project = "foo"; |
| 6167 var arg_filter = "foo"; | 6841 var arg_filter = "foo"; |
| 6168 var arg_maxResults = 42; | 6842 var arg_maxResults = 42; |
| 6169 var arg_pageToken = "foo"; | 6843 var arg_pageToken = "foo"; |
| 6170 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6844 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6171 var path = (req.url).path; | 6845 var path = (req.url).path; |
| 6172 var pathOffset = 0; | 6846 var pathOffset = 0; |
| 6173 var index; | 6847 var index; |
| 6174 var subPart; | 6848 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 6193 } | 6867 } |
| 6194 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 6868 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 6195 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 6869 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6196 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6870 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6197 | 6871 |
| 6198 | 6872 |
| 6199 var h = { | 6873 var h = { |
| 6200 "content-type" : "application/json; charset=utf-8", | 6874 "content-type" : "application/json; charset=utf-8", |
| 6201 }; | 6875 }; |
| 6202 var resp = convert.JSON.encode(buildBackendServiceList()); | 6876 var resp = convert.JSON.encode(buildBackendServiceList()); |
| 6203 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6877 return new async.Future.value(stringResponse(200, h, resp)); |
| 6204 }), true); | 6878 }), true); |
| 6205 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceList respons
e) { | 6879 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.BackendServiceList respons
e) { |
| 6206 checkBackendServiceList(response); | 6880 checkBackendServiceList(response); |
| 6207 }))); | 6881 }))); |
| 6208 }); | 6882 }); |
| 6209 | 6883 |
| 6210 unittest.test("method--patch", () { | 6884 unittest.test("method--patch", () { |
| 6211 | 6885 |
| 6212 var mock = new common_test.HttpServerMock(); | 6886 var mock = new HttpServerMock(); |
| 6213 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 6887 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 6214 var arg_request = buildBackendService(); | 6888 var arg_request = buildBackendService(); |
| 6215 var arg_project = "foo"; | 6889 var arg_project = "foo"; |
| 6216 var arg_backendService = "foo"; | 6890 var arg_backendService = "foo"; |
| 6217 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6891 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6218 var obj = new api.BackendService.fromJson(json); | 6892 var obj = new api.BackendService.fromJson(json); |
| 6219 checkBackendService(obj); | 6893 checkBackendService(obj); |
| 6220 | 6894 |
| 6221 var path = (req.url).path; | 6895 var path = (req.url).path; |
| 6222 var pathOffset = 0; | 6896 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 6240 var keyvalue = part.split("="); | 6914 var keyvalue = part.split("="); |
| 6241 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6915 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6242 } | 6916 } |
| 6243 } | 6917 } |
| 6244 | 6918 |
| 6245 | 6919 |
| 6246 var h = { | 6920 var h = { |
| 6247 "content-type" : "application/json; charset=utf-8", | 6921 "content-type" : "application/json; charset=utf-8", |
| 6248 }; | 6922 }; |
| 6249 var resp = convert.JSON.encode(buildOperation()); | 6923 var resp = convert.JSON.encode(buildOperation()); |
| 6250 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6924 return new async.Future.value(stringResponse(200, h, resp)); |
| 6251 }), true); | 6925 }), true); |
| 6252 res.patch(arg_request, arg_project, arg_backendService).then(unittest.expe
ctAsync(((api.Operation response) { | 6926 res.patch(arg_request, arg_project, arg_backendService).then(unittest.expe
ctAsync(((api.Operation response) { |
| 6253 checkOperation(response); | 6927 checkOperation(response); |
| 6254 }))); | 6928 }))); |
| 6255 }); | 6929 }); |
| 6256 | 6930 |
| 6257 unittest.test("method--update", () { | 6931 unittest.test("method--update", () { |
| 6258 | 6932 |
| 6259 var mock = new common_test.HttpServerMock(); | 6933 var mock = new HttpServerMock(); |
| 6260 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; | 6934 api.BackendServicesResourceApi res = new api.ComputeApi(mock).backendServi
ces; |
| 6261 var arg_request = buildBackendService(); | 6935 var arg_request = buildBackendService(); |
| 6262 var arg_project = "foo"; | 6936 var arg_project = "foo"; |
| 6263 var arg_backendService = "foo"; | 6937 var arg_backendService = "foo"; |
| 6264 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6938 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6265 var obj = new api.BackendService.fromJson(json); | 6939 var obj = new api.BackendService.fromJson(json); |
| 6266 checkBackendService(obj); | 6940 checkBackendService(obj); |
| 6267 | 6941 |
| 6268 var path = (req.url).path; | 6942 var path = (req.url).path; |
| 6269 var pathOffset = 0; | 6943 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 6287 var keyvalue = part.split("="); | 6961 var keyvalue = part.split("="); |
| 6288 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6962 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6289 } | 6963 } |
| 6290 } | 6964 } |
| 6291 | 6965 |
| 6292 | 6966 |
| 6293 var h = { | 6967 var h = { |
| 6294 "content-type" : "application/json; charset=utf-8", | 6968 "content-type" : "application/json; charset=utf-8", |
| 6295 }; | 6969 }; |
| 6296 var resp = convert.JSON.encode(buildOperation()); | 6970 var resp = convert.JSON.encode(buildOperation()); |
| 6297 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 6971 return new async.Future.value(stringResponse(200, h, resp)); |
| 6298 }), true); | 6972 }), true); |
| 6299 res.update(arg_request, arg_project, arg_backendService).then(unittest.exp
ectAsync(((api.Operation response) { | 6973 res.update(arg_request, arg_project, arg_backendService).then(unittest.exp
ectAsync(((api.Operation response) { |
| 6300 checkOperation(response); | 6974 checkOperation(response); |
| 6301 }))); | 6975 }))); |
| 6302 }); | 6976 }); |
| 6303 | 6977 |
| 6304 }); | 6978 }); |
| 6305 | 6979 |
| 6306 | 6980 |
| 6307 unittest.group("resource-DiskTypesResourceApi", () { | 6981 unittest.group("resource-DiskTypesResourceApi", () { |
| 6308 unittest.test("method--aggregatedList", () { | 6982 unittest.test("method--aggregatedList", () { |
| 6309 | 6983 |
| 6310 var mock = new common_test.HttpServerMock(); | 6984 var mock = new HttpServerMock(); |
| 6311 api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes; | 6985 api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes; |
| 6312 var arg_project = "foo"; | 6986 var arg_project = "foo"; |
| 6313 var arg_filter = "foo"; | 6987 var arg_filter = "foo"; |
| 6314 var arg_maxResults = 42; | 6988 var arg_maxResults = 42; |
| 6315 var arg_pageToken = "foo"; | 6989 var arg_pageToken = "foo"; |
| 6316 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6990 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6317 var path = (req.url).path; | 6991 var path = (req.url).path; |
| 6318 var pathOffset = 0; | 6992 var pathOffset = 0; |
| 6319 var index; | 6993 var index; |
| 6320 var subPart; | 6994 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 6339 } | 7013 } |
| 6340 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 7014 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 6341 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 7015 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6342 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7016 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6343 | 7017 |
| 6344 | 7018 |
| 6345 var h = { | 7019 var h = { |
| 6346 "content-type" : "application/json; charset=utf-8", | 7020 "content-type" : "application/json; charset=utf-8", |
| 6347 }; | 7021 }; |
| 6348 var resp = convert.JSON.encode(buildDiskTypeAggregatedList()); | 7022 var resp = convert.JSON.encode(buildDiskTypeAggregatedList()); |
| 6349 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7023 return new async.Future.value(stringResponse(200, h, resp)); |
| 6350 }), true); | 7024 }), true); |
| 6351 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeAggregat
edList response) { | 7025 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeAggregat
edList response) { |
| 6352 checkDiskTypeAggregatedList(response); | 7026 checkDiskTypeAggregatedList(response); |
| 6353 }))); | 7027 }))); |
| 6354 }); | 7028 }); |
| 6355 | 7029 |
| 6356 unittest.test("method--get", () { | 7030 unittest.test("method--get", () { |
| 6357 | 7031 |
| 6358 var mock = new common_test.HttpServerMock(); | 7032 var mock = new HttpServerMock(); |
| 6359 api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes; | 7033 api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes; |
| 6360 var arg_project = "foo"; | 7034 var arg_project = "foo"; |
| 6361 var arg_zone = "foo"; | 7035 var arg_zone = "foo"; |
| 6362 var arg_diskType = "foo"; | 7036 var arg_diskType = "foo"; |
| 6363 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7037 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6364 var path = (req.url).path; | 7038 var path = (req.url).path; |
| 6365 var pathOffset = 0; | 7039 var pathOffset = 0; |
| 6366 var index; | 7040 var index; |
| 6367 var subPart; | 7041 var subPart; |
| 6368 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7042 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 6383 var keyvalue = part.split("="); | 7057 var keyvalue = part.split("="); |
| 6384 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7058 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6385 } | 7059 } |
| 6386 } | 7060 } |
| 6387 | 7061 |
| 6388 | 7062 |
| 6389 var h = { | 7063 var h = { |
| 6390 "content-type" : "application/json; charset=utf-8", | 7064 "content-type" : "application/json; charset=utf-8", |
| 6391 }; | 7065 }; |
| 6392 var resp = convert.JSON.encode(buildDiskType()); | 7066 var resp = convert.JSON.encode(buildDiskType()); |
| 6393 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7067 return new async.Future.value(stringResponse(200, h, resp)); |
| 6394 }), true); | 7068 }), true); |
| 6395 res.get(arg_project, arg_zone, arg_diskType).then(unittest.expectAsync(((a
pi.DiskType response) { | 7069 res.get(arg_project, arg_zone, arg_diskType).then(unittest.expectAsync(((a
pi.DiskType response) { |
| 6396 checkDiskType(response); | 7070 checkDiskType(response); |
| 6397 }))); | 7071 }))); |
| 6398 }); | 7072 }); |
| 6399 | 7073 |
| 6400 unittest.test("method--list", () { | 7074 unittest.test("method--list", () { |
| 6401 | 7075 |
| 6402 var mock = new common_test.HttpServerMock(); | 7076 var mock = new HttpServerMock(); |
| 6403 api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes; | 7077 api.DiskTypesResourceApi res = new api.ComputeApi(mock).diskTypes; |
| 6404 var arg_project = "foo"; | 7078 var arg_project = "foo"; |
| 6405 var arg_zone = "foo"; | 7079 var arg_zone = "foo"; |
| 6406 var arg_filter = "foo"; | 7080 var arg_filter = "foo"; |
| 6407 var arg_maxResults = 42; | 7081 var arg_maxResults = 42; |
| 6408 var arg_pageToken = "foo"; | 7082 var arg_pageToken = "foo"; |
| 6409 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7083 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6410 var path = (req.url).path; | 7084 var path = (req.url).path; |
| 6411 var pathOffset = 0; | 7085 var pathOffset = 0; |
| 6412 var index; | 7086 var index; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6432 } | 7106 } |
| 6433 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 7107 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 6434 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 7108 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6435 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7109 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6436 | 7110 |
| 6437 | 7111 |
| 6438 var h = { | 7112 var h = { |
| 6439 "content-type" : "application/json; charset=utf-8", | 7113 "content-type" : "application/json; charset=utf-8", |
| 6440 }; | 7114 }; |
| 6441 var resp = convert.JSON.encode(buildDiskTypeList()); | 7115 var resp = convert.JSON.encode(buildDiskTypeList()); |
| 6442 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7116 return new async.Future.value(stringResponse(200, h, resp)); |
| 6443 }), true); | 7117 }), true); |
| 6444 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeList res
ponse) { | 7118 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskTypeList res
ponse) { |
| 6445 checkDiskTypeList(response); | 7119 checkDiskTypeList(response); |
| 6446 }))); | 7120 }))); |
| 6447 }); | 7121 }); |
| 6448 | 7122 |
| 6449 }); | 7123 }); |
| 6450 | 7124 |
| 6451 | 7125 |
| 6452 unittest.group("resource-DisksResourceApi", () { | 7126 unittest.group("resource-DisksResourceApi", () { |
| 6453 unittest.test("method--aggregatedList", () { | 7127 unittest.test("method--aggregatedList", () { |
| 6454 | 7128 |
| 6455 var mock = new common_test.HttpServerMock(); | 7129 var mock = new HttpServerMock(); |
| 6456 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 7130 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 6457 var arg_project = "foo"; | 7131 var arg_project = "foo"; |
| 6458 var arg_filter = "foo"; | 7132 var arg_filter = "foo"; |
| 6459 var arg_maxResults = 42; | 7133 var arg_maxResults = 42; |
| 6460 var arg_pageToken = "foo"; | 7134 var arg_pageToken = "foo"; |
| 6461 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7135 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6462 var path = (req.url).path; | 7136 var path = (req.url).path; |
| 6463 var pathOffset = 0; | 7137 var pathOffset = 0; |
| 6464 var index; | 7138 var index; |
| 6465 var subPart; | 7139 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 6484 } | 7158 } |
| 6485 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 7159 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 6486 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 7160 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6487 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7161 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6488 | 7162 |
| 6489 | 7163 |
| 6490 var h = { | 7164 var h = { |
| 6491 "content-type" : "application/json; charset=utf-8", | 7165 "content-type" : "application/json; charset=utf-8", |
| 6492 }; | 7166 }; |
| 6493 var resp = convert.JSON.encode(buildDiskAggregatedList()); | 7167 var resp = convert.JSON.encode(buildDiskAggregatedList()); |
| 6494 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7168 return new async.Future.value(stringResponse(200, h, resp)); |
| 6495 }), true); | 7169 }), true); |
| 6496 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskAggregatedLi
st response) { | 7170 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskAggregatedLi
st response) { |
| 6497 checkDiskAggregatedList(response); | 7171 checkDiskAggregatedList(response); |
| 6498 }))); | 7172 }))); |
| 6499 }); | 7173 }); |
| 6500 | 7174 |
| 6501 unittest.test("method--createSnapshot", () { | 7175 unittest.test("method--createSnapshot", () { |
| 6502 | 7176 |
| 6503 var mock = new common_test.HttpServerMock(); | 7177 var mock = new HttpServerMock(); |
| 6504 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 7178 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 6505 var arg_request = buildSnapshot(); | 7179 var arg_request = buildSnapshot(); |
| 6506 var arg_project = "foo"; | 7180 var arg_project = "foo"; |
| 6507 var arg_zone = "foo"; | 7181 var arg_zone = "foo"; |
| 6508 var arg_disk = "foo"; | 7182 var arg_disk = "foo"; |
| 6509 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7183 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6510 var obj = new api.Snapshot.fromJson(json); | 7184 var obj = new api.Snapshot.fromJson(json); |
| 6511 checkSnapshot(obj); | 7185 checkSnapshot(obj); |
| 6512 | 7186 |
| 6513 var path = (req.url).path; | 7187 var path = (req.url).path; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 6532 var keyvalue = part.split("="); | 7206 var keyvalue = part.split("="); |
| 6533 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7207 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6534 } | 7208 } |
| 6535 } | 7209 } |
| 6536 | 7210 |
| 6537 | 7211 |
| 6538 var h = { | 7212 var h = { |
| 6539 "content-type" : "application/json; charset=utf-8", | 7213 "content-type" : "application/json; charset=utf-8", |
| 6540 }; | 7214 }; |
| 6541 var resp = convert.JSON.encode(buildOperation()); | 7215 var resp = convert.JSON.encode(buildOperation()); |
| 6542 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7216 return new async.Future.value(stringResponse(200, h, resp)); |
| 6543 }), true); | 7217 }), true); |
| 6544 res.createSnapshot(arg_request, arg_project, arg_zone, arg_disk).then(unit
test.expectAsync(((api.Operation response) { | 7218 res.createSnapshot(arg_request, arg_project, arg_zone, arg_disk).then(unit
test.expectAsync(((api.Operation response) { |
| 6545 checkOperation(response); | 7219 checkOperation(response); |
| 6546 }))); | 7220 }))); |
| 6547 }); | 7221 }); |
| 6548 | 7222 |
| 6549 unittest.test("method--delete", () { | 7223 unittest.test("method--delete", () { |
| 6550 | 7224 |
| 6551 var mock = new common_test.HttpServerMock(); | 7225 var mock = new HttpServerMock(); |
| 6552 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 7226 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 6553 var arg_project = "foo"; | 7227 var arg_project = "foo"; |
| 6554 var arg_zone = "foo"; | 7228 var arg_zone = "foo"; |
| 6555 var arg_disk = "foo"; | 7229 var arg_disk = "foo"; |
| 6556 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7230 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6557 var path = (req.url).path; | 7231 var path = (req.url).path; |
| 6558 var pathOffset = 0; | 7232 var pathOffset = 0; |
| 6559 var index; | 7233 var index; |
| 6560 var subPart; | 7234 var subPart; |
| 6561 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7235 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 6576 var keyvalue = part.split("="); | 7250 var keyvalue = part.split("="); |
| 6577 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7251 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6578 } | 7252 } |
| 6579 } | 7253 } |
| 6580 | 7254 |
| 6581 | 7255 |
| 6582 var h = { | 7256 var h = { |
| 6583 "content-type" : "application/json; charset=utf-8", | 7257 "content-type" : "application/json; charset=utf-8", |
| 6584 }; | 7258 }; |
| 6585 var resp = convert.JSON.encode(buildOperation()); | 7259 var resp = convert.JSON.encode(buildOperation()); |
| 6586 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7260 return new async.Future.value(stringResponse(200, h, resp)); |
| 6587 }), true); | 7261 }), true); |
| 6588 res.delete(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((ap
i.Operation response) { | 7262 res.delete(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((ap
i.Operation response) { |
| 6589 checkOperation(response); | 7263 checkOperation(response); |
| 6590 }))); | 7264 }))); |
| 6591 }); | 7265 }); |
| 6592 | 7266 |
| 6593 unittest.test("method--get", () { | 7267 unittest.test("method--get", () { |
| 6594 | 7268 |
| 6595 var mock = new common_test.HttpServerMock(); | 7269 var mock = new HttpServerMock(); |
| 6596 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 7270 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 6597 var arg_project = "foo"; | 7271 var arg_project = "foo"; |
| 6598 var arg_zone = "foo"; | 7272 var arg_zone = "foo"; |
| 6599 var arg_disk = "foo"; | 7273 var arg_disk = "foo"; |
| 6600 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7274 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6601 var path = (req.url).path; | 7275 var path = (req.url).path; |
| 6602 var pathOffset = 0; | 7276 var pathOffset = 0; |
| 6603 var index; | 7277 var index; |
| 6604 var subPart; | 7278 var subPart; |
| 6605 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7279 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 6620 var keyvalue = part.split("="); | 7294 var keyvalue = part.split("="); |
| 6621 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7295 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6622 } | 7296 } |
| 6623 } | 7297 } |
| 6624 | 7298 |
| 6625 | 7299 |
| 6626 var h = { | 7300 var h = { |
| 6627 "content-type" : "application/json; charset=utf-8", | 7301 "content-type" : "application/json; charset=utf-8", |
| 6628 }; | 7302 }; |
| 6629 var resp = convert.JSON.encode(buildDisk()); | 7303 var resp = convert.JSON.encode(buildDisk()); |
| 6630 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7304 return new async.Future.value(stringResponse(200, h, resp)); |
| 6631 }), true); | 7305 }), true); |
| 6632 res.get(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.D
isk response) { | 7306 res.get(arg_project, arg_zone, arg_disk).then(unittest.expectAsync(((api.D
isk response) { |
| 6633 checkDisk(response); | 7307 checkDisk(response); |
| 6634 }))); | 7308 }))); |
| 6635 }); | 7309 }); |
| 6636 | 7310 |
| 6637 unittest.test("method--insert", () { | 7311 unittest.test("method--insert", () { |
| 6638 | 7312 |
| 6639 var mock = new common_test.HttpServerMock(); | 7313 var mock = new HttpServerMock(); |
| 6640 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 7314 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 6641 var arg_request = buildDisk(); | 7315 var arg_request = buildDisk(); |
| 6642 var arg_project = "foo"; | 7316 var arg_project = "foo"; |
| 6643 var arg_zone = "foo"; | 7317 var arg_zone = "foo"; |
| 6644 var arg_sourceImage = "foo"; | 7318 var arg_sourceImage = "foo"; |
| 6645 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7319 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6646 var obj = new api.Disk.fromJson(json); | 7320 var obj = new api.Disk.fromJson(json); |
| 6647 checkDisk(obj); | 7321 checkDisk(obj); |
| 6648 | 7322 |
| 6649 var path = (req.url).path; | 7323 var path = (req.url).path; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6669 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7343 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6670 } | 7344 } |
| 6671 } | 7345 } |
| 6672 unittest.expect(queryMap["sourceImage"].first, unittest.equals(arg_sourc
eImage)); | 7346 unittest.expect(queryMap["sourceImage"].first, unittest.equals(arg_sourc
eImage)); |
| 6673 | 7347 |
| 6674 | 7348 |
| 6675 var h = { | 7349 var h = { |
| 6676 "content-type" : "application/json; charset=utf-8", | 7350 "content-type" : "application/json; charset=utf-8", |
| 6677 }; | 7351 }; |
| 6678 var resp = convert.JSON.encode(buildOperation()); | 7352 var resp = convert.JSON.encode(buildOperation()); |
| 6679 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7353 return new async.Future.value(stringResponse(200, h, resp)); |
| 6680 }), true); | 7354 }), true); |
| 6681 res.insert(arg_request, arg_project, arg_zone, sourceImage: arg_sourceImag
e).then(unittest.expectAsync(((api.Operation response) { | 7355 res.insert(arg_request, arg_project, arg_zone, sourceImage: arg_sourceImag
e).then(unittest.expectAsync(((api.Operation response) { |
| 6682 checkOperation(response); | 7356 checkOperation(response); |
| 6683 }))); | 7357 }))); |
| 6684 }); | 7358 }); |
| 6685 | 7359 |
| 6686 unittest.test("method--list", () { | 7360 unittest.test("method--list", () { |
| 6687 | 7361 |
| 6688 var mock = new common_test.HttpServerMock(); | 7362 var mock = new HttpServerMock(); |
| 6689 api.DisksResourceApi res = new api.ComputeApi(mock).disks; | 7363 api.DisksResourceApi res = new api.ComputeApi(mock).disks; |
| 6690 var arg_project = "foo"; | 7364 var arg_project = "foo"; |
| 6691 var arg_zone = "foo"; | 7365 var arg_zone = "foo"; |
| 6692 var arg_filter = "foo"; | 7366 var arg_filter = "foo"; |
| 6693 var arg_maxResults = 42; | 7367 var arg_maxResults = 42; |
| 6694 var arg_pageToken = "foo"; | 7368 var arg_pageToken = "foo"; |
| 6695 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7369 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6696 var path = (req.url).path; | 7370 var path = (req.url).path; |
| 6697 var pathOffset = 0; | 7371 var pathOffset = 0; |
| 6698 var index; | 7372 var index; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 6718 } | 7392 } |
| 6719 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 7393 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 6720 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 7394 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6721 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7395 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6722 | 7396 |
| 6723 | 7397 |
| 6724 var h = { | 7398 var h = { |
| 6725 "content-type" : "application/json; charset=utf-8", | 7399 "content-type" : "application/json; charset=utf-8", |
| 6726 }; | 7400 }; |
| 6727 var resp = convert.JSON.encode(buildDiskList()); | 7401 var resp = convert.JSON.encode(buildDiskList()); |
| 6728 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7402 return new async.Future.value(stringResponse(200, h, resp)); |
| 6729 }), true); | 7403 }), true); |
| 6730 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskList respons
e) { | 7404 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.DiskList respons
e) { |
| 6731 checkDiskList(response); | 7405 checkDiskList(response); |
| 6732 }))); | 7406 }))); |
| 6733 }); | 7407 }); |
| 6734 | 7408 |
| 6735 }); | 7409 }); |
| 6736 | 7410 |
| 6737 | 7411 |
| 6738 unittest.group("resource-FirewallsResourceApi", () { | 7412 unittest.group("resource-FirewallsResourceApi", () { |
| 6739 unittest.test("method--delete", () { | 7413 unittest.test("method--delete", () { |
| 6740 | 7414 |
| 6741 var mock = new common_test.HttpServerMock(); | 7415 var mock = new HttpServerMock(); |
| 6742 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 7416 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 6743 var arg_project = "foo"; | 7417 var arg_project = "foo"; |
| 6744 var arg_firewall = "foo"; | 7418 var arg_firewall = "foo"; |
| 6745 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7419 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6746 var path = (req.url).path; | 7420 var path = (req.url).path; |
| 6747 var pathOffset = 0; | 7421 var pathOffset = 0; |
| 6748 var index; | 7422 var index; |
| 6749 var subPart; | 7423 var subPart; |
| 6750 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7424 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6751 pathOffset += 1; | 7425 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 6765 var keyvalue = part.split("="); | 7439 var keyvalue = part.split("="); |
| 6766 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7440 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6767 } | 7441 } |
| 6768 } | 7442 } |
| 6769 | 7443 |
| 6770 | 7444 |
| 6771 var h = { | 7445 var h = { |
| 6772 "content-type" : "application/json; charset=utf-8", | 7446 "content-type" : "application/json; charset=utf-8", |
| 6773 }; | 7447 }; |
| 6774 var resp = convert.JSON.encode(buildOperation()); | 7448 var resp = convert.JSON.encode(buildOperation()); |
| 6775 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7449 return new async.Future.value(stringResponse(200, h, resp)); |
| 6776 }), true); | 7450 }), true); |
| 6777 res.delete(arg_project, arg_firewall).then(unittest.expectAsync(((api.Oper
ation response) { | 7451 res.delete(arg_project, arg_firewall).then(unittest.expectAsync(((api.Oper
ation response) { |
| 6778 checkOperation(response); | 7452 checkOperation(response); |
| 6779 }))); | 7453 }))); |
| 6780 }); | 7454 }); |
| 6781 | 7455 |
| 6782 unittest.test("method--get", () { | 7456 unittest.test("method--get", () { |
| 6783 | 7457 |
| 6784 var mock = new common_test.HttpServerMock(); | 7458 var mock = new HttpServerMock(); |
| 6785 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 7459 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 6786 var arg_project = "foo"; | 7460 var arg_project = "foo"; |
| 6787 var arg_firewall = "foo"; | 7461 var arg_firewall = "foo"; |
| 6788 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7462 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6789 var path = (req.url).path; | 7463 var path = (req.url).path; |
| 6790 var pathOffset = 0; | 7464 var pathOffset = 0; |
| 6791 var index; | 7465 var index; |
| 6792 var subPart; | 7466 var subPart; |
| 6793 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7467 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6794 pathOffset += 1; | 7468 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 6808 var keyvalue = part.split("="); | 7482 var keyvalue = part.split("="); |
| 6809 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7483 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6810 } | 7484 } |
| 6811 } | 7485 } |
| 6812 | 7486 |
| 6813 | 7487 |
| 6814 var h = { | 7488 var h = { |
| 6815 "content-type" : "application/json; charset=utf-8", | 7489 "content-type" : "application/json; charset=utf-8", |
| 6816 }; | 7490 }; |
| 6817 var resp = convert.JSON.encode(buildFirewall()); | 7491 var resp = convert.JSON.encode(buildFirewall()); |
| 6818 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7492 return new async.Future.value(stringResponse(200, h, resp)); |
| 6819 }), true); | 7493 }), true); |
| 6820 res.get(arg_project, arg_firewall).then(unittest.expectAsync(((api.Firewal
l response) { | 7494 res.get(arg_project, arg_firewall).then(unittest.expectAsync(((api.Firewal
l response) { |
| 6821 checkFirewall(response); | 7495 checkFirewall(response); |
| 6822 }))); | 7496 }))); |
| 6823 }); | 7497 }); |
| 6824 | 7498 |
| 6825 unittest.test("method--insert", () { | 7499 unittest.test("method--insert", () { |
| 6826 | 7500 |
| 6827 var mock = new common_test.HttpServerMock(); | 7501 var mock = new HttpServerMock(); |
| 6828 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 7502 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 6829 var arg_request = buildFirewall(); | 7503 var arg_request = buildFirewall(); |
| 6830 var arg_project = "foo"; | 7504 var arg_project = "foo"; |
| 6831 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7505 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6832 var obj = new api.Firewall.fromJson(json); | 7506 var obj = new api.Firewall.fromJson(json); |
| 6833 checkFirewall(obj); | 7507 checkFirewall(obj); |
| 6834 | 7508 |
| 6835 var path = (req.url).path; | 7509 var path = (req.url).path; |
| 6836 var pathOffset = 0; | 7510 var pathOffset = 0; |
| 6837 var index; | 7511 var index; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6854 var keyvalue = part.split("="); | 7528 var keyvalue = part.split("="); |
| 6855 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7529 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6856 } | 7530 } |
| 6857 } | 7531 } |
| 6858 | 7532 |
| 6859 | 7533 |
| 6860 var h = { | 7534 var h = { |
| 6861 "content-type" : "application/json; charset=utf-8", | 7535 "content-type" : "application/json; charset=utf-8", |
| 6862 }; | 7536 }; |
| 6863 var resp = convert.JSON.encode(buildOperation()); | 7537 var resp = convert.JSON.encode(buildOperation()); |
| 6864 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7538 return new async.Future.value(stringResponse(200, h, resp)); |
| 6865 }), true); | 7539 }), true); |
| 6866 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 7540 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
| 6867 checkOperation(response); | 7541 checkOperation(response); |
| 6868 }))); | 7542 }))); |
| 6869 }); | 7543 }); |
| 6870 | 7544 |
| 6871 unittest.test("method--list", () { | 7545 unittest.test("method--list", () { |
| 6872 | 7546 |
| 6873 var mock = new common_test.HttpServerMock(); | 7547 var mock = new HttpServerMock(); |
| 6874 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 7548 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 6875 var arg_project = "foo"; | 7549 var arg_project = "foo"; |
| 6876 var arg_filter = "foo"; | 7550 var arg_filter = "foo"; |
| 6877 var arg_maxResults = 42; | 7551 var arg_maxResults = 42; |
| 6878 var arg_pageToken = "foo"; | 7552 var arg_pageToken = "foo"; |
| 6879 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7553 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6880 var path = (req.url).path; | 7554 var path = (req.url).path; |
| 6881 var pathOffset = 0; | 7555 var pathOffset = 0; |
| 6882 var index; | 7556 var index; |
| 6883 var subPart; | 7557 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 6902 } | 7576 } |
| 6903 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 7577 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 6904 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 7578 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 6905 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7579 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 6906 | 7580 |
| 6907 | 7581 |
| 6908 var h = { | 7582 var h = { |
| 6909 "content-type" : "application/json; charset=utf-8", | 7583 "content-type" : "application/json; charset=utf-8", |
| 6910 }; | 7584 }; |
| 6911 var resp = convert.JSON.encode(buildFirewallList()); | 7585 var resp = convert.JSON.encode(buildFirewallList()); |
| 6912 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7586 return new async.Future.value(stringResponse(200, h, resp)); |
| 6913 }), true); | 7587 }), true); |
| 6914 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.FirewallList response) { | 7588 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.FirewallList response) { |
| 6915 checkFirewallList(response); | 7589 checkFirewallList(response); |
| 6916 }))); | 7590 }))); |
| 6917 }); | 7591 }); |
| 6918 | 7592 |
| 6919 unittest.test("method--patch", () { | 7593 unittest.test("method--patch", () { |
| 6920 | 7594 |
| 6921 var mock = new common_test.HttpServerMock(); | 7595 var mock = new HttpServerMock(); |
| 6922 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 7596 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 6923 var arg_request = buildFirewall(); | 7597 var arg_request = buildFirewall(); |
| 6924 var arg_project = "foo"; | 7598 var arg_project = "foo"; |
| 6925 var arg_firewall = "foo"; | 7599 var arg_firewall = "foo"; |
| 6926 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7600 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6927 var obj = new api.Firewall.fromJson(json); | 7601 var obj = new api.Firewall.fromJson(json); |
| 6928 checkFirewall(obj); | 7602 checkFirewall(obj); |
| 6929 | 7603 |
| 6930 var path = (req.url).path; | 7604 var path = (req.url).path; |
| 6931 var pathOffset = 0; | 7605 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 6949 var keyvalue = part.split("="); | 7623 var keyvalue = part.split("="); |
| 6950 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7624 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6951 } | 7625 } |
| 6952 } | 7626 } |
| 6953 | 7627 |
| 6954 | 7628 |
| 6955 var h = { | 7629 var h = { |
| 6956 "content-type" : "application/json; charset=utf-8", | 7630 "content-type" : "application/json; charset=utf-8", |
| 6957 }; | 7631 }; |
| 6958 var resp = convert.JSON.encode(buildOperation()); | 7632 var resp = convert.JSON.encode(buildOperation()); |
| 6959 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7633 return new async.Future.value(stringResponse(200, h, resp)); |
| 6960 }), true); | 7634 }), true); |
| 6961 res.patch(arg_request, arg_project, arg_firewall).then(unittest.expectAsyn
c(((api.Operation response) { | 7635 res.patch(arg_request, arg_project, arg_firewall).then(unittest.expectAsyn
c(((api.Operation response) { |
| 6962 checkOperation(response); | 7636 checkOperation(response); |
| 6963 }))); | 7637 }))); |
| 6964 }); | 7638 }); |
| 6965 | 7639 |
| 6966 unittest.test("method--update", () { | 7640 unittest.test("method--update", () { |
| 6967 | 7641 |
| 6968 var mock = new common_test.HttpServerMock(); | 7642 var mock = new HttpServerMock(); |
| 6969 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; | 7643 api.FirewallsResourceApi res = new api.ComputeApi(mock).firewalls; |
| 6970 var arg_request = buildFirewall(); | 7644 var arg_request = buildFirewall(); |
| 6971 var arg_project = "foo"; | 7645 var arg_project = "foo"; |
| 6972 var arg_firewall = "foo"; | 7646 var arg_firewall = "foo"; |
| 6973 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7647 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6974 var obj = new api.Firewall.fromJson(json); | 7648 var obj = new api.Firewall.fromJson(json); |
| 6975 checkFirewall(obj); | 7649 checkFirewall(obj); |
| 6976 | 7650 |
| 6977 var path = (req.url).path; | 7651 var path = (req.url).path; |
| 6978 var pathOffset = 0; | 7652 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 6996 var keyvalue = part.split("="); | 7670 var keyvalue = part.split("="); |
| 6997 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7671 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6998 } | 7672 } |
| 6999 } | 7673 } |
| 7000 | 7674 |
| 7001 | 7675 |
| 7002 var h = { | 7676 var h = { |
| 7003 "content-type" : "application/json; charset=utf-8", | 7677 "content-type" : "application/json; charset=utf-8", |
| 7004 }; | 7678 }; |
| 7005 var resp = convert.JSON.encode(buildOperation()); | 7679 var resp = convert.JSON.encode(buildOperation()); |
| 7006 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7680 return new async.Future.value(stringResponse(200, h, resp)); |
| 7007 }), true); | 7681 }), true); |
| 7008 res.update(arg_request, arg_project, arg_firewall).then(unittest.expectAsy
nc(((api.Operation response) { | 7682 res.update(arg_request, arg_project, arg_firewall).then(unittest.expectAsy
nc(((api.Operation response) { |
| 7009 checkOperation(response); | 7683 checkOperation(response); |
| 7010 }))); | 7684 }))); |
| 7011 }); | 7685 }); |
| 7012 | 7686 |
| 7013 }); | 7687 }); |
| 7014 | 7688 |
| 7015 | 7689 |
| 7016 unittest.group("resource-ForwardingRulesResourceApi", () { | 7690 unittest.group("resource-ForwardingRulesResourceApi", () { |
| 7017 unittest.test("method--aggregatedList", () { | 7691 unittest.test("method--aggregatedList", () { |
| 7018 | 7692 |
| 7019 var mock = new common_test.HttpServerMock(); | 7693 var mock = new HttpServerMock(); |
| 7020 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 7694 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
| 7021 var arg_project = "foo"; | 7695 var arg_project = "foo"; |
| 7022 var arg_filter = "foo"; | 7696 var arg_filter = "foo"; |
| 7023 var arg_maxResults = 42; | 7697 var arg_maxResults = 42; |
| 7024 var arg_pageToken = "foo"; | 7698 var arg_pageToken = "foo"; |
| 7025 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7699 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7026 var path = (req.url).path; | 7700 var path = (req.url).path; |
| 7027 var pathOffset = 0; | 7701 var pathOffset = 0; |
| 7028 var index; | 7702 var index; |
| 7029 var subPart; | 7703 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 7048 } | 7722 } |
| 7049 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 7723 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 7050 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 7724 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 7051 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7725 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 7052 | 7726 |
| 7053 | 7727 |
| 7054 var h = { | 7728 var h = { |
| 7055 "content-type" : "application/json; charset=utf-8", | 7729 "content-type" : "application/json; charset=utf-8", |
| 7056 }; | 7730 }; |
| 7057 var resp = convert.JSON.encode(buildForwardingRuleAggregatedList()); | 7731 var resp = convert.JSON.encode(buildForwardingRuleAggregatedList()); |
| 7058 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7732 return new async.Future.value(stringResponse(200, h, resp)); |
| 7059 }), true); | 7733 }), true); |
| 7060 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleAg
gregatedList response) { | 7734 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleAg
gregatedList response) { |
| 7061 checkForwardingRuleAggregatedList(response); | 7735 checkForwardingRuleAggregatedList(response); |
| 7062 }))); | 7736 }))); |
| 7063 }); | 7737 }); |
| 7064 | 7738 |
| 7065 unittest.test("method--delete", () { | 7739 unittest.test("method--delete", () { |
| 7066 | 7740 |
| 7067 var mock = new common_test.HttpServerMock(); | 7741 var mock = new HttpServerMock(); |
| 7068 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 7742 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
| 7069 var arg_project = "foo"; | 7743 var arg_project = "foo"; |
| 7070 var arg_region = "foo"; | 7744 var arg_region = "foo"; |
| 7071 var arg_forwardingRule = "foo"; | 7745 var arg_forwardingRule = "foo"; |
| 7072 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7746 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7073 var path = (req.url).path; | 7747 var path = (req.url).path; |
| 7074 var pathOffset = 0; | 7748 var pathOffset = 0; |
| 7075 var index; | 7749 var index; |
| 7076 var subPart; | 7750 var subPart; |
| 7077 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7751 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 7092 var keyvalue = part.split("="); | 7766 var keyvalue = part.split("="); |
| 7093 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7767 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7094 } | 7768 } |
| 7095 } | 7769 } |
| 7096 | 7770 |
| 7097 | 7771 |
| 7098 var h = { | 7772 var h = { |
| 7099 "content-type" : "application/json; charset=utf-8", | 7773 "content-type" : "application/json; charset=utf-8", |
| 7100 }; | 7774 }; |
| 7101 var resp = convert.JSON.encode(buildOperation()); | 7775 var resp = convert.JSON.encode(buildOperation()); |
| 7102 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7776 return new async.Future.value(stringResponse(200, h, resp)); |
| 7103 }), true); | 7777 }), true); |
| 7104 res.delete(arg_project, arg_region, arg_forwardingRule).then(unittest.expe
ctAsync(((api.Operation response) { | 7778 res.delete(arg_project, arg_region, arg_forwardingRule).then(unittest.expe
ctAsync(((api.Operation response) { |
| 7105 checkOperation(response); | 7779 checkOperation(response); |
| 7106 }))); | 7780 }))); |
| 7107 }); | 7781 }); |
| 7108 | 7782 |
| 7109 unittest.test("method--get", () { | 7783 unittest.test("method--get", () { |
| 7110 | 7784 |
| 7111 var mock = new common_test.HttpServerMock(); | 7785 var mock = new HttpServerMock(); |
| 7112 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 7786 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
| 7113 var arg_project = "foo"; | 7787 var arg_project = "foo"; |
| 7114 var arg_region = "foo"; | 7788 var arg_region = "foo"; |
| 7115 var arg_forwardingRule = "foo"; | 7789 var arg_forwardingRule = "foo"; |
| 7116 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7117 var path = (req.url).path; | 7791 var path = (req.url).path; |
| 7118 var pathOffset = 0; | 7792 var pathOffset = 0; |
| 7119 var index; | 7793 var index; |
| 7120 var subPart; | 7794 var subPart; |
| 7121 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 7136 var keyvalue = part.split("="); | 7810 var keyvalue = part.split("="); |
| 7137 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7811 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7138 } | 7812 } |
| 7139 } | 7813 } |
| 7140 | 7814 |
| 7141 | 7815 |
| 7142 var h = { | 7816 var h = { |
| 7143 "content-type" : "application/json; charset=utf-8", | 7817 "content-type" : "application/json; charset=utf-8", |
| 7144 }; | 7818 }; |
| 7145 var resp = convert.JSON.encode(buildForwardingRule()); | 7819 var resp = convert.JSON.encode(buildForwardingRule()); |
| 7146 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7820 return new async.Future.value(stringResponse(200, h, resp)); |
| 7147 }), true); | 7821 }), true); |
| 7148 res.get(arg_project, arg_region, arg_forwardingRule).then(unittest.expectA
sync(((api.ForwardingRule response) { | 7822 res.get(arg_project, arg_region, arg_forwardingRule).then(unittest.expectA
sync(((api.ForwardingRule response) { |
| 7149 checkForwardingRule(response); | 7823 checkForwardingRule(response); |
| 7150 }))); | 7824 }))); |
| 7151 }); | 7825 }); |
| 7152 | 7826 |
| 7153 unittest.test("method--insert", () { | 7827 unittest.test("method--insert", () { |
| 7154 | 7828 |
| 7155 var mock = new common_test.HttpServerMock(); | 7829 var mock = new HttpServerMock(); |
| 7156 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 7830 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
| 7157 var arg_request = buildForwardingRule(); | 7831 var arg_request = buildForwardingRule(); |
| 7158 var arg_project = "foo"; | 7832 var arg_project = "foo"; |
| 7159 var arg_region = "foo"; | 7833 var arg_region = "foo"; |
| 7160 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7834 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7161 var obj = new api.ForwardingRule.fromJson(json); | 7835 var obj = new api.ForwardingRule.fromJson(json); |
| 7162 checkForwardingRule(obj); | 7836 checkForwardingRule(obj); |
| 7163 | 7837 |
| 7164 var path = (req.url).path; | 7838 var path = (req.url).path; |
| 7165 var pathOffset = 0; | 7839 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 7183 var keyvalue = part.split("="); | 7857 var keyvalue = part.split("="); |
| 7184 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7858 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7185 } | 7859 } |
| 7186 } | 7860 } |
| 7187 | 7861 |
| 7188 | 7862 |
| 7189 var h = { | 7863 var h = { |
| 7190 "content-type" : "application/json; charset=utf-8", | 7864 "content-type" : "application/json; charset=utf-8", |
| 7191 }; | 7865 }; |
| 7192 var resp = convert.JSON.encode(buildOperation()); | 7866 var resp = convert.JSON.encode(buildOperation()); |
| 7193 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7867 return new async.Future.value(stringResponse(200, h, resp)); |
| 7194 }), true); | 7868 }), true); |
| 7195 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { | 7869 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { |
| 7196 checkOperation(response); | 7870 checkOperation(response); |
| 7197 }))); | 7871 }))); |
| 7198 }); | 7872 }); |
| 7199 | 7873 |
| 7200 unittest.test("method--list", () { | 7874 unittest.test("method--list", () { |
| 7201 | 7875 |
| 7202 var mock = new common_test.HttpServerMock(); | 7876 var mock = new HttpServerMock(); |
| 7203 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 7877 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
| 7204 var arg_project = "foo"; | 7878 var arg_project = "foo"; |
| 7205 var arg_region = "foo"; | 7879 var arg_region = "foo"; |
| 7206 var arg_filter = "foo"; | 7880 var arg_filter = "foo"; |
| 7207 var arg_maxResults = 42; | 7881 var arg_maxResults = 42; |
| 7208 var arg_pageToken = "foo"; | 7882 var arg_pageToken = "foo"; |
| 7209 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7883 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7210 var path = (req.url).path; | 7884 var path = (req.url).path; |
| 7211 var pathOffset = 0; | 7885 var pathOffset = 0; |
| 7212 var index; | 7886 var index; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 7232 } | 7906 } |
| 7233 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 7907 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 7234 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 7908 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 7235 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7909 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 7236 | 7910 |
| 7237 | 7911 |
| 7238 var h = { | 7912 var h = { |
| 7239 "content-type" : "application/json; charset=utf-8", | 7913 "content-type" : "application/json; charset=utf-8", |
| 7240 }; | 7914 }; |
| 7241 var resp = convert.JSON.encode(buildForwardingRuleList()); | 7915 var resp = convert.JSON.encode(buildForwardingRuleList()); |
| 7242 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7916 return new async.Future.value(stringResponse(200, h, resp)); |
| 7243 }), true); | 7917 }), true); |
| 7244 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRule
List response) { | 7918 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRule
List response) { |
| 7245 checkForwardingRuleList(response); | 7919 checkForwardingRuleList(response); |
| 7246 }))); | 7920 }))); |
| 7247 }); | 7921 }); |
| 7248 | 7922 |
| 7249 unittest.test("method--setTarget", () { | 7923 unittest.test("method--setTarget", () { |
| 7250 | 7924 |
| 7251 var mock = new common_test.HttpServerMock(); | 7925 var mock = new HttpServerMock(); |
| 7252 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; | 7926 api.ForwardingRulesResourceApi res = new api.ComputeApi(mock).forwardingRu
les; |
| 7253 var arg_request = buildTargetReference(); | 7927 var arg_request = buildTargetReference(); |
| 7254 var arg_project = "foo"; | 7928 var arg_project = "foo"; |
| 7255 var arg_region = "foo"; | 7929 var arg_region = "foo"; |
| 7256 var arg_forwardingRule = "foo"; | 7930 var arg_forwardingRule = "foo"; |
| 7257 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7931 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7258 var obj = new api.TargetReference.fromJson(json); | 7932 var obj = new api.TargetReference.fromJson(json); |
| 7259 checkTargetReference(obj); | 7933 checkTargetReference(obj); |
| 7260 | 7934 |
| 7261 var path = (req.url).path; | 7935 var path = (req.url).path; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 7280 var keyvalue = part.split("="); | 7954 var keyvalue = part.split("="); |
| 7281 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7955 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7282 } | 7956 } |
| 7283 } | 7957 } |
| 7284 | 7958 |
| 7285 | 7959 |
| 7286 var h = { | 7960 var h = { |
| 7287 "content-type" : "application/json; charset=utf-8", | 7961 "content-type" : "application/json; charset=utf-8", |
| 7288 }; | 7962 }; |
| 7289 var resp = convert.JSON.encode(buildOperation()); | 7963 var resp = convert.JSON.encode(buildOperation()); |
| 7290 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 7964 return new async.Future.value(stringResponse(200, h, resp)); |
| 7291 }), true); | 7965 }), true); |
| 7292 res.setTarget(arg_request, arg_project, arg_region, arg_forwardingRule).th
en(unittest.expectAsync(((api.Operation response) { | 7966 res.setTarget(arg_request, arg_project, arg_region, arg_forwardingRule).th
en(unittest.expectAsync(((api.Operation response) { |
| 7293 checkOperation(response); | 7967 checkOperation(response); |
| 7294 }))); | 7968 }))); |
| 7295 }); | 7969 }); |
| 7296 | 7970 |
| 7297 }); | 7971 }); |
| 7298 | 7972 |
| 7299 | 7973 |
| 7300 unittest.group("resource-GlobalAddressesResourceApi", () { | 7974 unittest.group("resource-GlobalAddressesResourceApi", () { |
| 7301 unittest.test("method--delete", () { | 7975 unittest.test("method--delete", () { |
| 7302 | 7976 |
| 7303 var mock = new common_test.HttpServerMock(); | 7977 var mock = new HttpServerMock(); |
| 7304 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; | 7978 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; |
| 7305 var arg_project = "foo"; | 7979 var arg_project = "foo"; |
| 7306 var arg_address = "foo"; | 7980 var arg_address = "foo"; |
| 7307 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7981 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7308 var path = (req.url).path; | 7982 var path = (req.url).path; |
| 7309 var pathOffset = 0; | 7983 var pathOffset = 0; |
| 7310 var index; | 7984 var index; |
| 7311 var subPart; | 7985 var subPart; |
| 7312 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7986 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7313 pathOffset += 1; | 7987 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 7327 var keyvalue = part.split("="); | 8001 var keyvalue = part.split("="); |
| 7328 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8002 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7329 } | 8003 } |
| 7330 } | 8004 } |
| 7331 | 8005 |
| 7332 | 8006 |
| 7333 var h = { | 8007 var h = { |
| 7334 "content-type" : "application/json; charset=utf-8", | 8008 "content-type" : "application/json; charset=utf-8", |
| 7335 }; | 8009 }; |
| 7336 var resp = convert.JSON.encode(buildOperation()); | 8010 var resp = convert.JSON.encode(buildOperation()); |
| 7337 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8011 return new async.Future.value(stringResponse(200, h, resp)); |
| 7338 }), true); | 8012 }), true); |
| 7339 res.delete(arg_project, arg_address).then(unittest.expectAsync(((api.Opera
tion response) { | 8013 res.delete(arg_project, arg_address).then(unittest.expectAsync(((api.Opera
tion response) { |
| 7340 checkOperation(response); | 8014 checkOperation(response); |
| 7341 }))); | 8015 }))); |
| 7342 }); | 8016 }); |
| 7343 | 8017 |
| 7344 unittest.test("method--get", () { | 8018 unittest.test("method--get", () { |
| 7345 | 8019 |
| 7346 var mock = new common_test.HttpServerMock(); | 8020 var mock = new HttpServerMock(); |
| 7347 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; | 8021 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; |
| 7348 var arg_project = "foo"; | 8022 var arg_project = "foo"; |
| 7349 var arg_address = "foo"; | 8023 var arg_address = "foo"; |
| 7350 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8024 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7351 var path = (req.url).path; | 8025 var path = (req.url).path; |
| 7352 var pathOffset = 0; | 8026 var pathOffset = 0; |
| 7353 var index; | 8027 var index; |
| 7354 var subPart; | 8028 var subPart; |
| 7355 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8029 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7356 pathOffset += 1; | 8030 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 7370 var keyvalue = part.split("="); | 8044 var keyvalue = part.split("="); |
| 7371 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8045 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7372 } | 8046 } |
| 7373 } | 8047 } |
| 7374 | 8048 |
| 7375 | 8049 |
| 7376 var h = { | 8050 var h = { |
| 7377 "content-type" : "application/json; charset=utf-8", | 8051 "content-type" : "application/json; charset=utf-8", |
| 7378 }; | 8052 }; |
| 7379 var resp = convert.JSON.encode(buildAddress()); | 8053 var resp = convert.JSON.encode(buildAddress()); |
| 7380 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8054 return new async.Future.value(stringResponse(200, h, resp)); |
| 7381 }), true); | 8055 }), true); |
| 7382 res.get(arg_project, arg_address).then(unittest.expectAsync(((api.Address
response) { | 8056 res.get(arg_project, arg_address).then(unittest.expectAsync(((api.Address
response) { |
| 7383 checkAddress(response); | 8057 checkAddress(response); |
| 7384 }))); | 8058 }))); |
| 7385 }); | 8059 }); |
| 7386 | 8060 |
| 7387 unittest.test("method--insert", () { | 8061 unittest.test("method--insert", () { |
| 7388 | 8062 |
| 7389 var mock = new common_test.HttpServerMock(); | 8063 var mock = new HttpServerMock(); |
| 7390 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; | 8064 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; |
| 7391 var arg_request = buildAddress(); | 8065 var arg_request = buildAddress(); |
| 7392 var arg_project = "foo"; | 8066 var arg_project = "foo"; |
| 7393 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8067 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7394 var obj = new api.Address.fromJson(json); | 8068 var obj = new api.Address.fromJson(json); |
| 7395 checkAddress(obj); | 8069 checkAddress(obj); |
| 7396 | 8070 |
| 7397 var path = (req.url).path; | 8071 var path = (req.url).path; |
| 7398 var pathOffset = 0; | 8072 var pathOffset = 0; |
| 7399 var index; | 8073 var index; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 7416 var keyvalue = part.split("="); | 8090 var keyvalue = part.split("="); |
| 7417 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8091 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7418 } | 8092 } |
| 7419 } | 8093 } |
| 7420 | 8094 |
| 7421 | 8095 |
| 7422 var h = { | 8096 var h = { |
| 7423 "content-type" : "application/json; charset=utf-8", | 8097 "content-type" : "application/json; charset=utf-8", |
| 7424 }; | 8098 }; |
| 7425 var resp = convert.JSON.encode(buildOperation()); | 8099 var resp = convert.JSON.encode(buildOperation()); |
| 7426 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8100 return new async.Future.value(stringResponse(200, h, resp)); |
| 7427 }), true); | 8101 }), true); |
| 7428 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 8102 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
| 7429 checkOperation(response); | 8103 checkOperation(response); |
| 7430 }))); | 8104 }))); |
| 7431 }); | 8105 }); |
| 7432 | 8106 |
| 7433 unittest.test("method--list", () { | 8107 unittest.test("method--list", () { |
| 7434 | 8108 |
| 7435 var mock = new common_test.HttpServerMock(); | 8109 var mock = new HttpServerMock(); |
| 7436 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; | 8110 api.GlobalAddressesResourceApi res = new api.ComputeApi(mock).globalAddres
ses; |
| 7437 var arg_project = "foo"; | 8111 var arg_project = "foo"; |
| 7438 var arg_filter = "foo"; | 8112 var arg_filter = "foo"; |
| 7439 var arg_maxResults = 42; | 8113 var arg_maxResults = 42; |
| 7440 var arg_pageToken = "foo"; | 8114 var arg_pageToken = "foo"; |
| 7441 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8115 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7442 var path = (req.url).path; | 8116 var path = (req.url).path; |
| 7443 var pathOffset = 0; | 8117 var pathOffset = 0; |
| 7444 var index; | 8118 var index; |
| 7445 var subPart; | 8119 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 7464 } | 8138 } |
| 7465 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 8139 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 7466 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 8140 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 7467 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 8141 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 7468 | 8142 |
| 7469 | 8143 |
| 7470 var h = { | 8144 var h = { |
| 7471 "content-type" : "application/json; charset=utf-8", | 8145 "content-type" : "application/json; charset=utf-8", |
| 7472 }; | 8146 }; |
| 7473 var resp = convert.JSON.encode(buildAddressList()); | 8147 var resp = convert.JSON.encode(buildAddressList()); |
| 7474 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8148 return new async.Future.value(stringResponse(200, h, resp)); |
| 7475 }), true); | 8149 }), true); |
| 7476 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) { | 8150 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.AddressList response) { |
| 7477 checkAddressList(response); | 8151 checkAddressList(response); |
| 7478 }))); | 8152 }))); |
| 7479 }); | 8153 }); |
| 7480 | 8154 |
| 7481 }); | 8155 }); |
| 7482 | 8156 |
| 7483 | 8157 |
| 7484 unittest.group("resource-GlobalForwardingRulesResourceApi", () { | 8158 unittest.group("resource-GlobalForwardingRulesResourceApi", () { |
| 7485 unittest.test("method--delete", () { | 8159 unittest.test("method--delete", () { |
| 7486 | 8160 |
| 7487 var mock = new common_test.HttpServerMock(); | 8161 var mock = new HttpServerMock(); |
| 7488 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 8162 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
| 7489 var arg_project = "foo"; | 8163 var arg_project = "foo"; |
| 7490 var arg_forwardingRule = "foo"; | 8164 var arg_forwardingRule = "foo"; |
| 7491 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8165 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7492 var path = (req.url).path; | 8166 var path = (req.url).path; |
| 7493 var pathOffset = 0; | 8167 var pathOffset = 0; |
| 7494 var index; | 8168 var index; |
| 7495 var subPart; | 8169 var subPart; |
| 7496 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8170 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7497 pathOffset += 1; | 8171 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 7511 var keyvalue = part.split("="); | 8185 var keyvalue = part.split("="); |
| 7512 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8186 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7513 } | 8187 } |
| 7514 } | 8188 } |
| 7515 | 8189 |
| 7516 | 8190 |
| 7517 var h = { | 8191 var h = { |
| 7518 "content-type" : "application/json; charset=utf-8", | 8192 "content-type" : "application/json; charset=utf-8", |
| 7519 }; | 8193 }; |
| 7520 var resp = convert.JSON.encode(buildOperation()); | 8194 var resp = convert.JSON.encode(buildOperation()); |
| 7521 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8195 return new async.Future.value(stringResponse(200, h, resp)); |
| 7522 }), true); | 8196 }), true); |
| 7523 res.delete(arg_project, arg_forwardingRule).then(unittest.expectAsync(((ap
i.Operation response) { | 8197 res.delete(arg_project, arg_forwardingRule).then(unittest.expectAsync(((ap
i.Operation response) { |
| 7524 checkOperation(response); | 8198 checkOperation(response); |
| 7525 }))); | 8199 }))); |
| 7526 }); | 8200 }); |
| 7527 | 8201 |
| 7528 unittest.test("method--get", () { | 8202 unittest.test("method--get", () { |
| 7529 | 8203 |
| 7530 var mock = new common_test.HttpServerMock(); | 8204 var mock = new HttpServerMock(); |
| 7531 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 8205 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
| 7532 var arg_project = "foo"; | 8206 var arg_project = "foo"; |
| 7533 var arg_forwardingRule = "foo"; | 8207 var arg_forwardingRule = "foo"; |
| 7534 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8208 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7535 var path = (req.url).path; | 8209 var path = (req.url).path; |
| 7536 var pathOffset = 0; | 8210 var pathOffset = 0; |
| 7537 var index; | 8211 var index; |
| 7538 var subPart; | 8212 var subPart; |
| 7539 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8213 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7540 pathOffset += 1; | 8214 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 7554 var keyvalue = part.split("="); | 8228 var keyvalue = part.split("="); |
| 7555 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8229 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7556 } | 8230 } |
| 7557 } | 8231 } |
| 7558 | 8232 |
| 7559 | 8233 |
| 7560 var h = { | 8234 var h = { |
| 7561 "content-type" : "application/json; charset=utf-8", | 8235 "content-type" : "application/json; charset=utf-8", |
| 7562 }; | 8236 }; |
| 7563 var resp = convert.JSON.encode(buildForwardingRule()); | 8237 var resp = convert.JSON.encode(buildForwardingRule()); |
| 7564 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8238 return new async.Future.value(stringResponse(200, h, resp)); |
| 7565 }), true); | 8239 }), true); |
| 7566 res.get(arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.F
orwardingRule response) { | 8240 res.get(arg_project, arg_forwardingRule).then(unittest.expectAsync(((api.F
orwardingRule response) { |
| 7567 checkForwardingRule(response); | 8241 checkForwardingRule(response); |
| 7568 }))); | 8242 }))); |
| 7569 }); | 8243 }); |
| 7570 | 8244 |
| 7571 unittest.test("method--insert", () { | 8245 unittest.test("method--insert", () { |
| 7572 | 8246 |
| 7573 var mock = new common_test.HttpServerMock(); | 8247 var mock = new HttpServerMock(); |
| 7574 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 8248 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
| 7575 var arg_request = buildForwardingRule(); | 8249 var arg_request = buildForwardingRule(); |
| 7576 var arg_project = "foo"; | 8250 var arg_project = "foo"; |
| 7577 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8251 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7578 var obj = new api.ForwardingRule.fromJson(json); | 8252 var obj = new api.ForwardingRule.fromJson(json); |
| 7579 checkForwardingRule(obj); | 8253 checkForwardingRule(obj); |
| 7580 | 8254 |
| 7581 var path = (req.url).path; | 8255 var path = (req.url).path; |
| 7582 var pathOffset = 0; | 8256 var pathOffset = 0; |
| 7583 var index; | 8257 var index; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 7600 var keyvalue = part.split("="); | 8274 var keyvalue = part.split("="); |
| 7601 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8275 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7602 } | 8276 } |
| 7603 } | 8277 } |
| 7604 | 8278 |
| 7605 | 8279 |
| 7606 var h = { | 8280 var h = { |
| 7607 "content-type" : "application/json; charset=utf-8", | 8281 "content-type" : "application/json; charset=utf-8", |
| 7608 }; | 8282 }; |
| 7609 var resp = convert.JSON.encode(buildOperation()); | 8283 var resp = convert.JSON.encode(buildOperation()); |
| 7610 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8284 return new async.Future.value(stringResponse(200, h, resp)); |
| 7611 }), true); | 8285 }), true); |
| 7612 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 8286 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
| 7613 checkOperation(response); | 8287 checkOperation(response); |
| 7614 }))); | 8288 }))); |
| 7615 }); | 8289 }); |
| 7616 | 8290 |
| 7617 unittest.test("method--list", () { | 8291 unittest.test("method--list", () { |
| 7618 | 8292 |
| 7619 var mock = new common_test.HttpServerMock(); | 8293 var mock = new HttpServerMock(); |
| 7620 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 8294 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
| 7621 var arg_project = "foo"; | 8295 var arg_project = "foo"; |
| 7622 var arg_filter = "foo"; | 8296 var arg_filter = "foo"; |
| 7623 var arg_maxResults = 42; | 8297 var arg_maxResults = 42; |
| 7624 var arg_pageToken = "foo"; | 8298 var arg_pageToken = "foo"; |
| 7625 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8299 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7626 var path = (req.url).path; | 8300 var path = (req.url).path; |
| 7627 var pathOffset = 0; | 8301 var pathOffset = 0; |
| 7628 var index; | 8302 var index; |
| 7629 var subPart; | 8303 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 7648 } | 8322 } |
| 7649 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 8323 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 7650 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 8324 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 7651 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 8325 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 7652 | 8326 |
| 7653 | 8327 |
| 7654 var h = { | 8328 var h = { |
| 7655 "content-type" : "application/json; charset=utf-8", | 8329 "content-type" : "application/json; charset=utf-8", |
| 7656 }; | 8330 }; |
| 7657 var resp = convert.JSON.encode(buildForwardingRuleList()); | 8331 var resp = convert.JSON.encode(buildForwardingRuleList()); |
| 7658 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8332 return new async.Future.value(stringResponse(200, h, resp)); |
| 7659 }), true); | 8333 }), true); |
| 7660 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList respons
e) { | 8334 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.ForwardingRuleList respons
e) { |
| 7661 checkForwardingRuleList(response); | 8335 checkForwardingRuleList(response); |
| 7662 }))); | 8336 }))); |
| 7663 }); | 8337 }); |
| 7664 | 8338 |
| 7665 unittest.test("method--setTarget", () { | 8339 unittest.test("method--setTarget", () { |
| 7666 | 8340 |
| 7667 var mock = new common_test.HttpServerMock(); | 8341 var mock = new HttpServerMock(); |
| 7668 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; | 8342 api.GlobalForwardingRulesResourceApi res = new api.ComputeApi(mock).global
ForwardingRules; |
| 7669 var arg_request = buildTargetReference(); | 8343 var arg_request = buildTargetReference(); |
| 7670 var arg_project = "foo"; | 8344 var arg_project = "foo"; |
| 7671 var arg_forwardingRule = "foo"; | 8345 var arg_forwardingRule = "foo"; |
| 7672 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8346 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7673 var obj = new api.TargetReference.fromJson(json); | 8347 var obj = new api.TargetReference.fromJson(json); |
| 7674 checkTargetReference(obj); | 8348 checkTargetReference(obj); |
| 7675 | 8349 |
| 7676 var path = (req.url).path; | 8350 var path = (req.url).path; |
| 7677 var pathOffset = 0; | 8351 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 7695 var keyvalue = part.split("="); | 8369 var keyvalue = part.split("="); |
| 7696 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8370 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7697 } | 8371 } |
| 7698 } | 8372 } |
| 7699 | 8373 |
| 7700 | 8374 |
| 7701 var h = { | 8375 var h = { |
| 7702 "content-type" : "application/json; charset=utf-8", | 8376 "content-type" : "application/json; charset=utf-8", |
| 7703 }; | 8377 }; |
| 7704 var resp = convert.JSON.encode(buildOperation()); | 8378 var resp = convert.JSON.encode(buildOperation()); |
| 7705 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8379 return new async.Future.value(stringResponse(200, h, resp)); |
| 7706 }), true); | 8380 }), true); |
| 7707 res.setTarget(arg_request, arg_project, arg_forwardingRule).then(unittest.
expectAsync(((api.Operation response) { | 8381 res.setTarget(arg_request, arg_project, arg_forwardingRule).then(unittest.
expectAsync(((api.Operation response) { |
| 7708 checkOperation(response); | 8382 checkOperation(response); |
| 7709 }))); | 8383 }))); |
| 7710 }); | 8384 }); |
| 7711 | 8385 |
| 7712 }); | 8386 }); |
| 7713 | 8387 |
| 7714 | 8388 |
| 7715 unittest.group("resource-GlobalOperationsResourceApi", () { | 8389 unittest.group("resource-GlobalOperationsResourceApi", () { |
| 7716 unittest.test("method--aggregatedList", () { | 8390 unittest.test("method--aggregatedList", () { |
| 7717 | 8391 |
| 7718 var mock = new common_test.HttpServerMock(); | 8392 var mock = new HttpServerMock(); |
| 7719 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; | 8393 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; |
| 7720 var arg_project = "foo"; | 8394 var arg_project = "foo"; |
| 7721 var arg_filter = "foo"; | 8395 var arg_filter = "foo"; |
| 7722 var arg_maxResults = 42; | 8396 var arg_maxResults = 42; |
| 7723 var arg_pageToken = "foo"; | 8397 var arg_pageToken = "foo"; |
| 7724 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8398 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7725 var path = (req.url).path; | 8399 var path = (req.url).path; |
| 7726 var pathOffset = 0; | 8400 var pathOffset = 0; |
| 7727 var index; | 8401 var index; |
| 7728 var subPart; | 8402 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 7747 } | 8421 } |
| 7748 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 8422 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 7749 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 8423 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 7750 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 8424 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 7751 | 8425 |
| 7752 | 8426 |
| 7753 var h = { | 8427 var h = { |
| 7754 "content-type" : "application/json; charset=utf-8", | 8428 "content-type" : "application/json; charset=utf-8", |
| 7755 }; | 8429 }; |
| 7756 var resp = convert.JSON.encode(buildOperationAggregatedList()); | 8430 var resp = convert.JSON.encode(buildOperationAggregatedList()); |
| 7757 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8431 return new async.Future.value(stringResponse(200, h, resp)); |
| 7758 }), true); | 8432 }), true); |
| 7759 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationAggrega
tedList response) { | 8433 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationAggrega
tedList response) { |
| 7760 checkOperationAggregatedList(response); | 8434 checkOperationAggregatedList(response); |
| 7761 }))); | 8435 }))); |
| 7762 }); | 8436 }); |
| 7763 | 8437 |
| 7764 unittest.test("method--delete", () { | 8438 unittest.test("method--delete", () { |
| 7765 | 8439 |
| 7766 var mock = new common_test.HttpServerMock(); | 8440 var mock = new HttpServerMock(); |
| 7767 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; | 8441 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; |
| 7768 var arg_project = "foo"; | 8442 var arg_project = "foo"; |
| 7769 var arg_operation = "foo"; | 8443 var arg_operation = "foo"; |
| 7770 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8444 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7771 var path = (req.url).path; | 8445 var path = (req.url).path; |
| 7772 var pathOffset = 0; | 8446 var pathOffset = 0; |
| 7773 var index; | 8447 var index; |
| 7774 var subPart; | 8448 var subPart; |
| 7775 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8449 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7776 pathOffset += 1; | 8450 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 7790 var keyvalue = part.split("="); | 8464 var keyvalue = part.split("="); |
| 7791 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8465 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7792 } | 8466 } |
| 7793 } | 8467 } |
| 7794 | 8468 |
| 7795 | 8469 |
| 7796 var h = { | 8470 var h = { |
| 7797 "content-type" : "application/json; charset=utf-8", | 8471 "content-type" : "application/json; charset=utf-8", |
| 7798 }; | 8472 }; |
| 7799 var resp = ""; | 8473 var resp = ""; |
| 7800 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8474 return new async.Future.value(stringResponse(200, h, resp)); |
| 7801 }), true); | 8475 }), true); |
| 7802 res.delete(arg_project, arg_operation).then(unittest.expectAsync((_) {})); | 8476 res.delete(arg_project, arg_operation).then(unittest.expectAsync((_) {})); |
| 7803 }); | 8477 }); |
| 7804 | 8478 |
| 7805 unittest.test("method--get", () { | 8479 unittest.test("method--get", () { |
| 7806 | 8480 |
| 7807 var mock = new common_test.HttpServerMock(); | 8481 var mock = new HttpServerMock(); |
| 7808 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; | 8482 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; |
| 7809 var arg_project = "foo"; | 8483 var arg_project = "foo"; |
| 7810 var arg_operation = "foo"; | 8484 var arg_operation = "foo"; |
| 7811 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8485 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7812 var path = (req.url).path; | 8486 var path = (req.url).path; |
| 7813 var pathOffset = 0; | 8487 var pathOffset = 0; |
| 7814 var index; | 8488 var index; |
| 7815 var subPart; | 8489 var subPart; |
| 7816 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8490 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7817 pathOffset += 1; | 8491 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 7831 var keyvalue = part.split("="); | 8505 var keyvalue = part.split("="); |
| 7832 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8506 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7833 } | 8507 } |
| 7834 } | 8508 } |
| 7835 | 8509 |
| 7836 | 8510 |
| 7837 var h = { | 8511 var h = { |
| 7838 "content-type" : "application/json; charset=utf-8", | 8512 "content-type" : "application/json; charset=utf-8", |
| 7839 }; | 8513 }; |
| 7840 var resp = convert.JSON.encode(buildOperation()); | 8514 var resp = convert.JSON.encode(buildOperation()); |
| 7841 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8515 return new async.Future.value(stringResponse(200, h, resp)); |
| 7842 }), true); | 8516 }), true); |
| 7843 res.get(arg_project, arg_operation).then(unittest.expectAsync(((api.Operat
ion response) { | 8517 res.get(arg_project, arg_operation).then(unittest.expectAsync(((api.Operat
ion response) { |
| 7844 checkOperation(response); | 8518 checkOperation(response); |
| 7845 }))); | 8519 }))); |
| 7846 }); | 8520 }); |
| 7847 | 8521 |
| 7848 unittest.test("method--list", () { | 8522 unittest.test("method--list", () { |
| 7849 | 8523 |
| 7850 var mock = new common_test.HttpServerMock(); | 8524 var mock = new HttpServerMock(); |
| 7851 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; | 8525 api.GlobalOperationsResourceApi res = new api.ComputeApi(mock).globalOpera
tions; |
| 7852 var arg_project = "foo"; | 8526 var arg_project = "foo"; |
| 7853 var arg_filter = "foo"; | 8527 var arg_filter = "foo"; |
| 7854 var arg_maxResults = 42; | 8528 var arg_maxResults = 42; |
| 7855 var arg_pageToken = "foo"; | 8529 var arg_pageToken = "foo"; |
| 7856 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8530 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7857 var path = (req.url).path; | 8531 var path = (req.url).path; |
| 7858 var pathOffset = 0; | 8532 var pathOffset = 0; |
| 7859 var index; | 8533 var index; |
| 7860 var subPart; | 8534 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 7879 } | 8553 } |
| 7880 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 8554 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 7881 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 8555 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 7882 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 8556 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 7883 | 8557 |
| 7884 | 8558 |
| 7885 var h = { | 8559 var h = { |
| 7886 "content-type" : "application/json; charset=utf-8", | 8560 "content-type" : "application/json; charset=utf-8", |
| 7887 }; | 8561 }; |
| 7888 var resp = convert.JSON.encode(buildOperationList()); | 8562 var resp = convert.JSON.encode(buildOperationList()); |
| 7889 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8563 return new async.Future.value(stringResponse(200, h, resp)); |
| 7890 }), true); | 8564 }), true); |
| 7891 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { | 8565 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.OperationList response) { |
| 7892 checkOperationList(response); | 8566 checkOperationList(response); |
| 7893 }))); | 8567 }))); |
| 7894 }); | 8568 }); |
| 7895 | 8569 |
| 7896 }); | 8570 }); |
| 7897 | 8571 |
| 7898 | 8572 |
| 7899 unittest.group("resource-HttpHealthChecksResourceApi", () { | 8573 unittest.group("resource-HttpHealthChecksResourceApi", () { |
| 7900 unittest.test("method--delete", () { | 8574 unittest.test("method--delete", () { |
| 7901 | 8575 |
| 7902 var mock = new common_test.HttpServerMock(); | 8576 var mock = new HttpServerMock(); |
| 7903 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 8577 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 7904 var arg_project = "foo"; | 8578 var arg_project = "foo"; |
| 7905 var arg_httpHealthCheck = "foo"; | 8579 var arg_httpHealthCheck = "foo"; |
| 7906 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8580 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7907 var path = (req.url).path; | 8581 var path = (req.url).path; |
| 7908 var pathOffset = 0; | 8582 var pathOffset = 0; |
| 7909 var index; | 8583 var index; |
| 7910 var subPart; | 8584 var subPart; |
| 7911 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8585 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7912 pathOffset += 1; | 8586 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 7926 var keyvalue = part.split("="); | 8600 var keyvalue = part.split("="); |
| 7927 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8601 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7928 } | 8602 } |
| 7929 } | 8603 } |
| 7930 | 8604 |
| 7931 | 8605 |
| 7932 var h = { | 8606 var h = { |
| 7933 "content-type" : "application/json; charset=utf-8", | 8607 "content-type" : "application/json; charset=utf-8", |
| 7934 }; | 8608 }; |
| 7935 var resp = convert.JSON.encode(buildOperation()); | 8609 var resp = convert.JSON.encode(buildOperation()); |
| 7936 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8610 return new async.Future.value(stringResponse(200, h, resp)); |
| 7937 }), true); | 8611 }), true); |
| 7938 res.delete(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((a
pi.Operation response) { | 8612 res.delete(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((a
pi.Operation response) { |
| 7939 checkOperation(response); | 8613 checkOperation(response); |
| 7940 }))); | 8614 }))); |
| 7941 }); | 8615 }); |
| 7942 | 8616 |
| 7943 unittest.test("method--get", () { | 8617 unittest.test("method--get", () { |
| 7944 | 8618 |
| 7945 var mock = new common_test.HttpServerMock(); | 8619 var mock = new HttpServerMock(); |
| 7946 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 8620 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 7947 var arg_project = "foo"; | 8621 var arg_project = "foo"; |
| 7948 var arg_httpHealthCheck = "foo"; | 8622 var arg_httpHealthCheck = "foo"; |
| 7949 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8623 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7950 var path = (req.url).path; | 8624 var path = (req.url).path; |
| 7951 var pathOffset = 0; | 8625 var pathOffset = 0; |
| 7952 var index; | 8626 var index; |
| 7953 var subPart; | 8627 var subPart; |
| 7954 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8628 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7955 pathOffset += 1; | 8629 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 7969 var keyvalue = part.split("="); | 8643 var keyvalue = part.split("="); |
| 7970 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8644 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7971 } | 8645 } |
| 7972 } | 8646 } |
| 7973 | 8647 |
| 7974 | 8648 |
| 7975 var h = { | 8649 var h = { |
| 7976 "content-type" : "application/json; charset=utf-8", | 8650 "content-type" : "application/json; charset=utf-8", |
| 7977 }; | 8651 }; |
| 7978 var resp = convert.JSON.encode(buildHttpHealthCheck()); | 8652 var resp = convert.JSON.encode(buildHttpHealthCheck()); |
| 7979 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8653 return new async.Future.value(stringResponse(200, h, resp)); |
| 7980 }), true); | 8654 }), true); |
| 7981 res.get(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.
HttpHealthCheck response) { | 8655 res.get(arg_project, arg_httpHealthCheck).then(unittest.expectAsync(((api.
HttpHealthCheck response) { |
| 7982 checkHttpHealthCheck(response); | 8656 checkHttpHealthCheck(response); |
| 7983 }))); | 8657 }))); |
| 7984 }); | 8658 }); |
| 7985 | 8659 |
| 7986 unittest.test("method--insert", () { | 8660 unittest.test("method--insert", () { |
| 7987 | 8661 |
| 7988 var mock = new common_test.HttpServerMock(); | 8662 var mock = new HttpServerMock(); |
| 7989 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 8663 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 7990 var arg_request = buildHttpHealthCheck(); | 8664 var arg_request = buildHttpHealthCheck(); |
| 7991 var arg_project = "foo"; | 8665 var arg_project = "foo"; |
| 7992 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8666 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7993 var obj = new api.HttpHealthCheck.fromJson(json); | 8667 var obj = new api.HttpHealthCheck.fromJson(json); |
| 7994 checkHttpHealthCheck(obj); | 8668 checkHttpHealthCheck(obj); |
| 7995 | 8669 |
| 7996 var path = (req.url).path; | 8670 var path = (req.url).path; |
| 7997 var pathOffset = 0; | 8671 var pathOffset = 0; |
| 7998 var index; | 8672 var index; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 8015 var keyvalue = part.split("="); | 8689 var keyvalue = part.split("="); |
| 8016 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8690 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8017 } | 8691 } |
| 8018 } | 8692 } |
| 8019 | 8693 |
| 8020 | 8694 |
| 8021 var h = { | 8695 var h = { |
| 8022 "content-type" : "application/json; charset=utf-8", | 8696 "content-type" : "application/json; charset=utf-8", |
| 8023 }; | 8697 }; |
| 8024 var resp = convert.JSON.encode(buildOperation()); | 8698 var resp = convert.JSON.encode(buildOperation()); |
| 8025 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8699 return new async.Future.value(stringResponse(200, h, resp)); |
| 8026 }), true); | 8700 }), true); |
| 8027 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 8701 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
| 8028 checkOperation(response); | 8702 checkOperation(response); |
| 8029 }))); | 8703 }))); |
| 8030 }); | 8704 }); |
| 8031 | 8705 |
| 8032 unittest.test("method--list", () { | 8706 unittest.test("method--list", () { |
| 8033 | 8707 |
| 8034 var mock = new common_test.HttpServerMock(); | 8708 var mock = new HttpServerMock(); |
| 8035 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 8709 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 8036 var arg_project = "foo"; | 8710 var arg_project = "foo"; |
| 8037 var arg_filter = "foo"; | 8711 var arg_filter = "foo"; |
| 8038 var arg_maxResults = 42; | 8712 var arg_maxResults = 42; |
| 8039 var arg_pageToken = "foo"; | 8713 var arg_pageToken = "foo"; |
| 8040 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8714 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8041 var path = (req.url).path; | 8715 var path = (req.url).path; |
| 8042 var pathOffset = 0; | 8716 var pathOffset = 0; |
| 8043 var index; | 8717 var index; |
| 8044 var subPart; | 8718 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 8063 } | 8737 } |
| 8064 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 8738 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 8065 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 8739 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 8066 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 8740 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 8067 | 8741 |
| 8068 | 8742 |
| 8069 var h = { | 8743 var h = { |
| 8070 "content-type" : "application/json; charset=utf-8", | 8744 "content-type" : "application/json; charset=utf-8", |
| 8071 }; | 8745 }; |
| 8072 var resp = convert.JSON.encode(buildHttpHealthCheckList()); | 8746 var resp = convert.JSON.encode(buildHttpHealthCheckList()); |
| 8073 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8747 return new async.Future.value(stringResponse(200, h, resp)); |
| 8074 }), true); | 8748 }), true); |
| 8075 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.HttpHealthCheckList respon
se) { | 8749 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.HttpHealthCheckList respon
se) { |
| 8076 checkHttpHealthCheckList(response); | 8750 checkHttpHealthCheckList(response); |
| 8077 }))); | 8751 }))); |
| 8078 }); | 8752 }); |
| 8079 | 8753 |
| 8080 unittest.test("method--patch", () { | 8754 unittest.test("method--patch", () { |
| 8081 | 8755 |
| 8082 var mock = new common_test.HttpServerMock(); | 8756 var mock = new HttpServerMock(); |
| 8083 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 8757 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 8084 var arg_request = buildHttpHealthCheck(); | 8758 var arg_request = buildHttpHealthCheck(); |
| 8085 var arg_project = "foo"; | 8759 var arg_project = "foo"; |
| 8086 var arg_httpHealthCheck = "foo"; | 8760 var arg_httpHealthCheck = "foo"; |
| 8087 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8761 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8088 var obj = new api.HttpHealthCheck.fromJson(json); | 8762 var obj = new api.HttpHealthCheck.fromJson(json); |
| 8089 checkHttpHealthCheck(obj); | 8763 checkHttpHealthCheck(obj); |
| 8090 | 8764 |
| 8091 var path = (req.url).path; | 8765 var path = (req.url).path; |
| 8092 var pathOffset = 0; | 8766 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 8110 var keyvalue = part.split("="); | 8784 var keyvalue = part.split("="); |
| 8111 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8785 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8112 } | 8786 } |
| 8113 } | 8787 } |
| 8114 | 8788 |
| 8115 | 8789 |
| 8116 var h = { | 8790 var h = { |
| 8117 "content-type" : "application/json; charset=utf-8", | 8791 "content-type" : "application/json; charset=utf-8", |
| 8118 }; | 8792 }; |
| 8119 var resp = convert.JSON.encode(buildOperation()); | 8793 var resp = convert.JSON.encode(buildOperation()); |
| 8120 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8794 return new async.Future.value(stringResponse(200, h, resp)); |
| 8121 }), true); | 8795 }), true); |
| 8122 res.patch(arg_request, arg_project, arg_httpHealthCheck).then(unittest.exp
ectAsync(((api.Operation response) { | 8796 res.patch(arg_request, arg_project, arg_httpHealthCheck).then(unittest.exp
ectAsync(((api.Operation response) { |
| 8123 checkOperation(response); | 8797 checkOperation(response); |
| 8124 }))); | 8798 }))); |
| 8125 }); | 8799 }); |
| 8126 | 8800 |
| 8127 unittest.test("method--update", () { | 8801 unittest.test("method--update", () { |
| 8128 | 8802 |
| 8129 var mock = new common_test.HttpServerMock(); | 8803 var mock = new HttpServerMock(); |
| 8130 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; | 8804 api.HttpHealthChecksResourceApi res = new api.ComputeApi(mock).httpHealthC
hecks; |
| 8131 var arg_request = buildHttpHealthCheck(); | 8805 var arg_request = buildHttpHealthCheck(); |
| 8132 var arg_project = "foo"; | 8806 var arg_project = "foo"; |
| 8133 var arg_httpHealthCheck = "foo"; | 8807 var arg_httpHealthCheck = "foo"; |
| 8134 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8808 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8135 var obj = new api.HttpHealthCheck.fromJson(json); | 8809 var obj = new api.HttpHealthCheck.fromJson(json); |
| 8136 checkHttpHealthCheck(obj); | 8810 checkHttpHealthCheck(obj); |
| 8137 | 8811 |
| 8138 var path = (req.url).path; | 8812 var path = (req.url).path; |
| 8139 var pathOffset = 0; | 8813 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 8157 var keyvalue = part.split("="); | 8831 var keyvalue = part.split("="); |
| 8158 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8832 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8159 } | 8833 } |
| 8160 } | 8834 } |
| 8161 | 8835 |
| 8162 | 8836 |
| 8163 var h = { | 8837 var h = { |
| 8164 "content-type" : "application/json; charset=utf-8", | 8838 "content-type" : "application/json; charset=utf-8", |
| 8165 }; | 8839 }; |
| 8166 var resp = convert.JSON.encode(buildOperation()); | 8840 var resp = convert.JSON.encode(buildOperation()); |
| 8167 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8841 return new async.Future.value(stringResponse(200, h, resp)); |
| 8168 }), true); | 8842 }), true); |
| 8169 res.update(arg_request, arg_project, arg_httpHealthCheck).then(unittest.ex
pectAsync(((api.Operation response) { | 8843 res.update(arg_request, arg_project, arg_httpHealthCheck).then(unittest.ex
pectAsync(((api.Operation response) { |
| 8170 checkOperation(response); | 8844 checkOperation(response); |
| 8171 }))); | 8845 }))); |
| 8172 }); | 8846 }); |
| 8173 | 8847 |
| 8174 }); | 8848 }); |
| 8175 | 8849 |
| 8176 | 8850 |
| 8177 unittest.group("resource-ImagesResourceApi", () { | 8851 unittest.group("resource-ImagesResourceApi", () { |
| 8178 unittest.test("method--delete", () { | 8852 unittest.test("method--delete", () { |
| 8179 | 8853 |
| 8180 var mock = new common_test.HttpServerMock(); | 8854 var mock = new HttpServerMock(); |
| 8181 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 8855 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
| 8182 var arg_project = "foo"; | 8856 var arg_project = "foo"; |
| 8183 var arg_image = "foo"; | 8857 var arg_image = "foo"; |
| 8184 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8858 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8185 var path = (req.url).path; | 8859 var path = (req.url).path; |
| 8186 var pathOffset = 0; | 8860 var pathOffset = 0; |
| 8187 var index; | 8861 var index; |
| 8188 var subPart; | 8862 var subPart; |
| 8189 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8863 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8190 pathOffset += 1; | 8864 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 8204 var keyvalue = part.split("="); | 8878 var keyvalue = part.split("="); |
| 8205 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8879 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8206 } | 8880 } |
| 8207 } | 8881 } |
| 8208 | 8882 |
| 8209 | 8883 |
| 8210 var h = { | 8884 var h = { |
| 8211 "content-type" : "application/json; charset=utf-8", | 8885 "content-type" : "application/json; charset=utf-8", |
| 8212 }; | 8886 }; |
| 8213 var resp = convert.JSON.encode(buildOperation()); | 8887 var resp = convert.JSON.encode(buildOperation()); |
| 8214 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8888 return new async.Future.value(stringResponse(200, h, resp)); |
| 8215 }), true); | 8889 }), true); |
| 8216 res.delete(arg_project, arg_image).then(unittest.expectAsync(((api.Operati
on response) { | 8890 res.delete(arg_project, arg_image).then(unittest.expectAsync(((api.Operati
on response) { |
| 8217 checkOperation(response); | 8891 checkOperation(response); |
| 8218 }))); | 8892 }))); |
| 8219 }); | 8893 }); |
| 8220 | 8894 |
| 8221 unittest.test("method--deprecate", () { | 8895 unittest.test("method--deprecate", () { |
| 8222 | 8896 |
| 8223 var mock = new common_test.HttpServerMock(); | 8897 var mock = new HttpServerMock(); |
| 8224 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 8898 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
| 8225 var arg_request = buildDeprecationStatus(); | 8899 var arg_request = buildDeprecationStatus(); |
| 8226 var arg_project = "foo"; | 8900 var arg_project = "foo"; |
| 8227 var arg_image = "foo"; | 8901 var arg_image = "foo"; |
| 8228 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8902 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8229 var obj = new api.DeprecationStatus.fromJson(json); | 8903 var obj = new api.DeprecationStatus.fromJson(json); |
| 8230 checkDeprecationStatus(obj); | 8904 checkDeprecationStatus(obj); |
| 8231 | 8905 |
| 8232 var path = (req.url).path; | 8906 var path = (req.url).path; |
| 8233 var pathOffset = 0; | 8907 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 8251 var keyvalue = part.split("="); | 8925 var keyvalue = part.split("="); |
| 8252 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8926 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8253 } | 8927 } |
| 8254 } | 8928 } |
| 8255 | 8929 |
| 8256 | 8930 |
| 8257 var h = { | 8931 var h = { |
| 8258 "content-type" : "application/json; charset=utf-8", | 8932 "content-type" : "application/json; charset=utf-8", |
| 8259 }; | 8933 }; |
| 8260 var resp = convert.JSON.encode(buildOperation()); | 8934 var resp = convert.JSON.encode(buildOperation()); |
| 8261 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8935 return new async.Future.value(stringResponse(200, h, resp)); |
| 8262 }), true); | 8936 }), true); |
| 8263 res.deprecate(arg_request, arg_project, arg_image).then(unittest.expectAsy
nc(((api.Operation response) { | 8937 res.deprecate(arg_request, arg_project, arg_image).then(unittest.expectAsy
nc(((api.Operation response) { |
| 8264 checkOperation(response); | 8938 checkOperation(response); |
| 8265 }))); | 8939 }))); |
| 8266 }); | 8940 }); |
| 8267 | 8941 |
| 8268 unittest.test("method--get", () { | 8942 unittest.test("method--get", () { |
| 8269 | 8943 |
| 8270 var mock = new common_test.HttpServerMock(); | 8944 var mock = new HttpServerMock(); |
| 8271 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 8945 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
| 8272 var arg_project = "foo"; | 8946 var arg_project = "foo"; |
| 8273 var arg_image = "foo"; | 8947 var arg_image = "foo"; |
| 8274 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8948 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8275 var path = (req.url).path; | 8949 var path = (req.url).path; |
| 8276 var pathOffset = 0; | 8950 var pathOffset = 0; |
| 8277 var index; | 8951 var index; |
| 8278 var subPart; | 8952 var subPart; |
| 8279 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8953 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8280 pathOffset += 1; | 8954 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 8294 var keyvalue = part.split("="); | 8968 var keyvalue = part.split("="); |
| 8295 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8969 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8296 } | 8970 } |
| 8297 } | 8971 } |
| 8298 | 8972 |
| 8299 | 8973 |
| 8300 var h = { | 8974 var h = { |
| 8301 "content-type" : "application/json; charset=utf-8", | 8975 "content-type" : "application/json; charset=utf-8", |
| 8302 }; | 8976 }; |
| 8303 var resp = convert.JSON.encode(buildImage()); | 8977 var resp = convert.JSON.encode(buildImage()); |
| 8304 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 8978 return new async.Future.value(stringResponse(200, h, resp)); |
| 8305 }), true); | 8979 }), true); |
| 8306 res.get(arg_project, arg_image).then(unittest.expectAsync(((api.Image resp
onse) { | 8980 res.get(arg_project, arg_image).then(unittest.expectAsync(((api.Image resp
onse) { |
| 8307 checkImage(response); | 8981 checkImage(response); |
| 8308 }))); | 8982 }))); |
| 8309 }); | 8983 }); |
| 8310 | 8984 |
| 8311 unittest.test("method--insert", () { | 8985 unittest.test("method--insert", () { |
| 8312 | 8986 |
| 8313 var mock = new common_test.HttpServerMock(); | 8987 var mock = new HttpServerMock(); |
| 8314 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 8988 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
| 8315 var arg_request = buildImage(); | 8989 var arg_request = buildImage(); |
| 8316 var arg_project = "foo"; | 8990 var arg_project = "foo"; |
| 8317 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 8991 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8318 var obj = new api.Image.fromJson(json); | 8992 var obj = new api.Image.fromJson(json); |
| 8319 checkImage(obj); | 8993 checkImage(obj); |
| 8320 | 8994 |
| 8321 var path = (req.url).path; | 8995 var path = (req.url).path; |
| 8322 var pathOffset = 0; | 8996 var pathOffset = 0; |
| 8323 var index; | 8997 var index; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 8340 var keyvalue = part.split("="); | 9014 var keyvalue = part.split("="); |
| 8341 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9015 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8342 } | 9016 } |
| 8343 } | 9017 } |
| 8344 | 9018 |
| 8345 | 9019 |
| 8346 var h = { | 9020 var h = { |
| 8347 "content-type" : "application/json; charset=utf-8", | 9021 "content-type" : "application/json; charset=utf-8", |
| 8348 }; | 9022 }; |
| 8349 var resp = convert.JSON.encode(buildOperation()); | 9023 var resp = convert.JSON.encode(buildOperation()); |
| 8350 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9024 return new async.Future.value(stringResponse(200, h, resp)); |
| 8351 }), true); | 9025 }), true); |
| 8352 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 9026 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
| 8353 checkOperation(response); | 9027 checkOperation(response); |
| 8354 }))); | 9028 }))); |
| 8355 }); | 9029 }); |
| 8356 | 9030 |
| 8357 unittest.test("method--list", () { | 9031 unittest.test("method--list", () { |
| 8358 | 9032 |
| 8359 var mock = new common_test.HttpServerMock(); | 9033 var mock = new HttpServerMock(); |
| 8360 api.ImagesResourceApi res = new api.ComputeApi(mock).images; | 9034 api.ImagesResourceApi res = new api.ComputeApi(mock).images; |
| 8361 var arg_project = "foo"; | 9035 var arg_project = "foo"; |
| 8362 var arg_filter = "foo"; | 9036 var arg_filter = "foo"; |
| 8363 var arg_maxResults = 42; | 9037 var arg_maxResults = 42; |
| 8364 var arg_pageToken = "foo"; | 9038 var arg_pageToken = "foo"; |
| 8365 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9039 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8366 var path = (req.url).path; | 9040 var path = (req.url).path; |
| 8367 var pathOffset = 0; | 9041 var pathOffset = 0; |
| 8368 var index; | 9042 var index; |
| 8369 var subPart; | 9043 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 8388 } | 9062 } |
| 8389 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 9063 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 8390 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 9064 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 8391 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 9065 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 8392 | 9066 |
| 8393 | 9067 |
| 8394 var h = { | 9068 var h = { |
| 8395 "content-type" : "application/json; charset=utf-8", | 9069 "content-type" : "application/json; charset=utf-8", |
| 8396 }; | 9070 }; |
| 8397 var resp = convert.JSON.encode(buildImageList()); | 9071 var resp = convert.JSON.encode(buildImageList()); |
| 8398 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9072 return new async.Future.value(stringResponse(200, h, resp)); |
| 8399 }), true); | 9073 }), true); |
| 8400 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.ImageList response) { | 9074 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.ImageList response) { |
| 8401 checkImageList(response); | 9075 checkImageList(response); |
| 8402 }))); | 9076 }))); |
| 8403 }); | 9077 }); |
| 8404 | 9078 |
| 8405 }); | 9079 }); |
| 8406 | 9080 |
| 8407 | 9081 |
| 8408 unittest.group("resource-InstanceTemplatesResourceApi", () { | 9082 unittest.group("resource-InstanceTemplatesResourceApi", () { |
| 8409 unittest.test("method--delete", () { | 9083 unittest.test("method--delete", () { |
| 8410 | 9084 |
| 8411 var mock = new common_test.HttpServerMock(); | 9085 var mock = new HttpServerMock(); |
| 8412 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; | 9086 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; |
| 8413 var arg_project = "foo"; | 9087 var arg_project = "foo"; |
| 8414 var arg_instanceTemplate = "foo"; | 9088 var arg_instanceTemplate = "foo"; |
| 8415 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9089 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8416 var path = (req.url).path; | 9090 var path = (req.url).path; |
| 8417 var pathOffset = 0; | 9091 var pathOffset = 0; |
| 8418 var index; | 9092 var index; |
| 8419 var subPart; | 9093 var subPart; |
| 8420 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9094 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8421 pathOffset += 1; | 9095 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 8435 var keyvalue = part.split("="); | 9109 var keyvalue = part.split("="); |
| 8436 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9110 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8437 } | 9111 } |
| 8438 } | 9112 } |
| 8439 | 9113 |
| 8440 | 9114 |
| 8441 var h = { | 9115 var h = { |
| 8442 "content-type" : "application/json; charset=utf-8", | 9116 "content-type" : "application/json; charset=utf-8", |
| 8443 }; | 9117 }; |
| 8444 var resp = convert.JSON.encode(buildOperation()); | 9118 var resp = convert.JSON.encode(buildOperation()); |
| 8445 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9119 return new async.Future.value(stringResponse(200, h, resp)); |
| 8446 }), true); | 9120 }), true); |
| 8447 res.delete(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((
api.Operation response) { | 9121 res.delete(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((
api.Operation response) { |
| 8448 checkOperation(response); | 9122 checkOperation(response); |
| 8449 }))); | 9123 }))); |
| 8450 }); | 9124 }); |
| 8451 | 9125 |
| 8452 unittest.test("method--get", () { | 9126 unittest.test("method--get", () { |
| 8453 | 9127 |
| 8454 var mock = new common_test.HttpServerMock(); | 9128 var mock = new HttpServerMock(); |
| 8455 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; | 9129 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; |
| 8456 var arg_project = "foo"; | 9130 var arg_project = "foo"; |
| 8457 var arg_instanceTemplate = "foo"; | 9131 var arg_instanceTemplate = "foo"; |
| 8458 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9132 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8459 var path = (req.url).path; | 9133 var path = (req.url).path; |
| 8460 var pathOffset = 0; | 9134 var pathOffset = 0; |
| 8461 var index; | 9135 var index; |
| 8462 var subPart; | 9136 var subPart; |
| 8463 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9137 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 8464 pathOffset += 1; | 9138 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 8478 var keyvalue = part.split("="); | 9152 var keyvalue = part.split("="); |
| 8479 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9153 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8480 } | 9154 } |
| 8481 } | 9155 } |
| 8482 | 9156 |
| 8483 | 9157 |
| 8484 var h = { | 9158 var h = { |
| 8485 "content-type" : "application/json; charset=utf-8", | 9159 "content-type" : "application/json; charset=utf-8", |
| 8486 }; | 9160 }; |
| 8487 var resp = convert.JSON.encode(buildInstanceTemplate()); | 9161 var resp = convert.JSON.encode(buildInstanceTemplate()); |
| 8488 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9162 return new async.Future.value(stringResponse(200, h, resp)); |
| 8489 }), true); | 9163 }), true); |
| 8490 res.get(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((api
.InstanceTemplate response) { | 9164 res.get(arg_project, arg_instanceTemplate).then(unittest.expectAsync(((api
.InstanceTemplate response) { |
| 8491 checkInstanceTemplate(response); | 9165 checkInstanceTemplate(response); |
| 8492 }))); | 9166 }))); |
| 8493 }); | 9167 }); |
| 8494 | 9168 |
| 8495 unittest.test("method--insert", () { | 9169 unittest.test("method--insert", () { |
| 8496 | 9170 |
| 8497 var mock = new common_test.HttpServerMock(); | 9171 var mock = new HttpServerMock(); |
| 8498 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; | 9172 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; |
| 8499 var arg_request = buildInstanceTemplate(); | 9173 var arg_request = buildInstanceTemplate(); |
| 8500 var arg_project = "foo"; | 9174 var arg_project = "foo"; |
| 8501 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9175 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8502 var obj = new api.InstanceTemplate.fromJson(json); | 9176 var obj = new api.InstanceTemplate.fromJson(json); |
| 8503 checkInstanceTemplate(obj); | 9177 checkInstanceTemplate(obj); |
| 8504 | 9178 |
| 8505 var path = (req.url).path; | 9179 var path = (req.url).path; |
| 8506 var pathOffset = 0; | 9180 var pathOffset = 0; |
| 8507 var index; | 9181 var index; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 8524 var keyvalue = part.split("="); | 9198 var keyvalue = part.split("="); |
| 8525 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9199 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8526 } | 9200 } |
| 8527 } | 9201 } |
| 8528 | 9202 |
| 8529 | 9203 |
| 8530 var h = { | 9204 var h = { |
| 8531 "content-type" : "application/json; charset=utf-8", | 9205 "content-type" : "application/json; charset=utf-8", |
| 8532 }; | 9206 }; |
| 8533 var resp = convert.JSON.encode(buildOperation()); | 9207 var resp = convert.JSON.encode(buildOperation()); |
| 8534 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9208 return new async.Future.value(stringResponse(200, h, resp)); |
| 8535 }), true); | 9209 }), true); |
| 8536 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 9210 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
| 8537 checkOperation(response); | 9211 checkOperation(response); |
| 8538 }))); | 9212 }))); |
| 8539 }); | 9213 }); |
| 8540 | 9214 |
| 8541 unittest.test("method--list", () { | 9215 unittest.test("method--list", () { |
| 8542 | 9216 |
| 8543 var mock = new common_test.HttpServerMock(); | 9217 var mock = new HttpServerMock(); |
| 8544 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; | 9218 api.InstanceTemplatesResourceApi res = new api.ComputeApi(mock).instanceTe
mplates; |
| 8545 var arg_project = "foo"; | 9219 var arg_project = "foo"; |
| 8546 var arg_filter = "foo"; | 9220 var arg_filter = "foo"; |
| 8547 var arg_maxResults = 42; | 9221 var arg_maxResults = 42; |
| 8548 var arg_pageToken = "foo"; | 9222 var arg_pageToken = "foo"; |
| 8549 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9223 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8550 var path = (req.url).path; | 9224 var path = (req.url).path; |
| 8551 var pathOffset = 0; | 9225 var pathOffset = 0; |
| 8552 var index; | 9226 var index; |
| 8553 var subPart; | 9227 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 8572 } | 9246 } |
| 8573 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 9247 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 8574 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 9248 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 8575 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 9249 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 8576 | 9250 |
| 8577 | 9251 |
| 8578 var h = { | 9252 var h = { |
| 8579 "content-type" : "application/json; charset=utf-8", | 9253 "content-type" : "application/json; charset=utf-8", |
| 8580 }; | 9254 }; |
| 8581 var resp = convert.JSON.encode(buildInstanceTemplateList()); | 9255 var resp = convert.JSON.encode(buildInstanceTemplateList()); |
| 8582 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9256 return new async.Future.value(stringResponse(200, h, resp)); |
| 8583 }), true); | 9257 }), true); |
| 8584 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.InstanceTemplateList respo
nse) { | 9258 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.InstanceTemplateList respo
nse) { |
| 8585 checkInstanceTemplateList(response); | 9259 checkInstanceTemplateList(response); |
| 8586 }))); | 9260 }))); |
| 8587 }); | 9261 }); |
| 8588 | 9262 |
| 8589 }); | 9263 }); |
| 8590 | 9264 |
| 8591 | 9265 |
| 8592 unittest.group("resource-InstancesResourceApi", () { | 9266 unittest.group("resource-InstancesResourceApi", () { |
| 8593 unittest.test("method--addAccessConfig", () { | 9267 unittest.test("method--addAccessConfig", () { |
| 8594 | 9268 |
| 8595 var mock = new common_test.HttpServerMock(); | 9269 var mock = new HttpServerMock(); |
| 8596 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9270 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 8597 var arg_request = buildAccessConfig(); | 9271 var arg_request = buildAccessConfig(); |
| 8598 var arg_project = "foo"; | 9272 var arg_project = "foo"; |
| 8599 var arg_zone = "foo"; | 9273 var arg_zone = "foo"; |
| 8600 var arg_instance = "foo"; | 9274 var arg_instance = "foo"; |
| 8601 var arg_networkInterface = "foo"; | 9275 var arg_networkInterface = "foo"; |
| 8602 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9276 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8603 var obj = new api.AccessConfig.fromJson(json); | 9277 var obj = new api.AccessConfig.fromJson(json); |
| 8604 checkAccessConfig(obj); | 9278 checkAccessConfig(obj); |
| 8605 | 9279 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 8626 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9300 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8627 } | 9301 } |
| 8628 } | 9302 } |
| 8629 unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_
networkInterface)); | 9303 unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_
networkInterface)); |
| 8630 | 9304 |
| 8631 | 9305 |
| 8632 var h = { | 9306 var h = { |
| 8633 "content-type" : "application/json; charset=utf-8", | 9307 "content-type" : "application/json; charset=utf-8", |
| 8634 }; | 9308 }; |
| 8635 var resp = convert.JSON.encode(buildOperation()); | 9309 var resp = convert.JSON.encode(buildOperation()); |
| 8636 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9310 return new async.Future.value(stringResponse(200, h, resp)); |
| 8637 }), true); | 9311 }), true); |
| 8638 res.addAccessConfig(arg_request, arg_project, arg_zone, arg_instance, arg_
networkInterface).then(unittest.expectAsync(((api.Operation response) { | 9312 res.addAccessConfig(arg_request, arg_project, arg_zone, arg_instance, arg_
networkInterface).then(unittest.expectAsync(((api.Operation response) { |
| 8639 checkOperation(response); | 9313 checkOperation(response); |
| 8640 }))); | 9314 }))); |
| 8641 }); | 9315 }); |
| 8642 | 9316 |
| 8643 unittest.test("method--aggregatedList", () { | 9317 unittest.test("method--aggregatedList", () { |
| 8644 | 9318 |
| 8645 var mock = new common_test.HttpServerMock(); | 9319 var mock = new HttpServerMock(); |
| 8646 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9320 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 8647 var arg_project = "foo"; | 9321 var arg_project = "foo"; |
| 8648 var arg_filter = "foo"; | 9322 var arg_filter = "foo"; |
| 8649 var arg_maxResults = 42; | 9323 var arg_maxResults = 42; |
| 8650 var arg_pageToken = "foo"; | 9324 var arg_pageToken = "foo"; |
| 8651 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9325 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8652 var path = (req.url).path; | 9326 var path = (req.url).path; |
| 8653 var pathOffset = 0; | 9327 var pathOffset = 0; |
| 8654 var index; | 9328 var index; |
| 8655 var subPart; | 9329 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 8674 } | 9348 } |
| 8675 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 9349 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 8676 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 9350 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 8677 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 9351 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 8678 | 9352 |
| 8679 | 9353 |
| 8680 var h = { | 9354 var h = { |
| 8681 "content-type" : "application/json; charset=utf-8", | 9355 "content-type" : "application/json; charset=utf-8", |
| 8682 }; | 9356 }; |
| 8683 var resp = convert.JSON.encode(buildInstanceAggregatedList()); | 9357 var resp = convert.JSON.encode(buildInstanceAggregatedList()); |
| 8684 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9358 return new async.Future.value(stringResponse(200, h, resp)); |
| 8685 }), true); | 9359 }), true); |
| 8686 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceAggregat
edList response) { | 9360 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceAggregat
edList response) { |
| 8687 checkInstanceAggregatedList(response); | 9361 checkInstanceAggregatedList(response); |
| 8688 }))); | 9362 }))); |
| 8689 }); | 9363 }); |
| 8690 | 9364 |
| 8691 unittest.test("method--attachDisk", () { | 9365 unittest.test("method--attachDisk", () { |
| 8692 | 9366 |
| 8693 var mock = new common_test.HttpServerMock(); | 9367 var mock = new HttpServerMock(); |
| 8694 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9368 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 8695 var arg_request = buildAttachedDisk(); | 9369 var arg_request = buildAttachedDisk(); |
| 8696 var arg_project = "foo"; | 9370 var arg_project = "foo"; |
| 8697 var arg_zone = "foo"; | 9371 var arg_zone = "foo"; |
| 8698 var arg_instance = "foo"; | 9372 var arg_instance = "foo"; |
| 8699 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9373 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8700 var obj = new api.AttachedDisk.fromJson(json); | 9374 var obj = new api.AttachedDisk.fromJson(json); |
| 8701 checkAttachedDisk(obj); | 9375 checkAttachedDisk(obj); |
| 8702 | 9376 |
| 8703 var path = (req.url).path; | 9377 var path = (req.url).path; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 8722 var keyvalue = part.split("="); | 9396 var keyvalue = part.split("="); |
| 8723 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9397 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8724 } | 9398 } |
| 8725 } | 9399 } |
| 8726 | 9400 |
| 8727 | 9401 |
| 8728 var h = { | 9402 var h = { |
| 8729 "content-type" : "application/json; charset=utf-8", | 9403 "content-type" : "application/json; charset=utf-8", |
| 8730 }; | 9404 }; |
| 8731 var resp = convert.JSON.encode(buildOperation()); | 9405 var resp = convert.JSON.encode(buildOperation()); |
| 8732 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9406 return new async.Future.value(stringResponse(200, h, resp)); |
| 8733 }), true); | 9407 }), true); |
| 8734 res.attachDisk(arg_request, arg_project, arg_zone, arg_instance).then(unit
test.expectAsync(((api.Operation response) { | 9408 res.attachDisk(arg_request, arg_project, arg_zone, arg_instance).then(unit
test.expectAsync(((api.Operation response) { |
| 8735 checkOperation(response); | 9409 checkOperation(response); |
| 8736 }))); | 9410 }))); |
| 8737 }); | 9411 }); |
| 8738 | 9412 |
| 8739 unittest.test("method--delete", () { | 9413 unittest.test("method--delete", () { |
| 8740 | 9414 |
| 8741 var mock = new common_test.HttpServerMock(); | 9415 var mock = new HttpServerMock(); |
| 8742 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9416 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 8743 var arg_project = "foo"; | 9417 var arg_project = "foo"; |
| 8744 var arg_zone = "foo"; | 9418 var arg_zone = "foo"; |
| 8745 var arg_instance = "foo"; | 9419 var arg_instance = "foo"; |
| 8746 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9420 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8747 var path = (req.url).path; | 9421 var path = (req.url).path; |
| 8748 var pathOffset = 0; | 9422 var pathOffset = 0; |
| 8749 var index; | 9423 var index; |
| 8750 var subPart; | 9424 var subPart; |
| 8751 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9425 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 8766 var keyvalue = part.split("="); | 9440 var keyvalue = part.split("="); |
| 8767 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9441 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8768 } | 9442 } |
| 8769 } | 9443 } |
| 8770 | 9444 |
| 8771 | 9445 |
| 8772 var h = { | 9446 var h = { |
| 8773 "content-type" : "application/json; charset=utf-8", | 9447 "content-type" : "application/json; charset=utf-8", |
| 8774 }; | 9448 }; |
| 8775 var resp = convert.JSON.encode(buildOperation()); | 9449 var resp = convert.JSON.encode(buildOperation()); |
| 8776 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9450 return new async.Future.value(stringResponse(200, h, resp)); |
| 8777 }), true); | 9451 }), true); |
| 8778 res.delete(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(
((api.Operation response) { | 9452 res.delete(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(
((api.Operation response) { |
| 8779 checkOperation(response); | 9453 checkOperation(response); |
| 8780 }))); | 9454 }))); |
| 8781 }); | 9455 }); |
| 8782 | 9456 |
| 8783 unittest.test("method--deleteAccessConfig", () { | 9457 unittest.test("method--deleteAccessConfig", () { |
| 8784 | 9458 |
| 8785 var mock = new common_test.HttpServerMock(); | 9459 var mock = new HttpServerMock(); |
| 8786 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9460 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 8787 var arg_project = "foo"; | 9461 var arg_project = "foo"; |
| 8788 var arg_zone = "foo"; | 9462 var arg_zone = "foo"; |
| 8789 var arg_instance = "foo"; | 9463 var arg_instance = "foo"; |
| 8790 var arg_accessConfig = "foo"; | 9464 var arg_accessConfig = "foo"; |
| 8791 var arg_networkInterface = "foo"; | 9465 var arg_networkInterface = "foo"; |
| 8792 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9466 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8793 var path = (req.url).path; | 9467 var path = (req.url).path; |
| 8794 var pathOffset = 0; | 9468 var pathOffset = 0; |
| 8795 var index; | 9469 var index; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 8814 } | 9488 } |
| 8815 } | 9489 } |
| 8816 unittest.expect(queryMap["accessConfig"].first, unittest.equals(arg_acce
ssConfig)); | 9490 unittest.expect(queryMap["accessConfig"].first, unittest.equals(arg_acce
ssConfig)); |
| 8817 unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_
networkInterface)); | 9491 unittest.expect(queryMap["networkInterface"].first, unittest.equals(arg_
networkInterface)); |
| 8818 | 9492 |
| 8819 | 9493 |
| 8820 var h = { | 9494 var h = { |
| 8821 "content-type" : "application/json; charset=utf-8", | 9495 "content-type" : "application/json; charset=utf-8", |
| 8822 }; | 9496 }; |
| 8823 var resp = convert.JSON.encode(buildOperation()); | 9497 var resp = convert.JSON.encode(buildOperation()); |
| 8824 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9498 return new async.Future.value(stringResponse(200, h, resp)); |
| 8825 }), true); | 9499 }), true); |
| 8826 res.deleteAccessConfig(arg_project, arg_zone, arg_instance, arg_accessConf
ig, arg_networkInterface).then(unittest.expectAsync(((api.Operation response) { | 9500 res.deleteAccessConfig(arg_project, arg_zone, arg_instance, arg_accessConf
ig, arg_networkInterface).then(unittest.expectAsync(((api.Operation response) { |
| 8827 checkOperation(response); | 9501 checkOperation(response); |
| 8828 }))); | 9502 }))); |
| 8829 }); | 9503 }); |
| 8830 | 9504 |
| 8831 unittest.test("method--detachDisk", () { | 9505 unittest.test("method--detachDisk", () { |
| 8832 | 9506 |
| 8833 var mock = new common_test.HttpServerMock(); | 9507 var mock = new HttpServerMock(); |
| 8834 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9508 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 8835 var arg_project = "foo"; | 9509 var arg_project = "foo"; |
| 8836 var arg_zone = "foo"; | 9510 var arg_zone = "foo"; |
| 8837 var arg_instance = "foo"; | 9511 var arg_instance = "foo"; |
| 8838 var arg_deviceName = "foo"; | 9512 var arg_deviceName = "foo"; |
| 8839 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9513 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8840 var path = (req.url).path; | 9514 var path = (req.url).path; |
| 8841 var pathOffset = 0; | 9515 var pathOffset = 0; |
| 8842 var index; | 9516 var index; |
| 8843 var subPart; | 9517 var subPart; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 8860 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9534 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8861 } | 9535 } |
| 8862 } | 9536 } |
| 8863 unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_device
Name)); | 9537 unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_device
Name)); |
| 8864 | 9538 |
| 8865 | 9539 |
| 8866 var h = { | 9540 var h = { |
| 8867 "content-type" : "application/json; charset=utf-8", | 9541 "content-type" : "application/json; charset=utf-8", |
| 8868 }; | 9542 }; |
| 8869 var resp = convert.JSON.encode(buildOperation()); | 9543 var resp = convert.JSON.encode(buildOperation()); |
| 8870 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9544 return new async.Future.value(stringResponse(200, h, resp)); |
| 8871 }), true); | 9545 }), true); |
| 8872 res.detachDisk(arg_project, arg_zone, arg_instance, arg_deviceName).then(u
nittest.expectAsync(((api.Operation response) { | 9546 res.detachDisk(arg_project, arg_zone, arg_instance, arg_deviceName).then(u
nittest.expectAsync(((api.Operation response) { |
| 8873 checkOperation(response); | 9547 checkOperation(response); |
| 8874 }))); | 9548 }))); |
| 8875 }); | 9549 }); |
| 8876 | 9550 |
| 8877 unittest.test("method--get", () { | 9551 unittest.test("method--get", () { |
| 8878 | 9552 |
| 8879 var mock = new common_test.HttpServerMock(); | 9553 var mock = new HttpServerMock(); |
| 8880 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9554 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 8881 var arg_project = "foo"; | 9555 var arg_project = "foo"; |
| 8882 var arg_zone = "foo"; | 9556 var arg_zone = "foo"; |
| 8883 var arg_instance = "foo"; | 9557 var arg_instance = "foo"; |
| 8884 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9558 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8885 var path = (req.url).path; | 9559 var path = (req.url).path; |
| 8886 var pathOffset = 0; | 9560 var pathOffset = 0; |
| 8887 var index; | 9561 var index; |
| 8888 var subPart; | 9562 var subPart; |
| 8889 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9563 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 8904 var keyvalue = part.split("="); | 9578 var keyvalue = part.split("="); |
| 8905 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9579 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8906 } | 9580 } |
| 8907 } | 9581 } |
| 8908 | 9582 |
| 8909 | 9583 |
| 8910 var h = { | 9584 var h = { |
| 8911 "content-type" : "application/json; charset=utf-8", | 9585 "content-type" : "application/json; charset=utf-8", |
| 8912 }; | 9586 }; |
| 8913 var resp = convert.JSON.encode(buildInstance()); | 9587 var resp = convert.JSON.encode(buildInstance()); |
| 8914 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9588 return new async.Future.value(stringResponse(200, h, resp)); |
| 8915 }), true); | 9589 }), true); |
| 8916 res.get(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((a
pi.Instance response) { | 9590 res.get(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((a
pi.Instance response) { |
| 8917 checkInstance(response); | 9591 checkInstance(response); |
| 8918 }))); | 9592 }))); |
| 8919 }); | 9593 }); |
| 8920 | 9594 |
| 8921 unittest.test("method--getSerialPortOutput", () { | 9595 unittest.test("method--getSerialPortOutput", () { |
| 8922 | 9596 |
| 8923 var mock = new common_test.HttpServerMock(); | 9597 var mock = new HttpServerMock(); |
| 8924 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9598 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 8925 var arg_project = "foo"; | 9599 var arg_project = "foo"; |
| 8926 var arg_zone = "foo"; | 9600 var arg_zone = "foo"; |
| 8927 var arg_instance = "foo"; | 9601 var arg_instance = "foo"; |
| 8928 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9602 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8929 var path = (req.url).path; | 9603 var path = (req.url).path; |
| 8930 var pathOffset = 0; | 9604 var pathOffset = 0; |
| 8931 var index; | 9605 var index; |
| 8932 var subPart; | 9606 var subPart; |
| 8933 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9607 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 8948 var keyvalue = part.split("="); | 9622 var keyvalue = part.split("="); |
| 8949 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9623 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8950 } | 9624 } |
| 8951 } | 9625 } |
| 8952 | 9626 |
| 8953 | 9627 |
| 8954 var h = { | 9628 var h = { |
| 8955 "content-type" : "application/json; charset=utf-8", | 9629 "content-type" : "application/json; charset=utf-8", |
| 8956 }; | 9630 }; |
| 8957 var resp = convert.JSON.encode(buildSerialPortOutput()); | 9631 var resp = convert.JSON.encode(buildSerialPortOutput()); |
| 8958 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9632 return new async.Future.value(stringResponse(200, h, resp)); |
| 8959 }), true); | 9633 }), true); |
| 8960 res.getSerialPortOutput(arg_project, arg_zone, arg_instance).then(unittest
.expectAsync(((api.SerialPortOutput response) { | 9634 res.getSerialPortOutput(arg_project, arg_zone, arg_instance).then(unittest
.expectAsync(((api.SerialPortOutput response) { |
| 8961 checkSerialPortOutput(response); | 9635 checkSerialPortOutput(response); |
| 8962 }))); | 9636 }))); |
| 8963 }); | 9637 }); |
| 8964 | 9638 |
| 8965 unittest.test("method--insert", () { | 9639 unittest.test("method--insert", () { |
| 8966 | 9640 |
| 8967 var mock = new common_test.HttpServerMock(); | 9641 var mock = new HttpServerMock(); |
| 8968 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9642 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 8969 var arg_request = buildInstance(); | 9643 var arg_request = buildInstance(); |
| 8970 var arg_project = "foo"; | 9644 var arg_project = "foo"; |
| 8971 var arg_zone = "foo"; | 9645 var arg_zone = "foo"; |
| 8972 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9646 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 8973 var obj = new api.Instance.fromJson(json); | 9647 var obj = new api.Instance.fromJson(json); |
| 8974 checkInstance(obj); | 9648 checkInstance(obj); |
| 8975 | 9649 |
| 8976 var path = (req.url).path; | 9650 var path = (req.url).path; |
| 8977 var pathOffset = 0; | 9651 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 8995 var keyvalue = part.split("="); | 9669 var keyvalue = part.split("="); |
| 8996 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9670 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 8997 } | 9671 } |
| 8998 } | 9672 } |
| 8999 | 9673 |
| 9000 | 9674 |
| 9001 var h = { | 9675 var h = { |
| 9002 "content-type" : "application/json; charset=utf-8", | 9676 "content-type" : "application/json; charset=utf-8", |
| 9003 }; | 9677 }; |
| 9004 var resp = convert.JSON.encode(buildOperation()); | 9678 var resp = convert.JSON.encode(buildOperation()); |
| 9005 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9679 return new async.Future.value(stringResponse(200, h, resp)); |
| 9006 }), true); | 9680 }), true); |
| 9007 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { | 9681 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { |
| 9008 checkOperation(response); | 9682 checkOperation(response); |
| 9009 }))); | 9683 }))); |
| 9010 }); | 9684 }); |
| 9011 | 9685 |
| 9012 unittest.test("method--list", () { | 9686 unittest.test("method--list", () { |
| 9013 | 9687 |
| 9014 var mock = new common_test.HttpServerMock(); | 9688 var mock = new HttpServerMock(); |
| 9015 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9689 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 9016 var arg_project = "foo"; | 9690 var arg_project = "foo"; |
| 9017 var arg_zone = "foo"; | 9691 var arg_zone = "foo"; |
| 9018 var arg_filter = "foo"; | 9692 var arg_filter = "foo"; |
| 9019 var arg_maxResults = 42; | 9693 var arg_maxResults = 42; |
| 9020 var arg_pageToken = "foo"; | 9694 var arg_pageToken = "foo"; |
| 9021 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9695 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9022 var path = (req.url).path; | 9696 var path = (req.url).path; |
| 9023 var pathOffset = 0; | 9697 var pathOffset = 0; |
| 9024 var index; | 9698 var index; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 9044 } | 9718 } |
| 9045 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 9719 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 9046 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 9720 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 9047 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 9721 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 9048 | 9722 |
| 9049 | 9723 |
| 9050 var h = { | 9724 var h = { |
| 9051 "content-type" : "application/json; charset=utf-8", | 9725 "content-type" : "application/json; charset=utf-8", |
| 9052 }; | 9726 }; |
| 9053 var resp = convert.JSON.encode(buildInstanceList()); | 9727 var resp = convert.JSON.encode(buildInstanceList()); |
| 9054 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9728 return new async.Future.value(stringResponse(200, h, resp)); |
| 9055 }), true); | 9729 }), true); |
| 9056 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceList res
ponse) { | 9730 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.InstanceList res
ponse) { |
| 9057 checkInstanceList(response); | 9731 checkInstanceList(response); |
| 9058 }))); | 9732 }))); |
| 9059 }); | 9733 }); |
| 9060 | 9734 |
| 9061 unittest.test("method--reset", () { | 9735 unittest.test("method--reset", () { |
| 9062 | 9736 |
| 9063 var mock = new common_test.HttpServerMock(); | 9737 var mock = new HttpServerMock(); |
| 9064 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9738 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 9065 var arg_project = "foo"; | 9739 var arg_project = "foo"; |
| 9066 var arg_zone = "foo"; | 9740 var arg_zone = "foo"; |
| 9067 var arg_instance = "foo"; | 9741 var arg_instance = "foo"; |
| 9068 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9742 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9069 var path = (req.url).path; | 9743 var path = (req.url).path; |
| 9070 var pathOffset = 0; | 9744 var pathOffset = 0; |
| 9071 var index; | 9745 var index; |
| 9072 var subPart; | 9746 var subPart; |
| 9073 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9747 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 9088 var keyvalue = part.split("="); | 9762 var keyvalue = part.split("="); |
| 9089 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9763 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9090 } | 9764 } |
| 9091 } | 9765 } |
| 9092 | 9766 |
| 9093 | 9767 |
| 9094 var h = { | 9768 var h = { |
| 9095 "content-type" : "application/json; charset=utf-8", | 9769 "content-type" : "application/json; charset=utf-8", |
| 9096 }; | 9770 }; |
| 9097 var resp = convert.JSON.encode(buildOperation()); | 9771 var resp = convert.JSON.encode(buildOperation()); |
| 9098 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9772 return new async.Future.value(stringResponse(200, h, resp)); |
| 9099 }), true); | 9773 }), true); |
| 9100 res.reset(arg_project, arg_zone, arg_instance).then(unittest.expectAsync((
(api.Operation response) { | 9774 res.reset(arg_project, arg_zone, arg_instance).then(unittest.expectAsync((
(api.Operation response) { |
| 9101 checkOperation(response); | 9775 checkOperation(response); |
| 9102 }))); | 9776 }))); |
| 9103 }); | 9777 }); |
| 9104 | 9778 |
| 9105 unittest.test("method--setDiskAutoDelete", () { | 9779 unittest.test("method--setDiskAutoDelete", () { |
| 9106 | 9780 |
| 9107 var mock = new common_test.HttpServerMock(); | 9781 var mock = new HttpServerMock(); |
| 9108 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9782 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 9109 var arg_project = "foo"; | 9783 var arg_project = "foo"; |
| 9110 var arg_zone = "foo"; | 9784 var arg_zone = "foo"; |
| 9111 var arg_instance = "foo"; | 9785 var arg_instance = "foo"; |
| 9112 var arg_autoDelete = true; | 9786 var arg_autoDelete = true; |
| 9113 var arg_deviceName = "foo"; | 9787 var arg_deviceName = "foo"; |
| 9114 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9788 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9115 var path = (req.url).path; | 9789 var path = (req.url).path; |
| 9116 var pathOffset = 0; | 9790 var pathOffset = 0; |
| 9117 var index; | 9791 var index; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 9136 } | 9810 } |
| 9137 } | 9811 } |
| 9138 unittest.expect(queryMap["autoDelete"].first, unittest.equals("$arg_auto
Delete")); | 9812 unittest.expect(queryMap["autoDelete"].first, unittest.equals("$arg_auto
Delete")); |
| 9139 unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_device
Name)); | 9813 unittest.expect(queryMap["deviceName"].first, unittest.equals(arg_device
Name)); |
| 9140 | 9814 |
| 9141 | 9815 |
| 9142 var h = { | 9816 var h = { |
| 9143 "content-type" : "application/json; charset=utf-8", | 9817 "content-type" : "application/json; charset=utf-8", |
| 9144 }; | 9818 }; |
| 9145 var resp = convert.JSON.encode(buildOperation()); | 9819 var resp = convert.JSON.encode(buildOperation()); |
| 9146 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9820 return new async.Future.value(stringResponse(200, h, resp)); |
| 9147 }), true); | 9821 }), true); |
| 9148 res.setDiskAutoDelete(arg_project, arg_zone, arg_instance, arg_autoDelete,
arg_deviceName).then(unittest.expectAsync(((api.Operation response) { | 9822 res.setDiskAutoDelete(arg_project, arg_zone, arg_instance, arg_autoDelete,
arg_deviceName).then(unittest.expectAsync(((api.Operation response) { |
| 9149 checkOperation(response); | 9823 checkOperation(response); |
| 9150 }))); | 9824 }))); |
| 9151 }); | 9825 }); |
| 9152 | 9826 |
| 9153 unittest.test("method--setMetadata", () { | 9827 unittest.test("method--setMetadata", () { |
| 9154 | 9828 |
| 9155 var mock = new common_test.HttpServerMock(); | 9829 var mock = new HttpServerMock(); |
| 9156 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9830 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 9157 var arg_request = buildMetadata(); | 9831 var arg_request = buildMetadata(); |
| 9158 var arg_project = "foo"; | 9832 var arg_project = "foo"; |
| 9159 var arg_zone = "foo"; | 9833 var arg_zone = "foo"; |
| 9160 var arg_instance = "foo"; | 9834 var arg_instance = "foo"; |
| 9161 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9835 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9162 var obj = new api.Metadata.fromJson(json); | 9836 var obj = new api.Metadata.fromJson(json); |
| 9163 checkMetadata(obj); | 9837 checkMetadata(obj); |
| 9164 | 9838 |
| 9165 var path = (req.url).path; | 9839 var path = (req.url).path; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 9184 var keyvalue = part.split("="); | 9858 var keyvalue = part.split("="); |
| 9185 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9859 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9186 } | 9860 } |
| 9187 } | 9861 } |
| 9188 | 9862 |
| 9189 | 9863 |
| 9190 var h = { | 9864 var h = { |
| 9191 "content-type" : "application/json; charset=utf-8", | 9865 "content-type" : "application/json; charset=utf-8", |
| 9192 }; | 9866 }; |
| 9193 var resp = convert.JSON.encode(buildOperation()); | 9867 var resp = convert.JSON.encode(buildOperation()); |
| 9194 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9868 return new async.Future.value(stringResponse(200, h, resp)); |
| 9195 }), true); | 9869 }), true); |
| 9196 res.setMetadata(arg_request, arg_project, arg_zone, arg_instance).then(uni
ttest.expectAsync(((api.Operation response) { | 9870 res.setMetadata(arg_request, arg_project, arg_zone, arg_instance).then(uni
ttest.expectAsync(((api.Operation response) { |
| 9197 checkOperation(response); | 9871 checkOperation(response); |
| 9198 }))); | 9872 }))); |
| 9199 }); | 9873 }); |
| 9200 | 9874 |
| 9201 unittest.test("method--setScheduling", () { | 9875 unittest.test("method--setScheduling", () { |
| 9202 | 9876 |
| 9203 var mock = new common_test.HttpServerMock(); | 9877 var mock = new HttpServerMock(); |
| 9204 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9878 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 9205 var arg_request = buildScheduling(); | 9879 var arg_request = buildScheduling(); |
| 9206 var arg_project = "foo"; | 9880 var arg_project = "foo"; |
| 9207 var arg_zone = "foo"; | 9881 var arg_zone = "foo"; |
| 9208 var arg_instance = "foo"; | 9882 var arg_instance = "foo"; |
| 9209 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9883 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9210 var obj = new api.Scheduling.fromJson(json); | 9884 var obj = new api.Scheduling.fromJson(json); |
| 9211 checkScheduling(obj); | 9885 checkScheduling(obj); |
| 9212 | 9886 |
| 9213 var path = (req.url).path; | 9887 var path = (req.url).path; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 9232 var keyvalue = part.split("="); | 9906 var keyvalue = part.split("="); |
| 9233 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9907 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9234 } | 9908 } |
| 9235 } | 9909 } |
| 9236 | 9910 |
| 9237 | 9911 |
| 9238 var h = { | 9912 var h = { |
| 9239 "content-type" : "application/json; charset=utf-8", | 9913 "content-type" : "application/json; charset=utf-8", |
| 9240 }; | 9914 }; |
| 9241 var resp = convert.JSON.encode(buildOperation()); | 9915 var resp = convert.JSON.encode(buildOperation()); |
| 9242 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9916 return new async.Future.value(stringResponse(200, h, resp)); |
| 9243 }), true); | 9917 }), true); |
| 9244 res.setScheduling(arg_request, arg_project, arg_zone, arg_instance).then(u
nittest.expectAsync(((api.Operation response) { | 9918 res.setScheduling(arg_request, arg_project, arg_zone, arg_instance).then(u
nittest.expectAsync(((api.Operation response) { |
| 9245 checkOperation(response); | 9919 checkOperation(response); |
| 9246 }))); | 9920 }))); |
| 9247 }); | 9921 }); |
| 9248 | 9922 |
| 9249 unittest.test("method--setTags", () { | 9923 unittest.test("method--setTags", () { |
| 9250 | 9924 |
| 9251 var mock = new common_test.HttpServerMock(); | 9925 var mock = new HttpServerMock(); |
| 9252 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9926 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 9253 var arg_request = buildTags(); | 9927 var arg_request = buildTags(); |
| 9254 var arg_project = "foo"; | 9928 var arg_project = "foo"; |
| 9255 var arg_zone = "foo"; | 9929 var arg_zone = "foo"; |
| 9256 var arg_instance = "foo"; | 9930 var arg_instance = "foo"; |
| 9257 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9931 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9258 var obj = new api.Tags.fromJson(json); | 9932 var obj = new api.Tags.fromJson(json); |
| 9259 checkTags(obj); | 9933 checkTags(obj); |
| 9260 | 9934 |
| 9261 var path = (req.url).path; | 9935 var path = (req.url).path; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 9280 var keyvalue = part.split("="); | 9954 var keyvalue = part.split("="); |
| 9281 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9955 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9282 } | 9956 } |
| 9283 } | 9957 } |
| 9284 | 9958 |
| 9285 | 9959 |
| 9286 var h = { | 9960 var h = { |
| 9287 "content-type" : "application/json; charset=utf-8", | 9961 "content-type" : "application/json; charset=utf-8", |
| 9288 }; | 9962 }; |
| 9289 var resp = convert.JSON.encode(buildOperation()); | 9963 var resp = convert.JSON.encode(buildOperation()); |
| 9290 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 9964 return new async.Future.value(stringResponse(200, h, resp)); |
| 9291 }), true); | 9965 }), true); |
| 9292 res.setTags(arg_request, arg_project, arg_zone, arg_instance).then(unittes
t.expectAsync(((api.Operation response) { | 9966 res.setTags(arg_request, arg_project, arg_zone, arg_instance).then(unittes
t.expectAsync(((api.Operation response) { |
| 9293 checkOperation(response); | 9967 checkOperation(response); |
| 9294 }))); | 9968 }))); |
| 9295 }); | 9969 }); |
| 9296 | 9970 |
| 9297 unittest.test("method--start", () { | 9971 unittest.test("method--start", () { |
| 9298 | 9972 |
| 9299 var mock = new common_test.HttpServerMock(); | 9973 var mock = new HttpServerMock(); |
| 9300 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 9974 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 9301 var arg_project = "foo"; | 9975 var arg_project = "foo"; |
| 9302 var arg_zone = "foo"; | 9976 var arg_zone = "foo"; |
| 9303 var arg_instance = "foo"; | 9977 var arg_instance = "foo"; |
| 9304 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 9978 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9305 var path = (req.url).path; | 9979 var path = (req.url).path; |
| 9306 var pathOffset = 0; | 9980 var pathOffset = 0; |
| 9307 var index; | 9981 var index; |
| 9308 var subPart; | 9982 var subPart; |
| 9309 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 9983 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 9324 var keyvalue = part.split("="); | 9998 var keyvalue = part.split("="); |
| 9325 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 9999 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9326 } | 10000 } |
| 9327 } | 10001 } |
| 9328 | 10002 |
| 9329 | 10003 |
| 9330 var h = { | 10004 var h = { |
| 9331 "content-type" : "application/json; charset=utf-8", | 10005 "content-type" : "application/json; charset=utf-8", |
| 9332 }; | 10006 }; |
| 9333 var resp = convert.JSON.encode(buildOperation()); | 10007 var resp = convert.JSON.encode(buildOperation()); |
| 9334 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10008 return new async.Future.value(stringResponse(200, h, resp)); |
| 9335 }), true); | 10009 }), true); |
| 9336 res.start(arg_project, arg_zone, arg_instance).then(unittest.expectAsync((
(api.Operation response) { | 10010 res.start(arg_project, arg_zone, arg_instance).then(unittest.expectAsync((
(api.Operation response) { |
| 9337 checkOperation(response); | 10011 checkOperation(response); |
| 9338 }))); | 10012 }))); |
| 9339 }); | 10013 }); |
| 9340 | 10014 |
| 9341 unittest.test("method--stop", () { | 10015 unittest.test("method--stop", () { |
| 9342 | 10016 |
| 9343 var mock = new common_test.HttpServerMock(); | 10017 var mock = new HttpServerMock(); |
| 9344 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; | 10018 api.InstancesResourceApi res = new api.ComputeApi(mock).instances; |
| 9345 var arg_project = "foo"; | 10019 var arg_project = "foo"; |
| 9346 var arg_zone = "foo"; | 10020 var arg_zone = "foo"; |
| 9347 var arg_instance = "foo"; | 10021 var arg_instance = "foo"; |
| 9348 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10022 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9349 var path = (req.url).path; | 10023 var path = (req.url).path; |
| 9350 var pathOffset = 0; | 10024 var pathOffset = 0; |
| 9351 var index; | 10025 var index; |
| 9352 var subPart; | 10026 var subPart; |
| 9353 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10027 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 9368 var keyvalue = part.split("="); | 10042 var keyvalue = part.split("="); |
| 9369 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10043 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9370 } | 10044 } |
| 9371 } | 10045 } |
| 9372 | 10046 |
| 9373 | 10047 |
| 9374 var h = { | 10048 var h = { |
| 9375 "content-type" : "application/json; charset=utf-8", | 10049 "content-type" : "application/json; charset=utf-8", |
| 9376 }; | 10050 }; |
| 9377 var resp = convert.JSON.encode(buildOperation()); | 10051 var resp = convert.JSON.encode(buildOperation()); |
| 9378 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10052 return new async.Future.value(stringResponse(200, h, resp)); |
| 9379 }), true); | 10053 }), true); |
| 9380 res.stop(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((
api.Operation response) { | 10054 res.stop(arg_project, arg_zone, arg_instance).then(unittest.expectAsync(((
api.Operation response) { |
| 9381 checkOperation(response); | 10055 checkOperation(response); |
| 9382 }))); | 10056 }))); |
| 9383 }); | 10057 }); |
| 9384 | 10058 |
| 9385 }); | 10059 }); |
| 9386 | 10060 |
| 9387 | 10061 |
| 9388 unittest.group("resource-LicensesResourceApi", () { | 10062 unittest.group("resource-LicensesResourceApi", () { |
| 9389 unittest.test("method--get", () { | 10063 unittest.test("method--get", () { |
| 9390 | 10064 |
| 9391 var mock = new common_test.HttpServerMock(); | 10065 var mock = new HttpServerMock(); |
| 9392 api.LicensesResourceApi res = new api.ComputeApi(mock).licenses; | 10066 api.LicensesResourceApi res = new api.ComputeApi(mock).licenses; |
| 9393 var arg_project = "foo"; | 10067 var arg_project = "foo"; |
| 9394 var arg_license = "foo"; | 10068 var arg_license = "foo"; |
| 9395 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10069 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9396 var path = (req.url).path; | 10070 var path = (req.url).path; |
| 9397 var pathOffset = 0; | 10071 var pathOffset = 0; |
| 9398 var index; | 10072 var index; |
| 9399 var subPart; | 10073 var subPart; |
| 9400 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10074 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9401 pathOffset += 1; | 10075 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 9415 var keyvalue = part.split("="); | 10089 var keyvalue = part.split("="); |
| 9416 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10090 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9417 } | 10091 } |
| 9418 } | 10092 } |
| 9419 | 10093 |
| 9420 | 10094 |
| 9421 var h = { | 10095 var h = { |
| 9422 "content-type" : "application/json; charset=utf-8", | 10096 "content-type" : "application/json; charset=utf-8", |
| 9423 }; | 10097 }; |
| 9424 var resp = convert.JSON.encode(buildLicense()); | 10098 var resp = convert.JSON.encode(buildLicense()); |
| 9425 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10099 return new async.Future.value(stringResponse(200, h, resp)); |
| 9426 }), true); | 10100 }), true); |
| 9427 res.get(arg_project, arg_license).then(unittest.expectAsync(((api.License
response) { | 10101 res.get(arg_project, arg_license).then(unittest.expectAsync(((api.License
response) { |
| 9428 checkLicense(response); | 10102 checkLicense(response); |
| 9429 }))); | 10103 }))); |
| 9430 }); | 10104 }); |
| 9431 | 10105 |
| 9432 }); | 10106 }); |
| 9433 | 10107 |
| 9434 | 10108 |
| 9435 unittest.group("resource-MachineTypesResourceApi", () { | 10109 unittest.group("resource-MachineTypesResourceApi", () { |
| 9436 unittest.test("method--aggregatedList", () { | 10110 unittest.test("method--aggregatedList", () { |
| 9437 | 10111 |
| 9438 var mock = new common_test.HttpServerMock(); | 10112 var mock = new HttpServerMock(); |
| 9439 api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes; | 10113 api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes; |
| 9440 var arg_project = "foo"; | 10114 var arg_project = "foo"; |
| 9441 var arg_filter = "foo"; | 10115 var arg_filter = "foo"; |
| 9442 var arg_maxResults = 42; | 10116 var arg_maxResults = 42; |
| 9443 var arg_pageToken = "foo"; | 10117 var arg_pageToken = "foo"; |
| 9444 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10118 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9445 var path = (req.url).path; | 10119 var path = (req.url).path; |
| 9446 var pathOffset = 0; | 10120 var pathOffset = 0; |
| 9447 var index; | 10121 var index; |
| 9448 var subPart; | 10122 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 9467 } | 10141 } |
| 9468 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 10142 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 9469 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 10143 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 9470 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 10144 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 9471 | 10145 |
| 9472 | 10146 |
| 9473 var h = { | 10147 var h = { |
| 9474 "content-type" : "application/json; charset=utf-8", | 10148 "content-type" : "application/json; charset=utf-8", |
| 9475 }; | 10149 }; |
| 9476 var resp = convert.JSON.encode(buildMachineTypeAggregatedList()); | 10150 var resp = convert.JSON.encode(buildMachineTypeAggregatedList()); |
| 9477 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10151 return new async.Future.value(stringResponse(200, h, resp)); |
| 9478 }), true); | 10152 }), true); |
| 9479 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeAggre
gatedList response) { | 10153 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeAggre
gatedList response) { |
| 9480 checkMachineTypeAggregatedList(response); | 10154 checkMachineTypeAggregatedList(response); |
| 9481 }))); | 10155 }))); |
| 9482 }); | 10156 }); |
| 9483 | 10157 |
| 9484 unittest.test("method--get", () { | 10158 unittest.test("method--get", () { |
| 9485 | 10159 |
| 9486 var mock = new common_test.HttpServerMock(); | 10160 var mock = new HttpServerMock(); |
| 9487 api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes; | 10161 api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes; |
| 9488 var arg_project = "foo"; | 10162 var arg_project = "foo"; |
| 9489 var arg_zone = "foo"; | 10163 var arg_zone = "foo"; |
| 9490 var arg_machineType = "foo"; | 10164 var arg_machineType = "foo"; |
| 9491 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10165 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9492 var path = (req.url).path; | 10166 var path = (req.url).path; |
| 9493 var pathOffset = 0; | 10167 var pathOffset = 0; |
| 9494 var index; | 10168 var index; |
| 9495 var subPart; | 10169 var subPart; |
| 9496 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10170 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 9511 var keyvalue = part.split("="); | 10185 var keyvalue = part.split("="); |
| 9512 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10186 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9513 } | 10187 } |
| 9514 } | 10188 } |
| 9515 | 10189 |
| 9516 | 10190 |
| 9517 var h = { | 10191 var h = { |
| 9518 "content-type" : "application/json; charset=utf-8", | 10192 "content-type" : "application/json; charset=utf-8", |
| 9519 }; | 10193 }; |
| 9520 var resp = convert.JSON.encode(buildMachineType()); | 10194 var resp = convert.JSON.encode(buildMachineType()); |
| 9521 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10195 return new async.Future.value(stringResponse(200, h, resp)); |
| 9522 }), true); | 10196 }), true); |
| 9523 res.get(arg_project, arg_zone, arg_machineType).then(unittest.expectAsync(
((api.MachineType response) { | 10197 res.get(arg_project, arg_zone, arg_machineType).then(unittest.expectAsync(
((api.MachineType response) { |
| 9524 checkMachineType(response); | 10198 checkMachineType(response); |
| 9525 }))); | 10199 }))); |
| 9526 }); | 10200 }); |
| 9527 | 10201 |
| 9528 unittest.test("method--list", () { | 10202 unittest.test("method--list", () { |
| 9529 | 10203 |
| 9530 var mock = new common_test.HttpServerMock(); | 10204 var mock = new HttpServerMock(); |
| 9531 api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes; | 10205 api.MachineTypesResourceApi res = new api.ComputeApi(mock).machineTypes; |
| 9532 var arg_project = "foo"; | 10206 var arg_project = "foo"; |
| 9533 var arg_zone = "foo"; | 10207 var arg_zone = "foo"; |
| 9534 var arg_filter = "foo"; | 10208 var arg_filter = "foo"; |
| 9535 var arg_maxResults = 42; | 10209 var arg_maxResults = 42; |
| 9536 var arg_pageToken = "foo"; | 10210 var arg_pageToken = "foo"; |
| 9537 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10211 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9538 var path = (req.url).path; | 10212 var path = (req.url).path; |
| 9539 var pathOffset = 0; | 10213 var pathOffset = 0; |
| 9540 var index; | 10214 var index; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 9560 } | 10234 } |
| 9561 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 10235 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 9562 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 10236 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 9563 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 10237 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 9564 | 10238 |
| 9565 | 10239 |
| 9566 var h = { | 10240 var h = { |
| 9567 "content-type" : "application/json; charset=utf-8", | 10241 "content-type" : "application/json; charset=utf-8", |
| 9568 }; | 10242 }; |
| 9569 var resp = convert.JSON.encode(buildMachineTypeList()); | 10243 var resp = convert.JSON.encode(buildMachineTypeList()); |
| 9570 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10244 return new async.Future.value(stringResponse(200, h, resp)); |
| 9571 }), true); | 10245 }), true); |
| 9572 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeList
response) { | 10246 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.MachineTypeList
response) { |
| 9573 checkMachineTypeList(response); | 10247 checkMachineTypeList(response); |
| 9574 }))); | 10248 }))); |
| 9575 }); | 10249 }); |
| 9576 | 10250 |
| 9577 }); | 10251 }); |
| 9578 | 10252 |
| 9579 | 10253 |
| 9580 unittest.group("resource-NetworksResourceApi", () { | 10254 unittest.group("resource-NetworksResourceApi", () { |
| 9581 unittest.test("method--delete", () { | 10255 unittest.test("method--delete", () { |
| 9582 | 10256 |
| 9583 var mock = new common_test.HttpServerMock(); | 10257 var mock = new HttpServerMock(); |
| 9584 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 10258 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
| 9585 var arg_project = "foo"; | 10259 var arg_project = "foo"; |
| 9586 var arg_network = "foo"; | 10260 var arg_network = "foo"; |
| 9587 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10261 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9588 var path = (req.url).path; | 10262 var path = (req.url).path; |
| 9589 var pathOffset = 0; | 10263 var pathOffset = 0; |
| 9590 var index; | 10264 var index; |
| 9591 var subPart; | 10265 var subPart; |
| 9592 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10266 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9593 pathOffset += 1; | 10267 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 9607 var keyvalue = part.split("="); | 10281 var keyvalue = part.split("="); |
| 9608 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10282 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9609 } | 10283 } |
| 9610 } | 10284 } |
| 9611 | 10285 |
| 9612 | 10286 |
| 9613 var h = { | 10287 var h = { |
| 9614 "content-type" : "application/json; charset=utf-8", | 10288 "content-type" : "application/json; charset=utf-8", |
| 9615 }; | 10289 }; |
| 9616 var resp = convert.JSON.encode(buildOperation()); | 10290 var resp = convert.JSON.encode(buildOperation()); |
| 9617 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10291 return new async.Future.value(stringResponse(200, h, resp)); |
| 9618 }), true); | 10292 }), true); |
| 9619 res.delete(arg_project, arg_network).then(unittest.expectAsync(((api.Opera
tion response) { | 10293 res.delete(arg_project, arg_network).then(unittest.expectAsync(((api.Opera
tion response) { |
| 9620 checkOperation(response); | 10294 checkOperation(response); |
| 9621 }))); | 10295 }))); |
| 9622 }); | 10296 }); |
| 9623 | 10297 |
| 9624 unittest.test("method--get", () { | 10298 unittest.test("method--get", () { |
| 9625 | 10299 |
| 9626 var mock = new common_test.HttpServerMock(); | 10300 var mock = new HttpServerMock(); |
| 9627 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 10301 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
| 9628 var arg_project = "foo"; | 10302 var arg_project = "foo"; |
| 9629 var arg_network = "foo"; | 10303 var arg_network = "foo"; |
| 9630 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10304 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9631 var path = (req.url).path; | 10305 var path = (req.url).path; |
| 9632 var pathOffset = 0; | 10306 var pathOffset = 0; |
| 9633 var index; | 10307 var index; |
| 9634 var subPart; | 10308 var subPart; |
| 9635 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10309 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9636 pathOffset += 1; | 10310 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 9650 var keyvalue = part.split("="); | 10324 var keyvalue = part.split("="); |
| 9651 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10325 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9652 } | 10326 } |
| 9653 } | 10327 } |
| 9654 | 10328 |
| 9655 | 10329 |
| 9656 var h = { | 10330 var h = { |
| 9657 "content-type" : "application/json; charset=utf-8", | 10331 "content-type" : "application/json; charset=utf-8", |
| 9658 }; | 10332 }; |
| 9659 var resp = convert.JSON.encode(buildNetwork()); | 10333 var resp = convert.JSON.encode(buildNetwork()); |
| 9660 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10334 return new async.Future.value(stringResponse(200, h, resp)); |
| 9661 }), true); | 10335 }), true); |
| 9662 res.get(arg_project, arg_network).then(unittest.expectAsync(((api.Network
response) { | 10336 res.get(arg_project, arg_network).then(unittest.expectAsync(((api.Network
response) { |
| 9663 checkNetwork(response); | 10337 checkNetwork(response); |
| 9664 }))); | 10338 }))); |
| 9665 }); | 10339 }); |
| 9666 | 10340 |
| 9667 unittest.test("method--insert", () { | 10341 unittest.test("method--insert", () { |
| 9668 | 10342 |
| 9669 var mock = new common_test.HttpServerMock(); | 10343 var mock = new HttpServerMock(); |
| 9670 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 10344 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
| 9671 var arg_request = buildNetwork(); | 10345 var arg_request = buildNetwork(); |
| 9672 var arg_project = "foo"; | 10346 var arg_project = "foo"; |
| 9673 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10347 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9674 var obj = new api.Network.fromJson(json); | 10348 var obj = new api.Network.fromJson(json); |
| 9675 checkNetwork(obj); | 10349 checkNetwork(obj); |
| 9676 | 10350 |
| 9677 var path = (req.url).path; | 10351 var path = (req.url).path; |
| 9678 var pathOffset = 0; | 10352 var pathOffset = 0; |
| 9679 var index; | 10353 var index; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 9696 var keyvalue = part.split("="); | 10370 var keyvalue = part.split("="); |
| 9697 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10371 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9698 } | 10372 } |
| 9699 } | 10373 } |
| 9700 | 10374 |
| 9701 | 10375 |
| 9702 var h = { | 10376 var h = { |
| 9703 "content-type" : "application/json; charset=utf-8", | 10377 "content-type" : "application/json; charset=utf-8", |
| 9704 }; | 10378 }; |
| 9705 var resp = convert.JSON.encode(buildOperation()); | 10379 var resp = convert.JSON.encode(buildOperation()); |
| 9706 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10380 return new async.Future.value(stringResponse(200, h, resp)); |
| 9707 }), true); | 10381 }), true); |
| 9708 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 10382 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
| 9709 checkOperation(response); | 10383 checkOperation(response); |
| 9710 }))); | 10384 }))); |
| 9711 }); | 10385 }); |
| 9712 | 10386 |
| 9713 unittest.test("method--list", () { | 10387 unittest.test("method--list", () { |
| 9714 | 10388 |
| 9715 var mock = new common_test.HttpServerMock(); | 10389 var mock = new HttpServerMock(); |
| 9716 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; | 10390 api.NetworksResourceApi res = new api.ComputeApi(mock).networks; |
| 9717 var arg_project = "foo"; | 10391 var arg_project = "foo"; |
| 9718 var arg_filter = "foo"; | 10392 var arg_filter = "foo"; |
| 9719 var arg_maxResults = 42; | 10393 var arg_maxResults = 42; |
| 9720 var arg_pageToken = "foo"; | 10394 var arg_pageToken = "foo"; |
| 9721 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10395 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9722 var path = (req.url).path; | 10396 var path = (req.url).path; |
| 9723 var pathOffset = 0; | 10397 var pathOffset = 0; |
| 9724 var index; | 10398 var index; |
| 9725 var subPart; | 10399 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 9744 } | 10418 } |
| 9745 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 10419 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 9746 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 10420 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 9747 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 10421 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 9748 | 10422 |
| 9749 | 10423 |
| 9750 var h = { | 10424 var h = { |
| 9751 "content-type" : "application/json; charset=utf-8", | 10425 "content-type" : "application/json; charset=utf-8", |
| 9752 }; | 10426 }; |
| 9753 var resp = convert.JSON.encode(buildNetworkList()); | 10427 var resp = convert.JSON.encode(buildNetworkList()); |
| 9754 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10428 return new async.Future.value(stringResponse(200, h, resp)); |
| 9755 }), true); | 10429 }), true); |
| 9756 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.NetworkList response) { | 10430 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.NetworkList response) { |
| 9757 checkNetworkList(response); | 10431 checkNetworkList(response); |
| 9758 }))); | 10432 }))); |
| 9759 }); | 10433 }); |
| 9760 | 10434 |
| 9761 }); | 10435 }); |
| 9762 | 10436 |
| 9763 | 10437 |
| 9764 unittest.group("resource-ProjectsResourceApi", () { | 10438 unittest.group("resource-ProjectsResourceApi", () { |
| 9765 unittest.test("method--get", () { | 10439 unittest.test("method--get", () { |
| 9766 | 10440 |
| 9767 var mock = new common_test.HttpServerMock(); | 10441 var mock = new HttpServerMock(); |
| 9768 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 10442 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 9769 var arg_project = "foo"; | 10443 var arg_project = "foo"; |
| 9770 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10444 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9771 var path = (req.url).path; | 10445 var path = (req.url).path; |
| 9772 var pathOffset = 0; | 10446 var pathOffset = 0; |
| 9773 var index; | 10447 var index; |
| 9774 var subPart; | 10448 var subPart; |
| 9775 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10449 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9776 pathOffset += 1; | 10450 pathOffset += 1; |
| 9777 | 10451 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 9790 var keyvalue = part.split("="); | 10464 var keyvalue = part.split("="); |
| 9791 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10465 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9792 } | 10466 } |
| 9793 } | 10467 } |
| 9794 | 10468 |
| 9795 | 10469 |
| 9796 var h = { | 10470 var h = { |
| 9797 "content-type" : "application/json; charset=utf-8", | 10471 "content-type" : "application/json; charset=utf-8", |
| 9798 }; | 10472 }; |
| 9799 var resp = convert.JSON.encode(buildProject()); | 10473 var resp = convert.JSON.encode(buildProject()); |
| 9800 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10474 return new async.Future.value(stringResponse(200, h, resp)); |
| 9801 }), true); | 10475 }), true); |
| 9802 res.get(arg_project).then(unittest.expectAsync(((api.Project response) { | 10476 res.get(arg_project).then(unittest.expectAsync(((api.Project response) { |
| 9803 checkProject(response); | 10477 checkProject(response); |
| 9804 }))); | 10478 }))); |
| 9805 }); | 10479 }); |
| 9806 | 10480 |
| 9807 unittest.test("method--setCommonInstanceMetadata", () { | 10481 unittest.test("method--moveDisk", () { |
| 9808 | 10482 |
| 9809 var mock = new common_test.HttpServerMock(); | 10483 var mock = new HttpServerMock(); |
| 9810 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 10484 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 9811 var arg_request = buildMetadata(); | 10485 var arg_request = buildDiskMoveRequest(); |
| 9812 var arg_project = "foo"; | 10486 var arg_project = "foo"; |
| 9813 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10487 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9814 var obj = new api.Metadata.fromJson(json); | 10488 var obj = new api.DiskMoveRequest.fromJson(json); |
| 9815 checkMetadata(obj); | 10489 checkDiskMoveRequest(obj); |
| 9816 | 10490 |
| 9817 var path = (req.url).path; | 10491 var path = (req.url).path; |
| 9818 var pathOffset = 0; | 10492 var pathOffset = 0; |
| 9819 var index; | 10493 var index; |
| 9820 var subPart; | 10494 var subPart; |
| 9821 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10495 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9822 pathOffset += 1; | 10496 pathOffset += 1; |
| 9823 | 10497 |
| 9824 var query = (req.url).query; | 10498 var query = (req.url).query; |
| 9825 var queryOffset = 0; | 10499 var queryOffset = 0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 9836 var keyvalue = part.split("="); | 10510 var keyvalue = part.split("="); |
| 9837 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10511 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9838 } | 10512 } |
| 9839 } | 10513 } |
| 9840 | 10514 |
| 9841 | 10515 |
| 9842 var h = { | 10516 var h = { |
| 9843 "content-type" : "application/json; charset=utf-8", | 10517 "content-type" : "application/json; charset=utf-8", |
| 9844 }; | 10518 }; |
| 9845 var resp = convert.JSON.encode(buildOperation()); | 10519 var resp = convert.JSON.encode(buildOperation()); |
| 9846 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10520 return new async.Future.value(stringResponse(200, h, resp)); |
| 9847 }), true); | 10521 }), true); |
| 9848 res.setCommonInstanceMetadata(arg_request, arg_project).then(unittest.expe
ctAsync(((api.Operation response) { | 10522 res.moveDisk(arg_request, arg_project).then(unittest.expectAsync(((api.Ope
ration response) { |
| 9849 checkOperation(response); | 10523 checkOperation(response); |
| 9850 }))); | 10524 }))); |
| 9851 }); | 10525 }); |
| 9852 | 10526 |
| 9853 unittest.test("method--setUsageExportBucket", () { | 10527 unittest.test("method--moveInstance", () { |
| 9854 | 10528 |
| 9855 var mock = new common_test.HttpServerMock(); | 10529 var mock = new HttpServerMock(); |
| 9856 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; | 10530 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 9857 var arg_request = buildUsageExportLocation(); | 10531 var arg_request = buildInstanceMoveRequest(); |
| 9858 var arg_project = "foo"; | 10532 var arg_project = "foo"; |
| 9859 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10533 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9860 var obj = new api.UsageExportLocation.fromJson(json); | 10534 var obj = new api.InstanceMoveRequest.fromJson(json); |
| 9861 checkUsageExportLocation(obj); | 10535 checkInstanceMoveRequest(obj); |
| 9862 | 10536 |
| 9863 var path = (req.url).path; | 10537 var path = (req.url).path; |
| 9864 var pathOffset = 0; | 10538 var pathOffset = 0; |
| 9865 var index; | 10539 var index; |
| 9866 var subPart; | 10540 var subPart; |
| 9867 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10541 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 9868 pathOffset += 1; | 10542 pathOffset += 1; |
| 9869 | 10543 |
| 9870 var query = (req.url).query; | 10544 var query = (req.url).query; |
| 9871 var queryOffset = 0; | 10545 var queryOffset = 0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 9882 var keyvalue = part.split("="); | 10556 var keyvalue = part.split("="); |
| 9883 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10557 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9884 } | 10558 } |
| 9885 } | 10559 } |
| 9886 | 10560 |
| 9887 | 10561 |
| 9888 var h = { | 10562 var h = { |
| 9889 "content-type" : "application/json; charset=utf-8", | 10563 "content-type" : "application/json; charset=utf-8", |
| 9890 }; | 10564 }; |
| 9891 var resp = convert.JSON.encode(buildOperation()); | 10565 var resp = convert.JSON.encode(buildOperation()); |
| 9892 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10566 return new async.Future.value(stringResponse(200, h, resp)); |
| 10567 }), true); |
| 10568 res.moveInstance(arg_request, arg_project).then(unittest.expectAsync(((api
.Operation response) { |
| 10569 checkOperation(response); |
| 10570 }))); |
| 10571 }); |
| 10572 |
| 10573 unittest.test("method--setCommonInstanceMetadata", () { |
| 10574 |
| 10575 var mock = new HttpServerMock(); |
| 10576 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 10577 var arg_request = buildMetadata(); |
| 10578 var arg_project = "foo"; |
| 10579 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10580 var obj = new api.Metadata.fromJson(json); |
| 10581 checkMetadata(obj); |
| 10582 |
| 10583 var path = (req.url).path; |
| 10584 var pathOffset = 0; |
| 10585 var index; |
| 10586 var subPart; |
| 10587 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10588 pathOffset += 1; |
| 10589 |
| 10590 var query = (req.url).query; |
| 10591 var queryOffset = 0; |
| 10592 var queryMap = {}; |
| 10593 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 10594 parseBool(n) { |
| 10595 if (n == "true") return true; |
| 10596 if (n == "false") return false; |
| 10597 if (n == null) return null; |
| 10598 throw new core.ArgumentError("Invalid boolean: $n"); |
| 10599 } |
| 10600 if (query.length > 0) { |
| 10601 for (var part in query.split("&")) { |
| 10602 var keyvalue = part.split("="); |
| 10603 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10604 } |
| 10605 } |
| 10606 |
| 10607 |
| 10608 var h = { |
| 10609 "content-type" : "application/json; charset=utf-8", |
| 10610 }; |
| 10611 var resp = convert.JSON.encode(buildOperation()); |
| 10612 return new async.Future.value(stringResponse(200, h, resp)); |
| 10613 }), true); |
| 10614 res.setCommonInstanceMetadata(arg_request, arg_project).then(unittest.expe
ctAsync(((api.Operation response) { |
| 10615 checkOperation(response); |
| 10616 }))); |
| 10617 }); |
| 10618 |
| 10619 unittest.test("method--setUsageExportBucket", () { |
| 10620 |
| 10621 var mock = new HttpServerMock(); |
| 10622 api.ProjectsResourceApi res = new api.ComputeApi(mock).projects; |
| 10623 var arg_request = buildUsageExportLocation(); |
| 10624 var arg_project = "foo"; |
| 10625 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10626 var obj = new api.UsageExportLocation.fromJson(json); |
| 10627 checkUsageExportLocation(obj); |
| 10628 |
| 10629 var path = (req.url).path; |
| 10630 var pathOffset = 0; |
| 10631 var index; |
| 10632 var subPart; |
| 10633 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10634 pathOffset += 1; |
| 10635 |
| 10636 var query = (req.url).query; |
| 10637 var queryOffset = 0; |
| 10638 var queryMap = {}; |
| 10639 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 10640 parseBool(n) { |
| 10641 if (n == "true") return true; |
| 10642 if (n == "false") return false; |
| 10643 if (n == null) return null; |
| 10644 throw new core.ArgumentError("Invalid boolean: $n"); |
| 10645 } |
| 10646 if (query.length > 0) { |
| 10647 for (var part in query.split("&")) { |
| 10648 var keyvalue = part.split("="); |
| 10649 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10650 } |
| 10651 } |
| 10652 |
| 10653 |
| 10654 var h = { |
| 10655 "content-type" : "application/json; charset=utf-8", |
| 10656 }; |
| 10657 var resp = convert.JSON.encode(buildOperation()); |
| 10658 return new async.Future.value(stringResponse(200, h, resp)); |
| 9893 }), true); | 10659 }), true); |
| 9894 res.setUsageExportBucket(arg_request, arg_project).then(unittest.expectAsy
nc(((api.Operation response) { | 10660 res.setUsageExportBucket(arg_request, arg_project).then(unittest.expectAsy
nc(((api.Operation response) { |
| 9895 checkOperation(response); | 10661 checkOperation(response); |
| 9896 }))); | 10662 }))); |
| 9897 }); | 10663 }); |
| 9898 | 10664 |
| 9899 }); | 10665 }); |
| 9900 | 10666 |
| 9901 | 10667 |
| 9902 unittest.group("resource-RegionOperationsResourceApi", () { | 10668 unittest.group("resource-RegionOperationsResourceApi", () { |
| 9903 unittest.test("method--delete", () { | 10669 unittest.test("method--delete", () { |
| 9904 | 10670 |
| 9905 var mock = new common_test.HttpServerMock(); | 10671 var mock = new HttpServerMock(); |
| 9906 api.RegionOperationsResourceApi res = new api.ComputeApi(mock).regionOpera
tions; | 10672 api.RegionOperationsResourceApi res = new api.ComputeApi(mock).regionOpera
tions; |
| 9907 var arg_project = "foo"; | 10673 var arg_project = "foo"; |
| 9908 var arg_region = "foo"; | 10674 var arg_region = "foo"; |
| 9909 var arg_operation = "foo"; | 10675 var arg_operation = "foo"; |
| 9910 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10676 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9911 var path = (req.url).path; | 10677 var path = (req.url).path; |
| 9912 var pathOffset = 0; | 10678 var pathOffset = 0; |
| 9913 var index; | 10679 var index; |
| 9914 var subPart; | 10680 var subPart; |
| 9915 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10681 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 9930 var keyvalue = part.split("="); | 10696 var keyvalue = part.split("="); |
| 9931 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10697 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9932 } | 10698 } |
| 9933 } | 10699 } |
| 9934 | 10700 |
| 9935 | 10701 |
| 9936 var h = { | 10702 var h = { |
| 9937 "content-type" : "application/json; charset=utf-8", | 10703 "content-type" : "application/json; charset=utf-8", |
| 9938 }; | 10704 }; |
| 9939 var resp = ""; | 10705 var resp = ""; |
| 9940 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10706 return new async.Future.value(stringResponse(200, h, resp)); |
| 9941 }), true); | 10707 }), true); |
| 9942 res.delete(arg_project, arg_region, arg_operation).then(unittest.expectAsy
nc((_) {})); | 10708 res.delete(arg_project, arg_region, arg_operation).then(unittest.expectAsy
nc((_) {})); |
| 9943 }); | 10709 }); |
| 9944 | 10710 |
| 9945 unittest.test("method--get", () { | 10711 unittest.test("method--get", () { |
| 9946 | 10712 |
| 9947 var mock = new common_test.HttpServerMock(); | 10713 var mock = new HttpServerMock(); |
| 9948 api.RegionOperationsResourceApi res = new api.ComputeApi(mock).regionOpera
tions; | 10714 api.RegionOperationsResourceApi res = new api.ComputeApi(mock).regionOpera
tions; |
| 9949 var arg_project = "foo"; | 10715 var arg_project = "foo"; |
| 9950 var arg_region = "foo"; | 10716 var arg_region = "foo"; |
| 9951 var arg_operation = "foo"; | 10717 var arg_operation = "foo"; |
| 9952 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10718 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9953 var path = (req.url).path; | 10719 var path = (req.url).path; |
| 9954 var pathOffset = 0; | 10720 var pathOffset = 0; |
| 9955 var index; | 10721 var index; |
| 9956 var subPart; | 10722 var subPart; |
| 9957 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10723 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 9972 var keyvalue = part.split("="); | 10738 var keyvalue = part.split("="); |
| 9973 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10739 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 9974 } | 10740 } |
| 9975 } | 10741 } |
| 9976 | 10742 |
| 9977 | 10743 |
| 9978 var h = { | 10744 var h = { |
| 9979 "content-type" : "application/json; charset=utf-8", | 10745 "content-type" : "application/json; charset=utf-8", |
| 9980 }; | 10746 }; |
| 9981 var resp = convert.JSON.encode(buildOperation()); | 10747 var resp = convert.JSON.encode(buildOperation()); |
| 9982 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10748 return new async.Future.value(stringResponse(200, h, resp)); |
| 9983 }), true); | 10749 }), true); |
| 9984 res.get(arg_project, arg_region, arg_operation).then(unittest.expectAsync(
((api.Operation response) { | 10750 res.get(arg_project, arg_region, arg_operation).then(unittest.expectAsync(
((api.Operation response) { |
| 9985 checkOperation(response); | 10751 checkOperation(response); |
| 9986 }))); | 10752 }))); |
| 9987 }); | 10753 }); |
| 9988 | 10754 |
| 9989 unittest.test("method--list", () { | 10755 unittest.test("method--list", () { |
| 9990 | 10756 |
| 9991 var mock = new common_test.HttpServerMock(); | 10757 var mock = new HttpServerMock(); |
| 9992 api.RegionOperationsResourceApi res = new api.ComputeApi(mock).regionOpera
tions; | 10758 api.RegionOperationsResourceApi res = new api.ComputeApi(mock).regionOpera
tions; |
| 9993 var arg_project = "foo"; | 10759 var arg_project = "foo"; |
| 9994 var arg_region = "foo"; | 10760 var arg_region = "foo"; |
| 9995 var arg_filter = "foo"; | 10761 var arg_filter = "foo"; |
| 9996 var arg_maxResults = 42; | 10762 var arg_maxResults = 42; |
| 9997 var arg_pageToken = "foo"; | 10763 var arg_pageToken = "foo"; |
| 9998 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10764 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 9999 var path = (req.url).path; | 10765 var path = (req.url).path; |
| 10000 var pathOffset = 0; | 10766 var pathOffset = 0; |
| 10001 var index; | 10767 var index; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 10021 } | 10787 } |
| 10022 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 10788 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 10023 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 10789 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 10024 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 10790 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 10025 | 10791 |
| 10026 | 10792 |
| 10027 var h = { | 10793 var h = { |
| 10028 "content-type" : "application/json; charset=utf-8", | 10794 "content-type" : "application/json; charset=utf-8", |
| 10029 }; | 10795 }; |
| 10030 var resp = convert.JSON.encode(buildOperationList()); | 10796 var resp = convert.JSON.encode(buildOperationList()); |
| 10031 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10797 return new async.Future.value(stringResponse(200, h, resp)); |
| 10032 }), true); | 10798 }), true); |
| 10033 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList
response) { | 10799 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList
response) { |
| 10034 checkOperationList(response); | 10800 checkOperationList(response); |
| 10035 }))); | 10801 }))); |
| 10036 }); | 10802 }); |
| 10037 | 10803 |
| 10038 }); | 10804 }); |
| 10039 | 10805 |
| 10040 | 10806 |
| 10041 unittest.group("resource-RegionsResourceApi", () { | 10807 unittest.group("resource-RegionsResourceApi", () { |
| 10042 unittest.test("method--get", () { | 10808 unittest.test("method--get", () { |
| 10043 | 10809 |
| 10044 var mock = new common_test.HttpServerMock(); | 10810 var mock = new HttpServerMock(); |
| 10045 api.RegionsResourceApi res = new api.ComputeApi(mock).regions; | 10811 api.RegionsResourceApi res = new api.ComputeApi(mock).regions; |
| 10046 var arg_project = "foo"; | 10812 var arg_project = "foo"; |
| 10047 var arg_region = "foo"; | 10813 var arg_region = "foo"; |
| 10048 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10814 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10049 var path = (req.url).path; | 10815 var path = (req.url).path; |
| 10050 var pathOffset = 0; | 10816 var pathOffset = 0; |
| 10051 var index; | 10817 var index; |
| 10052 var subPart; | 10818 var subPart; |
| 10053 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10819 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10054 pathOffset += 1; | 10820 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 10068 var keyvalue = part.split("="); | 10834 var keyvalue = part.split("="); |
| 10069 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10835 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10070 } | 10836 } |
| 10071 } | 10837 } |
| 10072 | 10838 |
| 10073 | 10839 |
| 10074 var h = { | 10840 var h = { |
| 10075 "content-type" : "application/json; charset=utf-8", | 10841 "content-type" : "application/json; charset=utf-8", |
| 10076 }; | 10842 }; |
| 10077 var resp = convert.JSON.encode(buildRegion()); | 10843 var resp = convert.JSON.encode(buildRegion()); |
| 10078 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10844 return new async.Future.value(stringResponse(200, h, resp)); |
| 10079 }), true); | 10845 }), true); |
| 10080 res.get(arg_project, arg_region).then(unittest.expectAsync(((api.Region re
sponse) { | 10846 res.get(arg_project, arg_region).then(unittest.expectAsync(((api.Region re
sponse) { |
| 10081 checkRegion(response); | 10847 checkRegion(response); |
| 10082 }))); | 10848 }))); |
| 10083 }); | 10849 }); |
| 10084 | 10850 |
| 10085 unittest.test("method--list", () { | 10851 unittest.test("method--list", () { |
| 10086 | 10852 |
| 10087 var mock = new common_test.HttpServerMock(); | 10853 var mock = new HttpServerMock(); |
| 10088 api.RegionsResourceApi res = new api.ComputeApi(mock).regions; | 10854 api.RegionsResourceApi res = new api.ComputeApi(mock).regions; |
| 10089 var arg_project = "foo"; | 10855 var arg_project = "foo"; |
| 10090 var arg_filter = "foo"; | 10856 var arg_filter = "foo"; |
| 10091 var arg_maxResults = 42; | 10857 var arg_maxResults = 42; |
| 10092 var arg_pageToken = "foo"; | 10858 var arg_pageToken = "foo"; |
| 10093 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10859 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10094 var path = (req.url).path; | 10860 var path = (req.url).path; |
| 10095 var pathOffset = 0; | 10861 var pathOffset = 0; |
| 10096 var index; | 10862 var index; |
| 10097 var subPart; | 10863 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10116 } | 10882 } |
| 10117 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 10883 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 10118 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 10884 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 10119 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 10885 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 10120 | 10886 |
| 10121 | 10887 |
| 10122 var h = { | 10888 var h = { |
| 10123 "content-type" : "application/json; charset=utf-8", | 10889 "content-type" : "application/json; charset=utf-8", |
| 10124 }; | 10890 }; |
| 10125 var resp = convert.JSON.encode(buildRegionList()); | 10891 var resp = convert.JSON.encode(buildRegionList()); |
| 10126 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10892 return new async.Future.value(stringResponse(200, h, resp)); |
| 10127 }), true); | 10893 }), true); |
| 10128 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.RegionList response) { | 10894 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.RegionList response) { |
| 10129 checkRegionList(response); | 10895 checkRegionList(response); |
| 10130 }))); | 10896 }))); |
| 10131 }); | 10897 }); |
| 10132 | 10898 |
| 10133 }); | 10899 }); |
| 10134 | 10900 |
| 10135 | 10901 |
| 10136 unittest.group("resource-RoutesResourceApi", () { | 10902 unittest.group("resource-RoutesResourceApi", () { |
| 10137 unittest.test("method--delete", () { | 10903 unittest.test("method--delete", () { |
| 10138 | 10904 |
| 10139 var mock = new common_test.HttpServerMock(); | 10905 var mock = new HttpServerMock(); |
| 10140 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; | 10906 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; |
| 10141 var arg_project = "foo"; | 10907 var arg_project = "foo"; |
| 10142 var arg_route = "foo"; | 10908 var arg_route = "foo"; |
| 10143 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10909 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10144 var path = (req.url).path; | 10910 var path = (req.url).path; |
| 10145 var pathOffset = 0; | 10911 var pathOffset = 0; |
| 10146 var index; | 10912 var index; |
| 10147 var subPart; | 10913 var subPart; |
| 10148 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10914 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10149 pathOffset += 1; | 10915 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 10163 var keyvalue = part.split("="); | 10929 var keyvalue = part.split("="); |
| 10164 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10930 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10165 } | 10931 } |
| 10166 } | 10932 } |
| 10167 | 10933 |
| 10168 | 10934 |
| 10169 var h = { | 10935 var h = { |
| 10170 "content-type" : "application/json; charset=utf-8", | 10936 "content-type" : "application/json; charset=utf-8", |
| 10171 }; | 10937 }; |
| 10172 var resp = convert.JSON.encode(buildOperation()); | 10938 var resp = convert.JSON.encode(buildOperation()); |
| 10173 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10939 return new async.Future.value(stringResponse(200, h, resp)); |
| 10174 }), true); | 10940 }), true); |
| 10175 res.delete(arg_project, arg_route).then(unittest.expectAsync(((api.Operati
on response) { | 10941 res.delete(arg_project, arg_route).then(unittest.expectAsync(((api.Operati
on response) { |
| 10176 checkOperation(response); | 10942 checkOperation(response); |
| 10177 }))); | 10943 }))); |
| 10178 }); | 10944 }); |
| 10179 | 10945 |
| 10180 unittest.test("method--get", () { | 10946 unittest.test("method--get", () { |
| 10181 | 10947 |
| 10182 var mock = new common_test.HttpServerMock(); | 10948 var mock = new HttpServerMock(); |
| 10183 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; | 10949 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; |
| 10184 var arg_project = "foo"; | 10950 var arg_project = "foo"; |
| 10185 var arg_route = "foo"; | 10951 var arg_route = "foo"; |
| 10186 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10952 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10187 var path = (req.url).path; | 10953 var path = (req.url).path; |
| 10188 var pathOffset = 0; | 10954 var pathOffset = 0; |
| 10189 var index; | 10955 var index; |
| 10190 var subPart; | 10956 var subPart; |
| 10191 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 10957 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10192 pathOffset += 1; | 10958 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 10206 var keyvalue = part.split("="); | 10972 var keyvalue = part.split("="); |
| 10207 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 10973 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10208 } | 10974 } |
| 10209 } | 10975 } |
| 10210 | 10976 |
| 10211 | 10977 |
| 10212 var h = { | 10978 var h = { |
| 10213 "content-type" : "application/json; charset=utf-8", | 10979 "content-type" : "application/json; charset=utf-8", |
| 10214 }; | 10980 }; |
| 10215 var resp = convert.JSON.encode(buildRoute()); | 10981 var resp = convert.JSON.encode(buildRoute()); |
| 10216 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 10982 return new async.Future.value(stringResponse(200, h, resp)); |
| 10217 }), true); | 10983 }), true); |
| 10218 res.get(arg_project, arg_route).then(unittest.expectAsync(((api.Route resp
onse) { | 10984 res.get(arg_project, arg_route).then(unittest.expectAsync(((api.Route resp
onse) { |
| 10219 checkRoute(response); | 10985 checkRoute(response); |
| 10220 }))); | 10986 }))); |
| 10221 }); | 10987 }); |
| 10222 | 10988 |
| 10223 unittest.test("method--insert", () { | 10989 unittest.test("method--insert", () { |
| 10224 | 10990 |
| 10225 var mock = new common_test.HttpServerMock(); | 10991 var mock = new HttpServerMock(); |
| 10226 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; | 10992 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; |
| 10227 var arg_request = buildRoute(); | 10993 var arg_request = buildRoute(); |
| 10228 var arg_project = "foo"; | 10994 var arg_project = "foo"; |
| 10229 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 10995 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10230 var obj = new api.Route.fromJson(json); | 10996 var obj = new api.Route.fromJson(json); |
| 10231 checkRoute(obj); | 10997 checkRoute(obj); |
| 10232 | 10998 |
| 10233 var path = (req.url).path; | 10999 var path = (req.url).path; |
| 10234 var pathOffset = 0; | 11000 var pathOffset = 0; |
| 10235 var index; | 11001 var index; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 10252 var keyvalue = part.split("="); | 11018 var keyvalue = part.split("="); |
| 10253 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11019 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10254 } | 11020 } |
| 10255 } | 11021 } |
| 10256 | 11022 |
| 10257 | 11023 |
| 10258 var h = { | 11024 var h = { |
| 10259 "content-type" : "application/json; charset=utf-8", | 11025 "content-type" : "application/json; charset=utf-8", |
| 10260 }; | 11026 }; |
| 10261 var resp = convert.JSON.encode(buildOperation()); | 11027 var resp = convert.JSON.encode(buildOperation()); |
| 10262 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11028 return new async.Future.value(stringResponse(200, h, resp)); |
| 10263 }), true); | 11029 }), true); |
| 10264 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 11030 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
| 10265 checkOperation(response); | 11031 checkOperation(response); |
| 10266 }))); | 11032 }))); |
| 10267 }); | 11033 }); |
| 10268 | 11034 |
| 10269 unittest.test("method--list", () { | 11035 unittest.test("method--list", () { |
| 10270 | 11036 |
| 10271 var mock = new common_test.HttpServerMock(); | 11037 var mock = new HttpServerMock(); |
| 10272 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; | 11038 api.RoutesResourceApi res = new api.ComputeApi(mock).routes; |
| 10273 var arg_project = "foo"; | 11039 var arg_project = "foo"; |
| 10274 var arg_filter = "foo"; | 11040 var arg_filter = "foo"; |
| 10275 var arg_maxResults = 42; | 11041 var arg_maxResults = 42; |
| 10276 var arg_pageToken = "foo"; | 11042 var arg_pageToken = "foo"; |
| 10277 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11043 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10278 var path = (req.url).path; | 11044 var path = (req.url).path; |
| 10279 var pathOffset = 0; | 11045 var pathOffset = 0; |
| 10280 var index; | 11046 var index; |
| 10281 var subPart; | 11047 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10300 } | 11066 } |
| 10301 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 11067 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 10302 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 11068 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 10303 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 11069 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 10304 | 11070 |
| 10305 | 11071 |
| 10306 var h = { | 11072 var h = { |
| 10307 "content-type" : "application/json; charset=utf-8", | 11073 "content-type" : "application/json; charset=utf-8", |
| 10308 }; | 11074 }; |
| 10309 var resp = convert.JSON.encode(buildRouteList()); | 11075 var resp = convert.JSON.encode(buildRouteList()); |
| 10310 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11076 return new async.Future.value(stringResponse(200, h, resp)); |
| 10311 }), true); | 11077 }), true); |
| 10312 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.RouteList response) { | 11078 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.RouteList response) { |
| 10313 checkRouteList(response); | 11079 checkRouteList(response); |
| 10314 }))); | 11080 }))); |
| 10315 }); | 11081 }); |
| 10316 | 11082 |
| 10317 }); | 11083 }); |
| 10318 | 11084 |
| 10319 | 11085 |
| 10320 unittest.group("resource-SnapshotsResourceApi", () { | 11086 unittest.group("resource-SnapshotsResourceApi", () { |
| 10321 unittest.test("method--delete", () { | 11087 unittest.test("method--delete", () { |
| 10322 | 11088 |
| 10323 var mock = new common_test.HttpServerMock(); | 11089 var mock = new HttpServerMock(); |
| 10324 api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; | 11090 api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; |
| 10325 var arg_project = "foo"; | 11091 var arg_project = "foo"; |
| 10326 var arg_snapshot = "foo"; | 11092 var arg_snapshot = "foo"; |
| 10327 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11093 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10328 var path = (req.url).path; | 11094 var path = (req.url).path; |
| 10329 var pathOffset = 0; | 11095 var pathOffset = 0; |
| 10330 var index; | 11096 var index; |
| 10331 var subPart; | 11097 var subPart; |
| 10332 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11098 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10333 pathOffset += 1; | 11099 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 10347 var keyvalue = part.split("="); | 11113 var keyvalue = part.split("="); |
| 10348 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11114 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10349 } | 11115 } |
| 10350 } | 11116 } |
| 10351 | 11117 |
| 10352 | 11118 |
| 10353 var h = { | 11119 var h = { |
| 10354 "content-type" : "application/json; charset=utf-8", | 11120 "content-type" : "application/json; charset=utf-8", |
| 10355 }; | 11121 }; |
| 10356 var resp = convert.JSON.encode(buildOperation()); | 11122 var resp = convert.JSON.encode(buildOperation()); |
| 10357 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11123 return new async.Future.value(stringResponse(200, h, resp)); |
| 10358 }), true); | 11124 }), true); |
| 10359 res.delete(arg_project, arg_snapshot).then(unittest.expectAsync(((api.Oper
ation response) { | 11125 res.delete(arg_project, arg_snapshot).then(unittest.expectAsync(((api.Oper
ation response) { |
| 10360 checkOperation(response); | 11126 checkOperation(response); |
| 10361 }))); | 11127 }))); |
| 10362 }); | 11128 }); |
| 10363 | 11129 |
| 10364 unittest.test("method--get", () { | 11130 unittest.test("method--get", () { |
| 10365 | 11131 |
| 10366 var mock = new common_test.HttpServerMock(); | 11132 var mock = new HttpServerMock(); |
| 10367 api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; | 11133 api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; |
| 10368 var arg_project = "foo"; | 11134 var arg_project = "foo"; |
| 10369 var arg_snapshot = "foo"; | 11135 var arg_snapshot = "foo"; |
| 10370 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11136 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10371 var path = (req.url).path; | 11137 var path = (req.url).path; |
| 10372 var pathOffset = 0; | 11138 var pathOffset = 0; |
| 10373 var index; | 11139 var index; |
| 10374 var subPart; | 11140 var subPart; |
| 10375 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11141 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10376 pathOffset += 1; | 11142 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 10390 var keyvalue = part.split("="); | 11156 var keyvalue = part.split("="); |
| 10391 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11157 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10392 } | 11158 } |
| 10393 } | 11159 } |
| 10394 | 11160 |
| 10395 | 11161 |
| 10396 var h = { | 11162 var h = { |
| 10397 "content-type" : "application/json; charset=utf-8", | 11163 "content-type" : "application/json; charset=utf-8", |
| 10398 }; | 11164 }; |
| 10399 var resp = convert.JSON.encode(buildSnapshot()); | 11165 var resp = convert.JSON.encode(buildSnapshot()); |
| 10400 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11166 return new async.Future.value(stringResponse(200, h, resp)); |
| 10401 }), true); | 11167 }), true); |
| 10402 res.get(arg_project, arg_snapshot).then(unittest.expectAsync(((api.Snapsho
t response) { | 11168 res.get(arg_project, arg_snapshot).then(unittest.expectAsync(((api.Snapsho
t response) { |
| 10403 checkSnapshot(response); | 11169 checkSnapshot(response); |
| 10404 }))); | 11170 }))); |
| 10405 }); | 11171 }); |
| 10406 | 11172 |
| 10407 unittest.test("method--list", () { | 11173 unittest.test("method--list", () { |
| 10408 | 11174 |
| 10409 var mock = new common_test.HttpServerMock(); | 11175 var mock = new HttpServerMock(); |
| 10410 api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; | 11176 api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; |
| 10411 var arg_project = "foo"; | 11177 var arg_project = "foo"; |
| 10412 var arg_filter = "foo"; | 11178 var arg_filter = "foo"; |
| 10413 var arg_maxResults = 42; | 11179 var arg_maxResults = 42; |
| 10414 var arg_pageToken = "foo"; | 11180 var arg_pageToken = "foo"; |
| 10415 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11181 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10416 var path = (req.url).path; | 11182 var path = (req.url).path; |
| 10417 var pathOffset = 0; | 11183 var pathOffset = 0; |
| 10418 var index; | 11184 var index; |
| 10419 var subPart; | 11185 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10438 } | 11204 } |
| 10439 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 11205 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 10440 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 11206 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 10441 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 11207 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 10442 | 11208 |
| 10443 | 11209 |
| 10444 var h = { | 11210 var h = { |
| 10445 "content-type" : "application/json; charset=utf-8", | 11211 "content-type" : "application/json; charset=utf-8", |
| 10446 }; | 11212 }; |
| 10447 var resp = convert.JSON.encode(buildSnapshotList()); | 11213 var resp = convert.JSON.encode(buildSnapshotList()); |
| 10448 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11214 return new async.Future.value(stringResponse(200, h, resp)); |
| 10449 }), true); | 11215 }), true); |
| 10450 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.SnapshotList response) { | 11216 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.SnapshotList response) { |
| 10451 checkSnapshotList(response); | 11217 checkSnapshotList(response); |
| 10452 }))); | 11218 }))); |
| 10453 }); | 11219 }); |
| 10454 | 11220 |
| 10455 }); | 11221 }); |
| 10456 | 11222 |
| 10457 | 11223 |
| 10458 unittest.group("resource-TargetHttpProxiesResourceApi", () { | 11224 unittest.group("resource-TargetHttpProxiesResourceApi", () { |
| 10459 unittest.test("method--delete", () { | 11225 unittest.test("method--delete", () { |
| 10460 | 11226 |
| 10461 var mock = new common_test.HttpServerMock(); | 11227 var mock = new HttpServerMock(); |
| 10462 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; | 11228 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; |
| 10463 var arg_project = "foo"; | 11229 var arg_project = "foo"; |
| 10464 var arg_targetHttpProxy = "foo"; | 11230 var arg_targetHttpProxy = "foo"; |
| 10465 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11231 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10466 var path = (req.url).path; | 11232 var path = (req.url).path; |
| 10467 var pathOffset = 0; | 11233 var pathOffset = 0; |
| 10468 var index; | 11234 var index; |
| 10469 var subPart; | 11235 var subPart; |
| 10470 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11236 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10471 pathOffset += 1; | 11237 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 10485 var keyvalue = part.split("="); | 11251 var keyvalue = part.split("="); |
| 10486 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11252 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10487 } | 11253 } |
| 10488 } | 11254 } |
| 10489 | 11255 |
| 10490 | 11256 |
| 10491 var h = { | 11257 var h = { |
| 10492 "content-type" : "application/json; charset=utf-8", | 11258 "content-type" : "application/json; charset=utf-8", |
| 10493 }; | 11259 }; |
| 10494 var resp = convert.JSON.encode(buildOperation()); | 11260 var resp = convert.JSON.encode(buildOperation()); |
| 10495 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11261 return new async.Future.value(stringResponse(200, h, resp)); |
| 10496 }), true); | 11262 }), true); |
| 10497 res.delete(arg_project, arg_targetHttpProxy).then(unittest.expectAsync(((a
pi.Operation response) { | 11263 res.delete(arg_project, arg_targetHttpProxy).then(unittest.expectAsync(((a
pi.Operation response) { |
| 10498 checkOperation(response); | 11264 checkOperation(response); |
| 10499 }))); | 11265 }))); |
| 10500 }); | 11266 }); |
| 10501 | 11267 |
| 10502 unittest.test("method--get", () { | 11268 unittest.test("method--get", () { |
| 10503 | 11269 |
| 10504 var mock = new common_test.HttpServerMock(); | 11270 var mock = new HttpServerMock(); |
| 10505 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; | 11271 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; |
| 10506 var arg_project = "foo"; | 11272 var arg_project = "foo"; |
| 10507 var arg_targetHttpProxy = "foo"; | 11273 var arg_targetHttpProxy = "foo"; |
| 10508 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11274 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10509 var path = (req.url).path; | 11275 var path = (req.url).path; |
| 10510 var pathOffset = 0; | 11276 var pathOffset = 0; |
| 10511 var index; | 11277 var index; |
| 10512 var subPart; | 11278 var subPart; |
| 10513 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11279 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 10514 pathOffset += 1; | 11280 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 10528 var keyvalue = part.split("="); | 11294 var keyvalue = part.split("="); |
| 10529 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11295 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10530 } | 11296 } |
| 10531 } | 11297 } |
| 10532 | 11298 |
| 10533 | 11299 |
| 10534 var h = { | 11300 var h = { |
| 10535 "content-type" : "application/json; charset=utf-8", | 11301 "content-type" : "application/json; charset=utf-8", |
| 10536 }; | 11302 }; |
| 10537 var resp = convert.JSON.encode(buildTargetHttpProxy()); | 11303 var resp = convert.JSON.encode(buildTargetHttpProxy()); |
| 10538 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11304 return new async.Future.value(stringResponse(200, h, resp)); |
| 10539 }), true); | 11305 }), true); |
| 10540 res.get(arg_project, arg_targetHttpProxy).then(unittest.expectAsync(((api.
TargetHttpProxy response) { | 11306 res.get(arg_project, arg_targetHttpProxy).then(unittest.expectAsync(((api.
TargetHttpProxy response) { |
| 10541 checkTargetHttpProxy(response); | 11307 checkTargetHttpProxy(response); |
| 10542 }))); | 11308 }))); |
| 10543 }); | 11309 }); |
| 10544 | 11310 |
| 10545 unittest.test("method--insert", () { | 11311 unittest.test("method--insert", () { |
| 10546 | 11312 |
| 10547 var mock = new common_test.HttpServerMock(); | 11313 var mock = new HttpServerMock(); |
| 10548 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; | 11314 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; |
| 10549 var arg_request = buildTargetHttpProxy(); | 11315 var arg_request = buildTargetHttpProxy(); |
| 10550 var arg_project = "foo"; | 11316 var arg_project = "foo"; |
| 10551 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11317 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10552 var obj = new api.TargetHttpProxy.fromJson(json); | 11318 var obj = new api.TargetHttpProxy.fromJson(json); |
| 10553 checkTargetHttpProxy(obj); | 11319 checkTargetHttpProxy(obj); |
| 10554 | 11320 |
| 10555 var path = (req.url).path; | 11321 var path = (req.url).path; |
| 10556 var pathOffset = 0; | 11322 var pathOffset = 0; |
| 10557 var index; | 11323 var index; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 10574 var keyvalue = part.split("="); | 11340 var keyvalue = part.split("="); |
| 10575 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11341 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10576 } | 11342 } |
| 10577 } | 11343 } |
| 10578 | 11344 |
| 10579 | 11345 |
| 10580 var h = { | 11346 var h = { |
| 10581 "content-type" : "application/json; charset=utf-8", | 11347 "content-type" : "application/json; charset=utf-8", |
| 10582 }; | 11348 }; |
| 10583 var resp = convert.JSON.encode(buildOperation()); | 11349 var resp = convert.JSON.encode(buildOperation()); |
| 10584 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11350 return new async.Future.value(stringResponse(200, h, resp)); |
| 10585 }), true); | 11351 }), true); |
| 10586 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 11352 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
| 10587 checkOperation(response); | 11353 checkOperation(response); |
| 10588 }))); | 11354 }))); |
| 10589 }); | 11355 }); |
| 10590 | 11356 |
| 10591 unittest.test("method--list", () { | 11357 unittest.test("method--list", () { |
| 10592 | 11358 |
| 10593 var mock = new common_test.HttpServerMock(); | 11359 var mock = new HttpServerMock(); |
| 10594 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; | 11360 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; |
| 10595 var arg_project = "foo"; | 11361 var arg_project = "foo"; |
| 10596 var arg_filter = "foo"; | 11362 var arg_filter = "foo"; |
| 10597 var arg_maxResults = 42; | 11363 var arg_maxResults = 42; |
| 10598 var arg_pageToken = "foo"; | 11364 var arg_pageToken = "foo"; |
| 10599 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11365 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10600 var path = (req.url).path; | 11366 var path = (req.url).path; |
| 10601 var pathOffset = 0; | 11367 var pathOffset = 0; |
| 10602 var index; | 11368 var index; |
| 10603 var subPart; | 11369 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10622 } | 11388 } |
| 10623 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 11389 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 10624 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 11390 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 10625 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 11391 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 10626 | 11392 |
| 10627 | 11393 |
| 10628 var h = { | 11394 var h = { |
| 10629 "content-type" : "application/json; charset=utf-8", | 11395 "content-type" : "application/json; charset=utf-8", |
| 10630 }; | 11396 }; |
| 10631 var resp = convert.JSON.encode(buildTargetHttpProxyList()); | 11397 var resp = convert.JSON.encode(buildTargetHttpProxyList()); |
| 10632 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11398 return new async.Future.value(stringResponse(200, h, resp)); |
| 10633 }), true); | 11399 }), true); |
| 10634 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.TargetHttpProxyList respon
se) { | 11400 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.TargetHttpProxyList respon
se) { |
| 10635 checkTargetHttpProxyList(response); | 11401 checkTargetHttpProxyList(response); |
| 10636 }))); | 11402 }))); |
| 10637 }); | 11403 }); |
| 10638 | 11404 |
| 10639 unittest.test("method--setUrlMap", () { | 11405 unittest.test("method--setUrlMap", () { |
| 10640 | 11406 |
| 10641 var mock = new common_test.HttpServerMock(); | 11407 var mock = new HttpServerMock(); |
| 10642 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; | 11408 api.TargetHttpProxiesResourceApi res = new api.ComputeApi(mock).targetHttp
Proxies; |
| 10643 var arg_request = buildUrlMapReference(); | 11409 var arg_request = buildUrlMapReference(); |
| 10644 var arg_project = "foo"; | 11410 var arg_project = "foo"; |
| 10645 var arg_targetHttpProxy = "foo"; | 11411 var arg_targetHttpProxy = "foo"; |
| 10646 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11412 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10647 var obj = new api.UrlMapReference.fromJson(json); | 11413 var obj = new api.UrlMapReference.fromJson(json); |
| 10648 checkUrlMapReference(obj); | 11414 checkUrlMapReference(obj); |
| 10649 | 11415 |
| 10650 var path = (req.url).path; | 11416 var path = (req.url).path; |
| 10651 var pathOffset = 0; | 11417 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 10669 var keyvalue = part.split("="); | 11435 var keyvalue = part.split("="); |
| 10670 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11436 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10671 } | 11437 } |
| 10672 } | 11438 } |
| 10673 | 11439 |
| 10674 | 11440 |
| 10675 var h = { | 11441 var h = { |
| 10676 "content-type" : "application/json; charset=utf-8", | 11442 "content-type" : "application/json; charset=utf-8", |
| 10677 }; | 11443 }; |
| 10678 var resp = convert.JSON.encode(buildOperation()); | 11444 var resp = convert.JSON.encode(buildOperation()); |
| 10679 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11445 return new async.Future.value(stringResponse(200, h, resp)); |
| 10680 }), true); | 11446 }), true); |
| 10681 res.setUrlMap(arg_request, arg_project, arg_targetHttpProxy).then(unittest
.expectAsync(((api.Operation response) { | 11447 res.setUrlMap(arg_request, arg_project, arg_targetHttpProxy).then(unittest
.expectAsync(((api.Operation response) { |
| 10682 checkOperation(response); | 11448 checkOperation(response); |
| 10683 }))); | 11449 }))); |
| 10684 }); | 11450 }); |
| 10685 | 11451 |
| 10686 }); | 11452 }); |
| 10687 | 11453 |
| 10688 | 11454 |
| 10689 unittest.group("resource-TargetInstancesResourceApi", () { | 11455 unittest.group("resource-TargetInstancesResourceApi", () { |
| 10690 unittest.test("method--aggregatedList", () { | 11456 unittest.test("method--aggregatedList", () { |
| 10691 | 11457 |
| 10692 var mock = new common_test.HttpServerMock(); | 11458 var mock = new HttpServerMock(); |
| 10693 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; | 11459 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; |
| 10694 var arg_project = "foo"; | 11460 var arg_project = "foo"; |
| 10695 var arg_filter = "foo"; | 11461 var arg_filter = "foo"; |
| 10696 var arg_maxResults = 42; | 11462 var arg_maxResults = 42; |
| 10697 var arg_pageToken = "foo"; | 11463 var arg_pageToken = "foo"; |
| 10698 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11464 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10699 var path = (req.url).path; | 11465 var path = (req.url).path; |
| 10700 var pathOffset = 0; | 11466 var pathOffset = 0; |
| 10701 var index; | 11467 var index; |
| 10702 var subPart; | 11468 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10721 } | 11487 } |
| 10722 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 11488 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 10723 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 11489 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 10724 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 11490 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 10725 | 11491 |
| 10726 | 11492 |
| 10727 var h = { | 11493 var h = { |
| 10728 "content-type" : "application/json; charset=utf-8", | 11494 "content-type" : "application/json; charset=utf-8", |
| 10729 }; | 11495 }; |
| 10730 var resp = convert.JSON.encode(buildTargetInstanceAggregatedList()); | 11496 var resp = convert.JSON.encode(buildTargetInstanceAggregatedList()); |
| 10731 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11497 return new async.Future.value(stringResponse(200, h, resp)); |
| 10732 }), true); | 11498 }), true); |
| 10733 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceAg
gregatedList response) { | 11499 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceAg
gregatedList response) { |
| 10734 checkTargetInstanceAggregatedList(response); | 11500 checkTargetInstanceAggregatedList(response); |
| 10735 }))); | 11501 }))); |
| 10736 }); | 11502 }); |
| 10737 | 11503 |
| 10738 unittest.test("method--delete", () { | 11504 unittest.test("method--delete", () { |
| 10739 | 11505 |
| 10740 var mock = new common_test.HttpServerMock(); | 11506 var mock = new HttpServerMock(); |
| 10741 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; | 11507 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; |
| 10742 var arg_project = "foo"; | 11508 var arg_project = "foo"; |
| 10743 var arg_zone = "foo"; | 11509 var arg_zone = "foo"; |
| 10744 var arg_targetInstance = "foo"; | 11510 var arg_targetInstance = "foo"; |
| 10745 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11511 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10746 var path = (req.url).path; | 11512 var path = (req.url).path; |
| 10747 var pathOffset = 0; | 11513 var pathOffset = 0; |
| 10748 var index; | 11514 var index; |
| 10749 var subPart; | 11515 var subPart; |
| 10750 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11516 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 10765 var keyvalue = part.split("="); | 11531 var keyvalue = part.split("="); |
| 10766 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11532 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10767 } | 11533 } |
| 10768 } | 11534 } |
| 10769 | 11535 |
| 10770 | 11536 |
| 10771 var h = { | 11537 var h = { |
| 10772 "content-type" : "application/json; charset=utf-8", | 11538 "content-type" : "application/json; charset=utf-8", |
| 10773 }; | 11539 }; |
| 10774 var resp = convert.JSON.encode(buildOperation()); | 11540 var resp = convert.JSON.encode(buildOperation()); |
| 10775 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11541 return new async.Future.value(stringResponse(200, h, resp)); |
| 10776 }), true); | 11542 }), true); |
| 10777 res.delete(arg_project, arg_zone, arg_targetInstance).then(unittest.expect
Async(((api.Operation response) { | 11543 res.delete(arg_project, arg_zone, arg_targetInstance).then(unittest.expect
Async(((api.Operation response) { |
| 10778 checkOperation(response); | 11544 checkOperation(response); |
| 10779 }))); | 11545 }))); |
| 10780 }); | 11546 }); |
| 10781 | 11547 |
| 10782 unittest.test("method--get", () { | 11548 unittest.test("method--get", () { |
| 10783 | 11549 |
| 10784 var mock = new common_test.HttpServerMock(); | 11550 var mock = new HttpServerMock(); |
| 10785 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; | 11551 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; |
| 10786 var arg_project = "foo"; | 11552 var arg_project = "foo"; |
| 10787 var arg_zone = "foo"; | 11553 var arg_zone = "foo"; |
| 10788 var arg_targetInstance = "foo"; | 11554 var arg_targetInstance = "foo"; |
| 10789 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11555 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10790 var path = (req.url).path; | 11556 var path = (req.url).path; |
| 10791 var pathOffset = 0; | 11557 var pathOffset = 0; |
| 10792 var index; | 11558 var index; |
| 10793 var subPart; | 11559 var subPart; |
| 10794 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11560 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 10809 var keyvalue = part.split("="); | 11575 var keyvalue = part.split("="); |
| 10810 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11576 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10811 } | 11577 } |
| 10812 } | 11578 } |
| 10813 | 11579 |
| 10814 | 11580 |
| 10815 var h = { | 11581 var h = { |
| 10816 "content-type" : "application/json; charset=utf-8", | 11582 "content-type" : "application/json; charset=utf-8", |
| 10817 }; | 11583 }; |
| 10818 var resp = convert.JSON.encode(buildTargetInstance()); | 11584 var resp = convert.JSON.encode(buildTargetInstance()); |
| 10819 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11585 return new async.Future.value(stringResponse(200, h, resp)); |
| 10820 }), true); | 11586 }), true); |
| 10821 res.get(arg_project, arg_zone, arg_targetInstance).then(unittest.expectAsy
nc(((api.TargetInstance response) { | 11587 res.get(arg_project, arg_zone, arg_targetInstance).then(unittest.expectAsy
nc(((api.TargetInstance response) { |
| 10822 checkTargetInstance(response); | 11588 checkTargetInstance(response); |
| 10823 }))); | 11589 }))); |
| 10824 }); | 11590 }); |
| 10825 | 11591 |
| 10826 unittest.test("method--insert", () { | 11592 unittest.test("method--insert", () { |
| 10827 | 11593 |
| 10828 var mock = new common_test.HttpServerMock(); | 11594 var mock = new HttpServerMock(); |
| 10829 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; | 11595 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; |
| 10830 var arg_request = buildTargetInstance(); | 11596 var arg_request = buildTargetInstance(); |
| 10831 var arg_project = "foo"; | 11597 var arg_project = "foo"; |
| 10832 var arg_zone = "foo"; | 11598 var arg_zone = "foo"; |
| 10833 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11599 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10834 var obj = new api.TargetInstance.fromJson(json); | 11600 var obj = new api.TargetInstance.fromJson(json); |
| 10835 checkTargetInstance(obj); | 11601 checkTargetInstance(obj); |
| 10836 | 11602 |
| 10837 var path = (req.url).path; | 11603 var path = (req.url).path; |
| 10838 var pathOffset = 0; | 11604 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 10856 var keyvalue = part.split("="); | 11622 var keyvalue = part.split("="); |
| 10857 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11623 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10858 } | 11624 } |
| 10859 } | 11625 } |
| 10860 | 11626 |
| 10861 | 11627 |
| 10862 var h = { | 11628 var h = { |
| 10863 "content-type" : "application/json; charset=utf-8", | 11629 "content-type" : "application/json; charset=utf-8", |
| 10864 }; | 11630 }; |
| 10865 var resp = convert.JSON.encode(buildOperation()); | 11631 var resp = convert.JSON.encode(buildOperation()); |
| 10866 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11632 return new async.Future.value(stringResponse(200, h, resp)); |
| 10867 }), true); | 11633 }), true); |
| 10868 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { | 11634 res.insert(arg_request, arg_project, arg_zone).then(unittest.expectAsync((
(api.Operation response) { |
| 10869 checkOperation(response); | 11635 checkOperation(response); |
| 10870 }))); | 11636 }))); |
| 10871 }); | 11637 }); |
| 10872 | 11638 |
| 10873 unittest.test("method--list", () { | 11639 unittest.test("method--list", () { |
| 10874 | 11640 |
| 10875 var mock = new common_test.HttpServerMock(); | 11641 var mock = new HttpServerMock(); |
| 10876 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; | 11642 api.TargetInstancesResourceApi res = new api.ComputeApi(mock).targetInstan
ces; |
| 10877 var arg_project = "foo"; | 11643 var arg_project = "foo"; |
| 10878 var arg_zone = "foo"; | 11644 var arg_zone = "foo"; |
| 10879 var arg_filter = "foo"; | 11645 var arg_filter = "foo"; |
| 10880 var arg_maxResults = 42; | 11646 var arg_maxResults = 42; |
| 10881 var arg_pageToken = "foo"; | 11647 var arg_pageToken = "foo"; |
| 10882 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11648 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10883 var path = (req.url).path; | 11649 var path = (req.url).path; |
| 10884 var pathOffset = 0; | 11650 var pathOffset = 0; |
| 10885 var index; | 11651 var index; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 10905 } | 11671 } |
| 10906 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 11672 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 10907 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 11673 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 10908 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 11674 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 10909 | 11675 |
| 10910 | 11676 |
| 10911 var h = { | 11677 var h = { |
| 10912 "content-type" : "application/json; charset=utf-8", | 11678 "content-type" : "application/json; charset=utf-8", |
| 10913 }; | 11679 }; |
| 10914 var resp = convert.JSON.encode(buildTargetInstanceList()); | 11680 var resp = convert.JSON.encode(buildTargetInstanceList()); |
| 10915 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11681 return new async.Future.value(stringResponse(200, h, resp)); |
| 10916 }), true); | 11682 }), true); |
| 10917 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceLi
st response) { | 11683 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetInstanceLi
st response) { |
| 10918 checkTargetInstanceList(response); | 11684 checkTargetInstanceList(response); |
| 10919 }))); | 11685 }))); |
| 10920 }); | 11686 }); |
| 10921 | 11687 |
| 10922 }); | 11688 }); |
| 10923 | 11689 |
| 10924 | 11690 |
| 10925 unittest.group("resource-TargetPoolsResourceApi", () { | 11691 unittest.group("resource-TargetPoolsResourceApi", () { |
| 10926 unittest.test("method--addHealthCheck", () { | 11692 unittest.test("method--addHealthCheck", () { |
| 10927 | 11693 |
| 10928 var mock = new common_test.HttpServerMock(); | 11694 var mock = new HttpServerMock(); |
| 10929 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 11695 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 10930 var arg_request = buildTargetPoolsAddHealthCheckRequest(); | 11696 var arg_request = buildTargetPoolsAddHealthCheckRequest(); |
| 10931 var arg_project = "foo"; | 11697 var arg_project = "foo"; |
| 10932 var arg_region = "foo"; | 11698 var arg_region = "foo"; |
| 10933 var arg_targetPool = "foo"; | 11699 var arg_targetPool = "foo"; |
| 10934 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11700 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10935 var obj = new api.TargetPoolsAddHealthCheckRequest.fromJson(json); | 11701 var obj = new api.TargetPoolsAddHealthCheckRequest.fromJson(json); |
| 10936 checkTargetPoolsAddHealthCheckRequest(obj); | 11702 checkTargetPoolsAddHealthCheckRequest(obj); |
| 10937 | 11703 |
| 10938 var path = (req.url).path; | 11704 var path = (req.url).path; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 10957 var keyvalue = part.split("="); | 11723 var keyvalue = part.split("="); |
| 10958 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11724 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 10959 } | 11725 } |
| 10960 } | 11726 } |
| 10961 | 11727 |
| 10962 | 11728 |
| 10963 var h = { | 11729 var h = { |
| 10964 "content-type" : "application/json; charset=utf-8", | 11730 "content-type" : "application/json; charset=utf-8", |
| 10965 }; | 11731 }; |
| 10966 var resp = convert.JSON.encode(buildOperation()); | 11732 var resp = convert.JSON.encode(buildOperation()); |
| 10967 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11733 return new async.Future.value(stringResponse(200, h, resp)); |
| 10968 }), true); | 11734 }), true); |
| 10969 res.addHealthCheck(arg_request, arg_project, arg_region, arg_targetPool).t
hen(unittest.expectAsync(((api.Operation response) { | 11735 res.addHealthCheck(arg_request, arg_project, arg_region, arg_targetPool).t
hen(unittest.expectAsync(((api.Operation response) { |
| 10970 checkOperation(response); | 11736 checkOperation(response); |
| 10971 }))); | 11737 }))); |
| 10972 }); | 11738 }); |
| 10973 | 11739 |
| 10974 unittest.test("method--addInstance", () { | 11740 unittest.test("method--addInstance", () { |
| 10975 | 11741 |
| 10976 var mock = new common_test.HttpServerMock(); | 11742 var mock = new HttpServerMock(); |
| 10977 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 11743 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 10978 var arg_request = buildTargetPoolsAddInstanceRequest(); | 11744 var arg_request = buildTargetPoolsAddInstanceRequest(); |
| 10979 var arg_project = "foo"; | 11745 var arg_project = "foo"; |
| 10980 var arg_region = "foo"; | 11746 var arg_region = "foo"; |
| 10981 var arg_targetPool = "foo"; | 11747 var arg_targetPool = "foo"; |
| 10982 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11748 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 10983 var obj = new api.TargetPoolsAddInstanceRequest.fromJson(json); | 11749 var obj = new api.TargetPoolsAddInstanceRequest.fromJson(json); |
| 10984 checkTargetPoolsAddInstanceRequest(obj); | 11750 checkTargetPoolsAddInstanceRequest(obj); |
| 10985 | 11751 |
| 10986 var path = (req.url).path; | 11752 var path = (req.url).path; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 11005 var keyvalue = part.split("="); | 11771 var keyvalue = part.split("="); |
| 11006 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11772 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11007 } | 11773 } |
| 11008 } | 11774 } |
| 11009 | 11775 |
| 11010 | 11776 |
| 11011 var h = { | 11777 var h = { |
| 11012 "content-type" : "application/json; charset=utf-8", | 11778 "content-type" : "application/json; charset=utf-8", |
| 11013 }; | 11779 }; |
| 11014 var resp = convert.JSON.encode(buildOperation()); | 11780 var resp = convert.JSON.encode(buildOperation()); |
| 11015 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11781 return new async.Future.value(stringResponse(200, h, resp)); |
| 11016 }), true); | 11782 }), true); |
| 11017 res.addInstance(arg_request, arg_project, arg_region, arg_targetPool).then
(unittest.expectAsync(((api.Operation response) { | 11783 res.addInstance(arg_request, arg_project, arg_region, arg_targetPool).then
(unittest.expectAsync(((api.Operation response) { |
| 11018 checkOperation(response); | 11784 checkOperation(response); |
| 11019 }))); | 11785 }))); |
| 11020 }); | 11786 }); |
| 11021 | 11787 |
| 11022 unittest.test("method--aggregatedList", () { | 11788 unittest.test("method--aggregatedList", () { |
| 11023 | 11789 |
| 11024 var mock = new common_test.HttpServerMock(); | 11790 var mock = new HttpServerMock(); |
| 11025 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 11791 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 11026 var arg_project = "foo"; | 11792 var arg_project = "foo"; |
| 11027 var arg_filter = "foo"; | 11793 var arg_filter = "foo"; |
| 11028 var arg_maxResults = 42; | 11794 var arg_maxResults = 42; |
| 11029 var arg_pageToken = "foo"; | 11795 var arg_pageToken = "foo"; |
| 11030 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11796 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11031 var path = (req.url).path; | 11797 var path = (req.url).path; |
| 11032 var pathOffset = 0; | 11798 var pathOffset = 0; |
| 11033 var index; | 11799 var index; |
| 11034 var subPart; | 11800 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 11053 } | 11819 } |
| 11054 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 11820 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 11055 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 11821 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 11056 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 11822 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 11057 | 11823 |
| 11058 | 11824 |
| 11059 var h = { | 11825 var h = { |
| 11060 "content-type" : "application/json; charset=utf-8", | 11826 "content-type" : "application/json; charset=utf-8", |
| 11061 }; | 11827 }; |
| 11062 var resp = convert.JSON.encode(buildTargetPoolAggregatedList()); | 11828 var resp = convert.JSON.encode(buildTargetPoolAggregatedList()); |
| 11063 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11829 return new async.Future.value(stringResponse(200, h, resp)); |
| 11064 }), true); | 11830 }), true); |
| 11065 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolAggreg
atedList response) { | 11831 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolAggreg
atedList response) { |
| 11066 checkTargetPoolAggregatedList(response); | 11832 checkTargetPoolAggregatedList(response); |
| 11067 }))); | 11833 }))); |
| 11068 }); | 11834 }); |
| 11069 | 11835 |
| 11070 unittest.test("method--delete", () { | 11836 unittest.test("method--delete", () { |
| 11071 | 11837 |
| 11072 var mock = new common_test.HttpServerMock(); | 11838 var mock = new HttpServerMock(); |
| 11073 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 11839 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 11074 var arg_project = "foo"; | 11840 var arg_project = "foo"; |
| 11075 var arg_region = "foo"; | 11841 var arg_region = "foo"; |
| 11076 var arg_targetPool = "foo"; | 11842 var arg_targetPool = "foo"; |
| 11077 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11843 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11078 var path = (req.url).path; | 11844 var path = (req.url).path; |
| 11079 var pathOffset = 0; | 11845 var pathOffset = 0; |
| 11080 var index; | 11846 var index; |
| 11081 var subPart; | 11847 var subPart; |
| 11082 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11848 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 11097 var keyvalue = part.split("="); | 11863 var keyvalue = part.split("="); |
| 11098 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11864 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11099 } | 11865 } |
| 11100 } | 11866 } |
| 11101 | 11867 |
| 11102 | 11868 |
| 11103 var h = { | 11869 var h = { |
| 11104 "content-type" : "application/json; charset=utf-8", | 11870 "content-type" : "application/json; charset=utf-8", |
| 11105 }; | 11871 }; |
| 11106 var resp = convert.JSON.encode(buildOperation()); | 11872 var resp = convert.JSON.encode(buildOperation()); |
| 11107 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11873 return new async.Future.value(stringResponse(200, h, resp)); |
| 11108 }), true); | 11874 }), true); |
| 11109 res.delete(arg_project, arg_region, arg_targetPool).then(unittest.expectAs
ync(((api.Operation response) { | 11875 res.delete(arg_project, arg_region, arg_targetPool).then(unittest.expectAs
ync(((api.Operation response) { |
| 11110 checkOperation(response); | 11876 checkOperation(response); |
| 11111 }))); | 11877 }))); |
| 11112 }); | 11878 }); |
| 11113 | 11879 |
| 11114 unittest.test("method--get", () { | 11880 unittest.test("method--get", () { |
| 11115 | 11881 |
| 11116 var mock = new common_test.HttpServerMock(); | 11882 var mock = new HttpServerMock(); |
| 11117 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 11883 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 11118 var arg_project = "foo"; | 11884 var arg_project = "foo"; |
| 11119 var arg_region = "foo"; | 11885 var arg_region = "foo"; |
| 11120 var arg_targetPool = "foo"; | 11886 var arg_targetPool = "foo"; |
| 11121 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11887 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11122 var path = (req.url).path; | 11888 var path = (req.url).path; |
| 11123 var pathOffset = 0; | 11889 var pathOffset = 0; |
| 11124 var index; | 11890 var index; |
| 11125 var subPart; | 11891 var subPart; |
| 11126 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 11892 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 11141 var keyvalue = part.split("="); | 11907 var keyvalue = part.split("="); |
| 11142 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11908 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11143 } | 11909 } |
| 11144 } | 11910 } |
| 11145 | 11911 |
| 11146 | 11912 |
| 11147 var h = { | 11913 var h = { |
| 11148 "content-type" : "application/json; charset=utf-8", | 11914 "content-type" : "application/json; charset=utf-8", |
| 11149 }; | 11915 }; |
| 11150 var resp = convert.JSON.encode(buildTargetPool()); | 11916 var resp = convert.JSON.encode(buildTargetPool()); |
| 11151 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11917 return new async.Future.value(stringResponse(200, h, resp)); |
| 11152 }), true); | 11918 }), true); |
| 11153 res.get(arg_project, arg_region, arg_targetPool).then(unittest.expectAsync
(((api.TargetPool response) { | 11919 res.get(arg_project, arg_region, arg_targetPool).then(unittest.expectAsync
(((api.TargetPool response) { |
| 11154 checkTargetPool(response); | 11920 checkTargetPool(response); |
| 11155 }))); | 11921 }))); |
| 11156 }); | 11922 }); |
| 11157 | 11923 |
| 11158 unittest.test("method--getHealth", () { | 11924 unittest.test("method--getHealth", () { |
| 11159 | 11925 |
| 11160 var mock = new common_test.HttpServerMock(); | 11926 var mock = new HttpServerMock(); |
| 11161 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 11927 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 11162 var arg_request = buildInstanceReference(); | 11928 var arg_request = buildInstanceReference(); |
| 11163 var arg_project = "foo"; | 11929 var arg_project = "foo"; |
| 11164 var arg_region = "foo"; | 11930 var arg_region = "foo"; |
| 11165 var arg_targetPool = "foo"; | 11931 var arg_targetPool = "foo"; |
| 11166 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11932 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11167 var obj = new api.InstanceReference.fromJson(json); | 11933 var obj = new api.InstanceReference.fromJson(json); |
| 11168 checkInstanceReference(obj); | 11934 checkInstanceReference(obj); |
| 11169 | 11935 |
| 11170 var path = (req.url).path; | 11936 var path = (req.url).path; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 11189 var keyvalue = part.split("="); | 11955 var keyvalue = part.split("="); |
| 11190 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 11956 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11191 } | 11957 } |
| 11192 } | 11958 } |
| 11193 | 11959 |
| 11194 | 11960 |
| 11195 var h = { | 11961 var h = { |
| 11196 "content-type" : "application/json; charset=utf-8", | 11962 "content-type" : "application/json; charset=utf-8", |
| 11197 }; | 11963 }; |
| 11198 var resp = convert.JSON.encode(buildTargetPoolInstanceHealth()); | 11964 var resp = convert.JSON.encode(buildTargetPoolInstanceHealth()); |
| 11199 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 11965 return new async.Future.value(stringResponse(200, h, resp)); |
| 11200 }), true); | 11966 }), true); |
| 11201 res.getHealth(arg_request, arg_project, arg_region, arg_targetPool).then(u
nittest.expectAsync(((api.TargetPoolInstanceHealth response) { | 11967 res.getHealth(arg_request, arg_project, arg_region, arg_targetPool).then(u
nittest.expectAsync(((api.TargetPoolInstanceHealth response) { |
| 11202 checkTargetPoolInstanceHealth(response); | 11968 checkTargetPoolInstanceHealth(response); |
| 11203 }))); | 11969 }))); |
| 11204 }); | 11970 }); |
| 11205 | 11971 |
| 11206 unittest.test("method--insert", () { | 11972 unittest.test("method--insert", () { |
| 11207 | 11973 |
| 11208 var mock = new common_test.HttpServerMock(); | 11974 var mock = new HttpServerMock(); |
| 11209 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 11975 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 11210 var arg_request = buildTargetPool(); | 11976 var arg_request = buildTargetPool(); |
| 11211 var arg_project = "foo"; | 11977 var arg_project = "foo"; |
| 11212 var arg_region = "foo"; | 11978 var arg_region = "foo"; |
| 11213 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 11979 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11214 var obj = new api.TargetPool.fromJson(json); | 11980 var obj = new api.TargetPool.fromJson(json); |
| 11215 checkTargetPool(obj); | 11981 checkTargetPool(obj); |
| 11216 | 11982 |
| 11217 var path = (req.url).path; | 11983 var path = (req.url).path; |
| 11218 var pathOffset = 0; | 11984 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 11236 var keyvalue = part.split("="); | 12002 var keyvalue = part.split("="); |
| 11237 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12003 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11238 } | 12004 } |
| 11239 } | 12005 } |
| 11240 | 12006 |
| 11241 | 12007 |
| 11242 var h = { | 12008 var h = { |
| 11243 "content-type" : "application/json; charset=utf-8", | 12009 "content-type" : "application/json; charset=utf-8", |
| 11244 }; | 12010 }; |
| 11245 var resp = convert.JSON.encode(buildOperation()); | 12011 var resp = convert.JSON.encode(buildOperation()); |
| 11246 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 12012 return new async.Future.value(stringResponse(200, h, resp)); |
| 11247 }), true); | 12013 }), true); |
| 11248 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { | 12014 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { |
| 11249 checkOperation(response); | 12015 checkOperation(response); |
| 11250 }))); | 12016 }))); |
| 11251 }); | 12017 }); |
| 11252 | 12018 |
| 11253 unittest.test("method--list", () { | 12019 unittest.test("method--list", () { |
| 11254 | 12020 |
| 11255 var mock = new common_test.HttpServerMock(); | 12021 var mock = new HttpServerMock(); |
| 11256 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 12022 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 11257 var arg_project = "foo"; | 12023 var arg_project = "foo"; |
| 11258 var arg_region = "foo"; | 12024 var arg_region = "foo"; |
| 11259 var arg_filter = "foo"; | 12025 var arg_filter = "foo"; |
| 11260 var arg_maxResults = 42; | 12026 var arg_maxResults = 42; |
| 11261 var arg_pageToken = "foo"; | 12027 var arg_pageToken = "foo"; |
| 11262 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12028 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11263 var path = (req.url).path; | 12029 var path = (req.url).path; |
| 11264 var pathOffset = 0; | 12030 var pathOffset = 0; |
| 11265 var index; | 12031 var index; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 11285 } | 12051 } |
| 11286 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 12052 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 11287 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 12053 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 11288 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 12054 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 11289 | 12055 |
| 11290 | 12056 |
| 11291 var h = { | 12057 var h = { |
| 11292 "content-type" : "application/json; charset=utf-8", | 12058 "content-type" : "application/json; charset=utf-8", |
| 11293 }; | 12059 }; |
| 11294 var resp = convert.JSON.encode(buildTargetPoolList()); | 12060 var resp = convert.JSON.encode(buildTargetPoolList()); |
| 11295 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 12061 return new async.Future.value(stringResponse(200, h, resp)); |
| 11296 }), true); | 12062 }), true); |
| 11297 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolList
response) { | 12063 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetPoolList
response) { |
| 11298 checkTargetPoolList(response); | 12064 checkTargetPoolList(response); |
| 11299 }))); | 12065 }))); |
| 11300 }); | 12066 }); |
| 11301 | 12067 |
| 11302 unittest.test("method--removeHealthCheck", () { | 12068 unittest.test("method--removeHealthCheck", () { |
| 11303 | 12069 |
| 11304 var mock = new common_test.HttpServerMock(); | 12070 var mock = new HttpServerMock(); |
| 11305 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 12071 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 11306 var arg_request = buildTargetPoolsRemoveHealthCheckRequest(); | 12072 var arg_request = buildTargetPoolsRemoveHealthCheckRequest(); |
| 11307 var arg_project = "foo"; | 12073 var arg_project = "foo"; |
| 11308 var arg_region = "foo"; | 12074 var arg_region = "foo"; |
| 11309 var arg_targetPool = "foo"; | 12075 var arg_targetPool = "foo"; |
| 11310 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12076 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11311 var obj = new api.TargetPoolsRemoveHealthCheckRequest.fromJson(json); | 12077 var obj = new api.TargetPoolsRemoveHealthCheckRequest.fromJson(json); |
| 11312 checkTargetPoolsRemoveHealthCheckRequest(obj); | 12078 checkTargetPoolsRemoveHealthCheckRequest(obj); |
| 11313 | 12079 |
| 11314 var path = (req.url).path; | 12080 var path = (req.url).path; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 11333 var keyvalue = part.split("="); | 12099 var keyvalue = part.split("="); |
| 11334 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12100 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11335 } | 12101 } |
| 11336 } | 12102 } |
| 11337 | 12103 |
| 11338 | 12104 |
| 11339 var h = { | 12105 var h = { |
| 11340 "content-type" : "application/json; charset=utf-8", | 12106 "content-type" : "application/json; charset=utf-8", |
| 11341 }; | 12107 }; |
| 11342 var resp = convert.JSON.encode(buildOperation()); | 12108 var resp = convert.JSON.encode(buildOperation()); |
| 11343 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 12109 return new async.Future.value(stringResponse(200, h, resp)); |
| 11344 }), true); | 12110 }), true); |
| 11345 res.removeHealthCheck(arg_request, arg_project, arg_region, arg_targetPool
).then(unittest.expectAsync(((api.Operation response) { | 12111 res.removeHealthCheck(arg_request, arg_project, arg_region, arg_targetPool
).then(unittest.expectAsync(((api.Operation response) { |
| 11346 checkOperation(response); | 12112 checkOperation(response); |
| 11347 }))); | 12113 }))); |
| 11348 }); | 12114 }); |
| 11349 | 12115 |
| 11350 unittest.test("method--removeInstance", () { | 12116 unittest.test("method--removeInstance", () { |
| 11351 | 12117 |
| 11352 var mock = new common_test.HttpServerMock(); | 12118 var mock = new HttpServerMock(); |
| 11353 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 12119 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 11354 var arg_request = buildTargetPoolsRemoveInstanceRequest(); | 12120 var arg_request = buildTargetPoolsRemoveInstanceRequest(); |
| 11355 var arg_project = "foo"; | 12121 var arg_project = "foo"; |
| 11356 var arg_region = "foo"; | 12122 var arg_region = "foo"; |
| 11357 var arg_targetPool = "foo"; | 12123 var arg_targetPool = "foo"; |
| 11358 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12124 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11359 var obj = new api.TargetPoolsRemoveInstanceRequest.fromJson(json); | 12125 var obj = new api.TargetPoolsRemoveInstanceRequest.fromJson(json); |
| 11360 checkTargetPoolsRemoveInstanceRequest(obj); | 12126 checkTargetPoolsRemoveInstanceRequest(obj); |
| 11361 | 12127 |
| 11362 var path = (req.url).path; | 12128 var path = (req.url).path; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 11381 var keyvalue = part.split("="); | 12147 var keyvalue = part.split("="); |
| 11382 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12148 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11383 } | 12149 } |
| 11384 } | 12150 } |
| 11385 | 12151 |
| 11386 | 12152 |
| 11387 var h = { | 12153 var h = { |
| 11388 "content-type" : "application/json; charset=utf-8", | 12154 "content-type" : "application/json; charset=utf-8", |
| 11389 }; | 12155 }; |
| 11390 var resp = convert.JSON.encode(buildOperation()); | 12156 var resp = convert.JSON.encode(buildOperation()); |
| 11391 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 12157 return new async.Future.value(stringResponse(200, h, resp)); |
| 11392 }), true); | 12158 }), true); |
| 11393 res.removeInstance(arg_request, arg_project, arg_region, arg_targetPool).t
hen(unittest.expectAsync(((api.Operation response) { | 12159 res.removeInstance(arg_request, arg_project, arg_region, arg_targetPool).t
hen(unittest.expectAsync(((api.Operation response) { |
| 11394 checkOperation(response); | 12160 checkOperation(response); |
| 11395 }))); | 12161 }))); |
| 11396 }); | 12162 }); |
| 11397 | 12163 |
| 11398 unittest.test("method--setBackup", () { | 12164 unittest.test("method--setBackup", () { |
| 11399 | 12165 |
| 11400 var mock = new common_test.HttpServerMock(); | 12166 var mock = new HttpServerMock(); |
| 11401 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; | 12167 api.TargetPoolsResourceApi res = new api.ComputeApi(mock).targetPools; |
| 11402 var arg_request = buildTargetReference(); | 12168 var arg_request = buildTargetReference(); |
| 11403 var arg_project = "foo"; | 12169 var arg_project = "foo"; |
| 11404 var arg_region = "foo"; | 12170 var arg_region = "foo"; |
| 11405 var arg_targetPool = "foo"; | 12171 var arg_targetPool = "foo"; |
| 11406 var arg_failoverRatio = 42.0; | 12172 var arg_failoverRatio = 42.0; |
| 11407 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12173 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11408 var obj = new api.TargetReference.fromJson(json); | 12174 var obj = new api.TargetReference.fromJson(json); |
| 11409 checkTargetReference(obj); | 12175 checkTargetReference(obj); |
| 11410 | 12176 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 11431 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12197 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11432 } | 12198 } |
| 11433 } | 12199 } |
| 11434 unittest.expect(core.num.parse(queryMap["failoverRatio"].first), unittes
t.equals(arg_failoverRatio)); | 12200 unittest.expect(core.num.parse(queryMap["failoverRatio"].first), unittes
t.equals(arg_failoverRatio)); |
| 11435 | 12201 |
| 11436 | 12202 |
| 11437 var h = { | 12203 var h = { |
| 11438 "content-type" : "application/json; charset=utf-8", | 12204 "content-type" : "application/json; charset=utf-8", |
| 11439 }; | 12205 }; |
| 11440 var resp = convert.JSON.encode(buildOperation()); | 12206 var resp = convert.JSON.encode(buildOperation()); |
| 11441 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 12207 return new async.Future.value(stringResponse(200, h, resp)); |
| 11442 }), true); | 12208 }), true); |
| 11443 res.setBackup(arg_request, arg_project, arg_region, arg_targetPool, failov
erRatio: arg_failoverRatio).then(unittest.expectAsync(((api.Operation response)
{ | 12209 res.setBackup(arg_request, arg_project, arg_region, arg_targetPool, failov
erRatio: arg_failoverRatio).then(unittest.expectAsync(((api.Operation response)
{ |
| 11444 checkOperation(response); | 12210 checkOperation(response); |
| 11445 }))); | 12211 }))); |
| 11446 }); | 12212 }); |
| 11447 | 12213 |
| 11448 }); | 12214 }); |
| 11449 | 12215 |
| 11450 | 12216 |
| 12217 unittest.group("resource-TargetVpnGatewaysResourceApi", () { |
| 12218 unittest.test("method--aggregatedList", () { |
| 12219 |
| 12220 var mock = new HttpServerMock(); |
| 12221 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; |
| 12222 var arg_project = "foo"; |
| 12223 var arg_filter = "foo"; |
| 12224 var arg_maxResults = 42; |
| 12225 var arg_pageToken = "foo"; |
| 12226 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12227 var path = (req.url).path; |
| 12228 var pathOffset = 0; |
| 12229 var index; |
| 12230 var subPart; |
| 12231 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12232 pathOffset += 1; |
| 12233 |
| 12234 var query = (req.url).query; |
| 12235 var queryOffset = 0; |
| 12236 var queryMap = {}; |
| 12237 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12238 parseBool(n) { |
| 12239 if (n == "true") return true; |
| 12240 if (n == "false") return false; |
| 12241 if (n == null) return null; |
| 12242 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12243 } |
| 12244 if (query.length > 0) { |
| 12245 for (var part in query.split("&")) { |
| 12246 var keyvalue = part.split("="); |
| 12247 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12248 } |
| 12249 } |
| 12250 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 12251 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 12252 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 12253 |
| 12254 |
| 12255 var h = { |
| 12256 "content-type" : "application/json; charset=utf-8", |
| 12257 }; |
| 12258 var resp = convert.JSON.encode(buildTargetVpnGatewayAggregatedList()); |
| 12259 return new async.Future.value(stringResponse(200, h, resp)); |
| 12260 }), true); |
| 12261 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetVpnGateway
AggregatedList response) { |
| 12262 checkTargetVpnGatewayAggregatedList(response); |
| 12263 }))); |
| 12264 }); |
| 12265 |
| 12266 unittest.test("method--delete", () { |
| 12267 |
| 12268 var mock = new HttpServerMock(); |
| 12269 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; |
| 12270 var arg_project = "foo"; |
| 12271 var arg_region = "foo"; |
| 12272 var arg_targetVpnGateway = "foo"; |
| 12273 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12274 var path = (req.url).path; |
| 12275 var pathOffset = 0; |
| 12276 var index; |
| 12277 var subPart; |
| 12278 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12279 pathOffset += 1; |
| 12280 |
| 12281 var query = (req.url).query; |
| 12282 var queryOffset = 0; |
| 12283 var queryMap = {}; |
| 12284 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12285 parseBool(n) { |
| 12286 if (n == "true") return true; |
| 12287 if (n == "false") return false; |
| 12288 if (n == null) return null; |
| 12289 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12290 } |
| 12291 if (query.length > 0) { |
| 12292 for (var part in query.split("&")) { |
| 12293 var keyvalue = part.split("="); |
| 12294 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12295 } |
| 12296 } |
| 12297 |
| 12298 |
| 12299 var h = { |
| 12300 "content-type" : "application/json; charset=utf-8", |
| 12301 }; |
| 12302 var resp = convert.JSON.encode(buildOperation()); |
| 12303 return new async.Future.value(stringResponse(200, h, resp)); |
| 12304 }), true); |
| 12305 res.delete(arg_project, arg_region, arg_targetVpnGateway).then(unittest.ex
pectAsync(((api.Operation response) { |
| 12306 checkOperation(response); |
| 12307 }))); |
| 12308 }); |
| 12309 |
| 12310 unittest.test("method--get", () { |
| 12311 |
| 12312 var mock = new HttpServerMock(); |
| 12313 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; |
| 12314 var arg_project = "foo"; |
| 12315 var arg_region = "foo"; |
| 12316 var arg_targetVpnGateway = "foo"; |
| 12317 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12318 var path = (req.url).path; |
| 12319 var pathOffset = 0; |
| 12320 var index; |
| 12321 var subPart; |
| 12322 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12323 pathOffset += 1; |
| 12324 |
| 12325 var query = (req.url).query; |
| 12326 var queryOffset = 0; |
| 12327 var queryMap = {}; |
| 12328 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12329 parseBool(n) { |
| 12330 if (n == "true") return true; |
| 12331 if (n == "false") return false; |
| 12332 if (n == null) return null; |
| 12333 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12334 } |
| 12335 if (query.length > 0) { |
| 12336 for (var part in query.split("&")) { |
| 12337 var keyvalue = part.split("="); |
| 12338 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12339 } |
| 12340 } |
| 12341 |
| 12342 |
| 12343 var h = { |
| 12344 "content-type" : "application/json; charset=utf-8", |
| 12345 }; |
| 12346 var resp = convert.JSON.encode(buildTargetVpnGateway()); |
| 12347 return new async.Future.value(stringResponse(200, h, resp)); |
| 12348 }), true); |
| 12349 res.get(arg_project, arg_region, arg_targetVpnGateway).then(unittest.expec
tAsync(((api.TargetVpnGateway response) { |
| 12350 checkTargetVpnGateway(response); |
| 12351 }))); |
| 12352 }); |
| 12353 |
| 12354 unittest.test("method--insert", () { |
| 12355 |
| 12356 var mock = new HttpServerMock(); |
| 12357 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; |
| 12358 var arg_request = buildTargetVpnGateway(); |
| 12359 var arg_project = "foo"; |
| 12360 var arg_region = "foo"; |
| 12361 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12362 var obj = new api.TargetVpnGateway.fromJson(json); |
| 12363 checkTargetVpnGateway(obj); |
| 12364 |
| 12365 var path = (req.url).path; |
| 12366 var pathOffset = 0; |
| 12367 var index; |
| 12368 var subPart; |
| 12369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12370 pathOffset += 1; |
| 12371 |
| 12372 var query = (req.url).query; |
| 12373 var queryOffset = 0; |
| 12374 var queryMap = {}; |
| 12375 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12376 parseBool(n) { |
| 12377 if (n == "true") return true; |
| 12378 if (n == "false") return false; |
| 12379 if (n == null) return null; |
| 12380 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12381 } |
| 12382 if (query.length > 0) { |
| 12383 for (var part in query.split("&")) { |
| 12384 var keyvalue = part.split("="); |
| 12385 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12386 } |
| 12387 } |
| 12388 |
| 12389 |
| 12390 var h = { |
| 12391 "content-type" : "application/json; charset=utf-8", |
| 12392 }; |
| 12393 var resp = convert.JSON.encode(buildOperation()); |
| 12394 return new async.Future.value(stringResponse(200, h, resp)); |
| 12395 }), true); |
| 12396 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { |
| 12397 checkOperation(response); |
| 12398 }))); |
| 12399 }); |
| 12400 |
| 12401 unittest.test("method--list", () { |
| 12402 |
| 12403 var mock = new HttpServerMock(); |
| 12404 api.TargetVpnGatewaysResourceApi res = new api.ComputeApi(mock).targetVpnG
ateways; |
| 12405 var arg_project = "foo"; |
| 12406 var arg_region = "foo"; |
| 12407 var arg_filter = "foo"; |
| 12408 var arg_maxResults = 42; |
| 12409 var arg_pageToken = "foo"; |
| 12410 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12411 var path = (req.url).path; |
| 12412 var pathOffset = 0; |
| 12413 var index; |
| 12414 var subPart; |
| 12415 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12416 pathOffset += 1; |
| 12417 |
| 12418 var query = (req.url).query; |
| 12419 var queryOffset = 0; |
| 12420 var queryMap = {}; |
| 12421 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12422 parseBool(n) { |
| 12423 if (n == "true") return true; |
| 12424 if (n == "false") return false; |
| 12425 if (n == null) return null; |
| 12426 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12427 } |
| 12428 if (query.length > 0) { |
| 12429 for (var part in query.split("&")) { |
| 12430 var keyvalue = part.split("="); |
| 12431 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12432 } |
| 12433 } |
| 12434 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 12435 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 12436 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 12437 |
| 12438 |
| 12439 var h = { |
| 12440 "content-type" : "application/json; charset=utf-8", |
| 12441 }; |
| 12442 var resp = convert.JSON.encode(buildTargetVpnGatewayList()); |
| 12443 return new async.Future.value(stringResponse(200, h, resp)); |
| 12444 }), true); |
| 12445 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.TargetVpnGatew
ayList response) { |
| 12446 checkTargetVpnGatewayList(response); |
| 12447 }))); |
| 12448 }); |
| 12449 |
| 12450 }); |
| 12451 |
| 12452 |
| 11451 unittest.group("resource-UrlMapsResourceApi", () { | 12453 unittest.group("resource-UrlMapsResourceApi", () { |
| 11452 unittest.test("method--delete", () { | 12454 unittest.test("method--delete", () { |
| 11453 | 12455 |
| 11454 var mock = new common_test.HttpServerMock(); | 12456 var mock = new HttpServerMock(); |
| 11455 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 12457 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 11456 var arg_project = "foo"; | 12458 var arg_project = "foo"; |
| 11457 var arg_urlMap = "foo"; | 12459 var arg_urlMap = "foo"; |
| 11458 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12460 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11459 var path = (req.url).path; | 12461 var path = (req.url).path; |
| 11460 var pathOffset = 0; | 12462 var pathOffset = 0; |
| 11461 var index; | 12463 var index; |
| 11462 var subPart; | 12464 var subPart; |
| 11463 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12465 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11464 pathOffset += 1; | 12466 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 11478 var keyvalue = part.split("="); | 12480 var keyvalue = part.split("="); |
| 11479 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12481 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11480 } | 12482 } |
| 11481 } | 12483 } |
| 11482 | 12484 |
| 11483 | 12485 |
| 11484 var h = { | 12486 var h = { |
| 11485 "content-type" : "application/json; charset=utf-8", | 12487 "content-type" : "application/json; charset=utf-8", |
| 11486 }; | 12488 }; |
| 11487 var resp = convert.JSON.encode(buildOperation()); | 12489 var resp = convert.JSON.encode(buildOperation()); |
| 11488 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 12490 return new async.Future.value(stringResponse(200, h, resp)); |
| 11489 }), true); | 12491 }), true); |
| 11490 res.delete(arg_project, arg_urlMap).then(unittest.expectAsync(((api.Operat
ion response) { | 12492 res.delete(arg_project, arg_urlMap).then(unittest.expectAsync(((api.Operat
ion response) { |
| 11491 checkOperation(response); | 12493 checkOperation(response); |
| 11492 }))); | 12494 }))); |
| 11493 }); | 12495 }); |
| 11494 | 12496 |
| 11495 unittest.test("method--get", () { | 12497 unittest.test("method--get", () { |
| 11496 | 12498 |
| 11497 var mock = new common_test.HttpServerMock(); | 12499 var mock = new HttpServerMock(); |
| 11498 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 12500 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 11499 var arg_project = "foo"; | 12501 var arg_project = "foo"; |
| 11500 var arg_urlMap = "foo"; | 12502 var arg_urlMap = "foo"; |
| 11501 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12503 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11502 var path = (req.url).path; | 12504 var path = (req.url).path; |
| 11503 var pathOffset = 0; | 12505 var pathOffset = 0; |
| 11504 var index; | 12506 var index; |
| 11505 var subPart; | 12507 var subPart; |
| 11506 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 12508 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11507 pathOffset += 1; | 12509 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 11521 var keyvalue = part.split("="); | 12523 var keyvalue = part.split("="); |
| 11522 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12524 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11523 } | 12525 } |
| 11524 } | 12526 } |
| 11525 | 12527 |
| 11526 | 12528 |
| 11527 var h = { | 12529 var h = { |
| 11528 "content-type" : "application/json; charset=utf-8", | 12530 "content-type" : "application/json; charset=utf-8", |
| 11529 }; | 12531 }; |
| 11530 var resp = convert.JSON.encode(buildUrlMap()); | 12532 var resp = convert.JSON.encode(buildUrlMap()); |
| 11531 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 12533 return new async.Future.value(stringResponse(200, h, resp)); |
| 11532 }), true); | 12534 }), true); |
| 11533 res.get(arg_project, arg_urlMap).then(unittest.expectAsync(((api.UrlMap re
sponse) { | 12535 res.get(arg_project, arg_urlMap).then(unittest.expectAsync(((api.UrlMap re
sponse) { |
| 11534 checkUrlMap(response); | 12536 checkUrlMap(response); |
| 11535 }))); | 12537 }))); |
| 11536 }); | 12538 }); |
| 11537 | 12539 |
| 11538 unittest.test("method--insert", () { | 12540 unittest.test("method--insert", () { |
| 11539 | 12541 |
| 11540 var mock = new common_test.HttpServerMock(); | 12542 var mock = new HttpServerMock(); |
| 11541 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 12543 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 11542 var arg_request = buildUrlMap(); | 12544 var arg_request = buildUrlMap(); |
| 11543 var arg_project = "foo"; | 12545 var arg_project = "foo"; |
| 11544 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12546 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11545 var obj = new api.UrlMap.fromJson(json); | 12547 var obj = new api.UrlMap.fromJson(json); |
| 11546 checkUrlMap(obj); | 12548 checkUrlMap(obj); |
| 11547 | 12549 |
| 11548 var path = (req.url).path; | 12550 var path = (req.url).path; |
| 11549 var pathOffset = 0; | 12551 var pathOffset = 0; |
| 11550 var index; | 12552 var index; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 11567 var keyvalue = part.split("="); | 12569 var keyvalue = part.split("="); |
| 11568 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12570 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11569 } | 12571 } |
| 11570 } | 12572 } |
| 11571 | 12573 |
| 11572 | 12574 |
| 11573 var h = { | 12575 var h = { |
| 11574 "content-type" : "application/json; charset=utf-8", | 12576 "content-type" : "application/json; charset=utf-8", |
| 11575 }; | 12577 }; |
| 11576 var resp = convert.JSON.encode(buildOperation()); | 12578 var resp = convert.JSON.encode(buildOperation()); |
| 11577 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 12579 return new async.Future.value(stringResponse(200, h, resp)); |
| 11578 }), true); | 12580 }), true); |
| 11579 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 12581 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
| 11580 checkOperation(response); | 12582 checkOperation(response); |
| 11581 }))); | 12583 }))); |
| 11582 }); | 12584 }); |
| 11583 | 12585 |
| 11584 unittest.test("method--list", () { | 12586 unittest.test("method--list", () { |
| 11585 | 12587 |
| 11586 var mock = new common_test.HttpServerMock(); | 12588 var mock = new HttpServerMock(); |
| 11587 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 12589 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 11588 var arg_project = "foo"; | 12590 var arg_project = "foo"; |
| 11589 var arg_filter = "foo"; | 12591 var arg_filter = "foo"; |
| 11590 var arg_maxResults = 42; | 12592 var arg_maxResults = 42; |
| 11591 var arg_pageToken = "foo"; | 12593 var arg_pageToken = "foo"; |
| 11592 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12594 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11593 var path = (req.url).path; | 12595 var path = (req.url).path; |
| 11594 var pathOffset = 0; | 12596 var pathOffset = 0; |
| 11595 var index; | 12597 var index; |
| 11596 var subPart; | 12598 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 11615 } | 12617 } |
| 11616 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 12618 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 11617 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 12619 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 11618 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 12620 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 11619 | 12621 |
| 11620 | 12622 |
| 11621 var h = { | 12623 var h = { |
| 11622 "content-type" : "application/json; charset=utf-8", | 12624 "content-type" : "application/json; charset=utf-8", |
| 11623 }; | 12625 }; |
| 11624 var resp = convert.JSON.encode(buildUrlMapList()); | 12626 var resp = convert.JSON.encode(buildUrlMapList()); |
| 11625 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 12627 return new async.Future.value(stringResponse(200, h, resp)); |
| 11626 }), true); | 12628 }), true); |
| 11627 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.UrlMapList response) { | 12629 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.UrlMapList response) { |
| 11628 checkUrlMapList(response); | 12630 checkUrlMapList(response); |
| 11629 }))); | 12631 }))); |
| 11630 }); | 12632 }); |
| 11631 | 12633 |
| 11632 unittest.test("method--patch", () { | 12634 unittest.test("method--patch", () { |
| 11633 | 12635 |
| 11634 var mock = new common_test.HttpServerMock(); | 12636 var mock = new HttpServerMock(); |
| 11635 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 12637 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 11636 var arg_request = buildUrlMap(); | 12638 var arg_request = buildUrlMap(); |
| 11637 var arg_project = "foo"; | 12639 var arg_project = "foo"; |
| 11638 var arg_urlMap = "foo"; | 12640 var arg_urlMap = "foo"; |
| 11639 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12641 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11640 var obj = new api.UrlMap.fromJson(json); | 12642 var obj = new api.UrlMap.fromJson(json); |
| 11641 checkUrlMap(obj); | 12643 checkUrlMap(obj); |
| 11642 | 12644 |
| 11643 var path = (req.url).path; | 12645 var path = (req.url).path; |
| 11644 var pathOffset = 0; | 12646 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 11662 var keyvalue = part.split("="); | 12664 var keyvalue = part.split("="); |
| 11663 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12665 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11664 } | 12666 } |
| 11665 } | 12667 } |
| 11666 | 12668 |
| 11667 | 12669 |
| 11668 var h = { | 12670 var h = { |
| 11669 "content-type" : "application/json; charset=utf-8", | 12671 "content-type" : "application/json; charset=utf-8", |
| 11670 }; | 12672 }; |
| 11671 var resp = convert.JSON.encode(buildOperation()); | 12673 var resp = convert.JSON.encode(buildOperation()); |
| 11672 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 12674 return new async.Future.value(stringResponse(200, h, resp)); |
| 11673 }), true); | 12675 }), true); |
| 11674 res.patch(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync(
((api.Operation response) { | 12676 res.patch(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync(
((api.Operation response) { |
| 11675 checkOperation(response); | 12677 checkOperation(response); |
| 11676 }))); | 12678 }))); |
| 11677 }); | 12679 }); |
| 11678 | 12680 |
| 11679 unittest.test("method--update", () { | 12681 unittest.test("method--update", () { |
| 11680 | 12682 |
| 11681 var mock = new common_test.HttpServerMock(); | 12683 var mock = new HttpServerMock(); |
| 11682 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 12684 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 11683 var arg_request = buildUrlMap(); | 12685 var arg_request = buildUrlMap(); |
| 11684 var arg_project = "foo"; | 12686 var arg_project = "foo"; |
| 11685 var arg_urlMap = "foo"; | 12687 var arg_urlMap = "foo"; |
| 11686 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12688 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11687 var obj = new api.UrlMap.fromJson(json); | 12689 var obj = new api.UrlMap.fromJson(json); |
| 11688 checkUrlMap(obj); | 12690 checkUrlMap(obj); |
| 11689 | 12691 |
| 11690 var path = (req.url).path; | 12692 var path = (req.url).path; |
| 11691 var pathOffset = 0; | 12693 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 11709 var keyvalue = part.split("="); | 12711 var keyvalue = part.split("="); |
| 11710 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12712 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11711 } | 12713 } |
| 11712 } | 12714 } |
| 11713 | 12715 |
| 11714 | 12716 |
| 11715 var h = { | 12717 var h = { |
| 11716 "content-type" : "application/json; charset=utf-8", | 12718 "content-type" : "application/json; charset=utf-8", |
| 11717 }; | 12719 }; |
| 11718 var resp = convert.JSON.encode(buildOperation()); | 12720 var resp = convert.JSON.encode(buildOperation()); |
| 11719 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 12721 return new async.Future.value(stringResponse(200, h, resp)); |
| 11720 }), true); | 12722 }), true); |
| 11721 res.update(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync
(((api.Operation response) { | 12723 res.update(arg_request, arg_project, arg_urlMap).then(unittest.expectAsync
(((api.Operation response) { |
| 11722 checkOperation(response); | 12724 checkOperation(response); |
| 11723 }))); | 12725 }))); |
| 11724 }); | 12726 }); |
| 11725 | 12727 |
| 11726 unittest.test("method--validate", () { | 12728 unittest.test("method--validate", () { |
| 11727 | 12729 |
| 11728 var mock = new common_test.HttpServerMock(); | 12730 var mock = new HttpServerMock(); |
| 11729 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; | 12731 api.UrlMapsResourceApi res = new api.ComputeApi(mock).urlMaps; |
| 11730 var arg_request = buildUrlMapsValidateRequest(); | 12732 var arg_request = buildUrlMapsValidateRequest(); |
| 11731 var arg_project = "foo"; | 12733 var arg_project = "foo"; |
| 11732 var arg_urlMap = "foo"; | 12734 var arg_urlMap = "foo"; |
| 11733 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 12735 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11734 var obj = new api.UrlMapsValidateRequest.fromJson(json); | 12736 var obj = new api.UrlMapsValidateRequest.fromJson(json); |
| 11735 checkUrlMapsValidateRequest(obj); | 12737 checkUrlMapsValidateRequest(obj); |
| 11736 | 12738 |
| 11737 var path = (req.url).path; | 12739 var path = (req.url).path; |
| 11738 var pathOffset = 0; | 12740 var pathOffset = 0; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 11756 var keyvalue = part.split("="); | 12758 var keyvalue = part.split("="); |
| 11757 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 12759 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11758 } | 12760 } |
| 11759 } | 12761 } |
| 11760 | 12762 |
| 11761 | 12763 |
| 11762 var h = { | 12764 var h = { |
| 11763 "content-type" : "application/json; charset=utf-8", | 12765 "content-type" : "application/json; charset=utf-8", |
| 11764 }; | 12766 }; |
| 11765 var resp = convert.JSON.encode(buildUrlMapsValidateResponse()); | 12767 var resp = convert.JSON.encode(buildUrlMapsValidateResponse()); |
| 11766 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 12768 return new async.Future.value(stringResponse(200, h, resp)); |
| 11767 }), true); | 12769 }), true); |
| 11768 res.validate(arg_request, arg_project, arg_urlMap).then(unittest.expectAsy
nc(((api.UrlMapsValidateResponse response) { | 12770 res.validate(arg_request, arg_project, arg_urlMap).then(unittest.expectAsy
nc(((api.UrlMapsValidateResponse response) { |
| 11769 checkUrlMapsValidateResponse(response); | 12771 checkUrlMapsValidateResponse(response); |
| 11770 }))); | 12772 }))); |
| 11771 }); | 12773 }); |
| 11772 | 12774 |
| 11773 }); | 12775 }); |
| 11774 | 12776 |
| 11775 | 12777 |
| 12778 unittest.group("resource-VpnTunnelsResourceApi", () { |
| 12779 unittest.test("method--aggregatedList", () { |
| 12780 |
| 12781 var mock = new HttpServerMock(); |
| 12782 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; |
| 12783 var arg_project = "foo"; |
| 12784 var arg_filter = "foo"; |
| 12785 var arg_maxResults = 42; |
| 12786 var arg_pageToken = "foo"; |
| 12787 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12788 var path = (req.url).path; |
| 12789 var pathOffset = 0; |
| 12790 var index; |
| 12791 var subPart; |
| 12792 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12793 pathOffset += 1; |
| 12794 |
| 12795 var query = (req.url).query; |
| 12796 var queryOffset = 0; |
| 12797 var queryMap = {}; |
| 12798 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12799 parseBool(n) { |
| 12800 if (n == "true") return true; |
| 12801 if (n == "false") return false; |
| 12802 if (n == null) return null; |
| 12803 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12804 } |
| 12805 if (query.length > 0) { |
| 12806 for (var part in query.split("&")) { |
| 12807 var keyvalue = part.split("="); |
| 12808 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12809 } |
| 12810 } |
| 12811 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 12812 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 12813 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 12814 |
| 12815 |
| 12816 var h = { |
| 12817 "content-type" : "application/json; charset=utf-8", |
| 12818 }; |
| 12819 var resp = convert.JSON.encode(buildVpnTunnelAggregatedList()); |
| 12820 return new async.Future.value(stringResponse(200, h, resp)); |
| 12821 }), true); |
| 12822 res.aggregatedList(arg_project, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.VpnTunnelAggrega
tedList response) { |
| 12823 checkVpnTunnelAggregatedList(response); |
| 12824 }))); |
| 12825 }); |
| 12826 |
| 12827 unittest.test("method--delete", () { |
| 12828 |
| 12829 var mock = new HttpServerMock(); |
| 12830 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; |
| 12831 var arg_project = "foo"; |
| 12832 var arg_region = "foo"; |
| 12833 var arg_vpnTunnel = "foo"; |
| 12834 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12835 var path = (req.url).path; |
| 12836 var pathOffset = 0; |
| 12837 var index; |
| 12838 var subPart; |
| 12839 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12840 pathOffset += 1; |
| 12841 |
| 12842 var query = (req.url).query; |
| 12843 var queryOffset = 0; |
| 12844 var queryMap = {}; |
| 12845 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12846 parseBool(n) { |
| 12847 if (n == "true") return true; |
| 12848 if (n == "false") return false; |
| 12849 if (n == null) return null; |
| 12850 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12851 } |
| 12852 if (query.length > 0) { |
| 12853 for (var part in query.split("&")) { |
| 12854 var keyvalue = part.split("="); |
| 12855 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12856 } |
| 12857 } |
| 12858 |
| 12859 |
| 12860 var h = { |
| 12861 "content-type" : "application/json; charset=utf-8", |
| 12862 }; |
| 12863 var resp = convert.JSON.encode(buildOperation()); |
| 12864 return new async.Future.value(stringResponse(200, h, resp)); |
| 12865 }), true); |
| 12866 res.delete(arg_project, arg_region, arg_vpnTunnel).then(unittest.expectAsy
nc(((api.Operation response) { |
| 12867 checkOperation(response); |
| 12868 }))); |
| 12869 }); |
| 12870 |
| 12871 unittest.test("method--get", () { |
| 12872 |
| 12873 var mock = new HttpServerMock(); |
| 12874 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; |
| 12875 var arg_project = "foo"; |
| 12876 var arg_region = "foo"; |
| 12877 var arg_vpnTunnel = "foo"; |
| 12878 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12879 var path = (req.url).path; |
| 12880 var pathOffset = 0; |
| 12881 var index; |
| 12882 var subPart; |
| 12883 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12884 pathOffset += 1; |
| 12885 |
| 12886 var query = (req.url).query; |
| 12887 var queryOffset = 0; |
| 12888 var queryMap = {}; |
| 12889 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12890 parseBool(n) { |
| 12891 if (n == "true") return true; |
| 12892 if (n == "false") return false; |
| 12893 if (n == null) return null; |
| 12894 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12895 } |
| 12896 if (query.length > 0) { |
| 12897 for (var part in query.split("&")) { |
| 12898 var keyvalue = part.split("="); |
| 12899 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12900 } |
| 12901 } |
| 12902 |
| 12903 |
| 12904 var h = { |
| 12905 "content-type" : "application/json; charset=utf-8", |
| 12906 }; |
| 12907 var resp = convert.JSON.encode(buildVpnTunnel()); |
| 12908 return new async.Future.value(stringResponse(200, h, resp)); |
| 12909 }), true); |
| 12910 res.get(arg_project, arg_region, arg_vpnTunnel).then(unittest.expectAsync(
((api.VpnTunnel response) { |
| 12911 checkVpnTunnel(response); |
| 12912 }))); |
| 12913 }); |
| 12914 |
| 12915 unittest.test("method--insert", () { |
| 12916 |
| 12917 var mock = new HttpServerMock(); |
| 12918 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; |
| 12919 var arg_request = buildVpnTunnel(); |
| 12920 var arg_project = "foo"; |
| 12921 var arg_region = "foo"; |
| 12922 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12923 var obj = new api.VpnTunnel.fromJson(json); |
| 12924 checkVpnTunnel(obj); |
| 12925 |
| 12926 var path = (req.url).path; |
| 12927 var pathOffset = 0; |
| 12928 var index; |
| 12929 var subPart; |
| 12930 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12931 pathOffset += 1; |
| 12932 |
| 12933 var query = (req.url).query; |
| 12934 var queryOffset = 0; |
| 12935 var queryMap = {}; |
| 12936 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12937 parseBool(n) { |
| 12938 if (n == "true") return true; |
| 12939 if (n == "false") return false; |
| 12940 if (n == null) return null; |
| 12941 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12942 } |
| 12943 if (query.length > 0) { |
| 12944 for (var part in query.split("&")) { |
| 12945 var keyvalue = part.split("="); |
| 12946 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12947 } |
| 12948 } |
| 12949 |
| 12950 |
| 12951 var h = { |
| 12952 "content-type" : "application/json; charset=utf-8", |
| 12953 }; |
| 12954 var resp = convert.JSON.encode(buildOperation()); |
| 12955 return new async.Future.value(stringResponse(200, h, resp)); |
| 12956 }), true); |
| 12957 res.insert(arg_request, arg_project, arg_region).then(unittest.expectAsync
(((api.Operation response) { |
| 12958 checkOperation(response); |
| 12959 }))); |
| 12960 }); |
| 12961 |
| 12962 unittest.test("method--list", () { |
| 12963 |
| 12964 var mock = new HttpServerMock(); |
| 12965 api.VpnTunnelsResourceApi res = new api.ComputeApi(mock).vpnTunnels; |
| 12966 var arg_project = "foo"; |
| 12967 var arg_region = "foo"; |
| 12968 var arg_filter = "foo"; |
| 12969 var arg_maxResults = 42; |
| 12970 var arg_pageToken = "foo"; |
| 12971 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 12972 var path = (req.url).path; |
| 12973 var pathOffset = 0; |
| 12974 var index; |
| 12975 var subPart; |
| 12976 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 12977 pathOffset += 1; |
| 12978 |
| 12979 var query = (req.url).query; |
| 12980 var queryOffset = 0; |
| 12981 var queryMap = {}; |
| 12982 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 12983 parseBool(n) { |
| 12984 if (n == "true") return true; |
| 12985 if (n == "false") return false; |
| 12986 if (n == null) return null; |
| 12987 throw new core.ArgumentError("Invalid boolean: $n"); |
| 12988 } |
| 12989 if (query.length > 0) { |
| 12990 for (var part in query.split("&")) { |
| 12991 var keyvalue = part.split("="); |
| 12992 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 12993 } |
| 12994 } |
| 12995 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 12996 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 12997 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 12998 |
| 12999 |
| 13000 var h = { |
| 13001 "content-type" : "application/json; charset=utf-8", |
| 13002 }; |
| 13003 var resp = convert.JSON.encode(buildVpnTunnelList()); |
| 13004 return new async.Future.value(stringResponse(200, h, resp)); |
| 13005 }), true); |
| 13006 res.list(arg_project, arg_region, filter: arg_filter, maxResults: arg_maxR
esults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.VpnTunnelList
response) { |
| 13007 checkVpnTunnelList(response); |
| 13008 }))); |
| 13009 }); |
| 13010 |
| 13011 }); |
| 13012 |
| 13013 |
| 11776 unittest.group("resource-ZoneOperationsResourceApi", () { | 13014 unittest.group("resource-ZoneOperationsResourceApi", () { |
| 11777 unittest.test("method--delete", () { | 13015 unittest.test("method--delete", () { |
| 11778 | 13016 |
| 11779 var mock = new common_test.HttpServerMock(); | 13017 var mock = new HttpServerMock(); |
| 11780 api.ZoneOperationsResourceApi res = new api.ComputeApi(mock).zoneOperation
s; | 13018 api.ZoneOperationsResourceApi res = new api.ComputeApi(mock).zoneOperation
s; |
| 11781 var arg_project = "foo"; | 13019 var arg_project = "foo"; |
| 11782 var arg_zone = "foo"; | 13020 var arg_zone = "foo"; |
| 11783 var arg_operation = "foo"; | 13021 var arg_operation = "foo"; |
| 11784 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13022 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11785 var path = (req.url).path; | 13023 var path = (req.url).path; |
| 11786 var pathOffset = 0; | 13024 var pathOffset = 0; |
| 11787 var index; | 13025 var index; |
| 11788 var subPart; | 13026 var subPart; |
| 11789 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13027 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 11804 var keyvalue = part.split("="); | 13042 var keyvalue = part.split("="); |
| 11805 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13043 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11806 } | 13044 } |
| 11807 } | 13045 } |
| 11808 | 13046 |
| 11809 | 13047 |
| 11810 var h = { | 13048 var h = { |
| 11811 "content-type" : "application/json; charset=utf-8", | 13049 "content-type" : "application/json; charset=utf-8", |
| 11812 }; | 13050 }; |
| 11813 var resp = ""; | 13051 var resp = ""; |
| 11814 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 13052 return new async.Future.value(stringResponse(200, h, resp)); |
| 11815 }), true); | 13053 }), true); |
| 11816 res.delete(arg_project, arg_zone, arg_operation).then(unittest.expectAsync
((_) {})); | 13054 res.delete(arg_project, arg_zone, arg_operation).then(unittest.expectAsync
((_) {})); |
| 11817 }); | 13055 }); |
| 11818 | 13056 |
| 11819 unittest.test("method--get", () { | 13057 unittest.test("method--get", () { |
| 11820 | 13058 |
| 11821 var mock = new common_test.HttpServerMock(); | 13059 var mock = new HttpServerMock(); |
| 11822 api.ZoneOperationsResourceApi res = new api.ComputeApi(mock).zoneOperation
s; | 13060 api.ZoneOperationsResourceApi res = new api.ComputeApi(mock).zoneOperation
s; |
| 11823 var arg_project = "foo"; | 13061 var arg_project = "foo"; |
| 11824 var arg_zone = "foo"; | 13062 var arg_zone = "foo"; |
| 11825 var arg_operation = "foo"; | 13063 var arg_operation = "foo"; |
| 11826 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13064 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11827 var path = (req.url).path; | 13065 var path = (req.url).path; |
| 11828 var pathOffset = 0; | 13066 var pathOffset = 0; |
| 11829 var index; | 13067 var index; |
| 11830 var subPart; | 13068 var subPart; |
| 11831 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13069 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 11846 var keyvalue = part.split("="); | 13084 var keyvalue = part.split("="); |
| 11847 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13085 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11848 } | 13086 } |
| 11849 } | 13087 } |
| 11850 | 13088 |
| 11851 | 13089 |
| 11852 var h = { | 13090 var h = { |
| 11853 "content-type" : "application/json; charset=utf-8", | 13091 "content-type" : "application/json; charset=utf-8", |
| 11854 }; | 13092 }; |
| 11855 var resp = convert.JSON.encode(buildOperation()); | 13093 var resp = convert.JSON.encode(buildOperation()); |
| 11856 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 13094 return new async.Future.value(stringResponse(200, h, resp)); |
| 11857 }), true); | 13095 }), true); |
| 11858 res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync(((
api.Operation response) { | 13096 res.get(arg_project, arg_zone, arg_operation).then(unittest.expectAsync(((
api.Operation response) { |
| 11859 checkOperation(response); | 13097 checkOperation(response); |
| 11860 }))); | 13098 }))); |
| 11861 }); | 13099 }); |
| 11862 | 13100 |
| 11863 unittest.test("method--list", () { | 13101 unittest.test("method--list", () { |
| 11864 | 13102 |
| 11865 var mock = new common_test.HttpServerMock(); | 13103 var mock = new HttpServerMock(); |
| 11866 api.ZoneOperationsResourceApi res = new api.ComputeApi(mock).zoneOperation
s; | 13104 api.ZoneOperationsResourceApi res = new api.ComputeApi(mock).zoneOperation
s; |
| 11867 var arg_project = "foo"; | 13105 var arg_project = "foo"; |
| 11868 var arg_zone = "foo"; | 13106 var arg_zone = "foo"; |
| 11869 var arg_filter = "foo"; | 13107 var arg_filter = "foo"; |
| 11870 var arg_maxResults = 42; | 13108 var arg_maxResults = 42; |
| 11871 var arg_pageToken = "foo"; | 13109 var arg_pageToken = "foo"; |
| 11872 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13110 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11873 var path = (req.url).path; | 13111 var path = (req.url).path; |
| 11874 var pathOffset = 0; | 13112 var pathOffset = 0; |
| 11875 var index; | 13113 var index; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 11895 } | 13133 } |
| 11896 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 13134 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 11897 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 13135 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 11898 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 13136 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 11899 | 13137 |
| 11900 | 13138 |
| 11901 var h = { | 13139 var h = { |
| 11902 "content-type" : "application/json; charset=utf-8", | 13140 "content-type" : "application/json; charset=utf-8", |
| 11903 }; | 13141 }; |
| 11904 var resp = convert.JSON.encode(buildOperationList()); | 13142 var resp = convert.JSON.encode(buildOperationList()); |
| 11905 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 13143 return new async.Future.value(stringResponse(200, h, resp)); |
| 11906 }), true); | 13144 }), true); |
| 11907 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList re
sponse) { | 13145 res.list(arg_project, arg_zone, filter: arg_filter, maxResults: arg_maxRes
ults, pageToken: arg_pageToken).then(unittest.expectAsync(((api.OperationList re
sponse) { |
| 11908 checkOperationList(response); | 13146 checkOperationList(response); |
| 11909 }))); | 13147 }))); |
| 11910 }); | 13148 }); |
| 11911 | 13149 |
| 11912 }); | 13150 }); |
| 11913 | 13151 |
| 11914 | 13152 |
| 11915 unittest.group("resource-ZonesResourceApi", () { | 13153 unittest.group("resource-ZonesResourceApi", () { |
| 11916 unittest.test("method--get", () { | 13154 unittest.test("method--get", () { |
| 11917 | 13155 |
| 11918 var mock = new common_test.HttpServerMock(); | 13156 var mock = new HttpServerMock(); |
| 11919 api.ZonesResourceApi res = new api.ComputeApi(mock).zones; | 13157 api.ZonesResourceApi res = new api.ComputeApi(mock).zones; |
| 11920 var arg_project = "foo"; | 13158 var arg_project = "foo"; |
| 11921 var arg_zone = "foo"; | 13159 var arg_zone = "foo"; |
| 11922 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13160 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11923 var path = (req.url).path; | 13161 var path = (req.url).path; |
| 11924 var pathOffset = 0; | 13162 var pathOffset = 0; |
| 11925 var index; | 13163 var index; |
| 11926 var subPart; | 13164 var subPart; |
| 11927 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 13165 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 11928 pathOffset += 1; | 13166 pathOffset += 1; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 11942 var keyvalue = part.split("="); | 13180 var keyvalue = part.split("="); |
| 11943 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 13181 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 11944 } | 13182 } |
| 11945 } | 13183 } |
| 11946 | 13184 |
| 11947 | 13185 |
| 11948 var h = { | 13186 var h = { |
| 11949 "content-type" : "application/json; charset=utf-8", | 13187 "content-type" : "application/json; charset=utf-8", |
| 11950 }; | 13188 }; |
| 11951 var resp = convert.JSON.encode(buildZone()); | 13189 var resp = convert.JSON.encode(buildZone()); |
| 11952 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 13190 return new async.Future.value(stringResponse(200, h, resp)); |
| 11953 }), true); | 13191 }), true); |
| 11954 res.get(arg_project, arg_zone).then(unittest.expectAsync(((api.Zone respon
se) { | 13192 res.get(arg_project, arg_zone).then(unittest.expectAsync(((api.Zone respon
se) { |
| 11955 checkZone(response); | 13193 checkZone(response); |
| 11956 }))); | 13194 }))); |
| 11957 }); | 13195 }); |
| 11958 | 13196 |
| 11959 unittest.test("method--list", () { | 13197 unittest.test("method--list", () { |
| 11960 | 13198 |
| 11961 var mock = new common_test.HttpServerMock(); | 13199 var mock = new HttpServerMock(); |
| 11962 api.ZonesResourceApi res = new api.ComputeApi(mock).zones; | 13200 api.ZonesResourceApi res = new api.ComputeApi(mock).zones; |
| 11963 var arg_project = "foo"; | 13201 var arg_project = "foo"; |
| 11964 var arg_filter = "foo"; | 13202 var arg_filter = "foo"; |
| 11965 var arg_maxResults = 42; | 13203 var arg_maxResults = 42; |
| 11966 var arg_pageToken = "foo"; | 13204 var arg_pageToken = "foo"; |
| 11967 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 13205 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 11968 var path = (req.url).path; | 13206 var path = (req.url).path; |
| 11969 var pathOffset = 0; | 13207 var pathOffset = 0; |
| 11970 var index; | 13208 var index; |
| 11971 var subPart; | 13209 var subPart; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 11990 } | 13228 } |
| 11991 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 13229 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 11992 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 13230 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 11993 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 13231 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 11994 | 13232 |
| 11995 | 13233 |
| 11996 var h = { | 13234 var h = { |
| 11997 "content-type" : "application/json; charset=utf-8", | 13235 "content-type" : "application/json; charset=utf-8", |
| 11998 }; | 13236 }; |
| 11999 var resp = convert.JSON.encode(buildZoneList()); | 13237 var resp = convert.JSON.encode(buildZoneList()); |
| 12000 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 13238 return new async.Future.value(stringResponse(200, h, resp)); |
| 12001 }), true); | 13239 }), true); |
| 12002 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.ZoneList response) { | 13240 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.ZoneList response) { |
| 12003 checkZoneList(response); | 13241 checkZoneList(response); |
| 12004 }))); | 13242 }))); |
| 12005 }); | 13243 }); |
| 12006 | 13244 |
| 12007 }); | 13245 }); |
| 12008 | 13246 |
| 12009 | 13247 |
| 12010 } | 13248 } |
| 12011 | 13249 |
| OLD | NEW |