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

Side by Side Diff: generated/googleapis/test/appengine/v1_test.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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.appengine.v1.test; 1 library googleapis.appengine.v1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...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 buildUnnamed2947() { 100 buildUnnamed3038() {
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 checkUnnamed2947(core.List<api.UrlDispatchRule> o) { 107 checkUnnamed3038(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 = buildUnnamed2947(); 123 o.dispatchRules = buildUnnamed3038();
124 o.id = "foo"; 124 o.id = "foo";
125 o.locationId = "foo"; 125 o.locationId = "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 checkUnnamed2947(o.dispatchRules); 140 checkUnnamed3038(o.dispatchRules);
141 unittest.expect(o.id, unittest.equals('foo')); 141 unittest.expect(o.id, unittest.equals('foo'));
142 unittest.expect(o.locationId, unittest.equals('foo')); 142 unittest.expect(o.locationId, 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 } 259 }
260 260
261 checkDebugInstanceRequest(api.DebugInstanceRequest o) { 261 checkDebugInstanceRequest(api.DebugInstanceRequest o) {
262 buildCounterDebugInstanceRequest++; 262 buildCounterDebugInstanceRequest++;
263 if (buildCounterDebugInstanceRequest < 3) { 263 if (buildCounterDebugInstanceRequest < 3) {
264 unittest.expect(o.sshKey, unittest.equals('foo')); 264 unittest.expect(o.sshKey, unittest.equals('foo'));
265 } 265 }
266 buildCounterDebugInstanceRequest--; 266 buildCounterDebugInstanceRequest--;
267 } 267 }
268 268
269 buildUnnamed2948() { 269 buildUnnamed3039() {
270 var o = new core.Map<core.String, api.FileInfo>(); 270 var o = new core.Map<core.String, api.FileInfo>();
271 o["x"] = buildFileInfo(); 271 o["x"] = buildFileInfo();
272 o["y"] = buildFileInfo(); 272 o["y"] = buildFileInfo();
273 return o; 273 return o;
274 } 274 }
275 275
276 checkUnnamed2948(core.Map<core.String, api.FileInfo> o) { 276 checkUnnamed3039(core.Map<core.String, api.FileInfo> o) {
277 unittest.expect(o, unittest.hasLength(2)); 277 unittest.expect(o, unittest.hasLength(2));
278 checkFileInfo(o["x"]); 278 checkFileInfo(o["x"]);
279 checkFileInfo(o["y"]); 279 checkFileInfo(o["y"]);
280 } 280 }
281 281
282 core.int buildCounterDeployment = 0; 282 core.int buildCounterDeployment = 0;
283 buildDeployment() { 283 buildDeployment() {
284 var o = new api.Deployment(); 284 var o = new api.Deployment();
285 buildCounterDeployment++; 285 buildCounterDeployment++;
286 if (buildCounterDeployment < 3) { 286 if (buildCounterDeployment < 3) {
287 o.container = buildContainerInfo(); 287 o.container = buildContainerInfo();
288 o.files = buildUnnamed2948(); 288 o.files = buildUnnamed3039();
289 o.zip = buildZipInfo(); 289 o.zip = buildZipInfo();
290 } 290 }
291 buildCounterDeployment--; 291 buildCounterDeployment--;
292 return o; 292 return o;
293 } 293 }
294 294
295 checkDeployment(api.Deployment o) { 295 checkDeployment(api.Deployment o) {
296 buildCounterDeployment++; 296 buildCounterDeployment++;
297 if (buildCounterDeployment < 3) { 297 if (buildCounterDeployment < 3) {
298 checkContainerInfo(o.container); 298 checkContainerInfo(o.container);
299 checkUnnamed2948(o.files); 299 checkUnnamed3039(o.files);
300 checkZipInfo(o.zip); 300 checkZipInfo(o.zip);
301 } 301 }
302 buildCounterDeployment--; 302 buildCounterDeployment--;
303 } 303 }
304 304
305 core.int buildCounterDiskUtilization = 0; 305 core.int buildCounterDiskUtilization = 0;
306 buildDiskUtilization() { 306 buildDiskUtilization() {
307 var o = new api.DiskUtilization(); 307 var o = new api.DiskUtilization();
308 buildCounterDiskUtilization++; 308 buildCounterDiskUtilization++;
309 if (buildCounterDiskUtilization < 3) { 309 if (buildCounterDiskUtilization < 3) {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 488
489 checkLibrary(api.Library o) { 489 checkLibrary(api.Library o) {
490 buildCounterLibrary++; 490 buildCounterLibrary++;
491 if (buildCounterLibrary < 3) { 491 if (buildCounterLibrary < 3) {
492 unittest.expect(o.name, unittest.equals('foo')); 492 unittest.expect(o.name, unittest.equals('foo'));
493 unittest.expect(o.version, unittest.equals('foo')); 493 unittest.expect(o.version, unittest.equals('foo'));
494 } 494 }
495 buildCounterLibrary--; 495 buildCounterLibrary--;
496 } 496 }
497 497
498 buildUnnamed2949() { 498 buildUnnamed3040() {
499 var o = new core.List<api.Instance>(); 499 var o = new core.List<api.Instance>();
500 o.add(buildInstance()); 500 o.add(buildInstance());
501 o.add(buildInstance()); 501 o.add(buildInstance());
502 return o; 502 return o;
503 } 503 }
504 504
505 checkUnnamed2949(core.List<api.Instance> o) { 505 checkUnnamed3040(core.List<api.Instance> o) {
506 unittest.expect(o, unittest.hasLength(2)); 506 unittest.expect(o, unittest.hasLength(2));
507 checkInstance(o[0]); 507 checkInstance(o[0]);
508 checkInstance(o[1]); 508 checkInstance(o[1]);
509 } 509 }
510 510
511 core.int buildCounterListInstancesResponse = 0; 511 core.int buildCounterListInstancesResponse = 0;
512 buildListInstancesResponse() { 512 buildListInstancesResponse() {
513 var o = new api.ListInstancesResponse(); 513 var o = new api.ListInstancesResponse();
514 buildCounterListInstancesResponse++; 514 buildCounterListInstancesResponse++;
515 if (buildCounterListInstancesResponse < 3) { 515 if (buildCounterListInstancesResponse < 3) {
516 o.instances = buildUnnamed2949(); 516 o.instances = buildUnnamed3040();
517 o.nextPageToken = "foo"; 517 o.nextPageToken = "foo";
518 } 518 }
519 buildCounterListInstancesResponse--; 519 buildCounterListInstancesResponse--;
520 return o; 520 return o;
521 } 521 }
522 522
523 checkListInstancesResponse(api.ListInstancesResponse o) { 523 checkListInstancesResponse(api.ListInstancesResponse o) {
524 buildCounterListInstancesResponse++; 524 buildCounterListInstancesResponse++;
525 if (buildCounterListInstancesResponse < 3) { 525 if (buildCounterListInstancesResponse < 3) {
526 checkUnnamed2949(o.instances); 526 checkUnnamed3040(o.instances);
527 unittest.expect(o.nextPageToken, unittest.equals('foo')); 527 unittest.expect(o.nextPageToken, unittest.equals('foo'));
528 } 528 }
529 buildCounterListInstancesResponse--; 529 buildCounterListInstancesResponse--;
530 } 530 }
531 531
532 buildUnnamed2950() { 532 buildUnnamed3041() {
533 var o = new core.List<api.Location>(); 533 var o = new core.List<api.Location>();
534 o.add(buildLocation()); 534 o.add(buildLocation());
535 o.add(buildLocation()); 535 o.add(buildLocation());
536 return o; 536 return o;
537 } 537 }
538 538
539 checkUnnamed2950(core.List<api.Location> o) { 539 checkUnnamed3041(core.List<api.Location> o) {
540 unittest.expect(o, unittest.hasLength(2)); 540 unittest.expect(o, unittest.hasLength(2));
541 checkLocation(o[0]); 541 checkLocation(o[0]);
542 checkLocation(o[1]); 542 checkLocation(o[1]);
543 } 543 }
544 544
545 core.int buildCounterListLocationsResponse = 0; 545 core.int buildCounterListLocationsResponse = 0;
546 buildListLocationsResponse() { 546 buildListLocationsResponse() {
547 var o = new api.ListLocationsResponse(); 547 var o = new api.ListLocationsResponse();
548 buildCounterListLocationsResponse++; 548 buildCounterListLocationsResponse++;
549 if (buildCounterListLocationsResponse < 3) { 549 if (buildCounterListLocationsResponse < 3) {
550 o.locations = buildUnnamed2950(); 550 o.locations = buildUnnamed3041();
551 o.nextPageToken = "foo"; 551 o.nextPageToken = "foo";
552 } 552 }
553 buildCounterListLocationsResponse--; 553 buildCounterListLocationsResponse--;
554 return o; 554 return o;
555 } 555 }
556 556
557 checkListLocationsResponse(api.ListLocationsResponse o) { 557 checkListLocationsResponse(api.ListLocationsResponse o) {
558 buildCounterListLocationsResponse++; 558 buildCounterListLocationsResponse++;
559 if (buildCounterListLocationsResponse < 3) { 559 if (buildCounterListLocationsResponse < 3) {
560 checkUnnamed2950(o.locations); 560 checkUnnamed3041(o.locations);
561 unittest.expect(o.nextPageToken, unittest.equals('foo')); 561 unittest.expect(o.nextPageToken, unittest.equals('foo'));
562 } 562 }
563 buildCounterListLocationsResponse--; 563 buildCounterListLocationsResponse--;
564 } 564 }
565 565
566 buildUnnamed2951() { 566 buildUnnamed3042() {
567 var o = new core.List<api.Operation>(); 567 var o = new core.List<api.Operation>();
568 o.add(buildOperation()); 568 o.add(buildOperation());
569 o.add(buildOperation()); 569 o.add(buildOperation());
570 return o; 570 return o;
571 } 571 }
572 572
573 checkUnnamed2951(core.List<api.Operation> o) { 573 checkUnnamed3042(core.List<api.Operation> o) {
574 unittest.expect(o, unittest.hasLength(2)); 574 unittest.expect(o, unittest.hasLength(2));
575 checkOperation(o[0]); 575 checkOperation(o[0]);
576 checkOperation(o[1]); 576 checkOperation(o[1]);
577 } 577 }
578 578
579 core.int buildCounterListOperationsResponse = 0; 579 core.int buildCounterListOperationsResponse = 0;
580 buildListOperationsResponse() { 580 buildListOperationsResponse() {
581 var o = new api.ListOperationsResponse(); 581 var o = new api.ListOperationsResponse();
582 buildCounterListOperationsResponse++; 582 buildCounterListOperationsResponse++;
583 if (buildCounterListOperationsResponse < 3) { 583 if (buildCounterListOperationsResponse < 3) {
584 o.nextPageToken = "foo"; 584 o.nextPageToken = "foo";
585 o.operations = buildUnnamed2951(); 585 o.operations = buildUnnamed3042();
586 } 586 }
587 buildCounterListOperationsResponse--; 587 buildCounterListOperationsResponse--;
588 return o; 588 return o;
589 } 589 }
590 590
591 checkListOperationsResponse(api.ListOperationsResponse o) { 591 checkListOperationsResponse(api.ListOperationsResponse o) {
592 buildCounterListOperationsResponse++; 592 buildCounterListOperationsResponse++;
593 if (buildCounterListOperationsResponse < 3) { 593 if (buildCounterListOperationsResponse < 3) {
594 unittest.expect(o.nextPageToken, unittest.equals('foo')); 594 unittest.expect(o.nextPageToken, unittest.equals('foo'));
595 checkUnnamed2951(o.operations); 595 checkUnnamed3042(o.operations);
596 } 596 }
597 buildCounterListOperationsResponse--; 597 buildCounterListOperationsResponse--;
598 } 598 }
599 599
600 buildUnnamed2952() { 600 buildUnnamed3043() {
601 var o = new core.List<api.Service>(); 601 var o = new core.List<api.Service>();
602 o.add(buildService()); 602 o.add(buildService());
603 o.add(buildService()); 603 o.add(buildService());
604 return o; 604 return o;
605 } 605 }
606 606
607 checkUnnamed2952(core.List<api.Service> o) { 607 checkUnnamed3043(core.List<api.Service> o) {
608 unittest.expect(o, unittest.hasLength(2)); 608 unittest.expect(o, unittest.hasLength(2));
609 checkService(o[0]); 609 checkService(o[0]);
610 checkService(o[1]); 610 checkService(o[1]);
611 } 611 }
612 612
613 core.int buildCounterListServicesResponse = 0; 613 core.int buildCounterListServicesResponse = 0;
614 buildListServicesResponse() { 614 buildListServicesResponse() {
615 var o = new api.ListServicesResponse(); 615 var o = new api.ListServicesResponse();
616 buildCounterListServicesResponse++; 616 buildCounterListServicesResponse++;
617 if (buildCounterListServicesResponse < 3) { 617 if (buildCounterListServicesResponse < 3) {
618 o.nextPageToken = "foo"; 618 o.nextPageToken = "foo";
619 o.services = buildUnnamed2952(); 619 o.services = buildUnnamed3043();
620 } 620 }
621 buildCounterListServicesResponse--; 621 buildCounterListServicesResponse--;
622 return o; 622 return o;
623 } 623 }
624 624
625 checkListServicesResponse(api.ListServicesResponse o) { 625 checkListServicesResponse(api.ListServicesResponse o) {
626 buildCounterListServicesResponse++; 626 buildCounterListServicesResponse++;
627 if (buildCounterListServicesResponse < 3) { 627 if (buildCounterListServicesResponse < 3) {
628 unittest.expect(o.nextPageToken, unittest.equals('foo')); 628 unittest.expect(o.nextPageToken, unittest.equals('foo'));
629 checkUnnamed2952(o.services); 629 checkUnnamed3043(o.services);
630 } 630 }
631 buildCounterListServicesResponse--; 631 buildCounterListServicesResponse--;
632 } 632 }
633 633
634 buildUnnamed2953() { 634 buildUnnamed3044() {
635 var o = new core.List<api.Version>(); 635 var o = new core.List<api.Version>();
636 o.add(buildVersion()); 636 o.add(buildVersion());
637 o.add(buildVersion()); 637 o.add(buildVersion());
638 return o; 638 return o;
639 } 639 }
640 640
641 checkUnnamed2953(core.List<api.Version> o) { 641 checkUnnamed3044(core.List<api.Version> o) {
642 unittest.expect(o, unittest.hasLength(2)); 642 unittest.expect(o, unittest.hasLength(2));
643 checkVersion(o[0]); 643 checkVersion(o[0]);
644 checkVersion(o[1]); 644 checkVersion(o[1]);
645 } 645 }
646 646
647 core.int buildCounterListVersionsResponse = 0; 647 core.int buildCounterListVersionsResponse = 0;
648 buildListVersionsResponse() { 648 buildListVersionsResponse() {
649 var o = new api.ListVersionsResponse(); 649 var o = new api.ListVersionsResponse();
650 buildCounterListVersionsResponse++; 650 buildCounterListVersionsResponse++;
651 if (buildCounterListVersionsResponse < 3) { 651 if (buildCounterListVersionsResponse < 3) {
652 o.nextPageToken = "foo"; 652 o.nextPageToken = "foo";
653 o.versions = buildUnnamed2953(); 653 o.versions = buildUnnamed3044();
654 } 654 }
655 buildCounterListVersionsResponse--; 655 buildCounterListVersionsResponse--;
656 return o; 656 return o;
657 } 657 }
658 658
659 checkListVersionsResponse(api.ListVersionsResponse o) { 659 checkListVersionsResponse(api.ListVersionsResponse o) {
660 buildCounterListVersionsResponse++; 660 buildCounterListVersionsResponse++;
661 if (buildCounterListVersionsResponse < 3) { 661 if (buildCounterListVersionsResponse < 3) {
662 unittest.expect(o.nextPageToken, unittest.equals('foo')); 662 unittest.expect(o.nextPageToken, unittest.equals('foo'));
663 checkUnnamed2953(o.versions); 663 checkUnnamed3044(o.versions);
664 } 664 }
665 buildCounterListVersionsResponse--; 665 buildCounterListVersionsResponse--;
666 } 666 }
667 667
668 buildUnnamed2954() { 668 buildUnnamed3045() {
669 var o = new core.Map<core.String, core.String>(); 669 var o = new core.Map<core.String, core.String>();
670 o["x"] = "foo"; 670 o["x"] = "foo";
671 o["y"] = "foo"; 671 o["y"] = "foo";
672 return o; 672 return o;
673 } 673 }
674 674
675 checkUnnamed2954(core.Map<core.String, core.String> o) { 675 checkUnnamed3045(core.Map<core.String, core.String> o) {
676 unittest.expect(o, unittest.hasLength(2)); 676 unittest.expect(o, unittest.hasLength(2));
677 unittest.expect(o["x"], unittest.equals('foo')); 677 unittest.expect(o["x"], unittest.equals('foo'));
678 unittest.expect(o["y"], unittest.equals('foo')); 678 unittest.expect(o["y"], unittest.equals('foo'));
679 } 679 }
680 680
681 buildUnnamed2955() { 681 buildUnnamed3046() {
682 var o = new core.Map<core.String, core.Object>(); 682 var o = new core.Map<core.String, core.Object>();
683 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 683 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
684 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 684 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
685 return o; 685 return o;
686 } 686 }
687 687
688 checkUnnamed2955(core.Map<core.String, core.Object> o) { 688 checkUnnamed3046(core.Map<core.String, core.Object> o) {
689 unittest.expect(o, unittest.hasLength(2)); 689 unittest.expect(o, unittest.hasLength(2));
690 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')); 690 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'));
691 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')); 691 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'));
692 } 692 }
693 693
694 core.int buildCounterLocation = 0; 694 core.int buildCounterLocation = 0;
695 buildLocation() { 695 buildLocation() {
696 var o = new api.Location(); 696 var o = new api.Location();
697 buildCounterLocation++; 697 buildCounterLocation++;
698 if (buildCounterLocation < 3) { 698 if (buildCounterLocation < 3) {
699 o.labels = buildUnnamed2954(); 699 o.labels = buildUnnamed3045();
700 o.locationId = "foo"; 700 o.locationId = "foo";
701 o.metadata = buildUnnamed2955(); 701 o.metadata = buildUnnamed3046();
702 o.name = "foo"; 702 o.name = "foo";
703 } 703 }
704 buildCounterLocation--; 704 buildCounterLocation--;
705 return o; 705 return o;
706 } 706 }
707 707
708 checkLocation(api.Location o) { 708 checkLocation(api.Location o) {
709 buildCounterLocation++; 709 buildCounterLocation++;
710 if (buildCounterLocation < 3) { 710 if (buildCounterLocation < 3) {
711 checkUnnamed2954(o.labels); 711 checkUnnamed3045(o.labels);
712 unittest.expect(o.locationId, unittest.equals('foo')); 712 unittest.expect(o.locationId, unittest.equals('foo'));
713 checkUnnamed2955(o.metadata); 713 checkUnnamed3046(o.metadata);
714 unittest.expect(o.name, unittest.equals('foo')); 714 unittest.expect(o.name, unittest.equals('foo'));
715 } 715 }
716 buildCounterLocation--; 716 buildCounterLocation--;
717 } 717 }
718 718
719 core.int buildCounterLocationMetadata = 0; 719 core.int buildCounterLocationMetadata = 0;
720 buildLocationMetadata() { 720 buildLocationMetadata() {
721 var o = new api.LocationMetadata(); 721 var o = new api.LocationMetadata();
722 buildCounterLocationMetadata++; 722 buildCounterLocationMetadata++;
723 if (buildCounterLocationMetadata < 3) { 723 if (buildCounterLocationMetadata < 3) {
(...skipping 25 matching lines...) Expand all
749 } 749 }
750 750
751 checkManualScaling(api.ManualScaling o) { 751 checkManualScaling(api.ManualScaling o) {
752 buildCounterManualScaling++; 752 buildCounterManualScaling++;
753 if (buildCounterManualScaling < 3) { 753 if (buildCounterManualScaling < 3) {
754 unittest.expect(o.instances, unittest.equals(42)); 754 unittest.expect(o.instances, unittest.equals(42));
755 } 755 }
756 buildCounterManualScaling--; 756 buildCounterManualScaling--;
757 } 757 }
758 758
759 buildUnnamed2956() { 759 buildUnnamed3047() {
760 var o = new core.List<core.String>(); 760 var o = new core.List<core.String>();
761 o.add("foo"); 761 o.add("foo");
762 o.add("foo"); 762 o.add("foo");
763 return o; 763 return o;
764 } 764 }
765 765
766 checkUnnamed2956(core.List<core.String> o) { 766 checkUnnamed3047(core.List<core.String> o) {
767 unittest.expect(o, unittest.hasLength(2)); 767 unittest.expect(o, unittest.hasLength(2));
768 unittest.expect(o[0], unittest.equals('foo')); 768 unittest.expect(o[0], unittest.equals('foo'));
769 unittest.expect(o[1], unittest.equals('foo')); 769 unittest.expect(o[1], unittest.equals('foo'));
770 } 770 }
771 771
772 core.int buildCounterNetwork = 0; 772 core.int buildCounterNetwork = 0;
773 buildNetwork() { 773 buildNetwork() {
774 var o = new api.Network(); 774 var o = new api.Network();
775 buildCounterNetwork++; 775 buildCounterNetwork++;
776 if (buildCounterNetwork < 3) { 776 if (buildCounterNetwork < 3) {
777 o.forwardedPorts = buildUnnamed2956(); 777 o.forwardedPorts = buildUnnamed3047();
778 o.instanceTag = "foo"; 778 o.instanceTag = "foo";
779 o.name = "foo"; 779 o.name = "foo";
780 o.subnetworkName = "foo"; 780 o.subnetworkName = "foo";
781 } 781 }
782 buildCounterNetwork--; 782 buildCounterNetwork--;
783 return o; 783 return o;
784 } 784 }
785 785
786 checkNetwork(api.Network o) { 786 checkNetwork(api.Network o) {
787 buildCounterNetwork++; 787 buildCounterNetwork++;
788 if (buildCounterNetwork < 3) { 788 if (buildCounterNetwork < 3) {
789 checkUnnamed2956(o.forwardedPorts); 789 checkUnnamed3047(o.forwardedPorts);
790 unittest.expect(o.instanceTag, unittest.equals('foo')); 790 unittest.expect(o.instanceTag, unittest.equals('foo'));
791 unittest.expect(o.name, unittest.equals('foo')); 791 unittest.expect(o.name, unittest.equals('foo'));
792 unittest.expect(o.subnetworkName, unittest.equals('foo')); 792 unittest.expect(o.subnetworkName, unittest.equals('foo'));
793 } 793 }
794 buildCounterNetwork--; 794 buildCounterNetwork--;
795 } 795 }
796 796
797 core.int buildCounterNetworkUtilization = 0; 797 core.int buildCounterNetworkUtilization = 0;
798 buildNetworkUtilization() { 798 buildNetworkUtilization() {
799 var o = new api.NetworkUtilization(); 799 var o = new api.NetworkUtilization();
(...skipping 12 matching lines...) Expand all
812 buildCounterNetworkUtilization++; 812 buildCounterNetworkUtilization++;
813 if (buildCounterNetworkUtilization < 3) { 813 if (buildCounterNetworkUtilization < 3) {
814 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42)); 814 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42));
815 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42)); 815 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42));
816 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42)); 816 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42));
817 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42)); 817 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42));
818 } 818 }
819 buildCounterNetworkUtilization--; 819 buildCounterNetworkUtilization--;
820 } 820 }
821 821
822 buildUnnamed2957() { 822 buildUnnamed3048() {
823 var o = new core.Map<core.String, core.Object>(); 823 var o = new core.Map<core.String, core.Object>();
824 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 824 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
825 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 825 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
826 return o; 826 return o;
827 } 827 }
828 828
829 checkUnnamed2957(core.Map<core.String, core.Object> o) { 829 checkUnnamed3048(core.Map<core.String, core.Object> o) {
830 unittest.expect(o, unittest.hasLength(2)); 830 unittest.expect(o, unittest.hasLength(2));
831 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')); 831 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'));
832 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')); 832 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'));
833 } 833 }
834 834
835 buildUnnamed2958() { 835 buildUnnamed3049() {
836 var o = new core.Map<core.String, core.Object>(); 836 var o = new core.Map<core.String, core.Object>();
837 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 837 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
838 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 838 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
839 return o; 839 return o;
840 } 840 }
841 841
842 checkUnnamed2958(core.Map<core.String, core.Object> o) { 842 checkUnnamed3049(core.Map<core.String, core.Object> o) {
843 unittest.expect(o, unittest.hasLength(2)); 843 unittest.expect(o, unittest.hasLength(2));
844 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')); 844 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'));
845 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')); 845 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'));
846 } 846 }
847 847
848 core.int buildCounterOperation = 0; 848 core.int buildCounterOperation = 0;
849 buildOperation() { 849 buildOperation() {
850 var o = new api.Operation(); 850 var o = new api.Operation();
851 buildCounterOperation++; 851 buildCounterOperation++;
852 if (buildCounterOperation < 3) { 852 if (buildCounterOperation < 3) {
853 o.done = true; 853 o.done = true;
854 o.error = buildStatus(); 854 o.error = buildStatus();
855 o.metadata = buildUnnamed2957(); 855 o.metadata = buildUnnamed3048();
856 o.name = "foo"; 856 o.name = "foo";
857 o.response = buildUnnamed2958(); 857 o.response = buildUnnamed3049();
858 } 858 }
859 buildCounterOperation--; 859 buildCounterOperation--;
860 return o; 860 return o;
861 } 861 }
862 862
863 checkOperation(api.Operation o) { 863 checkOperation(api.Operation o) {
864 buildCounterOperation++; 864 buildCounterOperation++;
865 if (buildCounterOperation < 3) { 865 if (buildCounterOperation < 3) {
866 unittest.expect(o.done, unittest.isTrue); 866 unittest.expect(o.done, unittest.isTrue);
867 checkStatus(o.error); 867 checkStatus(o.error);
868 checkUnnamed2957(o.metadata); 868 checkUnnamed3048(o.metadata);
869 unittest.expect(o.name, unittest.equals('foo')); 869 unittest.expect(o.name, unittest.equals('foo'));
870 checkUnnamed2958(o.response); 870 checkUnnamed3049(o.response);
871 } 871 }
872 buildCounterOperation--; 872 buildCounterOperation--;
873 } 873 }
874 874
875 core.int buildCounterOperationMetadata = 0; 875 core.int buildCounterOperationMetadata = 0;
876 buildOperationMetadata() { 876 buildOperationMetadata() {
877 var o = new api.OperationMetadata(); 877 var o = new api.OperationMetadata();
878 buildCounterOperationMetadata++; 878 buildCounterOperationMetadata++;
879 if (buildCounterOperationMetadata < 3) { 879 if (buildCounterOperationMetadata < 3) {
880 o.endTime = "foo"; 880 o.endTime = "foo";
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 if (buildCounterOperationMetadataExperimental < 3) { 921 if (buildCounterOperationMetadataExperimental < 3) {
922 unittest.expect(o.endTime, unittest.equals('foo')); 922 unittest.expect(o.endTime, unittest.equals('foo'));
923 unittest.expect(o.insertTime, unittest.equals('foo')); 923 unittest.expect(o.insertTime, unittest.equals('foo'));
924 unittest.expect(o.method, unittest.equals('foo')); 924 unittest.expect(o.method, unittest.equals('foo'));
925 unittest.expect(o.target, unittest.equals('foo')); 925 unittest.expect(o.target, unittest.equals('foo'));
926 unittest.expect(o.user, unittest.equals('foo')); 926 unittest.expect(o.user, unittest.equals('foo'));
927 } 927 }
928 buildCounterOperationMetadataExperimental--; 928 buildCounterOperationMetadataExperimental--;
929 } 929 }
930 930
931 buildUnnamed2959() { 931 buildUnnamed3050() {
932 var o = new core.List<core.String>(); 932 var o = new core.List<core.String>();
933 o.add("foo"); 933 o.add("foo");
934 o.add("foo"); 934 o.add("foo");
935 return o; 935 return o;
936 } 936 }
937 937
938 checkUnnamed2959(core.List<core.String> o) { 938 checkUnnamed3050(core.List<core.String> o) {
939 unittest.expect(o, unittest.hasLength(2)); 939 unittest.expect(o, unittest.hasLength(2));
940 unittest.expect(o[0], unittest.equals('foo')); 940 unittest.expect(o[0], unittest.equals('foo'));
941 unittest.expect(o[1], unittest.equals('foo')); 941 unittest.expect(o[1], unittest.equals('foo'));
942 } 942 }
943 943
944 core.int buildCounterOperationMetadataV1 = 0; 944 core.int buildCounterOperationMetadataV1 = 0;
945 buildOperationMetadataV1() { 945 buildOperationMetadataV1() {
946 var o = new api.OperationMetadataV1(); 946 var o = new api.OperationMetadataV1();
947 buildCounterOperationMetadataV1++; 947 buildCounterOperationMetadataV1++;
948 if (buildCounterOperationMetadataV1 < 3) { 948 if (buildCounterOperationMetadataV1 < 3) {
949 o.endTime = "foo"; 949 o.endTime = "foo";
950 o.ephemeralMessage = "foo"; 950 o.ephemeralMessage = "foo";
951 o.insertTime = "foo"; 951 o.insertTime = "foo";
952 o.method = "foo"; 952 o.method = "foo";
953 o.target = "foo"; 953 o.target = "foo";
954 o.user = "foo"; 954 o.user = "foo";
955 o.warning = buildUnnamed2959(); 955 o.warning = buildUnnamed3050();
956 } 956 }
957 buildCounterOperationMetadataV1--; 957 buildCounterOperationMetadataV1--;
958 return o; 958 return o;
959 } 959 }
960 960
961 checkOperationMetadataV1(api.OperationMetadataV1 o) { 961 checkOperationMetadataV1(api.OperationMetadataV1 o) {
962 buildCounterOperationMetadataV1++; 962 buildCounterOperationMetadataV1++;
963 if (buildCounterOperationMetadataV1 < 3) { 963 if (buildCounterOperationMetadataV1 < 3) {
964 unittest.expect(o.endTime, unittest.equals('foo')); 964 unittest.expect(o.endTime, unittest.equals('foo'));
965 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 965 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
966 unittest.expect(o.insertTime, unittest.equals('foo')); 966 unittest.expect(o.insertTime, unittest.equals('foo'));
967 unittest.expect(o.method, unittest.equals('foo')); 967 unittest.expect(o.method, unittest.equals('foo'));
968 unittest.expect(o.target, unittest.equals('foo')); 968 unittest.expect(o.target, unittest.equals('foo'));
969 unittest.expect(o.user, unittest.equals('foo')); 969 unittest.expect(o.user, unittest.equals('foo'));
970 checkUnnamed2959(o.warning); 970 checkUnnamed3050(o.warning);
971 } 971 }
972 buildCounterOperationMetadataV1--; 972 buildCounterOperationMetadataV1--;
973 } 973 }
974 974
975 core.int buildCounterOperationMetadataV1Beta5 = 0; 975 core.int buildCounterOperationMetadataV1Beta5 = 0;
976 buildOperationMetadataV1Beta5() { 976 buildOperationMetadataV1Beta5() {
977 var o = new api.OperationMetadataV1Beta5(); 977 var o = new api.OperationMetadataV1Beta5();
978 buildCounterOperationMetadataV1Beta5++; 978 buildCounterOperationMetadataV1Beta5++;
979 if (buildCounterOperationMetadataV1Beta5 < 3) { 979 if (buildCounterOperationMetadataV1Beta5 < 3) {
980 o.endTime = "foo"; 980 o.endTime = "foo";
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 1030
1031 checkRequestUtilization(api.RequestUtilization o) { 1031 checkRequestUtilization(api.RequestUtilization o) {
1032 buildCounterRequestUtilization++; 1032 buildCounterRequestUtilization++;
1033 if (buildCounterRequestUtilization < 3) { 1033 if (buildCounterRequestUtilization < 3) {
1034 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); 1034 unittest.expect(o.targetConcurrentRequests, unittest.equals(42));
1035 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42)); 1035 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42));
1036 } 1036 }
1037 buildCounterRequestUtilization--; 1037 buildCounterRequestUtilization--;
1038 } 1038 }
1039 1039
1040 buildUnnamed2960() { 1040 buildUnnamed3051() {
1041 var o = new core.List<api.Volume>(); 1041 var o = new core.List<api.Volume>();
1042 o.add(buildVolume()); 1042 o.add(buildVolume());
1043 o.add(buildVolume()); 1043 o.add(buildVolume());
1044 return o; 1044 return o;
1045 } 1045 }
1046 1046
1047 checkUnnamed2960(core.List<api.Volume> o) { 1047 checkUnnamed3051(core.List<api.Volume> o) {
1048 unittest.expect(o, unittest.hasLength(2)); 1048 unittest.expect(o, unittest.hasLength(2));
1049 checkVolume(o[0]); 1049 checkVolume(o[0]);
1050 checkVolume(o[1]); 1050 checkVolume(o[1]);
1051 } 1051 }
1052 1052
1053 core.int buildCounterResources = 0; 1053 core.int buildCounterResources = 0;
1054 buildResources() { 1054 buildResources() {
1055 var o = new api.Resources(); 1055 var o = new api.Resources();
1056 buildCounterResources++; 1056 buildCounterResources++;
1057 if (buildCounterResources < 3) { 1057 if (buildCounterResources < 3) {
1058 o.cpu = 42.0; 1058 o.cpu = 42.0;
1059 o.diskGb = 42.0; 1059 o.diskGb = 42.0;
1060 o.memoryGb = 42.0; 1060 o.memoryGb = 42.0;
1061 o.volumes = buildUnnamed2960(); 1061 o.volumes = buildUnnamed3051();
1062 } 1062 }
1063 buildCounterResources--; 1063 buildCounterResources--;
1064 return o; 1064 return o;
1065 } 1065 }
1066 1066
1067 checkResources(api.Resources o) { 1067 checkResources(api.Resources o) {
1068 buildCounterResources++; 1068 buildCounterResources++;
1069 if (buildCounterResources < 3) { 1069 if (buildCounterResources < 3) {
1070 unittest.expect(o.cpu, unittest.equals(42.0)); 1070 unittest.expect(o.cpu, unittest.equals(42.0));
1071 unittest.expect(o.diskGb, unittest.equals(42.0)); 1071 unittest.expect(o.diskGb, unittest.equals(42.0));
1072 unittest.expect(o.memoryGb, unittest.equals(42.0)); 1072 unittest.expect(o.memoryGb, unittest.equals(42.0));
1073 checkUnnamed2960(o.volumes); 1073 checkUnnamed3051(o.volumes);
1074 } 1074 }
1075 buildCounterResources--; 1075 buildCounterResources--;
1076 } 1076 }
1077 1077
1078 core.int buildCounterScriptHandler = 0; 1078 core.int buildCounterScriptHandler = 0;
1079 buildScriptHandler() { 1079 buildScriptHandler() {
1080 var o = new api.ScriptHandler(); 1080 var o = new api.ScriptHandler();
1081 buildCounterScriptHandler++; 1081 buildCounterScriptHandler++;
1082 if (buildCounterScriptHandler < 3) { 1082 if (buildCounterScriptHandler < 3) {
1083 o.scriptPath = "foo"; 1083 o.scriptPath = "foo";
(...skipping 26 matching lines...) Expand all
1110 checkService(api.Service o) { 1110 checkService(api.Service o) {
1111 buildCounterService++; 1111 buildCounterService++;
1112 if (buildCounterService < 3) { 1112 if (buildCounterService < 3) {
1113 unittest.expect(o.id, unittest.equals('foo')); 1113 unittest.expect(o.id, unittest.equals('foo'));
1114 unittest.expect(o.name, unittest.equals('foo')); 1114 unittest.expect(o.name, unittest.equals('foo'));
1115 checkTrafficSplit(o.split); 1115 checkTrafficSplit(o.split);
1116 } 1116 }
1117 buildCounterService--; 1117 buildCounterService--;
1118 } 1118 }
1119 1119
1120 buildUnnamed2961() { 1120 buildUnnamed3052() {
1121 var o = new core.Map<core.String, core.String>(); 1121 var o = new core.Map<core.String, core.String>();
1122 o["x"] = "foo"; 1122 o["x"] = "foo";
1123 o["y"] = "foo"; 1123 o["y"] = "foo";
1124 return o; 1124 return o;
1125 } 1125 }
1126 1126
1127 checkUnnamed2961(core.Map<core.String, core.String> o) { 1127 checkUnnamed3052(core.Map<core.String, core.String> o) {
1128 unittest.expect(o, unittest.hasLength(2)); 1128 unittest.expect(o, unittest.hasLength(2));
1129 unittest.expect(o["x"], unittest.equals('foo')); 1129 unittest.expect(o["x"], unittest.equals('foo'));
1130 unittest.expect(o["y"], unittest.equals('foo')); 1130 unittest.expect(o["y"], unittest.equals('foo'));
1131 } 1131 }
1132 1132
1133 core.int buildCounterStaticFilesHandler = 0; 1133 core.int buildCounterStaticFilesHandler = 0;
1134 buildStaticFilesHandler() { 1134 buildStaticFilesHandler() {
1135 var o = new api.StaticFilesHandler(); 1135 var o = new api.StaticFilesHandler();
1136 buildCounterStaticFilesHandler++; 1136 buildCounterStaticFilesHandler++;
1137 if (buildCounterStaticFilesHandler < 3) { 1137 if (buildCounterStaticFilesHandler < 3) {
1138 o.applicationReadable = true; 1138 o.applicationReadable = true;
1139 o.expiration = "foo"; 1139 o.expiration = "foo";
1140 o.httpHeaders = buildUnnamed2961(); 1140 o.httpHeaders = buildUnnamed3052();
1141 o.mimeType = "foo"; 1141 o.mimeType = "foo";
1142 o.path = "foo"; 1142 o.path = "foo";
1143 o.requireMatchingFile = true; 1143 o.requireMatchingFile = true;
1144 o.uploadPathRegex = "foo"; 1144 o.uploadPathRegex = "foo";
1145 } 1145 }
1146 buildCounterStaticFilesHandler--; 1146 buildCounterStaticFilesHandler--;
1147 return o; 1147 return o;
1148 } 1148 }
1149 1149
1150 checkStaticFilesHandler(api.StaticFilesHandler o) { 1150 checkStaticFilesHandler(api.StaticFilesHandler o) {
1151 buildCounterStaticFilesHandler++; 1151 buildCounterStaticFilesHandler++;
1152 if (buildCounterStaticFilesHandler < 3) { 1152 if (buildCounterStaticFilesHandler < 3) {
1153 unittest.expect(o.applicationReadable, unittest.isTrue); 1153 unittest.expect(o.applicationReadable, unittest.isTrue);
1154 unittest.expect(o.expiration, unittest.equals('foo')); 1154 unittest.expect(o.expiration, unittest.equals('foo'));
1155 checkUnnamed2961(o.httpHeaders); 1155 checkUnnamed3052(o.httpHeaders);
1156 unittest.expect(o.mimeType, unittest.equals('foo')); 1156 unittest.expect(o.mimeType, unittest.equals('foo'));
1157 unittest.expect(o.path, unittest.equals('foo')); 1157 unittest.expect(o.path, unittest.equals('foo'));
1158 unittest.expect(o.requireMatchingFile, unittest.isTrue); 1158 unittest.expect(o.requireMatchingFile, unittest.isTrue);
1159 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); 1159 unittest.expect(o.uploadPathRegex, unittest.equals('foo'));
1160 } 1160 }
1161 buildCounterStaticFilesHandler--; 1161 buildCounterStaticFilesHandler--;
1162 } 1162 }
1163 1163
1164 buildUnnamed2962() { 1164 buildUnnamed3053() {
1165 var o = new core.Map<core.String, core.Object>(); 1165 var o = new core.Map<core.String, core.Object>();
1166 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1166 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1167 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1167 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1168 return o; 1168 return o;
1169 } 1169 }
1170 1170
1171 checkUnnamed2962(core.Map<core.String, core.Object> o) { 1171 checkUnnamed3053(core.Map<core.String, core.Object> o) {
1172 unittest.expect(o, unittest.hasLength(2)); 1172 unittest.expect(o, unittest.hasLength(2));
1173 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')); 1173 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'));
1174 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')); 1174 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'));
1175 } 1175 }
1176 1176
1177 buildUnnamed2963() { 1177 buildUnnamed3054() {
1178 var o = new core.List<core.Map<core.String, core.Object>>(); 1178 var o = new core.List<core.Map<core.String, core.Object>>();
1179 o.add(buildUnnamed2962()); 1179 o.add(buildUnnamed3053());
1180 o.add(buildUnnamed2962()); 1180 o.add(buildUnnamed3053());
1181 return o; 1181 return o;
1182 } 1182 }
1183 1183
1184 checkUnnamed2963(core.List<core.Map<core.String, core.Object>> o) { 1184 checkUnnamed3054(core.List<core.Map<core.String, core.Object>> o) {
1185 unittest.expect(o, unittest.hasLength(2)); 1185 unittest.expect(o, unittest.hasLength(2));
1186 checkUnnamed2962(o[0]); 1186 checkUnnamed3053(o[0]);
1187 checkUnnamed2962(o[1]); 1187 checkUnnamed3053(o[1]);
1188 } 1188 }
1189 1189
1190 core.int buildCounterStatus = 0; 1190 core.int buildCounterStatus = 0;
1191 buildStatus() { 1191 buildStatus() {
1192 var o = new api.Status(); 1192 var o = new api.Status();
1193 buildCounterStatus++; 1193 buildCounterStatus++;
1194 if (buildCounterStatus < 3) { 1194 if (buildCounterStatus < 3) {
1195 o.code = 42; 1195 o.code = 42;
1196 o.details = buildUnnamed2963(); 1196 o.details = buildUnnamed3054();
1197 o.message = "foo"; 1197 o.message = "foo";
1198 } 1198 }
1199 buildCounterStatus--; 1199 buildCounterStatus--;
1200 return o; 1200 return o;
1201 } 1201 }
1202 1202
1203 checkStatus(api.Status o) { 1203 checkStatus(api.Status o) {
1204 buildCounterStatus++; 1204 buildCounterStatus++;
1205 if (buildCounterStatus < 3) { 1205 if (buildCounterStatus < 3) {
1206 unittest.expect(o.code, unittest.equals(42)); 1206 unittest.expect(o.code, unittest.equals(42));
1207 checkUnnamed2963(o.details); 1207 checkUnnamed3054(o.details);
1208 unittest.expect(o.message, unittest.equals('foo')); 1208 unittest.expect(o.message, unittest.equals('foo'));
1209 } 1209 }
1210 buildCounterStatus--; 1210 buildCounterStatus--;
1211 } 1211 }
1212 1212
1213 buildUnnamed2964() { 1213 buildUnnamed3055() {
1214 var o = new core.Map<core.String, core.double>(); 1214 var o = new core.Map<core.String, core.double>();
1215 o["x"] = 42.0; 1215 o["x"] = 42.0;
1216 o["y"] = 42.0; 1216 o["y"] = 42.0;
1217 return o; 1217 return o;
1218 } 1218 }
1219 1219
1220 checkUnnamed2964(core.Map<core.String, core.double> o) { 1220 checkUnnamed3055(core.Map<core.String, core.double> o) {
1221 unittest.expect(o, unittest.hasLength(2)); 1221 unittest.expect(o, unittest.hasLength(2));
1222 unittest.expect(o["x"], unittest.equals(42.0)); 1222 unittest.expect(o["x"], unittest.equals(42.0));
1223 unittest.expect(o["y"], unittest.equals(42.0)); 1223 unittest.expect(o["y"], unittest.equals(42.0));
1224 } 1224 }
1225 1225
1226 core.int buildCounterTrafficSplit = 0; 1226 core.int buildCounterTrafficSplit = 0;
1227 buildTrafficSplit() { 1227 buildTrafficSplit() {
1228 var o = new api.TrafficSplit(); 1228 var o = new api.TrafficSplit();
1229 buildCounterTrafficSplit++; 1229 buildCounterTrafficSplit++;
1230 if (buildCounterTrafficSplit < 3) { 1230 if (buildCounterTrafficSplit < 3) {
1231 o.allocations = buildUnnamed2964(); 1231 o.allocations = buildUnnamed3055();
1232 o.shardBy = "foo"; 1232 o.shardBy = "foo";
1233 } 1233 }
1234 buildCounterTrafficSplit--; 1234 buildCounterTrafficSplit--;
1235 return o; 1235 return o;
1236 } 1236 }
1237 1237
1238 checkTrafficSplit(api.TrafficSplit o) { 1238 checkTrafficSplit(api.TrafficSplit o) {
1239 buildCounterTrafficSplit++; 1239 buildCounterTrafficSplit++;
1240 if (buildCounterTrafficSplit < 3) { 1240 if (buildCounterTrafficSplit < 3) {
1241 checkUnnamed2964(o.allocations); 1241 checkUnnamed3055(o.allocations);
1242 unittest.expect(o.shardBy, unittest.equals('foo')); 1242 unittest.expect(o.shardBy, unittest.equals('foo'));
1243 } 1243 }
1244 buildCounterTrafficSplit--; 1244 buildCounterTrafficSplit--;
1245 } 1245 }
1246 1246
1247 core.int buildCounterUrlDispatchRule = 0; 1247 core.int buildCounterUrlDispatchRule = 0;
1248 buildUrlDispatchRule() { 1248 buildUrlDispatchRule() {
1249 var o = new api.UrlDispatchRule(); 1249 var o = new api.UrlDispatchRule();
1250 buildCounterUrlDispatchRule++; 1250 buildCounterUrlDispatchRule++;
1251 if (buildCounterUrlDispatchRule < 3) { 1251 if (buildCounterUrlDispatchRule < 3) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 unittest.expect(o.login, unittest.equals('foo')); 1293 unittest.expect(o.login, unittest.equals('foo'));
1294 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); 1294 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo'));
1295 checkScriptHandler(o.script); 1295 checkScriptHandler(o.script);
1296 unittest.expect(o.securityLevel, unittest.equals('foo')); 1296 unittest.expect(o.securityLevel, unittest.equals('foo'));
1297 checkStaticFilesHandler(o.staticFiles); 1297 checkStaticFilesHandler(o.staticFiles);
1298 unittest.expect(o.urlRegex, unittest.equals('foo')); 1298 unittest.expect(o.urlRegex, unittest.equals('foo'));
1299 } 1299 }
1300 buildCounterUrlMap--; 1300 buildCounterUrlMap--;
1301 } 1301 }
1302 1302
1303 buildUnnamed2965() { 1303 buildUnnamed3056() {
1304 var o = new core.Map<core.String, core.String>(); 1304 var o = new core.Map<core.String, core.String>();
1305 o["x"] = "foo"; 1305 o["x"] = "foo";
1306 o["y"] = "foo"; 1306 o["y"] = "foo";
1307 return o; 1307 return o;
1308 } 1308 }
1309 1309
1310 checkUnnamed2965(core.Map<core.String, core.String> o) { 1310 checkUnnamed3056(core.Map<core.String, core.String> o) {
1311 unittest.expect(o, unittest.hasLength(2)); 1311 unittest.expect(o, unittest.hasLength(2));
1312 unittest.expect(o["x"], unittest.equals('foo')); 1312 unittest.expect(o["x"], unittest.equals('foo'));
1313 unittest.expect(o["y"], unittest.equals('foo')); 1313 unittest.expect(o["y"], unittest.equals('foo'));
1314 } 1314 }
1315 1315
1316 buildUnnamed2966() { 1316 buildUnnamed3057() {
1317 var o = new core.Map<core.String, core.String>(); 1317 var o = new core.Map<core.String, core.String>();
1318 o["x"] = "foo"; 1318 o["x"] = "foo";
1319 o["y"] = "foo"; 1319 o["y"] = "foo";
1320 return o; 1320 return o;
1321 } 1321 }
1322 1322
1323 checkUnnamed2966(core.Map<core.String, core.String> o) { 1323 checkUnnamed3057(core.Map<core.String, core.String> o) {
1324 unittest.expect(o, unittest.hasLength(2)); 1324 unittest.expect(o, unittest.hasLength(2));
1325 unittest.expect(o["x"], unittest.equals('foo')); 1325 unittest.expect(o["x"], unittest.equals('foo'));
1326 unittest.expect(o["y"], unittest.equals('foo')); 1326 unittest.expect(o["y"], unittest.equals('foo'));
1327 } 1327 }
1328 1328
1329 buildUnnamed2967() { 1329 buildUnnamed3058() {
1330 var o = new core.List<api.ErrorHandler>(); 1330 var o = new core.List<api.ErrorHandler>();
1331 o.add(buildErrorHandler()); 1331 o.add(buildErrorHandler());
1332 o.add(buildErrorHandler()); 1332 o.add(buildErrorHandler());
1333 return o; 1333 return o;
1334 } 1334 }
1335 1335
1336 checkUnnamed2967(core.List<api.ErrorHandler> o) { 1336 checkUnnamed3058(core.List<api.ErrorHandler> o) {
1337 unittest.expect(o, unittest.hasLength(2)); 1337 unittest.expect(o, unittest.hasLength(2));
1338 checkErrorHandler(o[0]); 1338 checkErrorHandler(o[0]);
1339 checkErrorHandler(o[1]); 1339 checkErrorHandler(o[1]);
1340 } 1340 }
1341 1341
1342 buildUnnamed2968() { 1342 buildUnnamed3059() {
1343 var o = new core.List<api.UrlMap>(); 1343 var o = new core.List<api.UrlMap>();
1344 o.add(buildUrlMap()); 1344 o.add(buildUrlMap());
1345 o.add(buildUrlMap()); 1345 o.add(buildUrlMap());
1346 return o; 1346 return o;
1347 } 1347 }
1348 1348
1349 checkUnnamed2968(core.List<api.UrlMap> o) { 1349 checkUnnamed3059(core.List<api.UrlMap> o) {
1350 unittest.expect(o, unittest.hasLength(2)); 1350 unittest.expect(o, unittest.hasLength(2));
1351 checkUrlMap(o[0]); 1351 checkUrlMap(o[0]);
1352 checkUrlMap(o[1]); 1352 checkUrlMap(o[1]);
1353 } 1353 }
1354 1354
1355 buildUnnamed2969() { 1355 buildUnnamed3060() {
1356 var o = new core.List<core.String>(); 1356 var o = new core.List<core.String>();
1357 o.add("foo"); 1357 o.add("foo");
1358 o.add("foo"); 1358 o.add("foo");
1359 return o; 1359 return o;
1360 } 1360 }
1361 1361
1362 checkUnnamed2969(core.List<core.String> o) { 1362 checkUnnamed3060(core.List<core.String> o) {
1363 unittest.expect(o, unittest.hasLength(2)); 1363 unittest.expect(o, unittest.hasLength(2));
1364 unittest.expect(o[0], unittest.equals('foo')); 1364 unittest.expect(o[0], unittest.equals('foo'));
1365 unittest.expect(o[1], unittest.equals('foo')); 1365 unittest.expect(o[1], unittest.equals('foo'));
1366 } 1366 }
1367 1367
1368 buildUnnamed2970() { 1368 buildUnnamed3061() {
1369 var o = new core.List<api.Library>(); 1369 var o = new core.List<api.Library>();
1370 o.add(buildLibrary()); 1370 o.add(buildLibrary());
1371 o.add(buildLibrary()); 1371 o.add(buildLibrary());
1372 return o; 1372 return o;
1373 } 1373 }
1374 1374
1375 checkUnnamed2970(core.List<api.Library> o) { 1375 checkUnnamed3061(core.List<api.Library> o) {
1376 unittest.expect(o, unittest.hasLength(2)); 1376 unittest.expect(o, unittest.hasLength(2));
1377 checkLibrary(o[0]); 1377 checkLibrary(o[0]);
1378 checkLibrary(o[1]); 1378 checkLibrary(o[1]);
1379 } 1379 }
1380 1380
1381 core.int buildCounterVersion = 0; 1381 core.int buildCounterVersion = 0;
1382 buildVersion() { 1382 buildVersion() {
1383 var o = new api.Version(); 1383 var o = new api.Version();
1384 buildCounterVersion++; 1384 buildCounterVersion++;
1385 if (buildCounterVersion < 3) { 1385 if (buildCounterVersion < 3) {
1386 o.apiConfig = buildApiConfigHandler(); 1386 o.apiConfig = buildApiConfigHandler();
1387 o.automaticScaling = buildAutomaticScaling(); 1387 o.automaticScaling = buildAutomaticScaling();
1388 o.basicScaling = buildBasicScaling(); 1388 o.basicScaling = buildBasicScaling();
1389 o.betaSettings = buildUnnamed2965(); 1389 o.betaSettings = buildUnnamed3056();
1390 o.createTime = "foo"; 1390 o.createTime = "foo";
1391 o.createdBy = "foo"; 1391 o.createdBy = "foo";
1392 o.defaultExpiration = "foo"; 1392 o.defaultExpiration = "foo";
1393 o.deployment = buildDeployment(); 1393 o.deployment = buildDeployment();
1394 o.diskUsageBytes = "foo"; 1394 o.diskUsageBytes = "foo";
1395 o.endpointsApiService = buildEndpointsApiService(); 1395 o.endpointsApiService = buildEndpointsApiService();
1396 o.env = "foo"; 1396 o.env = "foo";
1397 o.envVariables = buildUnnamed2966(); 1397 o.envVariables = buildUnnamed3057();
1398 o.errorHandlers = buildUnnamed2967(); 1398 o.errorHandlers = buildUnnamed3058();
1399 o.handlers = buildUnnamed2968(); 1399 o.handlers = buildUnnamed3059();
1400 o.healthCheck = buildHealthCheck(); 1400 o.healthCheck = buildHealthCheck();
1401 o.id = "foo"; 1401 o.id = "foo";
1402 o.inboundServices = buildUnnamed2969(); 1402 o.inboundServices = buildUnnamed3060();
1403 o.instanceClass = "foo"; 1403 o.instanceClass = "foo";
1404 o.libraries = buildUnnamed2970(); 1404 o.libraries = buildUnnamed3061();
1405 o.manualScaling = buildManualScaling(); 1405 o.manualScaling = buildManualScaling();
1406 o.name = "foo"; 1406 o.name = "foo";
1407 o.network = buildNetwork(); 1407 o.network = buildNetwork();
1408 o.nobuildFilesRegex = "foo"; 1408 o.nobuildFilesRegex = "foo";
1409 o.resources = buildResources(); 1409 o.resources = buildResources();
1410 o.runtime = "foo"; 1410 o.runtime = "foo";
1411 o.servingStatus = "foo"; 1411 o.servingStatus = "foo";
1412 o.threadsafe = true; 1412 o.threadsafe = true;
1413 o.versionUrl = "foo"; 1413 o.versionUrl = "foo";
1414 o.vm = true; 1414 o.vm = true;
1415 } 1415 }
1416 buildCounterVersion--; 1416 buildCounterVersion--;
1417 return o; 1417 return o;
1418 } 1418 }
1419 1419
1420 checkVersion(api.Version o) { 1420 checkVersion(api.Version o) {
1421 buildCounterVersion++; 1421 buildCounterVersion++;
1422 if (buildCounterVersion < 3) { 1422 if (buildCounterVersion < 3) {
1423 checkApiConfigHandler(o.apiConfig); 1423 checkApiConfigHandler(o.apiConfig);
1424 checkAutomaticScaling(o.automaticScaling); 1424 checkAutomaticScaling(o.automaticScaling);
1425 checkBasicScaling(o.basicScaling); 1425 checkBasicScaling(o.basicScaling);
1426 checkUnnamed2965(o.betaSettings); 1426 checkUnnamed3056(o.betaSettings);
1427 unittest.expect(o.createTime, unittest.equals('foo')); 1427 unittest.expect(o.createTime, unittest.equals('foo'));
1428 unittest.expect(o.createdBy, unittest.equals('foo')); 1428 unittest.expect(o.createdBy, unittest.equals('foo'));
1429 unittest.expect(o.defaultExpiration, unittest.equals('foo')); 1429 unittest.expect(o.defaultExpiration, unittest.equals('foo'));
1430 checkDeployment(o.deployment); 1430 checkDeployment(o.deployment);
1431 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); 1431 unittest.expect(o.diskUsageBytes, unittest.equals('foo'));
1432 checkEndpointsApiService(o.endpointsApiService); 1432 checkEndpointsApiService(o.endpointsApiService);
1433 unittest.expect(o.env, unittest.equals('foo')); 1433 unittest.expect(o.env, unittest.equals('foo'));
1434 checkUnnamed2966(o.envVariables); 1434 checkUnnamed3057(o.envVariables);
1435 checkUnnamed2967(o.errorHandlers); 1435 checkUnnamed3058(o.errorHandlers);
1436 checkUnnamed2968(o.handlers); 1436 checkUnnamed3059(o.handlers);
1437 checkHealthCheck(o.healthCheck); 1437 checkHealthCheck(o.healthCheck);
1438 unittest.expect(o.id, unittest.equals('foo')); 1438 unittest.expect(o.id, unittest.equals('foo'));
1439 checkUnnamed2969(o.inboundServices); 1439 checkUnnamed3060(o.inboundServices);
1440 unittest.expect(o.instanceClass, unittest.equals('foo')); 1440 unittest.expect(o.instanceClass, unittest.equals('foo'));
1441 checkUnnamed2970(o.libraries); 1441 checkUnnamed3061(o.libraries);
1442 checkManualScaling(o.manualScaling); 1442 checkManualScaling(o.manualScaling);
1443 unittest.expect(o.name, unittest.equals('foo')); 1443 unittest.expect(o.name, unittest.equals('foo'));
1444 checkNetwork(o.network); 1444 checkNetwork(o.network);
1445 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); 1445 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo'));
1446 checkResources(o.resources); 1446 checkResources(o.resources);
1447 unittest.expect(o.runtime, unittest.equals('foo')); 1447 unittest.expect(o.runtime, unittest.equals('foo'));
1448 unittest.expect(o.servingStatus, unittest.equals('foo')); 1448 unittest.expect(o.servingStatus, unittest.equals('foo'));
1449 unittest.expect(o.threadsafe, unittest.isTrue); 1449 unittest.expect(o.threadsafe, unittest.isTrue);
1450 unittest.expect(o.versionUrl, unittest.equals('foo')); 1450 unittest.expect(o.versionUrl, unittest.equals('foo'));
1451 unittest.expect(o.vm, unittest.isTrue); 1451 unittest.expect(o.vm, unittest.isTrue);
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after
3185 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon se response) { 3185 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon se response) {
3186 checkListInstancesResponse(response); 3186 checkListInstancesResponse(response);
3187 }))); 3187 })));
3188 }); 3188 });
3189 3189
3190 }); 3190 });
3191 3191
3192 3192
3193 } 3193 }
3194 3194
OLDNEW
« no previous file with comments | « generated/googleapis/test/androidpublisher/v2_test.dart ('k') | generated/googleapis/test/appsactivity/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698