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:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 buildUnnamed2967() { | 100 buildUnnamed2981() { |
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 checkUnnamed2967(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed2981(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 = buildUnnamed2967(); | 123 o.dispatchRules = buildUnnamed2981(); |
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 checkUnnamed2967(o.dispatchRules); | 143 checkUnnamed2981(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 buildUnnamed2968() { | 275 buildUnnamed2982() { |
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 checkUnnamed2968(core.Map<core.String, api.FileInfo> o) { | 282 checkUnnamed2982(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 = buildUnnamed2968(); | 294 o.files = buildUnnamed2982(); |
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 checkUnnamed2968(o.files); | 305 checkUnnamed2982(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 buildUnnamed2969() { | 529 buildUnnamed2983() { |
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 checkUnnamed2969(core.List<api.Instance> o) { | 536 checkUnnamed2983(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 = buildUnnamed2969(); | 547 o.instances = buildUnnamed2983(); |
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 checkUnnamed2969(o.instances); | 557 checkUnnamed2983(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 buildUnnamed2970() { | 563 buildUnnamed2984() { |
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 checkUnnamed2970(core.List<api.Location> o) { | 570 checkUnnamed2984(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 = buildUnnamed2970(); | 581 o.locations = buildUnnamed2984(); |
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 checkUnnamed2970(o.locations); | 591 checkUnnamed2984(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 buildUnnamed2971() { | 597 buildUnnamed2985() { |
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 checkUnnamed2971(core.List<api.Operation> o) { | 604 checkUnnamed2985(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 = buildUnnamed2971(); | 616 o.operations = buildUnnamed2985(); |
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 checkUnnamed2971(o.operations); | 626 checkUnnamed2985(o.operations); |
627 } | 627 } |
628 buildCounterListOperationsResponse--; | 628 buildCounterListOperationsResponse--; |
629 } | 629 } |
630 | 630 |
631 buildUnnamed2972() { | 631 buildUnnamed2986() { |
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 checkUnnamed2972(core.List<api.Service> o) { | 638 checkUnnamed2986(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 = buildUnnamed2972(); | 650 o.services = buildUnnamed2986(); |
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 checkUnnamed2972(o.services); | 660 checkUnnamed2986(o.services); |
661 } | 661 } |
662 buildCounterListServicesResponse--; | 662 buildCounterListServicesResponse--; |
663 } | 663 } |
664 | 664 |
665 buildUnnamed2973() { | 665 buildUnnamed2987() { |
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 checkUnnamed2973(core.List<api.Version> o) { | 672 checkUnnamed2987(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 = buildUnnamed2973(); | 684 o.versions = buildUnnamed2987(); |
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 checkUnnamed2973(o.versions); | 694 checkUnnamed2987(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 buildUnnamed2974() { | 730 buildUnnamed2988() { |
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 checkUnnamed2974(core.Map<core.String, core.String> o) { | 737 checkUnnamed2988(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 buildUnnamed2975() { | 743 buildUnnamed2989() { |
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 checkUnnamed2975(core.Map<core.String, core.Object> o) { | 750 checkUnnamed2989(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 = buildUnnamed2974(); | 761 o.labels = buildUnnamed2988(); |
762 o.locationId = "foo"; | 762 o.locationId = "foo"; |
763 o.metadata = buildUnnamed2975(); | 763 o.metadata = buildUnnamed2989(); |
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 checkUnnamed2974(o.labels); | 773 checkUnnamed2988(o.labels); |
774 unittest.expect(o.locationId, unittest.equals('foo')); | 774 unittest.expect(o.locationId, unittest.equals('foo')); |
775 checkUnnamed2975(o.metadata); | 775 checkUnnamed2989(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 buildUnnamed2976() { | 821 buildUnnamed2990() { |
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 checkUnnamed2976(core.List<core.String> o) { | 828 checkUnnamed2990(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 = buildUnnamed2976(); | 839 o.forwardedPorts = buildUnnamed2990(); |
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 checkUnnamed2976(o.forwardedPorts); | 851 checkUnnamed2990(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 buildUnnamed2977() { | 884 buildUnnamed2991() { |
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 checkUnnamed2977(core.Map<core.String, core.Object> o) { | 891 checkUnnamed2991(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 buildUnnamed2978() { | 897 buildUnnamed2992() { |
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 checkUnnamed2978(core.Map<core.String, core.Object> o) { | 904 checkUnnamed2992(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 = buildUnnamed2977(); | 917 o.metadata = buildUnnamed2991(); |
918 o.name = "foo"; | 918 o.name = "foo"; |
919 o.response = buildUnnamed2978(); | 919 o.response = buildUnnamed2992(); |
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 checkUnnamed2977(o.metadata); | 930 checkUnnamed2991(o.metadata); |
931 unittest.expect(o.name, unittest.equals('foo')); | 931 unittest.expect(o.name, unittest.equals('foo')); |
932 checkUnnamed2978(o.response); | 932 checkUnnamed2992(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 buildUnnamed2979() { | 993 buildUnnamed2993() { |
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 checkUnnamed2979(core.List<core.String> o) { | 1000 checkUnnamed2993(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 = buildUnnamed2979(); | 1017 o.warning = buildUnnamed2993(); |
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 checkUnnamed2979(o.warning); | 1032 checkUnnamed2993(o.warning); |
1033 } | 1033 } |
1034 buildCounterOperationMetadataV1--; | 1034 buildCounterOperationMetadataV1--; |
1035 } | 1035 } |
1036 | 1036 |
1037 buildUnnamed2980() { | 1037 buildUnnamed2994() { |
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 checkUnnamed2980(core.List<core.String> o) { | 1044 checkUnnamed2994(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 buildCounterOperationMetadataV1Beta = 0; | 1050 core.int buildCounterOperationMetadataV1Beta = 0; |
1051 buildOperationMetadataV1Beta() { | 1051 buildOperationMetadataV1Beta() { |
1052 var o = new api.OperationMetadataV1Beta(); | 1052 var o = new api.OperationMetadataV1Beta(); |
1053 buildCounterOperationMetadataV1Beta++; | 1053 buildCounterOperationMetadataV1Beta++; |
1054 if (buildCounterOperationMetadataV1Beta < 3) { | 1054 if (buildCounterOperationMetadataV1Beta < 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 = buildUnnamed2980(); | 1061 o.warning = buildUnnamed2994(); |
1062 } | 1062 } |
1063 buildCounterOperationMetadataV1Beta--; | 1063 buildCounterOperationMetadataV1Beta--; |
1064 return o; | 1064 return o; |
1065 } | 1065 } |
1066 | 1066 |
1067 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { | 1067 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { |
1068 buildCounterOperationMetadataV1Beta++; | 1068 buildCounterOperationMetadataV1Beta++; |
1069 if (buildCounterOperationMetadataV1Beta < 3) { | 1069 if (buildCounterOperationMetadataV1Beta < 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 checkUnnamed2980(o.warning); | 1076 checkUnnamed2994(o.warning); |
1077 } | 1077 } |
1078 buildCounterOperationMetadataV1Beta--; | 1078 buildCounterOperationMetadataV1Beta--; |
1079 } | 1079 } |
1080 | 1080 |
1081 core.int buildCounterOperationMetadataV1Beta5 = 0; | 1081 core.int buildCounterOperationMetadataV1Beta5 = 0; |
1082 buildOperationMetadataV1Beta5() { | 1082 buildOperationMetadataV1Beta5() { |
1083 var o = new api.OperationMetadataV1Beta5(); | 1083 var o = new api.OperationMetadataV1Beta5(); |
1084 buildCounterOperationMetadataV1Beta5++; | 1084 buildCounterOperationMetadataV1Beta5++; |
1085 if (buildCounterOperationMetadataV1Beta5 < 3) { | 1085 if (buildCounterOperationMetadataV1Beta5 < 3) { |
1086 o.endTime = "foo"; | 1086 o.endTime = "foo"; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 | 1165 |
1166 checkRequestUtilization(api.RequestUtilization o) { | 1166 checkRequestUtilization(api.RequestUtilization o) { |
1167 buildCounterRequestUtilization++; | 1167 buildCounterRequestUtilization++; |
1168 if (buildCounterRequestUtilization < 3) { | 1168 if (buildCounterRequestUtilization < 3) { |
1169 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); | 1169 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); |
1170 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42)); | 1170 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42)); |
1171 } | 1171 } |
1172 buildCounterRequestUtilization--; | 1172 buildCounterRequestUtilization--; |
1173 } | 1173 } |
1174 | 1174 |
1175 buildUnnamed2981() { | 1175 buildUnnamed2995() { |
1176 var o = new core.List<api.Volume>(); | 1176 var o = new core.List<api.Volume>(); |
1177 o.add(buildVolume()); | 1177 o.add(buildVolume()); |
1178 o.add(buildVolume()); | 1178 o.add(buildVolume()); |
1179 return o; | 1179 return o; |
1180 } | 1180 } |
1181 | 1181 |
1182 checkUnnamed2981(core.List<api.Volume> o) { | 1182 checkUnnamed2995(core.List<api.Volume> o) { |
1183 unittest.expect(o, unittest.hasLength(2)); | 1183 unittest.expect(o, unittest.hasLength(2)); |
1184 checkVolume(o[0]); | 1184 checkVolume(o[0]); |
1185 checkVolume(o[1]); | 1185 checkVolume(o[1]); |
1186 } | 1186 } |
1187 | 1187 |
1188 core.int buildCounterResources = 0; | 1188 core.int buildCounterResources = 0; |
1189 buildResources() { | 1189 buildResources() { |
1190 var o = new api.Resources(); | 1190 var o = new api.Resources(); |
1191 buildCounterResources++; | 1191 buildCounterResources++; |
1192 if (buildCounterResources < 3) { | 1192 if (buildCounterResources < 3) { |
1193 o.cpu = 42.0; | 1193 o.cpu = 42.0; |
1194 o.diskGb = 42.0; | 1194 o.diskGb = 42.0; |
1195 o.memoryGb = 42.0; | 1195 o.memoryGb = 42.0; |
1196 o.volumes = buildUnnamed2981(); | 1196 o.volumes = buildUnnamed2995(); |
1197 } | 1197 } |
1198 buildCounterResources--; | 1198 buildCounterResources--; |
1199 return o; | 1199 return o; |
1200 } | 1200 } |
1201 | 1201 |
1202 checkResources(api.Resources o) { | 1202 checkResources(api.Resources o) { |
1203 buildCounterResources++; | 1203 buildCounterResources++; |
1204 if (buildCounterResources < 3) { | 1204 if (buildCounterResources < 3) { |
1205 unittest.expect(o.cpu, unittest.equals(42.0)); | 1205 unittest.expect(o.cpu, unittest.equals(42.0)); |
1206 unittest.expect(o.diskGb, unittest.equals(42.0)); | 1206 unittest.expect(o.diskGb, unittest.equals(42.0)); |
1207 unittest.expect(o.memoryGb, unittest.equals(42.0)); | 1207 unittest.expect(o.memoryGb, unittest.equals(42.0)); |
1208 checkUnnamed2981(o.volumes); | 1208 checkUnnamed2995(o.volumes); |
1209 } | 1209 } |
1210 buildCounterResources--; | 1210 buildCounterResources--; |
1211 } | 1211 } |
1212 | 1212 |
1213 core.int buildCounterScriptHandler = 0; | 1213 core.int buildCounterScriptHandler = 0; |
1214 buildScriptHandler() { | 1214 buildScriptHandler() { |
1215 var o = new api.ScriptHandler(); | 1215 var o = new api.ScriptHandler(); |
1216 buildCounterScriptHandler++; | 1216 buildCounterScriptHandler++; |
1217 if (buildCounterScriptHandler < 3) { | 1217 if (buildCounterScriptHandler < 3) { |
1218 o.scriptPath = "foo"; | 1218 o.scriptPath = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1245 checkService(api.Service o) { | 1245 checkService(api.Service o) { |
1246 buildCounterService++; | 1246 buildCounterService++; |
1247 if (buildCounterService < 3) { | 1247 if (buildCounterService < 3) { |
1248 unittest.expect(o.id, unittest.equals('foo')); | 1248 unittest.expect(o.id, unittest.equals('foo')); |
1249 unittest.expect(o.name, unittest.equals('foo')); | 1249 unittest.expect(o.name, unittest.equals('foo')); |
1250 checkTrafficSplit(o.split); | 1250 checkTrafficSplit(o.split); |
1251 } | 1251 } |
1252 buildCounterService--; | 1252 buildCounterService--; |
1253 } | 1253 } |
1254 | 1254 |
1255 buildUnnamed2982() { | 1255 buildUnnamed2996() { |
1256 var o = new core.Map<core.String, core.String>(); | 1256 var o = new core.Map<core.String, core.String>(); |
1257 o["x"] = "foo"; | 1257 o["x"] = "foo"; |
1258 o["y"] = "foo"; | 1258 o["y"] = "foo"; |
1259 return o; | 1259 return o; |
1260 } | 1260 } |
1261 | 1261 |
1262 checkUnnamed2982(core.Map<core.String, core.String> o) { | 1262 checkUnnamed2996(core.Map<core.String, core.String> o) { |
1263 unittest.expect(o, unittest.hasLength(2)); | 1263 unittest.expect(o, unittest.hasLength(2)); |
1264 unittest.expect(o["x"], unittest.equals('foo')); | 1264 unittest.expect(o["x"], unittest.equals('foo')); |
1265 unittest.expect(o["y"], unittest.equals('foo')); | 1265 unittest.expect(o["y"], unittest.equals('foo')); |
1266 } | 1266 } |
1267 | 1267 |
1268 core.int buildCounterStaticFilesHandler = 0; | 1268 core.int buildCounterStaticFilesHandler = 0; |
1269 buildStaticFilesHandler() { | 1269 buildStaticFilesHandler() { |
1270 var o = new api.StaticFilesHandler(); | 1270 var o = new api.StaticFilesHandler(); |
1271 buildCounterStaticFilesHandler++; | 1271 buildCounterStaticFilesHandler++; |
1272 if (buildCounterStaticFilesHandler < 3) { | 1272 if (buildCounterStaticFilesHandler < 3) { |
1273 o.applicationReadable = true; | 1273 o.applicationReadable = true; |
1274 o.expiration = "foo"; | 1274 o.expiration = "foo"; |
1275 o.httpHeaders = buildUnnamed2982(); | 1275 o.httpHeaders = buildUnnamed2996(); |
1276 o.mimeType = "foo"; | 1276 o.mimeType = "foo"; |
1277 o.path = "foo"; | 1277 o.path = "foo"; |
1278 o.requireMatchingFile = true; | 1278 o.requireMatchingFile = true; |
1279 o.uploadPathRegex = "foo"; | 1279 o.uploadPathRegex = "foo"; |
1280 } | 1280 } |
1281 buildCounterStaticFilesHandler--; | 1281 buildCounterStaticFilesHandler--; |
1282 return o; | 1282 return o; |
1283 } | 1283 } |
1284 | 1284 |
1285 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1285 checkStaticFilesHandler(api.StaticFilesHandler o) { |
1286 buildCounterStaticFilesHandler++; | 1286 buildCounterStaticFilesHandler++; |
1287 if (buildCounterStaticFilesHandler < 3) { | 1287 if (buildCounterStaticFilesHandler < 3) { |
1288 unittest.expect(o.applicationReadable, unittest.isTrue); | 1288 unittest.expect(o.applicationReadable, unittest.isTrue); |
1289 unittest.expect(o.expiration, unittest.equals('foo')); | 1289 unittest.expect(o.expiration, unittest.equals('foo')); |
1290 checkUnnamed2982(o.httpHeaders); | 1290 checkUnnamed2996(o.httpHeaders); |
1291 unittest.expect(o.mimeType, unittest.equals('foo')); | 1291 unittest.expect(o.mimeType, unittest.equals('foo')); |
1292 unittest.expect(o.path, unittest.equals('foo')); | 1292 unittest.expect(o.path, unittest.equals('foo')); |
1293 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1293 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1294 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1294 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
1295 } | 1295 } |
1296 buildCounterStaticFilesHandler--; | 1296 buildCounterStaticFilesHandler--; |
1297 } | 1297 } |
1298 | 1298 |
1299 buildUnnamed2983() { | 1299 buildUnnamed2997() { |
1300 var o = new core.Map<core.String, core.Object>(); | 1300 var o = new core.Map<core.String, core.Object>(); |
1301 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1301 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1302 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1302 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1303 return o; | 1303 return o; |
1304 } | 1304 } |
1305 | 1305 |
1306 checkUnnamed2983(core.Map<core.String, core.Object> o) { | 1306 checkUnnamed2997(core.Map<core.String, core.Object> o) { |
1307 unittest.expect(o, unittest.hasLength(2)); | 1307 unittest.expect(o, unittest.hasLength(2)); |
1308 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')); | 1308 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')); |
1309 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')); | 1309 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')); |
1310 } | 1310 } |
1311 | 1311 |
1312 buildUnnamed2984() { | 1312 buildUnnamed2998() { |
1313 var o = new core.List<core.Map<core.String, core.Object>>(); | 1313 var o = new core.List<core.Map<core.String, core.Object>>(); |
1314 o.add(buildUnnamed2983()); | 1314 o.add(buildUnnamed2997()); |
1315 o.add(buildUnnamed2983()); | 1315 o.add(buildUnnamed2997()); |
1316 return o; | 1316 return o; |
1317 } | 1317 } |
1318 | 1318 |
1319 checkUnnamed2984(core.List<core.Map<core.String, core.Object>> o) { | 1319 checkUnnamed2998(core.List<core.Map<core.String, core.Object>> o) { |
1320 unittest.expect(o, unittest.hasLength(2)); | 1320 unittest.expect(o, unittest.hasLength(2)); |
1321 checkUnnamed2983(o[0]); | 1321 checkUnnamed2997(o[0]); |
1322 checkUnnamed2983(o[1]); | 1322 checkUnnamed2997(o[1]); |
1323 } | 1323 } |
1324 | 1324 |
1325 core.int buildCounterStatus = 0; | 1325 core.int buildCounterStatus = 0; |
1326 buildStatus() { | 1326 buildStatus() { |
1327 var o = new api.Status(); | 1327 var o = new api.Status(); |
1328 buildCounterStatus++; | 1328 buildCounterStatus++; |
1329 if (buildCounterStatus < 3) { | 1329 if (buildCounterStatus < 3) { |
1330 o.code = 42; | 1330 o.code = 42; |
1331 o.details = buildUnnamed2984(); | 1331 o.details = buildUnnamed2998(); |
1332 o.message = "foo"; | 1332 o.message = "foo"; |
1333 } | 1333 } |
1334 buildCounterStatus--; | 1334 buildCounterStatus--; |
1335 return o; | 1335 return o; |
1336 } | 1336 } |
1337 | 1337 |
1338 checkStatus(api.Status o) { | 1338 checkStatus(api.Status o) { |
1339 buildCounterStatus++; | 1339 buildCounterStatus++; |
1340 if (buildCounterStatus < 3) { | 1340 if (buildCounterStatus < 3) { |
1341 unittest.expect(o.code, unittest.equals(42)); | 1341 unittest.expect(o.code, unittest.equals(42)); |
1342 checkUnnamed2984(o.details); | 1342 checkUnnamed2998(o.details); |
1343 unittest.expect(o.message, unittest.equals('foo')); | 1343 unittest.expect(o.message, unittest.equals('foo')); |
1344 } | 1344 } |
1345 buildCounterStatus--; | 1345 buildCounterStatus--; |
1346 } | 1346 } |
1347 | 1347 |
1348 buildUnnamed2985() { | 1348 buildUnnamed2999() { |
1349 var o = new core.Map<core.String, core.double>(); | 1349 var o = new core.Map<core.String, core.double>(); |
1350 o["x"] = 42.0; | 1350 o["x"] = 42.0; |
1351 o["y"] = 42.0; | 1351 o["y"] = 42.0; |
1352 return o; | 1352 return o; |
1353 } | 1353 } |
1354 | 1354 |
1355 checkUnnamed2985(core.Map<core.String, core.double> o) { | 1355 checkUnnamed2999(core.Map<core.String, core.double> o) { |
1356 unittest.expect(o, unittest.hasLength(2)); | 1356 unittest.expect(o, unittest.hasLength(2)); |
1357 unittest.expect(o["x"], unittest.equals(42.0)); | 1357 unittest.expect(o["x"], unittest.equals(42.0)); |
1358 unittest.expect(o["y"], unittest.equals(42.0)); | 1358 unittest.expect(o["y"], unittest.equals(42.0)); |
1359 } | 1359 } |
1360 | 1360 |
1361 core.int buildCounterTrafficSplit = 0; | 1361 core.int buildCounterTrafficSplit = 0; |
1362 buildTrafficSplit() { | 1362 buildTrafficSplit() { |
1363 var o = new api.TrafficSplit(); | 1363 var o = new api.TrafficSplit(); |
1364 buildCounterTrafficSplit++; | 1364 buildCounterTrafficSplit++; |
1365 if (buildCounterTrafficSplit < 3) { | 1365 if (buildCounterTrafficSplit < 3) { |
1366 o.allocations = buildUnnamed2985(); | 1366 o.allocations = buildUnnamed2999(); |
1367 o.shardBy = "foo"; | 1367 o.shardBy = "foo"; |
1368 } | 1368 } |
1369 buildCounterTrafficSplit--; | 1369 buildCounterTrafficSplit--; |
1370 return o; | 1370 return o; |
1371 } | 1371 } |
1372 | 1372 |
1373 checkTrafficSplit(api.TrafficSplit o) { | 1373 checkTrafficSplit(api.TrafficSplit o) { |
1374 buildCounterTrafficSplit++; | 1374 buildCounterTrafficSplit++; |
1375 if (buildCounterTrafficSplit < 3) { | 1375 if (buildCounterTrafficSplit < 3) { |
1376 checkUnnamed2985(o.allocations); | 1376 checkUnnamed2999(o.allocations); |
1377 unittest.expect(o.shardBy, unittest.equals('foo')); | 1377 unittest.expect(o.shardBy, unittest.equals('foo')); |
1378 } | 1378 } |
1379 buildCounterTrafficSplit--; | 1379 buildCounterTrafficSplit--; |
1380 } | 1380 } |
1381 | 1381 |
1382 core.int buildCounterUrlDispatchRule = 0; | 1382 core.int buildCounterUrlDispatchRule = 0; |
1383 buildUrlDispatchRule() { | 1383 buildUrlDispatchRule() { |
1384 var o = new api.UrlDispatchRule(); | 1384 var o = new api.UrlDispatchRule(); |
1385 buildCounterUrlDispatchRule++; | 1385 buildCounterUrlDispatchRule++; |
1386 if (buildCounterUrlDispatchRule < 3) { | 1386 if (buildCounterUrlDispatchRule < 3) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1428 unittest.expect(o.login, unittest.equals('foo')); | 1428 unittest.expect(o.login, unittest.equals('foo')); |
1429 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1429 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
1430 checkScriptHandler(o.script); | 1430 checkScriptHandler(o.script); |
1431 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1431 unittest.expect(o.securityLevel, unittest.equals('foo')); |
1432 checkStaticFilesHandler(o.staticFiles); | 1432 checkStaticFilesHandler(o.staticFiles); |
1433 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1433 unittest.expect(o.urlRegex, unittest.equals('foo')); |
1434 } | 1434 } |
1435 buildCounterUrlMap--; | 1435 buildCounterUrlMap--; |
1436 } | 1436 } |
1437 | 1437 |
1438 buildUnnamed2986() { | 1438 buildUnnamed3000() { |
1439 var o = new core.Map<core.String, core.String>(); | 1439 var o = new core.Map<core.String, core.String>(); |
1440 o["x"] = "foo"; | 1440 o["x"] = "foo"; |
1441 o["y"] = "foo"; | 1441 o["y"] = "foo"; |
1442 return o; | 1442 return o; |
1443 } | 1443 } |
1444 | 1444 |
1445 checkUnnamed2986(core.Map<core.String, core.String> o) { | 1445 checkUnnamed3000(core.Map<core.String, core.String> o) { |
1446 unittest.expect(o, unittest.hasLength(2)); | 1446 unittest.expect(o, unittest.hasLength(2)); |
1447 unittest.expect(o["x"], unittest.equals('foo')); | 1447 unittest.expect(o["x"], unittest.equals('foo')); |
1448 unittest.expect(o["y"], unittest.equals('foo')); | 1448 unittest.expect(o["y"], unittest.equals('foo')); |
1449 } | 1449 } |
1450 | 1450 |
1451 buildUnnamed2987() { | 1451 buildUnnamed3001() { |
1452 var o = new core.Map<core.String, core.String>(); | 1452 var o = new core.Map<core.String, core.String>(); |
1453 o["x"] = "foo"; | 1453 o["x"] = "foo"; |
1454 o["y"] = "foo"; | 1454 o["y"] = "foo"; |
1455 return o; | 1455 return o; |
1456 } | 1456 } |
1457 | 1457 |
1458 checkUnnamed2987(core.Map<core.String, core.String> o) { | 1458 checkUnnamed3001(core.Map<core.String, core.String> o) { |
1459 unittest.expect(o, unittest.hasLength(2)); | 1459 unittest.expect(o, unittest.hasLength(2)); |
1460 unittest.expect(o["x"], unittest.equals('foo')); | 1460 unittest.expect(o["x"], unittest.equals('foo')); |
1461 unittest.expect(o["y"], unittest.equals('foo')); | 1461 unittest.expect(o["y"], unittest.equals('foo')); |
1462 } | 1462 } |
1463 | 1463 |
1464 buildUnnamed2988() { | 1464 buildUnnamed3002() { |
1465 var o = new core.List<api.ErrorHandler>(); | 1465 var o = new core.List<api.ErrorHandler>(); |
1466 o.add(buildErrorHandler()); | 1466 o.add(buildErrorHandler()); |
1467 o.add(buildErrorHandler()); | 1467 o.add(buildErrorHandler()); |
1468 return o; | 1468 return o; |
1469 } | 1469 } |
1470 | 1470 |
1471 checkUnnamed2988(core.List<api.ErrorHandler> o) { | 1471 checkUnnamed3002(core.List<api.ErrorHandler> o) { |
1472 unittest.expect(o, unittest.hasLength(2)); | 1472 unittest.expect(o, unittest.hasLength(2)); |
1473 checkErrorHandler(o[0]); | 1473 checkErrorHandler(o[0]); |
1474 checkErrorHandler(o[1]); | 1474 checkErrorHandler(o[1]); |
1475 } | 1475 } |
1476 | 1476 |
1477 buildUnnamed2989() { | 1477 buildUnnamed3003() { |
1478 var o = new core.List<api.UrlMap>(); | 1478 var o = new core.List<api.UrlMap>(); |
1479 o.add(buildUrlMap()); | 1479 o.add(buildUrlMap()); |
1480 o.add(buildUrlMap()); | 1480 o.add(buildUrlMap()); |
1481 return o; | 1481 return o; |
1482 } | 1482 } |
1483 | 1483 |
1484 checkUnnamed2989(core.List<api.UrlMap> o) { | 1484 checkUnnamed3003(core.List<api.UrlMap> o) { |
1485 unittest.expect(o, unittest.hasLength(2)); | 1485 unittest.expect(o, unittest.hasLength(2)); |
1486 checkUrlMap(o[0]); | 1486 checkUrlMap(o[0]); |
1487 checkUrlMap(o[1]); | 1487 checkUrlMap(o[1]); |
1488 } | 1488 } |
1489 | 1489 |
1490 buildUnnamed2990() { | 1490 buildUnnamed3004() { |
1491 var o = new core.List<core.String>(); | 1491 var o = new core.List<core.String>(); |
1492 o.add("foo"); | 1492 o.add("foo"); |
1493 o.add("foo"); | 1493 o.add("foo"); |
1494 return o; | 1494 return o; |
1495 } | 1495 } |
1496 | 1496 |
1497 checkUnnamed2990(core.List<core.String> o) { | 1497 checkUnnamed3004(core.List<core.String> o) { |
1498 unittest.expect(o, unittest.hasLength(2)); | 1498 unittest.expect(o, unittest.hasLength(2)); |
1499 unittest.expect(o[0], unittest.equals('foo')); | 1499 unittest.expect(o[0], unittest.equals('foo')); |
1500 unittest.expect(o[1], unittest.equals('foo')); | 1500 unittest.expect(o[1], unittest.equals('foo')); |
1501 } | 1501 } |
1502 | 1502 |
1503 buildUnnamed2991() { | 1503 buildUnnamed3005() { |
1504 var o = new core.List<api.Library>(); | 1504 var o = new core.List<api.Library>(); |
1505 o.add(buildLibrary()); | 1505 o.add(buildLibrary()); |
1506 o.add(buildLibrary()); | 1506 o.add(buildLibrary()); |
1507 return o; | 1507 return o; |
1508 } | 1508 } |
1509 | 1509 |
1510 checkUnnamed2991(core.List<api.Library> o) { | 1510 checkUnnamed3005(core.List<api.Library> o) { |
1511 unittest.expect(o, unittest.hasLength(2)); | 1511 unittest.expect(o, unittest.hasLength(2)); |
1512 checkLibrary(o[0]); | 1512 checkLibrary(o[0]); |
1513 checkLibrary(o[1]); | 1513 checkLibrary(o[1]); |
1514 } | 1514 } |
1515 | 1515 |
1516 core.int buildCounterVersion = 0; | 1516 core.int buildCounterVersion = 0; |
1517 buildVersion() { | 1517 buildVersion() { |
1518 var o = new api.Version(); | 1518 var o = new api.Version(); |
1519 buildCounterVersion++; | 1519 buildCounterVersion++; |
1520 if (buildCounterVersion < 3) { | 1520 if (buildCounterVersion < 3) { |
1521 o.apiConfig = buildApiConfigHandler(); | 1521 o.apiConfig = buildApiConfigHandler(); |
1522 o.automaticScaling = buildAutomaticScaling(); | 1522 o.automaticScaling = buildAutomaticScaling(); |
1523 o.basicScaling = buildBasicScaling(); | 1523 o.basicScaling = buildBasicScaling(); |
1524 o.betaSettings = buildUnnamed2986(); | 1524 o.betaSettings = buildUnnamed3000(); |
1525 o.createTime = "foo"; | 1525 o.createTime = "foo"; |
1526 o.createdBy = "foo"; | 1526 o.createdBy = "foo"; |
1527 o.defaultExpiration = "foo"; | 1527 o.defaultExpiration = "foo"; |
1528 o.deployment = buildDeployment(); | 1528 o.deployment = buildDeployment(); |
1529 o.diskUsageBytes = "foo"; | 1529 o.diskUsageBytes = "foo"; |
1530 o.endpointsApiService = buildEndpointsApiService(); | 1530 o.endpointsApiService = buildEndpointsApiService(); |
1531 o.env = "foo"; | 1531 o.env = "foo"; |
1532 o.envVariables = buildUnnamed2987(); | 1532 o.envVariables = buildUnnamed3001(); |
1533 o.errorHandlers = buildUnnamed2988(); | 1533 o.errorHandlers = buildUnnamed3002(); |
1534 o.handlers = buildUnnamed2989(); | 1534 o.handlers = buildUnnamed3003(); |
1535 o.healthCheck = buildHealthCheck(); | 1535 o.healthCheck = buildHealthCheck(); |
1536 o.id = "foo"; | 1536 o.id = "foo"; |
1537 o.inboundServices = buildUnnamed2990(); | 1537 o.inboundServices = buildUnnamed3004(); |
1538 o.instanceClass = "foo"; | 1538 o.instanceClass = "foo"; |
1539 o.libraries = buildUnnamed2991(); | 1539 o.libraries = buildUnnamed3005(); |
1540 o.livenessCheck = buildLivenessCheck(); | 1540 o.livenessCheck = buildLivenessCheck(); |
1541 o.manualScaling = buildManualScaling(); | 1541 o.manualScaling = buildManualScaling(); |
1542 o.name = "foo"; | 1542 o.name = "foo"; |
1543 o.network = buildNetwork(); | 1543 o.network = buildNetwork(); |
1544 o.nobuildFilesRegex = "foo"; | 1544 o.nobuildFilesRegex = "foo"; |
1545 o.readinessCheck = buildReadinessCheck(); | 1545 o.readinessCheck = buildReadinessCheck(); |
1546 o.resources = buildResources(); | 1546 o.resources = buildResources(); |
1547 o.runtime = "foo"; | 1547 o.runtime = "foo"; |
1548 o.servingStatus = "foo"; | 1548 o.servingStatus = "foo"; |
1549 o.threadsafe = true; | 1549 o.threadsafe = true; |
1550 o.versionUrl = "foo"; | 1550 o.versionUrl = "foo"; |
1551 o.vm = true; | 1551 o.vm = true; |
1552 } | 1552 } |
1553 buildCounterVersion--; | 1553 buildCounterVersion--; |
1554 return o; | 1554 return o; |
1555 } | 1555 } |
1556 | 1556 |
1557 checkVersion(api.Version o) { | 1557 checkVersion(api.Version o) { |
1558 buildCounterVersion++; | 1558 buildCounterVersion++; |
1559 if (buildCounterVersion < 3) { | 1559 if (buildCounterVersion < 3) { |
1560 checkApiConfigHandler(o.apiConfig); | 1560 checkApiConfigHandler(o.apiConfig); |
1561 checkAutomaticScaling(o.automaticScaling); | 1561 checkAutomaticScaling(o.automaticScaling); |
1562 checkBasicScaling(o.basicScaling); | 1562 checkBasicScaling(o.basicScaling); |
1563 checkUnnamed2986(o.betaSettings); | 1563 checkUnnamed3000(o.betaSettings); |
1564 unittest.expect(o.createTime, unittest.equals('foo')); | 1564 unittest.expect(o.createTime, unittest.equals('foo')); |
1565 unittest.expect(o.createdBy, unittest.equals('foo')); | 1565 unittest.expect(o.createdBy, unittest.equals('foo')); |
1566 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1566 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
1567 checkDeployment(o.deployment); | 1567 checkDeployment(o.deployment); |
1568 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); | 1568 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); |
1569 checkEndpointsApiService(o.endpointsApiService); | 1569 checkEndpointsApiService(o.endpointsApiService); |
1570 unittest.expect(o.env, unittest.equals('foo')); | 1570 unittest.expect(o.env, unittest.equals('foo')); |
1571 checkUnnamed2987(o.envVariables); | 1571 checkUnnamed3001(o.envVariables); |
1572 checkUnnamed2988(o.errorHandlers); | 1572 checkUnnamed3002(o.errorHandlers); |
1573 checkUnnamed2989(o.handlers); | 1573 checkUnnamed3003(o.handlers); |
1574 checkHealthCheck(o.healthCheck); | 1574 checkHealthCheck(o.healthCheck); |
1575 unittest.expect(o.id, unittest.equals('foo')); | 1575 unittest.expect(o.id, unittest.equals('foo')); |
1576 checkUnnamed2990(o.inboundServices); | 1576 checkUnnamed3004(o.inboundServices); |
1577 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1577 unittest.expect(o.instanceClass, unittest.equals('foo')); |
1578 checkUnnamed2991(o.libraries); | 1578 checkUnnamed3005(o.libraries); |
1579 checkLivenessCheck(o.livenessCheck); | 1579 checkLivenessCheck(o.livenessCheck); |
1580 checkManualScaling(o.manualScaling); | 1580 checkManualScaling(o.manualScaling); |
1581 unittest.expect(o.name, unittest.equals('foo')); | 1581 unittest.expect(o.name, unittest.equals('foo')); |
1582 checkNetwork(o.network); | 1582 checkNetwork(o.network); |
1583 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1583 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
1584 checkReadinessCheck(o.readinessCheck); | 1584 checkReadinessCheck(o.readinessCheck); |
1585 checkResources(o.resources); | 1585 checkResources(o.resources); |
1586 unittest.expect(o.runtime, unittest.equals('foo')); | 1586 unittest.expect(o.runtime, unittest.equals('foo')); |
1587 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1587 unittest.expect(o.servingStatus, unittest.equals('foo')); |
1588 unittest.expect(o.threadsafe, unittest.isTrue); | 1588 unittest.expect(o.threadsafe, unittest.isTrue); |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2330 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Locat
ion response) { | 2330 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Locat
ion response) { |
2331 checkLocation(response); | 2331 checkLocation(response); |
2332 }))); | 2332 }))); |
2333 }); | 2333 }); |
2334 | 2334 |
2335 unittest.test("method--list", () { | 2335 unittest.test("method--list", () { |
2336 | 2336 |
2337 var mock = new HttpServerMock(); | 2337 var mock = new HttpServerMock(); |
2338 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; | 2338 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; |
2339 var arg_appsId = "foo"; | 2339 var arg_appsId = "foo"; |
| 2340 var arg_pageToken = "foo"; |
| 2341 var arg_pageSize = 42; |
2340 var arg_filter = "foo"; | 2342 var arg_filter = "foo"; |
2341 var arg_pageSize = 42; | |
2342 var arg_pageToken = "foo"; | |
2343 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2343 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2344 var path = (req.url).path; | 2344 var path = (req.url).path; |
2345 var pathOffset = 0; | 2345 var pathOffset = 0; |
2346 var index; | 2346 var index; |
2347 var subPart; | 2347 var subPart; |
2348 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2348 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2349 pathOffset += 1; | 2349 pathOffset += 1; |
2350 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1/apps/")); | 2350 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1/apps/")); |
2351 pathOffset += 8; | 2351 pathOffset += 8; |
2352 index = path.indexOf("/locations", pathOffset); | 2352 index = path.indexOf("/locations", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
2366 if (n == "false") return false; | 2366 if (n == "false") return false; |
2367 if (n == null) return null; | 2367 if (n == null) return null; |
2368 throw new core.ArgumentError("Invalid boolean: $n"); | 2368 throw new core.ArgumentError("Invalid boolean: $n"); |
2369 } | 2369 } |
2370 if (query.length > 0) { | 2370 if (query.length > 0) { |
2371 for (var part in query.split("&")) { | 2371 for (var part in query.split("&")) { |
2372 var keyvalue = part.split("="); | 2372 var keyvalue = part.split("="); |
2373 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2373 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2374 } | 2374 } |
2375 } | 2375 } |
| 2376 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2377 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2376 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2378 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2377 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2378 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2379 | 2379 |
2380 | 2380 |
2381 var h = { | 2381 var h = { |
2382 "content-type" : "application/json; charset=utf-8", | 2382 "content-type" : "application/json; charset=utf-8", |
2383 }; | 2383 }; |
2384 var resp = convert.JSON.encode(buildListLocationsResponse()); | 2384 var resp = convert.JSON.encode(buildListLocationsResponse()); |
2385 return new async.Future.value(stringResponse(200, h, resp)); | 2385 return new async.Future.value(stringResponse(200, h, resp)); |
2386 }), true); | 2386 }), true); |
2387 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListLocationsResponse response)
{ | 2387 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, fil
ter: arg_filter).then(unittest.expectAsync(((api.ListLocationsResponse response)
{ |
2388 checkListLocationsResponse(response); | 2388 checkListLocationsResponse(response); |
2389 }))); | 2389 }))); |
2390 }); | 2390 }); |
2391 | 2391 |
2392 }); | 2392 }); |
2393 | 2393 |
2394 | 2394 |
2395 unittest.group("resource-AppsOperationsResourceApi", () { | 2395 unittest.group("resource-AppsOperationsResourceApi", () { |
2396 unittest.test("method--get", () { | 2396 unittest.test("method--get", () { |
2397 | 2397 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2447 checkOperation(response); | 2447 checkOperation(response); |
2448 }))); | 2448 }))); |
2449 }); | 2449 }); |
2450 | 2450 |
2451 unittest.test("method--list", () { | 2451 unittest.test("method--list", () { |
2452 | 2452 |
2453 var mock = new HttpServerMock(); | 2453 var mock = new HttpServerMock(); |
2454 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat
ions; | 2454 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat
ions; |
2455 var arg_appsId = "foo"; | 2455 var arg_appsId = "foo"; |
2456 var arg_filter = "foo"; | 2456 var arg_filter = "foo"; |
| 2457 var arg_pageToken = "foo"; |
2457 var arg_pageSize = 42; | 2458 var arg_pageSize = 42; |
2458 var arg_pageToken = "foo"; | |
2459 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2459 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2460 var path = (req.url).path; | 2460 var path = (req.url).path; |
2461 var pathOffset = 0; | 2461 var pathOffset = 0; |
2462 var index; | 2462 var index; |
2463 var subPart; | 2463 var subPart; |
2464 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2464 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2465 pathOffset += 1; | 2465 pathOffset += 1; |
2466 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1/apps/")); | 2466 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1/apps/")); |
2467 pathOffset += 8; | 2467 pathOffset += 8; |
2468 index = path.indexOf("/operations", pathOffset); | 2468 index = path.indexOf("/operations", pathOffset); |
(...skipping 14 matching lines...) Expand all Loading... |
2483 if (n == null) return null; | 2483 if (n == null) return null; |
2484 throw new core.ArgumentError("Invalid boolean: $n"); | 2484 throw new core.ArgumentError("Invalid boolean: $n"); |
2485 } | 2485 } |
2486 if (query.length > 0) { | 2486 if (query.length > 0) { |
2487 for (var part in query.split("&")) { | 2487 for (var part in query.split("&")) { |
2488 var keyvalue = part.split("="); | 2488 var keyvalue = part.split("="); |
2489 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2489 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2490 } | 2490 } |
2491 } | 2491 } |
2492 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2492 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2493 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2493 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2494 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2494 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2495 | 2495 |
2496 | 2496 |
2497 var h = { | 2497 var h = { |
2498 "content-type" : "application/json; charset=utf-8", | 2498 "content-type" : "application/json; charset=utf-8", |
2499 }; | 2499 }; |
2500 var resp = convert.JSON.encode(buildListOperationsResponse()); | 2500 var resp = convert.JSON.encode(buildListOperationsResponse()); |
2501 return new async.Future.value(stringResponse(200, h, resp)); | 2501 return new async.Future.value(stringResponse(200, h, resp)); |
2502 }), true); | 2502 }), true); |
2503 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { | 2503 res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response
) { |
2504 checkListOperationsResponse(response); | 2504 checkListOperationsResponse(response); |
2505 }))); | 2505 }))); |
2506 }); | 2506 }); |
2507 | 2507 |
2508 }); | 2508 }); |
2509 | 2509 |
2510 | 2510 |
2511 unittest.group("resource-AppsServicesResourceApi", () { | 2511 unittest.group("resource-AppsServicesResourceApi", () { |
2512 unittest.test("method--delete", () { | 2512 unittest.test("method--delete", () { |
2513 | 2513 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2617 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Servic
e response) { | 2617 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Servic
e response) { |
2618 checkService(response); | 2618 checkService(response); |
2619 }))); | 2619 }))); |
2620 }); | 2620 }); |
2621 | 2621 |
2622 unittest.test("method--list", () { | 2622 unittest.test("method--list", () { |
2623 | 2623 |
2624 var mock = new HttpServerMock(); | 2624 var mock = new HttpServerMock(); |
2625 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; | 2625 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; |
2626 var arg_appsId = "foo"; | 2626 var arg_appsId = "foo"; |
| 2627 var arg_pageToken = "foo"; |
2627 var arg_pageSize = 42; | 2628 var arg_pageSize = 42; |
2628 var arg_pageToken = "foo"; | |
2629 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2629 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2630 var path = (req.url).path; | 2630 var path = (req.url).path; |
2631 var pathOffset = 0; | 2631 var pathOffset = 0; |
2632 var index; | 2632 var index; |
2633 var subPart; | 2633 var subPart; |
2634 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2634 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2635 pathOffset += 1; | 2635 pathOffset += 1; |
2636 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1/apps/")); | 2636 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1/apps/")); |
2637 pathOffset += 8; | 2637 pathOffset += 8; |
2638 index = path.indexOf("/services", pathOffset); | 2638 index = path.indexOf("/services", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
2652 if (n == "false") return false; | 2652 if (n == "false") return false; |
2653 if (n == null) return null; | 2653 if (n == null) return null; |
2654 throw new core.ArgumentError("Invalid boolean: $n"); | 2654 throw new core.ArgumentError("Invalid boolean: $n"); |
2655 } | 2655 } |
2656 if (query.length > 0) { | 2656 if (query.length > 0) { |
2657 for (var part in query.split("&")) { | 2657 for (var part in query.split("&")) { |
2658 var keyvalue = part.split("="); | 2658 var keyvalue = part.split("="); |
2659 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2659 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2660 } | 2660 } |
2661 } | 2661 } |
| 2662 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2662 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2663 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2663 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2664 | 2664 |
2665 | 2665 |
2666 var h = { | 2666 var h = { |
2667 "content-type" : "application/json; charset=utf-8", | 2667 "content-type" : "application/json; charset=utf-8", |
2668 }; | 2668 }; |
2669 var resp = convert.JSON.encode(buildListServicesResponse()); | 2669 var resp = convert.JSON.encode(buildListServicesResponse()); |
2670 return new async.Future.value(stringResponse(200, h, resp)); | 2670 return new async.Future.value(stringResponse(200, h, resp)); |
2671 }), true); | 2671 }), true); |
2672 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ListServicesResponse response) { | 2672 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the
n(unittest.expectAsync(((api.ListServicesResponse response) { |
2673 checkListServicesResponse(response); | 2673 checkListServicesResponse(response); |
2674 }))); | 2674 }))); |
2675 }); | 2675 }); |
2676 | 2676 |
2677 unittest.test("method--patch", () { | 2677 unittest.test("method--patch", () { |
2678 | 2678 |
2679 var mock = new HttpServerMock(); | 2679 var mock = new HttpServerMock(); |
2680 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; | 2680 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; |
2681 var arg_request = buildService(); | 2681 var arg_request = buildService(); |
2682 var arg_appsId = "foo"; | 2682 var arg_appsId = "foo"; |
2683 var arg_servicesId = "foo"; | 2683 var arg_servicesId = "foo"; |
| 2684 var arg_migrateTraffic = true; |
2684 var arg_updateMask = "foo"; | 2685 var arg_updateMask = "foo"; |
2685 var arg_migrateTraffic = true; | |
2686 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2686 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2687 var obj = new api.Service.fromJson(json); | 2687 var obj = new api.Service.fromJson(json); |
2688 checkService(obj); | 2688 checkService(obj); |
2689 | 2689 |
2690 var path = (req.url).path; | 2690 var path = (req.url).path; |
2691 var pathOffset = 0; | 2691 var pathOffset = 0; |
2692 var index; | 2692 var index; |
2693 var subPart; | 2693 var subPart; |
2694 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2694 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2695 pathOffset += 1; | 2695 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
2715 if (n == "false") return false; | 2715 if (n == "false") return false; |
2716 if (n == null) return null; | 2716 if (n == null) return null; |
2717 throw new core.ArgumentError("Invalid boolean: $n"); | 2717 throw new core.ArgumentError("Invalid boolean: $n"); |
2718 } | 2718 } |
2719 if (query.length > 0) { | 2719 if (query.length > 0) { |
2720 for (var part in query.split("&")) { | 2720 for (var part in query.split("&")) { |
2721 var keyvalue = part.split("="); | 2721 var keyvalue = part.split("="); |
2722 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2722 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2723 } | 2723 } |
2724 } | 2724 } |
| 2725 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_
migrateTraffic")); |
2725 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 2726 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
2726 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_
migrateTraffic")); | |
2727 | 2727 |
2728 | 2728 |
2729 var h = { | 2729 var h = { |
2730 "content-type" : "application/json; charset=utf-8", | 2730 "content-type" : "application/json; charset=utf-8", |
2731 }; | 2731 }; |
2732 var resp = convert.JSON.encode(buildOperation()); | 2732 var resp = convert.JSON.encode(buildOperation()); |
2733 return new async.Future.value(stringResponse(200, h, resp)); | 2733 return new async.Future.value(stringResponse(200, h, resp)); |
2734 }), true); | 2734 }), true); |
2735 res.patch(arg_request, arg_appsId, arg_servicesId, updateMask: arg_updateM
ask, migrateTraffic: arg_migrateTraffic).then(unittest.expectAsync(((api.Operati
on response) { | 2735 res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_mig
rateTraffic, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operati
on response) { |
2736 checkOperation(response); | 2736 checkOperation(response); |
2737 }))); | 2737 }))); |
2738 }); | 2738 }); |
2739 | 2739 |
2740 }); | 2740 }); |
2741 | 2741 |
2742 | 2742 |
2743 unittest.group("resource-AppsServicesVersionsResourceApi", () { | 2743 unittest.group("resource-AppsServicesVersionsResourceApi", () { |
2744 unittest.test("method--create", () { | 2744 unittest.test("method--create", () { |
2745 | 2745 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2931 checkVersion(response); | 2931 checkVersion(response); |
2932 }))); | 2932 }))); |
2933 }); | 2933 }); |
2934 | 2934 |
2935 unittest.test("method--list", () { | 2935 unittest.test("method--list", () { |
2936 | 2936 |
2937 var mock = new HttpServerMock(); | 2937 var mock = new HttpServerMock(); |
2938 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.
services.versions; | 2938 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.
services.versions; |
2939 var arg_appsId = "foo"; | 2939 var arg_appsId = "foo"; |
2940 var arg_servicesId = "foo"; | 2940 var arg_servicesId = "foo"; |
| 2941 var arg_pageToken = "foo"; |
| 2942 var arg_pageSize = 42; |
2941 var arg_view = "foo"; | 2943 var arg_view = "foo"; |
2942 var arg_pageSize = 42; | |
2943 var arg_pageToken = "foo"; | |
2944 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2944 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2945 var path = (req.url).path; | 2945 var path = (req.url).path; |
2946 var pathOffset = 0; | 2946 var pathOffset = 0; |
2947 var index; | 2947 var index; |
2948 var subPart; | 2948 var subPart; |
2949 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2949 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2950 pathOffset += 1; | 2950 pathOffset += 1; |
2951 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1/apps/")); | 2951 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1/apps/")); |
2952 pathOffset += 8; | 2952 pathOffset += 8; |
2953 index = path.indexOf("/services/", pathOffset); | 2953 index = path.indexOf("/services/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
2974 if (n == "false") return false; | 2974 if (n == "false") return false; |
2975 if (n == null) return null; | 2975 if (n == null) return null; |
2976 throw new core.ArgumentError("Invalid boolean: $n"); | 2976 throw new core.ArgumentError("Invalid boolean: $n"); |
2977 } | 2977 } |
2978 if (query.length > 0) { | 2978 if (query.length > 0) { |
2979 for (var part in query.split("&")) { | 2979 for (var part in query.split("&")) { |
2980 var keyvalue = part.split("="); | 2980 var keyvalue = part.split("="); |
2981 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2981 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2982 } | 2982 } |
2983 } | 2983 } |
| 2984 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2985 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2984 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 2986 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
2985 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2986 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2987 | 2987 |
2988 | 2988 |
2989 var h = { | 2989 var h = { |
2990 "content-type" : "application/json; charset=utf-8", | 2990 "content-type" : "application/json; charset=utf-8", |
2991 }; | 2991 }; |
2992 var resp = convert.JSON.encode(buildListVersionsResponse()); | 2992 var resp = convert.JSON.encode(buildListVersionsResponse()); |
2993 return new async.Future.value(stringResponse(200, h, resp)); | 2993 return new async.Future.value(stringResponse(200, h, resp)); |
2994 }), true); | 2994 }), true); |
2995 res.list(arg_appsId, arg_servicesId, view: arg_view, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListVersionsRespons
e response) { | 2995 res.list(arg_appsId, arg_servicesId, pageToken: arg_pageToken, pageSize: a
rg_pageSize, view: arg_view).then(unittest.expectAsync(((api.ListVersionsRespons
e response) { |
2996 checkListVersionsResponse(response); | 2996 checkListVersionsResponse(response); |
2997 }))); | 2997 }))); |
2998 }); | 2998 }); |
2999 | 2999 |
3000 unittest.test("method--patch", () { | 3000 unittest.test("method--patch", () { |
3001 | 3001 |
3002 var mock = new HttpServerMock(); | 3002 var mock = new HttpServerMock(); |
3003 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.
services.versions; | 3003 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.
services.versions; |
3004 var arg_request = buildVersion(); | 3004 var arg_request = buildVersion(); |
3005 var arg_appsId = "foo"; | 3005 var arg_appsId = "foo"; |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3291 }))); | 3291 }))); |
3292 }); | 3292 }); |
3293 | 3293 |
3294 unittest.test("method--list", () { | 3294 unittest.test("method--list", () { |
3295 | 3295 |
3296 var mock = new HttpServerMock(); | 3296 var mock = new HttpServerMock(); |
3297 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo
ck).apps.services.versions.instances; | 3297 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo
ck).apps.services.versions.instances; |
3298 var arg_appsId = "foo"; | 3298 var arg_appsId = "foo"; |
3299 var arg_servicesId = "foo"; | 3299 var arg_servicesId = "foo"; |
3300 var arg_versionsId = "foo"; | 3300 var arg_versionsId = "foo"; |
| 3301 var arg_pageToken = "foo"; |
3301 var arg_pageSize = 42; | 3302 var arg_pageSize = 42; |
3302 var arg_pageToken = "foo"; | |
3303 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3303 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3304 var path = (req.url).path; | 3304 var path = (req.url).path; |
3305 var pathOffset = 0; | 3305 var pathOffset = 0; |
3306 var index; | 3306 var index; |
3307 var subPart; | 3307 var subPart; |
3308 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3308 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3309 pathOffset += 1; | 3309 pathOffset += 1; |
3310 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1/apps/")); | 3310 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v1/apps/")); |
3311 pathOffset += 8; | 3311 pathOffset += 8; |
3312 index = path.indexOf("/services/", pathOffset); | 3312 index = path.indexOf("/services/", pathOffset); |
(...skipping 27 matching lines...) Expand all Loading... |
3340 if (n == "false") return false; | 3340 if (n == "false") return false; |
3341 if (n == null) return null; | 3341 if (n == null) return null; |
3342 throw new core.ArgumentError("Invalid boolean: $n"); | 3342 throw new core.ArgumentError("Invalid boolean: $n"); |
3343 } | 3343 } |
3344 if (query.length > 0) { | 3344 if (query.length > 0) { |
3345 for (var part in query.split("&")) { | 3345 for (var part in query.split("&")) { |
3346 var keyvalue = part.split("="); | 3346 var keyvalue = part.split("="); |
3347 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3347 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3348 } | 3348 } |
3349 } | 3349 } |
| 3350 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3350 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 3351 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3351 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
3352 | 3352 |
3353 | 3353 |
3354 var h = { | 3354 var h = { |
3355 "content-type" : "application/json; charset=utf-8", | 3355 "content-type" : "application/json; charset=utf-8", |
3356 }; | 3356 }; |
3357 var resp = convert.JSON.encode(buildListInstancesResponse()); | 3357 var resp = convert.JSON.encode(buildListInstancesResponse()); |
3358 return new async.Future.value(stringResponse(200, h, resp)); | 3358 return new async.Future.value(stringResponse(200, h, resp)); |
3359 }), true); | 3359 }), true); |
3360 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { | 3360 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageTo
ken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { |
3361 checkListInstancesResponse(response); | 3361 checkListInstancesResponse(response); |
3362 }))); | 3362 }))); |
3363 }); | 3363 }); |
3364 | 3364 |
3365 }); | 3365 }); |
3366 | 3366 |
3367 | 3367 |
3368 } | 3368 } |
3369 | 3369 |
OLD | NEW |