OLD | NEW |
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 Loading... |
90 } | 90 } |
91 | 91 |
92 checkApiEndpointHandler(api.ApiEndpointHandler o) { | 92 checkApiEndpointHandler(api.ApiEndpointHandler o) { |
93 buildCounterApiEndpointHandler++; | 93 buildCounterApiEndpointHandler++; |
94 if (buildCounterApiEndpointHandler < 3) { | 94 if (buildCounterApiEndpointHandler < 3) { |
95 unittest.expect(o.scriptPath, unittest.equals('foo')); | 95 unittest.expect(o.scriptPath, unittest.equals('foo')); |
96 } | 96 } |
97 buildCounterApiEndpointHandler--; | 97 buildCounterApiEndpointHandler--; |
98 } | 98 } |
99 | 99 |
100 buildUnnamed2524() { | 100 buildUnnamed2623() { |
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 checkUnnamed2524(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed2623(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 = buildUnnamed2524(); | 123 o.dispatchRules = buildUnnamed2623(); |
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 checkUnnamed2524(o.dispatchRules); | 143 checkUnnamed2623(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 Loading... |
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 buildUnnamed2525() { | 275 buildUnnamed2624() { |
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 checkUnnamed2525(core.Map<core.String, api.FileInfo> o) { | 282 checkUnnamed2624(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 = buildUnnamed2525(); | 294 o.files = buildUnnamed2624(); |
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 checkUnnamed2525(o.files); | 305 checkUnnamed2624(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 Loading... |
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 buildUnnamed2526() { | 529 buildUnnamed2625() { |
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 checkUnnamed2526(core.List<api.Instance> o) { | 536 checkUnnamed2625(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 = buildUnnamed2526(); | 547 o.instances = buildUnnamed2625(); |
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 checkUnnamed2526(o.instances); | 557 checkUnnamed2625(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 buildUnnamed2527() { | 563 buildUnnamed2626() { |
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 checkUnnamed2527(core.List<api.Location> o) { | 570 checkUnnamed2626(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 = buildUnnamed2527(); | 581 o.locations = buildUnnamed2626(); |
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 checkUnnamed2527(o.locations); | 591 checkUnnamed2626(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 buildUnnamed2528() { | 597 buildUnnamed2627() { |
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 checkUnnamed2528(core.List<api.Operation> o) { | 604 checkUnnamed2627(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 = buildUnnamed2528(); | 616 o.operations = buildUnnamed2627(); |
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 checkUnnamed2528(o.operations); | 626 checkUnnamed2627(o.operations); |
627 } | 627 } |
628 buildCounterListOperationsResponse--; | 628 buildCounterListOperationsResponse--; |
629 } | 629 } |
630 | 630 |
631 buildUnnamed2529() { | 631 buildUnnamed2628() { |
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 checkUnnamed2529(core.List<api.Service> o) { | 638 checkUnnamed2628(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 = buildUnnamed2529(); | 650 o.services = buildUnnamed2628(); |
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 checkUnnamed2529(o.services); | 660 checkUnnamed2628(o.services); |
661 } | 661 } |
662 buildCounterListServicesResponse--; | 662 buildCounterListServicesResponse--; |
663 } | 663 } |
664 | 664 |
665 buildUnnamed2530() { | 665 buildUnnamed2629() { |
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 checkUnnamed2530(core.List<api.Version> o) { | 672 checkUnnamed2629(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 = buildUnnamed2530(); | 684 o.versions = buildUnnamed2629(); |
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 checkUnnamed2530(o.versions); | 694 checkUnnamed2629(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 Loading... |
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 buildUnnamed2531() { | 730 buildUnnamed2630() { |
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 checkUnnamed2531(core.Map<core.String, core.String> o) { | 737 checkUnnamed2630(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 buildUnnamed2532() { | 743 buildUnnamed2631() { |
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 checkUnnamed2532(core.Map<core.String, core.Object> o) { | 750 checkUnnamed2631(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 = buildUnnamed2531(); | 761 o.labels = buildUnnamed2630(); |
762 o.locationId = "foo"; | 762 o.locationId = "foo"; |
763 o.metadata = buildUnnamed2532(); | 763 o.metadata = buildUnnamed2631(); |
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 checkUnnamed2531(o.labels); | 773 checkUnnamed2630(o.labels); |
774 unittest.expect(o.locationId, unittest.equals('foo')); | 774 unittest.expect(o.locationId, unittest.equals('foo')); |
775 checkUnnamed2532(o.metadata); | 775 checkUnnamed2631(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 Loading... |
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 buildUnnamed2533() { | 821 buildUnnamed2632() { |
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 checkUnnamed2533(core.List<core.String> o) { | 828 checkUnnamed2632(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 = buildUnnamed2533(); | 839 o.forwardedPorts = buildUnnamed2632(); |
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 checkUnnamed2533(o.forwardedPorts); | 851 checkUnnamed2632(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 Loading... |
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 buildUnnamed2534() { | 884 buildUnnamed2633() { |
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 checkUnnamed2534(core.Map<core.String, core.Object> o) { | 891 checkUnnamed2633(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 buildUnnamed2535() { | 897 buildUnnamed2634() { |
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 checkUnnamed2535(core.Map<core.String, core.Object> o) { | 904 checkUnnamed2634(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 = buildUnnamed2534(); | 917 o.metadata = buildUnnamed2633(); |
918 o.name = "foo"; | 918 o.name = "foo"; |
919 o.response = buildUnnamed2535(); | 919 o.response = buildUnnamed2634(); |
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 checkUnnamed2534(o.metadata); | 930 checkUnnamed2633(o.metadata); |
931 unittest.expect(o.name, unittest.equals('foo')); | 931 unittest.expect(o.name, unittest.equals('foo')); |
932 checkUnnamed2535(o.response); | 932 checkUnnamed2634(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 Loading... |
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 buildUnnamed2536() { | 993 buildUnnamed2635() { |
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 checkUnnamed2536(core.List<core.String> o) { | 1000 checkUnnamed2635(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 = buildUnnamed2536(); | 1017 o.warning = buildUnnamed2635(); |
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 checkUnnamed2536(o.warning); | 1032 checkUnnamed2635(o.warning); |
1033 } | 1033 } |
1034 buildCounterOperationMetadataV1--; | 1034 buildCounterOperationMetadataV1--; |
1035 } | 1035 } |
1036 | 1036 |
1037 buildUnnamed2537() { | 1037 buildUnnamed2636() { |
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 checkUnnamed2537(core.List<core.String> o) { | 1044 checkUnnamed2636(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 = buildUnnamed2537(); | 1061 o.warning = buildUnnamed2636(); |
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 checkUnnamed2537(o.warning); | 1076 checkUnnamed2636(o.warning); |
1077 } | 1077 } |
1078 buildCounterOperationMetadataV1Alpha--; | 1078 buildCounterOperationMetadataV1Alpha--; |
1079 } | 1079 } |
1080 | 1080 |
1081 buildUnnamed2538() { | 1081 buildUnnamed2637() { |
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 checkUnnamed2538(core.List<core.String> o) { | 1088 checkUnnamed2637(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 = buildUnnamed2538(); | 1105 o.warning = buildUnnamed2637(); |
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 checkUnnamed2538(o.warning); | 1120 checkUnnamed2637(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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 | 1209 |
1210 checkRequestUtilization(api.RequestUtilization o) { | 1210 checkRequestUtilization(api.RequestUtilization o) { |
1211 buildCounterRequestUtilization++; | 1211 buildCounterRequestUtilization++; |
1212 if (buildCounterRequestUtilization < 3) { | 1212 if (buildCounterRequestUtilization < 3) { |
1213 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); | 1213 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); |
1214 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42)); | 1214 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42)); |
1215 } | 1215 } |
1216 buildCounterRequestUtilization--; | 1216 buildCounterRequestUtilization--; |
1217 } | 1217 } |
1218 | 1218 |
1219 buildUnnamed2539() { | 1219 buildUnnamed2638() { |
1220 var o = new core.List<api.Volume>(); | 1220 var o = new core.List<api.Volume>(); |
1221 o.add(buildVolume()); | 1221 o.add(buildVolume()); |
1222 o.add(buildVolume()); | 1222 o.add(buildVolume()); |
1223 return o; | 1223 return o; |
1224 } | 1224 } |
1225 | 1225 |
1226 checkUnnamed2539(core.List<api.Volume> o) { | 1226 checkUnnamed2638(core.List<api.Volume> o) { |
1227 unittest.expect(o, unittest.hasLength(2)); | 1227 unittest.expect(o, unittest.hasLength(2)); |
1228 checkVolume(o[0]); | 1228 checkVolume(o[0]); |
1229 checkVolume(o[1]); | 1229 checkVolume(o[1]); |
1230 } | 1230 } |
1231 | 1231 |
1232 core.int buildCounterResources = 0; | 1232 core.int buildCounterResources = 0; |
1233 buildResources() { | 1233 buildResources() { |
1234 var o = new api.Resources(); | 1234 var o = new api.Resources(); |
1235 buildCounterResources++; | 1235 buildCounterResources++; |
1236 if (buildCounterResources < 3) { | 1236 if (buildCounterResources < 3) { |
1237 o.cpu = 42.0; | 1237 o.cpu = 42.0; |
1238 o.diskGb = 42.0; | 1238 o.diskGb = 42.0; |
1239 o.memoryGb = 42.0; | 1239 o.memoryGb = 42.0; |
1240 o.volumes = buildUnnamed2539(); | 1240 o.volumes = buildUnnamed2638(); |
1241 } | 1241 } |
1242 buildCounterResources--; | 1242 buildCounterResources--; |
1243 return o; | 1243 return o; |
1244 } | 1244 } |
1245 | 1245 |
1246 checkResources(api.Resources o) { | 1246 checkResources(api.Resources o) { |
1247 buildCounterResources++; | 1247 buildCounterResources++; |
1248 if (buildCounterResources < 3) { | 1248 if (buildCounterResources < 3) { |
1249 unittest.expect(o.cpu, unittest.equals(42.0)); | 1249 unittest.expect(o.cpu, unittest.equals(42.0)); |
1250 unittest.expect(o.diskGb, unittest.equals(42.0)); | 1250 unittest.expect(o.diskGb, unittest.equals(42.0)); |
1251 unittest.expect(o.memoryGb, unittest.equals(42.0)); | 1251 unittest.expect(o.memoryGb, unittest.equals(42.0)); |
1252 checkUnnamed2539(o.volumes); | 1252 checkUnnamed2638(o.volumes); |
1253 } | 1253 } |
1254 buildCounterResources--; | 1254 buildCounterResources--; |
1255 } | 1255 } |
1256 | 1256 |
1257 core.int buildCounterScriptHandler = 0; | 1257 core.int buildCounterScriptHandler = 0; |
1258 buildScriptHandler() { | 1258 buildScriptHandler() { |
1259 var o = new api.ScriptHandler(); | 1259 var o = new api.ScriptHandler(); |
1260 buildCounterScriptHandler++; | 1260 buildCounterScriptHandler++; |
1261 if (buildCounterScriptHandler < 3) { | 1261 if (buildCounterScriptHandler < 3) { |
1262 o.scriptPath = "foo"; | 1262 o.scriptPath = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1289 checkService(api.Service o) { | 1289 checkService(api.Service o) { |
1290 buildCounterService++; | 1290 buildCounterService++; |
1291 if (buildCounterService < 3) { | 1291 if (buildCounterService < 3) { |
1292 unittest.expect(o.id, unittest.equals('foo')); | 1292 unittest.expect(o.id, unittest.equals('foo')); |
1293 unittest.expect(o.name, unittest.equals('foo')); | 1293 unittest.expect(o.name, unittest.equals('foo')); |
1294 checkTrafficSplit(o.split); | 1294 checkTrafficSplit(o.split); |
1295 } | 1295 } |
1296 buildCounterService--; | 1296 buildCounterService--; |
1297 } | 1297 } |
1298 | 1298 |
1299 buildUnnamed2540() { | 1299 buildUnnamed2639() { |
1300 var o = new core.Map<core.String, core.String>(); | 1300 var o = new core.Map<core.String, core.String>(); |
1301 o["x"] = "foo"; | 1301 o["x"] = "foo"; |
1302 o["y"] = "foo"; | 1302 o["y"] = "foo"; |
1303 return o; | 1303 return o; |
1304 } | 1304 } |
1305 | 1305 |
1306 checkUnnamed2540(core.Map<core.String, core.String> o) { | 1306 checkUnnamed2639(core.Map<core.String, core.String> o) { |
1307 unittest.expect(o, unittest.hasLength(2)); | 1307 unittest.expect(o, unittest.hasLength(2)); |
1308 unittest.expect(o["x"], unittest.equals('foo')); | 1308 unittest.expect(o["x"], unittest.equals('foo')); |
1309 unittest.expect(o["y"], unittest.equals('foo')); | 1309 unittest.expect(o["y"], unittest.equals('foo')); |
1310 } | 1310 } |
1311 | 1311 |
1312 core.int buildCounterStaticFilesHandler = 0; | 1312 core.int buildCounterStaticFilesHandler = 0; |
1313 buildStaticFilesHandler() { | 1313 buildStaticFilesHandler() { |
1314 var o = new api.StaticFilesHandler(); | 1314 var o = new api.StaticFilesHandler(); |
1315 buildCounterStaticFilesHandler++; | 1315 buildCounterStaticFilesHandler++; |
1316 if (buildCounterStaticFilesHandler < 3) { | 1316 if (buildCounterStaticFilesHandler < 3) { |
1317 o.applicationReadable = true; | 1317 o.applicationReadable = true; |
1318 o.expiration = "foo"; | 1318 o.expiration = "foo"; |
1319 o.httpHeaders = buildUnnamed2540(); | 1319 o.httpHeaders = buildUnnamed2639(); |
1320 o.mimeType = "foo"; | 1320 o.mimeType = "foo"; |
1321 o.path = "foo"; | 1321 o.path = "foo"; |
1322 o.requireMatchingFile = true; | 1322 o.requireMatchingFile = true; |
1323 o.uploadPathRegex = "foo"; | 1323 o.uploadPathRegex = "foo"; |
1324 } | 1324 } |
1325 buildCounterStaticFilesHandler--; | 1325 buildCounterStaticFilesHandler--; |
1326 return o; | 1326 return o; |
1327 } | 1327 } |
1328 | 1328 |
1329 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1329 checkStaticFilesHandler(api.StaticFilesHandler o) { |
1330 buildCounterStaticFilesHandler++; | 1330 buildCounterStaticFilesHandler++; |
1331 if (buildCounterStaticFilesHandler < 3) { | 1331 if (buildCounterStaticFilesHandler < 3) { |
1332 unittest.expect(o.applicationReadable, unittest.isTrue); | 1332 unittest.expect(o.applicationReadable, unittest.isTrue); |
1333 unittest.expect(o.expiration, unittest.equals('foo')); | 1333 unittest.expect(o.expiration, unittest.equals('foo')); |
1334 checkUnnamed2540(o.httpHeaders); | 1334 checkUnnamed2639(o.httpHeaders); |
1335 unittest.expect(o.mimeType, unittest.equals('foo')); | 1335 unittest.expect(o.mimeType, unittest.equals('foo')); |
1336 unittest.expect(o.path, unittest.equals('foo')); | 1336 unittest.expect(o.path, unittest.equals('foo')); |
1337 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1337 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1338 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1338 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
1339 } | 1339 } |
1340 buildCounterStaticFilesHandler--; | 1340 buildCounterStaticFilesHandler--; |
1341 } | 1341 } |
1342 | 1342 |
1343 buildUnnamed2541() { | 1343 buildUnnamed2640() { |
1344 var o = new core.Map<core.String, core.Object>(); | 1344 var o = new core.Map<core.String, core.Object>(); |
1345 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1345 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1346 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1346 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1347 return o; | 1347 return o; |
1348 } | 1348 } |
1349 | 1349 |
1350 checkUnnamed2541(core.Map<core.String, core.Object> o) { | 1350 checkUnnamed2640(core.Map<core.String, core.Object> o) { |
1351 unittest.expect(o, unittest.hasLength(2)); | 1351 unittest.expect(o, unittest.hasLength(2)); |
1352 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')); | 1352 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')); |
1353 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')); | 1353 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')); |
1354 } | 1354 } |
1355 | 1355 |
1356 buildUnnamed2542() { | 1356 buildUnnamed2641() { |
1357 var o = new core.List<core.Map<core.String, core.Object>>(); | 1357 var o = new core.List<core.Map<core.String, core.Object>>(); |
1358 o.add(buildUnnamed2541()); | 1358 o.add(buildUnnamed2640()); |
1359 o.add(buildUnnamed2541()); | 1359 o.add(buildUnnamed2640()); |
1360 return o; | 1360 return o; |
1361 } | 1361 } |
1362 | 1362 |
1363 checkUnnamed2542(core.List<core.Map<core.String, core.Object>> o) { | 1363 checkUnnamed2641(core.List<core.Map<core.String, core.Object>> o) { |
1364 unittest.expect(o, unittest.hasLength(2)); | 1364 unittest.expect(o, unittest.hasLength(2)); |
1365 checkUnnamed2541(o[0]); | 1365 checkUnnamed2640(o[0]); |
1366 checkUnnamed2541(o[1]); | 1366 checkUnnamed2640(o[1]); |
1367 } | 1367 } |
1368 | 1368 |
1369 core.int buildCounterStatus = 0; | 1369 core.int buildCounterStatus = 0; |
1370 buildStatus() { | 1370 buildStatus() { |
1371 var o = new api.Status(); | 1371 var o = new api.Status(); |
1372 buildCounterStatus++; | 1372 buildCounterStatus++; |
1373 if (buildCounterStatus < 3) { | 1373 if (buildCounterStatus < 3) { |
1374 o.code = 42; | 1374 o.code = 42; |
1375 o.details = buildUnnamed2542(); | 1375 o.details = buildUnnamed2641(); |
1376 o.message = "foo"; | 1376 o.message = "foo"; |
1377 } | 1377 } |
1378 buildCounterStatus--; | 1378 buildCounterStatus--; |
1379 return o; | 1379 return o; |
1380 } | 1380 } |
1381 | 1381 |
1382 checkStatus(api.Status o) { | 1382 checkStatus(api.Status o) { |
1383 buildCounterStatus++; | 1383 buildCounterStatus++; |
1384 if (buildCounterStatus < 3) { | 1384 if (buildCounterStatus < 3) { |
1385 unittest.expect(o.code, unittest.equals(42)); | 1385 unittest.expect(o.code, unittest.equals(42)); |
1386 checkUnnamed2542(o.details); | 1386 checkUnnamed2641(o.details); |
1387 unittest.expect(o.message, unittest.equals('foo')); | 1387 unittest.expect(o.message, unittest.equals('foo')); |
1388 } | 1388 } |
1389 buildCounterStatus--; | 1389 buildCounterStatus--; |
1390 } | 1390 } |
1391 | 1391 |
1392 buildUnnamed2543() { | 1392 buildUnnamed2642() { |
1393 var o = new core.Map<core.String, core.double>(); | 1393 var o = new core.Map<core.String, core.double>(); |
1394 o["x"] = 42.0; | 1394 o["x"] = 42.0; |
1395 o["y"] = 42.0; | 1395 o["y"] = 42.0; |
1396 return o; | 1396 return o; |
1397 } | 1397 } |
1398 | 1398 |
1399 checkUnnamed2543(core.Map<core.String, core.double> o) { | 1399 checkUnnamed2642(core.Map<core.String, core.double> o) { |
1400 unittest.expect(o, unittest.hasLength(2)); | 1400 unittest.expect(o, unittest.hasLength(2)); |
1401 unittest.expect(o["x"], unittest.equals(42.0)); | 1401 unittest.expect(o["x"], unittest.equals(42.0)); |
1402 unittest.expect(o["y"], unittest.equals(42.0)); | 1402 unittest.expect(o["y"], unittest.equals(42.0)); |
1403 } | 1403 } |
1404 | 1404 |
1405 core.int buildCounterTrafficSplit = 0; | 1405 core.int buildCounterTrafficSplit = 0; |
1406 buildTrafficSplit() { | 1406 buildTrafficSplit() { |
1407 var o = new api.TrafficSplit(); | 1407 var o = new api.TrafficSplit(); |
1408 buildCounterTrafficSplit++; | 1408 buildCounterTrafficSplit++; |
1409 if (buildCounterTrafficSplit < 3) { | 1409 if (buildCounterTrafficSplit < 3) { |
1410 o.allocations = buildUnnamed2543(); | 1410 o.allocations = buildUnnamed2642(); |
1411 o.shardBy = "foo"; | 1411 o.shardBy = "foo"; |
1412 } | 1412 } |
1413 buildCounterTrafficSplit--; | 1413 buildCounterTrafficSplit--; |
1414 return o; | 1414 return o; |
1415 } | 1415 } |
1416 | 1416 |
1417 checkTrafficSplit(api.TrafficSplit o) { | 1417 checkTrafficSplit(api.TrafficSplit o) { |
1418 buildCounterTrafficSplit++; | 1418 buildCounterTrafficSplit++; |
1419 if (buildCounterTrafficSplit < 3) { | 1419 if (buildCounterTrafficSplit < 3) { |
1420 checkUnnamed2543(o.allocations); | 1420 checkUnnamed2642(o.allocations); |
1421 unittest.expect(o.shardBy, unittest.equals('foo')); | 1421 unittest.expect(o.shardBy, unittest.equals('foo')); |
1422 } | 1422 } |
1423 buildCounterTrafficSplit--; | 1423 buildCounterTrafficSplit--; |
1424 } | 1424 } |
1425 | 1425 |
1426 core.int buildCounterUrlDispatchRule = 0; | 1426 core.int buildCounterUrlDispatchRule = 0; |
1427 buildUrlDispatchRule() { | 1427 buildUrlDispatchRule() { |
1428 var o = new api.UrlDispatchRule(); | 1428 var o = new api.UrlDispatchRule(); |
1429 buildCounterUrlDispatchRule++; | 1429 buildCounterUrlDispatchRule++; |
1430 if (buildCounterUrlDispatchRule < 3) { | 1430 if (buildCounterUrlDispatchRule < 3) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1472 unittest.expect(o.login, unittest.equals('foo')); | 1472 unittest.expect(o.login, unittest.equals('foo')); |
1473 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1473 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
1474 checkScriptHandler(o.script); | 1474 checkScriptHandler(o.script); |
1475 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1475 unittest.expect(o.securityLevel, unittest.equals('foo')); |
1476 checkStaticFilesHandler(o.staticFiles); | 1476 checkStaticFilesHandler(o.staticFiles); |
1477 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1477 unittest.expect(o.urlRegex, unittest.equals('foo')); |
1478 } | 1478 } |
1479 buildCounterUrlMap--; | 1479 buildCounterUrlMap--; |
1480 } | 1480 } |
1481 | 1481 |
1482 buildUnnamed2544() { | 1482 buildUnnamed2643() { |
1483 var o = new core.Map<core.String, core.String>(); | 1483 var o = new core.Map<core.String, core.String>(); |
1484 o["x"] = "foo"; | 1484 o["x"] = "foo"; |
1485 o["y"] = "foo"; | 1485 o["y"] = "foo"; |
1486 return o; | 1486 return o; |
1487 } | 1487 } |
1488 | 1488 |
1489 checkUnnamed2544(core.Map<core.String, core.String> o) { | 1489 checkUnnamed2643(core.Map<core.String, core.String> o) { |
1490 unittest.expect(o, unittest.hasLength(2)); | 1490 unittest.expect(o, unittest.hasLength(2)); |
1491 unittest.expect(o["x"], unittest.equals('foo')); | 1491 unittest.expect(o["x"], unittest.equals('foo')); |
1492 unittest.expect(o["y"], unittest.equals('foo')); | 1492 unittest.expect(o["y"], unittest.equals('foo')); |
1493 } | 1493 } |
1494 | 1494 |
1495 buildUnnamed2545() { | 1495 buildUnnamed2644() { |
1496 var o = new core.Map<core.String, core.String>(); | 1496 var o = new core.Map<core.String, core.String>(); |
1497 o["x"] = "foo"; | 1497 o["x"] = "foo"; |
1498 o["y"] = "foo"; | 1498 o["y"] = "foo"; |
1499 return o; | 1499 return o; |
1500 } | 1500 } |
1501 | 1501 |
1502 checkUnnamed2545(core.Map<core.String, core.String> o) { | 1502 checkUnnamed2644(core.Map<core.String, core.String> o) { |
1503 unittest.expect(o, unittest.hasLength(2)); | 1503 unittest.expect(o, unittest.hasLength(2)); |
1504 unittest.expect(o["x"], unittest.equals('foo')); | 1504 unittest.expect(o["x"], unittest.equals('foo')); |
1505 unittest.expect(o["y"], unittest.equals('foo')); | 1505 unittest.expect(o["y"], unittest.equals('foo')); |
1506 } | 1506 } |
1507 | 1507 |
1508 buildUnnamed2546() { | 1508 buildUnnamed2645() { |
1509 var o = new core.List<api.ErrorHandler>(); | 1509 var o = new core.List<api.ErrorHandler>(); |
1510 o.add(buildErrorHandler()); | 1510 o.add(buildErrorHandler()); |
1511 o.add(buildErrorHandler()); | 1511 o.add(buildErrorHandler()); |
1512 return o; | 1512 return o; |
1513 } | 1513 } |
1514 | 1514 |
1515 checkUnnamed2546(core.List<api.ErrorHandler> o) { | 1515 checkUnnamed2645(core.List<api.ErrorHandler> o) { |
1516 unittest.expect(o, unittest.hasLength(2)); | 1516 unittest.expect(o, unittest.hasLength(2)); |
1517 checkErrorHandler(o[0]); | 1517 checkErrorHandler(o[0]); |
1518 checkErrorHandler(o[1]); | 1518 checkErrorHandler(o[1]); |
1519 } | 1519 } |
1520 | 1520 |
1521 buildUnnamed2547() { | 1521 buildUnnamed2646() { |
1522 var o = new core.List<api.UrlMap>(); | 1522 var o = new core.List<api.UrlMap>(); |
1523 o.add(buildUrlMap()); | 1523 o.add(buildUrlMap()); |
1524 o.add(buildUrlMap()); | 1524 o.add(buildUrlMap()); |
1525 return o; | 1525 return o; |
1526 } | 1526 } |
1527 | 1527 |
1528 checkUnnamed2547(core.List<api.UrlMap> o) { | 1528 checkUnnamed2646(core.List<api.UrlMap> o) { |
1529 unittest.expect(o, unittest.hasLength(2)); | 1529 unittest.expect(o, unittest.hasLength(2)); |
1530 checkUrlMap(o[0]); | 1530 checkUrlMap(o[0]); |
1531 checkUrlMap(o[1]); | 1531 checkUrlMap(o[1]); |
1532 } | 1532 } |
1533 | 1533 |
1534 buildUnnamed2548() { | 1534 buildUnnamed2647() { |
1535 var o = new core.List<core.String>(); | 1535 var o = new core.List<core.String>(); |
1536 o.add("foo"); | 1536 o.add("foo"); |
1537 o.add("foo"); | 1537 o.add("foo"); |
1538 return o; | 1538 return o; |
1539 } | 1539 } |
1540 | 1540 |
1541 checkUnnamed2548(core.List<core.String> o) { | 1541 checkUnnamed2647(core.List<core.String> o) { |
1542 unittest.expect(o, unittest.hasLength(2)); | 1542 unittest.expect(o, unittest.hasLength(2)); |
1543 unittest.expect(o[0], unittest.equals('foo')); | 1543 unittest.expect(o[0], unittest.equals('foo')); |
1544 unittest.expect(o[1], unittest.equals('foo')); | 1544 unittest.expect(o[1], unittest.equals('foo')); |
1545 } | 1545 } |
1546 | 1546 |
1547 buildUnnamed2549() { | 1547 buildUnnamed2648() { |
1548 var o = new core.List<api.Library>(); | 1548 var o = new core.List<api.Library>(); |
1549 o.add(buildLibrary()); | 1549 o.add(buildLibrary()); |
1550 o.add(buildLibrary()); | 1550 o.add(buildLibrary()); |
1551 return o; | 1551 return o; |
1552 } | 1552 } |
1553 | 1553 |
1554 checkUnnamed2549(core.List<api.Library> o) { | 1554 checkUnnamed2648(core.List<api.Library> o) { |
1555 unittest.expect(o, unittest.hasLength(2)); | 1555 unittest.expect(o, unittest.hasLength(2)); |
1556 checkLibrary(o[0]); | 1556 checkLibrary(o[0]); |
1557 checkLibrary(o[1]); | 1557 checkLibrary(o[1]); |
1558 } | 1558 } |
1559 | 1559 |
1560 core.int buildCounterVersion = 0; | 1560 core.int buildCounterVersion = 0; |
1561 buildVersion() { | 1561 buildVersion() { |
1562 var o = new api.Version(); | 1562 var o = new api.Version(); |
1563 buildCounterVersion++; | 1563 buildCounterVersion++; |
1564 if (buildCounterVersion < 3) { | 1564 if (buildCounterVersion < 3) { |
1565 o.apiConfig = buildApiConfigHandler(); | 1565 o.apiConfig = buildApiConfigHandler(); |
1566 o.automaticScaling = buildAutomaticScaling(); | 1566 o.automaticScaling = buildAutomaticScaling(); |
1567 o.basicScaling = buildBasicScaling(); | 1567 o.basicScaling = buildBasicScaling(); |
1568 o.betaSettings = buildUnnamed2544(); | 1568 o.betaSettings = buildUnnamed2643(); |
1569 o.createTime = "foo"; | 1569 o.createTime = "foo"; |
1570 o.createdBy = "foo"; | 1570 o.createdBy = "foo"; |
1571 o.defaultExpiration = "foo"; | 1571 o.defaultExpiration = "foo"; |
1572 o.deployment = buildDeployment(); | 1572 o.deployment = buildDeployment(); |
1573 o.diskUsageBytes = "foo"; | 1573 o.diskUsageBytes = "foo"; |
1574 o.endpointsApiService = buildEndpointsApiService(); | 1574 o.endpointsApiService = buildEndpointsApiService(); |
1575 o.env = "foo"; | 1575 o.env = "foo"; |
1576 o.envVariables = buildUnnamed2545(); | 1576 o.envVariables = buildUnnamed2644(); |
1577 o.errorHandlers = buildUnnamed2546(); | 1577 o.errorHandlers = buildUnnamed2645(); |
1578 o.handlers = buildUnnamed2547(); | 1578 o.handlers = buildUnnamed2646(); |
1579 o.healthCheck = buildHealthCheck(); | 1579 o.healthCheck = buildHealthCheck(); |
1580 o.id = "foo"; | 1580 o.id = "foo"; |
1581 o.inboundServices = buildUnnamed2548(); | 1581 o.inboundServices = buildUnnamed2647(); |
1582 o.instanceClass = "foo"; | 1582 o.instanceClass = "foo"; |
1583 o.libraries = buildUnnamed2549(); | 1583 o.libraries = buildUnnamed2648(); |
1584 o.livenessCheck = buildLivenessCheck(); | 1584 o.livenessCheck = buildLivenessCheck(); |
1585 o.manualScaling = buildManualScaling(); | 1585 o.manualScaling = buildManualScaling(); |
1586 o.name = "foo"; | 1586 o.name = "foo"; |
1587 o.network = buildNetwork(); | 1587 o.network = buildNetwork(); |
1588 o.nobuildFilesRegex = "foo"; | 1588 o.nobuildFilesRegex = "foo"; |
1589 o.readinessCheck = buildReadinessCheck(); | 1589 o.readinessCheck = buildReadinessCheck(); |
1590 o.resources = buildResources(); | 1590 o.resources = buildResources(); |
1591 o.runtime = "foo"; | 1591 o.runtime = "foo"; |
1592 o.runtimeApiVersion = "foo"; | 1592 o.runtimeApiVersion = "foo"; |
1593 o.servingStatus = "foo"; | 1593 o.servingStatus = "foo"; |
1594 o.threadsafe = true; | 1594 o.threadsafe = true; |
1595 o.versionUrl = "foo"; | 1595 o.versionUrl = "foo"; |
1596 o.vm = true; | 1596 o.vm = true; |
1597 } | 1597 } |
1598 buildCounterVersion--; | 1598 buildCounterVersion--; |
1599 return o; | 1599 return o; |
1600 } | 1600 } |
1601 | 1601 |
1602 checkVersion(api.Version o) { | 1602 checkVersion(api.Version o) { |
1603 buildCounterVersion++; | 1603 buildCounterVersion++; |
1604 if (buildCounterVersion < 3) { | 1604 if (buildCounterVersion < 3) { |
1605 checkApiConfigHandler(o.apiConfig); | 1605 checkApiConfigHandler(o.apiConfig); |
1606 checkAutomaticScaling(o.automaticScaling); | 1606 checkAutomaticScaling(o.automaticScaling); |
1607 checkBasicScaling(o.basicScaling); | 1607 checkBasicScaling(o.basicScaling); |
1608 checkUnnamed2544(o.betaSettings); | 1608 checkUnnamed2643(o.betaSettings); |
1609 unittest.expect(o.createTime, unittest.equals('foo')); | 1609 unittest.expect(o.createTime, unittest.equals('foo')); |
1610 unittest.expect(o.createdBy, unittest.equals('foo')); | 1610 unittest.expect(o.createdBy, unittest.equals('foo')); |
1611 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1611 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
1612 checkDeployment(o.deployment); | 1612 checkDeployment(o.deployment); |
1613 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); | 1613 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); |
1614 checkEndpointsApiService(o.endpointsApiService); | 1614 checkEndpointsApiService(o.endpointsApiService); |
1615 unittest.expect(o.env, unittest.equals('foo')); | 1615 unittest.expect(o.env, unittest.equals('foo')); |
1616 checkUnnamed2545(o.envVariables); | 1616 checkUnnamed2644(o.envVariables); |
1617 checkUnnamed2546(o.errorHandlers); | 1617 checkUnnamed2645(o.errorHandlers); |
1618 checkUnnamed2547(o.handlers); | 1618 checkUnnamed2646(o.handlers); |
1619 checkHealthCheck(o.healthCheck); | 1619 checkHealthCheck(o.healthCheck); |
1620 unittest.expect(o.id, unittest.equals('foo')); | 1620 unittest.expect(o.id, unittest.equals('foo')); |
1621 checkUnnamed2548(o.inboundServices); | 1621 checkUnnamed2647(o.inboundServices); |
1622 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1622 unittest.expect(o.instanceClass, unittest.equals('foo')); |
1623 checkUnnamed2549(o.libraries); | 1623 checkUnnamed2648(o.libraries); |
1624 checkLivenessCheck(o.livenessCheck); | 1624 checkLivenessCheck(o.livenessCheck); |
1625 checkManualScaling(o.manualScaling); | 1625 checkManualScaling(o.manualScaling); |
1626 unittest.expect(o.name, unittest.equals('foo')); | 1626 unittest.expect(o.name, unittest.equals('foo')); |
1627 checkNetwork(o.network); | 1627 checkNetwork(o.network); |
1628 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1628 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
1629 checkReadinessCheck(o.readinessCheck); | 1629 checkReadinessCheck(o.readinessCheck); |
1630 checkResources(o.resources); | 1630 checkResources(o.resources); |
1631 unittest.expect(o.runtime, unittest.equals('foo')); | 1631 unittest.expect(o.runtime, unittest.equals('foo')); |
1632 unittest.expect(o.runtimeApiVersion, unittest.equals('foo')); | 1632 unittest.expect(o.runtimeApiVersion, unittest.equals('foo')); |
1633 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1633 unittest.expect(o.servingStatus, unittest.equals('foo')); |
(...skipping 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2729 }))); | 2729 }))); |
2730 }); | 2730 }); |
2731 | 2731 |
2732 unittest.test("method--patch", () { | 2732 unittest.test("method--patch", () { |
2733 | 2733 |
2734 var mock = new HttpServerMock(); | 2734 var mock = new HttpServerMock(); |
2735 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; | 2735 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; |
2736 var arg_request = buildService(); | 2736 var arg_request = buildService(); |
2737 var arg_appsId = "foo"; | 2737 var arg_appsId = "foo"; |
2738 var arg_servicesId = "foo"; | 2738 var arg_servicesId = "foo"; |
| 2739 var arg_migrateTraffic = true; |
2739 var arg_updateMask = "foo"; | 2740 var arg_updateMask = "foo"; |
2740 var arg_migrateTraffic = true; | |
2741 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2741 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2742 var obj = new api.Service.fromJson(json); | 2742 var obj = new api.Service.fromJson(json); |
2743 checkService(obj); | 2743 checkService(obj); |
2744 | 2744 |
2745 var path = (req.url).path; | 2745 var path = (req.url).path; |
2746 var pathOffset = 0; | 2746 var pathOffset = 0; |
2747 var index; | 2747 var index; |
2748 var subPart; | 2748 var subPart; |
2749 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2749 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2750 pathOffset += 1; | 2750 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
2770 if (n == "false") return false; | 2770 if (n == "false") return false; |
2771 if (n == null) return null; | 2771 if (n == null) return null; |
2772 throw new core.ArgumentError("Invalid boolean: $n"); | 2772 throw new core.ArgumentError("Invalid boolean: $n"); |
2773 } | 2773 } |
2774 if (query.length > 0) { | 2774 if (query.length > 0) { |
2775 for (var part in query.split("&")) { | 2775 for (var part in query.split("&")) { |
2776 var keyvalue = part.split("="); | 2776 var keyvalue = part.split("="); |
2777 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2777 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2778 } | 2778 } |
2779 } | 2779 } |
| 2780 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_
migrateTraffic")); |
2780 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 2781 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
2781 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_
migrateTraffic")); | |
2782 | 2782 |
2783 | 2783 |
2784 var h = { | 2784 var h = { |
2785 "content-type" : "application/json; charset=utf-8", | 2785 "content-type" : "application/json; charset=utf-8", |
2786 }; | 2786 }; |
2787 var resp = convert.JSON.encode(buildOperation()); | 2787 var resp = convert.JSON.encode(buildOperation()); |
2788 return new async.Future.value(stringResponse(200, h, resp)); | 2788 return new async.Future.value(stringResponse(200, h, resp)); |
2789 }), true); | 2789 }), true); |
2790 res.patch(arg_request, arg_appsId, arg_servicesId, updateMask: arg_updateM
ask, migrateTraffic: arg_migrateTraffic).then(unittest.expectAsync1(((api.Operat
ion response) { | 2790 res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_mig
rateTraffic, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operat
ion response) { |
2791 checkOperation(response); | 2791 checkOperation(response); |
2792 }))); | 2792 }))); |
2793 }); | 2793 }); |
2794 | 2794 |
2795 }); | 2795 }); |
2796 | 2796 |
2797 | 2797 |
2798 unittest.group("resource-AppsServicesVersionsResourceApi", () { | 2798 unittest.group("resource-AppsServicesVersionsResourceApi", () { |
2799 unittest.test("method--create", () { | 2799 unittest.test("method--create", () { |
2800 | 2800 |
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3346 }))); | 3346 }))); |
3347 }); | 3347 }); |
3348 | 3348 |
3349 unittest.test("method--list", () { | 3349 unittest.test("method--list", () { |
3350 | 3350 |
3351 var mock = new HttpServerMock(); | 3351 var mock = new HttpServerMock(); |
3352 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo
ck).apps.services.versions.instances; | 3352 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo
ck).apps.services.versions.instances; |
3353 var arg_appsId = "foo"; | 3353 var arg_appsId = "foo"; |
3354 var arg_servicesId = "foo"; | 3354 var arg_servicesId = "foo"; |
3355 var arg_versionsId = "foo"; | 3355 var arg_versionsId = "foo"; |
| 3356 var arg_pageSize = 42; |
3356 var arg_pageToken = "foo"; | 3357 var arg_pageToken = "foo"; |
3357 var arg_pageSize = 42; | |
3358 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 3358 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3359 var path = (req.url).path; | 3359 var path = (req.url).path; |
3360 var pathOffset = 0; | 3360 var pathOffset = 0; |
3361 var index; | 3361 var index; |
3362 var subPart; | 3362 var subPart; |
3363 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3363 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3364 pathOffset += 1; | 3364 pathOffset += 1; |
3365 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1/apps/")); | 3365 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1/apps/")); |
3366 pathOffset += 8; | 3366 pathOffset += 8; |
3367 index = path.indexOf("/services/", pathOffset); | 3367 index = path.indexOf("/services/", pathOffset); |
(...skipping 27 matching lines...) Expand all Loading... |
3395 if (n == "false") return false; | 3395 if (n == "false") return false; |
3396 if (n == null) return null; | 3396 if (n == null) return null; |
3397 throw new core.ArgumentError("Invalid boolean: $n"); | 3397 throw new core.ArgumentError("Invalid boolean: $n"); |
3398 } | 3398 } |
3399 if (query.length > 0) { | 3399 if (query.length > 0) { |
3400 for (var part in query.split("&")) { | 3400 for (var part in query.split("&")) { |
3401 var keyvalue = part.split("="); | 3401 var keyvalue = part.split("="); |
3402 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3402 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3403 } | 3403 } |
3404 } | 3404 } |
| 3405 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3405 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3406 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3406 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
3407 | 3407 |
3408 | 3408 |
3409 var h = { | 3409 var h = { |
3410 "content-type" : "application/json; charset=utf-8", | 3410 "content-type" : "application/json; charset=utf-8", |
3411 }; | 3411 }; |
3412 var resp = convert.JSON.encode(buildListInstancesResponse()); | 3412 var resp = convert.JSON.encode(buildListInstancesResponse()); |
3413 return new async.Future.value(stringResponse(200, h, resp)); | 3413 return new async.Future.value(stringResponse(200, h, resp)); |
3414 }), true); | 3414 }), true); |
3415 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageTo
ken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesRespo
nse response) { | 3415 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListInstancesRespo
nse response) { |
3416 checkListInstancesResponse(response); | 3416 checkListInstancesResponse(response); |
3417 }))); | 3417 }))); |
3418 }); | 3418 }); |
3419 | 3419 |
3420 }); | 3420 }); |
3421 | 3421 |
3422 | 3422 |
3423 } | 3423 } |
3424 | 3424 |
OLD | NEW |