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

Side by Side Diff: generated/googleapis_beta/test/appengine/v1beta5_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_beta.appengine.v1beta5.test; 1 library googleapis_beta.appengine.v1beta5.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 buildUnnamed3466() { 100 buildUnnamed3498() {
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 checkUnnamed3466(core.List<api.UrlDispatchRule> o) { 107 checkUnnamed3498(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 = buildUnnamed3466(); 123 o.dispatchRules = buildUnnamed3498();
124 o.iap = buildIdentityAwareProxy(); 124 o.iap = buildIdentityAwareProxy();
125 o.id = "foo"; 125 o.id = "foo";
126 o.location = "foo"; 126 o.location = "foo";
127 o.name = "foo"; 127 o.name = "foo";
128 } 128 }
129 buildCounterApplication--; 129 buildCounterApplication--;
130 return o; 130 return o;
131 } 131 }
132 132
133 checkApplication(api.Application o) { 133 checkApplication(api.Application o) {
134 buildCounterApplication++; 134 buildCounterApplication++;
135 if (buildCounterApplication < 3) { 135 if (buildCounterApplication < 3) {
136 unittest.expect(o.authDomain, unittest.equals('foo')); 136 unittest.expect(o.authDomain, unittest.equals('foo'));
137 unittest.expect(o.codeBucket, unittest.equals('foo')); 137 unittest.expect(o.codeBucket, unittest.equals('foo'));
138 unittest.expect(o.defaultBucket, unittest.equals('foo')); 138 unittest.expect(o.defaultBucket, unittest.equals('foo'));
139 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); 139 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo'));
140 unittest.expect(o.defaultHostname, unittest.equals('foo')); 140 unittest.expect(o.defaultHostname, unittest.equals('foo'));
141 checkUnnamed3466(o.dispatchRules); 141 checkUnnamed3498(o.dispatchRules);
142 checkIdentityAwareProxy(o.iap); 142 checkIdentityAwareProxy(o.iap);
143 unittest.expect(o.id, unittest.equals('foo')); 143 unittest.expect(o.id, unittest.equals('foo'));
144 unittest.expect(o.location, unittest.equals('foo')); 144 unittest.expect(o.location, unittest.equals('foo'));
145 unittest.expect(o.name, unittest.equals('foo')); 145 unittest.expect(o.name, unittest.equals('foo'));
146 } 146 }
147 buildCounterApplication--; 147 buildCounterApplication--;
148 } 148 }
149 149
150 core.int buildCounterAutomaticScaling = 0; 150 core.int buildCounterAutomaticScaling = 0;
151 buildAutomaticScaling() { 151 buildAutomaticScaling() {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 } 261 }
262 262
263 checkDebugInstanceRequest(api.DebugInstanceRequest o) { 263 checkDebugInstanceRequest(api.DebugInstanceRequest o) {
264 buildCounterDebugInstanceRequest++; 264 buildCounterDebugInstanceRequest++;
265 if (buildCounterDebugInstanceRequest < 3) { 265 if (buildCounterDebugInstanceRequest < 3) {
266 unittest.expect(o.sshKey, unittest.equals('foo')); 266 unittest.expect(o.sshKey, unittest.equals('foo'));
267 } 267 }
268 buildCounterDebugInstanceRequest--; 268 buildCounterDebugInstanceRequest--;
269 } 269 }
270 270
271 buildUnnamed3467() { 271 buildUnnamed3499() {
272 var o = new core.Map<core.String, api.FileInfo>(); 272 var o = new core.Map<core.String, api.FileInfo>();
273 o["x"] = buildFileInfo(); 273 o["x"] = buildFileInfo();
274 o["y"] = buildFileInfo(); 274 o["y"] = buildFileInfo();
275 return o; 275 return o;
276 } 276 }
277 277
278 checkUnnamed3467(core.Map<core.String, api.FileInfo> o) { 278 checkUnnamed3499(core.Map<core.String, api.FileInfo> o) {
279 unittest.expect(o, unittest.hasLength(2)); 279 unittest.expect(o, unittest.hasLength(2));
280 checkFileInfo(o["x"]); 280 checkFileInfo(o["x"]);
281 checkFileInfo(o["y"]); 281 checkFileInfo(o["y"]);
282 } 282 }
283 283
284 buildUnnamed3468() { 284 buildUnnamed3500() {
285 var o = new core.List<api.SourceReference>(); 285 var o = new core.List<api.SourceReference>();
286 o.add(buildSourceReference()); 286 o.add(buildSourceReference());
287 o.add(buildSourceReference()); 287 o.add(buildSourceReference());
288 return o; 288 return o;
289 } 289 }
290 290
291 checkUnnamed3468(core.List<api.SourceReference> o) { 291 checkUnnamed3500(core.List<api.SourceReference> o) {
292 unittest.expect(o, unittest.hasLength(2)); 292 unittest.expect(o, unittest.hasLength(2));
293 checkSourceReference(o[0]); 293 checkSourceReference(o[0]);
294 checkSourceReference(o[1]); 294 checkSourceReference(o[1]);
295 } 295 }
296 296
297 core.int buildCounterDeployment = 0; 297 core.int buildCounterDeployment = 0;
298 buildDeployment() { 298 buildDeployment() {
299 var o = new api.Deployment(); 299 var o = new api.Deployment();
300 buildCounterDeployment++; 300 buildCounterDeployment++;
301 if (buildCounterDeployment < 3) { 301 if (buildCounterDeployment < 3) {
302 o.container = buildContainerInfo(); 302 o.container = buildContainerInfo();
303 o.files = buildUnnamed3467(); 303 o.files = buildUnnamed3499();
304 o.sourceReferences = buildUnnamed3468(); 304 o.sourceReferences = buildUnnamed3500();
305 } 305 }
306 buildCounterDeployment--; 306 buildCounterDeployment--;
307 return o; 307 return o;
308 } 308 }
309 309
310 checkDeployment(api.Deployment o) { 310 checkDeployment(api.Deployment o) {
311 buildCounterDeployment++; 311 buildCounterDeployment++;
312 if (buildCounterDeployment < 3) { 312 if (buildCounterDeployment < 3) {
313 checkContainerInfo(o.container); 313 checkContainerInfo(o.container);
314 checkUnnamed3467(o.files); 314 checkUnnamed3499(o.files);
315 checkUnnamed3468(o.sourceReferences); 315 checkUnnamed3500(o.sourceReferences);
316 } 316 }
317 buildCounterDeployment--; 317 buildCounterDeployment--;
318 } 318 }
319 319
320 core.int buildCounterDiskUtilization = 0; 320 core.int buildCounterDiskUtilization = 0;
321 buildDiskUtilization() { 321 buildDiskUtilization() {
322 var o = new api.DiskUtilization(); 322 var o = new api.DiskUtilization();
323 buildCounterDiskUtilization++; 323 buildCounterDiskUtilization++;
324 if (buildCounterDiskUtilization < 3) { 324 if (buildCounterDiskUtilization < 3) {
325 o.targetReadBytesPerSec = 42; 325 o.targetReadBytesPerSec = 42;
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 528
529 checkLibrary(api.Library o) { 529 checkLibrary(api.Library o) {
530 buildCounterLibrary++; 530 buildCounterLibrary++;
531 if (buildCounterLibrary < 3) { 531 if (buildCounterLibrary < 3) {
532 unittest.expect(o.name, unittest.equals('foo')); 532 unittest.expect(o.name, unittest.equals('foo'));
533 unittest.expect(o.version, unittest.equals('foo')); 533 unittest.expect(o.version, unittest.equals('foo'));
534 } 534 }
535 buildCounterLibrary--; 535 buildCounterLibrary--;
536 } 536 }
537 537
538 buildUnnamed3469() { 538 buildUnnamed3501() {
539 var o = new core.List<api.Instance>(); 539 var o = new core.List<api.Instance>();
540 o.add(buildInstance()); 540 o.add(buildInstance());
541 o.add(buildInstance()); 541 o.add(buildInstance());
542 return o; 542 return o;
543 } 543 }
544 544
545 checkUnnamed3469(core.List<api.Instance> o) { 545 checkUnnamed3501(core.List<api.Instance> o) {
546 unittest.expect(o, unittest.hasLength(2)); 546 unittest.expect(o, unittest.hasLength(2));
547 checkInstance(o[0]); 547 checkInstance(o[0]);
548 checkInstance(o[1]); 548 checkInstance(o[1]);
549 } 549 }
550 550
551 core.int buildCounterListInstancesResponse = 0; 551 core.int buildCounterListInstancesResponse = 0;
552 buildListInstancesResponse() { 552 buildListInstancesResponse() {
553 var o = new api.ListInstancesResponse(); 553 var o = new api.ListInstancesResponse();
554 buildCounterListInstancesResponse++; 554 buildCounterListInstancesResponse++;
555 if (buildCounterListInstancesResponse < 3) { 555 if (buildCounterListInstancesResponse < 3) {
556 o.instances = buildUnnamed3469(); 556 o.instances = buildUnnamed3501();
557 o.nextPageToken = "foo"; 557 o.nextPageToken = "foo";
558 } 558 }
559 buildCounterListInstancesResponse--; 559 buildCounterListInstancesResponse--;
560 return o; 560 return o;
561 } 561 }
562 562
563 checkListInstancesResponse(api.ListInstancesResponse o) { 563 checkListInstancesResponse(api.ListInstancesResponse o) {
564 buildCounterListInstancesResponse++; 564 buildCounterListInstancesResponse++;
565 if (buildCounterListInstancesResponse < 3) { 565 if (buildCounterListInstancesResponse < 3) {
566 checkUnnamed3469(o.instances); 566 checkUnnamed3501(o.instances);
567 unittest.expect(o.nextPageToken, unittest.equals('foo')); 567 unittest.expect(o.nextPageToken, unittest.equals('foo'));
568 } 568 }
569 buildCounterListInstancesResponse--; 569 buildCounterListInstancesResponse--;
570 } 570 }
571 571
572 buildUnnamed3470() { 572 buildUnnamed3502() {
573 var o = new core.List<api.Location>(); 573 var o = new core.List<api.Location>();
574 o.add(buildLocation()); 574 o.add(buildLocation());
575 o.add(buildLocation()); 575 o.add(buildLocation());
576 return o; 576 return o;
577 } 577 }
578 578
579 checkUnnamed3470(core.List<api.Location> o) { 579 checkUnnamed3502(core.List<api.Location> o) {
580 unittest.expect(o, unittest.hasLength(2)); 580 unittest.expect(o, unittest.hasLength(2));
581 checkLocation(o[0]); 581 checkLocation(o[0]);
582 checkLocation(o[1]); 582 checkLocation(o[1]);
583 } 583 }
584 584
585 core.int buildCounterListLocationsResponse = 0; 585 core.int buildCounterListLocationsResponse = 0;
586 buildListLocationsResponse() { 586 buildListLocationsResponse() {
587 var o = new api.ListLocationsResponse(); 587 var o = new api.ListLocationsResponse();
588 buildCounterListLocationsResponse++; 588 buildCounterListLocationsResponse++;
589 if (buildCounterListLocationsResponse < 3) { 589 if (buildCounterListLocationsResponse < 3) {
590 o.locations = buildUnnamed3470(); 590 o.locations = buildUnnamed3502();
591 o.nextPageToken = "foo"; 591 o.nextPageToken = "foo";
592 } 592 }
593 buildCounterListLocationsResponse--; 593 buildCounterListLocationsResponse--;
594 return o; 594 return o;
595 } 595 }
596 596
597 checkListLocationsResponse(api.ListLocationsResponse o) { 597 checkListLocationsResponse(api.ListLocationsResponse o) {
598 buildCounterListLocationsResponse++; 598 buildCounterListLocationsResponse++;
599 if (buildCounterListLocationsResponse < 3) { 599 if (buildCounterListLocationsResponse < 3) {
600 checkUnnamed3470(o.locations); 600 checkUnnamed3502(o.locations);
601 unittest.expect(o.nextPageToken, unittest.equals('foo')); 601 unittest.expect(o.nextPageToken, unittest.equals('foo'));
602 } 602 }
603 buildCounterListLocationsResponse--; 603 buildCounterListLocationsResponse--;
604 } 604 }
605 605
606 buildUnnamed3471() { 606 buildUnnamed3503() {
607 var o = new core.List<api.Operation>(); 607 var o = new core.List<api.Operation>();
608 o.add(buildOperation()); 608 o.add(buildOperation());
609 o.add(buildOperation()); 609 o.add(buildOperation());
610 return o; 610 return o;
611 } 611 }
612 612
613 checkUnnamed3471(core.List<api.Operation> o) { 613 checkUnnamed3503(core.List<api.Operation> o) {
614 unittest.expect(o, unittest.hasLength(2)); 614 unittest.expect(o, unittest.hasLength(2));
615 checkOperation(o[0]); 615 checkOperation(o[0]);
616 checkOperation(o[1]); 616 checkOperation(o[1]);
617 } 617 }
618 618
619 core.int buildCounterListOperationsResponse = 0; 619 core.int buildCounterListOperationsResponse = 0;
620 buildListOperationsResponse() { 620 buildListOperationsResponse() {
621 var o = new api.ListOperationsResponse(); 621 var o = new api.ListOperationsResponse();
622 buildCounterListOperationsResponse++; 622 buildCounterListOperationsResponse++;
623 if (buildCounterListOperationsResponse < 3) { 623 if (buildCounterListOperationsResponse < 3) {
624 o.nextPageToken = "foo"; 624 o.nextPageToken = "foo";
625 o.operations = buildUnnamed3471(); 625 o.operations = buildUnnamed3503();
626 } 626 }
627 buildCounterListOperationsResponse--; 627 buildCounterListOperationsResponse--;
628 return o; 628 return o;
629 } 629 }
630 630
631 checkListOperationsResponse(api.ListOperationsResponse o) { 631 checkListOperationsResponse(api.ListOperationsResponse o) {
632 buildCounterListOperationsResponse++; 632 buildCounterListOperationsResponse++;
633 if (buildCounterListOperationsResponse < 3) { 633 if (buildCounterListOperationsResponse < 3) {
634 unittest.expect(o.nextPageToken, unittest.equals('foo')); 634 unittest.expect(o.nextPageToken, unittest.equals('foo'));
635 checkUnnamed3471(o.operations); 635 checkUnnamed3503(o.operations);
636 } 636 }
637 buildCounterListOperationsResponse--; 637 buildCounterListOperationsResponse--;
638 } 638 }
639 639
640 buildUnnamed3472() { 640 buildUnnamed3504() {
641 var o = new core.List<api.Service>(); 641 var o = new core.List<api.Service>();
642 o.add(buildService()); 642 o.add(buildService());
643 o.add(buildService()); 643 o.add(buildService());
644 return o; 644 return o;
645 } 645 }
646 646
647 checkUnnamed3472(core.List<api.Service> o) { 647 checkUnnamed3504(core.List<api.Service> o) {
648 unittest.expect(o, unittest.hasLength(2)); 648 unittest.expect(o, unittest.hasLength(2));
649 checkService(o[0]); 649 checkService(o[0]);
650 checkService(o[1]); 650 checkService(o[1]);
651 } 651 }
652 652
653 core.int buildCounterListServicesResponse = 0; 653 core.int buildCounterListServicesResponse = 0;
654 buildListServicesResponse() { 654 buildListServicesResponse() {
655 var o = new api.ListServicesResponse(); 655 var o = new api.ListServicesResponse();
656 buildCounterListServicesResponse++; 656 buildCounterListServicesResponse++;
657 if (buildCounterListServicesResponse < 3) { 657 if (buildCounterListServicesResponse < 3) {
658 o.nextPageToken = "foo"; 658 o.nextPageToken = "foo";
659 o.services = buildUnnamed3472(); 659 o.services = buildUnnamed3504();
660 } 660 }
661 buildCounterListServicesResponse--; 661 buildCounterListServicesResponse--;
662 return o; 662 return o;
663 } 663 }
664 664
665 checkListServicesResponse(api.ListServicesResponse o) { 665 checkListServicesResponse(api.ListServicesResponse o) {
666 buildCounterListServicesResponse++; 666 buildCounterListServicesResponse++;
667 if (buildCounterListServicesResponse < 3) { 667 if (buildCounterListServicesResponse < 3) {
668 unittest.expect(o.nextPageToken, unittest.equals('foo')); 668 unittest.expect(o.nextPageToken, unittest.equals('foo'));
669 checkUnnamed3472(o.services); 669 checkUnnamed3504(o.services);
670 } 670 }
671 buildCounterListServicesResponse--; 671 buildCounterListServicesResponse--;
672 } 672 }
673 673
674 buildUnnamed3473() { 674 buildUnnamed3505() {
675 var o = new core.List<api.Version>(); 675 var o = new core.List<api.Version>();
676 o.add(buildVersion()); 676 o.add(buildVersion());
677 o.add(buildVersion()); 677 o.add(buildVersion());
678 return o; 678 return o;
679 } 679 }
680 680
681 checkUnnamed3473(core.List<api.Version> o) { 681 checkUnnamed3505(core.List<api.Version> o) {
682 unittest.expect(o, unittest.hasLength(2)); 682 unittest.expect(o, unittest.hasLength(2));
683 checkVersion(o[0]); 683 checkVersion(o[0]);
684 checkVersion(o[1]); 684 checkVersion(o[1]);
685 } 685 }
686 686
687 core.int buildCounterListVersionsResponse = 0; 687 core.int buildCounterListVersionsResponse = 0;
688 buildListVersionsResponse() { 688 buildListVersionsResponse() {
689 var o = new api.ListVersionsResponse(); 689 var o = new api.ListVersionsResponse();
690 buildCounterListVersionsResponse++; 690 buildCounterListVersionsResponse++;
691 if (buildCounterListVersionsResponse < 3) { 691 if (buildCounterListVersionsResponse < 3) {
692 o.nextPageToken = "foo"; 692 o.nextPageToken = "foo";
693 o.versions = buildUnnamed3473(); 693 o.versions = buildUnnamed3505();
694 } 694 }
695 buildCounterListVersionsResponse--; 695 buildCounterListVersionsResponse--;
696 return o; 696 return o;
697 } 697 }
698 698
699 checkListVersionsResponse(api.ListVersionsResponse o) { 699 checkListVersionsResponse(api.ListVersionsResponse o) {
700 buildCounterListVersionsResponse++; 700 buildCounterListVersionsResponse++;
701 if (buildCounterListVersionsResponse < 3) { 701 if (buildCounterListVersionsResponse < 3) {
702 unittest.expect(o.nextPageToken, unittest.equals('foo')); 702 unittest.expect(o.nextPageToken, unittest.equals('foo'));
703 checkUnnamed3473(o.versions); 703 checkUnnamed3505(o.versions);
704 } 704 }
705 buildCounterListVersionsResponse--; 705 buildCounterListVersionsResponse--;
706 } 706 }
707 707
708 buildUnnamed3474() { 708 buildUnnamed3506() {
709 var o = new core.Map<core.String, core.String>(); 709 var o = new core.Map<core.String, core.String>();
710 o["x"] = "foo"; 710 o["x"] = "foo";
711 o["y"] = "foo"; 711 o["y"] = "foo";
712 return o; 712 return o;
713 } 713 }
714 714
715 checkUnnamed3474(core.Map<core.String, core.String> o) { 715 checkUnnamed3506(core.Map<core.String, core.String> o) {
716 unittest.expect(o, unittest.hasLength(2)); 716 unittest.expect(o, unittest.hasLength(2));
717 unittest.expect(o["x"], unittest.equals('foo')); 717 unittest.expect(o["x"], unittest.equals('foo'));
718 unittest.expect(o["y"], unittest.equals('foo')); 718 unittest.expect(o["y"], unittest.equals('foo'));
719 } 719 }
720 720
721 buildUnnamed3475() { 721 buildUnnamed3507() {
722 var o = new core.Map<core.String, core.Object>(); 722 var o = new core.Map<core.String, core.Object>();
723 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 723 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
724 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 724 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
725 return o; 725 return o;
726 } 726 }
727 727
728 checkUnnamed3475(core.Map<core.String, core.Object> o) { 728 checkUnnamed3507(core.Map<core.String, core.Object> o) {
729 unittest.expect(o, unittest.hasLength(2)); 729 unittest.expect(o, unittest.hasLength(2));
730 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')); 730 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'));
731 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')); 731 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'));
732 } 732 }
733 733
734 core.int buildCounterLocation = 0; 734 core.int buildCounterLocation = 0;
735 buildLocation() { 735 buildLocation() {
736 var o = new api.Location(); 736 var o = new api.Location();
737 buildCounterLocation++; 737 buildCounterLocation++;
738 if (buildCounterLocation < 3) { 738 if (buildCounterLocation < 3) {
739 o.labels = buildUnnamed3474(); 739 o.labels = buildUnnamed3506();
740 o.locationId = "foo"; 740 o.locationId = "foo";
741 o.metadata = buildUnnamed3475(); 741 o.metadata = buildUnnamed3507();
742 o.name = "foo"; 742 o.name = "foo";
743 } 743 }
744 buildCounterLocation--; 744 buildCounterLocation--;
745 return o; 745 return o;
746 } 746 }
747 747
748 checkLocation(api.Location o) { 748 checkLocation(api.Location o) {
749 buildCounterLocation++; 749 buildCounterLocation++;
750 if (buildCounterLocation < 3) { 750 if (buildCounterLocation < 3) {
751 checkUnnamed3474(o.labels); 751 checkUnnamed3506(o.labels);
752 unittest.expect(o.locationId, unittest.equals('foo')); 752 unittest.expect(o.locationId, unittest.equals('foo'));
753 checkUnnamed3475(o.metadata); 753 checkUnnamed3507(o.metadata);
754 unittest.expect(o.name, unittest.equals('foo')); 754 unittest.expect(o.name, unittest.equals('foo'));
755 } 755 }
756 buildCounterLocation--; 756 buildCounterLocation--;
757 } 757 }
758 758
759 core.int buildCounterLocationMetadata = 0; 759 core.int buildCounterLocationMetadata = 0;
760 buildLocationMetadata() { 760 buildLocationMetadata() {
761 var o = new api.LocationMetadata(); 761 var o = new api.LocationMetadata();
762 buildCounterLocationMetadata++; 762 buildCounterLocationMetadata++;
763 if (buildCounterLocationMetadata < 3) { 763 if (buildCounterLocationMetadata < 3) {
(...skipping 25 matching lines...) Expand all
789 } 789 }
790 790
791 checkManualScaling(api.ManualScaling o) { 791 checkManualScaling(api.ManualScaling o) {
792 buildCounterManualScaling++; 792 buildCounterManualScaling++;
793 if (buildCounterManualScaling < 3) { 793 if (buildCounterManualScaling < 3) {
794 unittest.expect(o.instances, unittest.equals(42)); 794 unittest.expect(o.instances, unittest.equals(42));
795 } 795 }
796 buildCounterManualScaling--; 796 buildCounterManualScaling--;
797 } 797 }
798 798
799 buildUnnamed3476() { 799 buildUnnamed3508() {
800 var o = new core.List<core.String>(); 800 var o = new core.List<core.String>();
801 o.add("foo"); 801 o.add("foo");
802 o.add("foo"); 802 o.add("foo");
803 return o; 803 return o;
804 } 804 }
805 805
806 checkUnnamed3476(core.List<core.String> o) { 806 checkUnnamed3508(core.List<core.String> o) {
807 unittest.expect(o, unittest.hasLength(2)); 807 unittest.expect(o, unittest.hasLength(2));
808 unittest.expect(o[0], unittest.equals('foo')); 808 unittest.expect(o[0], unittest.equals('foo'));
809 unittest.expect(o[1], unittest.equals('foo')); 809 unittest.expect(o[1], unittest.equals('foo'));
810 } 810 }
811 811
812 core.int buildCounterNetwork = 0; 812 core.int buildCounterNetwork = 0;
813 buildNetwork() { 813 buildNetwork() {
814 var o = new api.Network(); 814 var o = new api.Network();
815 buildCounterNetwork++; 815 buildCounterNetwork++;
816 if (buildCounterNetwork < 3) { 816 if (buildCounterNetwork < 3) {
817 o.forwardedPorts = buildUnnamed3476(); 817 o.forwardedPorts = buildUnnamed3508();
818 o.instanceTag = "foo"; 818 o.instanceTag = "foo";
819 o.name = "foo"; 819 o.name = "foo";
820 o.subnetworkName = "foo"; 820 o.subnetworkName = "foo";
821 } 821 }
822 buildCounterNetwork--; 822 buildCounterNetwork--;
823 return o; 823 return o;
824 } 824 }
825 825
826 checkNetwork(api.Network o) { 826 checkNetwork(api.Network o) {
827 buildCounterNetwork++; 827 buildCounterNetwork++;
828 if (buildCounterNetwork < 3) { 828 if (buildCounterNetwork < 3) {
829 checkUnnamed3476(o.forwardedPorts); 829 checkUnnamed3508(o.forwardedPorts);
830 unittest.expect(o.instanceTag, unittest.equals('foo')); 830 unittest.expect(o.instanceTag, unittest.equals('foo'));
831 unittest.expect(o.name, unittest.equals('foo')); 831 unittest.expect(o.name, unittest.equals('foo'));
832 unittest.expect(o.subnetworkName, unittest.equals('foo')); 832 unittest.expect(o.subnetworkName, unittest.equals('foo'));
833 } 833 }
834 buildCounterNetwork--; 834 buildCounterNetwork--;
835 } 835 }
836 836
837 core.int buildCounterNetworkUtilization = 0; 837 core.int buildCounterNetworkUtilization = 0;
838 buildNetworkUtilization() { 838 buildNetworkUtilization() {
839 var o = new api.NetworkUtilization(); 839 var o = new api.NetworkUtilization();
(...skipping 12 matching lines...) Expand all
852 buildCounterNetworkUtilization++; 852 buildCounterNetworkUtilization++;
853 if (buildCounterNetworkUtilization < 3) { 853 if (buildCounterNetworkUtilization < 3) {
854 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); 854 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42));
855 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); 855 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42));
856 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); 856 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42));
857 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); 857 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42));
858 } 858 }
859 buildCounterNetworkUtilization--; 859 buildCounterNetworkUtilization--;
860 } 860 }
861 861
862 buildUnnamed3477() { 862 buildUnnamed3509() {
863 var o = new core.Map<core.String, core.Object>(); 863 var o = new core.Map<core.String, core.Object>();
864 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 864 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
865 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 865 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
866 return o; 866 return o;
867 } 867 }
868 868
869 checkUnnamed3477(core.Map<core.String, core.Object> o) { 869 checkUnnamed3509(core.Map<core.String, core.Object> o) {
870 unittest.expect(o, unittest.hasLength(2)); 870 unittest.expect(o, unittest.hasLength(2));
871 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')); 871 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'));
872 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')); 872 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'));
873 } 873 }
874 874
875 buildUnnamed3478() { 875 buildUnnamed3510() {
876 var o = new core.Map<core.String, core.Object>(); 876 var o = new core.Map<core.String, core.Object>();
877 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 877 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
878 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 878 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
879 return o; 879 return o;
880 } 880 }
881 881
882 checkUnnamed3478(core.Map<core.String, core.Object> o) { 882 checkUnnamed3510(core.Map<core.String, core.Object> o) {
883 unittest.expect(o, unittest.hasLength(2)); 883 unittest.expect(o, unittest.hasLength(2));
884 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')); 884 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'));
885 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')); 885 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'));
886 } 886 }
887 887
888 core.int buildCounterOperation = 0; 888 core.int buildCounterOperation = 0;
889 buildOperation() { 889 buildOperation() {
890 var o = new api.Operation(); 890 var o = new api.Operation();
891 buildCounterOperation++; 891 buildCounterOperation++;
892 if (buildCounterOperation < 3) { 892 if (buildCounterOperation < 3) {
893 o.done = true; 893 o.done = true;
894 o.error = buildStatus(); 894 o.error = buildStatus();
895 o.metadata = buildUnnamed3477(); 895 o.metadata = buildUnnamed3509();
896 o.name = "foo"; 896 o.name = "foo";
897 o.response = buildUnnamed3478(); 897 o.response = buildUnnamed3510();
898 } 898 }
899 buildCounterOperation--; 899 buildCounterOperation--;
900 return o; 900 return o;
901 } 901 }
902 902
903 checkOperation(api.Operation o) { 903 checkOperation(api.Operation o) {
904 buildCounterOperation++; 904 buildCounterOperation++;
905 if (buildCounterOperation < 3) { 905 if (buildCounterOperation < 3) {
906 unittest.expect(o.done, unittest.isTrue); 906 unittest.expect(o.done, unittest.isTrue);
907 checkStatus(o.error); 907 checkStatus(o.error);
908 checkUnnamed3477(o.metadata); 908 checkUnnamed3509(o.metadata);
909 unittest.expect(o.name, unittest.equals('foo')); 909 unittest.expect(o.name, unittest.equals('foo'));
910 checkUnnamed3478(o.response); 910 checkUnnamed3510(o.response);
911 } 911 }
912 buildCounterOperation--; 912 buildCounterOperation--;
913 } 913 }
914 914
915 core.int buildCounterOperationMetadata = 0; 915 core.int buildCounterOperationMetadata = 0;
916 buildOperationMetadata() { 916 buildOperationMetadata() {
917 var o = new api.OperationMetadata(); 917 var o = new api.OperationMetadata();
918 buildCounterOperationMetadata++; 918 buildCounterOperationMetadata++;
919 if (buildCounterOperationMetadata < 3) { 919 if (buildCounterOperationMetadata < 3) {
920 o.endTime = "foo"; 920 o.endTime = "foo";
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 if (buildCounterOperationMetadataExperimental < 3) { 961 if (buildCounterOperationMetadataExperimental < 3) {
962 unittest.expect(o.endTime, unittest.equals('foo')); 962 unittest.expect(o.endTime, unittest.equals('foo'));
963 unittest.expect(o.insertTime, unittest.equals('foo')); 963 unittest.expect(o.insertTime, unittest.equals('foo'));
964 unittest.expect(o.method, unittest.equals('foo')); 964 unittest.expect(o.method, unittest.equals('foo'));
965 unittest.expect(o.target, unittest.equals('foo')); 965 unittest.expect(o.target, unittest.equals('foo'));
966 unittest.expect(o.user, unittest.equals('foo')); 966 unittest.expect(o.user, unittest.equals('foo'));
967 } 967 }
968 buildCounterOperationMetadataExperimental--; 968 buildCounterOperationMetadataExperimental--;
969 } 969 }
970 970
971 buildUnnamed3479() { 971 buildUnnamed3511() {
972 var o = new core.List<core.String>(); 972 var o = new core.List<core.String>();
973 o.add("foo"); 973 o.add("foo");
974 o.add("foo"); 974 o.add("foo");
975 return o; 975 return o;
976 } 976 }
977 977
978 checkUnnamed3479(core.List<core.String> o) { 978 checkUnnamed3511(core.List<core.String> o) {
979 unittest.expect(o, unittest.hasLength(2)); 979 unittest.expect(o, unittest.hasLength(2));
980 unittest.expect(o[0], unittest.equals('foo')); 980 unittest.expect(o[0], unittest.equals('foo'));
981 unittest.expect(o[1], unittest.equals('foo')); 981 unittest.expect(o[1], unittest.equals('foo'));
982 } 982 }
983 983
984 core.int buildCounterOperationMetadataV1 = 0; 984 core.int buildCounterOperationMetadataV1 = 0;
985 buildOperationMetadataV1() { 985 buildOperationMetadataV1() {
986 var o = new api.OperationMetadataV1(); 986 var o = new api.OperationMetadataV1();
987 buildCounterOperationMetadataV1++; 987 buildCounterOperationMetadataV1++;
988 if (buildCounterOperationMetadataV1 < 3) { 988 if (buildCounterOperationMetadataV1 < 3) {
989 o.endTime = "foo"; 989 o.endTime = "foo";
990 o.ephemeralMessage = "foo"; 990 o.ephemeralMessage = "foo";
991 o.insertTime = "foo"; 991 o.insertTime = "foo";
992 o.method = "foo"; 992 o.method = "foo";
993 o.target = "foo"; 993 o.target = "foo";
994 o.user = "foo"; 994 o.user = "foo";
995 o.warning = buildUnnamed3479(); 995 o.warning = buildUnnamed3511();
996 } 996 }
997 buildCounterOperationMetadataV1--; 997 buildCounterOperationMetadataV1--;
998 return o; 998 return o;
999 } 999 }
1000 1000
1001 checkOperationMetadataV1(api.OperationMetadataV1 o) { 1001 checkOperationMetadataV1(api.OperationMetadataV1 o) {
1002 buildCounterOperationMetadataV1++; 1002 buildCounterOperationMetadataV1++;
1003 if (buildCounterOperationMetadataV1 < 3) { 1003 if (buildCounterOperationMetadataV1 < 3) {
1004 unittest.expect(o.endTime, unittest.equals('foo')); 1004 unittest.expect(o.endTime, unittest.equals('foo'));
1005 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1005 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1006 unittest.expect(o.insertTime, unittest.equals('foo')); 1006 unittest.expect(o.insertTime, unittest.equals('foo'));
1007 unittest.expect(o.method, unittest.equals('foo')); 1007 unittest.expect(o.method, unittest.equals('foo'));
1008 unittest.expect(o.target, unittest.equals('foo')); 1008 unittest.expect(o.target, unittest.equals('foo'));
1009 unittest.expect(o.user, unittest.equals('foo')); 1009 unittest.expect(o.user, unittest.equals('foo'));
1010 checkUnnamed3479(o.warning); 1010 checkUnnamed3511(o.warning);
1011 } 1011 }
1012 buildCounterOperationMetadataV1--; 1012 buildCounterOperationMetadataV1--;
1013 } 1013 }
1014 1014
1015 buildUnnamed3480() { 1015 buildUnnamed3512() {
1016 var o = new core.List<core.String>(); 1016 var o = new core.List<core.String>();
1017 o.add("foo"); 1017 o.add("foo");
1018 o.add("foo"); 1018 o.add("foo");
1019 return o; 1019 return o;
1020 } 1020 }
1021 1021
1022 checkUnnamed3480(core.List<core.String> o) { 1022 checkUnnamed3512(core.List<core.String> o) {
1023 unittest.expect(o, unittest.hasLength(2)); 1023 unittest.expect(o, unittest.hasLength(2));
1024 unittest.expect(o[0], unittest.equals('foo')); 1024 unittest.expect(o[0], unittest.equals('foo'));
1025 unittest.expect(o[1], unittest.equals('foo')); 1025 unittest.expect(o[1], unittest.equals('foo'));
1026 } 1026 }
1027 1027
1028 core.int buildCounterOperationMetadataV1Alpha = 0; 1028 core.int buildCounterOperationMetadataV1Alpha = 0;
1029 buildOperationMetadataV1Alpha() { 1029 buildOperationMetadataV1Alpha() {
1030 var o = new api.OperationMetadataV1Alpha(); 1030 var o = new api.OperationMetadataV1Alpha();
1031 buildCounterOperationMetadataV1Alpha++; 1031 buildCounterOperationMetadataV1Alpha++;
1032 if (buildCounterOperationMetadataV1Alpha < 3) { 1032 if (buildCounterOperationMetadataV1Alpha < 3) {
1033 o.endTime = "foo"; 1033 o.endTime = "foo";
1034 o.ephemeralMessage = "foo"; 1034 o.ephemeralMessage = "foo";
1035 o.insertTime = "foo"; 1035 o.insertTime = "foo";
1036 o.method = "foo"; 1036 o.method = "foo";
1037 o.target = "foo"; 1037 o.target = "foo";
1038 o.user = "foo"; 1038 o.user = "foo";
1039 o.warning = buildUnnamed3480(); 1039 o.warning = buildUnnamed3512();
1040 } 1040 }
1041 buildCounterOperationMetadataV1Alpha--; 1041 buildCounterOperationMetadataV1Alpha--;
1042 return o; 1042 return o;
1043 } 1043 }
1044 1044
1045 checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) { 1045 checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) {
1046 buildCounterOperationMetadataV1Alpha++; 1046 buildCounterOperationMetadataV1Alpha++;
1047 if (buildCounterOperationMetadataV1Alpha < 3) { 1047 if (buildCounterOperationMetadataV1Alpha < 3) {
1048 unittest.expect(o.endTime, unittest.equals('foo')); 1048 unittest.expect(o.endTime, unittest.equals('foo'));
1049 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1049 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1050 unittest.expect(o.insertTime, unittest.equals('foo')); 1050 unittest.expect(o.insertTime, unittest.equals('foo'));
1051 unittest.expect(o.method, unittest.equals('foo')); 1051 unittest.expect(o.method, unittest.equals('foo'));
1052 unittest.expect(o.target, unittest.equals('foo')); 1052 unittest.expect(o.target, unittest.equals('foo'));
1053 unittest.expect(o.user, unittest.equals('foo')); 1053 unittest.expect(o.user, unittest.equals('foo'));
1054 checkUnnamed3480(o.warning); 1054 checkUnnamed3512(o.warning);
1055 } 1055 }
1056 buildCounterOperationMetadataV1Alpha--; 1056 buildCounterOperationMetadataV1Alpha--;
1057 } 1057 }
1058 1058
1059 buildUnnamed3481() { 1059 buildUnnamed3513() {
1060 var o = new core.List<core.String>(); 1060 var o = new core.List<core.String>();
1061 o.add("foo"); 1061 o.add("foo");
1062 o.add("foo"); 1062 o.add("foo");
1063 return o; 1063 return o;
1064 } 1064 }
1065 1065
1066 checkUnnamed3481(core.List<core.String> o) { 1066 checkUnnamed3513(core.List<core.String> o) {
1067 unittest.expect(o, unittest.hasLength(2)); 1067 unittest.expect(o, unittest.hasLength(2));
1068 unittest.expect(o[0], unittest.equals('foo')); 1068 unittest.expect(o[0], unittest.equals('foo'));
1069 unittest.expect(o[1], unittest.equals('foo')); 1069 unittest.expect(o[1], unittest.equals('foo'));
1070 } 1070 }
1071 1071
1072 core.int buildCounterOperationMetadataV1Beta = 0; 1072 core.int buildCounterOperationMetadataV1Beta = 0;
1073 buildOperationMetadataV1Beta() { 1073 buildOperationMetadataV1Beta() {
1074 var o = new api.OperationMetadataV1Beta(); 1074 var o = new api.OperationMetadataV1Beta();
1075 buildCounterOperationMetadataV1Beta++; 1075 buildCounterOperationMetadataV1Beta++;
1076 if (buildCounterOperationMetadataV1Beta < 3) { 1076 if (buildCounterOperationMetadataV1Beta < 3) {
1077 o.endTime = "foo"; 1077 o.endTime = "foo";
1078 o.ephemeralMessage = "foo"; 1078 o.ephemeralMessage = "foo";
1079 o.insertTime = "foo"; 1079 o.insertTime = "foo";
1080 o.method = "foo"; 1080 o.method = "foo";
1081 o.target = "foo"; 1081 o.target = "foo";
1082 o.user = "foo"; 1082 o.user = "foo";
1083 o.warning = buildUnnamed3481(); 1083 o.warning = buildUnnamed3513();
1084 } 1084 }
1085 buildCounterOperationMetadataV1Beta--; 1085 buildCounterOperationMetadataV1Beta--;
1086 return o; 1086 return o;
1087 } 1087 }
1088 1088
1089 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { 1089 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) {
1090 buildCounterOperationMetadataV1Beta++; 1090 buildCounterOperationMetadataV1Beta++;
1091 if (buildCounterOperationMetadataV1Beta < 3) { 1091 if (buildCounterOperationMetadataV1Beta < 3) {
1092 unittest.expect(o.endTime, unittest.equals('foo')); 1092 unittest.expect(o.endTime, unittest.equals('foo'));
1093 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1093 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1094 unittest.expect(o.insertTime, unittest.equals('foo')); 1094 unittest.expect(o.insertTime, unittest.equals('foo'));
1095 unittest.expect(o.method, unittest.equals('foo')); 1095 unittest.expect(o.method, unittest.equals('foo'));
1096 unittest.expect(o.target, unittest.equals('foo')); 1096 unittest.expect(o.target, unittest.equals('foo'));
1097 unittest.expect(o.user, unittest.equals('foo')); 1097 unittest.expect(o.user, unittest.equals('foo'));
1098 checkUnnamed3481(o.warning); 1098 checkUnnamed3513(o.warning);
1099 } 1099 }
1100 buildCounterOperationMetadataV1Beta--; 1100 buildCounterOperationMetadataV1Beta--;
1101 } 1101 }
1102 1102
1103 core.int buildCounterOperationMetadataV1Beta5 = 0; 1103 core.int buildCounterOperationMetadataV1Beta5 = 0;
1104 buildOperationMetadataV1Beta5() { 1104 buildOperationMetadataV1Beta5() {
1105 var o = new api.OperationMetadataV1Beta5(); 1105 var o = new api.OperationMetadataV1Beta5();
1106 buildCounterOperationMetadataV1Beta5++; 1106 buildCounterOperationMetadataV1Beta5++;
1107 if (buildCounterOperationMetadataV1Beta5 < 3) { 1107 if (buildCounterOperationMetadataV1Beta5 < 3) {
1108 o.endTime = "foo"; 1108 o.endTime = "foo";
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 1141
1142 checkRequestUtilization(api.RequestUtilization o) { 1142 checkRequestUtilization(api.RequestUtilization o) {
1143 buildCounterRequestUtilization++; 1143 buildCounterRequestUtilization++;
1144 if (buildCounterRequestUtilization < 3) { 1144 if (buildCounterRequestUtilization < 3) {
1145 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); 1145 unittest.expect(o.targetConcurrentRequests, unittest.equals(42));
1146 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); 1146 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42));
1147 } 1147 }
1148 buildCounterRequestUtilization--; 1148 buildCounterRequestUtilization--;
1149 } 1149 }
1150 1150
1151 buildUnnamed3482() { 1151 buildUnnamed3514() {
1152 var o = new core.List<api.Volume>(); 1152 var o = new core.List<api.Volume>();
1153 o.add(buildVolume()); 1153 o.add(buildVolume());
1154 o.add(buildVolume()); 1154 o.add(buildVolume());
1155 return o; 1155 return o;
1156 } 1156 }
1157 1157
1158 checkUnnamed3482(core.List<api.Volume> o) { 1158 checkUnnamed3514(core.List<api.Volume> o) {
1159 unittest.expect(o, unittest.hasLength(2)); 1159 unittest.expect(o, unittest.hasLength(2));
1160 checkVolume(o[0]); 1160 checkVolume(o[0]);
1161 checkVolume(o[1]); 1161 checkVolume(o[1]);
1162 } 1162 }
1163 1163
1164 core.int buildCounterResources = 0; 1164 core.int buildCounterResources = 0;
1165 buildResources() { 1165 buildResources() {
1166 var o = new api.Resources(); 1166 var o = new api.Resources();
1167 buildCounterResources++; 1167 buildCounterResources++;
1168 if (buildCounterResources < 3) { 1168 if (buildCounterResources < 3) {
1169 o.cpu = 42.0; 1169 o.cpu = 42.0;
1170 o.diskGb = 42.0; 1170 o.diskGb = 42.0;
1171 o.memoryGb = 42.0; 1171 o.memoryGb = 42.0;
1172 o.volumes = buildUnnamed3482(); 1172 o.volumes = buildUnnamed3514();
1173 } 1173 }
1174 buildCounterResources--; 1174 buildCounterResources--;
1175 return o; 1175 return o;
1176 } 1176 }
1177 1177
1178 checkResources(api.Resources o) { 1178 checkResources(api.Resources o) {
1179 buildCounterResources++; 1179 buildCounterResources++;
1180 if (buildCounterResources < 3) { 1180 if (buildCounterResources < 3) {
1181 unittest.expect(o.cpu, unittest.equals(42.0)); 1181 unittest.expect(o.cpu, unittest.equals(42.0));
1182 unittest.expect(o.diskGb, unittest.equals(42.0)); 1182 unittest.expect(o.diskGb, unittest.equals(42.0));
1183 unittest.expect(o.memoryGb, unittest.equals(42.0)); 1183 unittest.expect(o.memoryGb, unittest.equals(42.0));
1184 checkUnnamed3482(o.volumes); 1184 checkUnnamed3514(o.volumes);
1185 } 1185 }
1186 buildCounterResources--; 1186 buildCounterResources--;
1187 } 1187 }
1188 1188
1189 core.int buildCounterScriptHandler = 0; 1189 core.int buildCounterScriptHandler = 0;
1190 buildScriptHandler() { 1190 buildScriptHandler() {
1191 var o = new api.ScriptHandler(); 1191 var o = new api.ScriptHandler();
1192 buildCounterScriptHandler++; 1192 buildCounterScriptHandler++;
1193 if (buildCounterScriptHandler < 3) { 1193 if (buildCounterScriptHandler < 3) {
1194 o.scriptPath = "foo"; 1194 o.scriptPath = "foo";
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 1242
1243 checkSourceReference(api.SourceReference o) { 1243 checkSourceReference(api.SourceReference o) {
1244 buildCounterSourceReference++; 1244 buildCounterSourceReference++;
1245 if (buildCounterSourceReference < 3) { 1245 if (buildCounterSourceReference < 3) {
1246 unittest.expect(o.repository, unittest.equals('foo')); 1246 unittest.expect(o.repository, unittest.equals('foo'));
1247 unittest.expect(o.revisionId, unittest.equals('foo')); 1247 unittest.expect(o.revisionId, unittest.equals('foo'));
1248 } 1248 }
1249 buildCounterSourceReference--; 1249 buildCounterSourceReference--;
1250 } 1250 }
1251 1251
1252 buildUnnamed3483() { 1252 buildUnnamed3515() {
1253 var o = new core.Map<core.String, core.String>(); 1253 var o = new core.Map<core.String, core.String>();
1254 o["x"] = "foo"; 1254 o["x"] = "foo";
1255 o["y"] = "foo"; 1255 o["y"] = "foo";
1256 return o; 1256 return o;
1257 } 1257 }
1258 1258
1259 checkUnnamed3483(core.Map<core.String, core.String> o) { 1259 checkUnnamed3515(core.Map<core.String, core.String> o) {
1260 unittest.expect(o, unittest.hasLength(2)); 1260 unittest.expect(o, unittest.hasLength(2));
1261 unittest.expect(o["x"], unittest.equals('foo')); 1261 unittest.expect(o["x"], unittest.equals('foo'));
1262 unittest.expect(o["y"], unittest.equals('foo')); 1262 unittest.expect(o["y"], unittest.equals('foo'));
1263 } 1263 }
1264 1264
1265 core.int buildCounterStaticFilesHandler = 0; 1265 core.int buildCounterStaticFilesHandler = 0;
1266 buildStaticFilesHandler() { 1266 buildStaticFilesHandler() {
1267 var o = new api.StaticFilesHandler(); 1267 var o = new api.StaticFilesHandler();
1268 buildCounterStaticFilesHandler++; 1268 buildCounterStaticFilesHandler++;
1269 if (buildCounterStaticFilesHandler < 3) { 1269 if (buildCounterStaticFilesHandler < 3) {
1270 o.applicationReadable = true; 1270 o.applicationReadable = true;
1271 o.expiration = "foo"; 1271 o.expiration = "foo";
1272 o.httpHeaders = buildUnnamed3483(); 1272 o.httpHeaders = buildUnnamed3515();
1273 o.mimeType = "foo"; 1273 o.mimeType = "foo";
1274 o.path = "foo"; 1274 o.path = "foo";
1275 o.requireMatchingFile = true; 1275 o.requireMatchingFile = true;
1276 o.uploadPathRegex = "foo"; 1276 o.uploadPathRegex = "foo";
1277 } 1277 }
1278 buildCounterStaticFilesHandler--; 1278 buildCounterStaticFilesHandler--;
1279 return o; 1279 return o;
1280 } 1280 }
1281 1281
1282 checkStaticFilesHandler(api.StaticFilesHandler o) { 1282 checkStaticFilesHandler(api.StaticFilesHandler o) {
1283 buildCounterStaticFilesHandler++; 1283 buildCounterStaticFilesHandler++;
1284 if (buildCounterStaticFilesHandler < 3) { 1284 if (buildCounterStaticFilesHandler < 3) {
1285 unittest.expect(o.applicationReadable, unittest.isTrue); 1285 unittest.expect(o.applicationReadable, unittest.isTrue);
1286 unittest.expect(o.expiration, unittest.equals('foo')); 1286 unittest.expect(o.expiration, unittest.equals('foo'));
1287 checkUnnamed3483(o.httpHeaders); 1287 checkUnnamed3515(o.httpHeaders);
1288 unittest.expect(o.mimeType, unittest.equals('foo')); 1288 unittest.expect(o.mimeType, unittest.equals('foo'));
1289 unittest.expect(o.path, unittest.equals('foo')); 1289 unittest.expect(o.path, unittest.equals('foo'));
1290 unittest.expect(o.requireMatchingFile, unittest.isTrue); 1290 unittest.expect(o.requireMatchingFile, unittest.isTrue);
1291 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); 1291 unittest.expect(o.uploadPathRegex, unittest.equals('foo'));
1292 } 1292 }
1293 buildCounterStaticFilesHandler--; 1293 buildCounterStaticFilesHandler--;
1294 } 1294 }
1295 1295
1296 buildUnnamed3484() { 1296 buildUnnamed3516() {
1297 var o = new core.Map<core.String, core.Object>(); 1297 var o = new core.Map<core.String, core.Object>();
1298 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1298 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1299 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1299 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1300 return o; 1300 return o;
1301 } 1301 }
1302 1302
1303 checkUnnamed3484(core.Map<core.String, core.Object> o) { 1303 checkUnnamed3516(core.Map<core.String, core.Object> o) {
1304 unittest.expect(o, unittest.hasLength(2)); 1304 unittest.expect(o, unittest.hasLength(2));
1305 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')); 1305 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'));
1306 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')); 1306 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'));
1307 } 1307 }
1308 1308
1309 buildUnnamed3485() { 1309 buildUnnamed3517() {
1310 var o = new core.List<core.Map<core.String, core.Object>>(); 1310 var o = new core.List<core.Map<core.String, core.Object>>();
1311 o.add(buildUnnamed3484()); 1311 o.add(buildUnnamed3516());
1312 o.add(buildUnnamed3484()); 1312 o.add(buildUnnamed3516());
1313 return o; 1313 return o;
1314 } 1314 }
1315 1315
1316 checkUnnamed3485(core.List<core.Map<core.String, core.Object>> o) { 1316 checkUnnamed3517(core.List<core.Map<core.String, core.Object>> o) {
1317 unittest.expect(o, unittest.hasLength(2)); 1317 unittest.expect(o, unittest.hasLength(2));
1318 checkUnnamed3484(o[0]); 1318 checkUnnamed3516(o[0]);
1319 checkUnnamed3484(o[1]); 1319 checkUnnamed3516(o[1]);
1320 } 1320 }
1321 1321
1322 core.int buildCounterStatus = 0; 1322 core.int buildCounterStatus = 0;
1323 buildStatus() { 1323 buildStatus() {
1324 var o = new api.Status(); 1324 var o = new api.Status();
1325 buildCounterStatus++; 1325 buildCounterStatus++;
1326 if (buildCounterStatus < 3) { 1326 if (buildCounterStatus < 3) {
1327 o.code = 42; 1327 o.code = 42;
1328 o.details = buildUnnamed3485(); 1328 o.details = buildUnnamed3517();
1329 o.message = "foo"; 1329 o.message = "foo";
1330 } 1330 }
1331 buildCounterStatus--; 1331 buildCounterStatus--;
1332 return o; 1332 return o;
1333 } 1333 }
1334 1334
1335 checkStatus(api.Status o) { 1335 checkStatus(api.Status o) {
1336 buildCounterStatus++; 1336 buildCounterStatus++;
1337 if (buildCounterStatus < 3) { 1337 if (buildCounterStatus < 3) {
1338 unittest.expect(o.code, unittest.equals(42)); 1338 unittest.expect(o.code, unittest.equals(42));
1339 checkUnnamed3485(o.details); 1339 checkUnnamed3517(o.details);
1340 unittest.expect(o.message, unittest.equals('foo')); 1340 unittest.expect(o.message, unittest.equals('foo'));
1341 } 1341 }
1342 buildCounterStatus--; 1342 buildCounterStatus--;
1343 } 1343 }
1344 1344
1345 buildUnnamed3486() { 1345 buildUnnamed3518() {
1346 var o = new core.Map<core.String, core.double>(); 1346 var o = new core.Map<core.String, core.double>();
1347 o["x"] = 42.0; 1347 o["x"] = 42.0;
1348 o["y"] = 42.0; 1348 o["y"] = 42.0;
1349 return o; 1349 return o;
1350 } 1350 }
1351 1351
1352 checkUnnamed3486(core.Map<core.String, core.double> o) { 1352 checkUnnamed3518(core.Map<core.String, core.double> o) {
1353 unittest.expect(o, unittest.hasLength(2)); 1353 unittest.expect(o, unittest.hasLength(2));
1354 unittest.expect(o["x"], unittest.equals(42.0)); 1354 unittest.expect(o["x"], unittest.equals(42.0));
1355 unittest.expect(o["y"], unittest.equals(42.0)); 1355 unittest.expect(o["y"], unittest.equals(42.0));
1356 } 1356 }
1357 1357
1358 core.int buildCounterTrafficSplit = 0; 1358 core.int buildCounterTrafficSplit = 0;
1359 buildTrafficSplit() { 1359 buildTrafficSplit() {
1360 var o = new api.TrafficSplit(); 1360 var o = new api.TrafficSplit();
1361 buildCounterTrafficSplit++; 1361 buildCounterTrafficSplit++;
1362 if (buildCounterTrafficSplit < 3) { 1362 if (buildCounterTrafficSplit < 3) {
1363 o.allocations = buildUnnamed3486(); 1363 o.allocations = buildUnnamed3518();
1364 o.shardBy = "foo"; 1364 o.shardBy = "foo";
1365 } 1365 }
1366 buildCounterTrafficSplit--; 1366 buildCounterTrafficSplit--;
1367 return o; 1367 return o;
1368 } 1368 }
1369 1369
1370 checkTrafficSplit(api.TrafficSplit o) { 1370 checkTrafficSplit(api.TrafficSplit o) {
1371 buildCounterTrafficSplit++; 1371 buildCounterTrafficSplit++;
1372 if (buildCounterTrafficSplit < 3) { 1372 if (buildCounterTrafficSplit < 3) {
1373 checkUnnamed3486(o.allocations); 1373 checkUnnamed3518(o.allocations);
1374 unittest.expect(o.shardBy, unittest.equals('foo')); 1374 unittest.expect(o.shardBy, unittest.equals('foo'));
1375 } 1375 }
1376 buildCounterTrafficSplit--; 1376 buildCounterTrafficSplit--;
1377 } 1377 }
1378 1378
1379 core.int buildCounterUrlDispatchRule = 0; 1379 core.int buildCounterUrlDispatchRule = 0;
1380 buildUrlDispatchRule() { 1380 buildUrlDispatchRule() {
1381 var o = new api.UrlDispatchRule(); 1381 var o = new api.UrlDispatchRule();
1382 buildCounterUrlDispatchRule++; 1382 buildCounterUrlDispatchRule++;
1383 if (buildCounterUrlDispatchRule < 3) { 1383 if (buildCounterUrlDispatchRule < 3) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1425 unittest.expect(o.login, unittest.equals('foo')); 1425 unittest.expect(o.login, unittest.equals('foo'));
1426 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); 1426 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo'));
1427 checkScriptHandler(o.script); 1427 checkScriptHandler(o.script);
1428 unittest.expect(o.securityLevel, unittest.equals('foo')); 1428 unittest.expect(o.securityLevel, unittest.equals('foo'));
1429 checkStaticFilesHandler(o.staticFiles); 1429 checkStaticFilesHandler(o.staticFiles);
1430 unittest.expect(o.urlRegex, unittest.equals('foo')); 1430 unittest.expect(o.urlRegex, unittest.equals('foo'));
1431 } 1431 }
1432 buildCounterUrlMap--; 1432 buildCounterUrlMap--;
1433 } 1433 }
1434 1434
1435 buildUnnamed3487() { 1435 buildUnnamed3519() {
1436 var o = new core.Map<core.String, core.String>(); 1436 var o = new core.Map<core.String, core.String>();
1437 o["x"] = "foo"; 1437 o["x"] = "foo";
1438 o["y"] = "foo"; 1438 o["y"] = "foo";
1439 return o; 1439 return o;
1440 } 1440 }
1441 1441
1442 checkUnnamed3487(core.Map<core.String, core.String> o) { 1442 checkUnnamed3519(core.Map<core.String, core.String> o) {
1443 unittest.expect(o, unittest.hasLength(2)); 1443 unittest.expect(o, unittest.hasLength(2));
1444 unittest.expect(o["x"], unittest.equals('foo')); 1444 unittest.expect(o["x"], unittest.equals('foo'));
1445 unittest.expect(o["y"], unittest.equals('foo')); 1445 unittest.expect(o["y"], unittest.equals('foo'));
1446 } 1446 }
1447 1447
1448 buildUnnamed3488() { 1448 buildUnnamed3520() {
1449 var o = new core.Map<core.String, core.String>(); 1449 var o = new core.Map<core.String, core.String>();
1450 o["x"] = "foo"; 1450 o["x"] = "foo";
1451 o["y"] = "foo"; 1451 o["y"] = "foo";
1452 return o; 1452 return o;
1453 } 1453 }
1454 1454
1455 checkUnnamed3488(core.Map<core.String, core.String> o) { 1455 checkUnnamed3520(core.Map<core.String, core.String> o) {
1456 unittest.expect(o, unittest.hasLength(2)); 1456 unittest.expect(o, unittest.hasLength(2));
1457 unittest.expect(o["x"], unittest.equals('foo')); 1457 unittest.expect(o["x"], unittest.equals('foo'));
1458 unittest.expect(o["y"], unittest.equals('foo')); 1458 unittest.expect(o["y"], unittest.equals('foo'));
1459 } 1459 }
1460 1460
1461 buildUnnamed3489() { 1461 buildUnnamed3521() {
1462 var o = new core.List<api.ErrorHandler>(); 1462 var o = new core.List<api.ErrorHandler>();
1463 o.add(buildErrorHandler()); 1463 o.add(buildErrorHandler());
1464 o.add(buildErrorHandler()); 1464 o.add(buildErrorHandler());
1465 return o; 1465 return o;
1466 } 1466 }
1467 1467
1468 checkUnnamed3489(core.List<api.ErrorHandler> o) { 1468 checkUnnamed3521(core.List<api.ErrorHandler> o) {
1469 unittest.expect(o, unittest.hasLength(2)); 1469 unittest.expect(o, unittest.hasLength(2));
1470 checkErrorHandler(o[0]); 1470 checkErrorHandler(o[0]);
1471 checkErrorHandler(o[1]); 1471 checkErrorHandler(o[1]);
1472 } 1472 }
1473 1473
1474 buildUnnamed3490() { 1474 buildUnnamed3522() {
1475 var o = new core.List<api.UrlMap>(); 1475 var o = new core.List<api.UrlMap>();
1476 o.add(buildUrlMap()); 1476 o.add(buildUrlMap());
1477 o.add(buildUrlMap()); 1477 o.add(buildUrlMap());
1478 return o; 1478 return o;
1479 } 1479 }
1480 1480
1481 checkUnnamed3490(core.List<api.UrlMap> o) { 1481 checkUnnamed3522(core.List<api.UrlMap> o) {
1482 unittest.expect(o, unittest.hasLength(2)); 1482 unittest.expect(o, unittest.hasLength(2));
1483 checkUrlMap(o[0]); 1483 checkUrlMap(o[0]);
1484 checkUrlMap(o[1]); 1484 checkUrlMap(o[1]);
1485 } 1485 }
1486 1486
1487 buildUnnamed3491() { 1487 buildUnnamed3523() {
1488 var o = new core.List<core.String>(); 1488 var o = new core.List<core.String>();
1489 o.add("foo"); 1489 o.add("foo");
1490 o.add("foo"); 1490 o.add("foo");
1491 return o; 1491 return o;
1492 } 1492 }
1493 1493
1494 checkUnnamed3491(core.List<core.String> o) { 1494 checkUnnamed3523(core.List<core.String> o) {
1495 unittest.expect(o, unittest.hasLength(2)); 1495 unittest.expect(o, unittest.hasLength(2));
1496 unittest.expect(o[0], unittest.equals('foo')); 1496 unittest.expect(o[0], unittest.equals('foo'));
1497 unittest.expect(o[1], unittest.equals('foo')); 1497 unittest.expect(o[1], unittest.equals('foo'));
1498 } 1498 }
1499 1499
1500 buildUnnamed3492() { 1500 buildUnnamed3524() {
1501 var o = new core.List<api.Library>(); 1501 var o = new core.List<api.Library>();
1502 o.add(buildLibrary()); 1502 o.add(buildLibrary());
1503 o.add(buildLibrary()); 1503 o.add(buildLibrary());
1504 return o; 1504 return o;
1505 } 1505 }
1506 1506
1507 checkUnnamed3492(core.List<api.Library> o) { 1507 checkUnnamed3524(core.List<api.Library> o) {
1508 unittest.expect(o, unittest.hasLength(2)); 1508 unittest.expect(o, unittest.hasLength(2));
1509 checkLibrary(o[0]); 1509 checkLibrary(o[0]);
1510 checkLibrary(o[1]); 1510 checkLibrary(o[1]);
1511 } 1511 }
1512 1512
1513 core.int buildCounterVersion = 0; 1513 core.int buildCounterVersion = 0;
1514 buildVersion() { 1514 buildVersion() {
1515 var o = new api.Version(); 1515 var o = new api.Version();
1516 buildCounterVersion++; 1516 buildCounterVersion++;
1517 if (buildCounterVersion < 3) { 1517 if (buildCounterVersion < 3) {
1518 o.apiConfig = buildApiConfigHandler(); 1518 o.apiConfig = buildApiConfigHandler();
1519 o.automaticScaling = buildAutomaticScaling(); 1519 o.automaticScaling = buildAutomaticScaling();
1520 o.basicScaling = buildBasicScaling(); 1520 o.basicScaling = buildBasicScaling();
1521 o.betaSettings = buildUnnamed3487(); 1521 o.betaSettings = buildUnnamed3519();
1522 o.creationTime = "foo"; 1522 o.creationTime = "foo";
1523 o.defaultExpiration = "foo"; 1523 o.defaultExpiration = "foo";
1524 o.deployer = "foo"; 1524 o.deployer = "foo";
1525 o.deployment = buildDeployment(); 1525 o.deployment = buildDeployment();
1526 o.diskUsageBytes = "foo"; 1526 o.diskUsageBytes = "foo";
1527 o.endpointsApiService = buildEndpointsApiService(); 1527 o.endpointsApiService = buildEndpointsApiService();
1528 o.env = "foo"; 1528 o.env = "foo";
1529 o.envVariables = buildUnnamed3488(); 1529 o.envVariables = buildUnnamed3520();
1530 o.errorHandlers = buildUnnamed3489(); 1530 o.errorHandlers = buildUnnamed3521();
1531 o.handlers = buildUnnamed3490(); 1531 o.handlers = buildUnnamed3522();
1532 o.healthCheck = buildHealthCheck(); 1532 o.healthCheck = buildHealthCheck();
1533 o.id = "foo"; 1533 o.id = "foo";
1534 o.inboundServices = buildUnnamed3491(); 1534 o.inboundServices = buildUnnamed3523();
1535 o.instanceClass = "foo"; 1535 o.instanceClass = "foo";
1536 o.libraries = buildUnnamed3492(); 1536 o.libraries = buildUnnamed3524();
1537 o.manualScaling = buildManualScaling(); 1537 o.manualScaling = buildManualScaling();
1538 o.name = "foo"; 1538 o.name = "foo";
1539 o.network = buildNetwork(); 1539 o.network = buildNetwork();
1540 o.nobuildFilesRegex = "foo"; 1540 o.nobuildFilesRegex = "foo";
1541 o.resources = buildResources(); 1541 o.resources = buildResources();
1542 o.runtime = "foo"; 1542 o.runtime = "foo";
1543 o.runtimeApiVersion = "foo"; 1543 o.runtimeApiVersion = "foo";
1544 o.servingStatus = "foo"; 1544 o.servingStatus = "foo";
1545 o.threadsafe = true; 1545 o.threadsafe = true;
1546 o.vm = true; 1546 o.vm = true;
1547 } 1547 }
1548 buildCounterVersion--; 1548 buildCounterVersion--;
1549 return o; 1549 return o;
1550 } 1550 }
1551 1551
1552 checkVersion(api.Version o) { 1552 checkVersion(api.Version o) {
1553 buildCounterVersion++; 1553 buildCounterVersion++;
1554 if (buildCounterVersion < 3) { 1554 if (buildCounterVersion < 3) {
1555 checkApiConfigHandler(o.apiConfig); 1555 checkApiConfigHandler(o.apiConfig);
1556 checkAutomaticScaling(o.automaticScaling); 1556 checkAutomaticScaling(o.automaticScaling);
1557 checkBasicScaling(o.basicScaling); 1557 checkBasicScaling(o.basicScaling);
1558 checkUnnamed3487(o.betaSettings); 1558 checkUnnamed3519(o.betaSettings);
1559 unittest.expect(o.creationTime, unittest.equals('foo')); 1559 unittest.expect(o.creationTime, unittest.equals('foo'));
1560 unittest.expect(o.defaultExpiration, unittest.equals('foo')); 1560 unittest.expect(o.defaultExpiration, unittest.equals('foo'));
1561 unittest.expect(o.deployer, unittest.equals('foo')); 1561 unittest.expect(o.deployer, unittest.equals('foo'));
1562 checkDeployment(o.deployment); 1562 checkDeployment(o.deployment);
1563 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); 1563 unittest.expect(o.diskUsageBytes, unittest.equals('foo'));
1564 checkEndpointsApiService(o.endpointsApiService); 1564 checkEndpointsApiService(o.endpointsApiService);
1565 unittest.expect(o.env, unittest.equals('foo')); 1565 unittest.expect(o.env, unittest.equals('foo'));
1566 checkUnnamed3488(o.envVariables); 1566 checkUnnamed3520(o.envVariables);
1567 checkUnnamed3489(o.errorHandlers); 1567 checkUnnamed3521(o.errorHandlers);
1568 checkUnnamed3490(o.handlers); 1568 checkUnnamed3522(o.handlers);
1569 checkHealthCheck(o.healthCheck); 1569 checkHealthCheck(o.healthCheck);
1570 unittest.expect(o.id, unittest.equals('foo')); 1570 unittest.expect(o.id, unittest.equals('foo'));
1571 checkUnnamed3491(o.inboundServices); 1571 checkUnnamed3523(o.inboundServices);
1572 unittest.expect(o.instanceClass, unittest.equals('foo')); 1572 unittest.expect(o.instanceClass, unittest.equals('foo'));
1573 checkUnnamed3492(o.libraries); 1573 checkUnnamed3524(o.libraries);
1574 checkManualScaling(o.manualScaling); 1574 checkManualScaling(o.manualScaling);
1575 unittest.expect(o.name, unittest.equals('foo')); 1575 unittest.expect(o.name, unittest.equals('foo'));
1576 checkNetwork(o.network); 1576 checkNetwork(o.network);
1577 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); 1577 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo'));
1578 checkResources(o.resources); 1578 checkResources(o.resources);
1579 unittest.expect(o.runtime, unittest.equals('foo')); 1579 unittest.expect(o.runtime, unittest.equals('foo'));
1580 unittest.expect(o.runtimeApiVersion, unittest.equals('foo')); 1580 unittest.expect(o.runtimeApiVersion, unittest.equals('foo'));
1581 unittest.expect(o.servingStatus, unittest.equals('foo')); 1581 unittest.expect(o.servingStatus, unittest.equals('foo'));
1582 unittest.expect(o.threadsafe, unittest.isTrue); 1582 unittest.expect(o.threadsafe, unittest.isTrue);
1583 unittest.expect(o.vm, unittest.isTrue); 1583 unittest.expect(o.vm, unittest.isTrue);
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
2231 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Loca tion response) { 2231 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Loca tion response) {
2232 checkLocation(response); 2232 checkLocation(response);
2233 }))); 2233 })));
2234 }); 2234 });
2235 2235
2236 unittest.test("method--list", () { 2236 unittest.test("method--list", () {
2237 2237
2238 var mock = new HttpServerMock(); 2238 var mock = new HttpServerMock();
2239 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns; 2239 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns;
2240 var arg_appsId = "foo"; 2240 var arg_appsId = "foo";
2241 var arg_filter = "foo";
2242 var arg_pageToken = "foo"; 2241 var arg_pageToken = "foo";
2243 var arg_pageSize = 42; 2242 var arg_pageSize = 42;
2243 var arg_filter = "foo";
2244 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 2244 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2245 var path = (req.url).path; 2245 var path = (req.url).path;
2246 var pathOffset = 0; 2246 var pathOffset = 0;
2247 var index; 2247 var index;
2248 var subPart; 2248 var subPart;
2249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2249 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2250 pathOffset += 1; 2250 pathOffset += 1;
2251 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta5/apps/")); 2251 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta5/apps/"));
2252 pathOffset += 13; 2252 pathOffset += 13;
2253 index = path.indexOf("/locations", pathOffset); 2253 index = path.indexOf("/locations", pathOffset);
(...skipping 13 matching lines...) Expand all
2267 if (n == "false") return false; 2267 if (n == "false") return false;
2268 if (n == null) return null; 2268 if (n == null) return null;
2269 throw new core.ArgumentError("Invalid boolean: $n"); 2269 throw new core.ArgumentError("Invalid boolean: $n");
2270 } 2270 }
2271 if (query.length > 0) { 2271 if (query.length > 0) {
2272 for (var part in query.split("&")) { 2272 for (var part in query.split("&")) {
2273 var keyvalue = part.split("="); 2273 var keyvalue = part.split("=");
2274 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2274 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2275 } 2275 }
2276 } 2276 }
2277 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
2278 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 2277 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2279 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 2278 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2279 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
2280 2280
2281 2281
2282 var h = { 2282 var h = {
2283 "content-type" : "application/json; charset=utf-8", 2283 "content-type" : "application/json; charset=utf-8",
2284 }; 2284 };
2285 var resp = convert.JSON.encode(buildListLocationsResponse()); 2285 var resp = convert.JSON.encode(buildListLocationsResponse());
2286 return new async.Future.value(stringResponse(200, h, resp)); 2286 return new async.Future.value(stringResponse(200, h, resp));
2287 }), true); 2287 }), true);
2288 res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync1(((api.ListLocationsResponse response ) { 2288 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, fil ter: arg_filter).then(unittest.expectAsync1(((api.ListLocationsResponse response ) {
2289 checkListLocationsResponse(response); 2289 checkListLocationsResponse(response);
2290 }))); 2290 })));
2291 }); 2291 });
2292 2292
2293 }); 2293 });
2294 2294
2295 2295
2296 unittest.group("resource-AppsOperationsResourceApi", () { 2296 unittest.group("resource-AppsOperationsResourceApi", () {
2297 unittest.test("method--get", () { 2297 unittest.test("method--get", () {
2298 2298
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
2518 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Servi ce response) { 2518 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Servi ce response) {
2519 checkService(response); 2519 checkService(response);
2520 }))); 2520 })));
2521 }); 2521 });
2522 2522
2523 unittest.test("method--list", () { 2523 unittest.test("method--list", () {
2524 2524
2525 var mock = new HttpServerMock(); 2525 var mock = new HttpServerMock();
2526 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ; 2526 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ;
2527 var arg_appsId = "foo"; 2527 var arg_appsId = "foo";
2528 var arg_pageToken = "foo";
2528 var arg_pageSize = 42; 2529 var arg_pageSize = 42;
2529 var arg_pageToken = "foo";
2530 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 2530 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2531 var path = (req.url).path; 2531 var path = (req.url).path;
2532 var pathOffset = 0; 2532 var pathOffset = 0;
2533 var index; 2533 var index;
2534 var subPart; 2534 var subPart;
2535 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2535 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2536 pathOffset += 1; 2536 pathOffset += 1;
2537 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta5/apps/")); 2537 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta5/apps/"));
2538 pathOffset += 13; 2538 pathOffset += 13;
2539 index = path.indexOf("/services", pathOffset); 2539 index = path.indexOf("/services", pathOffset);
(...skipping 13 matching lines...) Expand all
2553 if (n == "false") return false; 2553 if (n == "false") return false;
2554 if (n == null) return null; 2554 if (n == null) return null;
2555 throw new core.ArgumentError("Invalid boolean: $n"); 2555 throw new core.ArgumentError("Invalid boolean: $n");
2556 } 2556 }
2557 if (query.length > 0) { 2557 if (query.length > 0) {
2558 for (var part in query.split("&")) { 2558 for (var part in query.split("&")) {
2559 var keyvalue = part.split("="); 2559 var keyvalue = part.split("=");
2560 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2560 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2561 } 2561 }
2562 } 2562 }
2563 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2563 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 2564 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2564 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2565 2565
2566 2566
2567 var h = { 2567 var h = {
2568 "content-type" : "application/json; charset=utf-8", 2568 "content-type" : "application/json; charset=utf-8",
2569 }; 2569 };
2570 var resp = convert.JSON.encode(buildListServicesResponse()); 2570 var resp = convert.JSON.encode(buildListServicesResponse());
2571 return new async.Future.value(stringResponse(200, h, resp)); 2571 return new async.Future.value(stringResponse(200, h, resp));
2572 }), true); 2572 }), true);
2573 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync1(((api.ListServicesResponse response) { 2573 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync1(((api.ListServicesResponse response) {
2574 checkListServicesResponse(response); 2574 checkListServicesResponse(response);
2575 }))); 2575 })));
2576 }); 2576 });
2577 2577
2578 unittest.test("method--patch", () { 2578 unittest.test("method--patch", () {
2579 2579
2580 var mock = new HttpServerMock(); 2580 var mock = new HttpServerMock();
2581 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ; 2581 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ;
2582 var arg_request = buildService(); 2582 var arg_request = buildService();
2583 var arg_appsId = "foo"; 2583 var arg_appsId = "foo";
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
3261 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageTo ken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesRespo nse response) { 3261 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageTo ken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesRespo nse response) {
3262 checkListInstancesResponse(response); 3262 checkListInstancesResponse(response);
3263 }))); 3263 })));
3264 }); 3264 });
3265 3265
3266 }); 3266 });
3267 3267
3268 3268
3269 } 3269 }
3270 3270
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/appengine/v1beta4_test.dart ('k') | generated/googleapis_beta/test/appengine/v1beta_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698