Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: generated/googleapis_beta/test/appengine/v1beta4_test.dart

Issue 2281923002: Api-roll 41: 2016-08-26 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 buildUnnamed3403() { 100 buildUnnamed4189() {
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 checkUnnamed3403(core.List<api.UrlDispatchRule> o) { 107 checkUnnamed4189(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.authDomain = "foo"; 118 o.authDomain = "foo";
119 o.codeBucket = "foo"; 119 o.codeBucket = "foo";
120 o.defaultBucket = "foo"; 120 o.defaultBucket = "foo";
121 o.defaultCookieExpiration = "foo"; 121 o.defaultCookieExpiration = "foo";
122 o.defaultHostname = "foo"; 122 o.defaultHostname = "foo";
123 o.dispatchRules = buildUnnamed3403(); 123 o.dispatchRules = buildUnnamed4189();
124 o.id = "foo"; 124 o.id = "foo";
125 o.location = "foo"; 125 o.location = "foo";
126 o.name = "foo"; 126 o.name = "foo";
127 } 127 }
128 buildCounterApplication--; 128 buildCounterApplication--;
129 return o; 129 return o;
130 } 130 }
131 131
132 checkApplication(api.Application o) { 132 checkApplication(api.Application o) {
133 buildCounterApplication++; 133 buildCounterApplication++;
134 if (buildCounterApplication < 3) { 134 if (buildCounterApplication < 3) {
135 unittest.expect(o.authDomain, unittest.equals('foo')); 135 unittest.expect(o.authDomain, unittest.equals('foo'));
136 unittest.expect(o.codeBucket, unittest.equals('foo')); 136 unittest.expect(o.codeBucket, unittest.equals('foo'));
137 unittest.expect(o.defaultBucket, unittest.equals('foo')); 137 unittest.expect(o.defaultBucket, unittest.equals('foo'));
138 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); 138 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo'));
139 unittest.expect(o.defaultHostname, unittest.equals('foo')); 139 unittest.expect(o.defaultHostname, unittest.equals('foo'));
140 checkUnnamed3403(o.dispatchRules); 140 checkUnnamed4189(o.dispatchRules);
141 unittest.expect(o.id, unittest.equals('foo')); 141 unittest.expect(o.id, unittest.equals('foo'));
142 unittest.expect(o.location, unittest.equals('foo')); 142 unittest.expect(o.location, unittest.equals('foo'));
143 unittest.expect(o.name, unittest.equals('foo')); 143 unittest.expect(o.name, unittest.equals('foo'));
144 } 144 }
145 buildCounterApplication--; 145 buildCounterApplication--;
146 } 146 }
147 147
148 core.int buildCounterAutomaticScaling = 0; 148 core.int buildCounterAutomaticScaling = 0;
149 buildAutomaticScaling() { 149 buildAutomaticScaling() {
150 var o = new api.AutomaticScaling(); 150 var o = new api.AutomaticScaling();
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 return o; 257 return o;
258 } 258 }
259 259
260 checkDebugInstanceRequest(api.DebugInstanceRequest o) { 260 checkDebugInstanceRequest(api.DebugInstanceRequest o) {
261 buildCounterDebugInstanceRequest++; 261 buildCounterDebugInstanceRequest++;
262 if (buildCounterDebugInstanceRequest < 3) { 262 if (buildCounterDebugInstanceRequest < 3) {
263 } 263 }
264 buildCounterDebugInstanceRequest--; 264 buildCounterDebugInstanceRequest--;
265 } 265 }
266 266
267 buildUnnamed3404() { 267 buildUnnamed4190() {
268 var o = new core.Map<core.String, api.FileInfo>(); 268 var o = new core.Map<core.String, api.FileInfo>();
269 o["x"] = buildFileInfo(); 269 o["x"] = buildFileInfo();
270 o["y"] = buildFileInfo(); 270 o["y"] = buildFileInfo();
271 return o; 271 return o;
272 } 272 }
273 273
274 checkUnnamed3404(core.Map<core.String, api.FileInfo> o) { 274 checkUnnamed4190(core.Map<core.String, api.FileInfo> o) {
275 unittest.expect(o, unittest.hasLength(2)); 275 unittest.expect(o, unittest.hasLength(2));
276 checkFileInfo(o["x"]); 276 checkFileInfo(o["x"]);
277 checkFileInfo(o["y"]); 277 checkFileInfo(o["y"]);
278 } 278 }
279 279
280 buildUnnamed3405() { 280 buildUnnamed4191() {
281 var o = new core.List<api.SourceReference>(); 281 var o = new core.List<api.SourceReference>();
282 o.add(buildSourceReference()); 282 o.add(buildSourceReference());
283 o.add(buildSourceReference()); 283 o.add(buildSourceReference());
284 return o; 284 return o;
285 } 285 }
286 286
287 checkUnnamed3405(core.List<api.SourceReference> o) { 287 checkUnnamed4191(core.List<api.SourceReference> o) {
288 unittest.expect(o, unittest.hasLength(2)); 288 unittest.expect(o, unittest.hasLength(2));
289 checkSourceReference(o[0]); 289 checkSourceReference(o[0]);
290 checkSourceReference(o[1]); 290 checkSourceReference(o[1]);
291 } 291 }
292 292
293 core.int buildCounterDeployment = 0; 293 core.int buildCounterDeployment = 0;
294 buildDeployment() { 294 buildDeployment() {
295 var o = new api.Deployment(); 295 var o = new api.Deployment();
296 buildCounterDeployment++; 296 buildCounterDeployment++;
297 if (buildCounterDeployment < 3) { 297 if (buildCounterDeployment < 3) {
298 o.container = buildContainerInfo(); 298 o.container = buildContainerInfo();
299 o.files = buildUnnamed3404(); 299 o.files = buildUnnamed4190();
300 o.sourceReferences = buildUnnamed3405(); 300 o.sourceReferences = buildUnnamed4191();
301 } 301 }
302 buildCounterDeployment--; 302 buildCounterDeployment--;
303 return o; 303 return o;
304 } 304 }
305 305
306 checkDeployment(api.Deployment o) { 306 checkDeployment(api.Deployment o) {
307 buildCounterDeployment++; 307 buildCounterDeployment++;
308 if (buildCounterDeployment < 3) { 308 if (buildCounterDeployment < 3) {
309 checkContainerInfo(o.container); 309 checkContainerInfo(o.container);
310 checkUnnamed3404(o.files); 310 checkUnnamed4190(o.files);
311 checkUnnamed3405(o.sourceReferences); 311 checkUnnamed4191(o.sourceReferences);
312 } 312 }
313 buildCounterDeployment--; 313 buildCounterDeployment--;
314 } 314 }
315 315
316 core.int buildCounterDiskUtilization = 0; 316 core.int buildCounterDiskUtilization = 0;
317 buildDiskUtilization() { 317 buildDiskUtilization() {
318 var o = new api.DiskUtilization(); 318 var o = new api.DiskUtilization();
319 buildCounterDiskUtilization++; 319 buildCounterDiskUtilization++;
320 if (buildCounterDiskUtilization < 3) { 320 if (buildCounterDiskUtilization < 3) {
321 o.targetReadBytesPerSec = 42; 321 o.targetReadBytesPerSec = 42;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 476
477 checkLibrary(api.Library o) { 477 checkLibrary(api.Library o) {
478 buildCounterLibrary++; 478 buildCounterLibrary++;
479 if (buildCounterLibrary < 3) { 479 if (buildCounterLibrary < 3) {
480 unittest.expect(o.name, unittest.equals('foo')); 480 unittest.expect(o.name, unittest.equals('foo'));
481 unittest.expect(o.version, unittest.equals('foo')); 481 unittest.expect(o.version, unittest.equals('foo'));
482 } 482 }
483 buildCounterLibrary--; 483 buildCounterLibrary--;
484 } 484 }
485 485
486 buildUnnamed3406() { 486 buildUnnamed4192() {
487 var o = new core.List<api.Instance>(); 487 var o = new core.List<api.Instance>();
488 o.add(buildInstance()); 488 o.add(buildInstance());
489 o.add(buildInstance()); 489 o.add(buildInstance());
490 return o; 490 return o;
491 } 491 }
492 492
493 checkUnnamed3406(core.List<api.Instance> o) { 493 checkUnnamed4192(core.List<api.Instance> o) {
494 unittest.expect(o, unittest.hasLength(2)); 494 unittest.expect(o, unittest.hasLength(2));
495 checkInstance(o[0]); 495 checkInstance(o[0]);
496 checkInstance(o[1]); 496 checkInstance(o[1]);
497 } 497 }
498 498
499 core.int buildCounterListInstancesResponse = 0; 499 core.int buildCounterListInstancesResponse = 0;
500 buildListInstancesResponse() { 500 buildListInstancesResponse() {
501 var o = new api.ListInstancesResponse(); 501 var o = new api.ListInstancesResponse();
502 buildCounterListInstancesResponse++; 502 buildCounterListInstancesResponse++;
503 if (buildCounterListInstancesResponse < 3) { 503 if (buildCounterListInstancesResponse < 3) {
504 o.instances = buildUnnamed3406(); 504 o.instances = buildUnnamed4192();
505 o.nextPageToken = "foo"; 505 o.nextPageToken = "foo";
506 } 506 }
507 buildCounterListInstancesResponse--; 507 buildCounterListInstancesResponse--;
508 return o; 508 return o;
509 } 509 }
510 510
511 checkListInstancesResponse(api.ListInstancesResponse o) { 511 checkListInstancesResponse(api.ListInstancesResponse o) {
512 buildCounterListInstancesResponse++; 512 buildCounterListInstancesResponse++;
513 if (buildCounterListInstancesResponse < 3) { 513 if (buildCounterListInstancesResponse < 3) {
514 checkUnnamed3406(o.instances); 514 checkUnnamed4192(o.instances);
515 unittest.expect(o.nextPageToken, unittest.equals('foo')); 515 unittest.expect(o.nextPageToken, unittest.equals('foo'));
516 } 516 }
517 buildCounterListInstancesResponse--; 517 buildCounterListInstancesResponse--;
518 } 518 }
519 519
520 buildUnnamed3407() { 520 buildUnnamed4193() {
521 var o = new core.List<api.Location>(); 521 var o = new core.List<api.Location>();
522 o.add(buildLocation()); 522 o.add(buildLocation());
523 o.add(buildLocation()); 523 o.add(buildLocation());
524 return o; 524 return o;
525 } 525 }
526 526
527 checkUnnamed3407(core.List<api.Location> o) { 527 checkUnnamed4193(core.List<api.Location> o) {
528 unittest.expect(o, unittest.hasLength(2)); 528 unittest.expect(o, unittest.hasLength(2));
529 checkLocation(o[0]); 529 checkLocation(o[0]);
530 checkLocation(o[1]); 530 checkLocation(o[1]);
531 } 531 }
532 532
533 core.int buildCounterListLocationsResponse = 0; 533 core.int buildCounterListLocationsResponse = 0;
534 buildListLocationsResponse() { 534 buildListLocationsResponse() {
535 var o = new api.ListLocationsResponse(); 535 var o = new api.ListLocationsResponse();
536 buildCounterListLocationsResponse++; 536 buildCounterListLocationsResponse++;
537 if (buildCounterListLocationsResponse < 3) { 537 if (buildCounterListLocationsResponse < 3) {
538 o.locations = buildUnnamed3407(); 538 o.locations = buildUnnamed4193();
539 o.nextPageToken = "foo"; 539 o.nextPageToken = "foo";
540 } 540 }
541 buildCounterListLocationsResponse--; 541 buildCounterListLocationsResponse--;
542 return o; 542 return o;
543 } 543 }
544 544
545 checkListLocationsResponse(api.ListLocationsResponse o) { 545 checkListLocationsResponse(api.ListLocationsResponse o) {
546 buildCounterListLocationsResponse++; 546 buildCounterListLocationsResponse++;
547 if (buildCounterListLocationsResponse < 3) { 547 if (buildCounterListLocationsResponse < 3) {
548 checkUnnamed3407(o.locations); 548 checkUnnamed4193(o.locations);
549 unittest.expect(o.nextPageToken, unittest.equals('foo')); 549 unittest.expect(o.nextPageToken, unittest.equals('foo'));
550 } 550 }
551 buildCounterListLocationsResponse--; 551 buildCounterListLocationsResponse--;
552 } 552 }
553 553
554 buildUnnamed3408() { 554 buildUnnamed4194() {
555 var o = new core.List<api.Module>(); 555 var o = new core.List<api.Module>();
556 o.add(buildModule()); 556 o.add(buildModule());
557 o.add(buildModule()); 557 o.add(buildModule());
558 return o; 558 return o;
559 } 559 }
560 560
561 checkUnnamed3408(core.List<api.Module> o) { 561 checkUnnamed4194(core.List<api.Module> o) {
562 unittest.expect(o, unittest.hasLength(2)); 562 unittest.expect(o, unittest.hasLength(2));
563 checkModule(o[0]); 563 checkModule(o[0]);
564 checkModule(o[1]); 564 checkModule(o[1]);
565 } 565 }
566 566
567 core.int buildCounterListModulesResponse = 0; 567 core.int buildCounterListModulesResponse = 0;
568 buildListModulesResponse() { 568 buildListModulesResponse() {
569 var o = new api.ListModulesResponse(); 569 var o = new api.ListModulesResponse();
570 buildCounterListModulesResponse++; 570 buildCounterListModulesResponse++;
571 if (buildCounterListModulesResponse < 3) { 571 if (buildCounterListModulesResponse < 3) {
572 o.modules = buildUnnamed3408(); 572 o.modules = buildUnnamed4194();
573 o.nextPageToken = "foo"; 573 o.nextPageToken = "foo";
574 } 574 }
575 buildCounterListModulesResponse--; 575 buildCounterListModulesResponse--;
576 return o; 576 return o;
577 } 577 }
578 578
579 checkListModulesResponse(api.ListModulesResponse o) { 579 checkListModulesResponse(api.ListModulesResponse o) {
580 buildCounterListModulesResponse++; 580 buildCounterListModulesResponse++;
581 if (buildCounterListModulesResponse < 3) { 581 if (buildCounterListModulesResponse < 3) {
582 checkUnnamed3408(o.modules); 582 checkUnnamed4194(o.modules);
583 unittest.expect(o.nextPageToken, unittest.equals('foo')); 583 unittest.expect(o.nextPageToken, unittest.equals('foo'));
584 } 584 }
585 buildCounterListModulesResponse--; 585 buildCounterListModulesResponse--;
586 } 586 }
587 587
588 buildUnnamed3409() { 588 buildUnnamed4195() {
589 var o = new core.List<api.Operation>(); 589 var o = new core.List<api.Operation>();
590 o.add(buildOperation()); 590 o.add(buildOperation());
591 o.add(buildOperation()); 591 o.add(buildOperation());
592 return o; 592 return o;
593 } 593 }
594 594
595 checkUnnamed3409(core.List<api.Operation> o) { 595 checkUnnamed4195(core.List<api.Operation> o) {
596 unittest.expect(o, unittest.hasLength(2)); 596 unittest.expect(o, unittest.hasLength(2));
597 checkOperation(o[0]); 597 checkOperation(o[0]);
598 checkOperation(o[1]); 598 checkOperation(o[1]);
599 } 599 }
600 600
601 core.int buildCounterListOperationsResponse = 0; 601 core.int buildCounterListOperationsResponse = 0;
602 buildListOperationsResponse() { 602 buildListOperationsResponse() {
603 var o = new api.ListOperationsResponse(); 603 var o = new api.ListOperationsResponse();
604 buildCounterListOperationsResponse++; 604 buildCounterListOperationsResponse++;
605 if (buildCounterListOperationsResponse < 3) { 605 if (buildCounterListOperationsResponse < 3) {
606 o.nextPageToken = "foo"; 606 o.nextPageToken = "foo";
607 o.operations = buildUnnamed3409(); 607 o.operations = buildUnnamed4195();
608 } 608 }
609 buildCounterListOperationsResponse--; 609 buildCounterListOperationsResponse--;
610 return o; 610 return o;
611 } 611 }
612 612
613 checkListOperationsResponse(api.ListOperationsResponse o) { 613 checkListOperationsResponse(api.ListOperationsResponse o) {
614 buildCounterListOperationsResponse++; 614 buildCounterListOperationsResponse++;
615 if (buildCounterListOperationsResponse < 3) { 615 if (buildCounterListOperationsResponse < 3) {
616 unittest.expect(o.nextPageToken, unittest.equals('foo')); 616 unittest.expect(o.nextPageToken, unittest.equals('foo'));
617 checkUnnamed3409(o.operations); 617 checkUnnamed4195(o.operations);
618 } 618 }
619 buildCounterListOperationsResponse--; 619 buildCounterListOperationsResponse--;
620 } 620 }
621 621
622 buildUnnamed3410() { 622 buildUnnamed4196() {
623 var o = new core.List<api.Version>(); 623 var o = new core.List<api.Version>();
624 o.add(buildVersion()); 624 o.add(buildVersion());
625 o.add(buildVersion()); 625 o.add(buildVersion());
626 return o; 626 return o;
627 } 627 }
628 628
629 checkUnnamed3410(core.List<api.Version> o) { 629 checkUnnamed4196(core.List<api.Version> o) {
630 unittest.expect(o, unittest.hasLength(2)); 630 unittest.expect(o, unittest.hasLength(2));
631 checkVersion(o[0]); 631 checkVersion(o[0]);
632 checkVersion(o[1]); 632 checkVersion(o[1]);
633 } 633 }
634 634
635 core.int buildCounterListVersionsResponse = 0; 635 core.int buildCounterListVersionsResponse = 0;
636 buildListVersionsResponse() { 636 buildListVersionsResponse() {
637 var o = new api.ListVersionsResponse(); 637 var o = new api.ListVersionsResponse();
638 buildCounterListVersionsResponse++; 638 buildCounterListVersionsResponse++;
639 if (buildCounterListVersionsResponse < 3) { 639 if (buildCounterListVersionsResponse < 3) {
640 o.nextPageToken = "foo"; 640 o.nextPageToken = "foo";
641 o.versions = buildUnnamed3410(); 641 o.versions = buildUnnamed4196();
642 } 642 }
643 buildCounterListVersionsResponse--; 643 buildCounterListVersionsResponse--;
644 return o; 644 return o;
645 } 645 }
646 646
647 checkListVersionsResponse(api.ListVersionsResponse o) { 647 checkListVersionsResponse(api.ListVersionsResponse o) {
648 buildCounterListVersionsResponse++; 648 buildCounterListVersionsResponse++;
649 if (buildCounterListVersionsResponse < 3) { 649 if (buildCounterListVersionsResponse < 3) {
650 unittest.expect(o.nextPageToken, unittest.equals('foo')); 650 unittest.expect(o.nextPageToken, unittest.equals('foo'));
651 checkUnnamed3410(o.versions); 651 checkUnnamed4196(o.versions);
652 } 652 }
653 buildCounterListVersionsResponse--; 653 buildCounterListVersionsResponse--;
654 } 654 }
655 655
656 buildUnnamed3411() { 656 buildUnnamed4197() {
657 var o = new core.Map<core.String, core.String>(); 657 var o = new core.Map<core.String, core.String>();
658 o["x"] = "foo"; 658 o["x"] = "foo";
659 o["y"] = "foo"; 659 o["y"] = "foo";
660 return o; 660 return o;
661 } 661 }
662 662
663 checkUnnamed3411(core.Map<core.String, core.String> o) { 663 checkUnnamed4197(core.Map<core.String, core.String> o) {
664 unittest.expect(o, unittest.hasLength(2)); 664 unittest.expect(o, unittest.hasLength(2));
665 unittest.expect(o["x"], unittest.equals('foo')); 665 unittest.expect(o["x"], unittest.equals('foo'));
666 unittest.expect(o["y"], unittest.equals('foo')); 666 unittest.expect(o["y"], unittest.equals('foo'));
667 } 667 }
668 668
669 buildUnnamed3412() { 669 buildUnnamed4198() {
670 var o = new core.Map<core.String, core.Object>(); 670 var o = new core.Map<core.String, core.Object>();
671 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 671 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
672 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 672 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
673 return o; 673 return o;
674 } 674 }
675 675
676 checkUnnamed3412(core.Map<core.String, core.Object> o) { 676 checkUnnamed4198(core.Map<core.String, core.Object> o) {
677 unittest.expect(o, unittest.hasLength(2)); 677 unittest.expect(o, unittest.hasLength(2));
678 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')); 678 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'));
679 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')); 679 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'));
680 } 680 }
681 681
682 core.int buildCounterLocation = 0; 682 core.int buildCounterLocation = 0;
683 buildLocation() { 683 buildLocation() {
684 var o = new api.Location(); 684 var o = new api.Location();
685 buildCounterLocation++; 685 buildCounterLocation++;
686 if (buildCounterLocation < 3) { 686 if (buildCounterLocation < 3) {
687 o.labels = buildUnnamed3411(); 687 o.labels = buildUnnamed4197();
688 o.locationId = "foo"; 688 o.locationId = "foo";
689 o.metadata = buildUnnamed3412(); 689 o.metadata = buildUnnamed4198();
690 o.name = "foo"; 690 o.name = "foo";
691 } 691 }
692 buildCounterLocation--; 692 buildCounterLocation--;
693 return o; 693 return o;
694 } 694 }
695 695
696 checkLocation(api.Location o) { 696 checkLocation(api.Location o) {
697 buildCounterLocation++; 697 buildCounterLocation++;
698 if (buildCounterLocation < 3) { 698 if (buildCounterLocation < 3) {
699 checkUnnamed3411(o.labels); 699 checkUnnamed4197(o.labels);
700 unittest.expect(o.locationId, unittest.equals('foo')); 700 unittest.expect(o.locationId, unittest.equals('foo'));
701 checkUnnamed3412(o.metadata); 701 checkUnnamed4198(o.metadata);
702 unittest.expect(o.name, unittest.equals('foo')); 702 unittest.expect(o.name, unittest.equals('foo'));
703 } 703 }
704 buildCounterLocation--; 704 buildCounterLocation--;
705 } 705 }
706 706
707 core.int buildCounterLocationMetadata = 0; 707 core.int buildCounterLocationMetadata = 0;
708 buildLocationMetadata() { 708 buildLocationMetadata() {
709 var o = new api.LocationMetadata(); 709 var o = new api.LocationMetadata();
710 buildCounterLocationMetadata++; 710 buildCounterLocationMetadata++;
711 if (buildCounterLocationMetadata < 3) { 711 if (buildCounterLocationMetadata < 3) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 checkModule(api.Module o) { 760 checkModule(api.Module o) {
761 buildCounterModule++; 761 buildCounterModule++;
762 if (buildCounterModule < 3) { 762 if (buildCounterModule < 3) {
763 unittest.expect(o.id, unittest.equals('foo')); 763 unittest.expect(o.id, unittest.equals('foo'));
764 unittest.expect(o.name, unittest.equals('foo')); 764 unittest.expect(o.name, unittest.equals('foo'));
765 checkTrafficSplit(o.split); 765 checkTrafficSplit(o.split);
766 } 766 }
767 buildCounterModule--; 767 buildCounterModule--;
768 } 768 }
769 769
770 buildUnnamed3413() { 770 buildUnnamed4199() {
771 var o = new core.List<core.String>(); 771 var o = new core.List<core.String>();
772 o.add("foo"); 772 o.add("foo");
773 o.add("foo"); 773 o.add("foo");
774 return o; 774 return o;
775 } 775 }
776 776
777 checkUnnamed3413(core.List<core.String> o) { 777 checkUnnamed4199(core.List<core.String> o) {
778 unittest.expect(o, unittest.hasLength(2)); 778 unittest.expect(o, unittest.hasLength(2));
779 unittest.expect(o[0], unittest.equals('foo')); 779 unittest.expect(o[0], unittest.equals('foo'));
780 unittest.expect(o[1], unittest.equals('foo')); 780 unittest.expect(o[1], unittest.equals('foo'));
781 } 781 }
782 782
783 core.int buildCounterNetwork = 0; 783 core.int buildCounterNetwork = 0;
784 buildNetwork() { 784 buildNetwork() {
785 var o = new api.Network(); 785 var o = new api.Network();
786 buildCounterNetwork++; 786 buildCounterNetwork++;
787 if (buildCounterNetwork < 3) { 787 if (buildCounterNetwork < 3) {
788 o.forwardedPorts = buildUnnamed3413(); 788 o.forwardedPorts = buildUnnamed4199();
789 o.instanceTag = "foo"; 789 o.instanceTag = "foo";
790 o.name = "foo"; 790 o.name = "foo";
791 } 791 }
792 buildCounterNetwork--; 792 buildCounterNetwork--;
793 return o; 793 return o;
794 } 794 }
795 795
796 checkNetwork(api.Network o) { 796 checkNetwork(api.Network o) {
797 buildCounterNetwork++; 797 buildCounterNetwork++;
798 if (buildCounterNetwork < 3) { 798 if (buildCounterNetwork < 3) {
799 checkUnnamed3413(o.forwardedPorts); 799 checkUnnamed4199(o.forwardedPorts);
800 unittest.expect(o.instanceTag, unittest.equals('foo')); 800 unittest.expect(o.instanceTag, unittest.equals('foo'));
801 unittest.expect(o.name, unittest.equals('foo')); 801 unittest.expect(o.name, unittest.equals('foo'));
802 } 802 }
803 buildCounterNetwork--; 803 buildCounterNetwork--;
804 } 804 }
805 805
806 core.int buildCounterNetworkUtilization = 0; 806 core.int buildCounterNetworkUtilization = 0;
807 buildNetworkUtilization() { 807 buildNetworkUtilization() {
808 var o = new api.NetworkUtilization(); 808 var o = new api.NetworkUtilization();
809 buildCounterNetworkUtilization++; 809 buildCounterNetworkUtilization++;
(...skipping 11 matching lines...) Expand all
821 buildCounterNetworkUtilization++; 821 buildCounterNetworkUtilization++;
822 if (buildCounterNetworkUtilization < 3) { 822 if (buildCounterNetworkUtilization < 3) {
823 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); 823 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42));
824 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); 824 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42));
825 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); 825 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42));
826 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); 826 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42));
827 } 827 }
828 buildCounterNetworkUtilization--; 828 buildCounterNetworkUtilization--;
829 } 829 }
830 830
831 buildUnnamed3414() { 831 buildUnnamed4200() {
832 var o = new core.Map<core.String, core.Object>(); 832 var o = new core.Map<core.String, core.Object>();
833 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 833 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
834 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 834 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
835 return o; 835 return o;
836 } 836 }
837 837
838 checkUnnamed3414(core.Map<core.String, core.Object> o) { 838 checkUnnamed4200(core.Map<core.String, core.Object> o) {
839 unittest.expect(o, unittest.hasLength(2)); 839 unittest.expect(o, unittest.hasLength(2));
840 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')); 840 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'));
841 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')); 841 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'));
842 } 842 }
843 843
844 buildUnnamed3415() { 844 buildUnnamed4201() {
845 var o = new core.Map<core.String, core.Object>(); 845 var o = new core.Map<core.String, core.Object>();
846 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 846 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
847 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 847 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
848 return o; 848 return o;
849 } 849 }
850 850
851 checkUnnamed3415(core.Map<core.String, core.Object> o) { 851 checkUnnamed4201(core.Map<core.String, core.Object> o) {
852 unittest.expect(o, unittest.hasLength(2)); 852 unittest.expect(o, unittest.hasLength(2));
853 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')); 853 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'));
854 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')); 854 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'));
855 } 855 }
856 856
857 core.int buildCounterOperation = 0; 857 core.int buildCounterOperation = 0;
858 buildOperation() { 858 buildOperation() {
859 var o = new api.Operation(); 859 var o = new api.Operation();
860 buildCounterOperation++; 860 buildCounterOperation++;
861 if (buildCounterOperation < 3) { 861 if (buildCounterOperation < 3) {
862 o.done = true; 862 o.done = true;
863 o.error = buildStatus(); 863 o.error = buildStatus();
864 o.metadata = buildUnnamed3414(); 864 o.metadata = buildUnnamed4200();
865 o.name = "foo"; 865 o.name = "foo";
866 o.response = buildUnnamed3415(); 866 o.response = buildUnnamed4201();
867 } 867 }
868 buildCounterOperation--; 868 buildCounterOperation--;
869 return o; 869 return o;
870 } 870 }
871 871
872 checkOperation(api.Operation o) { 872 checkOperation(api.Operation o) {
873 buildCounterOperation++; 873 buildCounterOperation++;
874 if (buildCounterOperation < 3) { 874 if (buildCounterOperation < 3) {
875 unittest.expect(o.done, unittest.isTrue); 875 unittest.expect(o.done, unittest.isTrue);
876 checkStatus(o.error); 876 checkStatus(o.error);
877 checkUnnamed3414(o.metadata); 877 checkUnnamed4200(o.metadata);
878 unittest.expect(o.name, unittest.equals('foo')); 878 unittest.expect(o.name, unittest.equals('foo'));
879 checkUnnamed3415(o.response); 879 checkUnnamed4201(o.response);
880 } 880 }
881 buildCounterOperation--; 881 buildCounterOperation--;
882 } 882 }
883 883
884 core.int buildCounterOperationMetadata = 0; 884 core.int buildCounterOperationMetadata = 0;
885 buildOperationMetadata() { 885 buildOperationMetadata() {
886 var o = new api.OperationMetadata(); 886 var o = new api.OperationMetadata();
887 buildCounterOperationMetadata++; 887 buildCounterOperationMetadata++;
888 if (buildCounterOperationMetadata < 3) { 888 if (buildCounterOperationMetadata < 3) {
889 o.endTime = "foo"; 889 o.endTime = "foo";
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 1041
1042 checkSourceReference(api.SourceReference o) { 1042 checkSourceReference(api.SourceReference o) {
1043 buildCounterSourceReference++; 1043 buildCounterSourceReference++;
1044 if (buildCounterSourceReference < 3) { 1044 if (buildCounterSourceReference < 3) {
1045 unittest.expect(o.repository, unittest.equals('foo')); 1045 unittest.expect(o.repository, unittest.equals('foo'));
1046 unittest.expect(o.revisionId, unittest.equals('foo')); 1046 unittest.expect(o.revisionId, unittest.equals('foo'));
1047 } 1047 }
1048 buildCounterSourceReference--; 1048 buildCounterSourceReference--;
1049 } 1049 }
1050 1050
1051 buildUnnamed3416() { 1051 buildUnnamed4202() {
1052 var o = new core.Map<core.String, core.String>(); 1052 var o = new core.Map<core.String, core.String>();
1053 o["x"] = "foo"; 1053 o["x"] = "foo";
1054 o["y"] = "foo"; 1054 o["y"] = "foo";
1055 return o; 1055 return o;
1056 } 1056 }
1057 1057
1058 checkUnnamed3416(core.Map<core.String, core.String> o) { 1058 checkUnnamed4202(core.Map<core.String, core.String> o) {
1059 unittest.expect(o, unittest.hasLength(2)); 1059 unittest.expect(o, unittest.hasLength(2));
1060 unittest.expect(o["x"], unittest.equals('foo')); 1060 unittest.expect(o["x"], unittest.equals('foo'));
1061 unittest.expect(o["y"], unittest.equals('foo')); 1061 unittest.expect(o["y"], unittest.equals('foo'));
1062 } 1062 }
1063 1063
1064 core.int buildCounterStaticDirectoryHandler = 0; 1064 core.int buildCounterStaticDirectoryHandler = 0;
1065 buildStaticDirectoryHandler() { 1065 buildStaticDirectoryHandler() {
1066 var o = new api.StaticDirectoryHandler(); 1066 var o = new api.StaticDirectoryHandler();
1067 buildCounterStaticDirectoryHandler++; 1067 buildCounterStaticDirectoryHandler++;
1068 if (buildCounterStaticDirectoryHandler < 3) { 1068 if (buildCounterStaticDirectoryHandler < 3) {
1069 o.applicationReadable = true; 1069 o.applicationReadable = true;
1070 o.directory = "foo"; 1070 o.directory = "foo";
1071 o.expiration = "foo"; 1071 o.expiration = "foo";
1072 o.httpHeaders = buildUnnamed3416(); 1072 o.httpHeaders = buildUnnamed4202();
1073 o.mimeType = "foo"; 1073 o.mimeType = "foo";
1074 o.requireMatchingFile = true; 1074 o.requireMatchingFile = true;
1075 } 1075 }
1076 buildCounterStaticDirectoryHandler--; 1076 buildCounterStaticDirectoryHandler--;
1077 return o; 1077 return o;
1078 } 1078 }
1079 1079
1080 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { 1080 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) {
1081 buildCounterStaticDirectoryHandler++; 1081 buildCounterStaticDirectoryHandler++;
1082 if (buildCounterStaticDirectoryHandler < 3) { 1082 if (buildCounterStaticDirectoryHandler < 3) {
1083 unittest.expect(o.applicationReadable, unittest.isTrue); 1083 unittest.expect(o.applicationReadable, unittest.isTrue);
1084 unittest.expect(o.directory, unittest.equals('foo')); 1084 unittest.expect(o.directory, unittest.equals('foo'));
1085 unittest.expect(o.expiration, unittest.equals('foo')); 1085 unittest.expect(o.expiration, unittest.equals('foo'));
1086 checkUnnamed3416(o.httpHeaders); 1086 checkUnnamed4202(o.httpHeaders);
1087 unittest.expect(o.mimeType, unittest.equals('foo')); 1087 unittest.expect(o.mimeType, unittest.equals('foo'));
1088 unittest.expect(o.requireMatchingFile, unittest.isTrue); 1088 unittest.expect(o.requireMatchingFile, unittest.isTrue);
1089 } 1089 }
1090 buildCounterStaticDirectoryHandler--; 1090 buildCounterStaticDirectoryHandler--;
1091 } 1091 }
1092 1092
1093 buildUnnamed3417() { 1093 buildUnnamed4203() {
1094 var o = new core.Map<core.String, core.String>(); 1094 var o = new core.Map<core.String, core.String>();
1095 o["x"] = "foo"; 1095 o["x"] = "foo";
1096 o["y"] = "foo"; 1096 o["y"] = "foo";
1097 return o; 1097 return o;
1098 } 1098 }
1099 1099
1100 checkUnnamed3417(core.Map<core.String, core.String> o) { 1100 checkUnnamed4203(core.Map<core.String, core.String> o) {
1101 unittest.expect(o, unittest.hasLength(2)); 1101 unittest.expect(o, unittest.hasLength(2));
1102 unittest.expect(o["x"], unittest.equals('foo')); 1102 unittest.expect(o["x"], unittest.equals('foo'));
1103 unittest.expect(o["y"], unittest.equals('foo')); 1103 unittest.expect(o["y"], unittest.equals('foo'));
1104 } 1104 }
1105 1105
1106 core.int buildCounterStaticFilesHandler = 0; 1106 core.int buildCounterStaticFilesHandler = 0;
1107 buildStaticFilesHandler() { 1107 buildStaticFilesHandler() {
1108 var o = new api.StaticFilesHandler(); 1108 var o = new api.StaticFilesHandler();
1109 buildCounterStaticFilesHandler++; 1109 buildCounterStaticFilesHandler++;
1110 if (buildCounterStaticFilesHandler < 3) { 1110 if (buildCounterStaticFilesHandler < 3) {
1111 o.applicationReadable = true; 1111 o.applicationReadable = true;
1112 o.expiration = "foo"; 1112 o.expiration = "foo";
1113 o.httpHeaders = buildUnnamed3417(); 1113 o.httpHeaders = buildUnnamed4203();
1114 o.mimeType = "foo"; 1114 o.mimeType = "foo";
1115 o.path = "foo"; 1115 o.path = "foo";
1116 o.requireMatchingFile = true; 1116 o.requireMatchingFile = true;
1117 o.uploadPathRegex = "foo"; 1117 o.uploadPathRegex = "foo";
1118 } 1118 }
1119 buildCounterStaticFilesHandler--; 1119 buildCounterStaticFilesHandler--;
1120 return o; 1120 return o;
1121 } 1121 }
1122 1122
1123 checkStaticFilesHandler(api.StaticFilesHandler o) { 1123 checkStaticFilesHandler(api.StaticFilesHandler o) {
1124 buildCounterStaticFilesHandler++; 1124 buildCounterStaticFilesHandler++;
1125 if (buildCounterStaticFilesHandler < 3) { 1125 if (buildCounterStaticFilesHandler < 3) {
1126 unittest.expect(o.applicationReadable, unittest.isTrue); 1126 unittest.expect(o.applicationReadable, unittest.isTrue);
1127 unittest.expect(o.expiration, unittest.equals('foo')); 1127 unittest.expect(o.expiration, unittest.equals('foo'));
1128 checkUnnamed3417(o.httpHeaders); 1128 checkUnnamed4203(o.httpHeaders);
1129 unittest.expect(o.mimeType, unittest.equals('foo')); 1129 unittest.expect(o.mimeType, unittest.equals('foo'));
1130 unittest.expect(o.path, unittest.equals('foo')); 1130 unittest.expect(o.path, unittest.equals('foo'));
1131 unittest.expect(o.requireMatchingFile, unittest.isTrue); 1131 unittest.expect(o.requireMatchingFile, unittest.isTrue);
1132 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); 1132 unittest.expect(o.uploadPathRegex, unittest.equals('foo'));
1133 } 1133 }
1134 buildCounterStaticFilesHandler--; 1134 buildCounterStaticFilesHandler--;
1135 } 1135 }
1136 1136
1137 buildUnnamed3418() { 1137 buildUnnamed4204() {
1138 var o = new core.Map<core.String, core.Object>(); 1138 var o = new core.Map<core.String, core.Object>();
1139 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1139 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1140 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1140 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1141 return o; 1141 return o;
1142 } 1142 }
1143 1143
1144 checkUnnamed3418(core.Map<core.String, core.Object> o) { 1144 checkUnnamed4204(core.Map<core.String, core.Object> o) {
1145 unittest.expect(o, unittest.hasLength(2)); 1145 unittest.expect(o, unittest.hasLength(2));
1146 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')); 1146 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'));
1147 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')); 1147 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'));
1148 } 1148 }
1149 1149
1150 buildUnnamed3419() { 1150 buildUnnamed4205() {
1151 var o = new core.List<core.Map<core.String, core.Object>>(); 1151 var o = new core.List<core.Map<core.String, core.Object>>();
1152 o.add(buildUnnamed3418()); 1152 o.add(buildUnnamed4204());
1153 o.add(buildUnnamed3418()); 1153 o.add(buildUnnamed4204());
1154 return o; 1154 return o;
1155 } 1155 }
1156 1156
1157 checkUnnamed3419(core.List<core.Map<core.String, core.Object>> o) { 1157 checkUnnamed4205(core.List<core.Map<core.String, core.Object>> o) {
1158 unittest.expect(o, unittest.hasLength(2)); 1158 unittest.expect(o, unittest.hasLength(2));
1159 checkUnnamed3418(o[0]); 1159 checkUnnamed4204(o[0]);
1160 checkUnnamed3418(o[1]); 1160 checkUnnamed4204(o[1]);
1161 } 1161 }
1162 1162
1163 core.int buildCounterStatus = 0; 1163 core.int buildCounterStatus = 0;
1164 buildStatus() { 1164 buildStatus() {
1165 var o = new api.Status(); 1165 var o = new api.Status();
1166 buildCounterStatus++; 1166 buildCounterStatus++;
1167 if (buildCounterStatus < 3) { 1167 if (buildCounterStatus < 3) {
1168 o.code = 42; 1168 o.code = 42;
1169 o.details = buildUnnamed3419(); 1169 o.details = buildUnnamed4205();
1170 o.message = "foo"; 1170 o.message = "foo";
1171 } 1171 }
1172 buildCounterStatus--; 1172 buildCounterStatus--;
1173 return o; 1173 return o;
1174 } 1174 }
1175 1175
1176 checkStatus(api.Status o) { 1176 checkStatus(api.Status o) {
1177 buildCounterStatus++; 1177 buildCounterStatus++;
1178 if (buildCounterStatus < 3) { 1178 if (buildCounterStatus < 3) {
1179 unittest.expect(o.code, unittest.equals(42)); 1179 unittest.expect(o.code, unittest.equals(42));
1180 checkUnnamed3419(o.details); 1180 checkUnnamed4205(o.details);
1181 unittest.expect(o.message, unittest.equals('foo')); 1181 unittest.expect(o.message, unittest.equals('foo'));
1182 } 1182 }
1183 buildCounterStatus--; 1183 buildCounterStatus--;
1184 } 1184 }
1185 1185
1186 buildUnnamed3420() { 1186 buildUnnamed4206() {
1187 var o = new core.Map<core.String, core.double>(); 1187 var o = new core.Map<core.String, core.double>();
1188 o["x"] = 42.0; 1188 o["x"] = 42.0;
1189 o["y"] = 42.0; 1189 o["y"] = 42.0;
1190 return o; 1190 return o;
1191 } 1191 }
1192 1192
1193 checkUnnamed3420(core.Map<core.String, core.double> o) { 1193 checkUnnamed4206(core.Map<core.String, core.double> o) {
1194 unittest.expect(o, unittest.hasLength(2)); 1194 unittest.expect(o, unittest.hasLength(2));
1195 unittest.expect(o["x"], unittest.equals(42.0)); 1195 unittest.expect(o["x"], unittest.equals(42.0));
1196 unittest.expect(o["y"], unittest.equals(42.0)); 1196 unittest.expect(o["y"], unittest.equals(42.0));
1197 } 1197 }
1198 1198
1199 core.int buildCounterTrafficSplit = 0; 1199 core.int buildCounterTrafficSplit = 0;
1200 buildTrafficSplit() { 1200 buildTrafficSplit() {
1201 var o = new api.TrafficSplit(); 1201 var o = new api.TrafficSplit();
1202 buildCounterTrafficSplit++; 1202 buildCounterTrafficSplit++;
1203 if (buildCounterTrafficSplit < 3) { 1203 if (buildCounterTrafficSplit < 3) {
1204 o.allocations = buildUnnamed3420(); 1204 o.allocations = buildUnnamed4206();
1205 o.shardBy = "foo"; 1205 o.shardBy = "foo";
1206 } 1206 }
1207 buildCounterTrafficSplit--; 1207 buildCounterTrafficSplit--;
1208 return o; 1208 return o;
1209 } 1209 }
1210 1210
1211 checkTrafficSplit(api.TrafficSplit o) { 1211 checkTrafficSplit(api.TrafficSplit o) {
1212 buildCounterTrafficSplit++; 1212 buildCounterTrafficSplit++;
1213 if (buildCounterTrafficSplit < 3) { 1213 if (buildCounterTrafficSplit < 3) {
1214 checkUnnamed3420(o.allocations); 1214 checkUnnamed4206(o.allocations);
1215 unittest.expect(o.shardBy, unittest.equals('foo')); 1215 unittest.expect(o.shardBy, unittest.equals('foo'));
1216 } 1216 }
1217 buildCounterTrafficSplit--; 1217 buildCounterTrafficSplit--;
1218 } 1218 }
1219 1219
1220 core.int buildCounterUrlDispatchRule = 0; 1220 core.int buildCounterUrlDispatchRule = 0;
1221 buildUrlDispatchRule() { 1221 buildUrlDispatchRule() {
1222 var o = new api.UrlDispatchRule(); 1222 var o = new api.UrlDispatchRule();
1223 buildCounterUrlDispatchRule++; 1223 buildCounterUrlDispatchRule++;
1224 if (buildCounterUrlDispatchRule < 3) { 1224 if (buildCounterUrlDispatchRule < 3) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); 1268 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo'));
1269 checkScriptHandler(o.script); 1269 checkScriptHandler(o.script);
1270 unittest.expect(o.securityLevel, unittest.equals('foo')); 1270 unittest.expect(o.securityLevel, unittest.equals('foo'));
1271 checkStaticDirectoryHandler(o.staticDirectory); 1271 checkStaticDirectoryHandler(o.staticDirectory);
1272 checkStaticFilesHandler(o.staticFiles); 1272 checkStaticFilesHandler(o.staticFiles);
1273 unittest.expect(o.urlRegex, unittest.equals('foo')); 1273 unittest.expect(o.urlRegex, unittest.equals('foo'));
1274 } 1274 }
1275 buildCounterUrlMap--; 1275 buildCounterUrlMap--;
1276 } 1276 }
1277 1277
1278 buildUnnamed3421() { 1278 buildUnnamed4207() {
1279 var o = new core.Map<core.String, core.String>(); 1279 var o = new core.Map<core.String, core.String>();
1280 o["x"] = "foo"; 1280 o["x"] = "foo";
1281 o["y"] = "foo"; 1281 o["y"] = "foo";
1282 return o; 1282 return o;
1283 } 1283 }
1284 1284
1285 checkUnnamed3421(core.Map<core.String, core.String> o) { 1285 checkUnnamed4207(core.Map<core.String, core.String> o) {
1286 unittest.expect(o, unittest.hasLength(2)); 1286 unittest.expect(o, unittest.hasLength(2));
1287 unittest.expect(o["x"], unittest.equals('foo')); 1287 unittest.expect(o["x"], unittest.equals('foo'));
1288 unittest.expect(o["y"], unittest.equals('foo')); 1288 unittest.expect(o["y"], unittest.equals('foo'));
1289 } 1289 }
1290 1290
1291 buildUnnamed3422() { 1291 buildUnnamed4208() {
1292 var o = new core.Map<core.String, core.String>(); 1292 var o = new core.Map<core.String, core.String>();
1293 o["x"] = "foo"; 1293 o["x"] = "foo";
1294 o["y"] = "foo"; 1294 o["y"] = "foo";
1295 return o; 1295 return o;
1296 } 1296 }
1297 1297
1298 checkUnnamed3422(core.Map<core.String, core.String> o) { 1298 checkUnnamed4208(core.Map<core.String, core.String> o) {
1299 unittest.expect(o, unittest.hasLength(2)); 1299 unittest.expect(o, unittest.hasLength(2));
1300 unittest.expect(o["x"], unittest.equals('foo')); 1300 unittest.expect(o["x"], unittest.equals('foo'));
1301 unittest.expect(o["y"], unittest.equals('foo')); 1301 unittest.expect(o["y"], unittest.equals('foo'));
1302 } 1302 }
1303 1303
1304 buildUnnamed3423() { 1304 buildUnnamed4209() {
1305 var o = new core.List<api.ErrorHandler>(); 1305 var o = new core.List<api.ErrorHandler>();
1306 o.add(buildErrorHandler()); 1306 o.add(buildErrorHandler());
1307 o.add(buildErrorHandler()); 1307 o.add(buildErrorHandler());
1308 return o; 1308 return o;
1309 } 1309 }
1310 1310
1311 checkUnnamed3423(core.List<api.ErrorHandler> o) { 1311 checkUnnamed4209(core.List<api.ErrorHandler> o) {
1312 unittest.expect(o, unittest.hasLength(2)); 1312 unittest.expect(o, unittest.hasLength(2));
1313 checkErrorHandler(o[0]); 1313 checkErrorHandler(o[0]);
1314 checkErrorHandler(o[1]); 1314 checkErrorHandler(o[1]);
1315 } 1315 }
1316 1316
1317 buildUnnamed3424() { 1317 buildUnnamed4210() {
1318 var o = new core.List<api.UrlMap>(); 1318 var o = new core.List<api.UrlMap>();
1319 o.add(buildUrlMap()); 1319 o.add(buildUrlMap());
1320 o.add(buildUrlMap()); 1320 o.add(buildUrlMap());
1321 return o; 1321 return o;
1322 } 1322 }
1323 1323
1324 checkUnnamed3424(core.List<api.UrlMap> o) { 1324 checkUnnamed4210(core.List<api.UrlMap> o) {
1325 unittest.expect(o, unittest.hasLength(2)); 1325 unittest.expect(o, unittest.hasLength(2));
1326 checkUrlMap(o[0]); 1326 checkUrlMap(o[0]);
1327 checkUrlMap(o[1]); 1327 checkUrlMap(o[1]);
1328 } 1328 }
1329 1329
1330 buildUnnamed3425() { 1330 buildUnnamed4211() {
1331 var o = new core.List<core.String>(); 1331 var o = new core.List<core.String>();
1332 o.add("foo"); 1332 o.add("foo");
1333 o.add("foo"); 1333 o.add("foo");
1334 return o; 1334 return o;
1335 } 1335 }
1336 1336
1337 checkUnnamed3425(core.List<core.String> o) { 1337 checkUnnamed4211(core.List<core.String> o) {
1338 unittest.expect(o, unittest.hasLength(2)); 1338 unittest.expect(o, unittest.hasLength(2));
1339 unittest.expect(o[0], unittest.equals('foo')); 1339 unittest.expect(o[0], unittest.equals('foo'));
1340 unittest.expect(o[1], unittest.equals('foo')); 1340 unittest.expect(o[1], unittest.equals('foo'));
1341 } 1341 }
1342 1342
1343 buildUnnamed3426() { 1343 buildUnnamed4212() {
1344 var o = new core.List<api.Library>(); 1344 var o = new core.List<api.Library>();
1345 o.add(buildLibrary()); 1345 o.add(buildLibrary());
1346 o.add(buildLibrary()); 1346 o.add(buildLibrary());
1347 return o; 1347 return o;
1348 } 1348 }
1349 1349
1350 checkUnnamed3426(core.List<api.Library> o) { 1350 checkUnnamed4212(core.List<api.Library> o) {
1351 unittest.expect(o, unittest.hasLength(2)); 1351 unittest.expect(o, unittest.hasLength(2));
1352 checkLibrary(o[0]); 1352 checkLibrary(o[0]);
1353 checkLibrary(o[1]); 1353 checkLibrary(o[1]);
1354 } 1354 }
1355 1355
1356 core.int buildCounterVersion = 0; 1356 core.int buildCounterVersion = 0;
1357 buildVersion() { 1357 buildVersion() {
1358 var o = new api.Version(); 1358 var o = new api.Version();
1359 buildCounterVersion++; 1359 buildCounterVersion++;
1360 if (buildCounterVersion < 3) { 1360 if (buildCounterVersion < 3) {
1361 o.apiConfig = buildApiConfigHandler(); 1361 o.apiConfig = buildApiConfigHandler();
1362 o.automaticScaling = buildAutomaticScaling(); 1362 o.automaticScaling = buildAutomaticScaling();
1363 o.basicScaling = buildBasicScaling(); 1363 o.basicScaling = buildBasicScaling();
1364 o.betaSettings = buildUnnamed3421(); 1364 o.betaSettings = buildUnnamed4207();
1365 o.creationTime = "foo"; 1365 o.creationTime = "foo";
1366 o.defaultExpiration = "foo"; 1366 o.defaultExpiration = "foo";
1367 o.deployer = "foo"; 1367 o.deployer = "foo";
1368 o.deployment = buildDeployment(); 1368 o.deployment = buildDeployment();
1369 o.env = "foo"; 1369 o.env = "foo";
1370 o.envVariables = buildUnnamed3422(); 1370 o.envVariables = buildUnnamed4208();
1371 o.errorHandlers = buildUnnamed3423(); 1371 o.errorHandlers = buildUnnamed4209();
1372 o.handlers = buildUnnamed3424(); 1372 o.handlers = buildUnnamed4210();
1373 o.healthCheck = buildHealthCheck(); 1373 o.healthCheck = buildHealthCheck();
1374 o.id = "foo"; 1374 o.id = "foo";
1375 o.inboundServices = buildUnnamed3425(); 1375 o.inboundServices = buildUnnamed4211();
1376 o.instanceClass = "foo"; 1376 o.instanceClass = "foo";
1377 o.libraries = buildUnnamed3426(); 1377 o.libraries = buildUnnamed4212();
1378 o.manualScaling = buildManualScaling(); 1378 o.manualScaling = buildManualScaling();
1379 o.name = "foo"; 1379 o.name = "foo";
1380 o.network = buildNetwork(); 1380 o.network = buildNetwork();
1381 o.nobuildFilesRegex = "foo"; 1381 o.nobuildFilesRegex = "foo";
1382 o.resources = buildResources(); 1382 o.resources = buildResources();
1383 o.runtime = "foo"; 1383 o.runtime = "foo";
1384 o.servingStatus = "foo"; 1384 o.servingStatus = "foo";
1385 o.threadsafe = true; 1385 o.threadsafe = true;
1386 o.vm = true; 1386 o.vm = true;
1387 } 1387 }
1388 buildCounterVersion--; 1388 buildCounterVersion--;
1389 return o; 1389 return o;
1390 } 1390 }
1391 1391
1392 checkVersion(api.Version o) { 1392 checkVersion(api.Version o) {
1393 buildCounterVersion++; 1393 buildCounterVersion++;
1394 if (buildCounterVersion < 3) { 1394 if (buildCounterVersion < 3) {
1395 checkApiConfigHandler(o.apiConfig); 1395 checkApiConfigHandler(o.apiConfig);
1396 checkAutomaticScaling(o.automaticScaling); 1396 checkAutomaticScaling(o.automaticScaling);
1397 checkBasicScaling(o.basicScaling); 1397 checkBasicScaling(o.basicScaling);
1398 checkUnnamed3421(o.betaSettings); 1398 checkUnnamed4207(o.betaSettings);
1399 unittest.expect(o.creationTime, unittest.equals('foo')); 1399 unittest.expect(o.creationTime, unittest.equals('foo'));
1400 unittest.expect(o.defaultExpiration, unittest.equals('foo')); 1400 unittest.expect(o.defaultExpiration, unittest.equals('foo'));
1401 unittest.expect(o.deployer, unittest.equals('foo')); 1401 unittest.expect(o.deployer, unittest.equals('foo'));
1402 checkDeployment(o.deployment); 1402 checkDeployment(o.deployment);
1403 unittest.expect(o.env, unittest.equals('foo')); 1403 unittest.expect(o.env, unittest.equals('foo'));
1404 checkUnnamed3422(o.envVariables); 1404 checkUnnamed4208(o.envVariables);
1405 checkUnnamed3423(o.errorHandlers); 1405 checkUnnamed4209(o.errorHandlers);
1406 checkUnnamed3424(o.handlers); 1406 checkUnnamed4210(o.handlers);
1407 checkHealthCheck(o.healthCheck); 1407 checkHealthCheck(o.healthCheck);
1408 unittest.expect(o.id, unittest.equals('foo')); 1408 unittest.expect(o.id, unittest.equals('foo'));
1409 checkUnnamed3425(o.inboundServices); 1409 checkUnnamed4211(o.inboundServices);
1410 unittest.expect(o.instanceClass, unittest.equals('foo')); 1410 unittest.expect(o.instanceClass, unittest.equals('foo'));
1411 checkUnnamed3426(o.libraries); 1411 checkUnnamed4212(o.libraries);
1412 checkManualScaling(o.manualScaling); 1412 checkManualScaling(o.manualScaling);
1413 unittest.expect(o.name, unittest.equals('foo')); 1413 unittest.expect(o.name, unittest.equals('foo'));
1414 checkNetwork(o.network); 1414 checkNetwork(o.network);
1415 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); 1415 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo'));
1416 checkResources(o.resources); 1416 checkResources(o.resources);
1417 unittest.expect(o.runtime, unittest.equals('foo')); 1417 unittest.expect(o.runtime, unittest.equals('foo'));
1418 unittest.expect(o.servingStatus, unittest.equals('foo')); 1418 unittest.expect(o.servingStatus, unittest.equals('foo'));
1419 unittest.expect(o.threadsafe, unittest.isTrue); 1419 unittest.expect(o.threadsafe, unittest.isTrue);
1420 unittest.expect(o.vm, unittest.isTrue); 1420 unittest.expect(o.vm, unittest.isTrue);
1421 } 1421 }
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after
2977 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken : arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response ) { 2977 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken : arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response ) {
2978 checkListOperationsResponse(response); 2978 checkListOperationsResponse(response);
2979 }))); 2979 })));
2980 }); 2980 });
2981 2981
2982 }); 2982 });
2983 2983
2984 2984
2985 } 2985 }
2986 2986
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698