OLD | NEW |
1 library googleapis_beta.appengine.v1beta5.test; | 1 library googleapis_beta.appengine.v1beta5.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package: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 buildUnnamed3498() { | 100 buildUnnamed3481() { |
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 checkUnnamed3498(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed3481(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 = buildUnnamed3498(); | 123 o.dispatchRules = buildUnnamed3481(); |
124 o.iap = buildIdentityAwareProxy(); | 124 o.iap = buildIdentityAwareProxy(); |
125 o.id = "foo"; | 125 o.id = "foo"; |
126 o.location = "foo"; | 126 o.location = "foo"; |
127 o.name = "foo"; | 127 o.name = "foo"; |
128 } | 128 } |
129 buildCounterApplication--; | 129 buildCounterApplication--; |
130 return o; | 130 return o; |
131 } | 131 } |
132 | 132 |
133 checkApplication(api.Application o) { | 133 checkApplication(api.Application o) { |
134 buildCounterApplication++; | 134 buildCounterApplication++; |
135 if (buildCounterApplication < 3) { | 135 if (buildCounterApplication < 3) { |
136 unittest.expect(o.authDomain, unittest.equals('foo')); | 136 unittest.expect(o.authDomain, unittest.equals('foo')); |
137 unittest.expect(o.codeBucket, unittest.equals('foo')); | 137 unittest.expect(o.codeBucket, unittest.equals('foo')); |
138 unittest.expect(o.defaultBucket, unittest.equals('foo')); | 138 unittest.expect(o.defaultBucket, unittest.equals('foo')); |
139 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); | 139 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); |
140 unittest.expect(o.defaultHostname, unittest.equals('foo')); | 140 unittest.expect(o.defaultHostname, unittest.equals('foo')); |
141 checkUnnamed3498(o.dispatchRules); | 141 checkUnnamed3481(o.dispatchRules); |
142 checkIdentityAwareProxy(o.iap); | 142 checkIdentityAwareProxy(o.iap); |
143 unittest.expect(o.id, unittest.equals('foo')); | 143 unittest.expect(o.id, unittest.equals('foo')); |
144 unittest.expect(o.location, unittest.equals('foo')); | 144 unittest.expect(o.location, unittest.equals('foo')); |
145 unittest.expect(o.name, unittest.equals('foo')); | 145 unittest.expect(o.name, unittest.equals('foo')); |
146 } | 146 } |
147 buildCounterApplication--; | 147 buildCounterApplication--; |
148 } | 148 } |
149 | 149 |
150 core.int buildCounterAutomaticScaling = 0; | 150 core.int buildCounterAutomaticScaling = 0; |
151 buildAutomaticScaling() { | 151 buildAutomaticScaling() { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 261 } |
262 | 262 |
263 checkDebugInstanceRequest(api.DebugInstanceRequest o) { | 263 checkDebugInstanceRequest(api.DebugInstanceRequest o) { |
264 buildCounterDebugInstanceRequest++; | 264 buildCounterDebugInstanceRequest++; |
265 if (buildCounterDebugInstanceRequest < 3) { | 265 if (buildCounterDebugInstanceRequest < 3) { |
266 unittest.expect(o.sshKey, unittest.equals('foo')); | 266 unittest.expect(o.sshKey, unittest.equals('foo')); |
267 } | 267 } |
268 buildCounterDebugInstanceRequest--; | 268 buildCounterDebugInstanceRequest--; |
269 } | 269 } |
270 | 270 |
271 buildUnnamed3499() { | 271 buildUnnamed3482() { |
272 var o = new core.Map<core.String, api.FileInfo>(); | 272 var o = new core.Map<core.String, api.FileInfo>(); |
273 o["x"] = buildFileInfo(); | 273 o["x"] = buildFileInfo(); |
274 o["y"] = buildFileInfo(); | 274 o["y"] = buildFileInfo(); |
275 return o; | 275 return o; |
276 } | 276 } |
277 | 277 |
278 checkUnnamed3499(core.Map<core.String, api.FileInfo> o) { | 278 checkUnnamed3482(core.Map<core.String, api.FileInfo> o) { |
279 unittest.expect(o, unittest.hasLength(2)); | 279 unittest.expect(o, unittest.hasLength(2)); |
280 checkFileInfo(o["x"]); | 280 checkFileInfo(o["x"]); |
281 checkFileInfo(o["y"]); | 281 checkFileInfo(o["y"]); |
282 } | 282 } |
283 | 283 |
284 buildUnnamed3500() { | 284 buildUnnamed3483() { |
285 var o = new core.List<api.SourceReference>(); | 285 var o = new core.List<api.SourceReference>(); |
286 o.add(buildSourceReference()); | 286 o.add(buildSourceReference()); |
287 o.add(buildSourceReference()); | 287 o.add(buildSourceReference()); |
288 return o; | 288 return o; |
289 } | 289 } |
290 | 290 |
291 checkUnnamed3500(core.List<api.SourceReference> o) { | 291 checkUnnamed3483(core.List<api.SourceReference> o) { |
292 unittest.expect(o, unittest.hasLength(2)); | 292 unittest.expect(o, unittest.hasLength(2)); |
293 checkSourceReference(o[0]); | 293 checkSourceReference(o[0]); |
294 checkSourceReference(o[1]); | 294 checkSourceReference(o[1]); |
295 } | 295 } |
296 | 296 |
297 core.int buildCounterDeployment = 0; | 297 core.int buildCounterDeployment = 0; |
298 buildDeployment() { | 298 buildDeployment() { |
299 var o = new api.Deployment(); | 299 var o = new api.Deployment(); |
300 buildCounterDeployment++; | 300 buildCounterDeployment++; |
301 if (buildCounterDeployment < 3) { | 301 if (buildCounterDeployment < 3) { |
302 o.container = buildContainerInfo(); | 302 o.container = buildContainerInfo(); |
303 o.files = buildUnnamed3499(); | 303 o.files = buildUnnamed3482(); |
304 o.sourceReferences = buildUnnamed3500(); | 304 o.sourceReferences = buildUnnamed3483(); |
305 } | 305 } |
306 buildCounterDeployment--; | 306 buildCounterDeployment--; |
307 return o; | 307 return o; |
308 } | 308 } |
309 | 309 |
310 checkDeployment(api.Deployment o) { | 310 checkDeployment(api.Deployment o) { |
311 buildCounterDeployment++; | 311 buildCounterDeployment++; |
312 if (buildCounterDeployment < 3) { | 312 if (buildCounterDeployment < 3) { |
313 checkContainerInfo(o.container); | 313 checkContainerInfo(o.container); |
314 checkUnnamed3499(o.files); | 314 checkUnnamed3482(o.files); |
315 checkUnnamed3500(o.sourceReferences); | 315 checkUnnamed3483(o.sourceReferences); |
316 } | 316 } |
317 buildCounterDeployment--; | 317 buildCounterDeployment--; |
318 } | 318 } |
319 | 319 |
320 core.int buildCounterDiskUtilization = 0; | 320 core.int buildCounterDiskUtilization = 0; |
321 buildDiskUtilization() { | 321 buildDiskUtilization() { |
322 var o = new api.DiskUtilization(); | 322 var o = new api.DiskUtilization(); |
323 buildCounterDiskUtilization++; | 323 buildCounterDiskUtilization++; |
324 if (buildCounterDiskUtilization < 3) { | 324 if (buildCounterDiskUtilization < 3) { |
325 o.targetReadBytesPerSec = 42; | 325 o.targetReadBytesPerSec = 42; |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 | 528 |
529 checkLibrary(api.Library o) { | 529 checkLibrary(api.Library o) { |
530 buildCounterLibrary++; | 530 buildCounterLibrary++; |
531 if (buildCounterLibrary < 3) { | 531 if (buildCounterLibrary < 3) { |
532 unittest.expect(o.name, unittest.equals('foo')); | 532 unittest.expect(o.name, unittest.equals('foo')); |
533 unittest.expect(o.version, unittest.equals('foo')); | 533 unittest.expect(o.version, unittest.equals('foo')); |
534 } | 534 } |
535 buildCounterLibrary--; | 535 buildCounterLibrary--; |
536 } | 536 } |
537 | 537 |
538 buildUnnamed3501() { | 538 buildUnnamed3484() { |
539 var o = new core.List<api.Instance>(); | 539 var o = new core.List<api.Instance>(); |
540 o.add(buildInstance()); | 540 o.add(buildInstance()); |
541 o.add(buildInstance()); | 541 o.add(buildInstance()); |
542 return o; | 542 return o; |
543 } | 543 } |
544 | 544 |
545 checkUnnamed3501(core.List<api.Instance> o) { | 545 checkUnnamed3484(core.List<api.Instance> o) { |
546 unittest.expect(o, unittest.hasLength(2)); | 546 unittest.expect(o, unittest.hasLength(2)); |
547 checkInstance(o[0]); | 547 checkInstance(o[0]); |
548 checkInstance(o[1]); | 548 checkInstance(o[1]); |
549 } | 549 } |
550 | 550 |
551 core.int buildCounterListInstancesResponse = 0; | 551 core.int buildCounterListInstancesResponse = 0; |
552 buildListInstancesResponse() { | 552 buildListInstancesResponse() { |
553 var o = new api.ListInstancesResponse(); | 553 var o = new api.ListInstancesResponse(); |
554 buildCounterListInstancesResponse++; | 554 buildCounterListInstancesResponse++; |
555 if (buildCounterListInstancesResponse < 3) { | 555 if (buildCounterListInstancesResponse < 3) { |
556 o.instances = buildUnnamed3501(); | 556 o.instances = buildUnnamed3484(); |
557 o.nextPageToken = "foo"; | 557 o.nextPageToken = "foo"; |
558 } | 558 } |
559 buildCounterListInstancesResponse--; | 559 buildCounterListInstancesResponse--; |
560 return o; | 560 return o; |
561 } | 561 } |
562 | 562 |
563 checkListInstancesResponse(api.ListInstancesResponse o) { | 563 checkListInstancesResponse(api.ListInstancesResponse o) { |
564 buildCounterListInstancesResponse++; | 564 buildCounterListInstancesResponse++; |
565 if (buildCounterListInstancesResponse < 3) { | 565 if (buildCounterListInstancesResponse < 3) { |
566 checkUnnamed3501(o.instances); | 566 checkUnnamed3484(o.instances); |
567 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 567 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
568 } | 568 } |
569 buildCounterListInstancesResponse--; | 569 buildCounterListInstancesResponse--; |
570 } | 570 } |
571 | 571 |
572 buildUnnamed3502() { | 572 buildUnnamed3485() { |
573 var o = new core.List<api.Location>(); | 573 var o = new core.List<api.Location>(); |
574 o.add(buildLocation()); | 574 o.add(buildLocation()); |
575 o.add(buildLocation()); | 575 o.add(buildLocation()); |
576 return o; | 576 return o; |
577 } | 577 } |
578 | 578 |
579 checkUnnamed3502(core.List<api.Location> o) { | 579 checkUnnamed3485(core.List<api.Location> o) { |
580 unittest.expect(o, unittest.hasLength(2)); | 580 unittest.expect(o, unittest.hasLength(2)); |
581 checkLocation(o[0]); | 581 checkLocation(o[0]); |
582 checkLocation(o[1]); | 582 checkLocation(o[1]); |
583 } | 583 } |
584 | 584 |
585 core.int buildCounterListLocationsResponse = 0; | 585 core.int buildCounterListLocationsResponse = 0; |
586 buildListLocationsResponse() { | 586 buildListLocationsResponse() { |
587 var o = new api.ListLocationsResponse(); | 587 var o = new api.ListLocationsResponse(); |
588 buildCounterListLocationsResponse++; | 588 buildCounterListLocationsResponse++; |
589 if (buildCounterListLocationsResponse < 3) { | 589 if (buildCounterListLocationsResponse < 3) { |
590 o.locations = buildUnnamed3502(); | 590 o.locations = buildUnnamed3485(); |
591 o.nextPageToken = "foo"; | 591 o.nextPageToken = "foo"; |
592 } | 592 } |
593 buildCounterListLocationsResponse--; | 593 buildCounterListLocationsResponse--; |
594 return o; | 594 return o; |
595 } | 595 } |
596 | 596 |
597 checkListLocationsResponse(api.ListLocationsResponse o) { | 597 checkListLocationsResponse(api.ListLocationsResponse o) { |
598 buildCounterListLocationsResponse++; | 598 buildCounterListLocationsResponse++; |
599 if (buildCounterListLocationsResponse < 3) { | 599 if (buildCounterListLocationsResponse < 3) { |
600 checkUnnamed3502(o.locations); | 600 checkUnnamed3485(o.locations); |
601 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 601 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
602 } | 602 } |
603 buildCounterListLocationsResponse--; | 603 buildCounterListLocationsResponse--; |
604 } | 604 } |
605 | 605 |
606 buildUnnamed3503() { | 606 buildUnnamed3486() { |
607 var o = new core.List<api.Operation>(); | 607 var o = new core.List<api.Operation>(); |
608 o.add(buildOperation()); | 608 o.add(buildOperation()); |
609 o.add(buildOperation()); | 609 o.add(buildOperation()); |
610 return o; | 610 return o; |
611 } | 611 } |
612 | 612 |
613 checkUnnamed3503(core.List<api.Operation> o) { | 613 checkUnnamed3486(core.List<api.Operation> o) { |
614 unittest.expect(o, unittest.hasLength(2)); | 614 unittest.expect(o, unittest.hasLength(2)); |
615 checkOperation(o[0]); | 615 checkOperation(o[0]); |
616 checkOperation(o[1]); | 616 checkOperation(o[1]); |
617 } | 617 } |
618 | 618 |
619 core.int buildCounterListOperationsResponse = 0; | 619 core.int buildCounterListOperationsResponse = 0; |
620 buildListOperationsResponse() { | 620 buildListOperationsResponse() { |
621 var o = new api.ListOperationsResponse(); | 621 var o = new api.ListOperationsResponse(); |
622 buildCounterListOperationsResponse++; | 622 buildCounterListOperationsResponse++; |
623 if (buildCounterListOperationsResponse < 3) { | 623 if (buildCounterListOperationsResponse < 3) { |
624 o.nextPageToken = "foo"; | 624 o.nextPageToken = "foo"; |
625 o.operations = buildUnnamed3503(); | 625 o.operations = buildUnnamed3486(); |
626 } | 626 } |
627 buildCounterListOperationsResponse--; | 627 buildCounterListOperationsResponse--; |
628 return o; | 628 return o; |
629 } | 629 } |
630 | 630 |
631 checkListOperationsResponse(api.ListOperationsResponse o) { | 631 checkListOperationsResponse(api.ListOperationsResponse o) { |
632 buildCounterListOperationsResponse++; | 632 buildCounterListOperationsResponse++; |
633 if (buildCounterListOperationsResponse < 3) { | 633 if (buildCounterListOperationsResponse < 3) { |
634 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 634 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
635 checkUnnamed3503(o.operations); | 635 checkUnnamed3486(o.operations); |
636 } | 636 } |
637 buildCounterListOperationsResponse--; | 637 buildCounterListOperationsResponse--; |
638 } | 638 } |
639 | 639 |
640 buildUnnamed3504() { | 640 buildUnnamed3487() { |
641 var o = new core.List<api.Service>(); | 641 var o = new core.List<api.Service>(); |
642 o.add(buildService()); | 642 o.add(buildService()); |
643 o.add(buildService()); | 643 o.add(buildService()); |
644 return o; | 644 return o; |
645 } | 645 } |
646 | 646 |
647 checkUnnamed3504(core.List<api.Service> o) { | 647 checkUnnamed3487(core.List<api.Service> o) { |
648 unittest.expect(o, unittest.hasLength(2)); | 648 unittest.expect(o, unittest.hasLength(2)); |
649 checkService(o[0]); | 649 checkService(o[0]); |
650 checkService(o[1]); | 650 checkService(o[1]); |
651 } | 651 } |
652 | 652 |
653 core.int buildCounterListServicesResponse = 0; | 653 core.int buildCounterListServicesResponse = 0; |
654 buildListServicesResponse() { | 654 buildListServicesResponse() { |
655 var o = new api.ListServicesResponse(); | 655 var o = new api.ListServicesResponse(); |
656 buildCounterListServicesResponse++; | 656 buildCounterListServicesResponse++; |
657 if (buildCounterListServicesResponse < 3) { | 657 if (buildCounterListServicesResponse < 3) { |
658 o.nextPageToken = "foo"; | 658 o.nextPageToken = "foo"; |
659 o.services = buildUnnamed3504(); | 659 o.services = buildUnnamed3487(); |
660 } | 660 } |
661 buildCounterListServicesResponse--; | 661 buildCounterListServicesResponse--; |
662 return o; | 662 return o; |
663 } | 663 } |
664 | 664 |
665 checkListServicesResponse(api.ListServicesResponse o) { | 665 checkListServicesResponse(api.ListServicesResponse o) { |
666 buildCounterListServicesResponse++; | 666 buildCounterListServicesResponse++; |
667 if (buildCounterListServicesResponse < 3) { | 667 if (buildCounterListServicesResponse < 3) { |
668 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 668 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
669 checkUnnamed3504(o.services); | 669 checkUnnamed3487(o.services); |
670 } | 670 } |
671 buildCounterListServicesResponse--; | 671 buildCounterListServicesResponse--; |
672 } | 672 } |
673 | 673 |
674 buildUnnamed3505() { | 674 buildUnnamed3488() { |
675 var o = new core.List<api.Version>(); | 675 var o = new core.List<api.Version>(); |
676 o.add(buildVersion()); | 676 o.add(buildVersion()); |
677 o.add(buildVersion()); | 677 o.add(buildVersion()); |
678 return o; | 678 return o; |
679 } | 679 } |
680 | 680 |
681 checkUnnamed3505(core.List<api.Version> o) { | 681 checkUnnamed3488(core.List<api.Version> o) { |
682 unittest.expect(o, unittest.hasLength(2)); | 682 unittest.expect(o, unittest.hasLength(2)); |
683 checkVersion(o[0]); | 683 checkVersion(o[0]); |
684 checkVersion(o[1]); | 684 checkVersion(o[1]); |
685 } | 685 } |
686 | 686 |
687 core.int buildCounterListVersionsResponse = 0; | 687 core.int buildCounterListVersionsResponse = 0; |
688 buildListVersionsResponse() { | 688 buildListVersionsResponse() { |
689 var o = new api.ListVersionsResponse(); | 689 var o = new api.ListVersionsResponse(); |
690 buildCounterListVersionsResponse++; | 690 buildCounterListVersionsResponse++; |
691 if (buildCounterListVersionsResponse < 3) { | 691 if (buildCounterListVersionsResponse < 3) { |
692 o.nextPageToken = "foo"; | 692 o.nextPageToken = "foo"; |
693 o.versions = buildUnnamed3505(); | 693 o.versions = buildUnnamed3488(); |
694 } | 694 } |
695 buildCounterListVersionsResponse--; | 695 buildCounterListVersionsResponse--; |
696 return o; | 696 return o; |
697 } | 697 } |
698 | 698 |
699 checkListVersionsResponse(api.ListVersionsResponse o) { | 699 checkListVersionsResponse(api.ListVersionsResponse o) { |
700 buildCounterListVersionsResponse++; | 700 buildCounterListVersionsResponse++; |
701 if (buildCounterListVersionsResponse < 3) { | 701 if (buildCounterListVersionsResponse < 3) { |
702 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 702 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
703 checkUnnamed3505(o.versions); | 703 checkUnnamed3488(o.versions); |
704 } | 704 } |
705 buildCounterListVersionsResponse--; | 705 buildCounterListVersionsResponse--; |
706 } | 706 } |
707 | 707 |
708 buildUnnamed3506() { | 708 buildUnnamed3489() { |
709 var o = new core.Map<core.String, core.String>(); | 709 var o = new core.Map<core.String, core.String>(); |
710 o["x"] = "foo"; | 710 o["x"] = "foo"; |
711 o["y"] = "foo"; | 711 o["y"] = "foo"; |
712 return o; | 712 return o; |
713 } | 713 } |
714 | 714 |
715 checkUnnamed3506(core.Map<core.String, core.String> o) { | 715 checkUnnamed3489(core.Map<core.String, core.String> o) { |
716 unittest.expect(o, unittest.hasLength(2)); | 716 unittest.expect(o, unittest.hasLength(2)); |
717 unittest.expect(o["x"], unittest.equals('foo')); | 717 unittest.expect(o["x"], unittest.equals('foo')); |
718 unittest.expect(o["y"], unittest.equals('foo')); | 718 unittest.expect(o["y"], unittest.equals('foo')); |
719 } | 719 } |
720 | 720 |
721 buildUnnamed3507() { | 721 buildUnnamed3490() { |
722 var o = new core.Map<core.String, core.Object>(); | 722 var o = new core.Map<core.String, core.Object>(); |
723 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 723 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
724 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 724 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
725 return o; | 725 return o; |
726 } | 726 } |
727 | 727 |
728 checkUnnamed3507(core.Map<core.String, core.Object> o) { | 728 checkUnnamed3490(core.Map<core.String, core.Object> o) { |
729 unittest.expect(o, unittest.hasLength(2)); | 729 unittest.expect(o, unittest.hasLength(2)); |
730 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 730 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
731 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 731 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
732 } | 732 } |
733 | 733 |
734 core.int buildCounterLocation = 0; | 734 core.int buildCounterLocation = 0; |
735 buildLocation() { | 735 buildLocation() { |
736 var o = new api.Location(); | 736 var o = new api.Location(); |
737 buildCounterLocation++; | 737 buildCounterLocation++; |
738 if (buildCounterLocation < 3) { | 738 if (buildCounterLocation < 3) { |
739 o.labels = buildUnnamed3506(); | 739 o.labels = buildUnnamed3489(); |
740 o.locationId = "foo"; | 740 o.locationId = "foo"; |
741 o.metadata = buildUnnamed3507(); | 741 o.metadata = buildUnnamed3490(); |
742 o.name = "foo"; | 742 o.name = "foo"; |
743 } | 743 } |
744 buildCounterLocation--; | 744 buildCounterLocation--; |
745 return o; | 745 return o; |
746 } | 746 } |
747 | 747 |
748 checkLocation(api.Location o) { | 748 checkLocation(api.Location o) { |
749 buildCounterLocation++; | 749 buildCounterLocation++; |
750 if (buildCounterLocation < 3) { | 750 if (buildCounterLocation < 3) { |
751 checkUnnamed3506(o.labels); | 751 checkUnnamed3489(o.labels); |
752 unittest.expect(o.locationId, unittest.equals('foo')); | 752 unittest.expect(o.locationId, unittest.equals('foo')); |
753 checkUnnamed3507(o.metadata); | 753 checkUnnamed3490(o.metadata); |
754 unittest.expect(o.name, unittest.equals('foo')); | 754 unittest.expect(o.name, unittest.equals('foo')); |
755 } | 755 } |
756 buildCounterLocation--; | 756 buildCounterLocation--; |
757 } | 757 } |
758 | 758 |
759 core.int buildCounterLocationMetadata = 0; | 759 core.int buildCounterLocationMetadata = 0; |
760 buildLocationMetadata() { | 760 buildLocationMetadata() { |
761 var o = new api.LocationMetadata(); | 761 var o = new api.LocationMetadata(); |
762 buildCounterLocationMetadata++; | 762 buildCounterLocationMetadata++; |
763 if (buildCounterLocationMetadata < 3) { | 763 if (buildCounterLocationMetadata < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
789 } | 789 } |
790 | 790 |
791 checkManualScaling(api.ManualScaling o) { | 791 checkManualScaling(api.ManualScaling o) { |
792 buildCounterManualScaling++; | 792 buildCounterManualScaling++; |
793 if (buildCounterManualScaling < 3) { | 793 if (buildCounterManualScaling < 3) { |
794 unittest.expect(o.instances, unittest.equals(42)); | 794 unittest.expect(o.instances, unittest.equals(42)); |
795 } | 795 } |
796 buildCounterManualScaling--; | 796 buildCounterManualScaling--; |
797 } | 797 } |
798 | 798 |
799 buildUnnamed3508() { | 799 buildUnnamed3491() { |
800 var o = new core.List<core.String>(); | 800 var o = new core.List<core.String>(); |
801 o.add("foo"); | 801 o.add("foo"); |
802 o.add("foo"); | 802 o.add("foo"); |
803 return o; | 803 return o; |
804 } | 804 } |
805 | 805 |
806 checkUnnamed3508(core.List<core.String> o) { | 806 checkUnnamed3491(core.List<core.String> o) { |
807 unittest.expect(o, unittest.hasLength(2)); | 807 unittest.expect(o, unittest.hasLength(2)); |
808 unittest.expect(o[0], unittest.equals('foo')); | 808 unittest.expect(o[0], unittest.equals('foo')); |
809 unittest.expect(o[1], unittest.equals('foo')); | 809 unittest.expect(o[1], unittest.equals('foo')); |
810 } | 810 } |
811 | 811 |
812 core.int buildCounterNetwork = 0; | 812 core.int buildCounterNetwork = 0; |
813 buildNetwork() { | 813 buildNetwork() { |
814 var o = new api.Network(); | 814 var o = new api.Network(); |
815 buildCounterNetwork++; | 815 buildCounterNetwork++; |
816 if (buildCounterNetwork < 3) { | 816 if (buildCounterNetwork < 3) { |
817 o.forwardedPorts = buildUnnamed3508(); | 817 o.forwardedPorts = buildUnnamed3491(); |
818 o.instanceTag = "foo"; | 818 o.instanceTag = "foo"; |
819 o.name = "foo"; | 819 o.name = "foo"; |
820 o.subnetworkName = "foo"; | 820 o.subnetworkName = "foo"; |
821 } | 821 } |
822 buildCounterNetwork--; | 822 buildCounterNetwork--; |
823 return o; | 823 return o; |
824 } | 824 } |
825 | 825 |
826 checkNetwork(api.Network o) { | 826 checkNetwork(api.Network o) { |
827 buildCounterNetwork++; | 827 buildCounterNetwork++; |
828 if (buildCounterNetwork < 3) { | 828 if (buildCounterNetwork < 3) { |
829 checkUnnamed3508(o.forwardedPorts); | 829 checkUnnamed3491(o.forwardedPorts); |
830 unittest.expect(o.instanceTag, unittest.equals('foo')); | 830 unittest.expect(o.instanceTag, unittest.equals('foo')); |
831 unittest.expect(o.name, unittest.equals('foo')); | 831 unittest.expect(o.name, unittest.equals('foo')); |
832 unittest.expect(o.subnetworkName, unittest.equals('foo')); | 832 unittest.expect(o.subnetworkName, unittest.equals('foo')); |
833 } | 833 } |
834 buildCounterNetwork--; | 834 buildCounterNetwork--; |
835 } | 835 } |
836 | 836 |
837 core.int buildCounterNetworkUtilization = 0; | 837 core.int buildCounterNetworkUtilization = 0; |
838 buildNetworkUtilization() { | 838 buildNetworkUtilization() { |
839 var o = new api.NetworkUtilization(); | 839 var o = new api.NetworkUtilization(); |
(...skipping 12 matching lines...) Expand all Loading... |
852 buildCounterNetworkUtilization++; | 852 buildCounterNetworkUtilization++; |
853 if (buildCounterNetworkUtilization < 3) { | 853 if (buildCounterNetworkUtilization < 3) { |
854 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); | 854 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); |
855 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); | 855 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); |
856 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); | 856 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); |
857 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); | 857 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); |
858 } | 858 } |
859 buildCounterNetworkUtilization--; | 859 buildCounterNetworkUtilization--; |
860 } | 860 } |
861 | 861 |
862 buildUnnamed3509() { | 862 buildUnnamed3492() { |
863 var o = new core.Map<core.String, core.Object>(); | 863 var o = new core.Map<core.String, core.Object>(); |
864 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 864 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
865 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 865 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
866 return o; | 866 return o; |
867 } | 867 } |
868 | 868 |
869 checkUnnamed3509(core.Map<core.String, core.Object> o) { | 869 checkUnnamed3492(core.Map<core.String, core.Object> o) { |
870 unittest.expect(o, unittest.hasLength(2)); | 870 unittest.expect(o, unittest.hasLength(2)); |
871 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 871 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
872 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 872 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
873 } | 873 } |
874 | 874 |
875 buildUnnamed3510() { | 875 buildUnnamed3493() { |
876 var o = new core.Map<core.String, core.Object>(); | 876 var o = new core.Map<core.String, core.Object>(); |
877 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 877 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
878 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 878 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
879 return o; | 879 return o; |
880 } | 880 } |
881 | 881 |
882 checkUnnamed3510(core.Map<core.String, core.Object> o) { | 882 checkUnnamed3493(core.Map<core.String, core.Object> o) { |
883 unittest.expect(o, unittest.hasLength(2)); | 883 unittest.expect(o, unittest.hasLength(2)); |
884 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 884 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
885 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 885 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
886 } | 886 } |
887 | 887 |
888 core.int buildCounterOperation = 0; | 888 core.int buildCounterOperation = 0; |
889 buildOperation() { | 889 buildOperation() { |
890 var o = new api.Operation(); | 890 var o = new api.Operation(); |
891 buildCounterOperation++; | 891 buildCounterOperation++; |
892 if (buildCounterOperation < 3) { | 892 if (buildCounterOperation < 3) { |
893 o.done = true; | 893 o.done = true; |
894 o.error = buildStatus(); | 894 o.error = buildStatus(); |
895 o.metadata = buildUnnamed3509(); | 895 o.metadata = buildUnnamed3492(); |
896 o.name = "foo"; | 896 o.name = "foo"; |
897 o.response = buildUnnamed3510(); | 897 o.response = buildUnnamed3493(); |
898 } | 898 } |
899 buildCounterOperation--; | 899 buildCounterOperation--; |
900 return o; | 900 return o; |
901 } | 901 } |
902 | 902 |
903 checkOperation(api.Operation o) { | 903 checkOperation(api.Operation o) { |
904 buildCounterOperation++; | 904 buildCounterOperation++; |
905 if (buildCounterOperation < 3) { | 905 if (buildCounterOperation < 3) { |
906 unittest.expect(o.done, unittest.isTrue); | 906 unittest.expect(o.done, unittest.isTrue); |
907 checkStatus(o.error); | 907 checkStatus(o.error); |
908 checkUnnamed3509(o.metadata); | 908 checkUnnamed3492(o.metadata); |
909 unittest.expect(o.name, unittest.equals('foo')); | 909 unittest.expect(o.name, unittest.equals('foo')); |
910 checkUnnamed3510(o.response); | 910 checkUnnamed3493(o.response); |
911 } | 911 } |
912 buildCounterOperation--; | 912 buildCounterOperation--; |
913 } | 913 } |
914 | 914 |
915 core.int buildCounterOperationMetadata = 0; | 915 core.int buildCounterOperationMetadata = 0; |
916 buildOperationMetadata() { | 916 buildOperationMetadata() { |
917 var o = new api.OperationMetadata(); | 917 var o = new api.OperationMetadata(); |
918 buildCounterOperationMetadata++; | 918 buildCounterOperationMetadata++; |
919 if (buildCounterOperationMetadata < 3) { | 919 if (buildCounterOperationMetadata < 3) { |
920 o.endTime = "foo"; | 920 o.endTime = "foo"; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 if (buildCounterOperationMetadataExperimental < 3) { | 961 if (buildCounterOperationMetadataExperimental < 3) { |
962 unittest.expect(o.endTime, unittest.equals('foo')); | 962 unittest.expect(o.endTime, unittest.equals('foo')); |
963 unittest.expect(o.insertTime, unittest.equals('foo')); | 963 unittest.expect(o.insertTime, unittest.equals('foo')); |
964 unittest.expect(o.method, unittest.equals('foo')); | 964 unittest.expect(o.method, unittest.equals('foo')); |
965 unittest.expect(o.target, unittest.equals('foo')); | 965 unittest.expect(o.target, unittest.equals('foo')); |
966 unittest.expect(o.user, unittest.equals('foo')); | 966 unittest.expect(o.user, unittest.equals('foo')); |
967 } | 967 } |
968 buildCounterOperationMetadataExperimental--; | 968 buildCounterOperationMetadataExperimental--; |
969 } | 969 } |
970 | 970 |
971 buildUnnamed3511() { | 971 buildUnnamed3494() { |
972 var o = new core.List<core.String>(); | 972 var o = new core.List<core.String>(); |
973 o.add("foo"); | 973 o.add("foo"); |
974 o.add("foo"); | 974 o.add("foo"); |
975 return o; | 975 return o; |
976 } | 976 } |
977 | 977 |
978 checkUnnamed3511(core.List<core.String> o) { | 978 checkUnnamed3494(core.List<core.String> o) { |
979 unittest.expect(o, unittest.hasLength(2)); | 979 unittest.expect(o, unittest.hasLength(2)); |
980 unittest.expect(o[0], unittest.equals('foo')); | 980 unittest.expect(o[0], unittest.equals('foo')); |
981 unittest.expect(o[1], unittest.equals('foo')); | 981 unittest.expect(o[1], unittest.equals('foo')); |
982 } | 982 } |
983 | 983 |
984 core.int buildCounterOperationMetadataV1 = 0; | 984 core.int buildCounterOperationMetadataV1 = 0; |
985 buildOperationMetadataV1() { | 985 buildOperationMetadataV1() { |
986 var o = new api.OperationMetadataV1(); | 986 var o = new api.OperationMetadataV1(); |
987 buildCounterOperationMetadataV1++; | 987 buildCounterOperationMetadataV1++; |
988 if (buildCounterOperationMetadataV1 < 3) { | 988 if (buildCounterOperationMetadataV1 < 3) { |
989 o.endTime = "foo"; | 989 o.endTime = "foo"; |
990 o.ephemeralMessage = "foo"; | 990 o.ephemeralMessage = "foo"; |
991 o.insertTime = "foo"; | 991 o.insertTime = "foo"; |
992 o.method = "foo"; | 992 o.method = "foo"; |
993 o.target = "foo"; | 993 o.target = "foo"; |
994 o.user = "foo"; | 994 o.user = "foo"; |
995 o.warning = buildUnnamed3511(); | 995 o.warning = buildUnnamed3494(); |
996 } | 996 } |
997 buildCounterOperationMetadataV1--; | 997 buildCounterOperationMetadataV1--; |
998 return o; | 998 return o; |
999 } | 999 } |
1000 | 1000 |
1001 checkOperationMetadataV1(api.OperationMetadataV1 o) { | 1001 checkOperationMetadataV1(api.OperationMetadataV1 o) { |
1002 buildCounterOperationMetadataV1++; | 1002 buildCounterOperationMetadataV1++; |
1003 if (buildCounterOperationMetadataV1 < 3) { | 1003 if (buildCounterOperationMetadataV1 < 3) { |
1004 unittest.expect(o.endTime, unittest.equals('foo')); | 1004 unittest.expect(o.endTime, unittest.equals('foo')); |
1005 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); | 1005 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
1006 unittest.expect(o.insertTime, unittest.equals('foo')); | 1006 unittest.expect(o.insertTime, unittest.equals('foo')); |
1007 unittest.expect(o.method, unittest.equals('foo')); | 1007 unittest.expect(o.method, unittest.equals('foo')); |
1008 unittest.expect(o.target, unittest.equals('foo')); | 1008 unittest.expect(o.target, unittest.equals('foo')); |
1009 unittest.expect(o.user, unittest.equals('foo')); | 1009 unittest.expect(o.user, unittest.equals('foo')); |
1010 checkUnnamed3511(o.warning); | 1010 checkUnnamed3494(o.warning); |
1011 } | 1011 } |
1012 buildCounterOperationMetadataV1--; | 1012 buildCounterOperationMetadataV1--; |
1013 } | 1013 } |
1014 | 1014 |
1015 buildUnnamed3512() { | 1015 buildUnnamed3495() { |
1016 var o = new core.List<core.String>(); | 1016 var o = new core.List<core.String>(); |
1017 o.add("foo"); | 1017 o.add("foo"); |
1018 o.add("foo"); | 1018 o.add("foo"); |
1019 return o; | 1019 return o; |
1020 } | 1020 } |
1021 | 1021 |
1022 checkUnnamed3512(core.List<core.String> o) { | 1022 checkUnnamed3495(core.List<core.String> o) { |
1023 unittest.expect(o, unittest.hasLength(2)); | 1023 unittest.expect(o, unittest.hasLength(2)); |
1024 unittest.expect(o[0], unittest.equals('foo')); | 1024 unittest.expect(o[0], unittest.equals('foo')); |
1025 unittest.expect(o[1], unittest.equals('foo')); | 1025 unittest.expect(o[1], unittest.equals('foo')); |
1026 } | 1026 } |
1027 | 1027 |
1028 core.int buildCounterOperationMetadataV1Beta = 0; | 1028 core.int buildCounterOperationMetadataV1Beta = 0; |
1029 buildOperationMetadataV1Beta() { | 1029 buildOperationMetadataV1Beta() { |
1030 var o = new api.OperationMetadataV1Beta(); | 1030 var o = new api.OperationMetadataV1Beta(); |
1031 buildCounterOperationMetadataV1Beta++; | 1031 buildCounterOperationMetadataV1Beta++; |
1032 if (buildCounterOperationMetadataV1Beta < 3) { | 1032 if (buildCounterOperationMetadataV1Beta < 3) { |
1033 o.endTime = "foo"; | 1033 o.endTime = "foo"; |
1034 o.ephemeralMessage = "foo"; | 1034 o.ephemeralMessage = "foo"; |
1035 o.insertTime = "foo"; | 1035 o.insertTime = "foo"; |
1036 o.method = "foo"; | 1036 o.method = "foo"; |
1037 o.target = "foo"; | 1037 o.target = "foo"; |
1038 o.user = "foo"; | 1038 o.user = "foo"; |
1039 o.warning = buildUnnamed3512(); | 1039 o.warning = buildUnnamed3495(); |
1040 } | 1040 } |
1041 buildCounterOperationMetadataV1Beta--; | 1041 buildCounterOperationMetadataV1Beta--; |
1042 return o; | 1042 return o; |
1043 } | 1043 } |
1044 | 1044 |
1045 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { | 1045 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { |
1046 buildCounterOperationMetadataV1Beta++; | 1046 buildCounterOperationMetadataV1Beta++; |
1047 if (buildCounterOperationMetadataV1Beta < 3) { | 1047 if (buildCounterOperationMetadataV1Beta < 3) { |
1048 unittest.expect(o.endTime, unittest.equals('foo')); | 1048 unittest.expect(o.endTime, unittest.equals('foo')); |
1049 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); | 1049 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
1050 unittest.expect(o.insertTime, unittest.equals('foo')); | 1050 unittest.expect(o.insertTime, unittest.equals('foo')); |
1051 unittest.expect(o.method, unittest.equals('foo')); | 1051 unittest.expect(o.method, unittest.equals('foo')); |
1052 unittest.expect(o.target, unittest.equals('foo')); | 1052 unittest.expect(o.target, unittest.equals('foo')); |
1053 unittest.expect(o.user, unittest.equals('foo')); | 1053 unittest.expect(o.user, unittest.equals('foo')); |
1054 checkUnnamed3512(o.warning); | 1054 checkUnnamed3495(o.warning); |
1055 } | 1055 } |
1056 buildCounterOperationMetadataV1Beta--; | 1056 buildCounterOperationMetadataV1Beta--; |
1057 } | 1057 } |
1058 | 1058 |
1059 core.int buildCounterOperationMetadataV1Beta5 = 0; | 1059 core.int buildCounterOperationMetadataV1Beta5 = 0; |
1060 buildOperationMetadataV1Beta5() { | 1060 buildOperationMetadataV1Beta5() { |
1061 var o = new api.OperationMetadataV1Beta5(); | 1061 var o = new api.OperationMetadataV1Beta5(); |
1062 buildCounterOperationMetadataV1Beta5++; | 1062 buildCounterOperationMetadataV1Beta5++; |
1063 if (buildCounterOperationMetadataV1Beta5 < 3) { | 1063 if (buildCounterOperationMetadataV1Beta5 < 3) { |
1064 o.endTime = "foo"; | 1064 o.endTime = "foo"; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1097 | 1097 |
1098 checkRequestUtilization(api.RequestUtilization o) { | 1098 checkRequestUtilization(api.RequestUtilization o) { |
1099 buildCounterRequestUtilization++; | 1099 buildCounterRequestUtilization++; |
1100 if (buildCounterRequestUtilization < 3) { | 1100 if (buildCounterRequestUtilization < 3) { |
1101 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); | 1101 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); |
1102 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); | 1102 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); |
1103 } | 1103 } |
1104 buildCounterRequestUtilization--; | 1104 buildCounterRequestUtilization--; |
1105 } | 1105 } |
1106 | 1106 |
1107 buildUnnamed3513() { | 1107 buildUnnamed3496() { |
1108 var o = new core.List<api.Volume>(); | 1108 var o = new core.List<api.Volume>(); |
1109 o.add(buildVolume()); | 1109 o.add(buildVolume()); |
1110 o.add(buildVolume()); | 1110 o.add(buildVolume()); |
1111 return o; | 1111 return o; |
1112 } | 1112 } |
1113 | 1113 |
1114 checkUnnamed3513(core.List<api.Volume> o) { | 1114 checkUnnamed3496(core.List<api.Volume> o) { |
1115 unittest.expect(o, unittest.hasLength(2)); | 1115 unittest.expect(o, unittest.hasLength(2)); |
1116 checkVolume(o[0]); | 1116 checkVolume(o[0]); |
1117 checkVolume(o[1]); | 1117 checkVolume(o[1]); |
1118 } | 1118 } |
1119 | 1119 |
1120 core.int buildCounterResources = 0; | 1120 core.int buildCounterResources = 0; |
1121 buildResources() { | 1121 buildResources() { |
1122 var o = new api.Resources(); | 1122 var o = new api.Resources(); |
1123 buildCounterResources++; | 1123 buildCounterResources++; |
1124 if (buildCounterResources < 3) { | 1124 if (buildCounterResources < 3) { |
1125 o.cpu = 42.0; | 1125 o.cpu = 42.0; |
1126 o.diskGb = 42.0; | 1126 o.diskGb = 42.0; |
1127 o.memoryGb = 42.0; | 1127 o.memoryGb = 42.0; |
1128 o.volumes = buildUnnamed3513(); | 1128 o.volumes = buildUnnamed3496(); |
1129 } | 1129 } |
1130 buildCounterResources--; | 1130 buildCounterResources--; |
1131 return o; | 1131 return o; |
1132 } | 1132 } |
1133 | 1133 |
1134 checkResources(api.Resources o) { | 1134 checkResources(api.Resources o) { |
1135 buildCounterResources++; | 1135 buildCounterResources++; |
1136 if (buildCounterResources < 3) { | 1136 if (buildCounterResources < 3) { |
1137 unittest.expect(o.cpu, unittest.equals(42.0)); | 1137 unittest.expect(o.cpu, unittest.equals(42.0)); |
1138 unittest.expect(o.diskGb, unittest.equals(42.0)); | 1138 unittest.expect(o.diskGb, unittest.equals(42.0)); |
1139 unittest.expect(o.memoryGb, unittest.equals(42.0)); | 1139 unittest.expect(o.memoryGb, unittest.equals(42.0)); |
1140 checkUnnamed3513(o.volumes); | 1140 checkUnnamed3496(o.volumes); |
1141 } | 1141 } |
1142 buildCounterResources--; | 1142 buildCounterResources--; |
1143 } | 1143 } |
1144 | 1144 |
1145 core.int buildCounterScriptHandler = 0; | 1145 core.int buildCounterScriptHandler = 0; |
1146 buildScriptHandler() { | 1146 buildScriptHandler() { |
1147 var o = new api.ScriptHandler(); | 1147 var o = new api.ScriptHandler(); |
1148 buildCounterScriptHandler++; | 1148 buildCounterScriptHandler++; |
1149 if (buildCounterScriptHandler < 3) { | 1149 if (buildCounterScriptHandler < 3) { |
1150 o.scriptPath = "foo"; | 1150 o.scriptPath = "foo"; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1198 | 1198 |
1199 checkSourceReference(api.SourceReference o) { | 1199 checkSourceReference(api.SourceReference o) { |
1200 buildCounterSourceReference++; | 1200 buildCounterSourceReference++; |
1201 if (buildCounterSourceReference < 3) { | 1201 if (buildCounterSourceReference < 3) { |
1202 unittest.expect(o.repository, unittest.equals('foo')); | 1202 unittest.expect(o.repository, unittest.equals('foo')); |
1203 unittest.expect(o.revisionId, unittest.equals('foo')); | 1203 unittest.expect(o.revisionId, unittest.equals('foo')); |
1204 } | 1204 } |
1205 buildCounterSourceReference--; | 1205 buildCounterSourceReference--; |
1206 } | 1206 } |
1207 | 1207 |
1208 buildUnnamed3514() { | 1208 buildUnnamed3497() { |
1209 var o = new core.Map<core.String, core.String>(); | 1209 var o = new core.Map<core.String, core.String>(); |
1210 o["x"] = "foo"; | 1210 o["x"] = "foo"; |
1211 o["y"] = "foo"; | 1211 o["y"] = "foo"; |
1212 return o; | 1212 return o; |
1213 } | 1213 } |
1214 | 1214 |
1215 checkUnnamed3514(core.Map<core.String, core.String> o) { | 1215 checkUnnamed3497(core.Map<core.String, core.String> o) { |
1216 unittest.expect(o, unittest.hasLength(2)); | 1216 unittest.expect(o, unittest.hasLength(2)); |
1217 unittest.expect(o["x"], unittest.equals('foo')); | 1217 unittest.expect(o["x"], unittest.equals('foo')); |
1218 unittest.expect(o["y"], unittest.equals('foo')); | 1218 unittest.expect(o["y"], unittest.equals('foo')); |
1219 } | 1219 } |
1220 | 1220 |
1221 core.int buildCounterStaticFilesHandler = 0; | 1221 core.int buildCounterStaticFilesHandler = 0; |
1222 buildStaticFilesHandler() { | 1222 buildStaticFilesHandler() { |
1223 var o = new api.StaticFilesHandler(); | 1223 var o = new api.StaticFilesHandler(); |
1224 buildCounterStaticFilesHandler++; | 1224 buildCounterStaticFilesHandler++; |
1225 if (buildCounterStaticFilesHandler < 3) { | 1225 if (buildCounterStaticFilesHandler < 3) { |
1226 o.applicationReadable = true; | 1226 o.applicationReadable = true; |
1227 o.expiration = "foo"; | 1227 o.expiration = "foo"; |
1228 o.httpHeaders = buildUnnamed3514(); | 1228 o.httpHeaders = buildUnnamed3497(); |
1229 o.mimeType = "foo"; | 1229 o.mimeType = "foo"; |
1230 o.path = "foo"; | 1230 o.path = "foo"; |
1231 o.requireMatchingFile = true; | 1231 o.requireMatchingFile = true; |
1232 o.uploadPathRegex = "foo"; | 1232 o.uploadPathRegex = "foo"; |
1233 } | 1233 } |
1234 buildCounterStaticFilesHandler--; | 1234 buildCounterStaticFilesHandler--; |
1235 return o; | 1235 return o; |
1236 } | 1236 } |
1237 | 1237 |
1238 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1238 checkStaticFilesHandler(api.StaticFilesHandler o) { |
1239 buildCounterStaticFilesHandler++; | 1239 buildCounterStaticFilesHandler++; |
1240 if (buildCounterStaticFilesHandler < 3) { | 1240 if (buildCounterStaticFilesHandler < 3) { |
1241 unittest.expect(o.applicationReadable, unittest.isTrue); | 1241 unittest.expect(o.applicationReadable, unittest.isTrue); |
1242 unittest.expect(o.expiration, unittest.equals('foo')); | 1242 unittest.expect(o.expiration, unittest.equals('foo')); |
1243 checkUnnamed3514(o.httpHeaders); | 1243 checkUnnamed3497(o.httpHeaders); |
1244 unittest.expect(o.mimeType, unittest.equals('foo')); | 1244 unittest.expect(o.mimeType, unittest.equals('foo')); |
1245 unittest.expect(o.path, unittest.equals('foo')); | 1245 unittest.expect(o.path, unittest.equals('foo')); |
1246 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1246 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1247 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1247 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
1248 } | 1248 } |
1249 buildCounterStaticFilesHandler--; | 1249 buildCounterStaticFilesHandler--; |
1250 } | 1250 } |
1251 | 1251 |
1252 buildUnnamed3515() { | 1252 buildUnnamed3498() { |
1253 var o = new core.Map<core.String, core.Object>(); | 1253 var o = new core.Map<core.String, core.Object>(); |
1254 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1254 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1255 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1255 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1256 return o; | 1256 return o; |
1257 } | 1257 } |
1258 | 1258 |
1259 checkUnnamed3515(core.Map<core.String, core.Object> o) { | 1259 checkUnnamed3498(core.Map<core.String, core.Object> o) { |
1260 unittest.expect(o, unittest.hasLength(2)); | 1260 unittest.expect(o, unittest.hasLength(2)); |
1261 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')); | 1261 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')); |
1262 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')); | 1262 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')); |
1263 } | 1263 } |
1264 | 1264 |
1265 buildUnnamed3516() { | 1265 buildUnnamed3499() { |
1266 var o = new core.List<core.Map<core.String, core.Object>>(); | 1266 var o = new core.List<core.Map<core.String, core.Object>>(); |
1267 o.add(buildUnnamed3515()); | 1267 o.add(buildUnnamed3498()); |
1268 o.add(buildUnnamed3515()); | 1268 o.add(buildUnnamed3498()); |
1269 return o; | 1269 return o; |
1270 } | 1270 } |
1271 | 1271 |
1272 checkUnnamed3516(core.List<core.Map<core.String, core.Object>> o) { | 1272 checkUnnamed3499(core.List<core.Map<core.String, core.Object>> o) { |
1273 unittest.expect(o, unittest.hasLength(2)); | 1273 unittest.expect(o, unittest.hasLength(2)); |
1274 checkUnnamed3515(o[0]); | 1274 checkUnnamed3498(o[0]); |
1275 checkUnnamed3515(o[1]); | 1275 checkUnnamed3498(o[1]); |
1276 } | 1276 } |
1277 | 1277 |
1278 core.int buildCounterStatus = 0; | 1278 core.int buildCounterStatus = 0; |
1279 buildStatus() { | 1279 buildStatus() { |
1280 var o = new api.Status(); | 1280 var o = new api.Status(); |
1281 buildCounterStatus++; | 1281 buildCounterStatus++; |
1282 if (buildCounterStatus < 3) { | 1282 if (buildCounterStatus < 3) { |
1283 o.code = 42; | 1283 o.code = 42; |
1284 o.details = buildUnnamed3516(); | 1284 o.details = buildUnnamed3499(); |
1285 o.message = "foo"; | 1285 o.message = "foo"; |
1286 } | 1286 } |
1287 buildCounterStatus--; | 1287 buildCounterStatus--; |
1288 return o; | 1288 return o; |
1289 } | 1289 } |
1290 | 1290 |
1291 checkStatus(api.Status o) { | 1291 checkStatus(api.Status o) { |
1292 buildCounterStatus++; | 1292 buildCounterStatus++; |
1293 if (buildCounterStatus < 3) { | 1293 if (buildCounterStatus < 3) { |
1294 unittest.expect(o.code, unittest.equals(42)); | 1294 unittest.expect(o.code, unittest.equals(42)); |
1295 checkUnnamed3516(o.details); | 1295 checkUnnamed3499(o.details); |
1296 unittest.expect(o.message, unittest.equals('foo')); | 1296 unittest.expect(o.message, unittest.equals('foo')); |
1297 } | 1297 } |
1298 buildCounterStatus--; | 1298 buildCounterStatus--; |
1299 } | 1299 } |
1300 | 1300 |
1301 buildUnnamed3517() { | 1301 buildUnnamed3500() { |
1302 var o = new core.Map<core.String, core.double>(); | 1302 var o = new core.Map<core.String, core.double>(); |
1303 o["x"] = 42.0; | 1303 o["x"] = 42.0; |
1304 o["y"] = 42.0; | 1304 o["y"] = 42.0; |
1305 return o; | 1305 return o; |
1306 } | 1306 } |
1307 | 1307 |
1308 checkUnnamed3517(core.Map<core.String, core.double> o) { | 1308 checkUnnamed3500(core.Map<core.String, core.double> o) { |
1309 unittest.expect(o, unittest.hasLength(2)); | 1309 unittest.expect(o, unittest.hasLength(2)); |
1310 unittest.expect(o["x"], unittest.equals(42.0)); | 1310 unittest.expect(o["x"], unittest.equals(42.0)); |
1311 unittest.expect(o["y"], unittest.equals(42.0)); | 1311 unittest.expect(o["y"], unittest.equals(42.0)); |
1312 } | 1312 } |
1313 | 1313 |
1314 core.int buildCounterTrafficSplit = 0; | 1314 core.int buildCounterTrafficSplit = 0; |
1315 buildTrafficSplit() { | 1315 buildTrafficSplit() { |
1316 var o = new api.TrafficSplit(); | 1316 var o = new api.TrafficSplit(); |
1317 buildCounterTrafficSplit++; | 1317 buildCounterTrafficSplit++; |
1318 if (buildCounterTrafficSplit < 3) { | 1318 if (buildCounterTrafficSplit < 3) { |
1319 o.allocations = buildUnnamed3517(); | 1319 o.allocations = buildUnnamed3500(); |
1320 o.shardBy = "foo"; | 1320 o.shardBy = "foo"; |
1321 } | 1321 } |
1322 buildCounterTrafficSplit--; | 1322 buildCounterTrafficSplit--; |
1323 return o; | 1323 return o; |
1324 } | 1324 } |
1325 | 1325 |
1326 checkTrafficSplit(api.TrafficSplit o) { | 1326 checkTrafficSplit(api.TrafficSplit o) { |
1327 buildCounterTrafficSplit++; | 1327 buildCounterTrafficSplit++; |
1328 if (buildCounterTrafficSplit < 3) { | 1328 if (buildCounterTrafficSplit < 3) { |
1329 checkUnnamed3517(o.allocations); | 1329 checkUnnamed3500(o.allocations); |
1330 unittest.expect(o.shardBy, unittest.equals('foo')); | 1330 unittest.expect(o.shardBy, unittest.equals('foo')); |
1331 } | 1331 } |
1332 buildCounterTrafficSplit--; | 1332 buildCounterTrafficSplit--; |
1333 } | 1333 } |
1334 | 1334 |
1335 core.int buildCounterUrlDispatchRule = 0; | 1335 core.int buildCounterUrlDispatchRule = 0; |
1336 buildUrlDispatchRule() { | 1336 buildUrlDispatchRule() { |
1337 var o = new api.UrlDispatchRule(); | 1337 var o = new api.UrlDispatchRule(); |
1338 buildCounterUrlDispatchRule++; | 1338 buildCounterUrlDispatchRule++; |
1339 if (buildCounterUrlDispatchRule < 3) { | 1339 if (buildCounterUrlDispatchRule < 3) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1381 unittest.expect(o.login, unittest.equals('foo')); | 1381 unittest.expect(o.login, unittest.equals('foo')); |
1382 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1382 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
1383 checkScriptHandler(o.script); | 1383 checkScriptHandler(o.script); |
1384 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1384 unittest.expect(o.securityLevel, unittest.equals('foo')); |
1385 checkStaticFilesHandler(o.staticFiles); | 1385 checkStaticFilesHandler(o.staticFiles); |
1386 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1386 unittest.expect(o.urlRegex, unittest.equals('foo')); |
1387 } | 1387 } |
1388 buildCounterUrlMap--; | 1388 buildCounterUrlMap--; |
1389 } | 1389 } |
1390 | 1390 |
1391 buildUnnamed3518() { | 1391 buildUnnamed3501() { |
1392 var o = new core.Map<core.String, core.String>(); | 1392 var o = new core.Map<core.String, core.String>(); |
1393 o["x"] = "foo"; | 1393 o["x"] = "foo"; |
1394 o["y"] = "foo"; | 1394 o["y"] = "foo"; |
1395 return o; | 1395 return o; |
1396 } | 1396 } |
1397 | 1397 |
1398 checkUnnamed3518(core.Map<core.String, core.String> o) { | 1398 checkUnnamed3501(core.Map<core.String, core.String> o) { |
1399 unittest.expect(o, unittest.hasLength(2)); | 1399 unittest.expect(o, unittest.hasLength(2)); |
1400 unittest.expect(o["x"], unittest.equals('foo')); | 1400 unittest.expect(o["x"], unittest.equals('foo')); |
1401 unittest.expect(o["y"], unittest.equals('foo')); | 1401 unittest.expect(o["y"], unittest.equals('foo')); |
1402 } | 1402 } |
1403 | 1403 |
1404 buildUnnamed3519() { | 1404 buildUnnamed3502() { |
1405 var o = new core.Map<core.String, core.String>(); | 1405 var o = new core.Map<core.String, core.String>(); |
1406 o["x"] = "foo"; | 1406 o["x"] = "foo"; |
1407 o["y"] = "foo"; | 1407 o["y"] = "foo"; |
1408 return o; | 1408 return o; |
1409 } | 1409 } |
1410 | 1410 |
1411 checkUnnamed3519(core.Map<core.String, core.String> o) { | 1411 checkUnnamed3502(core.Map<core.String, core.String> o) { |
1412 unittest.expect(o, unittest.hasLength(2)); | 1412 unittest.expect(o, unittest.hasLength(2)); |
1413 unittest.expect(o["x"], unittest.equals('foo')); | 1413 unittest.expect(o["x"], unittest.equals('foo')); |
1414 unittest.expect(o["y"], unittest.equals('foo')); | 1414 unittest.expect(o["y"], unittest.equals('foo')); |
1415 } | 1415 } |
1416 | 1416 |
1417 buildUnnamed3520() { | 1417 buildUnnamed3503() { |
1418 var o = new core.List<api.ErrorHandler>(); | 1418 var o = new core.List<api.ErrorHandler>(); |
1419 o.add(buildErrorHandler()); | 1419 o.add(buildErrorHandler()); |
1420 o.add(buildErrorHandler()); | 1420 o.add(buildErrorHandler()); |
1421 return o; | 1421 return o; |
1422 } | 1422 } |
1423 | 1423 |
1424 checkUnnamed3520(core.List<api.ErrorHandler> o) { | 1424 checkUnnamed3503(core.List<api.ErrorHandler> o) { |
1425 unittest.expect(o, unittest.hasLength(2)); | 1425 unittest.expect(o, unittest.hasLength(2)); |
1426 checkErrorHandler(o[0]); | 1426 checkErrorHandler(o[0]); |
1427 checkErrorHandler(o[1]); | 1427 checkErrorHandler(o[1]); |
1428 } | 1428 } |
1429 | 1429 |
1430 buildUnnamed3521() { | 1430 buildUnnamed3504() { |
1431 var o = new core.List<api.UrlMap>(); | 1431 var o = new core.List<api.UrlMap>(); |
1432 o.add(buildUrlMap()); | 1432 o.add(buildUrlMap()); |
1433 o.add(buildUrlMap()); | 1433 o.add(buildUrlMap()); |
1434 return o; | 1434 return o; |
1435 } | 1435 } |
1436 | 1436 |
1437 checkUnnamed3521(core.List<api.UrlMap> o) { | 1437 checkUnnamed3504(core.List<api.UrlMap> o) { |
1438 unittest.expect(o, unittest.hasLength(2)); | 1438 unittest.expect(o, unittest.hasLength(2)); |
1439 checkUrlMap(o[0]); | 1439 checkUrlMap(o[0]); |
1440 checkUrlMap(o[1]); | 1440 checkUrlMap(o[1]); |
1441 } | 1441 } |
1442 | 1442 |
1443 buildUnnamed3522() { | 1443 buildUnnamed3505() { |
1444 var o = new core.List<core.String>(); | 1444 var o = new core.List<core.String>(); |
1445 o.add("foo"); | 1445 o.add("foo"); |
1446 o.add("foo"); | 1446 o.add("foo"); |
1447 return o; | 1447 return o; |
1448 } | 1448 } |
1449 | 1449 |
1450 checkUnnamed3522(core.List<core.String> o) { | 1450 checkUnnamed3505(core.List<core.String> o) { |
1451 unittest.expect(o, unittest.hasLength(2)); | 1451 unittest.expect(o, unittest.hasLength(2)); |
1452 unittest.expect(o[0], unittest.equals('foo')); | 1452 unittest.expect(o[0], unittest.equals('foo')); |
1453 unittest.expect(o[1], unittest.equals('foo')); | 1453 unittest.expect(o[1], unittest.equals('foo')); |
1454 } | 1454 } |
1455 | 1455 |
1456 buildUnnamed3523() { | 1456 buildUnnamed3506() { |
1457 var o = new core.List<api.Library>(); | 1457 var o = new core.List<api.Library>(); |
1458 o.add(buildLibrary()); | 1458 o.add(buildLibrary()); |
1459 o.add(buildLibrary()); | 1459 o.add(buildLibrary()); |
1460 return o; | 1460 return o; |
1461 } | 1461 } |
1462 | 1462 |
1463 checkUnnamed3523(core.List<api.Library> o) { | 1463 checkUnnamed3506(core.List<api.Library> o) { |
1464 unittest.expect(o, unittest.hasLength(2)); | 1464 unittest.expect(o, unittest.hasLength(2)); |
1465 checkLibrary(o[0]); | 1465 checkLibrary(o[0]); |
1466 checkLibrary(o[1]); | 1466 checkLibrary(o[1]); |
1467 } | 1467 } |
1468 | 1468 |
1469 core.int buildCounterVersion = 0; | 1469 core.int buildCounterVersion = 0; |
1470 buildVersion() { | 1470 buildVersion() { |
1471 var o = new api.Version(); | 1471 var o = new api.Version(); |
1472 buildCounterVersion++; | 1472 buildCounterVersion++; |
1473 if (buildCounterVersion < 3) { | 1473 if (buildCounterVersion < 3) { |
1474 o.apiConfig = buildApiConfigHandler(); | 1474 o.apiConfig = buildApiConfigHandler(); |
1475 o.automaticScaling = buildAutomaticScaling(); | 1475 o.automaticScaling = buildAutomaticScaling(); |
1476 o.basicScaling = buildBasicScaling(); | 1476 o.basicScaling = buildBasicScaling(); |
1477 o.betaSettings = buildUnnamed3518(); | 1477 o.betaSettings = buildUnnamed3501(); |
1478 o.creationTime = "foo"; | 1478 o.creationTime = "foo"; |
1479 o.defaultExpiration = "foo"; | 1479 o.defaultExpiration = "foo"; |
1480 o.deployer = "foo"; | 1480 o.deployer = "foo"; |
1481 o.deployment = buildDeployment(); | 1481 o.deployment = buildDeployment(); |
1482 o.diskUsageBytes = "foo"; | 1482 o.diskUsageBytes = "foo"; |
1483 o.endpointsApiService = buildEndpointsApiService(); | 1483 o.endpointsApiService = buildEndpointsApiService(); |
1484 o.env = "foo"; | 1484 o.env = "foo"; |
1485 o.envVariables = buildUnnamed3519(); | 1485 o.envVariables = buildUnnamed3502(); |
1486 o.errorHandlers = buildUnnamed3520(); | 1486 o.errorHandlers = buildUnnamed3503(); |
1487 o.handlers = buildUnnamed3521(); | 1487 o.handlers = buildUnnamed3504(); |
1488 o.healthCheck = buildHealthCheck(); | 1488 o.healthCheck = buildHealthCheck(); |
1489 o.id = "foo"; | 1489 o.id = "foo"; |
1490 o.inboundServices = buildUnnamed3522(); | 1490 o.inboundServices = buildUnnamed3505(); |
1491 o.instanceClass = "foo"; | 1491 o.instanceClass = "foo"; |
1492 o.libraries = buildUnnamed3523(); | 1492 o.libraries = buildUnnamed3506(); |
1493 o.manualScaling = buildManualScaling(); | 1493 o.manualScaling = buildManualScaling(); |
1494 o.name = "foo"; | 1494 o.name = "foo"; |
1495 o.network = buildNetwork(); | 1495 o.network = buildNetwork(); |
1496 o.nobuildFilesRegex = "foo"; | 1496 o.nobuildFilesRegex = "foo"; |
1497 o.resources = buildResources(); | 1497 o.resources = buildResources(); |
1498 o.runtime = "foo"; | 1498 o.runtime = "foo"; |
1499 o.servingStatus = "foo"; | 1499 o.servingStatus = "foo"; |
1500 o.threadsafe = true; | 1500 o.threadsafe = true; |
1501 o.vm = true; | 1501 o.vm = true; |
1502 } | 1502 } |
1503 buildCounterVersion--; | 1503 buildCounterVersion--; |
1504 return o; | 1504 return o; |
1505 } | 1505 } |
1506 | 1506 |
1507 checkVersion(api.Version o) { | 1507 checkVersion(api.Version o) { |
1508 buildCounterVersion++; | 1508 buildCounterVersion++; |
1509 if (buildCounterVersion < 3) { | 1509 if (buildCounterVersion < 3) { |
1510 checkApiConfigHandler(o.apiConfig); | 1510 checkApiConfigHandler(o.apiConfig); |
1511 checkAutomaticScaling(o.automaticScaling); | 1511 checkAutomaticScaling(o.automaticScaling); |
1512 checkBasicScaling(o.basicScaling); | 1512 checkBasicScaling(o.basicScaling); |
1513 checkUnnamed3518(o.betaSettings); | 1513 checkUnnamed3501(o.betaSettings); |
1514 unittest.expect(o.creationTime, unittest.equals('foo')); | 1514 unittest.expect(o.creationTime, unittest.equals('foo')); |
1515 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1515 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
1516 unittest.expect(o.deployer, unittest.equals('foo')); | 1516 unittest.expect(o.deployer, unittest.equals('foo')); |
1517 checkDeployment(o.deployment); | 1517 checkDeployment(o.deployment); |
1518 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); | 1518 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); |
1519 checkEndpointsApiService(o.endpointsApiService); | 1519 checkEndpointsApiService(o.endpointsApiService); |
1520 unittest.expect(o.env, unittest.equals('foo')); | 1520 unittest.expect(o.env, unittest.equals('foo')); |
1521 checkUnnamed3519(o.envVariables); | 1521 checkUnnamed3502(o.envVariables); |
1522 checkUnnamed3520(o.errorHandlers); | 1522 checkUnnamed3503(o.errorHandlers); |
1523 checkUnnamed3521(o.handlers); | 1523 checkUnnamed3504(o.handlers); |
1524 checkHealthCheck(o.healthCheck); | 1524 checkHealthCheck(o.healthCheck); |
1525 unittest.expect(o.id, unittest.equals('foo')); | 1525 unittest.expect(o.id, unittest.equals('foo')); |
1526 checkUnnamed3522(o.inboundServices); | 1526 checkUnnamed3505(o.inboundServices); |
1527 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1527 unittest.expect(o.instanceClass, unittest.equals('foo')); |
1528 checkUnnamed3523(o.libraries); | 1528 checkUnnamed3506(o.libraries); |
1529 checkManualScaling(o.manualScaling); | 1529 checkManualScaling(o.manualScaling); |
1530 unittest.expect(o.name, unittest.equals('foo')); | 1530 unittest.expect(o.name, unittest.equals('foo')); |
1531 checkNetwork(o.network); | 1531 checkNetwork(o.network); |
1532 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1532 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
1533 checkResources(o.resources); | 1533 checkResources(o.resources); |
1534 unittest.expect(o.runtime, unittest.equals('foo')); | 1534 unittest.expect(o.runtime, unittest.equals('foo')); |
1535 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1535 unittest.expect(o.servingStatus, unittest.equals('foo')); |
1536 unittest.expect(o.threadsafe, unittest.isTrue); | 1536 unittest.expect(o.threadsafe, unittest.isTrue); |
1537 unittest.expect(o.vm, unittest.isTrue); | 1537 unittest.expect(o.vm, unittest.isTrue); |
1538 } | 1538 } |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2177 checkLocation(response); | 2177 checkLocation(response); |
2178 }))); | 2178 }))); |
2179 }); | 2179 }); |
2180 | 2180 |
2181 unittest.test("method--list", () { | 2181 unittest.test("method--list", () { |
2182 | 2182 |
2183 var mock = new HttpServerMock(); | 2183 var mock = new HttpServerMock(); |
2184 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; | 2184 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; |
2185 var arg_appsId = "foo"; | 2185 var arg_appsId = "foo"; |
2186 var arg_filter = "foo"; | 2186 var arg_filter = "foo"; |
| 2187 var arg_pageToken = "foo"; |
2187 var arg_pageSize = 42; | 2188 var arg_pageSize = 42; |
2188 var arg_pageToken = "foo"; | |
2189 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2189 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2190 var path = (req.url).path; | 2190 var path = (req.url).path; |
2191 var pathOffset = 0; | 2191 var pathOffset = 0; |
2192 var index; | 2192 var index; |
2193 var subPart; | 2193 var subPart; |
2194 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2194 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2195 pathOffset += 1; | 2195 pathOffset += 1; |
2196 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta5/apps/")); | 2196 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta5/apps/")); |
2197 pathOffset += 13; | 2197 pathOffset += 13; |
2198 index = path.indexOf("/locations", pathOffset); | 2198 index = path.indexOf("/locations", pathOffset); |
(...skipping 14 matching lines...) Expand all Loading... |
2213 if (n == null) return null; | 2213 if (n == null) return null; |
2214 throw new core.ArgumentError("Invalid boolean: $n"); | 2214 throw new core.ArgumentError("Invalid boolean: $n"); |
2215 } | 2215 } |
2216 if (query.length > 0) { | 2216 if (query.length > 0) { |
2217 for (var part in query.split("&")) { | 2217 for (var part in query.split("&")) { |
2218 var keyvalue = part.split("="); | 2218 var keyvalue = part.split("="); |
2219 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2219 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2220 } | 2220 } |
2221 } | 2221 } |
2222 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2222 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 2223 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2223 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2224 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2224 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2225 | 2225 |
2226 | 2226 |
2227 var h = { | 2227 var h = { |
2228 "content-type" : "application/json; charset=utf-8", | 2228 "content-type" : "application/json; charset=utf-8", |
2229 }; | 2229 }; |
2230 var resp = convert.JSON.encode(buildListLocationsResponse()); | 2230 var resp = convert.JSON.encode(buildListLocationsResponse()); |
2231 return new async.Future.value(stringResponse(200, h, resp)); | 2231 return new async.Future.value(stringResponse(200, h, resp)); |
2232 }), true); | 2232 }), true); |
2233 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListLocationsResponse response)
{ | 2233 res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync(((api.ListLocationsResponse response)
{ |
2234 checkListLocationsResponse(response); | 2234 checkListLocationsResponse(response); |
2235 }))); | 2235 }))); |
2236 }); | 2236 }); |
2237 | 2237 |
2238 }); | 2238 }); |
2239 | 2239 |
2240 | 2240 |
2241 unittest.group("resource-AppsOperationsResourceApi", () { | 2241 unittest.group("resource-AppsOperationsResourceApi", () { |
2242 unittest.test("method--get", () { | 2242 unittest.test("method--get", () { |
2243 | 2243 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2292 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Oper
ation response) { | 2292 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Oper
ation response) { |
2293 checkOperation(response); | 2293 checkOperation(response); |
2294 }))); | 2294 }))); |
2295 }); | 2295 }); |
2296 | 2296 |
2297 unittest.test("method--list", () { | 2297 unittest.test("method--list", () { |
2298 | 2298 |
2299 var mock = new HttpServerMock(); | 2299 var mock = new HttpServerMock(); |
2300 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat
ions; | 2300 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat
ions; |
2301 var arg_appsId = "foo"; | 2301 var arg_appsId = "foo"; |
| 2302 var arg_pageToken = "foo"; |
| 2303 var arg_pageSize = 42; |
2302 var arg_filter = "foo"; | 2304 var arg_filter = "foo"; |
2303 var arg_pageSize = 42; | |
2304 var arg_pageToken = "foo"; | |
2305 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2305 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2306 var path = (req.url).path; | 2306 var path = (req.url).path; |
2307 var pathOffset = 0; | 2307 var pathOffset = 0; |
2308 var index; | 2308 var index; |
2309 var subPart; | 2309 var subPart; |
2310 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2310 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2311 pathOffset += 1; | 2311 pathOffset += 1; |
2312 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta5/apps/")); | 2312 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta5/apps/")); |
2313 pathOffset += 13; | 2313 pathOffset += 13; |
2314 index = path.indexOf("/operations", pathOffset); | 2314 index = path.indexOf("/operations", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
2328 if (n == "false") return false; | 2328 if (n == "false") return false; |
2329 if (n == null) return null; | 2329 if (n == null) return null; |
2330 throw new core.ArgumentError("Invalid boolean: $n"); | 2330 throw new core.ArgumentError("Invalid boolean: $n"); |
2331 } | 2331 } |
2332 if (query.length > 0) { | 2332 if (query.length > 0) { |
2333 for (var part in query.split("&")) { | 2333 for (var part in query.split("&")) { |
2334 var keyvalue = part.split("="); | 2334 var keyvalue = part.split("="); |
2335 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2335 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2336 } | 2336 } |
2337 } | 2337 } |
| 2338 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2339 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2338 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2340 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2339 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2340 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2341 | 2341 |
2342 | 2342 |
2343 var h = { | 2343 var h = { |
2344 "content-type" : "application/json; charset=utf-8", | 2344 "content-type" : "application/json; charset=utf-8", |
2345 }; | 2345 }; |
2346 var resp = convert.JSON.encode(buildListOperationsResponse()); | 2346 var resp = convert.JSON.encode(buildListOperationsResponse()); |
2347 return new async.Future.value(stringResponse(200, h, resp)); | 2347 return new async.Future.value(stringResponse(200, h, resp)); |
2348 }), true); | 2348 }), true); |
2349 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { | 2349 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, fil
ter: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse response
) { |
2350 checkListOperationsResponse(response); | 2350 checkListOperationsResponse(response); |
2351 }))); | 2351 }))); |
2352 }); | 2352 }); |
2353 | 2353 |
2354 }); | 2354 }); |
2355 | 2355 |
2356 | 2356 |
2357 unittest.group("resource-AppsServicesResourceApi", () { | 2357 unittest.group("resource-AppsServicesResourceApi", () { |
2358 unittest.test("method--delete", () { | 2358 unittest.test("method--delete", () { |
2359 | 2359 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2463 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Servic
e response) { | 2463 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Servic
e response) { |
2464 checkService(response); | 2464 checkService(response); |
2465 }))); | 2465 }))); |
2466 }); | 2466 }); |
2467 | 2467 |
2468 unittest.test("method--list", () { | 2468 unittest.test("method--list", () { |
2469 | 2469 |
2470 var mock = new HttpServerMock(); | 2470 var mock = new HttpServerMock(); |
2471 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; | 2471 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; |
2472 var arg_appsId = "foo"; | 2472 var arg_appsId = "foo"; |
| 2473 var arg_pageToken = "foo"; |
2473 var arg_pageSize = 42; | 2474 var arg_pageSize = 42; |
2474 var arg_pageToken = "foo"; | |
2475 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2475 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2476 var path = (req.url).path; | 2476 var path = (req.url).path; |
2477 var pathOffset = 0; | 2477 var pathOffset = 0; |
2478 var index; | 2478 var index; |
2479 var subPart; | 2479 var subPart; |
2480 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2480 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2481 pathOffset += 1; | 2481 pathOffset += 1; |
2482 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta5/apps/")); | 2482 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta5/apps/")); |
2483 pathOffset += 13; | 2483 pathOffset += 13; |
2484 index = path.indexOf("/services", pathOffset); | 2484 index = path.indexOf("/services", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
2498 if (n == "false") return false; | 2498 if (n == "false") return false; |
2499 if (n == null) return null; | 2499 if (n == null) return null; |
2500 throw new core.ArgumentError("Invalid boolean: $n"); | 2500 throw new core.ArgumentError("Invalid boolean: $n"); |
2501 } | 2501 } |
2502 if (query.length > 0) { | 2502 if (query.length > 0) { |
2503 for (var part in query.split("&")) { | 2503 for (var part in query.split("&")) { |
2504 var keyvalue = part.split("="); | 2504 var keyvalue = part.split("="); |
2505 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2505 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2506 } | 2506 } |
2507 } | 2507 } |
| 2508 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2508 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2509 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2509 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2510 | 2510 |
2511 | 2511 |
2512 var h = { | 2512 var h = { |
2513 "content-type" : "application/json; charset=utf-8", | 2513 "content-type" : "application/json; charset=utf-8", |
2514 }; | 2514 }; |
2515 var resp = convert.JSON.encode(buildListServicesResponse()); | 2515 var resp = convert.JSON.encode(buildListServicesResponse()); |
2516 return new async.Future.value(stringResponse(200, h, resp)); | 2516 return new async.Future.value(stringResponse(200, h, resp)); |
2517 }), true); | 2517 }), true); |
2518 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ListServicesResponse response) { | 2518 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the
n(unittest.expectAsync(((api.ListServicesResponse response) { |
2519 checkListServicesResponse(response); | 2519 checkListServicesResponse(response); |
2520 }))); | 2520 }))); |
2521 }); | 2521 }); |
2522 | 2522 |
2523 unittest.test("method--patch", () { | 2523 unittest.test("method--patch", () { |
2524 | 2524 |
2525 var mock = new HttpServerMock(); | 2525 var mock = new HttpServerMock(); |
2526 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; | 2526 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; |
2527 var arg_request = buildService(); | 2527 var arg_request = buildService(); |
2528 var arg_appsId = "foo"; | 2528 var arg_appsId = "foo"; |
2529 var arg_servicesId = "foo"; | 2529 var arg_servicesId = "foo"; |
| 2530 var arg_migrateTraffic = true; |
2530 var arg_mask = "foo"; | 2531 var arg_mask = "foo"; |
2531 var arg_migrateTraffic = true; | |
2532 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2532 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2533 var obj = new api.Service.fromJson(json); | 2533 var obj = new api.Service.fromJson(json); |
2534 checkService(obj); | 2534 checkService(obj); |
2535 | 2535 |
2536 var path = (req.url).path; | 2536 var path = (req.url).path; |
2537 var pathOffset = 0; | 2537 var pathOffset = 0; |
2538 var index; | 2538 var index; |
2539 var subPart; | 2539 var subPart; |
2540 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2540 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2541 pathOffset += 1; | 2541 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
2561 if (n == "false") return false; | 2561 if (n == "false") return false; |
2562 if (n == null) return null; | 2562 if (n == null) return null; |
2563 throw new core.ArgumentError("Invalid boolean: $n"); | 2563 throw new core.ArgumentError("Invalid boolean: $n"); |
2564 } | 2564 } |
2565 if (query.length > 0) { | 2565 if (query.length > 0) { |
2566 for (var part in query.split("&")) { | 2566 for (var part in query.split("&")) { |
2567 var keyvalue = part.split("="); | 2567 var keyvalue = part.split("="); |
2568 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2568 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2569 } | 2569 } |
2570 } | 2570 } |
| 2571 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_
migrateTraffic")); |
2571 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask)); | 2572 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask)); |
2572 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_
migrateTraffic")); | |
2573 | 2573 |
2574 | 2574 |
2575 var h = { | 2575 var h = { |
2576 "content-type" : "application/json; charset=utf-8", | 2576 "content-type" : "application/json; charset=utf-8", |
2577 }; | 2577 }; |
2578 var resp = convert.JSON.encode(buildOperation()); | 2578 var resp = convert.JSON.encode(buildOperation()); |
2579 return new async.Future.value(stringResponse(200, h, resp)); | 2579 return new async.Future.value(stringResponse(200, h, resp)); |
2580 }), true); | 2580 }), true); |
2581 res.patch(arg_request, arg_appsId, arg_servicesId, mask: arg_mask, migrate
Traffic: arg_migrateTraffic).then(unittest.expectAsync(((api.Operation response)
{ | 2581 res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_mig
rateTraffic, mask: arg_mask).then(unittest.expectAsync(((api.Operation response)
{ |
2582 checkOperation(response); | 2582 checkOperation(response); |
2583 }))); | 2583 }))); |
2584 }); | 2584 }); |
2585 | 2585 |
2586 }); | 2586 }); |
2587 | 2587 |
2588 | 2588 |
2589 unittest.group("resource-AppsServicesVersionsResourceApi", () { | 2589 unittest.group("resource-AppsServicesVersionsResourceApi", () { |
2590 unittest.test("method--create", () { | 2590 unittest.test("method--create", () { |
2591 | 2591 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2777 checkVersion(response); | 2777 checkVersion(response); |
2778 }))); | 2778 }))); |
2779 }); | 2779 }); |
2780 | 2780 |
2781 unittest.test("method--list", () { | 2781 unittest.test("method--list", () { |
2782 | 2782 |
2783 var mock = new HttpServerMock(); | 2783 var mock = new HttpServerMock(); |
2784 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.
services.versions; | 2784 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.
services.versions; |
2785 var arg_appsId = "foo"; | 2785 var arg_appsId = "foo"; |
2786 var arg_servicesId = "foo"; | 2786 var arg_servicesId = "foo"; |
| 2787 var arg_pageToken = "foo"; |
| 2788 var arg_pageSize = 42; |
2787 var arg_view = "foo"; | 2789 var arg_view = "foo"; |
2788 var arg_pageSize = 42; | |
2789 var arg_pageToken = "foo"; | |
2790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2791 var path = (req.url).path; | 2791 var path = (req.url).path; |
2792 var pathOffset = 0; | 2792 var pathOffset = 0; |
2793 var index; | 2793 var index; |
2794 var subPart; | 2794 var subPart; |
2795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2796 pathOffset += 1; | 2796 pathOffset += 1; |
2797 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta5/apps/")); | 2797 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta5/apps/")); |
2798 pathOffset += 13; | 2798 pathOffset += 13; |
2799 index = path.indexOf("/services/", pathOffset); | 2799 index = path.indexOf("/services/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
2820 if (n == "false") return false; | 2820 if (n == "false") return false; |
2821 if (n == null) return null; | 2821 if (n == null) return null; |
2822 throw new core.ArgumentError("Invalid boolean: $n"); | 2822 throw new core.ArgumentError("Invalid boolean: $n"); |
2823 } | 2823 } |
2824 if (query.length > 0) { | 2824 if (query.length > 0) { |
2825 for (var part in query.split("&")) { | 2825 for (var part in query.split("&")) { |
2826 var keyvalue = part.split("="); | 2826 var keyvalue = part.split("="); |
2827 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2827 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2828 } | 2828 } |
2829 } | 2829 } |
| 2830 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2831 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2830 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 2832 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
2831 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2832 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2833 | 2833 |
2834 | 2834 |
2835 var h = { | 2835 var h = { |
2836 "content-type" : "application/json; charset=utf-8", | 2836 "content-type" : "application/json; charset=utf-8", |
2837 }; | 2837 }; |
2838 var resp = convert.JSON.encode(buildListVersionsResponse()); | 2838 var resp = convert.JSON.encode(buildListVersionsResponse()); |
2839 return new async.Future.value(stringResponse(200, h, resp)); | 2839 return new async.Future.value(stringResponse(200, h, resp)); |
2840 }), true); | 2840 }), true); |
2841 res.list(arg_appsId, arg_servicesId, view: arg_view, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListVersionsRespons
e response) { | 2841 res.list(arg_appsId, arg_servicesId, pageToken: arg_pageToken, pageSize: a
rg_pageSize, view: arg_view).then(unittest.expectAsync(((api.ListVersionsRespons
e response) { |
2842 checkListVersionsResponse(response); | 2842 checkListVersionsResponse(response); |
2843 }))); | 2843 }))); |
2844 }); | 2844 }); |
2845 | 2845 |
2846 unittest.test("method--patch", () { | 2846 unittest.test("method--patch", () { |
2847 | 2847 |
2848 var mock = new HttpServerMock(); | 2848 var mock = new HttpServerMock(); |
2849 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.
services.versions; | 2849 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.
services.versions; |
2850 var arg_request = buildVersion(); | 2850 var arg_request = buildVersion(); |
2851 var arg_appsId = "foo"; | 2851 var arg_appsId = "foo"; |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3137 }))); | 3137 }))); |
3138 }); | 3138 }); |
3139 | 3139 |
3140 unittest.test("method--list", () { | 3140 unittest.test("method--list", () { |
3141 | 3141 |
3142 var mock = new HttpServerMock(); | 3142 var mock = new HttpServerMock(); |
3143 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo
ck).apps.services.versions.instances; | 3143 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo
ck).apps.services.versions.instances; |
3144 var arg_appsId = "foo"; | 3144 var arg_appsId = "foo"; |
3145 var arg_servicesId = "foo"; | 3145 var arg_servicesId = "foo"; |
3146 var arg_versionsId = "foo"; | 3146 var arg_versionsId = "foo"; |
| 3147 var arg_pageToken = "foo"; |
3147 var arg_pageSize = 42; | 3148 var arg_pageSize = 42; |
3148 var arg_pageToken = "foo"; | |
3149 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3149 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3150 var path = (req.url).path; | 3150 var path = (req.url).path; |
3151 var pathOffset = 0; | 3151 var pathOffset = 0; |
3152 var index; | 3152 var index; |
3153 var subPart; | 3153 var subPart; |
3154 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3154 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3155 pathOffset += 1; | 3155 pathOffset += 1; |
3156 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta5/apps/")); | 3156 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta5/apps/")); |
3157 pathOffset += 13; | 3157 pathOffset += 13; |
3158 index = path.indexOf("/services/", pathOffset); | 3158 index = path.indexOf("/services/", pathOffset); |
(...skipping 27 matching lines...) Expand all Loading... |
3186 if (n == "false") return false; | 3186 if (n == "false") return false; |
3187 if (n == null) return null; | 3187 if (n == null) return null; |
3188 throw new core.ArgumentError("Invalid boolean: $n"); | 3188 throw new core.ArgumentError("Invalid boolean: $n"); |
3189 } | 3189 } |
3190 if (query.length > 0) { | 3190 if (query.length > 0) { |
3191 for (var part in query.split("&")) { | 3191 for (var part in query.split("&")) { |
3192 var keyvalue = part.split("="); | 3192 var keyvalue = part.split("="); |
3193 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3193 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3194 } | 3194 } |
3195 } | 3195 } |
| 3196 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3196 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 3197 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3197 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
3198 | 3198 |
3199 | 3199 |
3200 var h = { | 3200 var h = { |
3201 "content-type" : "application/json; charset=utf-8", | 3201 "content-type" : "application/json; charset=utf-8", |
3202 }; | 3202 }; |
3203 var resp = convert.JSON.encode(buildListInstancesResponse()); | 3203 var resp = convert.JSON.encode(buildListInstancesResponse()); |
3204 return new async.Future.value(stringResponse(200, h, resp)); | 3204 return new async.Future.value(stringResponse(200, h, resp)); |
3205 }), true); | 3205 }), true); |
3206 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { | 3206 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageTo
ken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { |
3207 checkListInstancesResponse(response); | 3207 checkListInstancesResponse(response); |
3208 }))); | 3208 }))); |
3209 }); | 3209 }); |
3210 | 3210 |
3211 }); | 3211 }); |
3212 | 3212 |
3213 | 3213 |
3214 } | 3214 } |
3215 | 3215 |
OLD | NEW |