OLD | NEW |
1 library googleapis_beta.appengine.v1beta4.test; | 1 library googleapis_beta.appengine.v1beta4.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; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 90 } |
91 | 91 |
92 checkApiEndpointHandler(api.ApiEndpointHandler o) { | 92 checkApiEndpointHandler(api.ApiEndpointHandler o) { |
93 buildCounterApiEndpointHandler++; | 93 buildCounterApiEndpointHandler++; |
94 if (buildCounterApiEndpointHandler < 3) { | 94 if (buildCounterApiEndpointHandler < 3) { |
95 unittest.expect(o.scriptPath, unittest.equals('foo')); | 95 unittest.expect(o.scriptPath, unittest.equals('foo')); |
96 } | 96 } |
97 buildCounterApiEndpointHandler--; | 97 buildCounterApiEndpointHandler--; |
98 } | 98 } |
99 | 99 |
100 buildUnnamed2257() { | 100 buildUnnamed2677() { |
101 var o = new core.List<api.UrlDispatchRule>(); | 101 var o = new core.List<api.UrlDispatchRule>(); |
102 o.add(buildUrlDispatchRule()); | 102 o.add(buildUrlDispatchRule()); |
103 o.add(buildUrlDispatchRule()); | 103 o.add(buildUrlDispatchRule()); |
104 return o; | 104 return o; |
105 } | 105 } |
106 | 106 |
107 checkUnnamed2257(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed2677(core.List<api.UrlDispatchRule> o) { |
108 unittest.expect(o, unittest.hasLength(2)); | 108 unittest.expect(o, unittest.hasLength(2)); |
109 checkUrlDispatchRule(o[0]); | 109 checkUrlDispatchRule(o[0]); |
110 checkUrlDispatchRule(o[1]); | 110 checkUrlDispatchRule(o[1]); |
111 } | 111 } |
112 | 112 |
113 core.int buildCounterApplication = 0; | 113 core.int buildCounterApplication = 0; |
114 buildApplication() { | 114 buildApplication() { |
115 var o = new api.Application(); | 115 var o = new api.Application(); |
116 buildCounterApplication++; | 116 buildCounterApplication++; |
117 if (buildCounterApplication < 3) { | 117 if (buildCounterApplication < 3) { |
118 o.codeBucket = "foo"; | 118 o.codeBucket = "foo"; |
119 o.dispatchRules = buildUnnamed2257(); | 119 o.dispatchRules = buildUnnamed2677(); |
120 o.id = "foo"; | 120 o.id = "foo"; |
121 o.location = "foo"; | 121 o.location = "foo"; |
122 o.name = "foo"; | 122 o.name = "foo"; |
123 } | 123 } |
124 buildCounterApplication--; | 124 buildCounterApplication--; |
125 return o; | 125 return o; |
126 } | 126 } |
127 | 127 |
128 checkApplication(api.Application o) { | 128 checkApplication(api.Application o) { |
129 buildCounterApplication++; | 129 buildCounterApplication++; |
130 if (buildCounterApplication < 3) { | 130 if (buildCounterApplication < 3) { |
131 unittest.expect(o.codeBucket, unittest.equals('foo')); | 131 unittest.expect(o.codeBucket, unittest.equals('foo')); |
132 checkUnnamed2257(o.dispatchRules); | 132 checkUnnamed2677(o.dispatchRules); |
133 unittest.expect(o.id, unittest.equals('foo')); | 133 unittest.expect(o.id, unittest.equals('foo')); |
134 unittest.expect(o.location, unittest.equals('foo')); | 134 unittest.expect(o.location, unittest.equals('foo')); |
135 unittest.expect(o.name, unittest.equals('foo')); | 135 unittest.expect(o.name, unittest.equals('foo')); |
136 } | 136 } |
137 buildCounterApplication--; | 137 buildCounterApplication--; |
138 } | 138 } |
139 | 139 |
140 core.int buildCounterAutomaticScaling = 0; | 140 core.int buildCounterAutomaticScaling = 0; |
141 buildAutomaticScaling() { | 141 buildAutomaticScaling() { |
142 var o = new api.AutomaticScaling(); | 142 var o = new api.AutomaticScaling(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 | 228 |
229 checkCpuUtilization(api.CpuUtilization o) { | 229 checkCpuUtilization(api.CpuUtilization o) { |
230 buildCounterCpuUtilization++; | 230 buildCounterCpuUtilization++; |
231 if (buildCounterCpuUtilization < 3) { | 231 if (buildCounterCpuUtilization < 3) { |
232 unittest.expect(o.aggregationWindowLength, unittest.equals('foo')); | 232 unittest.expect(o.aggregationWindowLength, unittest.equals('foo')); |
233 unittest.expect(o.targetUtilization, unittest.equals(42.0)); | 233 unittest.expect(o.targetUtilization, unittest.equals(42.0)); |
234 } | 234 } |
235 buildCounterCpuUtilization--; | 235 buildCounterCpuUtilization--; |
236 } | 236 } |
237 | 237 |
238 buildUnnamed2258() { | 238 buildUnnamed2678() { |
239 var o = new core.Map<core.String, api.FileInfo>(); | 239 var o = new core.Map<core.String, api.FileInfo>(); |
240 o["x"] = buildFileInfo(); | 240 o["x"] = buildFileInfo(); |
241 o["y"] = buildFileInfo(); | 241 o["y"] = buildFileInfo(); |
242 return o; | 242 return o; |
243 } | 243 } |
244 | 244 |
245 checkUnnamed2258(core.Map<core.String, api.FileInfo> o) { | 245 checkUnnamed2678(core.Map<core.String, api.FileInfo> o) { |
246 unittest.expect(o, unittest.hasLength(2)); | 246 unittest.expect(o, unittest.hasLength(2)); |
247 checkFileInfo(o["x"]); | 247 checkFileInfo(o["x"]); |
248 checkFileInfo(o["y"]); | 248 checkFileInfo(o["y"]); |
249 } | 249 } |
250 | 250 |
251 buildUnnamed2259() { | 251 buildUnnamed2679() { |
252 var o = new core.List<api.SourceReference>(); | 252 var o = new core.List<api.SourceReference>(); |
253 o.add(buildSourceReference()); | 253 o.add(buildSourceReference()); |
254 o.add(buildSourceReference()); | 254 o.add(buildSourceReference()); |
255 return o; | 255 return o; |
256 } | 256 } |
257 | 257 |
258 checkUnnamed2259(core.List<api.SourceReference> o) { | 258 checkUnnamed2679(core.List<api.SourceReference> o) { |
259 unittest.expect(o, unittest.hasLength(2)); | 259 unittest.expect(o, unittest.hasLength(2)); |
260 checkSourceReference(o[0]); | 260 checkSourceReference(o[0]); |
261 checkSourceReference(o[1]); | 261 checkSourceReference(o[1]); |
262 } | 262 } |
263 | 263 |
264 core.int buildCounterDeployment = 0; | 264 core.int buildCounterDeployment = 0; |
265 buildDeployment() { | 265 buildDeployment() { |
266 var o = new api.Deployment(); | 266 var o = new api.Deployment(); |
267 buildCounterDeployment++; | 267 buildCounterDeployment++; |
268 if (buildCounterDeployment < 3) { | 268 if (buildCounterDeployment < 3) { |
269 o.container = buildContainerInfo(); | 269 o.container = buildContainerInfo(); |
270 o.files = buildUnnamed2258(); | 270 o.files = buildUnnamed2678(); |
271 o.sourceReferences = buildUnnamed2259(); | 271 o.sourceReferences = buildUnnamed2679(); |
272 } | 272 } |
273 buildCounterDeployment--; | 273 buildCounterDeployment--; |
274 return o; | 274 return o; |
275 } | 275 } |
276 | 276 |
277 checkDeployment(api.Deployment o) { | 277 checkDeployment(api.Deployment o) { |
278 buildCounterDeployment++; | 278 buildCounterDeployment++; |
279 if (buildCounterDeployment < 3) { | 279 if (buildCounterDeployment < 3) { |
280 checkContainerInfo(o.container); | 280 checkContainerInfo(o.container); |
281 checkUnnamed2258(o.files); | 281 checkUnnamed2678(o.files); |
282 checkUnnamed2259(o.sourceReferences); | 282 checkUnnamed2679(o.sourceReferences); |
283 } | 283 } |
284 buildCounterDeployment--; | 284 buildCounterDeployment--; |
285 } | 285 } |
286 | 286 |
287 core.int buildCounterErrorHandler = 0; | 287 core.int buildCounterErrorHandler = 0; |
288 buildErrorHandler() { | 288 buildErrorHandler() { |
289 var o = new api.ErrorHandler(); | 289 var o = new api.ErrorHandler(); |
290 buildCounterErrorHandler++; | 290 buildCounterErrorHandler++; |
291 if (buildCounterErrorHandler < 3) { | 291 if (buildCounterErrorHandler < 3) { |
292 o.errorCode = "foo"; | 292 o.errorCode = "foo"; |
293 o.mimeType = "foo"; | 293 o.mimeType = "foo"; |
294 o.staticFile = "foo"; | 294 o.staticFile = "foo"; |
295 } | 295 } |
296 buildCounterErrorHandler--; | 296 buildCounterErrorHandler--; |
297 return o; | 297 return o; |
298 } | 298 } |
299 | 299 |
300 checkErrorHandler(api.ErrorHandler o) { | 300 checkErrorHandler(api.ErrorHandler o) { |
301 buildCounterErrorHandler++; | 301 buildCounterErrorHandler++; |
302 if (buildCounterErrorHandler < 3) { | 302 if (buildCounterErrorHandler < 3) { |
303 unittest.expect(o.errorCode, unittest.equals('foo')); | 303 unittest.expect(o.errorCode, unittest.equals('foo')); |
304 unittest.expect(o.mimeType, unittest.equals('foo')); | 304 unittest.expect(o.mimeType, unittest.equals('foo')); |
305 unittest.expect(o.staticFile, unittest.equals('foo')); | 305 unittest.expect(o.staticFile, unittest.equals('foo')); |
306 } | 306 } |
307 buildCounterErrorHandler--; | 307 buildCounterErrorHandler--; |
308 } | 308 } |
309 | 309 |
310 buildUnnamed2260() { | 310 buildUnnamed2680() { |
311 var o = new core.List<api.Option>(); | 311 var o = new core.List<api.Option>(); |
312 o.add(buildOption()); | 312 o.add(buildOption()); |
313 o.add(buildOption()); | 313 o.add(buildOption()); |
314 return o; | 314 return o; |
315 } | 315 } |
316 | 316 |
317 checkUnnamed2260(core.List<api.Option> o) { | 317 checkUnnamed2680(core.List<api.Option> o) { |
318 unittest.expect(o, unittest.hasLength(2)); | 318 unittest.expect(o, unittest.hasLength(2)); |
319 checkOption(o[0]); | 319 checkOption(o[0]); |
320 checkOption(o[1]); | 320 checkOption(o[1]); |
321 } | 321 } |
322 | 322 |
323 core.int buildCounterField = 0; | 323 core.int buildCounterField = 0; |
324 buildField() { | 324 buildField() { |
325 var o = new api.Field(); | 325 var o = new api.Field(); |
326 buildCounterField++; | 326 buildCounterField++; |
327 if (buildCounterField < 3) { | 327 if (buildCounterField < 3) { |
328 o.cardinality = "foo"; | 328 o.cardinality = "foo"; |
329 o.jsonName = "foo"; | 329 o.jsonName = "foo"; |
330 o.kind = "foo"; | 330 o.kind = "foo"; |
331 o.name = "foo"; | 331 o.name = "foo"; |
332 o.number = 42; | 332 o.number = 42; |
333 o.oneofIndex = 42; | 333 o.oneofIndex = 42; |
334 o.options = buildUnnamed2260(); | 334 o.options = buildUnnamed2680(); |
335 o.packed = true; | 335 o.packed = true; |
336 o.typeUrl = "foo"; | 336 o.typeUrl = "foo"; |
337 } | 337 } |
338 buildCounterField--; | 338 buildCounterField--; |
339 return o; | 339 return o; |
340 } | 340 } |
341 | 341 |
342 checkField(api.Field o) { | 342 checkField(api.Field o) { |
343 buildCounterField++; | 343 buildCounterField++; |
344 if (buildCounterField < 3) { | 344 if (buildCounterField < 3) { |
345 unittest.expect(o.cardinality, unittest.equals('foo')); | 345 unittest.expect(o.cardinality, unittest.equals('foo')); |
346 unittest.expect(o.jsonName, unittest.equals('foo')); | 346 unittest.expect(o.jsonName, unittest.equals('foo')); |
347 unittest.expect(o.kind, unittest.equals('foo')); | 347 unittest.expect(o.kind, unittest.equals('foo')); |
348 unittest.expect(o.name, unittest.equals('foo')); | 348 unittest.expect(o.name, unittest.equals('foo')); |
349 unittest.expect(o.number, unittest.equals(42)); | 349 unittest.expect(o.number, unittest.equals(42)); |
350 unittest.expect(o.oneofIndex, unittest.equals(42)); | 350 unittest.expect(o.oneofIndex, unittest.equals(42)); |
351 checkUnnamed2260(o.options); | 351 checkUnnamed2680(o.options); |
352 unittest.expect(o.packed, unittest.isTrue); | 352 unittest.expect(o.packed, unittest.isTrue); |
353 unittest.expect(o.typeUrl, unittest.equals('foo')); | 353 unittest.expect(o.typeUrl, unittest.equals('foo')); |
354 } | 354 } |
355 buildCounterField--; | 355 buildCounterField--; |
356 } | 356 } |
357 | 357 |
358 core.int buildCounterFileInfo = 0; | 358 core.int buildCounterFileInfo = 0; |
359 buildFileInfo() { | 359 buildFileInfo() { |
360 var o = new api.FileInfo(); | 360 var o = new api.FileInfo(); |
361 buildCounterFileInfo++; | 361 buildCounterFileInfo++; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 423 |
424 checkLibrary(api.Library o) { | 424 checkLibrary(api.Library o) { |
425 buildCounterLibrary++; | 425 buildCounterLibrary++; |
426 if (buildCounterLibrary < 3) { | 426 if (buildCounterLibrary < 3) { |
427 unittest.expect(o.name, unittest.equals('foo')); | 427 unittest.expect(o.name, unittest.equals('foo')); |
428 unittest.expect(o.version, unittest.equals('foo')); | 428 unittest.expect(o.version, unittest.equals('foo')); |
429 } | 429 } |
430 buildCounterLibrary--; | 430 buildCounterLibrary--; |
431 } | 431 } |
432 | 432 |
433 buildUnnamed2261() { | 433 buildUnnamed2681() { |
434 var o = new core.List<api.Module>(); | 434 var o = new core.List<api.Module>(); |
435 o.add(buildModule()); | 435 o.add(buildModule()); |
436 o.add(buildModule()); | 436 o.add(buildModule()); |
437 return o; | 437 return o; |
438 } | 438 } |
439 | 439 |
440 checkUnnamed2261(core.List<api.Module> o) { | 440 checkUnnamed2681(core.List<api.Module> o) { |
441 unittest.expect(o, unittest.hasLength(2)); | 441 unittest.expect(o, unittest.hasLength(2)); |
442 checkModule(o[0]); | 442 checkModule(o[0]); |
443 checkModule(o[1]); | 443 checkModule(o[1]); |
444 } | 444 } |
445 | 445 |
446 core.int buildCounterListModulesResponse = 0; | 446 core.int buildCounterListModulesResponse = 0; |
447 buildListModulesResponse() { | 447 buildListModulesResponse() { |
448 var o = new api.ListModulesResponse(); | 448 var o = new api.ListModulesResponse(); |
449 buildCounterListModulesResponse++; | 449 buildCounterListModulesResponse++; |
450 if (buildCounterListModulesResponse < 3) { | 450 if (buildCounterListModulesResponse < 3) { |
451 o.modules = buildUnnamed2261(); | 451 o.modules = buildUnnamed2681(); |
452 o.nextPageToken = "foo"; | 452 o.nextPageToken = "foo"; |
453 } | 453 } |
454 buildCounterListModulesResponse--; | 454 buildCounterListModulesResponse--; |
455 return o; | 455 return o; |
456 } | 456 } |
457 | 457 |
458 checkListModulesResponse(api.ListModulesResponse o) { | 458 checkListModulesResponse(api.ListModulesResponse o) { |
459 buildCounterListModulesResponse++; | 459 buildCounterListModulesResponse++; |
460 if (buildCounterListModulesResponse < 3) { | 460 if (buildCounterListModulesResponse < 3) { |
461 checkUnnamed2261(o.modules); | 461 checkUnnamed2681(o.modules); |
462 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 462 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
463 } | 463 } |
464 buildCounterListModulesResponse--; | 464 buildCounterListModulesResponse--; |
465 } | 465 } |
466 | 466 |
467 buildUnnamed2262() { | 467 buildUnnamed2682() { |
468 var o = new core.List<api.Operation>(); | 468 var o = new core.List<api.Operation>(); |
469 o.add(buildOperation()); | 469 o.add(buildOperation()); |
470 o.add(buildOperation()); | 470 o.add(buildOperation()); |
471 return o; | 471 return o; |
472 } | 472 } |
473 | 473 |
474 checkUnnamed2262(core.List<api.Operation> o) { | 474 checkUnnamed2682(core.List<api.Operation> o) { |
475 unittest.expect(o, unittest.hasLength(2)); | 475 unittest.expect(o, unittest.hasLength(2)); |
476 checkOperation(o[0]); | 476 checkOperation(o[0]); |
477 checkOperation(o[1]); | 477 checkOperation(o[1]); |
478 } | 478 } |
479 | 479 |
480 core.int buildCounterListOperationsResponse = 0; | 480 core.int buildCounterListOperationsResponse = 0; |
481 buildListOperationsResponse() { | 481 buildListOperationsResponse() { |
482 var o = new api.ListOperationsResponse(); | 482 var o = new api.ListOperationsResponse(); |
483 buildCounterListOperationsResponse++; | 483 buildCounterListOperationsResponse++; |
484 if (buildCounterListOperationsResponse < 3) { | 484 if (buildCounterListOperationsResponse < 3) { |
485 o.nextPageToken = "foo"; | 485 o.nextPageToken = "foo"; |
486 o.operations = buildUnnamed2262(); | 486 o.operations = buildUnnamed2682(); |
487 } | 487 } |
488 buildCounterListOperationsResponse--; | 488 buildCounterListOperationsResponse--; |
489 return o; | 489 return o; |
490 } | 490 } |
491 | 491 |
492 checkListOperationsResponse(api.ListOperationsResponse o) { | 492 checkListOperationsResponse(api.ListOperationsResponse o) { |
493 buildCounterListOperationsResponse++; | 493 buildCounterListOperationsResponse++; |
494 if (buildCounterListOperationsResponse < 3) { | 494 if (buildCounterListOperationsResponse < 3) { |
495 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 495 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
496 checkUnnamed2262(o.operations); | 496 checkUnnamed2682(o.operations); |
497 } | 497 } |
498 buildCounterListOperationsResponse--; | 498 buildCounterListOperationsResponse--; |
499 } | 499 } |
500 | 500 |
501 buildUnnamed2263() { | 501 buildUnnamed2683() { |
502 var o = new core.List<api.Version>(); | 502 var o = new core.List<api.Version>(); |
503 o.add(buildVersion()); | 503 o.add(buildVersion()); |
504 o.add(buildVersion()); | 504 o.add(buildVersion()); |
505 return o; | 505 return o; |
506 } | 506 } |
507 | 507 |
508 checkUnnamed2263(core.List<api.Version> o) { | 508 checkUnnamed2683(core.List<api.Version> o) { |
509 unittest.expect(o, unittest.hasLength(2)); | 509 unittest.expect(o, unittest.hasLength(2)); |
510 checkVersion(o[0]); | 510 checkVersion(o[0]); |
511 checkVersion(o[1]); | 511 checkVersion(o[1]); |
512 } | 512 } |
513 | 513 |
514 core.int buildCounterListVersionsResponse = 0; | 514 core.int buildCounterListVersionsResponse = 0; |
515 buildListVersionsResponse() { | 515 buildListVersionsResponse() { |
516 var o = new api.ListVersionsResponse(); | 516 var o = new api.ListVersionsResponse(); |
517 buildCounterListVersionsResponse++; | 517 buildCounterListVersionsResponse++; |
518 if (buildCounterListVersionsResponse < 3) { | 518 if (buildCounterListVersionsResponse < 3) { |
519 o.nextPageToken = "foo"; | 519 o.nextPageToken = "foo"; |
520 o.versions = buildUnnamed2263(); | 520 o.versions = buildUnnamed2683(); |
521 } | 521 } |
522 buildCounterListVersionsResponse--; | 522 buildCounterListVersionsResponse--; |
523 return o; | 523 return o; |
524 } | 524 } |
525 | 525 |
526 checkListVersionsResponse(api.ListVersionsResponse o) { | 526 checkListVersionsResponse(api.ListVersionsResponse o) { |
527 buildCounterListVersionsResponse++; | 527 buildCounterListVersionsResponse++; |
528 if (buildCounterListVersionsResponse < 3) { | 528 if (buildCounterListVersionsResponse < 3) { |
529 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 529 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
530 checkUnnamed2263(o.versions); | 530 checkUnnamed2683(o.versions); |
531 } | 531 } |
532 buildCounterListVersionsResponse--; | 532 buildCounterListVersionsResponse--; |
533 } | 533 } |
534 | 534 |
535 core.int buildCounterManualScaling = 0; | 535 core.int buildCounterManualScaling = 0; |
536 buildManualScaling() { | 536 buildManualScaling() { |
537 var o = new api.ManualScaling(); | 537 var o = new api.ManualScaling(); |
538 buildCounterManualScaling++; | 538 buildCounterManualScaling++; |
539 if (buildCounterManualScaling < 3) { | 539 if (buildCounterManualScaling < 3) { |
540 o.instances = 42; | 540 o.instances = 42; |
(...skipping 26 matching lines...) Expand all Loading... |
567 checkModule(api.Module o) { | 567 checkModule(api.Module o) { |
568 buildCounterModule++; | 568 buildCounterModule++; |
569 if (buildCounterModule < 3) { | 569 if (buildCounterModule < 3) { |
570 unittest.expect(o.id, unittest.equals('foo')); | 570 unittest.expect(o.id, unittest.equals('foo')); |
571 unittest.expect(o.name, unittest.equals('foo')); | 571 unittest.expect(o.name, unittest.equals('foo')); |
572 checkTrafficSplit(o.split); | 572 checkTrafficSplit(o.split); |
573 } | 573 } |
574 buildCounterModule--; | 574 buildCounterModule--; |
575 } | 575 } |
576 | 576 |
577 buildUnnamed2264() { | 577 buildUnnamed2684() { |
578 var o = new core.List<core.String>(); | 578 var o = new core.List<core.String>(); |
579 o.add("foo"); | 579 o.add("foo"); |
580 o.add("foo"); | 580 o.add("foo"); |
581 return o; | 581 return o; |
582 } | 582 } |
583 | 583 |
584 checkUnnamed2264(core.List<core.String> o) { | 584 checkUnnamed2684(core.List<core.String> o) { |
585 unittest.expect(o, unittest.hasLength(2)); | 585 unittest.expect(o, unittest.hasLength(2)); |
586 unittest.expect(o[0], unittest.equals('foo')); | 586 unittest.expect(o[0], unittest.equals('foo')); |
587 unittest.expect(o[1], unittest.equals('foo')); | 587 unittest.expect(o[1], unittest.equals('foo')); |
588 } | 588 } |
589 | 589 |
590 core.int buildCounterNetwork = 0; | 590 core.int buildCounterNetwork = 0; |
591 buildNetwork() { | 591 buildNetwork() { |
592 var o = new api.Network(); | 592 var o = new api.Network(); |
593 buildCounterNetwork++; | 593 buildCounterNetwork++; |
594 if (buildCounterNetwork < 3) { | 594 if (buildCounterNetwork < 3) { |
595 o.forwardedPorts = buildUnnamed2264(); | 595 o.forwardedPorts = buildUnnamed2684(); |
596 o.instanceTag = "foo"; | 596 o.instanceTag = "foo"; |
597 o.name = "foo"; | 597 o.name = "foo"; |
598 } | 598 } |
599 buildCounterNetwork--; | 599 buildCounterNetwork--; |
600 return o; | 600 return o; |
601 } | 601 } |
602 | 602 |
603 checkNetwork(api.Network o) { | 603 checkNetwork(api.Network o) { |
604 buildCounterNetwork++; | 604 buildCounterNetwork++; |
605 if (buildCounterNetwork < 3) { | 605 if (buildCounterNetwork < 3) { |
606 checkUnnamed2264(o.forwardedPorts); | 606 checkUnnamed2684(o.forwardedPorts); |
607 unittest.expect(o.instanceTag, unittest.equals('foo')); | 607 unittest.expect(o.instanceTag, unittest.equals('foo')); |
608 unittest.expect(o.name, unittest.equals('foo')); | 608 unittest.expect(o.name, unittest.equals('foo')); |
609 } | 609 } |
610 buildCounterNetwork--; | 610 buildCounterNetwork--; |
611 } | 611 } |
612 | 612 |
613 buildUnnamed2265() { | 613 buildUnnamed2685() { |
614 var o = new core.Map<core.String, core.Object>(); | 614 var o = new core.Map<core.String, core.Object>(); |
615 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 615 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
616 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 616 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
617 return o; | 617 return o; |
618 } | 618 } |
619 | 619 |
620 checkUnnamed2265(core.Map<core.String, core.Object> o) { | 620 checkUnnamed2685(core.Map<core.String, core.Object> o) { |
621 unittest.expect(o, unittest.hasLength(2)); | 621 unittest.expect(o, unittest.hasLength(2)); |
622 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 622 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
623 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 623 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
624 } | 624 } |
625 | 625 |
626 buildUnnamed2266() { | 626 buildUnnamed2686() { |
627 var o = new core.Map<core.String, core.Object>(); | 627 var o = new core.Map<core.String, core.Object>(); |
628 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 628 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
629 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 629 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
630 return o; | 630 return o; |
631 } | 631 } |
632 | 632 |
633 checkUnnamed2266(core.Map<core.String, core.Object> o) { | 633 checkUnnamed2686(core.Map<core.String, core.Object> o) { |
634 unittest.expect(o, unittest.hasLength(2)); | 634 unittest.expect(o, unittest.hasLength(2)); |
635 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 635 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
636 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 636 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
637 } | 637 } |
638 | 638 |
639 core.int buildCounterOperation = 0; | 639 core.int buildCounterOperation = 0; |
640 buildOperation() { | 640 buildOperation() { |
641 var o = new api.Operation(); | 641 var o = new api.Operation(); |
642 buildCounterOperation++; | 642 buildCounterOperation++; |
643 if (buildCounterOperation < 3) { | 643 if (buildCounterOperation < 3) { |
644 o.done = true; | 644 o.done = true; |
645 o.error = buildStatus(); | 645 o.error = buildStatus(); |
646 o.metadata = buildUnnamed2265(); | 646 o.metadata = buildUnnamed2685(); |
647 o.name = "foo"; | 647 o.name = "foo"; |
648 o.response = buildUnnamed2266(); | 648 o.response = buildUnnamed2686(); |
649 } | 649 } |
650 buildCounterOperation--; | 650 buildCounterOperation--; |
651 return o; | 651 return o; |
652 } | 652 } |
653 | 653 |
654 checkOperation(api.Operation o) { | 654 checkOperation(api.Operation o) { |
655 buildCounterOperation++; | 655 buildCounterOperation++; |
656 if (buildCounterOperation < 3) { | 656 if (buildCounterOperation < 3) { |
657 unittest.expect(o.done, unittest.isTrue); | 657 unittest.expect(o.done, unittest.isTrue); |
658 checkStatus(o.error); | 658 checkStatus(o.error); |
659 checkUnnamed2265(o.metadata); | 659 checkUnnamed2685(o.metadata); |
660 unittest.expect(o.name, unittest.equals('foo')); | 660 unittest.expect(o.name, unittest.equals('foo')); |
661 checkUnnamed2266(o.response); | 661 checkUnnamed2686(o.response); |
662 } | 662 } |
663 buildCounterOperation--; | 663 buildCounterOperation--; |
664 } | 664 } |
665 | 665 |
666 core.int buildCounterOperationMetadata = 0; | 666 core.int buildCounterOperationMetadata = 0; |
667 buildOperationMetadata() { | 667 buildOperationMetadata() { |
668 var o = new api.OperationMetadata(); | 668 var o = new api.OperationMetadata(); |
669 buildCounterOperationMetadata++; | 669 buildCounterOperationMetadata++; |
670 if (buildCounterOperationMetadata < 3) { | 670 if (buildCounterOperationMetadata < 3) { |
671 o.endTime = "foo"; | 671 o.endTime = "foo"; |
672 o.insertTime = "foo"; | 672 o.insertTime = "foo"; |
673 o.operationType = "foo"; | 673 o.operationType = "foo"; |
674 o.user = "foo"; | 674 o.user = "foo"; |
675 } | 675 } |
676 buildCounterOperationMetadata--; | 676 buildCounterOperationMetadata--; |
677 return o; | 677 return o; |
678 } | 678 } |
679 | 679 |
680 checkOperationMetadata(api.OperationMetadata o) { | 680 checkOperationMetadata(api.OperationMetadata o) { |
681 buildCounterOperationMetadata++; | 681 buildCounterOperationMetadata++; |
682 if (buildCounterOperationMetadata < 3) { | 682 if (buildCounterOperationMetadata < 3) { |
683 unittest.expect(o.endTime, unittest.equals('foo')); | 683 unittest.expect(o.endTime, unittest.equals('foo')); |
684 unittest.expect(o.insertTime, unittest.equals('foo')); | 684 unittest.expect(o.insertTime, unittest.equals('foo')); |
685 unittest.expect(o.operationType, unittest.equals('foo')); | 685 unittest.expect(o.operationType, unittest.equals('foo')); |
686 unittest.expect(o.user, unittest.equals('foo')); | 686 unittest.expect(o.user, unittest.equals('foo')); |
687 } | 687 } |
688 buildCounterOperationMetadata--; | 688 buildCounterOperationMetadata--; |
689 } | 689 } |
690 | 690 |
691 buildUnnamed2267() { | 691 buildUnnamed2687() { |
692 var o = new core.Map<core.String, core.Object>(); | 692 var o = new core.Map<core.String, core.Object>(); |
693 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 693 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
694 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 694 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
695 return o; | 695 return o; |
696 } | 696 } |
697 | 697 |
698 checkUnnamed2267(core.Map<core.String, core.Object> o) { | 698 checkUnnamed2687(core.Map<core.String, core.Object> o) { |
699 unittest.expect(o, unittest.hasLength(2)); | 699 unittest.expect(o, unittest.hasLength(2)); |
700 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 700 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
701 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 701 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
702 } | 702 } |
703 | 703 |
704 core.int buildCounterOption = 0; | 704 core.int buildCounterOption = 0; |
705 buildOption() { | 705 buildOption() { |
706 var o = new api.Option(); | 706 var o = new api.Option(); |
707 buildCounterOption++; | 707 buildCounterOption++; |
708 if (buildCounterOption < 3) { | 708 if (buildCounterOption < 3) { |
709 o.name = "foo"; | 709 o.name = "foo"; |
710 o.value = buildUnnamed2267(); | 710 o.value = buildUnnamed2687(); |
711 } | 711 } |
712 buildCounterOption--; | 712 buildCounterOption--; |
713 return o; | 713 return o; |
714 } | 714 } |
715 | 715 |
716 checkOption(api.Option o) { | 716 checkOption(api.Option o) { |
717 buildCounterOption++; | 717 buildCounterOption++; |
718 if (buildCounterOption < 3) { | 718 if (buildCounterOption < 3) { |
719 unittest.expect(o.name, unittest.equals('foo')); | 719 unittest.expect(o.name, unittest.equals('foo')); |
720 checkUnnamed2267(o.value); | 720 checkUnnamed2687(o.value); |
721 } | 721 } |
722 buildCounterOption--; | 722 buildCounterOption--; |
723 } | 723 } |
724 | 724 |
725 core.int buildCounterResources = 0; | 725 core.int buildCounterResources = 0; |
726 buildResources() { | 726 buildResources() { |
727 var o = new api.Resources(); | 727 var o = new api.Resources(); |
728 buildCounterResources++; | 728 buildCounterResources++; |
729 if (buildCounterResources < 3) { | 729 if (buildCounterResources < 3) { |
730 o.cpu = 42.0; | 730 o.cpu = 42.0; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 | 797 |
798 checkSourceReference(api.SourceReference o) { | 798 checkSourceReference(api.SourceReference o) { |
799 buildCounterSourceReference++; | 799 buildCounterSourceReference++; |
800 if (buildCounterSourceReference < 3) { | 800 if (buildCounterSourceReference < 3) { |
801 unittest.expect(o.repository, unittest.equals('foo')); | 801 unittest.expect(o.repository, unittest.equals('foo')); |
802 unittest.expect(o.revisionId, unittest.equals('foo')); | 802 unittest.expect(o.revisionId, unittest.equals('foo')); |
803 } | 803 } |
804 buildCounterSourceReference--; | 804 buildCounterSourceReference--; |
805 } | 805 } |
806 | 806 |
807 buildUnnamed2268() { | 807 buildUnnamed2688() { |
808 var o = new core.Map<core.String, core.String>(); | 808 var o = new core.Map<core.String, core.String>(); |
809 o["x"] = "foo"; | 809 o["x"] = "foo"; |
810 o["y"] = "foo"; | 810 o["y"] = "foo"; |
811 return o; | 811 return o; |
812 } | 812 } |
813 | 813 |
814 checkUnnamed2268(core.Map<core.String, core.String> o) { | 814 checkUnnamed2688(core.Map<core.String, core.String> o) { |
815 unittest.expect(o, unittest.hasLength(2)); | 815 unittest.expect(o, unittest.hasLength(2)); |
816 unittest.expect(o["x"], unittest.equals('foo')); | 816 unittest.expect(o["x"], unittest.equals('foo')); |
817 unittest.expect(o["y"], unittest.equals('foo')); | 817 unittest.expect(o["y"], unittest.equals('foo')); |
818 } | 818 } |
819 | 819 |
820 core.int buildCounterStaticDirectoryHandler = 0; | 820 core.int buildCounterStaticDirectoryHandler = 0; |
821 buildStaticDirectoryHandler() { | 821 buildStaticDirectoryHandler() { |
822 var o = new api.StaticDirectoryHandler(); | 822 var o = new api.StaticDirectoryHandler(); |
823 buildCounterStaticDirectoryHandler++; | 823 buildCounterStaticDirectoryHandler++; |
824 if (buildCounterStaticDirectoryHandler < 3) { | 824 if (buildCounterStaticDirectoryHandler < 3) { |
825 o.applicationReadable = true; | 825 o.applicationReadable = true; |
826 o.directory = "foo"; | 826 o.directory = "foo"; |
827 o.expiration = "foo"; | 827 o.expiration = "foo"; |
828 o.httpHeaders = buildUnnamed2268(); | 828 o.httpHeaders = buildUnnamed2688(); |
829 o.mimeType = "foo"; | 829 o.mimeType = "foo"; |
830 o.requireMatchingFile = true; | 830 o.requireMatchingFile = true; |
831 } | 831 } |
832 buildCounterStaticDirectoryHandler--; | 832 buildCounterStaticDirectoryHandler--; |
833 return o; | 833 return o; |
834 } | 834 } |
835 | 835 |
836 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { | 836 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { |
837 buildCounterStaticDirectoryHandler++; | 837 buildCounterStaticDirectoryHandler++; |
838 if (buildCounterStaticDirectoryHandler < 3) { | 838 if (buildCounterStaticDirectoryHandler < 3) { |
839 unittest.expect(o.applicationReadable, unittest.isTrue); | 839 unittest.expect(o.applicationReadable, unittest.isTrue); |
840 unittest.expect(o.directory, unittest.equals('foo')); | 840 unittest.expect(o.directory, unittest.equals('foo')); |
841 unittest.expect(o.expiration, unittest.equals('foo')); | 841 unittest.expect(o.expiration, unittest.equals('foo')); |
842 checkUnnamed2268(o.httpHeaders); | 842 checkUnnamed2688(o.httpHeaders); |
843 unittest.expect(o.mimeType, unittest.equals('foo')); | 843 unittest.expect(o.mimeType, unittest.equals('foo')); |
844 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 844 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
845 } | 845 } |
846 buildCounterStaticDirectoryHandler--; | 846 buildCounterStaticDirectoryHandler--; |
847 } | 847 } |
848 | 848 |
849 buildUnnamed2269() { | 849 buildUnnamed2689() { |
850 var o = new core.Map<core.String, core.String>(); | 850 var o = new core.Map<core.String, core.String>(); |
851 o["x"] = "foo"; | 851 o["x"] = "foo"; |
852 o["y"] = "foo"; | 852 o["y"] = "foo"; |
853 return o; | 853 return o; |
854 } | 854 } |
855 | 855 |
856 checkUnnamed2269(core.Map<core.String, core.String> o) { | 856 checkUnnamed2689(core.Map<core.String, core.String> o) { |
857 unittest.expect(o, unittest.hasLength(2)); | 857 unittest.expect(o, unittest.hasLength(2)); |
858 unittest.expect(o["x"], unittest.equals('foo')); | 858 unittest.expect(o["x"], unittest.equals('foo')); |
859 unittest.expect(o["y"], unittest.equals('foo')); | 859 unittest.expect(o["y"], unittest.equals('foo')); |
860 } | 860 } |
861 | 861 |
862 core.int buildCounterStaticFilesHandler = 0; | 862 core.int buildCounterStaticFilesHandler = 0; |
863 buildStaticFilesHandler() { | 863 buildStaticFilesHandler() { |
864 var o = new api.StaticFilesHandler(); | 864 var o = new api.StaticFilesHandler(); |
865 buildCounterStaticFilesHandler++; | 865 buildCounterStaticFilesHandler++; |
866 if (buildCounterStaticFilesHandler < 3) { | 866 if (buildCounterStaticFilesHandler < 3) { |
867 o.applicationReadable = true; | 867 o.applicationReadable = true; |
868 o.expiration = "foo"; | 868 o.expiration = "foo"; |
869 o.httpHeaders = buildUnnamed2269(); | 869 o.httpHeaders = buildUnnamed2689(); |
870 o.mimeType = "foo"; | 870 o.mimeType = "foo"; |
871 o.path = "foo"; | 871 o.path = "foo"; |
872 o.requireMatchingFile = true; | 872 o.requireMatchingFile = true; |
873 o.uploadPathRegex = "foo"; | 873 o.uploadPathRegex = "foo"; |
874 } | 874 } |
875 buildCounterStaticFilesHandler--; | 875 buildCounterStaticFilesHandler--; |
876 return o; | 876 return o; |
877 } | 877 } |
878 | 878 |
879 checkStaticFilesHandler(api.StaticFilesHandler o) { | 879 checkStaticFilesHandler(api.StaticFilesHandler o) { |
880 buildCounterStaticFilesHandler++; | 880 buildCounterStaticFilesHandler++; |
881 if (buildCounterStaticFilesHandler < 3) { | 881 if (buildCounterStaticFilesHandler < 3) { |
882 unittest.expect(o.applicationReadable, unittest.isTrue); | 882 unittest.expect(o.applicationReadable, unittest.isTrue); |
883 unittest.expect(o.expiration, unittest.equals('foo')); | 883 unittest.expect(o.expiration, unittest.equals('foo')); |
884 checkUnnamed2269(o.httpHeaders); | 884 checkUnnamed2689(o.httpHeaders); |
885 unittest.expect(o.mimeType, unittest.equals('foo')); | 885 unittest.expect(o.mimeType, unittest.equals('foo')); |
886 unittest.expect(o.path, unittest.equals('foo')); | 886 unittest.expect(o.path, unittest.equals('foo')); |
887 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 887 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
888 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 888 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
889 } | 889 } |
890 buildCounterStaticFilesHandler--; | 890 buildCounterStaticFilesHandler--; |
891 } | 891 } |
892 | 892 |
893 buildUnnamed2270() { | 893 buildUnnamed2690() { |
894 var o = new core.Map<core.String, core.Object>(); | 894 var o = new core.Map<core.String, core.Object>(); |
895 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 895 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
896 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 896 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
897 return o; | 897 return o; |
898 } | 898 } |
899 | 899 |
900 checkUnnamed2270(core.Map<core.String, core.Object> o) { | 900 checkUnnamed2690(core.Map<core.String, core.Object> o) { |
901 unittest.expect(o, unittest.hasLength(2)); | 901 unittest.expect(o, unittest.hasLength(2)); |
902 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); | 902 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
903 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); | 903 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
904 } | 904 } |
905 | 905 |
906 buildUnnamed2271() { | 906 buildUnnamed2691() { |
907 var o = new core.List<core.Map<core.String, core.Object>>(); | 907 var o = new core.List<core.Map<core.String, core.Object>>(); |
908 o.add(buildUnnamed2270()); | 908 o.add(buildUnnamed2690()); |
909 o.add(buildUnnamed2270()); | 909 o.add(buildUnnamed2690()); |
910 return o; | 910 return o; |
911 } | 911 } |
912 | 912 |
913 checkUnnamed2271(core.List<core.Map<core.String, core.Object>> o) { | 913 checkUnnamed2691(core.List<core.Map<core.String, core.Object>> o) { |
914 unittest.expect(o, unittest.hasLength(2)); | 914 unittest.expect(o, unittest.hasLength(2)); |
915 checkUnnamed2270(o[0]); | 915 checkUnnamed2690(o[0]); |
916 checkUnnamed2270(o[1]); | 916 checkUnnamed2690(o[1]); |
917 } | 917 } |
918 | 918 |
919 core.int buildCounterStatus = 0; | 919 core.int buildCounterStatus = 0; |
920 buildStatus() { | 920 buildStatus() { |
921 var o = new api.Status(); | 921 var o = new api.Status(); |
922 buildCounterStatus++; | 922 buildCounterStatus++; |
923 if (buildCounterStatus < 3) { | 923 if (buildCounterStatus < 3) { |
924 o.code = 42; | 924 o.code = 42; |
925 o.details = buildUnnamed2271(); | 925 o.details = buildUnnamed2691(); |
926 o.message = "foo"; | 926 o.message = "foo"; |
927 } | 927 } |
928 buildCounterStatus--; | 928 buildCounterStatus--; |
929 return o; | 929 return o; |
930 } | 930 } |
931 | 931 |
932 checkStatus(api.Status o) { | 932 checkStatus(api.Status o) { |
933 buildCounterStatus++; | 933 buildCounterStatus++; |
934 if (buildCounterStatus < 3) { | 934 if (buildCounterStatus < 3) { |
935 unittest.expect(o.code, unittest.equals(42)); | 935 unittest.expect(o.code, unittest.equals(42)); |
936 checkUnnamed2271(o.details); | 936 checkUnnamed2691(o.details); |
937 unittest.expect(o.message, unittest.equals('foo')); | 937 unittest.expect(o.message, unittest.equals('foo')); |
938 } | 938 } |
939 buildCounterStatus--; | 939 buildCounterStatus--; |
940 } | 940 } |
941 | 941 |
942 buildUnnamed2272() { | 942 buildUnnamed2692() { |
943 var o = new core.Map<core.String, core.double>(); | 943 var o = new core.Map<core.String, core.double>(); |
944 o["x"] = 42.0; | 944 o["x"] = 42.0; |
945 o["y"] = 42.0; | 945 o["y"] = 42.0; |
946 return o; | 946 return o; |
947 } | 947 } |
948 | 948 |
949 checkUnnamed2272(core.Map<core.String, core.double> o) { | 949 checkUnnamed2692(core.Map<core.String, core.double> o) { |
950 unittest.expect(o, unittest.hasLength(2)); | 950 unittest.expect(o, unittest.hasLength(2)); |
951 unittest.expect(o["x"], unittest.equals(42.0)); | 951 unittest.expect(o["x"], unittest.equals(42.0)); |
952 unittest.expect(o["y"], unittest.equals(42.0)); | 952 unittest.expect(o["y"], unittest.equals(42.0)); |
953 } | 953 } |
954 | 954 |
955 core.int buildCounterTrafficSplit = 0; | 955 core.int buildCounterTrafficSplit = 0; |
956 buildTrafficSplit() { | 956 buildTrafficSplit() { |
957 var o = new api.TrafficSplit(); | 957 var o = new api.TrafficSplit(); |
958 buildCounterTrafficSplit++; | 958 buildCounterTrafficSplit++; |
959 if (buildCounterTrafficSplit < 3) { | 959 if (buildCounterTrafficSplit < 3) { |
960 o.allocations = buildUnnamed2272(); | 960 o.allocations = buildUnnamed2692(); |
961 o.shardBy = "foo"; | 961 o.shardBy = "foo"; |
962 } | 962 } |
963 buildCounterTrafficSplit--; | 963 buildCounterTrafficSplit--; |
964 return o; | 964 return o; |
965 } | 965 } |
966 | 966 |
967 checkTrafficSplit(api.TrafficSplit o) { | 967 checkTrafficSplit(api.TrafficSplit o) { |
968 buildCounterTrafficSplit++; | 968 buildCounterTrafficSplit++; |
969 if (buildCounterTrafficSplit < 3) { | 969 if (buildCounterTrafficSplit < 3) { |
970 checkUnnamed2272(o.allocations); | 970 checkUnnamed2692(o.allocations); |
971 unittest.expect(o.shardBy, unittest.equals('foo')); | 971 unittest.expect(o.shardBy, unittest.equals('foo')); |
972 } | 972 } |
973 buildCounterTrafficSplit--; | 973 buildCounterTrafficSplit--; |
974 } | 974 } |
975 | 975 |
976 buildUnnamed2273() { | 976 buildUnnamed2693() { |
977 var o = new core.List<api.Field>(); | 977 var o = new core.List<api.Field>(); |
978 o.add(buildField()); | 978 o.add(buildField()); |
979 o.add(buildField()); | 979 o.add(buildField()); |
980 return o; | 980 return o; |
981 } | 981 } |
982 | 982 |
983 checkUnnamed2273(core.List<api.Field> o) { | 983 checkUnnamed2693(core.List<api.Field> o) { |
984 unittest.expect(o, unittest.hasLength(2)); | 984 unittest.expect(o, unittest.hasLength(2)); |
985 checkField(o[0]); | 985 checkField(o[0]); |
986 checkField(o[1]); | 986 checkField(o[1]); |
987 } | 987 } |
988 | 988 |
989 buildUnnamed2274() { | 989 buildUnnamed2694() { |
990 var o = new core.List<core.String>(); | 990 var o = new core.List<core.String>(); |
991 o.add("foo"); | 991 o.add("foo"); |
992 o.add("foo"); | 992 o.add("foo"); |
993 return o; | 993 return o; |
994 } | 994 } |
995 | 995 |
996 checkUnnamed2274(core.List<core.String> o) { | 996 checkUnnamed2694(core.List<core.String> o) { |
997 unittest.expect(o, unittest.hasLength(2)); | 997 unittest.expect(o, unittest.hasLength(2)); |
998 unittest.expect(o[0], unittest.equals('foo')); | 998 unittest.expect(o[0], unittest.equals('foo')); |
999 unittest.expect(o[1], unittest.equals('foo')); | 999 unittest.expect(o[1], unittest.equals('foo')); |
1000 } | 1000 } |
1001 | 1001 |
1002 buildUnnamed2275() { | 1002 buildUnnamed2695() { |
1003 var o = new core.List<api.Option>(); | 1003 var o = new core.List<api.Option>(); |
1004 o.add(buildOption()); | 1004 o.add(buildOption()); |
1005 o.add(buildOption()); | 1005 o.add(buildOption()); |
1006 return o; | 1006 return o; |
1007 } | 1007 } |
1008 | 1008 |
1009 checkUnnamed2275(core.List<api.Option> o) { | 1009 checkUnnamed2695(core.List<api.Option> o) { |
1010 unittest.expect(o, unittest.hasLength(2)); | 1010 unittest.expect(o, unittest.hasLength(2)); |
1011 checkOption(o[0]); | 1011 checkOption(o[0]); |
1012 checkOption(o[1]); | 1012 checkOption(o[1]); |
1013 } | 1013 } |
1014 | 1014 |
1015 core.int buildCounterType = 0; | 1015 core.int buildCounterType = 0; |
1016 buildType() { | 1016 buildType() { |
1017 var o = new api.Type(); | 1017 var o = new api.Type(); |
1018 buildCounterType++; | 1018 buildCounterType++; |
1019 if (buildCounterType < 3) { | 1019 if (buildCounterType < 3) { |
1020 o.fields = buildUnnamed2273(); | 1020 o.fields = buildUnnamed2693(); |
1021 o.name = "foo"; | 1021 o.name = "foo"; |
1022 o.oneofs = buildUnnamed2274(); | 1022 o.oneofs = buildUnnamed2694(); |
1023 o.options = buildUnnamed2275(); | 1023 o.options = buildUnnamed2695(); |
1024 o.sourceContext = buildSourceContext(); | 1024 o.sourceContext = buildSourceContext(); |
1025 o.syntax = "foo"; | 1025 o.syntax = "foo"; |
1026 } | 1026 } |
1027 buildCounterType--; | 1027 buildCounterType--; |
1028 return o; | 1028 return o; |
1029 } | 1029 } |
1030 | 1030 |
1031 checkType(api.Type o) { | 1031 checkType(api.Type o) { |
1032 buildCounterType++; | 1032 buildCounterType++; |
1033 if (buildCounterType < 3) { | 1033 if (buildCounterType < 3) { |
1034 checkUnnamed2273(o.fields); | 1034 checkUnnamed2693(o.fields); |
1035 unittest.expect(o.name, unittest.equals('foo')); | 1035 unittest.expect(o.name, unittest.equals('foo')); |
1036 checkUnnamed2274(o.oneofs); | 1036 checkUnnamed2694(o.oneofs); |
1037 checkUnnamed2275(o.options); | 1037 checkUnnamed2695(o.options); |
1038 checkSourceContext(o.sourceContext); | 1038 checkSourceContext(o.sourceContext); |
1039 unittest.expect(o.syntax, unittest.equals('foo')); | 1039 unittest.expect(o.syntax, unittest.equals('foo')); |
1040 } | 1040 } |
1041 buildCounterType--; | 1041 buildCounterType--; |
1042 } | 1042 } |
1043 | 1043 |
1044 core.int buildCounterUrlDispatchRule = 0; | 1044 core.int buildCounterUrlDispatchRule = 0; |
1045 buildUrlDispatchRule() { | 1045 buildUrlDispatchRule() { |
1046 var o = new api.UrlDispatchRule(); | 1046 var o = new api.UrlDispatchRule(); |
1047 buildCounterUrlDispatchRule++; | 1047 buildCounterUrlDispatchRule++; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1092 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
1093 checkScriptHandler(o.script); | 1093 checkScriptHandler(o.script); |
1094 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1094 unittest.expect(o.securityLevel, unittest.equals('foo')); |
1095 checkStaticDirectoryHandler(o.staticDirectory); | 1095 checkStaticDirectoryHandler(o.staticDirectory); |
1096 checkStaticFilesHandler(o.staticFiles); | 1096 checkStaticFilesHandler(o.staticFiles); |
1097 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1097 unittest.expect(o.urlRegex, unittest.equals('foo')); |
1098 } | 1098 } |
1099 buildCounterUrlMap--; | 1099 buildCounterUrlMap--; |
1100 } | 1100 } |
1101 | 1101 |
1102 buildUnnamed2276() { | 1102 buildUnnamed2696() { |
1103 var o = new core.Map<core.String, core.String>(); | 1103 var o = new core.Map<core.String, core.String>(); |
1104 o["x"] = "foo"; | 1104 o["x"] = "foo"; |
1105 o["y"] = "foo"; | 1105 o["y"] = "foo"; |
1106 return o; | 1106 return o; |
1107 } | 1107 } |
1108 | 1108 |
1109 checkUnnamed2276(core.Map<core.String, core.String> o) { | 1109 checkUnnamed2696(core.Map<core.String, core.String> o) { |
1110 unittest.expect(o, unittest.hasLength(2)); | 1110 unittest.expect(o, unittest.hasLength(2)); |
1111 unittest.expect(o["x"], unittest.equals('foo')); | 1111 unittest.expect(o["x"], unittest.equals('foo')); |
1112 unittest.expect(o["y"], unittest.equals('foo')); | 1112 unittest.expect(o["y"], unittest.equals('foo')); |
1113 } | 1113 } |
1114 | 1114 |
1115 buildUnnamed2277() { | 1115 buildUnnamed2697() { |
1116 var o = new core.Map<core.String, core.String>(); | 1116 var o = new core.Map<core.String, core.String>(); |
1117 o["x"] = "foo"; | 1117 o["x"] = "foo"; |
1118 o["y"] = "foo"; | 1118 o["y"] = "foo"; |
1119 return o; | 1119 return o; |
1120 } | 1120 } |
1121 | 1121 |
1122 checkUnnamed2277(core.Map<core.String, core.String> o) { | 1122 checkUnnamed2697(core.Map<core.String, core.String> o) { |
1123 unittest.expect(o, unittest.hasLength(2)); | 1123 unittest.expect(o, unittest.hasLength(2)); |
1124 unittest.expect(o["x"], unittest.equals('foo')); | 1124 unittest.expect(o["x"], unittest.equals('foo')); |
1125 unittest.expect(o["y"], unittest.equals('foo')); | 1125 unittest.expect(o["y"], unittest.equals('foo')); |
1126 } | 1126 } |
1127 | 1127 |
1128 buildUnnamed2278() { | 1128 buildUnnamed2698() { |
1129 var o = new core.List<api.ErrorHandler>(); | 1129 var o = new core.List<api.ErrorHandler>(); |
1130 o.add(buildErrorHandler()); | 1130 o.add(buildErrorHandler()); |
1131 o.add(buildErrorHandler()); | 1131 o.add(buildErrorHandler()); |
1132 return o; | 1132 return o; |
1133 } | 1133 } |
1134 | 1134 |
1135 checkUnnamed2278(core.List<api.ErrorHandler> o) { | 1135 checkUnnamed2698(core.List<api.ErrorHandler> o) { |
1136 unittest.expect(o, unittest.hasLength(2)); | 1136 unittest.expect(o, unittest.hasLength(2)); |
1137 checkErrorHandler(o[0]); | 1137 checkErrorHandler(o[0]); |
1138 checkErrorHandler(o[1]); | 1138 checkErrorHandler(o[1]); |
1139 } | 1139 } |
1140 | 1140 |
1141 buildUnnamed2279() { | 1141 buildUnnamed2699() { |
1142 var o = new core.List<api.UrlMap>(); | 1142 var o = new core.List<api.UrlMap>(); |
1143 o.add(buildUrlMap()); | 1143 o.add(buildUrlMap()); |
1144 o.add(buildUrlMap()); | 1144 o.add(buildUrlMap()); |
1145 return o; | 1145 return o; |
1146 } | 1146 } |
1147 | 1147 |
1148 checkUnnamed2279(core.List<api.UrlMap> o) { | 1148 checkUnnamed2699(core.List<api.UrlMap> o) { |
1149 unittest.expect(o, unittest.hasLength(2)); | 1149 unittest.expect(o, unittest.hasLength(2)); |
1150 checkUrlMap(o[0]); | 1150 checkUrlMap(o[0]); |
1151 checkUrlMap(o[1]); | 1151 checkUrlMap(o[1]); |
1152 } | 1152 } |
1153 | 1153 |
1154 buildUnnamed2280() { | 1154 buildUnnamed2700() { |
1155 var o = new core.List<core.String>(); | 1155 var o = new core.List<core.String>(); |
1156 o.add("foo"); | 1156 o.add("foo"); |
1157 o.add("foo"); | 1157 o.add("foo"); |
1158 return o; | 1158 return o; |
1159 } | 1159 } |
1160 | 1160 |
1161 checkUnnamed2280(core.List<core.String> o) { | 1161 checkUnnamed2700(core.List<core.String> o) { |
1162 unittest.expect(o, unittest.hasLength(2)); | 1162 unittest.expect(o, unittest.hasLength(2)); |
1163 unittest.expect(o[0], unittest.equals('foo')); | 1163 unittest.expect(o[0], unittest.equals('foo')); |
1164 unittest.expect(o[1], unittest.equals('foo')); | 1164 unittest.expect(o[1], unittest.equals('foo')); |
1165 } | 1165 } |
1166 | 1166 |
1167 buildUnnamed2281() { | 1167 buildUnnamed2701() { |
1168 var o = new core.List<api.Library>(); | 1168 var o = new core.List<api.Library>(); |
1169 o.add(buildLibrary()); | 1169 o.add(buildLibrary()); |
1170 o.add(buildLibrary()); | 1170 o.add(buildLibrary()); |
1171 return o; | 1171 return o; |
1172 } | 1172 } |
1173 | 1173 |
1174 checkUnnamed2281(core.List<api.Library> o) { | 1174 checkUnnamed2701(core.List<api.Library> o) { |
1175 unittest.expect(o, unittest.hasLength(2)); | 1175 unittest.expect(o, unittest.hasLength(2)); |
1176 checkLibrary(o[0]); | 1176 checkLibrary(o[0]); |
1177 checkLibrary(o[1]); | 1177 checkLibrary(o[1]); |
1178 } | 1178 } |
1179 | 1179 |
1180 core.int buildCounterVersion = 0; | 1180 core.int buildCounterVersion = 0; |
1181 buildVersion() { | 1181 buildVersion() { |
1182 var o = new api.Version(); | 1182 var o = new api.Version(); |
1183 buildCounterVersion++; | 1183 buildCounterVersion++; |
1184 if (buildCounterVersion < 3) { | 1184 if (buildCounterVersion < 3) { |
1185 o.apiConfig = buildApiConfigHandler(); | 1185 o.apiConfig = buildApiConfigHandler(); |
1186 o.automaticScaling = buildAutomaticScaling(); | 1186 o.automaticScaling = buildAutomaticScaling(); |
1187 o.basicScaling = buildBasicScaling(); | 1187 o.basicScaling = buildBasicScaling(); |
1188 o.betaSettings = buildUnnamed2276(); | 1188 o.betaSettings = buildUnnamed2696(); |
1189 o.defaultExpiration = "foo"; | 1189 o.defaultExpiration = "foo"; |
1190 o.deployment = buildDeployment(); | 1190 o.deployment = buildDeployment(); |
1191 o.envVariables = buildUnnamed2277(); | 1191 o.envVariables = buildUnnamed2697(); |
1192 o.errorHandlers = buildUnnamed2278(); | 1192 o.errorHandlers = buildUnnamed2698(); |
1193 o.handlers = buildUnnamed2279(); | 1193 o.handlers = buildUnnamed2699(); |
1194 o.healthCheck = buildHealthCheck(); | 1194 o.healthCheck = buildHealthCheck(); |
1195 o.id = "foo"; | 1195 o.id = "foo"; |
1196 o.inboundServices = buildUnnamed2280(); | 1196 o.inboundServices = buildUnnamed2700(); |
1197 o.instanceClass = "foo"; | 1197 o.instanceClass = "foo"; |
1198 o.libraries = buildUnnamed2281(); | 1198 o.libraries = buildUnnamed2701(); |
1199 o.manualScaling = buildManualScaling(); | 1199 o.manualScaling = buildManualScaling(); |
1200 o.name = "foo"; | 1200 o.name = "foo"; |
1201 o.network = buildNetwork(); | 1201 o.network = buildNetwork(); |
1202 o.nobuildFilesRegex = "foo"; | 1202 o.nobuildFilesRegex = "foo"; |
1203 o.resources = buildResources(); | 1203 o.resources = buildResources(); |
1204 o.runtime = "foo"; | 1204 o.runtime = "foo"; |
1205 o.threadsafe = true; | 1205 o.threadsafe = true; |
1206 o.vm = true; | 1206 o.vm = true; |
1207 } | 1207 } |
1208 buildCounterVersion--; | 1208 buildCounterVersion--; |
1209 return o; | 1209 return o; |
1210 } | 1210 } |
1211 | 1211 |
1212 checkVersion(api.Version o) { | 1212 checkVersion(api.Version o) { |
1213 buildCounterVersion++; | 1213 buildCounterVersion++; |
1214 if (buildCounterVersion < 3) { | 1214 if (buildCounterVersion < 3) { |
1215 checkApiConfigHandler(o.apiConfig); | 1215 checkApiConfigHandler(o.apiConfig); |
1216 checkAutomaticScaling(o.automaticScaling); | 1216 checkAutomaticScaling(o.automaticScaling); |
1217 checkBasicScaling(o.basicScaling); | 1217 checkBasicScaling(o.basicScaling); |
1218 checkUnnamed2276(o.betaSettings); | 1218 checkUnnamed2696(o.betaSettings); |
1219 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1219 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
1220 checkDeployment(o.deployment); | 1220 checkDeployment(o.deployment); |
1221 checkUnnamed2277(o.envVariables); | 1221 checkUnnamed2697(o.envVariables); |
1222 checkUnnamed2278(o.errorHandlers); | 1222 checkUnnamed2698(o.errorHandlers); |
1223 checkUnnamed2279(o.handlers); | 1223 checkUnnamed2699(o.handlers); |
1224 checkHealthCheck(o.healthCheck); | 1224 checkHealthCheck(o.healthCheck); |
1225 unittest.expect(o.id, unittest.equals('foo')); | 1225 unittest.expect(o.id, unittest.equals('foo')); |
1226 checkUnnamed2280(o.inboundServices); | 1226 checkUnnamed2700(o.inboundServices); |
1227 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1227 unittest.expect(o.instanceClass, unittest.equals('foo')); |
1228 checkUnnamed2281(o.libraries); | 1228 checkUnnamed2701(o.libraries); |
1229 checkManualScaling(o.manualScaling); | 1229 checkManualScaling(o.manualScaling); |
1230 unittest.expect(o.name, unittest.equals('foo')); | 1230 unittest.expect(o.name, unittest.equals('foo')); |
1231 checkNetwork(o.network); | 1231 checkNetwork(o.network); |
1232 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1232 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
1233 checkResources(o.resources); | 1233 checkResources(o.resources); |
1234 unittest.expect(o.runtime, unittest.equals('foo')); | 1234 unittest.expect(o.runtime, unittest.equals('foo')); |
1235 unittest.expect(o.threadsafe, unittest.isTrue); | 1235 unittest.expect(o.threadsafe, unittest.isTrue); |
1236 unittest.expect(o.vm, unittest.isTrue); | 1236 unittest.expect(o.vm, unittest.isTrue); |
1237 } | 1237 } |
1238 buildCounterVersion--; | 1238 buildCounterVersion--; |
(...skipping 963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2202 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { | 2202 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { |
2203 checkListOperationsResponse(response); | 2203 checkListOperationsResponse(response); |
2204 }))); | 2204 }))); |
2205 }); | 2205 }); |
2206 | 2206 |
2207 }); | 2207 }); |
2208 | 2208 |
2209 | 2209 |
2210 } | 2210 } |
2211 | 2211 |
OLD | NEW |