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

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

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 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:test/test.dart' as unittest; 10 import 'package:test/test.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 buildUnnamed2660() { 100 buildUnnamed2681() {
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 checkUnnamed2660(core.List<api.UrlDispatchRule> o) { 107 checkUnnamed2681(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 = buildUnnamed2660(); 123 o.dispatchRules = buildUnnamed2681();
124 o.gcrDomain = "foo"; 124 o.gcrDomain = "foo";
125 o.iap = buildIdentityAwareProxy(); 125 o.iap = buildIdentityAwareProxy();
126 o.id = "foo"; 126 o.id = "foo";
127 o.locationId = "foo"; 127 o.locationId = "foo";
128 o.name = "foo"; 128 o.name = "foo";
129 o.servingStatus = "foo"; 129 o.servingStatus = "foo";
130 } 130 }
131 buildCounterApplication--; 131 buildCounterApplication--;
132 return o; 132 return o;
133 } 133 }
134 134
135 checkApplication(api.Application o) { 135 checkApplication(api.Application o) {
136 buildCounterApplication++; 136 buildCounterApplication++;
137 if (buildCounterApplication < 3) { 137 if (buildCounterApplication < 3) {
138 unittest.expect(o.authDomain, unittest.equals('foo')); 138 unittest.expect(o.authDomain, unittest.equals('foo'));
139 unittest.expect(o.codeBucket, unittest.equals('foo')); 139 unittest.expect(o.codeBucket, unittest.equals('foo'));
140 unittest.expect(o.defaultBucket, unittest.equals('foo')); 140 unittest.expect(o.defaultBucket, unittest.equals('foo'));
141 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); 141 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo'));
142 unittest.expect(o.defaultHostname, unittest.equals('foo')); 142 unittest.expect(o.defaultHostname, unittest.equals('foo'));
143 checkUnnamed2660(o.dispatchRules); 143 checkUnnamed2681(o.dispatchRules);
144 unittest.expect(o.gcrDomain, unittest.equals('foo')); 144 unittest.expect(o.gcrDomain, unittest.equals('foo'));
145 checkIdentityAwareProxy(o.iap); 145 checkIdentityAwareProxy(o.iap);
146 unittest.expect(o.id, unittest.equals('foo')); 146 unittest.expect(o.id, unittest.equals('foo'));
147 unittest.expect(o.locationId, unittest.equals('foo')); 147 unittest.expect(o.locationId, unittest.equals('foo'));
148 unittest.expect(o.name, unittest.equals('foo')); 148 unittest.expect(o.name, unittest.equals('foo'));
149 unittest.expect(o.servingStatus, unittest.equals('foo')); 149 unittest.expect(o.servingStatus, unittest.equals('foo'));
150 } 150 }
151 buildCounterApplication--; 151 buildCounterApplication--;
152 } 152 }
153 153
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 } 265 }
266 266
267 checkDebugInstanceRequest(api.DebugInstanceRequest o) { 267 checkDebugInstanceRequest(api.DebugInstanceRequest o) {
268 buildCounterDebugInstanceRequest++; 268 buildCounterDebugInstanceRequest++;
269 if (buildCounterDebugInstanceRequest < 3) { 269 if (buildCounterDebugInstanceRequest < 3) {
270 unittest.expect(o.sshKey, unittest.equals('foo')); 270 unittest.expect(o.sshKey, unittest.equals('foo'));
271 } 271 }
272 buildCounterDebugInstanceRequest--; 272 buildCounterDebugInstanceRequest--;
273 } 273 }
274 274
275 buildUnnamed2661() { 275 buildUnnamed2682() {
276 var o = new core.Map<core.String, api.FileInfo>(); 276 var o = new core.Map<core.String, api.FileInfo>();
277 o["x"] = buildFileInfo(); 277 o["x"] = buildFileInfo();
278 o["y"] = buildFileInfo(); 278 o["y"] = buildFileInfo();
279 return o; 279 return o;
280 } 280 }
281 281
282 checkUnnamed2661(core.Map<core.String, api.FileInfo> o) { 282 checkUnnamed2682(core.Map<core.String, api.FileInfo> o) {
283 unittest.expect(o, unittest.hasLength(2)); 283 unittest.expect(o, unittest.hasLength(2));
284 checkFileInfo(o["x"]); 284 checkFileInfo(o["x"]);
285 checkFileInfo(o["y"]); 285 checkFileInfo(o["y"]);
286 } 286 }
287 287
288 core.int buildCounterDeployment = 0; 288 core.int buildCounterDeployment = 0;
289 buildDeployment() { 289 buildDeployment() {
290 var o = new api.Deployment(); 290 var o = new api.Deployment();
291 buildCounterDeployment++; 291 buildCounterDeployment++;
292 if (buildCounterDeployment < 3) { 292 if (buildCounterDeployment < 3) {
293 o.container = buildContainerInfo(); 293 o.container = buildContainerInfo();
294 o.files = buildUnnamed2661(); 294 o.files = buildUnnamed2682();
295 o.zip = buildZipInfo(); 295 o.zip = buildZipInfo();
296 } 296 }
297 buildCounterDeployment--; 297 buildCounterDeployment--;
298 return o; 298 return o;
299 } 299 }
300 300
301 checkDeployment(api.Deployment o) { 301 checkDeployment(api.Deployment o) {
302 buildCounterDeployment++; 302 buildCounterDeployment++;
303 if (buildCounterDeployment < 3) { 303 if (buildCounterDeployment < 3) {
304 checkContainerInfo(o.container); 304 checkContainerInfo(o.container);
305 checkUnnamed2661(o.files); 305 checkUnnamed2682(o.files);
306 checkZipInfo(o.zip); 306 checkZipInfo(o.zip);
307 } 307 }
308 buildCounterDeployment--; 308 buildCounterDeployment--;
309 } 309 }
310 310
311 core.int buildCounterDiskUtilization = 0; 311 core.int buildCounterDiskUtilization = 0;
312 buildDiskUtilization() { 312 buildDiskUtilization() {
313 var o = new api.DiskUtilization(); 313 var o = new api.DiskUtilization();
314 buildCounterDiskUtilization++; 314 buildCounterDiskUtilization++;
315 if (buildCounterDiskUtilization < 3) { 315 if (buildCounterDiskUtilization < 3) {
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 519
520 checkLibrary(api.Library o) { 520 checkLibrary(api.Library o) {
521 buildCounterLibrary++; 521 buildCounterLibrary++;
522 if (buildCounterLibrary < 3) { 522 if (buildCounterLibrary < 3) {
523 unittest.expect(o.name, unittest.equals('foo')); 523 unittest.expect(o.name, unittest.equals('foo'));
524 unittest.expect(o.version, unittest.equals('foo')); 524 unittest.expect(o.version, unittest.equals('foo'));
525 } 525 }
526 buildCounterLibrary--; 526 buildCounterLibrary--;
527 } 527 }
528 528
529 buildUnnamed2662() { 529 buildUnnamed2683() {
530 var o = new core.List<api.Instance>(); 530 var o = new core.List<api.Instance>();
531 o.add(buildInstance()); 531 o.add(buildInstance());
532 o.add(buildInstance()); 532 o.add(buildInstance());
533 return o; 533 return o;
534 } 534 }
535 535
536 checkUnnamed2662(core.List<api.Instance> o) { 536 checkUnnamed2683(core.List<api.Instance> o) {
537 unittest.expect(o, unittest.hasLength(2)); 537 unittest.expect(o, unittest.hasLength(2));
538 checkInstance(o[0]); 538 checkInstance(o[0]);
539 checkInstance(o[1]); 539 checkInstance(o[1]);
540 } 540 }
541 541
542 core.int buildCounterListInstancesResponse = 0; 542 core.int buildCounterListInstancesResponse = 0;
543 buildListInstancesResponse() { 543 buildListInstancesResponse() {
544 var o = new api.ListInstancesResponse(); 544 var o = new api.ListInstancesResponse();
545 buildCounterListInstancesResponse++; 545 buildCounterListInstancesResponse++;
546 if (buildCounterListInstancesResponse < 3) { 546 if (buildCounterListInstancesResponse < 3) {
547 o.instances = buildUnnamed2662(); 547 o.instances = buildUnnamed2683();
548 o.nextPageToken = "foo"; 548 o.nextPageToken = "foo";
549 } 549 }
550 buildCounterListInstancesResponse--; 550 buildCounterListInstancesResponse--;
551 return o; 551 return o;
552 } 552 }
553 553
554 checkListInstancesResponse(api.ListInstancesResponse o) { 554 checkListInstancesResponse(api.ListInstancesResponse o) {
555 buildCounterListInstancesResponse++; 555 buildCounterListInstancesResponse++;
556 if (buildCounterListInstancesResponse < 3) { 556 if (buildCounterListInstancesResponse < 3) {
557 checkUnnamed2662(o.instances); 557 checkUnnamed2683(o.instances);
558 unittest.expect(o.nextPageToken, unittest.equals('foo')); 558 unittest.expect(o.nextPageToken, unittest.equals('foo'));
559 } 559 }
560 buildCounterListInstancesResponse--; 560 buildCounterListInstancesResponse--;
561 } 561 }
562 562
563 buildUnnamed2663() { 563 buildUnnamed2684() {
564 var o = new core.List<api.Location>(); 564 var o = new core.List<api.Location>();
565 o.add(buildLocation()); 565 o.add(buildLocation());
566 o.add(buildLocation()); 566 o.add(buildLocation());
567 return o; 567 return o;
568 } 568 }
569 569
570 checkUnnamed2663(core.List<api.Location> o) { 570 checkUnnamed2684(core.List<api.Location> o) {
571 unittest.expect(o, unittest.hasLength(2)); 571 unittest.expect(o, unittest.hasLength(2));
572 checkLocation(o[0]); 572 checkLocation(o[0]);
573 checkLocation(o[1]); 573 checkLocation(o[1]);
574 } 574 }
575 575
576 core.int buildCounterListLocationsResponse = 0; 576 core.int buildCounterListLocationsResponse = 0;
577 buildListLocationsResponse() { 577 buildListLocationsResponse() {
578 var o = new api.ListLocationsResponse(); 578 var o = new api.ListLocationsResponse();
579 buildCounterListLocationsResponse++; 579 buildCounterListLocationsResponse++;
580 if (buildCounterListLocationsResponse < 3) { 580 if (buildCounterListLocationsResponse < 3) {
581 o.locations = buildUnnamed2663(); 581 o.locations = buildUnnamed2684();
582 o.nextPageToken = "foo"; 582 o.nextPageToken = "foo";
583 } 583 }
584 buildCounterListLocationsResponse--; 584 buildCounterListLocationsResponse--;
585 return o; 585 return o;
586 } 586 }
587 587
588 checkListLocationsResponse(api.ListLocationsResponse o) { 588 checkListLocationsResponse(api.ListLocationsResponse o) {
589 buildCounterListLocationsResponse++; 589 buildCounterListLocationsResponse++;
590 if (buildCounterListLocationsResponse < 3) { 590 if (buildCounterListLocationsResponse < 3) {
591 checkUnnamed2663(o.locations); 591 checkUnnamed2684(o.locations);
592 unittest.expect(o.nextPageToken, unittest.equals('foo')); 592 unittest.expect(o.nextPageToken, unittest.equals('foo'));
593 } 593 }
594 buildCounterListLocationsResponse--; 594 buildCounterListLocationsResponse--;
595 } 595 }
596 596
597 buildUnnamed2664() { 597 buildUnnamed2685() {
598 var o = new core.List<api.Operation>(); 598 var o = new core.List<api.Operation>();
599 o.add(buildOperation()); 599 o.add(buildOperation());
600 o.add(buildOperation()); 600 o.add(buildOperation());
601 return o; 601 return o;
602 } 602 }
603 603
604 checkUnnamed2664(core.List<api.Operation> o) { 604 checkUnnamed2685(core.List<api.Operation> o) {
605 unittest.expect(o, unittest.hasLength(2)); 605 unittest.expect(o, unittest.hasLength(2));
606 checkOperation(o[0]); 606 checkOperation(o[0]);
607 checkOperation(o[1]); 607 checkOperation(o[1]);
608 } 608 }
609 609
610 core.int buildCounterListOperationsResponse = 0; 610 core.int buildCounterListOperationsResponse = 0;
611 buildListOperationsResponse() { 611 buildListOperationsResponse() {
612 var o = new api.ListOperationsResponse(); 612 var o = new api.ListOperationsResponse();
613 buildCounterListOperationsResponse++; 613 buildCounterListOperationsResponse++;
614 if (buildCounterListOperationsResponse < 3) { 614 if (buildCounterListOperationsResponse < 3) {
615 o.nextPageToken = "foo"; 615 o.nextPageToken = "foo";
616 o.operations = buildUnnamed2664(); 616 o.operations = buildUnnamed2685();
617 } 617 }
618 buildCounterListOperationsResponse--; 618 buildCounterListOperationsResponse--;
619 return o; 619 return o;
620 } 620 }
621 621
622 checkListOperationsResponse(api.ListOperationsResponse o) { 622 checkListOperationsResponse(api.ListOperationsResponse o) {
623 buildCounterListOperationsResponse++; 623 buildCounterListOperationsResponse++;
624 if (buildCounterListOperationsResponse < 3) { 624 if (buildCounterListOperationsResponse < 3) {
625 unittest.expect(o.nextPageToken, unittest.equals('foo')); 625 unittest.expect(o.nextPageToken, unittest.equals('foo'));
626 checkUnnamed2664(o.operations); 626 checkUnnamed2685(o.operations);
627 } 627 }
628 buildCounterListOperationsResponse--; 628 buildCounterListOperationsResponse--;
629 } 629 }
630 630
631 buildUnnamed2665() { 631 buildUnnamed2686() {
632 var o = new core.List<api.Service>(); 632 var o = new core.List<api.Service>();
633 o.add(buildService()); 633 o.add(buildService());
634 o.add(buildService()); 634 o.add(buildService());
635 return o; 635 return o;
636 } 636 }
637 637
638 checkUnnamed2665(core.List<api.Service> o) { 638 checkUnnamed2686(core.List<api.Service> o) {
639 unittest.expect(o, unittest.hasLength(2)); 639 unittest.expect(o, unittest.hasLength(2));
640 checkService(o[0]); 640 checkService(o[0]);
641 checkService(o[1]); 641 checkService(o[1]);
642 } 642 }
643 643
644 core.int buildCounterListServicesResponse = 0; 644 core.int buildCounterListServicesResponse = 0;
645 buildListServicesResponse() { 645 buildListServicesResponse() {
646 var o = new api.ListServicesResponse(); 646 var o = new api.ListServicesResponse();
647 buildCounterListServicesResponse++; 647 buildCounterListServicesResponse++;
648 if (buildCounterListServicesResponse < 3) { 648 if (buildCounterListServicesResponse < 3) {
649 o.nextPageToken = "foo"; 649 o.nextPageToken = "foo";
650 o.services = buildUnnamed2665(); 650 o.services = buildUnnamed2686();
651 } 651 }
652 buildCounterListServicesResponse--; 652 buildCounterListServicesResponse--;
653 return o; 653 return o;
654 } 654 }
655 655
656 checkListServicesResponse(api.ListServicesResponse o) { 656 checkListServicesResponse(api.ListServicesResponse o) {
657 buildCounterListServicesResponse++; 657 buildCounterListServicesResponse++;
658 if (buildCounterListServicesResponse < 3) { 658 if (buildCounterListServicesResponse < 3) {
659 unittest.expect(o.nextPageToken, unittest.equals('foo')); 659 unittest.expect(o.nextPageToken, unittest.equals('foo'));
660 checkUnnamed2665(o.services); 660 checkUnnamed2686(o.services);
661 } 661 }
662 buildCounterListServicesResponse--; 662 buildCounterListServicesResponse--;
663 } 663 }
664 664
665 buildUnnamed2666() { 665 buildUnnamed2687() {
666 var o = new core.List<api.Version>(); 666 var o = new core.List<api.Version>();
667 o.add(buildVersion()); 667 o.add(buildVersion());
668 o.add(buildVersion()); 668 o.add(buildVersion());
669 return o; 669 return o;
670 } 670 }
671 671
672 checkUnnamed2666(core.List<api.Version> o) { 672 checkUnnamed2687(core.List<api.Version> o) {
673 unittest.expect(o, unittest.hasLength(2)); 673 unittest.expect(o, unittest.hasLength(2));
674 checkVersion(o[0]); 674 checkVersion(o[0]);
675 checkVersion(o[1]); 675 checkVersion(o[1]);
676 } 676 }
677 677
678 core.int buildCounterListVersionsResponse = 0; 678 core.int buildCounterListVersionsResponse = 0;
679 buildListVersionsResponse() { 679 buildListVersionsResponse() {
680 var o = new api.ListVersionsResponse(); 680 var o = new api.ListVersionsResponse();
681 buildCounterListVersionsResponse++; 681 buildCounterListVersionsResponse++;
682 if (buildCounterListVersionsResponse < 3) { 682 if (buildCounterListVersionsResponse < 3) {
683 o.nextPageToken = "foo"; 683 o.nextPageToken = "foo";
684 o.versions = buildUnnamed2666(); 684 o.versions = buildUnnamed2687();
685 } 685 }
686 buildCounterListVersionsResponse--; 686 buildCounterListVersionsResponse--;
687 return o; 687 return o;
688 } 688 }
689 689
690 checkListVersionsResponse(api.ListVersionsResponse o) { 690 checkListVersionsResponse(api.ListVersionsResponse o) {
691 buildCounterListVersionsResponse++; 691 buildCounterListVersionsResponse++;
692 if (buildCounterListVersionsResponse < 3) { 692 if (buildCounterListVersionsResponse < 3) {
693 unittest.expect(o.nextPageToken, unittest.equals('foo')); 693 unittest.expect(o.nextPageToken, unittest.equals('foo'));
694 checkUnnamed2666(o.versions); 694 checkUnnamed2687(o.versions);
695 } 695 }
696 buildCounterListVersionsResponse--; 696 buildCounterListVersionsResponse--;
697 } 697 }
698 698
699 core.int buildCounterLivenessCheck = 0; 699 core.int buildCounterLivenessCheck = 0;
700 buildLivenessCheck() { 700 buildLivenessCheck() {
701 var o = new api.LivenessCheck(); 701 var o = new api.LivenessCheck();
702 buildCounterLivenessCheck++; 702 buildCounterLivenessCheck++;
703 if (buildCounterLivenessCheck < 3) { 703 if (buildCounterLivenessCheck < 3) {
704 o.checkInterval = "foo"; 704 o.checkInterval = "foo";
(...skipping 15 matching lines...) Expand all
720 unittest.expect(o.failureThreshold, unittest.equals(42)); 720 unittest.expect(o.failureThreshold, unittest.equals(42));
721 unittest.expect(o.host, unittest.equals('foo')); 721 unittest.expect(o.host, unittest.equals('foo'));
722 unittest.expect(o.initialDelay, unittest.equals('foo')); 722 unittest.expect(o.initialDelay, unittest.equals('foo'));
723 unittest.expect(o.path, unittest.equals('foo')); 723 unittest.expect(o.path, unittest.equals('foo'));
724 unittest.expect(o.successThreshold, unittest.equals(42)); 724 unittest.expect(o.successThreshold, unittest.equals(42));
725 unittest.expect(o.timeout, unittest.equals('foo')); 725 unittest.expect(o.timeout, unittest.equals('foo'));
726 } 726 }
727 buildCounterLivenessCheck--; 727 buildCounterLivenessCheck--;
728 } 728 }
729 729
730 buildUnnamed2667() { 730 buildUnnamed2688() {
731 var o = new core.Map<core.String, core.String>(); 731 var o = new core.Map<core.String, core.String>();
732 o["x"] = "foo"; 732 o["x"] = "foo";
733 o["y"] = "foo"; 733 o["y"] = "foo";
734 return o; 734 return o;
735 } 735 }
736 736
737 checkUnnamed2667(core.Map<core.String, core.String> o) { 737 checkUnnamed2688(core.Map<core.String, core.String> o) {
738 unittest.expect(o, unittest.hasLength(2)); 738 unittest.expect(o, unittest.hasLength(2));
739 unittest.expect(o["x"], unittest.equals('foo')); 739 unittest.expect(o["x"], unittest.equals('foo'));
740 unittest.expect(o["y"], unittest.equals('foo')); 740 unittest.expect(o["y"], unittest.equals('foo'));
741 } 741 }
742 742
743 buildUnnamed2668() { 743 buildUnnamed2689() {
744 var o = new core.Map<core.String, core.Object>(); 744 var o = new core.Map<core.String, core.Object>();
745 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 745 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
746 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 746 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
747 return o; 747 return o;
748 } 748 }
749 749
750 checkUnnamed2668(core.Map<core.String, core.Object> o) { 750 checkUnnamed2689(core.Map<core.String, core.Object> o) {
751 unittest.expect(o, unittest.hasLength(2)); 751 unittest.expect(o, unittest.hasLength(2));
752 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')); 752 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'));
753 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')); 753 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'));
754 } 754 }
755 755
756 core.int buildCounterLocation = 0; 756 core.int buildCounterLocation = 0;
757 buildLocation() { 757 buildLocation() {
758 var o = new api.Location(); 758 var o = new api.Location();
759 buildCounterLocation++; 759 buildCounterLocation++;
760 if (buildCounterLocation < 3) { 760 if (buildCounterLocation < 3) {
761 o.labels = buildUnnamed2667(); 761 o.labels = buildUnnamed2688();
762 o.locationId = "foo"; 762 o.locationId = "foo";
763 o.metadata = buildUnnamed2668(); 763 o.metadata = buildUnnamed2689();
764 o.name = "foo"; 764 o.name = "foo";
765 } 765 }
766 buildCounterLocation--; 766 buildCounterLocation--;
767 return o; 767 return o;
768 } 768 }
769 769
770 checkLocation(api.Location o) { 770 checkLocation(api.Location o) {
771 buildCounterLocation++; 771 buildCounterLocation++;
772 if (buildCounterLocation < 3) { 772 if (buildCounterLocation < 3) {
773 checkUnnamed2667(o.labels); 773 checkUnnamed2688(o.labels);
774 unittest.expect(o.locationId, unittest.equals('foo')); 774 unittest.expect(o.locationId, unittest.equals('foo'));
775 checkUnnamed2668(o.metadata); 775 checkUnnamed2689(o.metadata);
776 unittest.expect(o.name, unittest.equals('foo')); 776 unittest.expect(o.name, unittest.equals('foo'));
777 } 777 }
778 buildCounterLocation--; 778 buildCounterLocation--;
779 } 779 }
780 780
781 core.int buildCounterLocationMetadata = 0; 781 core.int buildCounterLocationMetadata = 0;
782 buildLocationMetadata() { 782 buildLocationMetadata() {
783 var o = new api.LocationMetadata(); 783 var o = new api.LocationMetadata();
784 buildCounterLocationMetadata++; 784 buildCounterLocationMetadata++;
785 if (buildCounterLocationMetadata < 3) { 785 if (buildCounterLocationMetadata < 3) {
(...skipping 25 matching lines...) Expand all
811 } 811 }
812 812
813 checkManualScaling(api.ManualScaling o) { 813 checkManualScaling(api.ManualScaling o) {
814 buildCounterManualScaling++; 814 buildCounterManualScaling++;
815 if (buildCounterManualScaling < 3) { 815 if (buildCounterManualScaling < 3) {
816 unittest.expect(o.instances, unittest.equals(42)); 816 unittest.expect(o.instances, unittest.equals(42));
817 } 817 }
818 buildCounterManualScaling--; 818 buildCounterManualScaling--;
819 } 819 }
820 820
821 buildUnnamed2669() { 821 buildUnnamed2690() {
822 var o = new core.List<core.String>(); 822 var o = new core.List<core.String>();
823 o.add("foo"); 823 o.add("foo");
824 o.add("foo"); 824 o.add("foo");
825 return o; 825 return o;
826 } 826 }
827 827
828 checkUnnamed2669(core.List<core.String> o) { 828 checkUnnamed2690(core.List<core.String> o) {
829 unittest.expect(o, unittest.hasLength(2)); 829 unittest.expect(o, unittest.hasLength(2));
830 unittest.expect(o[0], unittest.equals('foo')); 830 unittest.expect(o[0], unittest.equals('foo'));
831 unittest.expect(o[1], unittest.equals('foo')); 831 unittest.expect(o[1], unittest.equals('foo'));
832 } 832 }
833 833
834 core.int buildCounterNetwork = 0; 834 core.int buildCounterNetwork = 0;
835 buildNetwork() { 835 buildNetwork() {
836 var o = new api.Network(); 836 var o = new api.Network();
837 buildCounterNetwork++; 837 buildCounterNetwork++;
838 if (buildCounterNetwork < 3) { 838 if (buildCounterNetwork < 3) {
839 o.forwardedPorts = buildUnnamed2669(); 839 o.forwardedPorts = buildUnnamed2690();
840 o.instanceTag = "foo"; 840 o.instanceTag = "foo";
841 o.name = "foo"; 841 o.name = "foo";
842 o.subnetworkName = "foo"; 842 o.subnetworkName = "foo";
843 } 843 }
844 buildCounterNetwork--; 844 buildCounterNetwork--;
845 return o; 845 return o;
846 } 846 }
847 847
848 checkNetwork(api.Network o) { 848 checkNetwork(api.Network o) {
849 buildCounterNetwork++; 849 buildCounterNetwork++;
850 if (buildCounterNetwork < 3) { 850 if (buildCounterNetwork < 3) {
851 checkUnnamed2669(o.forwardedPorts); 851 checkUnnamed2690(o.forwardedPorts);
852 unittest.expect(o.instanceTag, unittest.equals('foo')); 852 unittest.expect(o.instanceTag, unittest.equals('foo'));
853 unittest.expect(o.name, unittest.equals('foo')); 853 unittest.expect(o.name, unittest.equals('foo'));
854 unittest.expect(o.subnetworkName, unittest.equals('foo')); 854 unittest.expect(o.subnetworkName, unittest.equals('foo'));
855 } 855 }
856 buildCounterNetwork--; 856 buildCounterNetwork--;
857 } 857 }
858 858
859 core.int buildCounterNetworkUtilization = 0; 859 core.int buildCounterNetworkUtilization = 0;
860 buildNetworkUtilization() { 860 buildNetworkUtilization() {
861 var o = new api.NetworkUtilization(); 861 var o = new api.NetworkUtilization();
(...skipping 12 matching lines...) Expand all
874 buildCounterNetworkUtilization++; 874 buildCounterNetworkUtilization++;
875 if (buildCounterNetworkUtilization < 3) { 875 if (buildCounterNetworkUtilization < 3) {
876 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42)); 876 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42));
877 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42)); 877 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42));
878 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42)); 878 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42));
879 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42)); 879 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42));
880 } 880 }
881 buildCounterNetworkUtilization--; 881 buildCounterNetworkUtilization--;
882 } 882 }
883 883
884 buildUnnamed2670() { 884 buildUnnamed2691() {
885 var o = new core.Map<core.String, core.Object>(); 885 var o = new core.Map<core.String, core.Object>();
886 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 886 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
887 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 887 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
888 return o; 888 return o;
889 } 889 }
890 890
891 checkUnnamed2670(core.Map<core.String, core.Object> o) { 891 checkUnnamed2691(core.Map<core.String, core.Object> o) {
892 unittest.expect(o, unittest.hasLength(2)); 892 unittest.expect(o, unittest.hasLength(2));
893 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')); 893 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'));
894 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')); 894 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'));
895 } 895 }
896 896
897 buildUnnamed2671() { 897 buildUnnamed2692() {
898 var o = new core.Map<core.String, core.Object>(); 898 var o = new core.Map<core.String, core.Object>();
899 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 899 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
900 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 900 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
901 return o; 901 return o;
902 } 902 }
903 903
904 checkUnnamed2671(core.Map<core.String, core.Object> o) { 904 checkUnnamed2692(core.Map<core.String, core.Object> o) {
905 unittest.expect(o, unittest.hasLength(2)); 905 unittest.expect(o, unittest.hasLength(2));
906 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')); 906 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'));
907 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')); 907 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'));
908 } 908 }
909 909
910 core.int buildCounterOperation = 0; 910 core.int buildCounterOperation = 0;
911 buildOperation() { 911 buildOperation() {
912 var o = new api.Operation(); 912 var o = new api.Operation();
913 buildCounterOperation++; 913 buildCounterOperation++;
914 if (buildCounterOperation < 3) { 914 if (buildCounterOperation < 3) {
915 o.done = true; 915 o.done = true;
916 o.error = buildStatus(); 916 o.error = buildStatus();
917 o.metadata = buildUnnamed2670(); 917 o.metadata = buildUnnamed2691();
918 o.name = "foo"; 918 o.name = "foo";
919 o.response = buildUnnamed2671(); 919 o.response = buildUnnamed2692();
920 } 920 }
921 buildCounterOperation--; 921 buildCounterOperation--;
922 return o; 922 return o;
923 } 923 }
924 924
925 checkOperation(api.Operation o) { 925 checkOperation(api.Operation o) {
926 buildCounterOperation++; 926 buildCounterOperation++;
927 if (buildCounterOperation < 3) { 927 if (buildCounterOperation < 3) {
928 unittest.expect(o.done, unittest.isTrue); 928 unittest.expect(o.done, unittest.isTrue);
929 checkStatus(o.error); 929 checkStatus(o.error);
930 checkUnnamed2670(o.metadata); 930 checkUnnamed2691(o.metadata);
931 unittest.expect(o.name, unittest.equals('foo')); 931 unittest.expect(o.name, unittest.equals('foo'));
932 checkUnnamed2671(o.response); 932 checkUnnamed2692(o.response);
933 } 933 }
934 buildCounterOperation--; 934 buildCounterOperation--;
935 } 935 }
936 936
937 core.int buildCounterOperationMetadata = 0; 937 core.int buildCounterOperationMetadata = 0;
938 buildOperationMetadata() { 938 buildOperationMetadata() {
939 var o = new api.OperationMetadata(); 939 var o = new api.OperationMetadata();
940 buildCounterOperationMetadata++; 940 buildCounterOperationMetadata++;
941 if (buildCounterOperationMetadata < 3) { 941 if (buildCounterOperationMetadata < 3) {
942 o.endTime = "foo"; 942 o.endTime = "foo";
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 if (buildCounterOperationMetadataExperimental < 3) { 983 if (buildCounterOperationMetadataExperimental < 3) {
984 unittest.expect(o.endTime, unittest.equals('foo')); 984 unittest.expect(o.endTime, unittest.equals('foo'));
985 unittest.expect(o.insertTime, unittest.equals('foo')); 985 unittest.expect(o.insertTime, unittest.equals('foo'));
986 unittest.expect(o.method, unittest.equals('foo')); 986 unittest.expect(o.method, unittest.equals('foo'));
987 unittest.expect(o.target, unittest.equals('foo')); 987 unittest.expect(o.target, unittest.equals('foo'));
988 unittest.expect(o.user, unittest.equals('foo')); 988 unittest.expect(o.user, unittest.equals('foo'));
989 } 989 }
990 buildCounterOperationMetadataExperimental--; 990 buildCounterOperationMetadataExperimental--;
991 } 991 }
992 992
993 buildUnnamed2672() { 993 buildUnnamed2693() {
994 var o = new core.List<core.String>(); 994 var o = new core.List<core.String>();
995 o.add("foo"); 995 o.add("foo");
996 o.add("foo"); 996 o.add("foo");
997 return o; 997 return o;
998 } 998 }
999 999
1000 checkUnnamed2672(core.List<core.String> o) { 1000 checkUnnamed2693(core.List<core.String> o) {
1001 unittest.expect(o, unittest.hasLength(2)); 1001 unittest.expect(o, unittest.hasLength(2));
1002 unittest.expect(o[0], unittest.equals('foo')); 1002 unittest.expect(o[0], unittest.equals('foo'));
1003 unittest.expect(o[1], unittest.equals('foo')); 1003 unittest.expect(o[1], unittest.equals('foo'));
1004 } 1004 }
1005 1005
1006 core.int buildCounterOperationMetadataV1 = 0; 1006 core.int buildCounterOperationMetadataV1 = 0;
1007 buildOperationMetadataV1() { 1007 buildOperationMetadataV1() {
1008 var o = new api.OperationMetadataV1(); 1008 var o = new api.OperationMetadataV1();
1009 buildCounterOperationMetadataV1++; 1009 buildCounterOperationMetadataV1++;
1010 if (buildCounterOperationMetadataV1 < 3) { 1010 if (buildCounterOperationMetadataV1 < 3) {
1011 o.endTime = "foo"; 1011 o.endTime = "foo";
1012 o.ephemeralMessage = "foo"; 1012 o.ephemeralMessage = "foo";
1013 o.insertTime = "foo"; 1013 o.insertTime = "foo";
1014 o.method = "foo"; 1014 o.method = "foo";
1015 o.target = "foo"; 1015 o.target = "foo";
1016 o.user = "foo"; 1016 o.user = "foo";
1017 o.warning = buildUnnamed2672(); 1017 o.warning = buildUnnamed2693();
1018 } 1018 }
1019 buildCounterOperationMetadataV1--; 1019 buildCounterOperationMetadataV1--;
1020 return o; 1020 return o;
1021 } 1021 }
1022 1022
1023 checkOperationMetadataV1(api.OperationMetadataV1 o) { 1023 checkOperationMetadataV1(api.OperationMetadataV1 o) {
1024 buildCounterOperationMetadataV1++; 1024 buildCounterOperationMetadataV1++;
1025 if (buildCounterOperationMetadataV1 < 3) { 1025 if (buildCounterOperationMetadataV1 < 3) {
1026 unittest.expect(o.endTime, unittest.equals('foo')); 1026 unittest.expect(o.endTime, unittest.equals('foo'));
1027 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1027 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1028 unittest.expect(o.insertTime, unittest.equals('foo')); 1028 unittest.expect(o.insertTime, unittest.equals('foo'));
1029 unittest.expect(o.method, unittest.equals('foo')); 1029 unittest.expect(o.method, unittest.equals('foo'));
1030 unittest.expect(o.target, unittest.equals('foo')); 1030 unittest.expect(o.target, unittest.equals('foo'));
1031 unittest.expect(o.user, unittest.equals('foo')); 1031 unittest.expect(o.user, unittest.equals('foo'));
1032 checkUnnamed2672(o.warning); 1032 checkUnnamed2693(o.warning);
1033 } 1033 }
1034 buildCounterOperationMetadataV1--; 1034 buildCounterOperationMetadataV1--;
1035 } 1035 }
1036 1036
1037 buildUnnamed2673() { 1037 buildUnnamed2694() {
1038 var o = new core.List<core.String>(); 1038 var o = new core.List<core.String>();
1039 o.add("foo"); 1039 o.add("foo");
1040 o.add("foo"); 1040 o.add("foo");
1041 return o; 1041 return o;
1042 } 1042 }
1043 1043
1044 checkUnnamed2673(core.List<core.String> o) { 1044 checkUnnamed2694(core.List<core.String> o) {
1045 unittest.expect(o, unittest.hasLength(2)); 1045 unittest.expect(o, unittest.hasLength(2));
1046 unittest.expect(o[0], unittest.equals('foo')); 1046 unittest.expect(o[0], unittest.equals('foo'));
1047 unittest.expect(o[1], unittest.equals('foo')); 1047 unittest.expect(o[1], unittest.equals('foo'));
1048 } 1048 }
1049 1049
1050 core.int buildCounterOperationMetadataV1Alpha = 0; 1050 core.int buildCounterOperationMetadataV1Alpha = 0;
1051 buildOperationMetadataV1Alpha() { 1051 buildOperationMetadataV1Alpha() {
1052 var o = new api.OperationMetadataV1Alpha(); 1052 var o = new api.OperationMetadataV1Alpha();
1053 buildCounterOperationMetadataV1Alpha++; 1053 buildCounterOperationMetadataV1Alpha++;
1054 if (buildCounterOperationMetadataV1Alpha < 3) { 1054 if (buildCounterOperationMetadataV1Alpha < 3) {
1055 o.endTime = "foo"; 1055 o.endTime = "foo";
1056 o.ephemeralMessage = "foo"; 1056 o.ephemeralMessage = "foo";
1057 o.insertTime = "foo"; 1057 o.insertTime = "foo";
1058 o.method = "foo"; 1058 o.method = "foo";
1059 o.target = "foo"; 1059 o.target = "foo";
1060 o.user = "foo"; 1060 o.user = "foo";
1061 o.warning = buildUnnamed2673(); 1061 o.warning = buildUnnamed2694();
1062 } 1062 }
1063 buildCounterOperationMetadataV1Alpha--; 1063 buildCounterOperationMetadataV1Alpha--;
1064 return o; 1064 return o;
1065 } 1065 }
1066 1066
1067 checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) { 1067 checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) {
1068 buildCounterOperationMetadataV1Alpha++; 1068 buildCounterOperationMetadataV1Alpha++;
1069 if (buildCounterOperationMetadataV1Alpha < 3) { 1069 if (buildCounterOperationMetadataV1Alpha < 3) {
1070 unittest.expect(o.endTime, unittest.equals('foo')); 1070 unittest.expect(o.endTime, unittest.equals('foo'));
1071 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1071 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1072 unittest.expect(o.insertTime, unittest.equals('foo')); 1072 unittest.expect(o.insertTime, unittest.equals('foo'));
1073 unittest.expect(o.method, unittest.equals('foo')); 1073 unittest.expect(o.method, unittest.equals('foo'));
1074 unittest.expect(o.target, unittest.equals('foo')); 1074 unittest.expect(o.target, unittest.equals('foo'));
1075 unittest.expect(o.user, unittest.equals('foo')); 1075 unittest.expect(o.user, unittest.equals('foo'));
1076 checkUnnamed2673(o.warning); 1076 checkUnnamed2694(o.warning);
1077 } 1077 }
1078 buildCounterOperationMetadataV1Alpha--; 1078 buildCounterOperationMetadataV1Alpha--;
1079 } 1079 }
1080 1080
1081 buildUnnamed2674() { 1081 buildUnnamed2695() {
1082 var o = new core.List<core.String>(); 1082 var o = new core.List<core.String>();
1083 o.add("foo"); 1083 o.add("foo");
1084 o.add("foo"); 1084 o.add("foo");
1085 return o; 1085 return o;
1086 } 1086 }
1087 1087
1088 checkUnnamed2674(core.List<core.String> o) { 1088 checkUnnamed2695(core.List<core.String> o) {
1089 unittest.expect(o, unittest.hasLength(2)); 1089 unittest.expect(o, unittest.hasLength(2));
1090 unittest.expect(o[0], unittest.equals('foo')); 1090 unittest.expect(o[0], unittest.equals('foo'));
1091 unittest.expect(o[1], unittest.equals('foo')); 1091 unittest.expect(o[1], unittest.equals('foo'));
1092 } 1092 }
1093 1093
1094 core.int buildCounterOperationMetadataV1Beta = 0; 1094 core.int buildCounterOperationMetadataV1Beta = 0;
1095 buildOperationMetadataV1Beta() { 1095 buildOperationMetadataV1Beta() {
1096 var o = new api.OperationMetadataV1Beta(); 1096 var o = new api.OperationMetadataV1Beta();
1097 buildCounterOperationMetadataV1Beta++; 1097 buildCounterOperationMetadataV1Beta++;
1098 if (buildCounterOperationMetadataV1Beta < 3) { 1098 if (buildCounterOperationMetadataV1Beta < 3) {
1099 o.endTime = "foo"; 1099 o.endTime = "foo";
1100 o.ephemeralMessage = "foo"; 1100 o.ephemeralMessage = "foo";
1101 o.insertTime = "foo"; 1101 o.insertTime = "foo";
1102 o.method = "foo"; 1102 o.method = "foo";
1103 o.target = "foo"; 1103 o.target = "foo";
1104 o.user = "foo"; 1104 o.user = "foo";
1105 o.warning = buildUnnamed2674(); 1105 o.warning = buildUnnamed2695();
1106 } 1106 }
1107 buildCounterOperationMetadataV1Beta--; 1107 buildCounterOperationMetadataV1Beta--;
1108 return o; 1108 return o;
1109 } 1109 }
1110 1110
1111 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { 1111 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) {
1112 buildCounterOperationMetadataV1Beta++; 1112 buildCounterOperationMetadataV1Beta++;
1113 if (buildCounterOperationMetadataV1Beta < 3) { 1113 if (buildCounterOperationMetadataV1Beta < 3) {
1114 unittest.expect(o.endTime, unittest.equals('foo')); 1114 unittest.expect(o.endTime, unittest.equals('foo'));
1115 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1115 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1116 unittest.expect(o.insertTime, unittest.equals('foo')); 1116 unittest.expect(o.insertTime, unittest.equals('foo'));
1117 unittest.expect(o.method, unittest.equals('foo')); 1117 unittest.expect(o.method, unittest.equals('foo'));
1118 unittest.expect(o.target, unittest.equals('foo')); 1118 unittest.expect(o.target, unittest.equals('foo'));
1119 unittest.expect(o.user, unittest.equals('foo')); 1119 unittest.expect(o.user, unittest.equals('foo'));
1120 checkUnnamed2674(o.warning); 1120 checkUnnamed2695(o.warning);
1121 } 1121 }
1122 buildCounterOperationMetadataV1Beta--; 1122 buildCounterOperationMetadataV1Beta--;
1123 } 1123 }
1124 1124
1125 core.int buildCounterOperationMetadataV1Beta5 = 0; 1125 core.int buildCounterOperationMetadataV1Beta5 = 0;
1126 buildOperationMetadataV1Beta5() { 1126 buildOperationMetadataV1Beta5() {
1127 var o = new api.OperationMetadataV1Beta5(); 1127 var o = new api.OperationMetadataV1Beta5();
1128 buildCounterOperationMetadataV1Beta5++; 1128 buildCounterOperationMetadataV1Beta5++;
1129 if (buildCounterOperationMetadataV1Beta5 < 3) { 1129 if (buildCounterOperationMetadataV1Beta5 < 3) {
1130 o.endTime = "foo"; 1130 o.endTime = "foo";
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 1211
1212 checkRequestUtilization(api.RequestUtilization o) { 1212 checkRequestUtilization(api.RequestUtilization o) {
1213 buildCounterRequestUtilization++; 1213 buildCounterRequestUtilization++;
1214 if (buildCounterRequestUtilization < 3) { 1214 if (buildCounterRequestUtilization < 3) {
1215 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); 1215 unittest.expect(o.targetConcurrentRequests, unittest.equals(42));
1216 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42)); 1216 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42));
1217 } 1217 }
1218 buildCounterRequestUtilization--; 1218 buildCounterRequestUtilization--;
1219 } 1219 }
1220 1220
1221 buildUnnamed2675() { 1221 buildUnnamed2696() {
1222 var o = new core.List<api.Volume>(); 1222 var o = new core.List<api.Volume>();
1223 o.add(buildVolume()); 1223 o.add(buildVolume());
1224 o.add(buildVolume()); 1224 o.add(buildVolume());
1225 return o; 1225 return o;
1226 } 1226 }
1227 1227
1228 checkUnnamed2675(core.List<api.Volume> o) { 1228 checkUnnamed2696(core.List<api.Volume> o) {
1229 unittest.expect(o, unittest.hasLength(2)); 1229 unittest.expect(o, unittest.hasLength(2));
1230 checkVolume(o[0]); 1230 checkVolume(o[0]);
1231 checkVolume(o[1]); 1231 checkVolume(o[1]);
1232 } 1232 }
1233 1233
1234 core.int buildCounterResources = 0; 1234 core.int buildCounterResources = 0;
1235 buildResources() { 1235 buildResources() {
1236 var o = new api.Resources(); 1236 var o = new api.Resources();
1237 buildCounterResources++; 1237 buildCounterResources++;
1238 if (buildCounterResources < 3) { 1238 if (buildCounterResources < 3) {
1239 o.cpu = 42.0; 1239 o.cpu = 42.0;
1240 o.diskGb = 42.0; 1240 o.diskGb = 42.0;
1241 o.memoryGb = 42.0; 1241 o.memoryGb = 42.0;
1242 o.volumes = buildUnnamed2675(); 1242 o.volumes = buildUnnamed2696();
1243 } 1243 }
1244 buildCounterResources--; 1244 buildCounterResources--;
1245 return o; 1245 return o;
1246 } 1246 }
1247 1247
1248 checkResources(api.Resources o) { 1248 checkResources(api.Resources o) {
1249 buildCounterResources++; 1249 buildCounterResources++;
1250 if (buildCounterResources < 3) { 1250 if (buildCounterResources < 3) {
1251 unittest.expect(o.cpu, unittest.equals(42.0)); 1251 unittest.expect(o.cpu, unittest.equals(42.0));
1252 unittest.expect(o.diskGb, unittest.equals(42.0)); 1252 unittest.expect(o.diskGb, unittest.equals(42.0));
1253 unittest.expect(o.memoryGb, unittest.equals(42.0)); 1253 unittest.expect(o.memoryGb, unittest.equals(42.0));
1254 checkUnnamed2675(o.volumes); 1254 checkUnnamed2696(o.volumes);
1255 } 1255 }
1256 buildCounterResources--; 1256 buildCounterResources--;
1257 } 1257 }
1258 1258
1259 core.int buildCounterScriptHandler = 0; 1259 core.int buildCounterScriptHandler = 0;
1260 buildScriptHandler() { 1260 buildScriptHandler() {
1261 var o = new api.ScriptHandler(); 1261 var o = new api.ScriptHandler();
1262 buildCounterScriptHandler++; 1262 buildCounterScriptHandler++;
1263 if (buildCounterScriptHandler < 3) { 1263 if (buildCounterScriptHandler < 3) {
1264 o.scriptPath = "foo"; 1264 o.scriptPath = "foo";
(...skipping 26 matching lines...) Expand all
1291 checkService(api.Service o) { 1291 checkService(api.Service o) {
1292 buildCounterService++; 1292 buildCounterService++;
1293 if (buildCounterService < 3) { 1293 if (buildCounterService < 3) {
1294 unittest.expect(o.id, unittest.equals('foo')); 1294 unittest.expect(o.id, unittest.equals('foo'));
1295 unittest.expect(o.name, unittest.equals('foo')); 1295 unittest.expect(o.name, unittest.equals('foo'));
1296 checkTrafficSplit(o.split); 1296 checkTrafficSplit(o.split);
1297 } 1297 }
1298 buildCounterService--; 1298 buildCounterService--;
1299 } 1299 }
1300 1300
1301 buildUnnamed2676() { 1301 buildUnnamed2697() {
1302 var o = new core.Map<core.String, core.String>(); 1302 var o = new core.Map<core.String, core.String>();
1303 o["x"] = "foo"; 1303 o["x"] = "foo";
1304 o["y"] = "foo"; 1304 o["y"] = "foo";
1305 return o; 1305 return o;
1306 } 1306 }
1307 1307
1308 checkUnnamed2676(core.Map<core.String, core.String> o) { 1308 checkUnnamed2697(core.Map<core.String, core.String> o) {
1309 unittest.expect(o, unittest.hasLength(2)); 1309 unittest.expect(o, unittest.hasLength(2));
1310 unittest.expect(o["x"], unittest.equals('foo')); 1310 unittest.expect(o["x"], unittest.equals('foo'));
1311 unittest.expect(o["y"], unittest.equals('foo')); 1311 unittest.expect(o["y"], unittest.equals('foo'));
1312 } 1312 }
1313 1313
1314 core.int buildCounterStaticFilesHandler = 0; 1314 core.int buildCounterStaticFilesHandler = 0;
1315 buildStaticFilesHandler() { 1315 buildStaticFilesHandler() {
1316 var o = new api.StaticFilesHandler(); 1316 var o = new api.StaticFilesHandler();
1317 buildCounterStaticFilesHandler++; 1317 buildCounterStaticFilesHandler++;
1318 if (buildCounterStaticFilesHandler < 3) { 1318 if (buildCounterStaticFilesHandler < 3) {
1319 o.applicationReadable = true; 1319 o.applicationReadable = true;
1320 o.expiration = "foo"; 1320 o.expiration = "foo";
1321 o.httpHeaders = buildUnnamed2676(); 1321 o.httpHeaders = buildUnnamed2697();
1322 o.mimeType = "foo"; 1322 o.mimeType = "foo";
1323 o.path = "foo"; 1323 o.path = "foo";
1324 o.requireMatchingFile = true; 1324 o.requireMatchingFile = true;
1325 o.uploadPathRegex = "foo"; 1325 o.uploadPathRegex = "foo";
1326 } 1326 }
1327 buildCounterStaticFilesHandler--; 1327 buildCounterStaticFilesHandler--;
1328 return o; 1328 return o;
1329 } 1329 }
1330 1330
1331 checkStaticFilesHandler(api.StaticFilesHandler o) { 1331 checkStaticFilesHandler(api.StaticFilesHandler o) {
1332 buildCounterStaticFilesHandler++; 1332 buildCounterStaticFilesHandler++;
1333 if (buildCounterStaticFilesHandler < 3) { 1333 if (buildCounterStaticFilesHandler < 3) {
1334 unittest.expect(o.applicationReadable, unittest.isTrue); 1334 unittest.expect(o.applicationReadable, unittest.isTrue);
1335 unittest.expect(o.expiration, unittest.equals('foo')); 1335 unittest.expect(o.expiration, unittest.equals('foo'));
1336 checkUnnamed2676(o.httpHeaders); 1336 checkUnnamed2697(o.httpHeaders);
1337 unittest.expect(o.mimeType, unittest.equals('foo')); 1337 unittest.expect(o.mimeType, unittest.equals('foo'));
1338 unittest.expect(o.path, unittest.equals('foo')); 1338 unittest.expect(o.path, unittest.equals('foo'));
1339 unittest.expect(o.requireMatchingFile, unittest.isTrue); 1339 unittest.expect(o.requireMatchingFile, unittest.isTrue);
1340 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); 1340 unittest.expect(o.uploadPathRegex, unittest.equals('foo'));
1341 } 1341 }
1342 buildCounterStaticFilesHandler--; 1342 buildCounterStaticFilesHandler--;
1343 } 1343 }
1344 1344
1345 buildUnnamed2677() { 1345 buildUnnamed2698() {
1346 var o = new core.Map<core.String, core.Object>(); 1346 var o = new core.Map<core.String, core.Object>();
1347 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1347 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1348 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1348 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1349 return o; 1349 return o;
1350 } 1350 }
1351 1351
1352 checkUnnamed2677(core.Map<core.String, core.Object> o) { 1352 checkUnnamed2698(core.Map<core.String, core.Object> o) {
1353 unittest.expect(o, unittest.hasLength(2)); 1353 unittest.expect(o, unittest.hasLength(2));
1354 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')); 1354 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'));
1355 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')); 1355 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'));
1356 } 1356 }
1357 1357
1358 buildUnnamed2678() { 1358 buildUnnamed2699() {
1359 var o = new core.List<core.Map<core.String, core.Object>>(); 1359 var o = new core.List<core.Map<core.String, core.Object>>();
1360 o.add(buildUnnamed2677()); 1360 o.add(buildUnnamed2698());
1361 o.add(buildUnnamed2677()); 1361 o.add(buildUnnamed2698());
1362 return o; 1362 return o;
1363 } 1363 }
1364 1364
1365 checkUnnamed2678(core.List<core.Map<core.String, core.Object>> o) { 1365 checkUnnamed2699(core.List<core.Map<core.String, core.Object>> o) {
1366 unittest.expect(o, unittest.hasLength(2)); 1366 unittest.expect(o, unittest.hasLength(2));
1367 checkUnnamed2677(o[0]); 1367 checkUnnamed2698(o[0]);
1368 checkUnnamed2677(o[1]); 1368 checkUnnamed2698(o[1]);
1369 } 1369 }
1370 1370
1371 core.int buildCounterStatus = 0; 1371 core.int buildCounterStatus = 0;
1372 buildStatus() { 1372 buildStatus() {
1373 var o = new api.Status(); 1373 var o = new api.Status();
1374 buildCounterStatus++; 1374 buildCounterStatus++;
1375 if (buildCounterStatus < 3) { 1375 if (buildCounterStatus < 3) {
1376 o.code = 42; 1376 o.code = 42;
1377 o.details = buildUnnamed2678(); 1377 o.details = buildUnnamed2699();
1378 o.message = "foo"; 1378 o.message = "foo";
1379 } 1379 }
1380 buildCounterStatus--; 1380 buildCounterStatus--;
1381 return o; 1381 return o;
1382 } 1382 }
1383 1383
1384 checkStatus(api.Status o) { 1384 checkStatus(api.Status o) {
1385 buildCounterStatus++; 1385 buildCounterStatus++;
1386 if (buildCounterStatus < 3) { 1386 if (buildCounterStatus < 3) {
1387 unittest.expect(o.code, unittest.equals(42)); 1387 unittest.expect(o.code, unittest.equals(42));
1388 checkUnnamed2678(o.details); 1388 checkUnnamed2699(o.details);
1389 unittest.expect(o.message, unittest.equals('foo')); 1389 unittest.expect(o.message, unittest.equals('foo'));
1390 } 1390 }
1391 buildCounterStatus--; 1391 buildCounterStatus--;
1392 } 1392 }
1393 1393
1394 buildUnnamed2679() { 1394 buildUnnamed2700() {
1395 var o = new core.Map<core.String, core.double>(); 1395 var o = new core.Map<core.String, core.double>();
1396 o["x"] = 42.0; 1396 o["x"] = 42.0;
1397 o["y"] = 42.0; 1397 o["y"] = 42.0;
1398 return o; 1398 return o;
1399 } 1399 }
1400 1400
1401 checkUnnamed2679(core.Map<core.String, core.double> o) { 1401 checkUnnamed2700(core.Map<core.String, core.double> o) {
1402 unittest.expect(o, unittest.hasLength(2)); 1402 unittest.expect(o, unittest.hasLength(2));
1403 unittest.expect(o["x"], unittest.equals(42.0)); 1403 unittest.expect(o["x"], unittest.equals(42.0));
1404 unittest.expect(o["y"], unittest.equals(42.0)); 1404 unittest.expect(o["y"], unittest.equals(42.0));
1405 } 1405 }
1406 1406
1407 core.int buildCounterTrafficSplit = 0; 1407 core.int buildCounterTrafficSplit = 0;
1408 buildTrafficSplit() { 1408 buildTrafficSplit() {
1409 var o = new api.TrafficSplit(); 1409 var o = new api.TrafficSplit();
1410 buildCounterTrafficSplit++; 1410 buildCounterTrafficSplit++;
1411 if (buildCounterTrafficSplit < 3) { 1411 if (buildCounterTrafficSplit < 3) {
1412 o.allocations = buildUnnamed2679(); 1412 o.allocations = buildUnnamed2700();
1413 o.shardBy = "foo"; 1413 o.shardBy = "foo";
1414 } 1414 }
1415 buildCounterTrafficSplit--; 1415 buildCounterTrafficSplit--;
1416 return o; 1416 return o;
1417 } 1417 }
1418 1418
1419 checkTrafficSplit(api.TrafficSplit o) { 1419 checkTrafficSplit(api.TrafficSplit o) {
1420 buildCounterTrafficSplit++; 1420 buildCounterTrafficSplit++;
1421 if (buildCounterTrafficSplit < 3) { 1421 if (buildCounterTrafficSplit < 3) {
1422 checkUnnamed2679(o.allocations); 1422 checkUnnamed2700(o.allocations);
1423 unittest.expect(o.shardBy, unittest.equals('foo')); 1423 unittest.expect(o.shardBy, unittest.equals('foo'));
1424 } 1424 }
1425 buildCounterTrafficSplit--; 1425 buildCounterTrafficSplit--;
1426 } 1426 }
1427 1427
1428 core.int buildCounterUrlDispatchRule = 0; 1428 core.int buildCounterUrlDispatchRule = 0;
1429 buildUrlDispatchRule() { 1429 buildUrlDispatchRule() {
1430 var o = new api.UrlDispatchRule(); 1430 var o = new api.UrlDispatchRule();
1431 buildCounterUrlDispatchRule++; 1431 buildCounterUrlDispatchRule++;
1432 if (buildCounterUrlDispatchRule < 3) { 1432 if (buildCounterUrlDispatchRule < 3) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 unittest.expect(o.login, unittest.equals('foo')); 1474 unittest.expect(o.login, unittest.equals('foo'));
1475 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); 1475 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo'));
1476 checkScriptHandler(o.script); 1476 checkScriptHandler(o.script);
1477 unittest.expect(o.securityLevel, unittest.equals('foo')); 1477 unittest.expect(o.securityLevel, unittest.equals('foo'));
1478 checkStaticFilesHandler(o.staticFiles); 1478 checkStaticFilesHandler(o.staticFiles);
1479 unittest.expect(o.urlRegex, unittest.equals('foo')); 1479 unittest.expect(o.urlRegex, unittest.equals('foo'));
1480 } 1480 }
1481 buildCounterUrlMap--; 1481 buildCounterUrlMap--;
1482 } 1482 }
1483 1483
1484 buildUnnamed2680() { 1484 buildUnnamed2701() {
1485 var o = new core.Map<core.String, core.String>(); 1485 var o = new core.Map<core.String, core.String>();
1486 o["x"] = "foo"; 1486 o["x"] = "foo";
1487 o["y"] = "foo"; 1487 o["y"] = "foo";
1488 return o; 1488 return o;
1489 } 1489 }
1490 1490
1491 checkUnnamed2680(core.Map<core.String, core.String> o) { 1491 checkUnnamed2701(core.Map<core.String, core.String> o) {
1492 unittest.expect(o, unittest.hasLength(2)); 1492 unittest.expect(o, unittest.hasLength(2));
1493 unittest.expect(o["x"], unittest.equals('foo')); 1493 unittest.expect(o["x"], unittest.equals('foo'));
1494 unittest.expect(o["y"], unittest.equals('foo')); 1494 unittest.expect(o["y"], unittest.equals('foo'));
1495 } 1495 }
1496 1496
1497 buildUnnamed2681() { 1497 buildUnnamed2702() {
1498 var o = new core.Map<core.String, core.String>(); 1498 var o = new core.Map<core.String, core.String>();
1499 o["x"] = "foo"; 1499 o["x"] = "foo";
1500 o["y"] = "foo"; 1500 o["y"] = "foo";
1501 return o; 1501 return o;
1502 } 1502 }
1503 1503
1504 checkUnnamed2681(core.Map<core.String, core.String> o) { 1504 checkUnnamed2702(core.Map<core.String, core.String> o) {
1505 unittest.expect(o, unittest.hasLength(2)); 1505 unittest.expect(o, unittest.hasLength(2));
1506 unittest.expect(o["x"], unittest.equals('foo')); 1506 unittest.expect(o["x"], unittest.equals('foo'));
1507 unittest.expect(o["y"], unittest.equals('foo')); 1507 unittest.expect(o["y"], unittest.equals('foo'));
1508 } 1508 }
1509 1509
1510 buildUnnamed2682() { 1510 buildUnnamed2703() {
1511 var o = new core.List<api.ErrorHandler>(); 1511 var o = new core.List<api.ErrorHandler>();
1512 o.add(buildErrorHandler()); 1512 o.add(buildErrorHandler());
1513 o.add(buildErrorHandler()); 1513 o.add(buildErrorHandler());
1514 return o; 1514 return o;
1515 } 1515 }
1516 1516
1517 checkUnnamed2682(core.List<api.ErrorHandler> o) { 1517 checkUnnamed2703(core.List<api.ErrorHandler> o) {
1518 unittest.expect(o, unittest.hasLength(2)); 1518 unittest.expect(o, unittest.hasLength(2));
1519 checkErrorHandler(o[0]); 1519 checkErrorHandler(o[0]);
1520 checkErrorHandler(o[1]); 1520 checkErrorHandler(o[1]);
1521 } 1521 }
1522 1522
1523 buildUnnamed2683() { 1523 buildUnnamed2704() {
1524 var o = new core.List<api.UrlMap>(); 1524 var o = new core.List<api.UrlMap>();
1525 o.add(buildUrlMap()); 1525 o.add(buildUrlMap());
1526 o.add(buildUrlMap()); 1526 o.add(buildUrlMap());
1527 return o; 1527 return o;
1528 } 1528 }
1529 1529
1530 checkUnnamed2683(core.List<api.UrlMap> o) { 1530 checkUnnamed2704(core.List<api.UrlMap> o) {
1531 unittest.expect(o, unittest.hasLength(2)); 1531 unittest.expect(o, unittest.hasLength(2));
1532 checkUrlMap(o[0]); 1532 checkUrlMap(o[0]);
1533 checkUrlMap(o[1]); 1533 checkUrlMap(o[1]);
1534 } 1534 }
1535 1535
1536 buildUnnamed2684() { 1536 buildUnnamed2705() {
1537 var o = new core.List<core.String>(); 1537 var o = new core.List<core.String>();
1538 o.add("foo"); 1538 o.add("foo");
1539 o.add("foo"); 1539 o.add("foo");
1540 return o; 1540 return o;
1541 } 1541 }
1542 1542
1543 checkUnnamed2684(core.List<core.String> o) { 1543 checkUnnamed2705(core.List<core.String> o) {
1544 unittest.expect(o, unittest.hasLength(2)); 1544 unittest.expect(o, unittest.hasLength(2));
1545 unittest.expect(o[0], unittest.equals('foo')); 1545 unittest.expect(o[0], unittest.equals('foo'));
1546 unittest.expect(o[1], unittest.equals('foo')); 1546 unittest.expect(o[1], unittest.equals('foo'));
1547 } 1547 }
1548 1548
1549 buildUnnamed2685() { 1549 buildUnnamed2706() {
1550 var o = new core.List<api.Library>(); 1550 var o = new core.List<api.Library>();
1551 o.add(buildLibrary()); 1551 o.add(buildLibrary());
1552 o.add(buildLibrary()); 1552 o.add(buildLibrary());
1553 return o; 1553 return o;
1554 } 1554 }
1555 1555
1556 checkUnnamed2685(core.List<api.Library> o) { 1556 checkUnnamed2706(core.List<api.Library> o) {
1557 unittest.expect(o, unittest.hasLength(2)); 1557 unittest.expect(o, unittest.hasLength(2));
1558 checkLibrary(o[0]); 1558 checkLibrary(o[0]);
1559 checkLibrary(o[1]); 1559 checkLibrary(o[1]);
1560 } 1560 }
1561 1561
1562 core.int buildCounterVersion = 0; 1562 core.int buildCounterVersion = 0;
1563 buildVersion() { 1563 buildVersion() {
1564 var o = new api.Version(); 1564 var o = new api.Version();
1565 buildCounterVersion++; 1565 buildCounterVersion++;
1566 if (buildCounterVersion < 3) { 1566 if (buildCounterVersion < 3) {
1567 o.apiConfig = buildApiConfigHandler(); 1567 o.apiConfig = buildApiConfigHandler();
1568 o.automaticScaling = buildAutomaticScaling(); 1568 o.automaticScaling = buildAutomaticScaling();
1569 o.basicScaling = buildBasicScaling(); 1569 o.basicScaling = buildBasicScaling();
1570 o.betaSettings = buildUnnamed2680(); 1570 o.betaSettings = buildUnnamed2701();
1571 o.createTime = "foo"; 1571 o.createTime = "foo";
1572 o.createdBy = "foo"; 1572 o.createdBy = "foo";
1573 o.defaultExpiration = "foo"; 1573 o.defaultExpiration = "foo";
1574 o.deployment = buildDeployment(); 1574 o.deployment = buildDeployment();
1575 o.diskUsageBytes = "foo"; 1575 o.diskUsageBytes = "foo";
1576 o.endpointsApiService = buildEndpointsApiService(); 1576 o.endpointsApiService = buildEndpointsApiService();
1577 o.env = "foo"; 1577 o.env = "foo";
1578 o.envVariables = buildUnnamed2681(); 1578 o.envVariables = buildUnnamed2702();
1579 o.errorHandlers = buildUnnamed2682(); 1579 o.errorHandlers = buildUnnamed2703();
1580 o.handlers = buildUnnamed2683(); 1580 o.handlers = buildUnnamed2704();
1581 o.healthCheck = buildHealthCheck(); 1581 o.healthCheck = buildHealthCheck();
1582 o.id = "foo"; 1582 o.id = "foo";
1583 o.inboundServices = buildUnnamed2684(); 1583 o.inboundServices = buildUnnamed2705();
1584 o.instanceClass = "foo"; 1584 o.instanceClass = "foo";
1585 o.libraries = buildUnnamed2685(); 1585 o.libraries = buildUnnamed2706();
1586 o.livenessCheck = buildLivenessCheck(); 1586 o.livenessCheck = buildLivenessCheck();
1587 o.manualScaling = buildManualScaling(); 1587 o.manualScaling = buildManualScaling();
1588 o.name = "foo"; 1588 o.name = "foo";
1589 o.network = buildNetwork(); 1589 o.network = buildNetwork();
1590 o.nobuildFilesRegex = "foo"; 1590 o.nobuildFilesRegex = "foo";
1591 o.readinessCheck = buildReadinessCheck(); 1591 o.readinessCheck = buildReadinessCheck();
1592 o.resources = buildResources(); 1592 o.resources = buildResources();
1593 o.runtime = "foo"; 1593 o.runtime = "foo";
1594 o.runtimeApiVersion = "foo"; 1594 o.runtimeApiVersion = "foo";
1595 o.servingStatus = "foo"; 1595 o.servingStatus = "foo";
1596 o.threadsafe = true; 1596 o.threadsafe = true;
1597 o.versionUrl = "foo"; 1597 o.versionUrl = "foo";
1598 o.vm = true; 1598 o.vm = true;
1599 } 1599 }
1600 buildCounterVersion--; 1600 buildCounterVersion--;
1601 return o; 1601 return o;
1602 } 1602 }
1603 1603
1604 checkVersion(api.Version o) { 1604 checkVersion(api.Version o) {
1605 buildCounterVersion++; 1605 buildCounterVersion++;
1606 if (buildCounterVersion < 3) { 1606 if (buildCounterVersion < 3) {
1607 checkApiConfigHandler(o.apiConfig); 1607 checkApiConfigHandler(o.apiConfig);
1608 checkAutomaticScaling(o.automaticScaling); 1608 checkAutomaticScaling(o.automaticScaling);
1609 checkBasicScaling(o.basicScaling); 1609 checkBasicScaling(o.basicScaling);
1610 checkUnnamed2680(o.betaSettings); 1610 checkUnnamed2701(o.betaSettings);
1611 unittest.expect(o.createTime, unittest.equals('foo')); 1611 unittest.expect(o.createTime, unittest.equals('foo'));
1612 unittest.expect(o.createdBy, unittest.equals('foo')); 1612 unittest.expect(o.createdBy, unittest.equals('foo'));
1613 unittest.expect(o.defaultExpiration, unittest.equals('foo')); 1613 unittest.expect(o.defaultExpiration, unittest.equals('foo'));
1614 checkDeployment(o.deployment); 1614 checkDeployment(o.deployment);
1615 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); 1615 unittest.expect(o.diskUsageBytes, unittest.equals('foo'));
1616 checkEndpointsApiService(o.endpointsApiService); 1616 checkEndpointsApiService(o.endpointsApiService);
1617 unittest.expect(o.env, unittest.equals('foo')); 1617 unittest.expect(o.env, unittest.equals('foo'));
1618 checkUnnamed2681(o.envVariables); 1618 checkUnnamed2702(o.envVariables);
1619 checkUnnamed2682(o.errorHandlers); 1619 checkUnnamed2703(o.errorHandlers);
1620 checkUnnamed2683(o.handlers); 1620 checkUnnamed2704(o.handlers);
1621 checkHealthCheck(o.healthCheck); 1621 checkHealthCheck(o.healthCheck);
1622 unittest.expect(o.id, unittest.equals('foo')); 1622 unittest.expect(o.id, unittest.equals('foo'));
1623 checkUnnamed2684(o.inboundServices); 1623 checkUnnamed2705(o.inboundServices);
1624 unittest.expect(o.instanceClass, unittest.equals('foo')); 1624 unittest.expect(o.instanceClass, unittest.equals('foo'));
1625 checkUnnamed2685(o.libraries); 1625 checkUnnamed2706(o.libraries);
1626 checkLivenessCheck(o.livenessCheck); 1626 checkLivenessCheck(o.livenessCheck);
1627 checkManualScaling(o.manualScaling); 1627 checkManualScaling(o.manualScaling);
1628 unittest.expect(o.name, unittest.equals('foo')); 1628 unittest.expect(o.name, unittest.equals('foo'));
1629 checkNetwork(o.network); 1629 checkNetwork(o.network);
1630 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); 1630 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo'));
1631 checkReadinessCheck(o.readinessCheck); 1631 checkReadinessCheck(o.readinessCheck);
1632 checkResources(o.resources); 1632 checkResources(o.resources);
1633 unittest.expect(o.runtime, unittest.equals('foo')); 1633 unittest.expect(o.runtime, unittest.equals('foo'));
1634 unittest.expect(o.runtimeApiVersion, unittest.equals('foo')); 1634 unittest.expect(o.runtimeApiVersion, unittest.equals('foo'));
1635 unittest.expect(o.servingStatus, unittest.equals('foo')); 1635 unittest.expect(o.servingStatus, unittest.equals('foo'));
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
2387 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Loca tion response) { 2387 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Loca tion response) {
2388 checkLocation(response); 2388 checkLocation(response);
2389 }))); 2389 })));
2390 }); 2390 });
2391 2391
2392 unittest.test("method--list", () { 2392 unittest.test("method--list", () {
2393 2393
2394 var mock = new HttpServerMock(); 2394 var mock = new HttpServerMock();
2395 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns; 2395 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns;
2396 var arg_appsId = "foo"; 2396 var arg_appsId = "foo";
2397 var arg_pageSize = 42;
2397 var arg_filter = "foo"; 2398 var arg_filter = "foo";
2398 var arg_pageToken = "foo"; 2399 var arg_pageToken = "foo";
2399 var arg_pageSize = 42;
2400 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 2400 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2401 var path = (req.url).path; 2401 var path = (req.url).path;
2402 var pathOffset = 0; 2402 var pathOffset = 0;
2403 var index; 2403 var index;
2404 var subPart; 2404 var subPart;
2405 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2405 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2406 pathOffset += 1; 2406 pathOffset += 1;
2407 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1/apps/")); 2407 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1/apps/"));
2408 pathOffset += 8; 2408 pathOffset += 8;
2409 index = path.indexOf("/locations", pathOffset); 2409 index = path.indexOf("/locations", pathOffset);
(...skipping 13 matching lines...) Expand all
2423 if (n == "false") return false; 2423 if (n == "false") return false;
2424 if (n == null) return null; 2424 if (n == null) return null;
2425 throw new core.ArgumentError("Invalid boolean: $n"); 2425 throw new core.ArgumentError("Invalid boolean: $n");
2426 } 2426 }
2427 if (query.length > 0) { 2427 if (query.length > 0) {
2428 for (var part in query.split("&")) { 2428 for (var part in query.split("&")) {
2429 var keyvalue = part.split("="); 2429 var keyvalue = part.split("=");
2430 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2430 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2431 } 2431 }
2432 } 2432 }
2433 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2433 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 2434 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
2434 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 2435 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2435 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2436 2436
2437 2437
2438 var h = { 2438 var h = {
2439 "content-type" : "application/json; charset=utf-8", 2439 "content-type" : "application/json; charset=utf-8",
2440 }; 2440 };
2441 var resp = convert.JSON.encode(buildListLocationsResponse()); 2441 var resp = convert.JSON.encode(buildListLocationsResponse());
2442 return new async.Future.value(stringResponse(200, h, resp)); 2442 return new async.Future.value(stringResponse(200, h, resp));
2443 }), true); 2443 }), true);
2444 res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync1(((api.ListLocationsResponse response ) { 2444 res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken : arg_pageToken).then(unittest.expectAsync1(((api.ListLocationsResponse response ) {
2445 checkListLocationsResponse(response); 2445 checkListLocationsResponse(response);
2446 }))); 2446 })));
2447 }); 2447 });
2448 2448
2449 }); 2449 });
2450 2450
2451 2451
2452 unittest.group("resource-AppsOperationsResourceApi", () { 2452 unittest.group("resource-AppsOperationsResourceApi", () {
2453 unittest.test("method--get", () { 2453 unittest.test("method--get", () {
2454 2454
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
2503 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Ope ration response) { 2503 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Ope ration response) {
2504 checkOperation(response); 2504 checkOperation(response);
2505 }))); 2505 })));
2506 }); 2506 });
2507 2507
2508 unittest.test("method--list", () { 2508 unittest.test("method--list", () {
2509 2509
2510 var mock = new HttpServerMock(); 2510 var mock = new HttpServerMock();
2511 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions; 2511 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions;
2512 var arg_appsId = "foo"; 2512 var arg_appsId = "foo";
2513 var arg_filter = "foo";
2513 var arg_pageToken = "foo"; 2514 var arg_pageToken = "foo";
2514 var arg_pageSize = 42; 2515 var arg_pageSize = 42;
2515 var arg_filter = "foo";
2516 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 2516 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2517 var path = (req.url).path; 2517 var path = (req.url).path;
2518 var pathOffset = 0; 2518 var pathOffset = 0;
2519 var index; 2519 var index;
2520 var subPart; 2520 var subPart;
2521 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2521 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2522 pathOffset += 1; 2522 pathOffset += 1;
2523 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1/apps/")); 2523 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1/apps/"));
2524 pathOffset += 8; 2524 pathOffset += 8;
2525 index = path.indexOf("/operations", pathOffset); 2525 index = path.indexOf("/operations", pathOffset);
(...skipping 13 matching lines...) Expand all
2539 if (n == "false") return false; 2539 if (n == "false") return false;
2540 if (n == null) return null; 2540 if (n == null) return null;
2541 throw new core.ArgumentError("Invalid boolean: $n"); 2541 throw new core.ArgumentError("Invalid boolean: $n");
2542 } 2542 }
2543 if (query.length > 0) { 2543 if (query.length > 0) {
2544 for (var part in query.split("&")) { 2544 for (var part in query.split("&")) {
2545 var keyvalue = part.split("="); 2545 var keyvalue = part.split("=");
2546 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2546 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2547 } 2547 }
2548 } 2548 }
2549 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
2549 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 2550 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2550 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 2551 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2551 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
2552 2552
2553 2553
2554 var h = { 2554 var h = {
2555 "content-type" : "application/json; charset=utf-8", 2555 "content-type" : "application/json; charset=utf-8",
2556 }; 2556 };
2557 var resp = convert.JSON.encode(buildListOperationsResponse()); 2557 var resp = convert.JSON.encode(buildListOperationsResponse());
2558 return new async.Future.value(stringResponse(200, h, resp)); 2558 return new async.Future.value(stringResponse(200, h, resp));
2559 }), true); 2559 }), true);
2560 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, fil ter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse respons e) { 2560 res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse respons e) {
2561 checkListOperationsResponse(response); 2561 checkListOperationsResponse(response);
2562 }))); 2562 })));
2563 }); 2563 });
2564 2564
2565 }); 2565 });
2566 2566
2567 2567
2568 unittest.group("resource-AppsServicesResourceApi", () { 2568 unittest.group("resource-AppsServicesResourceApi", () {
2569 unittest.test("method--delete", () { 2569 unittest.test("method--delete", () {
2570 2570
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2731 }))); 2731 })));
2732 }); 2732 });
2733 2733
2734 unittest.test("method--patch", () { 2734 unittest.test("method--patch", () {
2735 2735
2736 var mock = new HttpServerMock(); 2736 var mock = new HttpServerMock();
2737 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ; 2737 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ;
2738 var arg_request = buildService(); 2738 var arg_request = buildService();
2739 var arg_appsId = "foo"; 2739 var arg_appsId = "foo";
2740 var arg_servicesId = "foo"; 2740 var arg_servicesId = "foo";
2741 var arg_migrateTraffic = true;
2741 var arg_updateMask = "foo"; 2742 var arg_updateMask = "foo";
2742 var arg_migrateTraffic = true;
2743 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 2743 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2744 var obj = new api.Service.fromJson(json); 2744 var obj = new api.Service.fromJson(json);
2745 checkService(obj); 2745 checkService(obj);
2746 2746
2747 var path = (req.url).path; 2747 var path = (req.url).path;
2748 var pathOffset = 0; 2748 var pathOffset = 0;
2749 var index; 2749 var index;
2750 var subPart; 2750 var subPart;
2751 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2751 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2752 pathOffset += 1; 2752 pathOffset += 1;
(...skipping 19 matching lines...) Expand all
2772 if (n == "false") return false; 2772 if (n == "false") return false;
2773 if (n == null) return null; 2773 if (n == null) return null;
2774 throw new core.ArgumentError("Invalid boolean: $n"); 2774 throw new core.ArgumentError("Invalid boolean: $n");
2775 } 2775 }
2776 if (query.length > 0) { 2776 if (query.length > 0) {
2777 for (var part in query.split("&")) { 2777 for (var part in query.split("&")) {
2778 var keyvalue = part.split("="); 2778 var keyvalue = part.split("=");
2779 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2779 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2780 } 2780 }
2781 } 2781 }
2782 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_ migrateTraffic"));
2782 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask)); 2783 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask));
2783 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_ migrateTraffic"));
2784 2784
2785 2785
2786 var h = { 2786 var h = {
2787 "content-type" : "application/json; charset=utf-8", 2787 "content-type" : "application/json; charset=utf-8",
2788 }; 2788 };
2789 var resp = convert.JSON.encode(buildOperation()); 2789 var resp = convert.JSON.encode(buildOperation());
2790 return new async.Future.value(stringResponse(200, h, resp)); 2790 return new async.Future.value(stringResponse(200, h, resp));
2791 }), true); 2791 }), true);
2792 res.patch(arg_request, arg_appsId, arg_servicesId, updateMask: arg_updateM ask, migrateTraffic: arg_migrateTraffic).then(unittest.expectAsync1(((api.Operat ion response) { 2792 res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_mig rateTraffic, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operat ion response) {
2793 checkOperation(response); 2793 checkOperation(response);
2794 }))); 2794 })));
2795 }); 2795 });
2796 2796
2797 }); 2797 });
2798 2798
2799 2799
2800 unittest.group("resource-AppsServicesVersionsResourceApi", () { 2800 unittest.group("resource-AppsServicesVersionsResourceApi", () {
2801 unittest.test("method--create", () { 2801 unittest.test("method--create", () {
2802 2802
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
3348 }))); 3348 })));
3349 }); 3349 });
3350 3350
3351 unittest.test("method--list", () { 3351 unittest.test("method--list", () {
3352 3352
3353 var mock = new HttpServerMock(); 3353 var mock = new HttpServerMock();
3354 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo ck).apps.services.versions.instances; 3354 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo ck).apps.services.versions.instances;
3355 var arg_appsId = "foo"; 3355 var arg_appsId = "foo";
3356 var arg_servicesId = "foo"; 3356 var arg_servicesId = "foo";
3357 var arg_versionsId = "foo"; 3357 var arg_versionsId = "foo";
3358 var arg_pageToken = "foo";
3358 var arg_pageSize = 42; 3359 var arg_pageSize = 42;
3359 var arg_pageToken = "foo";
3360 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 3360 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3361 var path = (req.url).path; 3361 var path = (req.url).path;
3362 var pathOffset = 0; 3362 var pathOffset = 0;
3363 var index; 3363 var index;
3364 var subPart; 3364 var subPart;
3365 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3365 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3366 pathOffset += 1; 3366 pathOffset += 1;
3367 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1/apps/")); 3367 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1/apps/"));
3368 pathOffset += 8; 3368 pathOffset += 8;
3369 index = path.indexOf("/services/", pathOffset); 3369 index = path.indexOf("/services/", pathOffset);
(...skipping 27 matching lines...) Expand all
3397 if (n == "false") return false; 3397 if (n == "false") return false;
3398 if (n == null) return null; 3398 if (n == null) return null;
3399 throw new core.ArgumentError("Invalid boolean: $n"); 3399 throw new core.ArgumentError("Invalid boolean: $n");
3400 } 3400 }
3401 if (query.length > 0) { 3401 if (query.length > 0) {
3402 for (var part in query.split("&")) { 3402 for (var part in query.split("&")) {
3403 var keyvalue = part.split("="); 3403 var keyvalue = part.split("=");
3404 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3404 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3405 } 3405 }
3406 } 3406 }
3407 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3407 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3408 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3408 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3409 3409
3410 3410
3411 var h = { 3411 var h = {
3412 "content-type" : "application/json; charset=utf-8", 3412 "content-type" : "application/json; charset=utf-8",
3413 }; 3413 };
3414 var resp = convert.JSON.encode(buildListInstancesResponse()); 3414 var resp = convert.JSON.encode(buildListInstancesResponse());
3415 return new async.Future.value(stringResponse(200, h, resp)); 3415 return new async.Future.value(stringResponse(200, h, resp));
3416 }), true); 3416 }), true);
3417 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz e, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListInstancesRespo nse response) { 3417 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageTo ken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesRespo nse response) {
3418 checkListInstancesResponse(response); 3418 checkListInstancesResponse(response);
3419 }))); 3419 })));
3420 }); 3420 });
3421 3421
3422 }); 3422 });
3423 3423
3424 3424
3425 } 3425 }
3426 3426
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