OLD | NEW |
1 library googleapis_beta.appengine.v1beta4.test; | 1 library googleapis_beta.appengine.v1beta4.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 buildUnnamed3524() { | 100 buildUnnamed3507() { |
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 checkUnnamed3524(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed3507(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 = buildUnnamed3524(); | 123 o.dispatchRules = buildUnnamed3507(); |
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 checkUnnamed3524(o.dispatchRules); | 141 checkUnnamed3507(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 buildUnnamed3525() { | 271 buildUnnamed3508() { |
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 checkUnnamed3525(core.Map<core.String, api.FileInfo> o) { | 278 checkUnnamed3508(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 buildUnnamed3526() { | 284 buildUnnamed3509() { |
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 checkUnnamed3526(core.List<api.SourceReference> o) { | 291 checkUnnamed3509(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 = buildUnnamed3525(); | 303 o.files = buildUnnamed3508(); |
304 o.sourceReferences = buildUnnamed3526(); | 304 o.sourceReferences = buildUnnamed3509(); |
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 checkUnnamed3525(o.files); | 314 checkUnnamed3508(o.files); |
315 checkUnnamed3526(o.sourceReferences); | 315 checkUnnamed3509(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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 | 507 |
508 checkLibrary(api.Library o) { | 508 checkLibrary(api.Library o) { |
509 buildCounterLibrary++; | 509 buildCounterLibrary++; |
510 if (buildCounterLibrary < 3) { | 510 if (buildCounterLibrary < 3) { |
511 unittest.expect(o.name, unittest.equals('foo')); | 511 unittest.expect(o.name, unittest.equals('foo')); |
512 unittest.expect(o.version, unittest.equals('foo')); | 512 unittest.expect(o.version, unittest.equals('foo')); |
513 } | 513 } |
514 buildCounterLibrary--; | 514 buildCounterLibrary--; |
515 } | 515 } |
516 | 516 |
517 buildUnnamed3527() { | 517 buildUnnamed3510() { |
518 var o = new core.List<api.Instance>(); | 518 var o = new core.List<api.Instance>(); |
519 o.add(buildInstance()); | 519 o.add(buildInstance()); |
520 o.add(buildInstance()); | 520 o.add(buildInstance()); |
521 return o; | 521 return o; |
522 } | 522 } |
523 | 523 |
524 checkUnnamed3527(core.List<api.Instance> o) { | 524 checkUnnamed3510(core.List<api.Instance> o) { |
525 unittest.expect(o, unittest.hasLength(2)); | 525 unittest.expect(o, unittest.hasLength(2)); |
526 checkInstance(o[0]); | 526 checkInstance(o[0]); |
527 checkInstance(o[1]); | 527 checkInstance(o[1]); |
528 } | 528 } |
529 | 529 |
530 core.int buildCounterListInstancesResponse = 0; | 530 core.int buildCounterListInstancesResponse = 0; |
531 buildListInstancesResponse() { | 531 buildListInstancesResponse() { |
532 var o = new api.ListInstancesResponse(); | 532 var o = new api.ListInstancesResponse(); |
533 buildCounterListInstancesResponse++; | 533 buildCounterListInstancesResponse++; |
534 if (buildCounterListInstancesResponse < 3) { | 534 if (buildCounterListInstancesResponse < 3) { |
535 o.instances = buildUnnamed3527(); | 535 o.instances = buildUnnamed3510(); |
536 o.nextPageToken = "foo"; | 536 o.nextPageToken = "foo"; |
537 } | 537 } |
538 buildCounterListInstancesResponse--; | 538 buildCounterListInstancesResponse--; |
539 return o; | 539 return o; |
540 } | 540 } |
541 | 541 |
542 checkListInstancesResponse(api.ListInstancesResponse o) { | 542 checkListInstancesResponse(api.ListInstancesResponse o) { |
543 buildCounterListInstancesResponse++; | 543 buildCounterListInstancesResponse++; |
544 if (buildCounterListInstancesResponse < 3) { | 544 if (buildCounterListInstancesResponse < 3) { |
545 checkUnnamed3527(o.instances); | 545 checkUnnamed3510(o.instances); |
546 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 546 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
547 } | 547 } |
548 buildCounterListInstancesResponse--; | 548 buildCounterListInstancesResponse--; |
549 } | 549 } |
550 | 550 |
551 buildUnnamed3528() { | 551 buildUnnamed3511() { |
552 var o = new core.List<api.Location>(); | 552 var o = new core.List<api.Location>(); |
553 o.add(buildLocation()); | 553 o.add(buildLocation()); |
554 o.add(buildLocation()); | 554 o.add(buildLocation()); |
555 return o; | 555 return o; |
556 } | 556 } |
557 | 557 |
558 checkUnnamed3528(core.List<api.Location> o) { | 558 checkUnnamed3511(core.List<api.Location> o) { |
559 unittest.expect(o, unittest.hasLength(2)); | 559 unittest.expect(o, unittest.hasLength(2)); |
560 checkLocation(o[0]); | 560 checkLocation(o[0]); |
561 checkLocation(o[1]); | 561 checkLocation(o[1]); |
562 } | 562 } |
563 | 563 |
564 core.int buildCounterListLocationsResponse = 0; | 564 core.int buildCounterListLocationsResponse = 0; |
565 buildListLocationsResponse() { | 565 buildListLocationsResponse() { |
566 var o = new api.ListLocationsResponse(); | 566 var o = new api.ListLocationsResponse(); |
567 buildCounterListLocationsResponse++; | 567 buildCounterListLocationsResponse++; |
568 if (buildCounterListLocationsResponse < 3) { | 568 if (buildCounterListLocationsResponse < 3) { |
569 o.locations = buildUnnamed3528(); | 569 o.locations = buildUnnamed3511(); |
570 o.nextPageToken = "foo"; | 570 o.nextPageToken = "foo"; |
571 } | 571 } |
572 buildCounterListLocationsResponse--; | 572 buildCounterListLocationsResponse--; |
573 return o; | 573 return o; |
574 } | 574 } |
575 | 575 |
576 checkListLocationsResponse(api.ListLocationsResponse o) { | 576 checkListLocationsResponse(api.ListLocationsResponse o) { |
577 buildCounterListLocationsResponse++; | 577 buildCounterListLocationsResponse++; |
578 if (buildCounterListLocationsResponse < 3) { | 578 if (buildCounterListLocationsResponse < 3) { |
579 checkUnnamed3528(o.locations); | 579 checkUnnamed3511(o.locations); |
580 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 580 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
581 } | 581 } |
582 buildCounterListLocationsResponse--; | 582 buildCounterListLocationsResponse--; |
583 } | 583 } |
584 | 584 |
585 buildUnnamed3529() { | 585 buildUnnamed3512() { |
586 var o = new core.List<api.Module>(); | 586 var o = new core.List<api.Module>(); |
587 o.add(buildModule()); | 587 o.add(buildModule()); |
588 o.add(buildModule()); | 588 o.add(buildModule()); |
589 return o; | 589 return o; |
590 } | 590 } |
591 | 591 |
592 checkUnnamed3529(core.List<api.Module> o) { | 592 checkUnnamed3512(core.List<api.Module> o) { |
593 unittest.expect(o, unittest.hasLength(2)); | 593 unittest.expect(o, unittest.hasLength(2)); |
594 checkModule(o[0]); | 594 checkModule(o[0]); |
595 checkModule(o[1]); | 595 checkModule(o[1]); |
596 } | 596 } |
597 | 597 |
598 core.int buildCounterListModulesResponse = 0; | 598 core.int buildCounterListModulesResponse = 0; |
599 buildListModulesResponse() { | 599 buildListModulesResponse() { |
600 var o = new api.ListModulesResponse(); | 600 var o = new api.ListModulesResponse(); |
601 buildCounterListModulesResponse++; | 601 buildCounterListModulesResponse++; |
602 if (buildCounterListModulesResponse < 3) { | 602 if (buildCounterListModulesResponse < 3) { |
603 o.modules = buildUnnamed3529(); | 603 o.modules = buildUnnamed3512(); |
604 o.nextPageToken = "foo"; | 604 o.nextPageToken = "foo"; |
605 } | 605 } |
606 buildCounterListModulesResponse--; | 606 buildCounterListModulesResponse--; |
607 return o; | 607 return o; |
608 } | 608 } |
609 | 609 |
610 checkListModulesResponse(api.ListModulesResponse o) { | 610 checkListModulesResponse(api.ListModulesResponse o) { |
611 buildCounterListModulesResponse++; | 611 buildCounterListModulesResponse++; |
612 if (buildCounterListModulesResponse < 3) { | 612 if (buildCounterListModulesResponse < 3) { |
613 checkUnnamed3529(o.modules); | 613 checkUnnamed3512(o.modules); |
614 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 614 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
615 } | 615 } |
616 buildCounterListModulesResponse--; | 616 buildCounterListModulesResponse--; |
617 } | 617 } |
618 | 618 |
619 buildUnnamed3530() { | 619 buildUnnamed3513() { |
620 var o = new core.List<api.Operation>(); | 620 var o = new core.List<api.Operation>(); |
621 o.add(buildOperation()); | 621 o.add(buildOperation()); |
622 o.add(buildOperation()); | 622 o.add(buildOperation()); |
623 return o; | 623 return o; |
624 } | 624 } |
625 | 625 |
626 checkUnnamed3530(core.List<api.Operation> o) { | 626 checkUnnamed3513(core.List<api.Operation> o) { |
627 unittest.expect(o, unittest.hasLength(2)); | 627 unittest.expect(o, unittest.hasLength(2)); |
628 checkOperation(o[0]); | 628 checkOperation(o[0]); |
629 checkOperation(o[1]); | 629 checkOperation(o[1]); |
630 } | 630 } |
631 | 631 |
632 core.int buildCounterListOperationsResponse = 0; | 632 core.int buildCounterListOperationsResponse = 0; |
633 buildListOperationsResponse() { | 633 buildListOperationsResponse() { |
634 var o = new api.ListOperationsResponse(); | 634 var o = new api.ListOperationsResponse(); |
635 buildCounterListOperationsResponse++; | 635 buildCounterListOperationsResponse++; |
636 if (buildCounterListOperationsResponse < 3) { | 636 if (buildCounterListOperationsResponse < 3) { |
637 o.nextPageToken = "foo"; | 637 o.nextPageToken = "foo"; |
638 o.operations = buildUnnamed3530(); | 638 o.operations = buildUnnamed3513(); |
639 } | 639 } |
640 buildCounterListOperationsResponse--; | 640 buildCounterListOperationsResponse--; |
641 return o; | 641 return o; |
642 } | 642 } |
643 | 643 |
644 checkListOperationsResponse(api.ListOperationsResponse o) { | 644 checkListOperationsResponse(api.ListOperationsResponse o) { |
645 buildCounterListOperationsResponse++; | 645 buildCounterListOperationsResponse++; |
646 if (buildCounterListOperationsResponse < 3) { | 646 if (buildCounterListOperationsResponse < 3) { |
647 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 647 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
648 checkUnnamed3530(o.operations); | 648 checkUnnamed3513(o.operations); |
649 } | 649 } |
650 buildCounterListOperationsResponse--; | 650 buildCounterListOperationsResponse--; |
651 } | 651 } |
652 | 652 |
653 buildUnnamed3531() { | 653 buildUnnamed3514() { |
654 var o = new core.List<api.Version>(); | 654 var o = new core.List<api.Version>(); |
655 o.add(buildVersion()); | 655 o.add(buildVersion()); |
656 o.add(buildVersion()); | 656 o.add(buildVersion()); |
657 return o; | 657 return o; |
658 } | 658 } |
659 | 659 |
660 checkUnnamed3531(core.List<api.Version> o) { | 660 checkUnnamed3514(core.List<api.Version> o) { |
661 unittest.expect(o, unittest.hasLength(2)); | 661 unittest.expect(o, unittest.hasLength(2)); |
662 checkVersion(o[0]); | 662 checkVersion(o[0]); |
663 checkVersion(o[1]); | 663 checkVersion(o[1]); |
664 } | 664 } |
665 | 665 |
666 core.int buildCounterListVersionsResponse = 0; | 666 core.int buildCounterListVersionsResponse = 0; |
667 buildListVersionsResponse() { | 667 buildListVersionsResponse() { |
668 var o = new api.ListVersionsResponse(); | 668 var o = new api.ListVersionsResponse(); |
669 buildCounterListVersionsResponse++; | 669 buildCounterListVersionsResponse++; |
670 if (buildCounterListVersionsResponse < 3) { | 670 if (buildCounterListVersionsResponse < 3) { |
671 o.nextPageToken = "foo"; | 671 o.nextPageToken = "foo"; |
672 o.versions = buildUnnamed3531(); | 672 o.versions = buildUnnamed3514(); |
673 } | 673 } |
674 buildCounterListVersionsResponse--; | 674 buildCounterListVersionsResponse--; |
675 return o; | 675 return o; |
676 } | 676 } |
677 | 677 |
678 checkListVersionsResponse(api.ListVersionsResponse o) { | 678 checkListVersionsResponse(api.ListVersionsResponse o) { |
679 buildCounterListVersionsResponse++; | 679 buildCounterListVersionsResponse++; |
680 if (buildCounterListVersionsResponse < 3) { | 680 if (buildCounterListVersionsResponse < 3) { |
681 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 681 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
682 checkUnnamed3531(o.versions); | 682 checkUnnamed3514(o.versions); |
683 } | 683 } |
684 buildCounterListVersionsResponse--; | 684 buildCounterListVersionsResponse--; |
685 } | 685 } |
686 | 686 |
687 buildUnnamed3532() { | 687 buildUnnamed3515() { |
688 var o = new core.Map<core.String, core.String>(); | 688 var o = new core.Map<core.String, core.String>(); |
689 o["x"] = "foo"; | 689 o["x"] = "foo"; |
690 o["y"] = "foo"; | 690 o["y"] = "foo"; |
691 return o; | 691 return o; |
692 } | 692 } |
693 | 693 |
694 checkUnnamed3532(core.Map<core.String, core.String> o) { | 694 checkUnnamed3515(core.Map<core.String, core.String> o) { |
695 unittest.expect(o, unittest.hasLength(2)); | 695 unittest.expect(o, unittest.hasLength(2)); |
696 unittest.expect(o["x"], unittest.equals('foo')); | 696 unittest.expect(o["x"], unittest.equals('foo')); |
697 unittest.expect(o["y"], unittest.equals('foo')); | 697 unittest.expect(o["y"], unittest.equals('foo')); |
698 } | 698 } |
699 | 699 |
700 buildUnnamed3533() { | 700 buildUnnamed3516() { |
701 var o = new core.Map<core.String, core.Object>(); | 701 var o = new core.Map<core.String, core.Object>(); |
702 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 702 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
703 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 703 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
704 return o; | 704 return o; |
705 } | 705 } |
706 | 706 |
707 checkUnnamed3533(core.Map<core.String, core.Object> o) { | 707 checkUnnamed3516(core.Map<core.String, core.Object> o) { |
708 unittest.expect(o, unittest.hasLength(2)); | 708 unittest.expect(o, unittest.hasLength(2)); |
709 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')); | 709 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')); |
710 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')); | 710 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')); |
711 } | 711 } |
712 | 712 |
713 core.int buildCounterLocation = 0; | 713 core.int buildCounterLocation = 0; |
714 buildLocation() { | 714 buildLocation() { |
715 var o = new api.Location(); | 715 var o = new api.Location(); |
716 buildCounterLocation++; | 716 buildCounterLocation++; |
717 if (buildCounterLocation < 3) { | 717 if (buildCounterLocation < 3) { |
718 o.labels = buildUnnamed3532(); | 718 o.labels = buildUnnamed3515(); |
719 o.locationId = "foo"; | 719 o.locationId = "foo"; |
720 o.metadata = buildUnnamed3533(); | 720 o.metadata = buildUnnamed3516(); |
721 o.name = "foo"; | 721 o.name = "foo"; |
722 } | 722 } |
723 buildCounterLocation--; | 723 buildCounterLocation--; |
724 return o; | 724 return o; |
725 } | 725 } |
726 | 726 |
727 checkLocation(api.Location o) { | 727 checkLocation(api.Location o) { |
728 buildCounterLocation++; | 728 buildCounterLocation++; |
729 if (buildCounterLocation < 3) { | 729 if (buildCounterLocation < 3) { |
730 checkUnnamed3532(o.labels); | 730 checkUnnamed3515(o.labels); |
731 unittest.expect(o.locationId, unittest.equals('foo')); | 731 unittest.expect(o.locationId, unittest.equals('foo')); |
732 checkUnnamed3533(o.metadata); | 732 checkUnnamed3516(o.metadata); |
733 unittest.expect(o.name, unittest.equals('foo')); | 733 unittest.expect(o.name, unittest.equals('foo')); |
734 } | 734 } |
735 buildCounterLocation--; | 735 buildCounterLocation--; |
736 } | 736 } |
737 | 737 |
738 core.int buildCounterLocationMetadata = 0; | 738 core.int buildCounterLocationMetadata = 0; |
739 buildLocationMetadata() { | 739 buildLocationMetadata() { |
740 var o = new api.LocationMetadata(); | 740 var o = new api.LocationMetadata(); |
741 buildCounterLocationMetadata++; | 741 buildCounterLocationMetadata++; |
742 if (buildCounterLocationMetadata < 3) { | 742 if (buildCounterLocationMetadata < 3) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 checkModule(api.Module o) { | 791 checkModule(api.Module o) { |
792 buildCounterModule++; | 792 buildCounterModule++; |
793 if (buildCounterModule < 3) { | 793 if (buildCounterModule < 3) { |
794 unittest.expect(o.id, unittest.equals('foo')); | 794 unittest.expect(o.id, unittest.equals('foo')); |
795 unittest.expect(o.name, unittest.equals('foo')); | 795 unittest.expect(o.name, unittest.equals('foo')); |
796 checkTrafficSplit(o.split); | 796 checkTrafficSplit(o.split); |
797 } | 797 } |
798 buildCounterModule--; | 798 buildCounterModule--; |
799 } | 799 } |
800 | 800 |
801 buildUnnamed3534() { | 801 buildUnnamed3517() { |
802 var o = new core.List<core.String>(); | 802 var o = new core.List<core.String>(); |
803 o.add("foo"); | 803 o.add("foo"); |
804 o.add("foo"); | 804 o.add("foo"); |
805 return o; | 805 return o; |
806 } | 806 } |
807 | 807 |
808 checkUnnamed3534(core.List<core.String> o) { | 808 checkUnnamed3517(core.List<core.String> o) { |
809 unittest.expect(o, unittest.hasLength(2)); | 809 unittest.expect(o, unittest.hasLength(2)); |
810 unittest.expect(o[0], unittest.equals('foo')); | 810 unittest.expect(o[0], unittest.equals('foo')); |
811 unittest.expect(o[1], unittest.equals('foo')); | 811 unittest.expect(o[1], unittest.equals('foo')); |
812 } | 812 } |
813 | 813 |
814 core.int buildCounterNetwork = 0; | 814 core.int buildCounterNetwork = 0; |
815 buildNetwork() { | 815 buildNetwork() { |
816 var o = new api.Network(); | 816 var o = new api.Network(); |
817 buildCounterNetwork++; | 817 buildCounterNetwork++; |
818 if (buildCounterNetwork < 3) { | 818 if (buildCounterNetwork < 3) { |
819 o.forwardedPorts = buildUnnamed3534(); | 819 o.forwardedPorts = buildUnnamed3517(); |
820 o.instanceTag = "foo"; | 820 o.instanceTag = "foo"; |
821 o.name = "foo"; | 821 o.name = "foo"; |
822 } | 822 } |
823 buildCounterNetwork--; | 823 buildCounterNetwork--; |
824 return o; | 824 return o; |
825 } | 825 } |
826 | 826 |
827 checkNetwork(api.Network o) { | 827 checkNetwork(api.Network o) { |
828 buildCounterNetwork++; | 828 buildCounterNetwork++; |
829 if (buildCounterNetwork < 3) { | 829 if (buildCounterNetwork < 3) { |
830 checkUnnamed3534(o.forwardedPorts); | 830 checkUnnamed3517(o.forwardedPorts); |
831 unittest.expect(o.instanceTag, unittest.equals('foo')); | 831 unittest.expect(o.instanceTag, unittest.equals('foo')); |
832 unittest.expect(o.name, unittest.equals('foo')); | 832 unittest.expect(o.name, 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(); |
840 buildCounterNetworkUtilization++; | 840 buildCounterNetworkUtilization++; |
(...skipping 11 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 buildUnnamed3535() { | 862 buildUnnamed3518() { |
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 checkUnnamed3535(core.Map<core.String, core.Object> o) { | 869 checkUnnamed3518(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 buildUnnamed3536() { | 875 buildUnnamed3519() { |
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 checkUnnamed3536(core.Map<core.String, core.Object> o) { | 882 checkUnnamed3519(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 = buildUnnamed3535(); | 895 o.metadata = buildUnnamed3518(); |
896 o.name = "foo"; | 896 o.name = "foo"; |
897 o.response = buildUnnamed3536(); | 897 o.response = buildUnnamed3519(); |
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 checkUnnamed3535(o.metadata); | 908 checkUnnamed3518(o.metadata); |
909 unittest.expect(o.name, unittest.equals('foo')); | 909 unittest.expect(o.name, unittest.equals('foo')); |
910 checkUnnamed3536(o.response); | 910 checkUnnamed3519(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 buildUnnamed3537() { | 971 buildUnnamed3520() { |
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 checkUnnamed3537(core.List<core.String> o) { | 978 checkUnnamed3520(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 = buildUnnamed3537(); | 995 o.warning = buildUnnamed3520(); |
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 checkUnnamed3537(o.warning); | 1010 checkUnnamed3520(o.warning); |
1011 } | 1011 } |
1012 buildCounterOperationMetadataV1--; | 1012 buildCounterOperationMetadataV1--; |
1013 } | 1013 } |
1014 | 1014 |
1015 buildUnnamed3538() { | 1015 buildUnnamed3521() { |
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 checkUnnamed3538(core.List<core.String> o) { | 1022 checkUnnamed3521(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 = buildUnnamed3538(); | 1039 o.warning = buildUnnamed3521(); |
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 checkUnnamed3538(o.warning); | 1054 checkUnnamed3521(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 buildUnnamed3539() { | 1107 buildUnnamed3522() { |
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 checkUnnamed3539(core.List<api.Volume> o) { | 1114 checkUnnamed3522(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 = buildUnnamed3539(); | 1128 o.volumes = buildUnnamed3522(); |
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 checkUnnamed3539(o.volumes); | 1140 checkUnnamed3522(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 24 matching lines...) Expand all Loading... |
1175 | 1175 |
1176 checkSourceReference(api.SourceReference o) { | 1176 checkSourceReference(api.SourceReference o) { |
1177 buildCounterSourceReference++; | 1177 buildCounterSourceReference++; |
1178 if (buildCounterSourceReference < 3) { | 1178 if (buildCounterSourceReference < 3) { |
1179 unittest.expect(o.repository, unittest.equals('foo')); | 1179 unittest.expect(o.repository, unittest.equals('foo')); |
1180 unittest.expect(o.revisionId, unittest.equals('foo')); | 1180 unittest.expect(o.revisionId, unittest.equals('foo')); |
1181 } | 1181 } |
1182 buildCounterSourceReference--; | 1182 buildCounterSourceReference--; |
1183 } | 1183 } |
1184 | 1184 |
1185 buildUnnamed3540() { | 1185 buildUnnamed3523() { |
1186 var o = new core.Map<core.String, core.String>(); | 1186 var o = new core.Map<core.String, core.String>(); |
1187 o["x"] = "foo"; | 1187 o["x"] = "foo"; |
1188 o["y"] = "foo"; | 1188 o["y"] = "foo"; |
1189 return o; | 1189 return o; |
1190 } | 1190 } |
1191 | 1191 |
1192 checkUnnamed3540(core.Map<core.String, core.String> o) { | 1192 checkUnnamed3523(core.Map<core.String, core.String> o) { |
1193 unittest.expect(o, unittest.hasLength(2)); | 1193 unittest.expect(o, unittest.hasLength(2)); |
1194 unittest.expect(o["x"], unittest.equals('foo')); | 1194 unittest.expect(o["x"], unittest.equals('foo')); |
1195 unittest.expect(o["y"], unittest.equals('foo')); | 1195 unittest.expect(o["y"], unittest.equals('foo')); |
1196 } | 1196 } |
1197 | 1197 |
1198 core.int buildCounterStaticDirectoryHandler = 0; | 1198 core.int buildCounterStaticDirectoryHandler = 0; |
1199 buildStaticDirectoryHandler() { | 1199 buildStaticDirectoryHandler() { |
1200 var o = new api.StaticDirectoryHandler(); | 1200 var o = new api.StaticDirectoryHandler(); |
1201 buildCounterStaticDirectoryHandler++; | 1201 buildCounterStaticDirectoryHandler++; |
1202 if (buildCounterStaticDirectoryHandler < 3) { | 1202 if (buildCounterStaticDirectoryHandler < 3) { |
1203 o.applicationReadable = true; | 1203 o.applicationReadable = true; |
1204 o.directory = "foo"; | 1204 o.directory = "foo"; |
1205 o.expiration = "foo"; | 1205 o.expiration = "foo"; |
1206 o.httpHeaders = buildUnnamed3540(); | 1206 o.httpHeaders = buildUnnamed3523(); |
1207 o.mimeType = "foo"; | 1207 o.mimeType = "foo"; |
1208 o.requireMatchingFile = true; | 1208 o.requireMatchingFile = true; |
1209 } | 1209 } |
1210 buildCounterStaticDirectoryHandler--; | 1210 buildCounterStaticDirectoryHandler--; |
1211 return o; | 1211 return o; |
1212 } | 1212 } |
1213 | 1213 |
1214 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { | 1214 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { |
1215 buildCounterStaticDirectoryHandler++; | 1215 buildCounterStaticDirectoryHandler++; |
1216 if (buildCounterStaticDirectoryHandler < 3) { | 1216 if (buildCounterStaticDirectoryHandler < 3) { |
1217 unittest.expect(o.applicationReadable, unittest.isTrue); | 1217 unittest.expect(o.applicationReadable, unittest.isTrue); |
1218 unittest.expect(o.directory, unittest.equals('foo')); | 1218 unittest.expect(o.directory, unittest.equals('foo')); |
1219 unittest.expect(o.expiration, unittest.equals('foo')); | 1219 unittest.expect(o.expiration, unittest.equals('foo')); |
1220 checkUnnamed3540(o.httpHeaders); | 1220 checkUnnamed3523(o.httpHeaders); |
1221 unittest.expect(o.mimeType, unittest.equals('foo')); | 1221 unittest.expect(o.mimeType, unittest.equals('foo')); |
1222 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1222 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1223 } | 1223 } |
1224 buildCounterStaticDirectoryHandler--; | 1224 buildCounterStaticDirectoryHandler--; |
1225 } | 1225 } |
1226 | 1226 |
1227 buildUnnamed3541() { | 1227 buildUnnamed3524() { |
1228 var o = new core.Map<core.String, core.String>(); | 1228 var o = new core.Map<core.String, core.String>(); |
1229 o["x"] = "foo"; | 1229 o["x"] = "foo"; |
1230 o["y"] = "foo"; | 1230 o["y"] = "foo"; |
1231 return o; | 1231 return o; |
1232 } | 1232 } |
1233 | 1233 |
1234 checkUnnamed3541(core.Map<core.String, core.String> o) { | 1234 checkUnnamed3524(core.Map<core.String, core.String> o) { |
1235 unittest.expect(o, unittest.hasLength(2)); | 1235 unittest.expect(o, unittest.hasLength(2)); |
1236 unittest.expect(o["x"], unittest.equals('foo')); | 1236 unittest.expect(o["x"], unittest.equals('foo')); |
1237 unittest.expect(o["y"], unittest.equals('foo')); | 1237 unittest.expect(o["y"], unittest.equals('foo')); |
1238 } | 1238 } |
1239 | 1239 |
1240 core.int buildCounterStaticFilesHandler = 0; | 1240 core.int buildCounterStaticFilesHandler = 0; |
1241 buildStaticFilesHandler() { | 1241 buildStaticFilesHandler() { |
1242 var o = new api.StaticFilesHandler(); | 1242 var o = new api.StaticFilesHandler(); |
1243 buildCounterStaticFilesHandler++; | 1243 buildCounterStaticFilesHandler++; |
1244 if (buildCounterStaticFilesHandler < 3) { | 1244 if (buildCounterStaticFilesHandler < 3) { |
1245 o.applicationReadable = true; | 1245 o.applicationReadable = true; |
1246 o.expiration = "foo"; | 1246 o.expiration = "foo"; |
1247 o.httpHeaders = buildUnnamed3541(); | 1247 o.httpHeaders = buildUnnamed3524(); |
1248 o.mimeType = "foo"; | 1248 o.mimeType = "foo"; |
1249 o.path = "foo"; | 1249 o.path = "foo"; |
1250 o.requireMatchingFile = true; | 1250 o.requireMatchingFile = true; |
1251 o.uploadPathRegex = "foo"; | 1251 o.uploadPathRegex = "foo"; |
1252 } | 1252 } |
1253 buildCounterStaticFilesHandler--; | 1253 buildCounterStaticFilesHandler--; |
1254 return o; | 1254 return o; |
1255 } | 1255 } |
1256 | 1256 |
1257 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1257 checkStaticFilesHandler(api.StaticFilesHandler o) { |
1258 buildCounterStaticFilesHandler++; | 1258 buildCounterStaticFilesHandler++; |
1259 if (buildCounterStaticFilesHandler < 3) { | 1259 if (buildCounterStaticFilesHandler < 3) { |
1260 unittest.expect(o.applicationReadable, unittest.isTrue); | 1260 unittest.expect(o.applicationReadable, unittest.isTrue); |
1261 unittest.expect(o.expiration, unittest.equals('foo')); | 1261 unittest.expect(o.expiration, unittest.equals('foo')); |
1262 checkUnnamed3541(o.httpHeaders); | 1262 checkUnnamed3524(o.httpHeaders); |
1263 unittest.expect(o.mimeType, unittest.equals('foo')); | 1263 unittest.expect(o.mimeType, unittest.equals('foo')); |
1264 unittest.expect(o.path, unittest.equals('foo')); | 1264 unittest.expect(o.path, unittest.equals('foo')); |
1265 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1265 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1266 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1266 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
1267 } | 1267 } |
1268 buildCounterStaticFilesHandler--; | 1268 buildCounterStaticFilesHandler--; |
1269 } | 1269 } |
1270 | 1270 |
1271 buildUnnamed3542() { | 1271 buildUnnamed3525() { |
1272 var o = new core.Map<core.String, core.Object>(); | 1272 var o = new core.Map<core.String, core.Object>(); |
1273 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1273 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1274 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1274 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1275 return o; | 1275 return o; |
1276 } | 1276 } |
1277 | 1277 |
1278 checkUnnamed3542(core.Map<core.String, core.Object> o) { | 1278 checkUnnamed3525(core.Map<core.String, core.Object> o) { |
1279 unittest.expect(o, unittest.hasLength(2)); | 1279 unittest.expect(o, unittest.hasLength(2)); |
1280 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')); | 1280 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')); |
1281 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')); | 1281 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')); |
1282 } | 1282 } |
1283 | 1283 |
1284 buildUnnamed3543() { | 1284 buildUnnamed3526() { |
1285 var o = new core.List<core.Map<core.String, core.Object>>(); | 1285 var o = new core.List<core.Map<core.String, core.Object>>(); |
1286 o.add(buildUnnamed3542()); | 1286 o.add(buildUnnamed3525()); |
1287 o.add(buildUnnamed3542()); | 1287 o.add(buildUnnamed3525()); |
1288 return o; | 1288 return o; |
1289 } | 1289 } |
1290 | 1290 |
1291 checkUnnamed3543(core.List<core.Map<core.String, core.Object>> o) { | 1291 checkUnnamed3526(core.List<core.Map<core.String, core.Object>> o) { |
1292 unittest.expect(o, unittest.hasLength(2)); | 1292 unittest.expect(o, unittest.hasLength(2)); |
1293 checkUnnamed3542(o[0]); | 1293 checkUnnamed3525(o[0]); |
1294 checkUnnamed3542(o[1]); | 1294 checkUnnamed3525(o[1]); |
1295 } | 1295 } |
1296 | 1296 |
1297 core.int buildCounterStatus = 0; | 1297 core.int buildCounterStatus = 0; |
1298 buildStatus() { | 1298 buildStatus() { |
1299 var o = new api.Status(); | 1299 var o = new api.Status(); |
1300 buildCounterStatus++; | 1300 buildCounterStatus++; |
1301 if (buildCounterStatus < 3) { | 1301 if (buildCounterStatus < 3) { |
1302 o.code = 42; | 1302 o.code = 42; |
1303 o.details = buildUnnamed3543(); | 1303 o.details = buildUnnamed3526(); |
1304 o.message = "foo"; | 1304 o.message = "foo"; |
1305 } | 1305 } |
1306 buildCounterStatus--; | 1306 buildCounterStatus--; |
1307 return o; | 1307 return o; |
1308 } | 1308 } |
1309 | 1309 |
1310 checkStatus(api.Status o) { | 1310 checkStatus(api.Status o) { |
1311 buildCounterStatus++; | 1311 buildCounterStatus++; |
1312 if (buildCounterStatus < 3) { | 1312 if (buildCounterStatus < 3) { |
1313 unittest.expect(o.code, unittest.equals(42)); | 1313 unittest.expect(o.code, unittest.equals(42)); |
1314 checkUnnamed3543(o.details); | 1314 checkUnnamed3526(o.details); |
1315 unittest.expect(o.message, unittest.equals('foo')); | 1315 unittest.expect(o.message, unittest.equals('foo')); |
1316 } | 1316 } |
1317 buildCounterStatus--; | 1317 buildCounterStatus--; |
1318 } | 1318 } |
1319 | 1319 |
1320 buildUnnamed3544() { | 1320 buildUnnamed3527() { |
1321 var o = new core.Map<core.String, core.double>(); | 1321 var o = new core.Map<core.String, core.double>(); |
1322 o["x"] = 42.0; | 1322 o["x"] = 42.0; |
1323 o["y"] = 42.0; | 1323 o["y"] = 42.0; |
1324 return o; | 1324 return o; |
1325 } | 1325 } |
1326 | 1326 |
1327 checkUnnamed3544(core.Map<core.String, core.double> o) { | 1327 checkUnnamed3527(core.Map<core.String, core.double> o) { |
1328 unittest.expect(o, unittest.hasLength(2)); | 1328 unittest.expect(o, unittest.hasLength(2)); |
1329 unittest.expect(o["x"], unittest.equals(42.0)); | 1329 unittest.expect(o["x"], unittest.equals(42.0)); |
1330 unittest.expect(o["y"], unittest.equals(42.0)); | 1330 unittest.expect(o["y"], unittest.equals(42.0)); |
1331 } | 1331 } |
1332 | 1332 |
1333 core.int buildCounterTrafficSplit = 0; | 1333 core.int buildCounterTrafficSplit = 0; |
1334 buildTrafficSplit() { | 1334 buildTrafficSplit() { |
1335 var o = new api.TrafficSplit(); | 1335 var o = new api.TrafficSplit(); |
1336 buildCounterTrafficSplit++; | 1336 buildCounterTrafficSplit++; |
1337 if (buildCounterTrafficSplit < 3) { | 1337 if (buildCounterTrafficSplit < 3) { |
1338 o.allocations = buildUnnamed3544(); | 1338 o.allocations = buildUnnamed3527(); |
1339 o.shardBy = "foo"; | 1339 o.shardBy = "foo"; |
1340 } | 1340 } |
1341 buildCounterTrafficSplit--; | 1341 buildCounterTrafficSplit--; |
1342 return o; | 1342 return o; |
1343 } | 1343 } |
1344 | 1344 |
1345 checkTrafficSplit(api.TrafficSplit o) { | 1345 checkTrafficSplit(api.TrafficSplit o) { |
1346 buildCounterTrafficSplit++; | 1346 buildCounterTrafficSplit++; |
1347 if (buildCounterTrafficSplit < 3) { | 1347 if (buildCounterTrafficSplit < 3) { |
1348 checkUnnamed3544(o.allocations); | 1348 checkUnnamed3527(o.allocations); |
1349 unittest.expect(o.shardBy, unittest.equals('foo')); | 1349 unittest.expect(o.shardBy, unittest.equals('foo')); |
1350 } | 1350 } |
1351 buildCounterTrafficSplit--; | 1351 buildCounterTrafficSplit--; |
1352 } | 1352 } |
1353 | 1353 |
1354 core.int buildCounterUrlDispatchRule = 0; | 1354 core.int buildCounterUrlDispatchRule = 0; |
1355 buildUrlDispatchRule() { | 1355 buildUrlDispatchRule() { |
1356 var o = new api.UrlDispatchRule(); | 1356 var o = new api.UrlDispatchRule(); |
1357 buildCounterUrlDispatchRule++; | 1357 buildCounterUrlDispatchRule++; |
1358 if (buildCounterUrlDispatchRule < 3) { | 1358 if (buildCounterUrlDispatchRule < 3) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1402 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
1403 checkScriptHandler(o.script); | 1403 checkScriptHandler(o.script); |
1404 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1404 unittest.expect(o.securityLevel, unittest.equals('foo')); |
1405 checkStaticDirectoryHandler(o.staticDirectory); | 1405 checkStaticDirectoryHandler(o.staticDirectory); |
1406 checkStaticFilesHandler(o.staticFiles); | 1406 checkStaticFilesHandler(o.staticFiles); |
1407 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1407 unittest.expect(o.urlRegex, unittest.equals('foo')); |
1408 } | 1408 } |
1409 buildCounterUrlMap--; | 1409 buildCounterUrlMap--; |
1410 } | 1410 } |
1411 | 1411 |
1412 buildUnnamed3545() { | 1412 buildUnnamed3528() { |
1413 var o = new core.Map<core.String, core.String>(); | 1413 var o = new core.Map<core.String, core.String>(); |
1414 o["x"] = "foo"; | 1414 o["x"] = "foo"; |
1415 o["y"] = "foo"; | 1415 o["y"] = "foo"; |
1416 return o; | 1416 return o; |
1417 } | 1417 } |
1418 | 1418 |
1419 checkUnnamed3545(core.Map<core.String, core.String> o) { | 1419 checkUnnamed3528(core.Map<core.String, core.String> o) { |
1420 unittest.expect(o, unittest.hasLength(2)); | 1420 unittest.expect(o, unittest.hasLength(2)); |
1421 unittest.expect(o["x"], unittest.equals('foo')); | 1421 unittest.expect(o["x"], unittest.equals('foo')); |
1422 unittest.expect(o["y"], unittest.equals('foo')); | 1422 unittest.expect(o["y"], unittest.equals('foo')); |
1423 } | 1423 } |
1424 | 1424 |
1425 buildUnnamed3546() { | 1425 buildUnnamed3529() { |
1426 var o = new core.Map<core.String, core.String>(); | 1426 var o = new core.Map<core.String, core.String>(); |
1427 o["x"] = "foo"; | 1427 o["x"] = "foo"; |
1428 o["y"] = "foo"; | 1428 o["y"] = "foo"; |
1429 return o; | 1429 return o; |
1430 } | 1430 } |
1431 | 1431 |
1432 checkUnnamed3546(core.Map<core.String, core.String> o) { | 1432 checkUnnamed3529(core.Map<core.String, core.String> o) { |
1433 unittest.expect(o, unittest.hasLength(2)); | 1433 unittest.expect(o, unittest.hasLength(2)); |
1434 unittest.expect(o["x"], unittest.equals('foo')); | 1434 unittest.expect(o["x"], unittest.equals('foo')); |
1435 unittest.expect(o["y"], unittest.equals('foo')); | 1435 unittest.expect(o["y"], unittest.equals('foo')); |
1436 } | 1436 } |
1437 | 1437 |
1438 buildUnnamed3547() { | 1438 buildUnnamed3530() { |
1439 var o = new core.List<api.ErrorHandler>(); | 1439 var o = new core.List<api.ErrorHandler>(); |
1440 o.add(buildErrorHandler()); | 1440 o.add(buildErrorHandler()); |
1441 o.add(buildErrorHandler()); | 1441 o.add(buildErrorHandler()); |
1442 return o; | 1442 return o; |
1443 } | 1443 } |
1444 | 1444 |
1445 checkUnnamed3547(core.List<api.ErrorHandler> o) { | 1445 checkUnnamed3530(core.List<api.ErrorHandler> o) { |
1446 unittest.expect(o, unittest.hasLength(2)); | 1446 unittest.expect(o, unittest.hasLength(2)); |
1447 checkErrorHandler(o[0]); | 1447 checkErrorHandler(o[0]); |
1448 checkErrorHandler(o[1]); | 1448 checkErrorHandler(o[1]); |
1449 } | 1449 } |
1450 | 1450 |
1451 buildUnnamed3548() { | 1451 buildUnnamed3531() { |
1452 var o = new core.List<api.UrlMap>(); | 1452 var o = new core.List<api.UrlMap>(); |
1453 o.add(buildUrlMap()); | 1453 o.add(buildUrlMap()); |
1454 o.add(buildUrlMap()); | 1454 o.add(buildUrlMap()); |
1455 return o; | 1455 return o; |
1456 } | 1456 } |
1457 | 1457 |
1458 checkUnnamed3548(core.List<api.UrlMap> o) { | 1458 checkUnnamed3531(core.List<api.UrlMap> o) { |
1459 unittest.expect(o, unittest.hasLength(2)); | 1459 unittest.expect(o, unittest.hasLength(2)); |
1460 checkUrlMap(o[0]); | 1460 checkUrlMap(o[0]); |
1461 checkUrlMap(o[1]); | 1461 checkUrlMap(o[1]); |
1462 } | 1462 } |
1463 | 1463 |
1464 buildUnnamed3549() { | 1464 buildUnnamed3532() { |
1465 var o = new core.List<core.String>(); | 1465 var o = new core.List<core.String>(); |
1466 o.add("foo"); | 1466 o.add("foo"); |
1467 o.add("foo"); | 1467 o.add("foo"); |
1468 return o; | 1468 return o; |
1469 } | 1469 } |
1470 | 1470 |
1471 checkUnnamed3549(core.List<core.String> o) { | 1471 checkUnnamed3532(core.List<core.String> o) { |
1472 unittest.expect(o, unittest.hasLength(2)); | 1472 unittest.expect(o, unittest.hasLength(2)); |
1473 unittest.expect(o[0], unittest.equals('foo')); | 1473 unittest.expect(o[0], unittest.equals('foo')); |
1474 unittest.expect(o[1], unittest.equals('foo')); | 1474 unittest.expect(o[1], unittest.equals('foo')); |
1475 } | 1475 } |
1476 | 1476 |
1477 buildUnnamed3550() { | 1477 buildUnnamed3533() { |
1478 var o = new core.List<api.Library>(); | 1478 var o = new core.List<api.Library>(); |
1479 o.add(buildLibrary()); | 1479 o.add(buildLibrary()); |
1480 o.add(buildLibrary()); | 1480 o.add(buildLibrary()); |
1481 return o; | 1481 return o; |
1482 } | 1482 } |
1483 | 1483 |
1484 checkUnnamed3550(core.List<api.Library> o) { | 1484 checkUnnamed3533(core.List<api.Library> o) { |
1485 unittest.expect(o, unittest.hasLength(2)); | 1485 unittest.expect(o, unittest.hasLength(2)); |
1486 checkLibrary(o[0]); | 1486 checkLibrary(o[0]); |
1487 checkLibrary(o[1]); | 1487 checkLibrary(o[1]); |
1488 } | 1488 } |
1489 | 1489 |
1490 core.int buildCounterVersion = 0; | 1490 core.int buildCounterVersion = 0; |
1491 buildVersion() { | 1491 buildVersion() { |
1492 var o = new api.Version(); | 1492 var o = new api.Version(); |
1493 buildCounterVersion++; | 1493 buildCounterVersion++; |
1494 if (buildCounterVersion < 3) { | 1494 if (buildCounterVersion < 3) { |
1495 o.apiConfig = buildApiConfigHandler(); | 1495 o.apiConfig = buildApiConfigHandler(); |
1496 o.automaticScaling = buildAutomaticScaling(); | 1496 o.automaticScaling = buildAutomaticScaling(); |
1497 o.basicScaling = buildBasicScaling(); | 1497 o.basicScaling = buildBasicScaling(); |
1498 o.betaSettings = buildUnnamed3545(); | 1498 o.betaSettings = buildUnnamed3528(); |
1499 o.creationTime = "foo"; | 1499 o.creationTime = "foo"; |
1500 o.defaultExpiration = "foo"; | 1500 o.defaultExpiration = "foo"; |
1501 o.deployer = "foo"; | 1501 o.deployer = "foo"; |
1502 o.deployment = buildDeployment(); | 1502 o.deployment = buildDeployment(); |
1503 o.env = "foo"; | 1503 o.env = "foo"; |
1504 o.envVariables = buildUnnamed3546(); | 1504 o.envVariables = buildUnnamed3529(); |
1505 o.errorHandlers = buildUnnamed3547(); | 1505 o.errorHandlers = buildUnnamed3530(); |
1506 o.handlers = buildUnnamed3548(); | 1506 o.handlers = buildUnnamed3531(); |
1507 o.healthCheck = buildHealthCheck(); | 1507 o.healthCheck = buildHealthCheck(); |
1508 o.id = "foo"; | 1508 o.id = "foo"; |
1509 o.inboundServices = buildUnnamed3549(); | 1509 o.inboundServices = buildUnnamed3532(); |
1510 o.instanceClass = "foo"; | 1510 o.instanceClass = "foo"; |
1511 o.libraries = buildUnnamed3550(); | 1511 o.libraries = buildUnnamed3533(); |
1512 o.manualScaling = buildManualScaling(); | 1512 o.manualScaling = buildManualScaling(); |
1513 o.name = "foo"; | 1513 o.name = "foo"; |
1514 o.network = buildNetwork(); | 1514 o.network = buildNetwork(); |
1515 o.nobuildFilesRegex = "foo"; | 1515 o.nobuildFilesRegex = "foo"; |
1516 o.resources = buildResources(); | 1516 o.resources = buildResources(); |
1517 o.runtime = "foo"; | 1517 o.runtime = "foo"; |
1518 o.servingStatus = "foo"; | 1518 o.servingStatus = "foo"; |
1519 o.threadsafe = true; | 1519 o.threadsafe = true; |
1520 o.vm = true; | 1520 o.vm = true; |
1521 } | 1521 } |
1522 buildCounterVersion--; | 1522 buildCounterVersion--; |
1523 return o; | 1523 return o; |
1524 } | 1524 } |
1525 | 1525 |
1526 checkVersion(api.Version o) { | 1526 checkVersion(api.Version o) { |
1527 buildCounterVersion++; | 1527 buildCounterVersion++; |
1528 if (buildCounterVersion < 3) { | 1528 if (buildCounterVersion < 3) { |
1529 checkApiConfigHandler(o.apiConfig); | 1529 checkApiConfigHandler(o.apiConfig); |
1530 checkAutomaticScaling(o.automaticScaling); | 1530 checkAutomaticScaling(o.automaticScaling); |
1531 checkBasicScaling(o.basicScaling); | 1531 checkBasicScaling(o.basicScaling); |
1532 checkUnnamed3545(o.betaSettings); | 1532 checkUnnamed3528(o.betaSettings); |
1533 unittest.expect(o.creationTime, unittest.equals('foo')); | 1533 unittest.expect(o.creationTime, unittest.equals('foo')); |
1534 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1534 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
1535 unittest.expect(o.deployer, unittest.equals('foo')); | 1535 unittest.expect(o.deployer, unittest.equals('foo')); |
1536 checkDeployment(o.deployment); | 1536 checkDeployment(o.deployment); |
1537 unittest.expect(o.env, unittest.equals('foo')); | 1537 unittest.expect(o.env, unittest.equals('foo')); |
1538 checkUnnamed3546(o.envVariables); | 1538 checkUnnamed3529(o.envVariables); |
1539 checkUnnamed3547(o.errorHandlers); | 1539 checkUnnamed3530(o.errorHandlers); |
1540 checkUnnamed3548(o.handlers); | 1540 checkUnnamed3531(o.handlers); |
1541 checkHealthCheck(o.healthCheck); | 1541 checkHealthCheck(o.healthCheck); |
1542 unittest.expect(o.id, unittest.equals('foo')); | 1542 unittest.expect(o.id, unittest.equals('foo')); |
1543 checkUnnamed3549(o.inboundServices); | 1543 checkUnnamed3532(o.inboundServices); |
1544 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1544 unittest.expect(o.instanceClass, unittest.equals('foo')); |
1545 checkUnnamed3550(o.libraries); | 1545 checkUnnamed3533(o.libraries); |
1546 checkManualScaling(o.manualScaling); | 1546 checkManualScaling(o.manualScaling); |
1547 unittest.expect(o.name, unittest.equals('foo')); | 1547 unittest.expect(o.name, unittest.equals('foo')); |
1548 checkNetwork(o.network); | 1548 checkNetwork(o.network); |
1549 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1549 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
1550 checkResources(o.resources); | 1550 checkResources(o.resources); |
1551 unittest.expect(o.runtime, unittest.equals('foo')); | 1551 unittest.expect(o.runtime, unittest.equals('foo')); |
1552 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1552 unittest.expect(o.servingStatus, unittest.equals('foo')); |
1553 unittest.expect(o.threadsafe, unittest.isTrue); | 1553 unittest.expect(o.threadsafe, unittest.isTrue); |
1554 unittest.expect(o.vm, unittest.isTrue); | 1554 unittest.expect(o.vm, unittest.isTrue); |
1555 } | 1555 } |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2193 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Locat
ion response) { | 2193 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Locat
ion response) { |
2194 checkLocation(response); | 2194 checkLocation(response); |
2195 }))); | 2195 }))); |
2196 }); | 2196 }); |
2197 | 2197 |
2198 unittest.test("method--list", () { | 2198 unittest.test("method--list", () { |
2199 | 2199 |
2200 var mock = new HttpServerMock(); | 2200 var mock = new HttpServerMock(); |
2201 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; | 2201 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; |
2202 var arg_appsId = "foo"; | 2202 var arg_appsId = "foo"; |
| 2203 var arg_pageToken = "foo"; |
| 2204 var arg_pageSize = 42; |
2203 var arg_filter = "foo"; | 2205 var arg_filter = "foo"; |
2204 var arg_pageSize = 42; | |
2205 var arg_pageToken = "foo"; | |
2206 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2206 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2207 var path = (req.url).path; | 2207 var path = (req.url).path; |
2208 var pathOffset = 0; | 2208 var pathOffset = 0; |
2209 var index; | 2209 var index; |
2210 var subPart; | 2210 var subPart; |
2211 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2211 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2212 pathOffset += 1; | 2212 pathOffset += 1; |
2213 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); | 2213 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); |
2214 pathOffset += 13; | 2214 pathOffset += 13; |
2215 index = path.indexOf("/locations", pathOffset); | 2215 index = path.indexOf("/locations", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
2229 if (n == "false") return false; | 2229 if (n == "false") return false; |
2230 if (n == null) return null; | 2230 if (n == null) return null; |
2231 throw new core.ArgumentError("Invalid boolean: $n"); | 2231 throw new core.ArgumentError("Invalid boolean: $n"); |
2232 } | 2232 } |
2233 if (query.length > 0) { | 2233 if (query.length > 0) { |
2234 for (var part in query.split("&")) { | 2234 for (var part in query.split("&")) { |
2235 var keyvalue = part.split("="); | 2235 var keyvalue = part.split("="); |
2236 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2236 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2237 } | 2237 } |
2238 } | 2238 } |
| 2239 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2240 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2239 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2241 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2240 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2241 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2242 | 2242 |
2243 | 2243 |
2244 var h = { | 2244 var h = { |
2245 "content-type" : "application/json; charset=utf-8", | 2245 "content-type" : "application/json; charset=utf-8", |
2246 }; | 2246 }; |
2247 var resp = convert.JSON.encode(buildListLocationsResponse()); | 2247 var resp = convert.JSON.encode(buildListLocationsResponse()); |
2248 return new async.Future.value(stringResponse(200, h, resp)); | 2248 return new async.Future.value(stringResponse(200, h, resp)); |
2249 }), true); | 2249 }), true); |
2250 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListLocationsResponse response)
{ | 2250 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, fil
ter: arg_filter).then(unittest.expectAsync(((api.ListLocationsResponse response)
{ |
2251 checkListLocationsResponse(response); | 2251 checkListLocationsResponse(response); |
2252 }))); | 2252 }))); |
2253 }); | 2253 }); |
2254 | 2254 |
2255 }); | 2255 }); |
2256 | 2256 |
2257 | 2257 |
2258 unittest.group("resource-AppsModulesResourceApi", () { | 2258 unittest.group("resource-AppsModulesResourceApi", () { |
2259 unittest.test("method--delete", () { | 2259 unittest.test("method--delete", () { |
2260 | 2260 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2364 res.get(arg_appsId, arg_modulesId).then(unittest.expectAsync(((api.Module
response) { | 2364 res.get(arg_appsId, arg_modulesId).then(unittest.expectAsync(((api.Module
response) { |
2365 checkModule(response); | 2365 checkModule(response); |
2366 }))); | 2366 }))); |
2367 }); | 2367 }); |
2368 | 2368 |
2369 unittest.test("method--list", () { | 2369 unittest.test("method--list", () { |
2370 | 2370 |
2371 var mock = new HttpServerMock(); | 2371 var mock = new HttpServerMock(); |
2372 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; | 2372 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; |
2373 var arg_appsId = "foo"; | 2373 var arg_appsId = "foo"; |
| 2374 var arg_pageToken = "foo"; |
2374 var arg_pageSize = 42; | 2375 var arg_pageSize = 42; |
2375 var arg_pageToken = "foo"; | |
2376 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2376 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2377 var path = (req.url).path; | 2377 var path = (req.url).path; |
2378 var pathOffset = 0; | 2378 var pathOffset = 0; |
2379 var index; | 2379 var index; |
2380 var subPart; | 2380 var subPart; |
2381 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2381 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2382 pathOffset += 1; | 2382 pathOffset += 1; |
2383 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); | 2383 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); |
2384 pathOffset += 13; | 2384 pathOffset += 13; |
2385 index = path.indexOf("/modules", pathOffset); | 2385 index = path.indexOf("/modules", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
2399 if (n == "false") return false; | 2399 if (n == "false") return false; |
2400 if (n == null) return null; | 2400 if (n == null) return null; |
2401 throw new core.ArgumentError("Invalid boolean: $n"); | 2401 throw new core.ArgumentError("Invalid boolean: $n"); |
2402 } | 2402 } |
2403 if (query.length > 0) { | 2403 if (query.length > 0) { |
2404 for (var part in query.split("&")) { | 2404 for (var part in query.split("&")) { |
2405 var keyvalue = part.split("="); | 2405 var keyvalue = part.split("="); |
2406 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2406 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2407 } | 2407 } |
2408 } | 2408 } |
| 2409 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2409 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2410 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2410 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2411 | 2411 |
2412 | 2412 |
2413 var h = { | 2413 var h = { |
2414 "content-type" : "application/json; charset=utf-8", | 2414 "content-type" : "application/json; charset=utf-8", |
2415 }; | 2415 }; |
2416 var resp = convert.JSON.encode(buildListModulesResponse()); | 2416 var resp = convert.JSON.encode(buildListModulesResponse()); |
2417 return new async.Future.value(stringResponse(200, h, resp)); | 2417 return new async.Future.value(stringResponse(200, h, resp)); |
2418 }), true); | 2418 }), true); |
2419 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ListModulesResponse response) { | 2419 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the
n(unittest.expectAsync(((api.ListModulesResponse response) { |
2420 checkListModulesResponse(response); | 2420 checkListModulesResponse(response); |
2421 }))); | 2421 }))); |
2422 }); | 2422 }); |
2423 | 2423 |
2424 unittest.test("method--patch", () { | 2424 unittest.test("method--patch", () { |
2425 | 2425 |
2426 var mock = new HttpServerMock(); | 2426 var mock = new HttpServerMock(); |
2427 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; | 2427 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; |
2428 var arg_request = buildModule(); | 2428 var arg_request = buildModule(); |
2429 var arg_appsId = "foo"; | 2429 var arg_appsId = "foo"; |
2430 var arg_modulesId = "foo"; | 2430 var arg_modulesId = "foo"; |
| 2431 var arg_migrateTraffic = true; |
2431 var arg_mask = "foo"; | 2432 var arg_mask = "foo"; |
2432 var arg_migrateTraffic = true; | |
2433 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2433 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2434 var obj = new api.Module.fromJson(json); | 2434 var obj = new api.Module.fromJson(json); |
2435 checkModule(obj); | 2435 checkModule(obj); |
2436 | 2436 |
2437 var path = (req.url).path; | 2437 var path = (req.url).path; |
2438 var pathOffset = 0; | 2438 var pathOffset = 0; |
2439 var index; | 2439 var index; |
2440 var subPart; | 2440 var subPart; |
2441 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2441 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2442 pathOffset += 1; | 2442 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
2462 if (n == "false") return false; | 2462 if (n == "false") return false; |
2463 if (n == null) return null; | 2463 if (n == null) return null; |
2464 throw new core.ArgumentError("Invalid boolean: $n"); | 2464 throw new core.ArgumentError("Invalid boolean: $n"); |
2465 } | 2465 } |
2466 if (query.length > 0) { | 2466 if (query.length > 0) { |
2467 for (var part in query.split("&")) { | 2467 for (var part in query.split("&")) { |
2468 var keyvalue = part.split("="); | 2468 var keyvalue = part.split("="); |
2469 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2469 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2470 } | 2470 } |
2471 } | 2471 } |
| 2472 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_
migrateTraffic")); |
2472 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask)); | 2473 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask)); |
2473 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_
migrateTraffic")); | |
2474 | 2474 |
2475 | 2475 |
2476 var h = { | 2476 var h = { |
2477 "content-type" : "application/json; charset=utf-8", | 2477 "content-type" : "application/json; charset=utf-8", |
2478 }; | 2478 }; |
2479 var resp = convert.JSON.encode(buildOperation()); | 2479 var resp = convert.JSON.encode(buildOperation()); |
2480 return new async.Future.value(stringResponse(200, h, resp)); | 2480 return new async.Future.value(stringResponse(200, h, resp)); |
2481 }), true); | 2481 }), true); |
2482 res.patch(arg_request, arg_appsId, arg_modulesId, mask: arg_mask, migrateT
raffic: arg_migrateTraffic).then(unittest.expectAsync(((api.Operation response)
{ | 2482 res.patch(arg_request, arg_appsId, arg_modulesId, migrateTraffic: arg_migr
ateTraffic, mask: arg_mask).then(unittest.expectAsync(((api.Operation response)
{ |
2483 checkOperation(response); | 2483 checkOperation(response); |
2484 }))); | 2484 }))); |
2485 }); | 2485 }); |
2486 | 2486 |
2487 }); | 2487 }); |
2488 | 2488 |
2489 | 2489 |
2490 unittest.group("resource-AppsModulesVersionsResourceApi", () { | 2490 unittest.group("resource-AppsModulesVersionsResourceApi", () { |
2491 unittest.test("method--create", () { | 2491 unittest.test("method--create", () { |
2492 | 2492 |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2678 checkVersion(response); | 2678 checkVersion(response); |
2679 }))); | 2679 }))); |
2680 }); | 2680 }); |
2681 | 2681 |
2682 unittest.test("method--list", () { | 2682 unittest.test("method--list", () { |
2683 | 2683 |
2684 var mock = new HttpServerMock(); | 2684 var mock = new HttpServerMock(); |
2685 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m
odules.versions; | 2685 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m
odules.versions; |
2686 var arg_appsId = "foo"; | 2686 var arg_appsId = "foo"; |
2687 var arg_modulesId = "foo"; | 2687 var arg_modulesId = "foo"; |
| 2688 var arg_pageToken = "foo"; |
| 2689 var arg_pageSize = 42; |
2688 var arg_view = "foo"; | 2690 var arg_view = "foo"; |
2689 var arg_pageSize = 42; | |
2690 var arg_pageToken = "foo"; | |
2691 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2691 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2692 var path = (req.url).path; | 2692 var path = (req.url).path; |
2693 var pathOffset = 0; | 2693 var pathOffset = 0; |
2694 var index; | 2694 var index; |
2695 var subPart; | 2695 var subPart; |
2696 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2696 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2697 pathOffset += 1; | 2697 pathOffset += 1; |
2698 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); | 2698 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); |
2699 pathOffset += 13; | 2699 pathOffset += 13; |
2700 index = path.indexOf("/modules/", pathOffset); | 2700 index = path.indexOf("/modules/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
2721 if (n == "false") return false; | 2721 if (n == "false") return false; |
2722 if (n == null) return null; | 2722 if (n == null) return null; |
2723 throw new core.ArgumentError("Invalid boolean: $n"); | 2723 throw new core.ArgumentError("Invalid boolean: $n"); |
2724 } | 2724 } |
2725 if (query.length > 0) { | 2725 if (query.length > 0) { |
2726 for (var part in query.split("&")) { | 2726 for (var part in query.split("&")) { |
2727 var keyvalue = part.split("="); | 2727 var keyvalue = part.split("="); |
2728 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2728 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2729 } | 2729 } |
2730 } | 2730 } |
| 2731 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2732 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2731 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 2733 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
2732 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2733 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2734 | 2734 |
2735 | 2735 |
2736 var h = { | 2736 var h = { |
2737 "content-type" : "application/json; charset=utf-8", | 2737 "content-type" : "application/json; charset=utf-8", |
2738 }; | 2738 }; |
2739 var resp = convert.JSON.encode(buildListVersionsResponse()); | 2739 var resp = convert.JSON.encode(buildListVersionsResponse()); |
2740 return new async.Future.value(stringResponse(200, h, resp)); | 2740 return new async.Future.value(stringResponse(200, h, resp)); |
2741 }), true); | 2741 }), true); |
2742 res.list(arg_appsId, arg_modulesId, view: arg_view, pageSize: arg_pageSize
, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListVersionsResponse
response) { | 2742 res.list(arg_appsId, arg_modulesId, pageToken: arg_pageToken, pageSize: ar
g_pageSize, view: arg_view).then(unittest.expectAsync(((api.ListVersionsResponse
response) { |
2743 checkListVersionsResponse(response); | 2743 checkListVersionsResponse(response); |
2744 }))); | 2744 }))); |
2745 }); | 2745 }); |
2746 | 2746 |
2747 unittest.test("method--patch", () { | 2747 unittest.test("method--patch", () { |
2748 | 2748 |
2749 var mock = new HttpServerMock(); | 2749 var mock = new HttpServerMock(); |
2750 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m
odules.versions; | 2750 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m
odules.versions; |
2751 var arg_request = buildVersion(); | 2751 var arg_request = buildVersion(); |
2752 var arg_appsId = "foo"; | 2752 var arg_appsId = "foo"; |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3038 }))); | 3038 }))); |
3039 }); | 3039 }); |
3040 | 3040 |
3041 unittest.test("method--list", () { | 3041 unittest.test("method--list", () { |
3042 | 3042 |
3043 var mock = new HttpServerMock(); | 3043 var mock = new HttpServerMock(); |
3044 api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(moc
k).apps.modules.versions.instances; | 3044 api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(moc
k).apps.modules.versions.instances; |
3045 var arg_appsId = "foo"; | 3045 var arg_appsId = "foo"; |
3046 var arg_modulesId = "foo"; | 3046 var arg_modulesId = "foo"; |
3047 var arg_versionsId = "foo"; | 3047 var arg_versionsId = "foo"; |
| 3048 var arg_pageToken = "foo"; |
3048 var arg_pageSize = 42; | 3049 var arg_pageSize = 42; |
3049 var arg_pageToken = "foo"; | |
3050 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3050 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3051 var path = (req.url).path; | 3051 var path = (req.url).path; |
3052 var pathOffset = 0; | 3052 var pathOffset = 0; |
3053 var index; | 3053 var index; |
3054 var subPart; | 3054 var subPart; |
3055 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3055 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3056 pathOffset += 1; | 3056 pathOffset += 1; |
3057 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); | 3057 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); |
3058 pathOffset += 13; | 3058 pathOffset += 13; |
3059 index = path.indexOf("/modules/", pathOffset); | 3059 index = path.indexOf("/modules/", pathOffset); |
(...skipping 27 matching lines...) Expand all Loading... |
3087 if (n == "false") return false; | 3087 if (n == "false") return false; |
3088 if (n == null) return null; | 3088 if (n == null) return null; |
3089 throw new core.ArgumentError("Invalid boolean: $n"); | 3089 throw new core.ArgumentError("Invalid boolean: $n"); |
3090 } | 3090 } |
3091 if (query.length > 0) { | 3091 if (query.length > 0) { |
3092 for (var part in query.split("&")) { | 3092 for (var part in query.split("&")) { |
3093 var keyvalue = part.split("="); | 3093 var keyvalue = part.split("="); |
3094 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3094 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3095 } | 3095 } |
3096 } | 3096 } |
| 3097 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3097 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 3098 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3098 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
3099 | 3099 |
3100 | 3100 |
3101 var h = { | 3101 var h = { |
3102 "content-type" : "application/json; charset=utf-8", | 3102 "content-type" : "application/json; charset=utf-8", |
3103 }; | 3103 }; |
3104 var resp = convert.JSON.encode(buildListInstancesResponse()); | 3104 var resp = convert.JSON.encode(buildListInstancesResponse()); |
3105 return new async.Future.value(stringResponse(200, h, resp)); | 3105 return new async.Future.value(stringResponse(200, h, resp)); |
3106 }), true); | 3106 }), true); |
3107 res.list(arg_appsId, arg_modulesId, arg_versionsId, pageSize: arg_pageSize
, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespons
e response) { | 3107 res.list(arg_appsId, arg_modulesId, arg_versionsId, pageToken: arg_pageTok
en, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListInstancesRespons
e response) { |
3108 checkListInstancesResponse(response); | 3108 checkListInstancesResponse(response); |
3109 }))); | 3109 }))); |
3110 }); | 3110 }); |
3111 | 3111 |
3112 }); | 3112 }); |
3113 | 3113 |
3114 | 3114 |
3115 unittest.group("resource-AppsOperationsResourceApi", () { | 3115 unittest.group("resource-AppsOperationsResourceApi", () { |
3116 unittest.test("method--get", () { | 3116 unittest.test("method--get", () { |
3117 | 3117 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3167 checkOperation(response); | 3167 checkOperation(response); |
3168 }))); | 3168 }))); |
3169 }); | 3169 }); |
3170 | 3170 |
3171 unittest.test("method--list", () { | 3171 unittest.test("method--list", () { |
3172 | 3172 |
3173 var mock = new HttpServerMock(); | 3173 var mock = new HttpServerMock(); |
3174 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat
ions; | 3174 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat
ions; |
3175 var arg_appsId = "foo"; | 3175 var arg_appsId = "foo"; |
3176 var arg_filter = "foo"; | 3176 var arg_filter = "foo"; |
| 3177 var arg_pageToken = "foo"; |
3177 var arg_pageSize = 42; | 3178 var arg_pageSize = 42; |
3178 var arg_pageToken = "foo"; | |
3179 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3179 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3180 var path = (req.url).path; | 3180 var path = (req.url).path; |
3181 var pathOffset = 0; | 3181 var pathOffset = 0; |
3182 var index; | 3182 var index; |
3183 var subPart; | 3183 var subPart; |
3184 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3184 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3185 pathOffset += 1; | 3185 pathOffset += 1; |
3186 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); | 3186 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); |
3187 pathOffset += 13; | 3187 pathOffset += 13; |
3188 index = path.indexOf("/operations", pathOffset); | 3188 index = path.indexOf("/operations", pathOffset); |
(...skipping 14 matching lines...) Expand all Loading... |
3203 if (n == null) return null; | 3203 if (n == null) return null; |
3204 throw new core.ArgumentError("Invalid boolean: $n"); | 3204 throw new core.ArgumentError("Invalid boolean: $n"); |
3205 } | 3205 } |
3206 if (query.length > 0) { | 3206 if (query.length > 0) { |
3207 for (var part in query.split("&")) { | 3207 for (var part in query.split("&")) { |
3208 var keyvalue = part.split("="); | 3208 var keyvalue = part.split("="); |
3209 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3209 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3210 } | 3210 } |
3211 } | 3211 } |
3212 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 3212 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 3213 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3213 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 3214 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3214 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
3215 | 3215 |
3216 | 3216 |
3217 var h = { | 3217 var h = { |
3218 "content-type" : "application/json; charset=utf-8", | 3218 "content-type" : "application/json; charset=utf-8", |
3219 }; | 3219 }; |
3220 var resp = convert.JSON.encode(buildListOperationsResponse()); | 3220 var resp = convert.JSON.encode(buildListOperationsResponse()); |
3221 return new async.Future.value(stringResponse(200, h, resp)); | 3221 return new async.Future.value(stringResponse(200, h, resp)); |
3222 }), true); | 3222 }), true); |
3223 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { | 3223 res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response
) { |
3224 checkListOperationsResponse(response); | 3224 checkListOperationsResponse(response); |
3225 }))); | 3225 }))); |
3226 }); | 3226 }); |
3227 | 3227 |
3228 }); | 3228 }); |
3229 | 3229 |
3230 | 3230 |
3231 } | 3231 } |
3232 | 3232 |
OLD | NEW |