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

Side by Side Diff: generated/googleapis_beta/test/appengine/v1beta4_test.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis_beta.appengine.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:test/test.dart' as unittest;
11 11
12 import 'package:googleapis_beta/appengine/v1beta4.dart' as api; 12 import 'package:googleapis_beta/appengine/v1beta4.dart' as api;
13 13
14 class HttpServerMock extends http.BaseClient { 14 class HttpServerMock extends http.BaseClient {
15 core.Function _callback; 15 core.Function _callback;
16 core.bool _expectJson; 16 core.bool _expectJson;
17 17
18 void register(core.Function callback, core.bool expectJson) { 18 void register(core.Function callback, core.bool expectJson) {
19 _callback = callback; 19 _callback = callback;
20 _expectJson = expectJson; 20 _expectJson = expectJson;
(...skipping 18 matching lines...) Expand all
39 } else { 39 } else {
40 return stream.toBytes().then((data) { 40 return stream.toBytes().then((data) {
41 return _callback(request, data); 41 return _callback(request, data);
42 }); 42 });
43 } 43 }
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) { 49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 core.int buildCounterApiConfigHandler = 0; 54 core.int buildCounterApiConfigHandler = 0;
55 buildApiConfigHandler() { 55 buildApiConfigHandler() {
56 var o = new api.ApiConfigHandler(); 56 var o = new api.ApiConfigHandler();
57 buildCounterApiConfigHandler++; 57 buildCounterApiConfigHandler++;
58 if (buildCounterApiConfigHandler < 3) { 58 if (buildCounterApiConfigHandler < 3) {
59 o.authFailAction = "foo"; 59 o.authFailAction = "foo";
(...skipping 30 matching lines...) Expand all
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 buildUnnamed3893() { 100 buildUnnamed3368() {
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 checkUnnamed3893(core.List<api.UrlDispatchRule> o) { 107 checkUnnamed3368(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 = buildUnnamed3893(); 123 o.dispatchRules = buildUnnamed3368();
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 checkUnnamed3893(o.dispatchRules); 141 checkUnnamed3368(o.dispatchRules);
142 checkIdentityAwareProxy(o.iap); 142 checkIdentityAwareProxy(o.iap);
143 unittest.expect(o.id, unittest.equals('foo')); 143 unittest.expect(o.id, unittest.equals('foo'));
144 unittest.expect(o.location, unittest.equals('foo')); 144 unittest.expect(o.location, unittest.equals('foo'));
145 unittest.expect(o.name, unittest.equals('foo')); 145 unittest.expect(o.name, unittest.equals('foo'));
146 } 146 }
147 buildCounterApplication--; 147 buildCounterApplication--;
148 } 148 }
149 149
150 core.int buildCounterAutomaticScaling = 0; 150 core.int buildCounterAutomaticScaling = 0;
151 buildAutomaticScaling() { 151 buildAutomaticScaling() {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 } 261 }
262 262
263 checkDebugInstanceRequest(api.DebugInstanceRequest o) { 263 checkDebugInstanceRequest(api.DebugInstanceRequest o) {
264 buildCounterDebugInstanceRequest++; 264 buildCounterDebugInstanceRequest++;
265 if (buildCounterDebugInstanceRequest < 3) { 265 if (buildCounterDebugInstanceRequest < 3) {
266 unittest.expect(o.sshKey, unittest.equals('foo')); 266 unittest.expect(o.sshKey, unittest.equals('foo'));
267 } 267 }
268 buildCounterDebugInstanceRequest--; 268 buildCounterDebugInstanceRequest--;
269 } 269 }
270 270
271 buildUnnamed3894() { 271 buildUnnamed3369() {
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 checkUnnamed3894(core.Map<core.String, api.FileInfo> o) { 278 checkUnnamed3369(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 buildUnnamed3895() { 284 buildUnnamed3370() {
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 checkUnnamed3895(core.List<api.SourceReference> o) { 291 checkUnnamed3370(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 = buildUnnamed3894(); 303 o.files = buildUnnamed3369();
304 o.sourceReferences = buildUnnamed3895(); 304 o.sourceReferences = buildUnnamed3370();
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 checkUnnamed3894(o.files); 314 checkUnnamed3369(o.files);
315 checkUnnamed3895(o.sourceReferences); 315 checkUnnamed3370(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
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 buildUnnamed3896() { 517 buildUnnamed3371() {
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 checkUnnamed3896(core.List<api.Instance> o) { 524 checkUnnamed3371(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 = buildUnnamed3896(); 535 o.instances = buildUnnamed3371();
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 checkUnnamed3896(o.instances); 545 checkUnnamed3371(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 buildUnnamed3897() { 551 buildUnnamed3372() {
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 checkUnnamed3897(core.List<api.Location> o) { 558 checkUnnamed3372(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 = buildUnnamed3897(); 569 o.locations = buildUnnamed3372();
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 checkUnnamed3897(o.locations); 579 checkUnnamed3372(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 buildUnnamed3898() { 585 buildUnnamed3373() {
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 checkUnnamed3898(core.List<api.Module> o) { 592 checkUnnamed3373(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 = buildUnnamed3898(); 603 o.modules = buildUnnamed3373();
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 checkUnnamed3898(o.modules); 613 checkUnnamed3373(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 buildUnnamed3899() { 619 buildUnnamed3374() {
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 checkUnnamed3899(core.List<api.Operation> o) { 626 checkUnnamed3374(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 = buildUnnamed3899(); 638 o.operations = buildUnnamed3374();
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 checkUnnamed3899(o.operations); 648 checkUnnamed3374(o.operations);
649 } 649 }
650 buildCounterListOperationsResponse--; 650 buildCounterListOperationsResponse--;
651 } 651 }
652 652
653 buildUnnamed3900() { 653 buildUnnamed3375() {
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 checkUnnamed3900(core.List<api.Version> o) { 660 checkUnnamed3375(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 = buildUnnamed3900(); 672 o.versions = buildUnnamed3375();
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 checkUnnamed3900(o.versions); 682 checkUnnamed3375(o.versions);
683 } 683 }
684 buildCounterListVersionsResponse--; 684 buildCounterListVersionsResponse--;
685 } 685 }
686 686
687 buildUnnamed3901() { 687 buildUnnamed3376() {
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 checkUnnamed3901(core.Map<core.String, core.String> o) { 694 checkUnnamed3376(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 buildUnnamed3902() { 700 buildUnnamed3377() {
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 checkUnnamed3902(core.Map<core.String, core.Object> o) { 707 checkUnnamed3377(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 = buildUnnamed3901(); 718 o.labels = buildUnnamed3376();
719 o.locationId = "foo"; 719 o.locationId = "foo";
720 o.metadata = buildUnnamed3902(); 720 o.metadata = buildUnnamed3377();
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 checkUnnamed3901(o.labels); 730 checkUnnamed3376(o.labels);
731 unittest.expect(o.locationId, unittest.equals('foo')); 731 unittest.expect(o.locationId, unittest.equals('foo'));
732 checkUnnamed3902(o.metadata); 732 checkUnnamed3377(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
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 buildUnnamed3903() { 801 buildUnnamed3378() {
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 checkUnnamed3903(core.List<core.String> o) { 808 checkUnnamed3378(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 = buildUnnamed3903(); 819 o.forwardedPorts = buildUnnamed3378();
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 checkUnnamed3903(o.forwardedPorts); 830 checkUnnamed3378(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
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 buildUnnamed3904() { 862 buildUnnamed3379() {
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 checkUnnamed3904(core.Map<core.String, core.Object> o) { 869 checkUnnamed3379(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 buildUnnamed3905() { 875 buildUnnamed3380() {
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 checkUnnamed3905(core.Map<core.String, core.Object> o) { 882 checkUnnamed3380(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 = buildUnnamed3904(); 895 o.metadata = buildUnnamed3379();
896 o.name = "foo"; 896 o.name = "foo";
897 o.response = buildUnnamed3905(); 897 o.response = buildUnnamed3380();
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 checkUnnamed3904(o.metadata); 908 checkUnnamed3379(o.metadata);
909 unittest.expect(o.name, unittest.equals('foo')); 909 unittest.expect(o.name, unittest.equals('foo'));
910 checkUnnamed3905(o.response); 910 checkUnnamed3380(o.response);
911 } 911 }
912 buildCounterOperation--; 912 buildCounterOperation--;
913 } 913 }
914 914
915 core.int buildCounterOperationMetadata = 0; 915 core.int buildCounterOperationMetadata = 0;
916 buildOperationMetadata() { 916 buildOperationMetadata() {
917 var o = new api.OperationMetadata(); 917 var o = new api.OperationMetadata();
918 buildCounterOperationMetadata++; 918 buildCounterOperationMetadata++;
919 if (buildCounterOperationMetadata < 3) { 919 if (buildCounterOperationMetadata < 3) {
920 o.endTime = "foo"; 920 o.endTime = "foo";
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 if (buildCounterOperationMetadataExperimental < 3) { 961 if (buildCounterOperationMetadataExperimental < 3) {
962 unittest.expect(o.endTime, unittest.equals('foo')); 962 unittest.expect(o.endTime, unittest.equals('foo'));
963 unittest.expect(o.insertTime, unittest.equals('foo')); 963 unittest.expect(o.insertTime, unittest.equals('foo'));
964 unittest.expect(o.method, unittest.equals('foo')); 964 unittest.expect(o.method, unittest.equals('foo'));
965 unittest.expect(o.target, unittest.equals('foo')); 965 unittest.expect(o.target, unittest.equals('foo'));
966 unittest.expect(o.user, unittest.equals('foo')); 966 unittest.expect(o.user, unittest.equals('foo'));
967 } 967 }
968 buildCounterOperationMetadataExperimental--; 968 buildCounterOperationMetadataExperimental--;
969 } 969 }
970 970
971 buildUnnamed3906() { 971 buildUnnamed3381() {
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 checkUnnamed3906(core.List<core.String> o) { 978 checkUnnamed3381(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 = buildUnnamed3906(); 995 o.warning = buildUnnamed3381();
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 checkUnnamed3906(o.warning); 1010 checkUnnamed3381(o.warning);
1011 } 1011 }
1012 buildCounterOperationMetadataV1--; 1012 buildCounterOperationMetadataV1--;
1013 } 1013 }
1014 1014
1015 buildUnnamed3907() { 1015 buildUnnamed3382() {
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 checkUnnamed3907(core.List<core.String> o) { 1022 checkUnnamed3382(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 }
1027
1028 core.int buildCounterOperationMetadataV1Alpha = 0;
1029 buildOperationMetadataV1Alpha() {
1030 var o = new api.OperationMetadataV1Alpha();
1031 buildCounterOperationMetadataV1Alpha++;
1032 if (buildCounterOperationMetadataV1Alpha < 3) {
1033 o.endTime = "foo";
1034 o.ephemeralMessage = "foo";
1035 o.insertTime = "foo";
1036 o.method = "foo";
1037 o.target = "foo";
1038 o.user = "foo";
1039 o.warning = buildUnnamed3382();
1040 }
1041 buildCounterOperationMetadataV1Alpha--;
1042 return o;
1043 }
1044
1045 checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) {
1046 buildCounterOperationMetadataV1Alpha++;
1047 if (buildCounterOperationMetadataV1Alpha < 3) {
1048 unittest.expect(o.endTime, unittest.equals('foo'));
1049 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1050 unittest.expect(o.insertTime, unittest.equals('foo'));
1051 unittest.expect(o.method, unittest.equals('foo'));
1052 unittest.expect(o.target, unittest.equals('foo'));
1053 unittest.expect(o.user, unittest.equals('foo'));
1054 checkUnnamed3382(o.warning);
1055 }
1056 buildCounterOperationMetadataV1Alpha--;
1057 }
1058
1059 buildUnnamed3383() {
1060 var o = new core.List<core.String>();
1061 o.add("foo");
1062 o.add("foo");
1063 return o;
1064 }
1065
1066 checkUnnamed3383(core.List<core.String> o) {
1067 unittest.expect(o, unittest.hasLength(2));
1068 unittest.expect(o[0], unittest.equals('foo'));
1069 unittest.expect(o[1], unittest.equals('foo'));
1026 } 1070 }
1027 1071
1028 core.int buildCounterOperationMetadataV1Beta = 0; 1072 core.int buildCounterOperationMetadataV1Beta = 0;
1029 buildOperationMetadataV1Beta() { 1073 buildOperationMetadataV1Beta() {
1030 var o = new api.OperationMetadataV1Beta(); 1074 var o = new api.OperationMetadataV1Beta();
1031 buildCounterOperationMetadataV1Beta++; 1075 buildCounterOperationMetadataV1Beta++;
1032 if (buildCounterOperationMetadataV1Beta < 3) { 1076 if (buildCounterOperationMetadataV1Beta < 3) {
1033 o.endTime = "foo"; 1077 o.endTime = "foo";
1034 o.ephemeralMessage = "foo"; 1078 o.ephemeralMessage = "foo";
1035 o.insertTime = "foo"; 1079 o.insertTime = "foo";
1036 o.method = "foo"; 1080 o.method = "foo";
1037 o.target = "foo"; 1081 o.target = "foo";
1038 o.user = "foo"; 1082 o.user = "foo";
1039 o.warning = buildUnnamed3907(); 1083 o.warning = buildUnnamed3383();
1040 } 1084 }
1041 buildCounterOperationMetadataV1Beta--; 1085 buildCounterOperationMetadataV1Beta--;
1042 return o; 1086 return o;
1043 } 1087 }
1044 1088
1045 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { 1089 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) {
1046 buildCounterOperationMetadataV1Beta++; 1090 buildCounterOperationMetadataV1Beta++;
1047 if (buildCounterOperationMetadataV1Beta < 3) { 1091 if (buildCounterOperationMetadataV1Beta < 3) {
1048 unittest.expect(o.endTime, unittest.equals('foo')); 1092 unittest.expect(o.endTime, unittest.equals('foo'));
1049 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1093 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1050 unittest.expect(o.insertTime, unittest.equals('foo')); 1094 unittest.expect(o.insertTime, unittest.equals('foo'));
1051 unittest.expect(o.method, unittest.equals('foo')); 1095 unittest.expect(o.method, unittest.equals('foo'));
1052 unittest.expect(o.target, unittest.equals('foo')); 1096 unittest.expect(o.target, unittest.equals('foo'));
1053 unittest.expect(o.user, unittest.equals('foo')); 1097 unittest.expect(o.user, unittest.equals('foo'));
1054 checkUnnamed3907(o.warning); 1098 checkUnnamed3383(o.warning);
1055 } 1099 }
1056 buildCounterOperationMetadataV1Beta--; 1100 buildCounterOperationMetadataV1Beta--;
1057 } 1101 }
1058 1102
1059 core.int buildCounterOperationMetadataV1Beta5 = 0; 1103 core.int buildCounterOperationMetadataV1Beta5 = 0;
1060 buildOperationMetadataV1Beta5() { 1104 buildOperationMetadataV1Beta5() {
1061 var o = new api.OperationMetadataV1Beta5(); 1105 var o = new api.OperationMetadataV1Beta5();
1062 buildCounterOperationMetadataV1Beta5++; 1106 buildCounterOperationMetadataV1Beta5++;
1063 if (buildCounterOperationMetadataV1Beta5 < 3) { 1107 if (buildCounterOperationMetadataV1Beta5 < 3) {
1064 o.endTime = "foo"; 1108 o.endTime = "foo";
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 1141
1098 checkRequestUtilization(api.RequestUtilization o) { 1142 checkRequestUtilization(api.RequestUtilization o) {
1099 buildCounterRequestUtilization++; 1143 buildCounterRequestUtilization++;
1100 if (buildCounterRequestUtilization < 3) { 1144 if (buildCounterRequestUtilization < 3) {
1101 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); 1145 unittest.expect(o.targetConcurrentRequests, unittest.equals(42));
1102 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); 1146 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42));
1103 } 1147 }
1104 buildCounterRequestUtilization--; 1148 buildCounterRequestUtilization--;
1105 } 1149 }
1106 1150
1107 buildUnnamed3908() { 1151 buildUnnamed3384() {
1108 var o = new core.List<api.Volume>(); 1152 var o = new core.List<api.Volume>();
1109 o.add(buildVolume()); 1153 o.add(buildVolume());
1110 o.add(buildVolume()); 1154 o.add(buildVolume());
1111 return o; 1155 return o;
1112 } 1156 }
1113 1157
1114 checkUnnamed3908(core.List<api.Volume> o) { 1158 checkUnnamed3384(core.List<api.Volume> o) {
1115 unittest.expect(o, unittest.hasLength(2)); 1159 unittest.expect(o, unittest.hasLength(2));
1116 checkVolume(o[0]); 1160 checkVolume(o[0]);
1117 checkVolume(o[1]); 1161 checkVolume(o[1]);
1118 } 1162 }
1119 1163
1120 core.int buildCounterResources = 0; 1164 core.int buildCounterResources = 0;
1121 buildResources() { 1165 buildResources() {
1122 var o = new api.Resources(); 1166 var o = new api.Resources();
1123 buildCounterResources++; 1167 buildCounterResources++;
1124 if (buildCounterResources < 3) { 1168 if (buildCounterResources < 3) {
1125 o.cpu = 42.0; 1169 o.cpu = 42.0;
1126 o.diskGb = 42.0; 1170 o.diskGb = 42.0;
1127 o.memoryGb = 42.0; 1171 o.memoryGb = 42.0;
1128 o.volumes = buildUnnamed3908(); 1172 o.volumes = buildUnnamed3384();
1129 } 1173 }
1130 buildCounterResources--; 1174 buildCounterResources--;
1131 return o; 1175 return o;
1132 } 1176 }
1133 1177
1134 checkResources(api.Resources o) { 1178 checkResources(api.Resources o) {
1135 buildCounterResources++; 1179 buildCounterResources++;
1136 if (buildCounterResources < 3) { 1180 if (buildCounterResources < 3) {
1137 unittest.expect(o.cpu, unittest.equals(42.0)); 1181 unittest.expect(o.cpu, unittest.equals(42.0));
1138 unittest.expect(o.diskGb, unittest.equals(42.0)); 1182 unittest.expect(o.diskGb, unittest.equals(42.0));
1139 unittest.expect(o.memoryGb, unittest.equals(42.0)); 1183 unittest.expect(o.memoryGb, unittest.equals(42.0));
1140 checkUnnamed3908(o.volumes); 1184 checkUnnamed3384(o.volumes);
1141 } 1185 }
1142 buildCounterResources--; 1186 buildCounterResources--;
1143 } 1187 }
1144 1188
1145 core.int buildCounterScriptHandler = 0; 1189 core.int buildCounterScriptHandler = 0;
1146 buildScriptHandler() { 1190 buildScriptHandler() {
1147 var o = new api.ScriptHandler(); 1191 var o = new api.ScriptHandler();
1148 buildCounterScriptHandler++; 1192 buildCounterScriptHandler++;
1149 if (buildCounterScriptHandler < 3) { 1193 if (buildCounterScriptHandler < 3) {
1150 o.scriptPath = "foo"; 1194 o.scriptPath = "foo";
(...skipping 24 matching lines...) Expand all
1175 1219
1176 checkSourceReference(api.SourceReference o) { 1220 checkSourceReference(api.SourceReference o) {
1177 buildCounterSourceReference++; 1221 buildCounterSourceReference++;
1178 if (buildCounterSourceReference < 3) { 1222 if (buildCounterSourceReference < 3) {
1179 unittest.expect(o.repository, unittest.equals('foo')); 1223 unittest.expect(o.repository, unittest.equals('foo'));
1180 unittest.expect(o.revisionId, unittest.equals('foo')); 1224 unittest.expect(o.revisionId, unittest.equals('foo'));
1181 } 1225 }
1182 buildCounterSourceReference--; 1226 buildCounterSourceReference--;
1183 } 1227 }
1184 1228
1185 buildUnnamed3909() { 1229 buildUnnamed3385() {
1186 var o = new core.Map<core.String, core.String>(); 1230 var o = new core.Map<core.String, core.String>();
1187 o["x"] = "foo"; 1231 o["x"] = "foo";
1188 o["y"] = "foo"; 1232 o["y"] = "foo";
1189 return o; 1233 return o;
1190 } 1234 }
1191 1235
1192 checkUnnamed3909(core.Map<core.String, core.String> o) { 1236 checkUnnamed3385(core.Map<core.String, core.String> o) {
1193 unittest.expect(o, unittest.hasLength(2)); 1237 unittest.expect(o, unittest.hasLength(2));
1194 unittest.expect(o["x"], unittest.equals('foo')); 1238 unittest.expect(o["x"], unittest.equals('foo'));
1195 unittest.expect(o["y"], unittest.equals('foo')); 1239 unittest.expect(o["y"], unittest.equals('foo'));
1196 } 1240 }
1197 1241
1198 core.int buildCounterStaticDirectoryHandler = 0; 1242 core.int buildCounterStaticDirectoryHandler = 0;
1199 buildStaticDirectoryHandler() { 1243 buildStaticDirectoryHandler() {
1200 var o = new api.StaticDirectoryHandler(); 1244 var o = new api.StaticDirectoryHandler();
1201 buildCounterStaticDirectoryHandler++; 1245 buildCounterStaticDirectoryHandler++;
1202 if (buildCounterStaticDirectoryHandler < 3) { 1246 if (buildCounterStaticDirectoryHandler < 3) {
1203 o.applicationReadable = true; 1247 o.applicationReadable = true;
1204 o.directory = "foo"; 1248 o.directory = "foo";
1205 o.expiration = "foo"; 1249 o.expiration = "foo";
1206 o.httpHeaders = buildUnnamed3909(); 1250 o.httpHeaders = buildUnnamed3385();
1207 o.mimeType = "foo"; 1251 o.mimeType = "foo";
1208 o.requireMatchingFile = true; 1252 o.requireMatchingFile = true;
1209 } 1253 }
1210 buildCounterStaticDirectoryHandler--; 1254 buildCounterStaticDirectoryHandler--;
1211 return o; 1255 return o;
1212 } 1256 }
1213 1257
1214 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { 1258 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) {
1215 buildCounterStaticDirectoryHandler++; 1259 buildCounterStaticDirectoryHandler++;
1216 if (buildCounterStaticDirectoryHandler < 3) { 1260 if (buildCounterStaticDirectoryHandler < 3) {
1217 unittest.expect(o.applicationReadable, unittest.isTrue); 1261 unittest.expect(o.applicationReadable, unittest.isTrue);
1218 unittest.expect(o.directory, unittest.equals('foo')); 1262 unittest.expect(o.directory, unittest.equals('foo'));
1219 unittest.expect(o.expiration, unittest.equals('foo')); 1263 unittest.expect(o.expiration, unittest.equals('foo'));
1220 checkUnnamed3909(o.httpHeaders); 1264 checkUnnamed3385(o.httpHeaders);
1221 unittest.expect(o.mimeType, unittest.equals('foo')); 1265 unittest.expect(o.mimeType, unittest.equals('foo'));
1222 unittest.expect(o.requireMatchingFile, unittest.isTrue); 1266 unittest.expect(o.requireMatchingFile, unittest.isTrue);
1223 } 1267 }
1224 buildCounterStaticDirectoryHandler--; 1268 buildCounterStaticDirectoryHandler--;
1225 } 1269 }
1226 1270
1227 buildUnnamed3910() { 1271 buildUnnamed3386() {
1228 var o = new core.Map<core.String, core.String>(); 1272 var o = new core.Map<core.String, core.String>();
1229 o["x"] = "foo"; 1273 o["x"] = "foo";
1230 o["y"] = "foo"; 1274 o["y"] = "foo";
1231 return o; 1275 return o;
1232 } 1276 }
1233 1277
1234 checkUnnamed3910(core.Map<core.String, core.String> o) { 1278 checkUnnamed3386(core.Map<core.String, core.String> o) {
1235 unittest.expect(o, unittest.hasLength(2)); 1279 unittest.expect(o, unittest.hasLength(2));
1236 unittest.expect(o["x"], unittest.equals('foo')); 1280 unittest.expect(o["x"], unittest.equals('foo'));
1237 unittest.expect(o["y"], unittest.equals('foo')); 1281 unittest.expect(o["y"], unittest.equals('foo'));
1238 } 1282 }
1239 1283
1240 core.int buildCounterStaticFilesHandler = 0; 1284 core.int buildCounterStaticFilesHandler = 0;
1241 buildStaticFilesHandler() { 1285 buildStaticFilesHandler() {
1242 var o = new api.StaticFilesHandler(); 1286 var o = new api.StaticFilesHandler();
1243 buildCounterStaticFilesHandler++; 1287 buildCounterStaticFilesHandler++;
1244 if (buildCounterStaticFilesHandler < 3) { 1288 if (buildCounterStaticFilesHandler < 3) {
1245 o.applicationReadable = true; 1289 o.applicationReadable = true;
1246 o.expiration = "foo"; 1290 o.expiration = "foo";
1247 o.httpHeaders = buildUnnamed3910(); 1291 o.httpHeaders = buildUnnamed3386();
1248 o.mimeType = "foo"; 1292 o.mimeType = "foo";
1249 o.path = "foo"; 1293 o.path = "foo";
1250 o.requireMatchingFile = true; 1294 o.requireMatchingFile = true;
1251 o.uploadPathRegex = "foo"; 1295 o.uploadPathRegex = "foo";
1252 } 1296 }
1253 buildCounterStaticFilesHandler--; 1297 buildCounterStaticFilesHandler--;
1254 return o; 1298 return o;
1255 } 1299 }
1256 1300
1257 checkStaticFilesHandler(api.StaticFilesHandler o) { 1301 checkStaticFilesHandler(api.StaticFilesHandler o) {
1258 buildCounterStaticFilesHandler++; 1302 buildCounterStaticFilesHandler++;
1259 if (buildCounterStaticFilesHandler < 3) { 1303 if (buildCounterStaticFilesHandler < 3) {
1260 unittest.expect(o.applicationReadable, unittest.isTrue); 1304 unittest.expect(o.applicationReadable, unittest.isTrue);
1261 unittest.expect(o.expiration, unittest.equals('foo')); 1305 unittest.expect(o.expiration, unittest.equals('foo'));
1262 checkUnnamed3910(o.httpHeaders); 1306 checkUnnamed3386(o.httpHeaders);
1263 unittest.expect(o.mimeType, unittest.equals('foo')); 1307 unittest.expect(o.mimeType, unittest.equals('foo'));
1264 unittest.expect(o.path, unittest.equals('foo')); 1308 unittest.expect(o.path, unittest.equals('foo'));
1265 unittest.expect(o.requireMatchingFile, unittest.isTrue); 1309 unittest.expect(o.requireMatchingFile, unittest.isTrue);
1266 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); 1310 unittest.expect(o.uploadPathRegex, unittest.equals('foo'));
1267 } 1311 }
1268 buildCounterStaticFilesHandler--; 1312 buildCounterStaticFilesHandler--;
1269 } 1313 }
1270 1314
1271 buildUnnamed3911() { 1315 buildUnnamed3387() {
1272 var o = new core.Map<core.String, core.Object>(); 1316 var o = new core.Map<core.String, core.Object>();
1273 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1317 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1274 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1318 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1275 return o; 1319 return o;
1276 } 1320 }
1277 1321
1278 checkUnnamed3911(core.Map<core.String, core.Object> o) { 1322 checkUnnamed3387(core.Map<core.String, core.Object> o) {
1279 unittest.expect(o, unittest.hasLength(2)); 1323 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')); 1324 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')); 1325 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 } 1326 }
1283 1327
1284 buildUnnamed3912() { 1328 buildUnnamed3388() {
1285 var o = new core.List<core.Map<core.String, core.Object>>(); 1329 var o = new core.List<core.Map<core.String, core.Object>>();
1286 o.add(buildUnnamed3911()); 1330 o.add(buildUnnamed3387());
1287 o.add(buildUnnamed3911()); 1331 o.add(buildUnnamed3387());
1288 return o; 1332 return o;
1289 } 1333 }
1290 1334
1291 checkUnnamed3912(core.List<core.Map<core.String, core.Object>> o) { 1335 checkUnnamed3388(core.List<core.Map<core.String, core.Object>> o) {
1292 unittest.expect(o, unittest.hasLength(2)); 1336 unittest.expect(o, unittest.hasLength(2));
1293 checkUnnamed3911(o[0]); 1337 checkUnnamed3387(o[0]);
1294 checkUnnamed3911(o[1]); 1338 checkUnnamed3387(o[1]);
1295 } 1339 }
1296 1340
1297 core.int buildCounterStatus = 0; 1341 core.int buildCounterStatus = 0;
1298 buildStatus() { 1342 buildStatus() {
1299 var o = new api.Status(); 1343 var o = new api.Status();
1300 buildCounterStatus++; 1344 buildCounterStatus++;
1301 if (buildCounterStatus < 3) { 1345 if (buildCounterStatus < 3) {
1302 o.code = 42; 1346 o.code = 42;
1303 o.details = buildUnnamed3912(); 1347 o.details = buildUnnamed3388();
1304 o.message = "foo"; 1348 o.message = "foo";
1305 } 1349 }
1306 buildCounterStatus--; 1350 buildCounterStatus--;
1307 return o; 1351 return o;
1308 } 1352 }
1309 1353
1310 checkStatus(api.Status o) { 1354 checkStatus(api.Status o) {
1311 buildCounterStatus++; 1355 buildCounterStatus++;
1312 if (buildCounterStatus < 3) { 1356 if (buildCounterStatus < 3) {
1313 unittest.expect(o.code, unittest.equals(42)); 1357 unittest.expect(o.code, unittest.equals(42));
1314 checkUnnamed3912(o.details); 1358 checkUnnamed3388(o.details);
1315 unittest.expect(o.message, unittest.equals('foo')); 1359 unittest.expect(o.message, unittest.equals('foo'));
1316 } 1360 }
1317 buildCounterStatus--; 1361 buildCounterStatus--;
1318 } 1362 }
1319 1363
1320 buildUnnamed3913() { 1364 buildUnnamed3389() {
1321 var o = new core.Map<core.String, core.double>(); 1365 var o = new core.Map<core.String, core.double>();
1322 o["x"] = 42.0; 1366 o["x"] = 42.0;
1323 o["y"] = 42.0; 1367 o["y"] = 42.0;
1324 return o; 1368 return o;
1325 } 1369 }
1326 1370
1327 checkUnnamed3913(core.Map<core.String, core.double> o) { 1371 checkUnnamed3389(core.Map<core.String, core.double> o) {
1328 unittest.expect(o, unittest.hasLength(2)); 1372 unittest.expect(o, unittest.hasLength(2));
1329 unittest.expect(o["x"], unittest.equals(42.0)); 1373 unittest.expect(o["x"], unittest.equals(42.0));
1330 unittest.expect(o["y"], unittest.equals(42.0)); 1374 unittest.expect(o["y"], unittest.equals(42.0));
1331 } 1375 }
1332 1376
1333 core.int buildCounterTrafficSplit = 0; 1377 core.int buildCounterTrafficSplit = 0;
1334 buildTrafficSplit() { 1378 buildTrafficSplit() {
1335 var o = new api.TrafficSplit(); 1379 var o = new api.TrafficSplit();
1336 buildCounterTrafficSplit++; 1380 buildCounterTrafficSplit++;
1337 if (buildCounterTrafficSplit < 3) { 1381 if (buildCounterTrafficSplit < 3) {
1338 o.allocations = buildUnnamed3913(); 1382 o.allocations = buildUnnamed3389();
1339 o.shardBy = "foo"; 1383 o.shardBy = "foo";
1340 } 1384 }
1341 buildCounterTrafficSplit--; 1385 buildCounterTrafficSplit--;
1342 return o; 1386 return o;
1343 } 1387 }
1344 1388
1345 checkTrafficSplit(api.TrafficSplit o) { 1389 checkTrafficSplit(api.TrafficSplit o) {
1346 buildCounterTrafficSplit++; 1390 buildCounterTrafficSplit++;
1347 if (buildCounterTrafficSplit < 3) { 1391 if (buildCounterTrafficSplit < 3) {
1348 checkUnnamed3913(o.allocations); 1392 checkUnnamed3389(o.allocations);
1349 unittest.expect(o.shardBy, unittest.equals('foo')); 1393 unittest.expect(o.shardBy, unittest.equals('foo'));
1350 } 1394 }
1351 buildCounterTrafficSplit--; 1395 buildCounterTrafficSplit--;
1352 } 1396 }
1353 1397
1354 core.int buildCounterUrlDispatchRule = 0; 1398 core.int buildCounterUrlDispatchRule = 0;
1355 buildUrlDispatchRule() { 1399 buildUrlDispatchRule() {
1356 var o = new api.UrlDispatchRule(); 1400 var o = new api.UrlDispatchRule();
1357 buildCounterUrlDispatchRule++; 1401 buildCounterUrlDispatchRule++;
1358 if (buildCounterUrlDispatchRule < 3) { 1402 if (buildCounterUrlDispatchRule < 3) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); 1446 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo'));
1403 checkScriptHandler(o.script); 1447 checkScriptHandler(o.script);
1404 unittest.expect(o.securityLevel, unittest.equals('foo')); 1448 unittest.expect(o.securityLevel, unittest.equals('foo'));
1405 checkStaticDirectoryHandler(o.staticDirectory); 1449 checkStaticDirectoryHandler(o.staticDirectory);
1406 checkStaticFilesHandler(o.staticFiles); 1450 checkStaticFilesHandler(o.staticFiles);
1407 unittest.expect(o.urlRegex, unittest.equals('foo')); 1451 unittest.expect(o.urlRegex, unittest.equals('foo'));
1408 } 1452 }
1409 buildCounterUrlMap--; 1453 buildCounterUrlMap--;
1410 } 1454 }
1411 1455
1412 buildUnnamed3914() { 1456 buildUnnamed3390() {
1413 var o = new core.Map<core.String, core.String>(); 1457 var o = new core.Map<core.String, core.String>();
1414 o["x"] = "foo"; 1458 o["x"] = "foo";
1415 o["y"] = "foo"; 1459 o["y"] = "foo";
1416 return o; 1460 return o;
1417 } 1461 }
1418 1462
1419 checkUnnamed3914(core.Map<core.String, core.String> o) { 1463 checkUnnamed3390(core.Map<core.String, core.String> o) {
1420 unittest.expect(o, unittest.hasLength(2)); 1464 unittest.expect(o, unittest.hasLength(2));
1421 unittest.expect(o["x"], unittest.equals('foo')); 1465 unittest.expect(o["x"], unittest.equals('foo'));
1422 unittest.expect(o["y"], unittest.equals('foo')); 1466 unittest.expect(o["y"], unittest.equals('foo'));
1423 } 1467 }
1424 1468
1425 buildUnnamed3915() { 1469 buildUnnamed3391() {
1426 var o = new core.Map<core.String, core.String>(); 1470 var o = new core.Map<core.String, core.String>();
1427 o["x"] = "foo"; 1471 o["x"] = "foo";
1428 o["y"] = "foo"; 1472 o["y"] = "foo";
1429 return o; 1473 return o;
1430 } 1474 }
1431 1475
1432 checkUnnamed3915(core.Map<core.String, core.String> o) { 1476 checkUnnamed3391(core.Map<core.String, core.String> o) {
1433 unittest.expect(o, unittest.hasLength(2)); 1477 unittest.expect(o, unittest.hasLength(2));
1434 unittest.expect(o["x"], unittest.equals('foo')); 1478 unittest.expect(o["x"], unittest.equals('foo'));
1435 unittest.expect(o["y"], unittest.equals('foo')); 1479 unittest.expect(o["y"], unittest.equals('foo'));
1436 } 1480 }
1437 1481
1438 buildUnnamed3916() { 1482 buildUnnamed3392() {
1439 var o = new core.List<api.ErrorHandler>(); 1483 var o = new core.List<api.ErrorHandler>();
1440 o.add(buildErrorHandler()); 1484 o.add(buildErrorHandler());
1441 o.add(buildErrorHandler()); 1485 o.add(buildErrorHandler());
1442 return o; 1486 return o;
1443 } 1487 }
1444 1488
1445 checkUnnamed3916(core.List<api.ErrorHandler> o) { 1489 checkUnnamed3392(core.List<api.ErrorHandler> o) {
1446 unittest.expect(o, unittest.hasLength(2)); 1490 unittest.expect(o, unittest.hasLength(2));
1447 checkErrorHandler(o[0]); 1491 checkErrorHandler(o[0]);
1448 checkErrorHandler(o[1]); 1492 checkErrorHandler(o[1]);
1449 } 1493 }
1450 1494
1451 buildUnnamed3917() { 1495 buildUnnamed3393() {
1452 var o = new core.List<api.UrlMap>(); 1496 var o = new core.List<api.UrlMap>();
1453 o.add(buildUrlMap()); 1497 o.add(buildUrlMap());
1454 o.add(buildUrlMap()); 1498 o.add(buildUrlMap());
1455 return o; 1499 return o;
1456 } 1500 }
1457 1501
1458 checkUnnamed3917(core.List<api.UrlMap> o) { 1502 checkUnnamed3393(core.List<api.UrlMap> o) {
1459 unittest.expect(o, unittest.hasLength(2)); 1503 unittest.expect(o, unittest.hasLength(2));
1460 checkUrlMap(o[0]); 1504 checkUrlMap(o[0]);
1461 checkUrlMap(o[1]); 1505 checkUrlMap(o[1]);
1462 } 1506 }
1463 1507
1464 buildUnnamed3918() { 1508 buildUnnamed3394() {
1465 var o = new core.List<core.String>(); 1509 var o = new core.List<core.String>();
1466 o.add("foo"); 1510 o.add("foo");
1467 o.add("foo"); 1511 o.add("foo");
1468 return o; 1512 return o;
1469 } 1513 }
1470 1514
1471 checkUnnamed3918(core.List<core.String> o) { 1515 checkUnnamed3394(core.List<core.String> o) {
1472 unittest.expect(o, unittest.hasLength(2)); 1516 unittest.expect(o, unittest.hasLength(2));
1473 unittest.expect(o[0], unittest.equals('foo')); 1517 unittest.expect(o[0], unittest.equals('foo'));
1474 unittest.expect(o[1], unittest.equals('foo')); 1518 unittest.expect(o[1], unittest.equals('foo'));
1475 } 1519 }
1476 1520
1477 buildUnnamed3919() { 1521 buildUnnamed3395() {
1478 var o = new core.List<api.Library>(); 1522 var o = new core.List<api.Library>();
1479 o.add(buildLibrary()); 1523 o.add(buildLibrary());
1480 o.add(buildLibrary()); 1524 o.add(buildLibrary());
1481 return o; 1525 return o;
1482 } 1526 }
1483 1527
1484 checkUnnamed3919(core.List<api.Library> o) { 1528 checkUnnamed3395(core.List<api.Library> o) {
1485 unittest.expect(o, unittest.hasLength(2)); 1529 unittest.expect(o, unittest.hasLength(2));
1486 checkLibrary(o[0]); 1530 checkLibrary(o[0]);
1487 checkLibrary(o[1]); 1531 checkLibrary(o[1]);
1488 } 1532 }
1489 1533
1490 core.int buildCounterVersion = 0; 1534 core.int buildCounterVersion = 0;
1491 buildVersion() { 1535 buildVersion() {
1492 var o = new api.Version(); 1536 var o = new api.Version();
1493 buildCounterVersion++; 1537 buildCounterVersion++;
1494 if (buildCounterVersion < 3) { 1538 if (buildCounterVersion < 3) {
1495 o.apiConfig = buildApiConfigHandler(); 1539 o.apiConfig = buildApiConfigHandler();
1496 o.automaticScaling = buildAutomaticScaling(); 1540 o.automaticScaling = buildAutomaticScaling();
1497 o.basicScaling = buildBasicScaling(); 1541 o.basicScaling = buildBasicScaling();
1498 o.betaSettings = buildUnnamed3914(); 1542 o.betaSettings = buildUnnamed3390();
1499 o.creationTime = "foo"; 1543 o.creationTime = "foo";
1500 o.defaultExpiration = "foo"; 1544 o.defaultExpiration = "foo";
1501 o.deployer = "foo"; 1545 o.deployer = "foo";
1502 o.deployment = buildDeployment(); 1546 o.deployment = buildDeployment();
1503 o.env = "foo"; 1547 o.env = "foo";
1504 o.envVariables = buildUnnamed3915(); 1548 o.envVariables = buildUnnamed3391();
1505 o.errorHandlers = buildUnnamed3916(); 1549 o.errorHandlers = buildUnnamed3392();
1506 o.handlers = buildUnnamed3917(); 1550 o.handlers = buildUnnamed3393();
1507 o.healthCheck = buildHealthCheck(); 1551 o.healthCheck = buildHealthCheck();
1508 o.id = "foo"; 1552 o.id = "foo";
1509 o.inboundServices = buildUnnamed3918(); 1553 o.inboundServices = buildUnnamed3394();
1510 o.instanceClass = "foo"; 1554 o.instanceClass = "foo";
1511 o.libraries = buildUnnamed3919(); 1555 o.libraries = buildUnnamed3395();
1512 o.manualScaling = buildManualScaling(); 1556 o.manualScaling = buildManualScaling();
1513 o.name = "foo"; 1557 o.name = "foo";
1514 o.network = buildNetwork(); 1558 o.network = buildNetwork();
1515 o.nobuildFilesRegex = "foo"; 1559 o.nobuildFilesRegex = "foo";
1516 o.resources = buildResources(); 1560 o.resources = buildResources();
1517 o.runtime = "foo"; 1561 o.runtime = "foo";
1562 o.runtimeApiVersion = "foo";
1518 o.servingStatus = "foo"; 1563 o.servingStatus = "foo";
1519 o.threadsafe = true; 1564 o.threadsafe = true;
1520 o.vm = true; 1565 o.vm = true;
1521 } 1566 }
1522 buildCounterVersion--; 1567 buildCounterVersion--;
1523 return o; 1568 return o;
1524 } 1569 }
1525 1570
1526 checkVersion(api.Version o) { 1571 checkVersion(api.Version o) {
1527 buildCounterVersion++; 1572 buildCounterVersion++;
1528 if (buildCounterVersion < 3) { 1573 if (buildCounterVersion < 3) {
1529 checkApiConfigHandler(o.apiConfig); 1574 checkApiConfigHandler(o.apiConfig);
1530 checkAutomaticScaling(o.automaticScaling); 1575 checkAutomaticScaling(o.automaticScaling);
1531 checkBasicScaling(o.basicScaling); 1576 checkBasicScaling(o.basicScaling);
1532 checkUnnamed3914(o.betaSettings); 1577 checkUnnamed3390(o.betaSettings);
1533 unittest.expect(o.creationTime, unittest.equals('foo')); 1578 unittest.expect(o.creationTime, unittest.equals('foo'));
1534 unittest.expect(o.defaultExpiration, unittest.equals('foo')); 1579 unittest.expect(o.defaultExpiration, unittest.equals('foo'));
1535 unittest.expect(o.deployer, unittest.equals('foo')); 1580 unittest.expect(o.deployer, unittest.equals('foo'));
1536 checkDeployment(o.deployment); 1581 checkDeployment(o.deployment);
1537 unittest.expect(o.env, unittest.equals('foo')); 1582 unittest.expect(o.env, unittest.equals('foo'));
1538 checkUnnamed3915(o.envVariables); 1583 checkUnnamed3391(o.envVariables);
1539 checkUnnamed3916(o.errorHandlers); 1584 checkUnnamed3392(o.errorHandlers);
1540 checkUnnamed3917(o.handlers); 1585 checkUnnamed3393(o.handlers);
1541 checkHealthCheck(o.healthCheck); 1586 checkHealthCheck(o.healthCheck);
1542 unittest.expect(o.id, unittest.equals('foo')); 1587 unittest.expect(o.id, unittest.equals('foo'));
1543 checkUnnamed3918(o.inboundServices); 1588 checkUnnamed3394(o.inboundServices);
1544 unittest.expect(o.instanceClass, unittest.equals('foo')); 1589 unittest.expect(o.instanceClass, unittest.equals('foo'));
1545 checkUnnamed3919(o.libraries); 1590 checkUnnamed3395(o.libraries);
1546 checkManualScaling(o.manualScaling); 1591 checkManualScaling(o.manualScaling);
1547 unittest.expect(o.name, unittest.equals('foo')); 1592 unittest.expect(o.name, unittest.equals('foo'));
1548 checkNetwork(o.network); 1593 checkNetwork(o.network);
1549 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); 1594 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo'));
1550 checkResources(o.resources); 1595 checkResources(o.resources);
1551 unittest.expect(o.runtime, unittest.equals('foo')); 1596 unittest.expect(o.runtime, unittest.equals('foo'));
1597 unittest.expect(o.runtimeApiVersion, unittest.equals('foo'));
1552 unittest.expect(o.servingStatus, unittest.equals('foo')); 1598 unittest.expect(o.servingStatus, unittest.equals('foo'));
1553 unittest.expect(o.threadsafe, unittest.isTrue); 1599 unittest.expect(o.threadsafe, unittest.isTrue);
1554 unittest.expect(o.vm, unittest.isTrue); 1600 unittest.expect(o.vm, unittest.isTrue);
1555 } 1601 }
1556 buildCounterVersion--; 1602 buildCounterVersion--;
1557 } 1603 }
1558 1604
1559 core.int buildCounterVolume = 0; 1605 core.int buildCounterVolume = 0;
1560 buildVolume() { 1606 buildVolume() {
1561 var o = new api.Volume(); 1607 var o = new api.Volume();
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1853 1899
1854 unittest.group("obj-schema-OperationMetadataV1", () { 1900 unittest.group("obj-schema-OperationMetadataV1", () {
1855 unittest.test("to-json--from-json", () { 1901 unittest.test("to-json--from-json", () {
1856 var o = buildOperationMetadataV1(); 1902 var o = buildOperationMetadataV1();
1857 var od = new api.OperationMetadataV1.fromJson(o.toJson()); 1903 var od = new api.OperationMetadataV1.fromJson(o.toJson());
1858 checkOperationMetadataV1(od); 1904 checkOperationMetadataV1(od);
1859 }); 1905 });
1860 }); 1906 });
1861 1907
1862 1908
1909 unittest.group("obj-schema-OperationMetadataV1Alpha", () {
1910 unittest.test("to-json--from-json", () {
1911 var o = buildOperationMetadataV1Alpha();
1912 var od = new api.OperationMetadataV1Alpha.fromJson(o.toJson());
1913 checkOperationMetadataV1Alpha(od);
1914 });
1915 });
1916
1917
1863 unittest.group("obj-schema-OperationMetadataV1Beta", () { 1918 unittest.group("obj-schema-OperationMetadataV1Beta", () {
1864 unittest.test("to-json--from-json", () { 1919 unittest.test("to-json--from-json", () {
1865 var o = buildOperationMetadataV1Beta(); 1920 var o = buildOperationMetadataV1Beta();
1866 var od = new api.OperationMetadataV1Beta.fromJson(o.toJson()); 1921 var od = new api.OperationMetadataV1Beta.fromJson(o.toJson());
1867 checkOperationMetadataV1Beta(od); 1922 checkOperationMetadataV1Beta(od);
1868 }); 1923 });
1869 }); 1924 });
1870 1925
1871 1926
1872 unittest.group("obj-schema-OperationMetadataV1Beta5", () { 1927 unittest.group("obj-schema-OperationMetadataV1Beta5", () {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 }); 2040 });
1986 }); 2041 });
1987 2042
1988 2043
1989 unittest.group("resource-AppsResourceApi", () { 2044 unittest.group("resource-AppsResourceApi", () {
1990 unittest.test("method--create", () { 2045 unittest.test("method--create", () {
1991 2046
1992 var mock = new HttpServerMock(); 2047 var mock = new HttpServerMock();
1993 api.AppsResourceApi res = new api.AppengineApi(mock).apps; 2048 api.AppsResourceApi res = new api.AppengineApi(mock).apps;
1994 var arg_request = buildApplication(); 2049 var arg_request = buildApplication();
1995 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2050 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1996 var obj = new api.Application.fromJson(json); 2051 var obj = new api.Application.fromJson(json);
1997 checkApplication(obj); 2052 checkApplication(obj);
1998 2053
1999 var path = (req.url).path; 2054 var path = (req.url).path;
2000 var pathOffset = 0; 2055 var pathOffset = 0;
2001 var index; 2056 var index;
2002 var subPart; 2057 var subPart;
2003 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2058 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2004 pathOffset += 1; 2059 pathOffset += 1;
2005 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta4/apps")); 2060 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta4/apps"));
(...skipping 16 matching lines...) Expand all
2022 } 2077 }
2023 } 2078 }
2024 2079
2025 2080
2026 var h = { 2081 var h = {
2027 "content-type" : "application/json; charset=utf-8", 2082 "content-type" : "application/json; charset=utf-8",
2028 }; 2083 };
2029 var resp = convert.JSON.encode(buildOperation()); 2084 var resp = convert.JSON.encode(buildOperation());
2030 return new async.Future.value(stringResponse(200, h, resp)); 2085 return new async.Future.value(stringResponse(200, h, resp));
2031 }), true); 2086 }), true);
2032 res.create(arg_request).then(unittest.expectAsync(((api.Operation response ) { 2087 res.create(arg_request).then(unittest.expectAsync1(((api.Operation respons e) {
2033 checkOperation(response); 2088 checkOperation(response);
2034 }))); 2089 })));
2035 }); 2090 });
2036 2091
2037 unittest.test("method--get", () { 2092 unittest.test("method--get", () {
2038 2093
2039 var mock = new HttpServerMock(); 2094 var mock = new HttpServerMock();
2040 api.AppsResourceApi res = new api.AppengineApi(mock).apps; 2095 api.AppsResourceApi res = new api.AppengineApi(mock).apps;
2041 var arg_appsId = "foo"; 2096 var arg_appsId = "foo";
2042 var arg_ensureResourcesExist = true; 2097 var arg_ensureResourcesExist = true;
2043 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2098 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2044 var path = (req.url).path; 2099 var path = (req.url).path;
2045 var pathOffset = 0; 2100 var pathOffset = 0;
2046 var index; 2101 var index;
2047 var subPart; 2102 var subPart;
2048 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2103 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2049 pathOffset += 1; 2104 pathOffset += 1;
2050 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2105 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
2051 pathOffset += 13; 2106 pathOffset += 13;
2052 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2107 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
2053 pathOffset = path.length; 2108 pathOffset = path.length;
(...skipping 17 matching lines...) Expand all
2071 } 2126 }
2072 unittest.expect(queryMap["ensureResourcesExist"].first, unittest.equals( "$arg_ensureResourcesExist")); 2127 unittest.expect(queryMap["ensureResourcesExist"].first, unittest.equals( "$arg_ensureResourcesExist"));
2073 2128
2074 2129
2075 var h = { 2130 var h = {
2076 "content-type" : "application/json; charset=utf-8", 2131 "content-type" : "application/json; charset=utf-8",
2077 }; 2132 };
2078 var resp = convert.JSON.encode(buildApplication()); 2133 var resp = convert.JSON.encode(buildApplication());
2079 return new async.Future.value(stringResponse(200, h, resp)); 2134 return new async.Future.value(stringResponse(200, h, resp));
2080 }), true); 2135 }), true);
2081 res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(u nittest.expectAsync(((api.Application response) { 2136 res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(u nittest.expectAsync1(((api.Application response) {
2082 checkApplication(response); 2137 checkApplication(response);
2083 }))); 2138 })));
2084 }); 2139 });
2085 2140
2086 unittest.test("method--patch", () { 2141 unittest.test("method--patch", () {
2087 2142
2088 var mock = new HttpServerMock(); 2143 var mock = new HttpServerMock();
2089 api.AppsResourceApi res = new api.AppengineApi(mock).apps; 2144 api.AppsResourceApi res = new api.AppengineApi(mock).apps;
2090 var arg_request = buildApplication(); 2145 var arg_request = buildApplication();
2091 var arg_appsId = "foo"; 2146 var arg_appsId = "foo";
2092 var arg_mask = "foo"; 2147 var arg_mask = "foo";
2093 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2148 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2094 var obj = new api.Application.fromJson(json); 2149 var obj = new api.Application.fromJson(json);
2095 checkApplication(obj); 2150 checkApplication(obj);
2096 2151
2097 var path = (req.url).path; 2152 var path = (req.url).path;
2098 var pathOffset = 0; 2153 var pathOffset = 0;
2099 var index; 2154 var index;
2100 var subPart; 2155 var subPart;
2101 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2156 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2102 pathOffset += 1; 2157 pathOffset += 1;
2103 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2158 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
(...skipping 20 matching lines...) Expand all
2124 } 2179 }
2125 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask)); 2180 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask));
2126 2181
2127 2182
2128 var h = { 2183 var h = {
2129 "content-type" : "application/json; charset=utf-8", 2184 "content-type" : "application/json; charset=utf-8",
2130 }; 2185 };
2131 var resp = convert.JSON.encode(buildOperation()); 2186 var resp = convert.JSON.encode(buildOperation());
2132 return new async.Future.value(stringResponse(200, h, resp)); 2187 return new async.Future.value(stringResponse(200, h, resp));
2133 }), true); 2188 }), true);
2134 res.patch(arg_request, arg_appsId, mask: arg_mask).then(unittest.expectAsy nc(((api.Operation response) { 2189 res.patch(arg_request, arg_appsId, mask: arg_mask).then(unittest.expectAsy nc1(((api.Operation response) {
2135 checkOperation(response); 2190 checkOperation(response);
2136 }))); 2191 })));
2137 }); 2192 });
2138 2193
2139 }); 2194 });
2140 2195
2141 2196
2142 unittest.group("resource-AppsLocationsResourceApi", () { 2197 unittest.group("resource-AppsLocationsResourceApi", () {
2143 unittest.test("method--get", () { 2198 unittest.test("method--get", () {
2144 2199
2145 var mock = new HttpServerMock(); 2200 var mock = new HttpServerMock();
2146 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns; 2201 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns;
2147 var arg_appsId = "foo"; 2202 var arg_appsId = "foo";
2148 var arg_locationsId = "foo"; 2203 var arg_locationsId = "foo";
2149 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2204 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2150 var path = (req.url).path; 2205 var path = (req.url).path;
2151 var pathOffset = 0; 2206 var pathOffset = 0;
2152 var index; 2207 var index;
2153 var subPart; 2208 var subPart;
2154 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2209 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2155 pathOffset += 1; 2210 pathOffset += 1;
2156 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2211 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
2157 pathOffset += 13; 2212 pathOffset += 13;
2158 index = path.indexOf("/locations/", pathOffset); 2213 index = path.indexOf("/locations/", pathOffset);
2159 unittest.expect(index >= 0, unittest.isTrue); 2214 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
2183 } 2238 }
2184 } 2239 }
2185 2240
2186 2241
2187 var h = { 2242 var h = {
2188 "content-type" : "application/json; charset=utf-8", 2243 "content-type" : "application/json; charset=utf-8",
2189 }; 2244 };
2190 var resp = convert.JSON.encode(buildLocation()); 2245 var resp = convert.JSON.encode(buildLocation());
2191 return new async.Future.value(stringResponse(200, h, resp)); 2246 return new async.Future.value(stringResponse(200, h, resp));
2192 }), true); 2247 }), true);
2193 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Locat ion response) { 2248 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Loca tion response) {
2194 checkLocation(response); 2249 checkLocation(response);
2195 }))); 2250 })));
2196 }); 2251 });
2197 2252
2198 unittest.test("method--list", () { 2253 unittest.test("method--list", () {
2199 2254
2200 var mock = new HttpServerMock(); 2255 var mock = new HttpServerMock();
2201 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns; 2256 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns;
2202 var arg_appsId = "foo"; 2257 var arg_appsId = "foo";
2203 var arg_filter = "foo"; 2258 var arg_filter = "foo";
2204 var arg_pageToken = "foo"; 2259 var arg_pageToken = "foo";
2205 var arg_pageSize = 42; 2260 var arg_pageSize = 42;
2206 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2261 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2207 var path = (req.url).path; 2262 var path = (req.url).path;
2208 var pathOffset = 0; 2263 var pathOffset = 0;
2209 var index; 2264 var index;
2210 var subPart; 2265 var subPart;
2211 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2266 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2212 pathOffset += 1; 2267 pathOffset += 1;
2213 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2268 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
2214 pathOffset += 13; 2269 pathOffset += 13;
2215 index = path.indexOf("/locations", pathOffset); 2270 index = path.indexOf("/locations", pathOffset);
2216 unittest.expect(index >= 0, unittest.isTrue); 2271 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
2240 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 2295 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2241 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 2296 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2242 2297
2243 2298
2244 var h = { 2299 var h = {
2245 "content-type" : "application/json; charset=utf-8", 2300 "content-type" : "application/json; charset=utf-8",
2246 }; 2301 };
2247 var resp = convert.JSON.encode(buildListLocationsResponse()); 2302 var resp = convert.JSON.encode(buildListLocationsResponse());
2248 return new async.Future.value(stringResponse(200, h, resp)); 2303 return new async.Future.value(stringResponse(200, h, resp));
2249 }), true); 2304 }), true);
2250 res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync(((api.ListLocationsResponse response) { 2305 res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync1(((api.ListLocationsResponse response ) {
2251 checkListLocationsResponse(response); 2306 checkListLocationsResponse(response);
2252 }))); 2307 })));
2253 }); 2308 });
2254 2309
2255 }); 2310 });
2256 2311
2257 2312
2258 unittest.group("resource-AppsModulesResourceApi", () { 2313 unittest.group("resource-AppsModulesResourceApi", () {
2259 unittest.test("method--delete", () { 2314 unittest.test("method--delete", () {
2260 2315
2261 var mock = new HttpServerMock(); 2316 var mock = new HttpServerMock();
2262 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; 2317 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules;
2263 var arg_appsId = "foo"; 2318 var arg_appsId = "foo";
2264 var arg_modulesId = "foo"; 2319 var arg_modulesId = "foo";
2265 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2320 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2266 var path = (req.url).path; 2321 var path = (req.url).path;
2267 var pathOffset = 0; 2322 var pathOffset = 0;
2268 var index; 2323 var index;
2269 var subPart; 2324 var subPart;
2270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2325 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2271 pathOffset += 1; 2326 pathOffset += 1;
2272 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2327 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
2273 pathOffset += 13; 2328 pathOffset += 13;
2274 index = path.indexOf("/modules/", pathOffset); 2329 index = path.indexOf("/modules/", pathOffset);
2275 unittest.expect(index >= 0, unittest.isTrue); 2330 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
2299 } 2354 }
2300 } 2355 }
2301 2356
2302 2357
2303 var h = { 2358 var h = {
2304 "content-type" : "application/json; charset=utf-8", 2359 "content-type" : "application/json; charset=utf-8",
2305 }; 2360 };
2306 var resp = convert.JSON.encode(buildOperation()); 2361 var resp = convert.JSON.encode(buildOperation());
2307 return new async.Future.value(stringResponse(200, h, resp)); 2362 return new async.Future.value(stringResponse(200, h, resp));
2308 }), true); 2363 }), true);
2309 res.delete(arg_appsId, arg_modulesId).then(unittest.expectAsync(((api.Oper ation response) { 2364 res.delete(arg_appsId, arg_modulesId).then(unittest.expectAsync1(((api.Ope ration response) {
2310 checkOperation(response); 2365 checkOperation(response);
2311 }))); 2366 })));
2312 }); 2367 });
2313 2368
2314 unittest.test("method--get", () { 2369 unittest.test("method--get", () {
2315 2370
2316 var mock = new HttpServerMock(); 2371 var mock = new HttpServerMock();
2317 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; 2372 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules;
2318 var arg_appsId = "foo"; 2373 var arg_appsId = "foo";
2319 var arg_modulesId = "foo"; 2374 var arg_modulesId = "foo";
2320 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2375 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2321 var path = (req.url).path; 2376 var path = (req.url).path;
2322 var pathOffset = 0; 2377 var pathOffset = 0;
2323 var index; 2378 var index;
2324 var subPart; 2379 var subPart;
2325 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2380 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2326 pathOffset += 1; 2381 pathOffset += 1;
2327 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2382 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
2328 pathOffset += 13; 2383 pathOffset += 13;
2329 index = path.indexOf("/modules/", pathOffset); 2384 index = path.indexOf("/modules/", pathOffset);
2330 unittest.expect(index >= 0, unittest.isTrue); 2385 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
2354 } 2409 }
2355 } 2410 }
2356 2411
2357 2412
2358 var h = { 2413 var h = {
2359 "content-type" : "application/json; charset=utf-8", 2414 "content-type" : "application/json; charset=utf-8",
2360 }; 2415 };
2361 var resp = convert.JSON.encode(buildModule()); 2416 var resp = convert.JSON.encode(buildModule());
2362 return new async.Future.value(stringResponse(200, h, resp)); 2417 return new async.Future.value(stringResponse(200, h, resp));
2363 }), true); 2418 }), true);
2364 res.get(arg_appsId, arg_modulesId).then(unittest.expectAsync(((api.Module response) { 2419 res.get(arg_appsId, arg_modulesId).then(unittest.expectAsync1(((api.Module response) {
2365 checkModule(response); 2420 checkModule(response);
2366 }))); 2421 })));
2367 }); 2422 });
2368 2423
2369 unittest.test("method--list", () { 2424 unittest.test("method--list", () {
2370 2425
2371 var mock = new HttpServerMock(); 2426 var mock = new HttpServerMock();
2372 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; 2427 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules;
2373 var arg_appsId = "foo"; 2428 var arg_appsId = "foo";
2429 var arg_pageSize = 42;
2374 var arg_pageToken = "foo"; 2430 var arg_pageToken = "foo";
2375 var arg_pageSize = 42; 2431 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2376 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2377 var path = (req.url).path; 2432 var path = (req.url).path;
2378 var pathOffset = 0; 2433 var pathOffset = 0;
2379 var index; 2434 var index;
2380 var subPart; 2435 var subPart;
2381 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2382 pathOffset += 1; 2437 pathOffset += 1;
2383 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2438 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
2384 pathOffset += 13; 2439 pathOffset += 13;
2385 index = path.indexOf("/modules", pathOffset); 2440 index = path.indexOf("/modules", pathOffset);
2386 unittest.expect(index >= 0, unittest.isTrue); 2441 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 12 matching lines...) Expand all
2399 if (n == "false") return false; 2454 if (n == "false") return false;
2400 if (n == null) return null; 2455 if (n == null) return null;
2401 throw new core.ArgumentError("Invalid boolean: $n"); 2456 throw new core.ArgumentError("Invalid boolean: $n");
2402 } 2457 }
2403 if (query.length > 0) { 2458 if (query.length > 0) {
2404 for (var part in query.split("&")) { 2459 for (var part in query.split("&")) {
2405 var keyvalue = part.split("="); 2460 var keyvalue = part.split("=");
2406 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2461 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2407 } 2462 }
2408 } 2463 }
2464 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2409 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 2465 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2410 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2411 2466
2412 2467
2413 var h = { 2468 var h = {
2414 "content-type" : "application/json; charset=utf-8", 2469 "content-type" : "application/json; charset=utf-8",
2415 }; 2470 };
2416 var resp = convert.JSON.encode(buildListModulesResponse()); 2471 var resp = convert.JSON.encode(buildListModulesResponse());
2417 return new async.Future.value(stringResponse(200, h, resp)); 2472 return new async.Future.value(stringResponse(200, h, resp));
2418 }), true); 2473 }), true);
2419 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListModulesResponse response) { 2474 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync1(((api.ListModulesResponse response) {
2420 checkListModulesResponse(response); 2475 checkListModulesResponse(response);
2421 }))); 2476 })));
2422 }); 2477 });
2423 2478
2424 unittest.test("method--patch", () { 2479 unittest.test("method--patch", () {
2425 2480
2426 var mock = new HttpServerMock(); 2481 var mock = new HttpServerMock();
2427 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; 2482 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules;
2428 var arg_request = buildModule(); 2483 var arg_request = buildModule();
2429 var arg_appsId = "foo"; 2484 var arg_appsId = "foo";
2430 var arg_modulesId = "foo"; 2485 var arg_modulesId = "foo";
2431 var arg_migrateTraffic = true; 2486 var arg_migrateTraffic = true;
2432 var arg_mask = "foo"; 2487 var arg_mask = "foo";
2433 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2488 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2434 var obj = new api.Module.fromJson(json); 2489 var obj = new api.Module.fromJson(json);
2435 checkModule(obj); 2490 checkModule(obj);
2436 2491
2437 var path = (req.url).path; 2492 var path = (req.url).path;
2438 var pathOffset = 0; 2493 var pathOffset = 0;
2439 var index; 2494 var index;
2440 var subPart; 2495 var subPart;
2441 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2496 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2442 pathOffset += 1; 2497 pathOffset += 1;
2443 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2498 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
(...skipping 28 matching lines...) Expand all
2472 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_ migrateTraffic")); 2527 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_ migrateTraffic"));
2473 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask)); 2528 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask));
2474 2529
2475 2530
2476 var h = { 2531 var h = {
2477 "content-type" : "application/json; charset=utf-8", 2532 "content-type" : "application/json; charset=utf-8",
2478 }; 2533 };
2479 var resp = convert.JSON.encode(buildOperation()); 2534 var resp = convert.JSON.encode(buildOperation());
2480 return new async.Future.value(stringResponse(200, h, resp)); 2535 return new async.Future.value(stringResponse(200, h, resp));
2481 }), true); 2536 }), true);
2482 res.patch(arg_request, arg_appsId, arg_modulesId, migrateTraffic: arg_migr ateTraffic, mask: arg_mask).then(unittest.expectAsync(((api.Operation response) { 2537 res.patch(arg_request, arg_appsId, arg_modulesId, migrateTraffic: arg_migr ateTraffic, mask: arg_mask).then(unittest.expectAsync1(((api.Operation response) {
2483 checkOperation(response); 2538 checkOperation(response);
2484 }))); 2539 })));
2485 }); 2540 });
2486 2541
2487 }); 2542 });
2488 2543
2489 2544
2490 unittest.group("resource-AppsModulesVersionsResourceApi", () { 2545 unittest.group("resource-AppsModulesVersionsResourceApi", () {
2491 unittest.test("method--create", () { 2546 unittest.test("method--create", () {
2492 2547
2493 var mock = new HttpServerMock(); 2548 var mock = new HttpServerMock();
2494 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m odules.versions; 2549 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m odules.versions;
2495 var arg_request = buildVersion(); 2550 var arg_request = buildVersion();
2496 var arg_appsId = "foo"; 2551 var arg_appsId = "foo";
2497 var arg_modulesId = "foo"; 2552 var arg_modulesId = "foo";
2498 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2553 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2499 var obj = new api.Version.fromJson(json); 2554 var obj = new api.Version.fromJson(json);
2500 checkVersion(obj); 2555 checkVersion(obj);
2501 2556
2502 var path = (req.url).path; 2557 var path = (req.url).path;
2503 var pathOffset = 0; 2558 var pathOffset = 0;
2504 var index; 2559 var index;
2505 var subPart; 2560 var subPart;
2506 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2561 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2507 pathOffset += 1; 2562 pathOffset += 1;
2508 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2563 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
(...skipping 30 matching lines...) Expand all
2539 } 2594 }
2540 } 2595 }
2541 2596
2542 2597
2543 var h = { 2598 var h = {
2544 "content-type" : "application/json; charset=utf-8", 2599 "content-type" : "application/json; charset=utf-8",
2545 }; 2600 };
2546 var resp = convert.JSON.encode(buildOperation()); 2601 var resp = convert.JSON.encode(buildOperation());
2547 return new async.Future.value(stringResponse(200, h, resp)); 2602 return new async.Future.value(stringResponse(200, h, resp));
2548 }), true); 2603 }), true);
2549 res.create(arg_request, arg_appsId, arg_modulesId).then(unittest.expectAsy nc(((api.Operation response) { 2604 res.create(arg_request, arg_appsId, arg_modulesId).then(unittest.expectAsy nc1(((api.Operation response) {
2550 checkOperation(response); 2605 checkOperation(response);
2551 }))); 2606 })));
2552 }); 2607 });
2553 2608
2554 unittest.test("method--delete", () { 2609 unittest.test("method--delete", () {
2555 2610
2556 var mock = new HttpServerMock(); 2611 var mock = new HttpServerMock();
2557 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m odules.versions; 2612 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m odules.versions;
2558 var arg_appsId = "foo"; 2613 var arg_appsId = "foo";
2559 var arg_modulesId = "foo"; 2614 var arg_modulesId = "foo";
2560 var arg_versionsId = "foo"; 2615 var arg_versionsId = "foo";
2561 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2616 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2562 var path = (req.url).path; 2617 var path = (req.url).path;
2563 var pathOffset = 0; 2618 var pathOffset = 0;
2564 var index; 2619 var index;
2565 var subPart; 2620 var subPart;
2566 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2621 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2567 pathOffset += 1; 2622 pathOffset += 1;
2568 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2623 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
2569 pathOffset += 13; 2624 pathOffset += 13;
2570 index = path.indexOf("/modules/", pathOffset); 2625 index = path.indexOf("/modules/", pathOffset);
2571 unittest.expect(index >= 0, unittest.isTrue); 2626 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 30 matching lines...) Expand all
2602 } 2657 }
2603 } 2658 }
2604 2659
2605 2660
2606 var h = { 2661 var h = {
2607 "content-type" : "application/json; charset=utf-8", 2662 "content-type" : "application/json; charset=utf-8",
2608 }; 2663 };
2609 var resp = convert.JSON.encode(buildOperation()); 2664 var resp = convert.JSON.encode(buildOperation());
2610 return new async.Future.value(stringResponse(200, h, resp)); 2665 return new async.Future.value(stringResponse(200, h, resp));
2611 }), true); 2666 }), true);
2612 res.delete(arg_appsId, arg_modulesId, arg_versionsId).then(unittest.expect Async(((api.Operation response) { 2667 res.delete(arg_appsId, arg_modulesId, arg_versionsId).then(unittest.expect Async1(((api.Operation response) {
2613 checkOperation(response); 2668 checkOperation(response);
2614 }))); 2669 })));
2615 }); 2670 });
2616 2671
2617 unittest.test("method--get", () { 2672 unittest.test("method--get", () {
2618 2673
2619 var mock = new HttpServerMock(); 2674 var mock = new HttpServerMock();
2620 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m odules.versions; 2675 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m odules.versions;
2621 var arg_appsId = "foo"; 2676 var arg_appsId = "foo";
2622 var arg_modulesId = "foo"; 2677 var arg_modulesId = "foo";
2623 var arg_versionsId = "foo"; 2678 var arg_versionsId = "foo";
2624 var arg_view = "foo"; 2679 var arg_view = "foo";
2625 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2680 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2626 var path = (req.url).path; 2681 var path = (req.url).path;
2627 var pathOffset = 0; 2682 var pathOffset = 0;
2628 var index; 2683 var index;
2629 var subPart; 2684 var subPart;
2630 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2685 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2631 pathOffset += 1; 2686 pathOffset += 1;
2632 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2687 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
2633 pathOffset += 13; 2688 pathOffset += 13;
2634 index = path.indexOf("/modules/", pathOffset); 2689 index = path.indexOf("/modules/", pathOffset);
2635 unittest.expect(index >= 0, unittest.isTrue); 2690 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2667 } 2722 }
2668 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 2723 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
2669 2724
2670 2725
2671 var h = { 2726 var h = {
2672 "content-type" : "application/json; charset=utf-8", 2727 "content-type" : "application/json; charset=utf-8",
2673 }; 2728 };
2674 var resp = convert.JSON.encode(buildVersion()); 2729 var resp = convert.JSON.encode(buildVersion());
2675 return new async.Future.value(stringResponse(200, h, resp)); 2730 return new async.Future.value(stringResponse(200, h, resp));
2676 }), true); 2731 }), true);
2677 res.get(arg_appsId, arg_modulesId, arg_versionsId, view: arg_view).then(un ittest.expectAsync(((api.Version response) { 2732 res.get(arg_appsId, arg_modulesId, arg_versionsId, view: arg_view).then(un ittest.expectAsync1(((api.Version response) {
2678 checkVersion(response); 2733 checkVersion(response);
2679 }))); 2734 })));
2680 }); 2735 });
2681 2736
2682 unittest.test("method--list", () { 2737 unittest.test("method--list", () {
2683 2738
2684 var mock = new HttpServerMock(); 2739 var mock = new HttpServerMock();
2685 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m odules.versions; 2740 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m odules.versions;
2686 var arg_appsId = "foo"; 2741 var arg_appsId = "foo";
2687 var arg_modulesId = "foo"; 2742 var arg_modulesId = "foo";
2688 var arg_pageToken = "foo";
2689 var arg_pageSize = 42; 2743 var arg_pageSize = 42;
2690 var arg_view = "foo"; 2744 var arg_view = "foo";
2691 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2745 var arg_pageToken = "foo";
2746 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2692 var path = (req.url).path; 2747 var path = (req.url).path;
2693 var pathOffset = 0; 2748 var pathOffset = 0;
2694 var index; 2749 var index;
2695 var subPart; 2750 var subPart;
2696 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2751 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2697 pathOffset += 1; 2752 pathOffset += 1;
2698 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2753 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
2699 pathOffset += 13; 2754 pathOffset += 13;
2700 index = path.indexOf("/modules/", pathOffset); 2755 index = path.indexOf("/modules/", pathOffset);
2701 unittest.expect(index >= 0, unittest.isTrue); 2756 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 19 matching lines...) Expand all
2721 if (n == "false") return false; 2776 if (n == "false") return false;
2722 if (n == null) return null; 2777 if (n == null) return null;
2723 throw new core.ArgumentError("Invalid boolean: $n"); 2778 throw new core.ArgumentError("Invalid boolean: $n");
2724 } 2779 }
2725 if (query.length > 0) { 2780 if (query.length > 0) {
2726 for (var part in query.split("&")) { 2781 for (var part in query.split("&")) {
2727 var keyvalue = part.split("="); 2782 var keyvalue = part.split("=");
2728 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2783 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2729 } 2784 }
2730 } 2785 }
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)); 2786 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2733 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 2787 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
2788 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2734 2789
2735 2790
2736 var h = { 2791 var h = {
2737 "content-type" : "application/json; charset=utf-8", 2792 "content-type" : "application/json; charset=utf-8",
2738 }; 2793 };
2739 var resp = convert.JSON.encode(buildListVersionsResponse()); 2794 var resp = convert.JSON.encode(buildListVersionsResponse());
2740 return new async.Future.value(stringResponse(200, h, resp)); 2795 return new async.Future.value(stringResponse(200, h, resp));
2741 }), true); 2796 }), true);
2742 res.list(arg_appsId, arg_modulesId, pageToken: arg_pageToken, pageSize: ar g_pageSize, view: arg_view).then(unittest.expectAsync(((api.ListVersionsResponse response) { 2797 res.list(arg_appsId, arg_modulesId, pageSize: arg_pageSize, view: arg_view , pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListVersionsRespons e response) {
2743 checkListVersionsResponse(response); 2798 checkListVersionsResponse(response);
2744 }))); 2799 })));
2745 }); 2800 });
2746 2801
2747 unittest.test("method--patch", () { 2802 unittest.test("method--patch", () {
2748 2803
2749 var mock = new HttpServerMock(); 2804 var mock = new HttpServerMock();
2750 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m odules.versions; 2805 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m odules.versions;
2751 var arg_request = buildVersion(); 2806 var arg_request = buildVersion();
2752 var arg_appsId = "foo"; 2807 var arg_appsId = "foo";
2753 var arg_modulesId = "foo"; 2808 var arg_modulesId = "foo";
2754 var arg_versionsId = "foo"; 2809 var arg_versionsId = "foo";
2755 var arg_mask = "foo"; 2810 var arg_mask = "foo";
2756 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2811 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2757 var obj = new api.Version.fromJson(json); 2812 var obj = new api.Version.fromJson(json);
2758 checkVersion(obj); 2813 checkVersion(obj);
2759 2814
2760 var path = (req.url).path; 2815 var path = (req.url).path;
2761 var pathOffset = 0; 2816 var pathOffset = 0;
2762 var index; 2817 var index;
2763 var subPart; 2818 var subPart;
2764 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2819 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2765 pathOffset += 1; 2820 pathOffset += 1;
2766 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2821 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
2801 } 2856 }
2802 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask)); 2857 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask));
2803 2858
2804 2859
2805 var h = { 2860 var h = {
2806 "content-type" : "application/json; charset=utf-8", 2861 "content-type" : "application/json; charset=utf-8",
2807 }; 2862 };
2808 var resp = convert.JSON.encode(buildOperation()); 2863 var resp = convert.JSON.encode(buildOperation());
2809 return new async.Future.value(stringResponse(200, h, resp)); 2864 return new async.Future.value(stringResponse(200, h, resp));
2810 }), true); 2865 }), true);
2811 res.patch(arg_request, arg_appsId, arg_modulesId, arg_versionsId, mask: ar g_mask).then(unittest.expectAsync(((api.Operation response) { 2866 res.patch(arg_request, arg_appsId, arg_modulesId, arg_versionsId, mask: ar g_mask).then(unittest.expectAsync1(((api.Operation response) {
2812 checkOperation(response); 2867 checkOperation(response);
2813 }))); 2868 })));
2814 }); 2869 });
2815 2870
2816 }); 2871 });
2817 2872
2818 2873
2819 unittest.group("resource-AppsModulesVersionsInstancesResourceApi", () { 2874 unittest.group("resource-AppsModulesVersionsInstancesResourceApi", () {
2820 unittest.test("method--debug", () { 2875 unittest.test("method--debug", () {
2821 2876
2822 var mock = new HttpServerMock(); 2877 var mock = new HttpServerMock();
2823 api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(moc k).apps.modules.versions.instances; 2878 api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(moc k).apps.modules.versions.instances;
2824 var arg_request = buildDebugInstanceRequest(); 2879 var arg_request = buildDebugInstanceRequest();
2825 var arg_appsId = "foo"; 2880 var arg_appsId = "foo";
2826 var arg_modulesId = "foo"; 2881 var arg_modulesId = "foo";
2827 var arg_versionsId = "foo"; 2882 var arg_versionsId = "foo";
2828 var arg_instancesId = "foo"; 2883 var arg_instancesId = "foo";
2829 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2884 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2830 var obj = new api.DebugInstanceRequest.fromJson(json); 2885 var obj = new api.DebugInstanceRequest.fromJson(json);
2831 checkDebugInstanceRequest(obj); 2886 checkDebugInstanceRequest(obj);
2832 2887
2833 var path = (req.url).path; 2888 var path = (req.url).path;
2834 var pathOffset = 0; 2889 var pathOffset = 0;
2835 var index; 2890 var index;
2836 var subPart; 2891 var subPart;
2837 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2892 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2838 pathOffset += 1; 2893 pathOffset += 1;
2839 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2894 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
2884 } 2939 }
2885 } 2940 }
2886 2941
2887 2942
2888 var h = { 2943 var h = {
2889 "content-type" : "application/json; charset=utf-8", 2944 "content-type" : "application/json; charset=utf-8",
2890 }; 2945 };
2891 var resp = convert.JSON.encode(buildOperation()); 2946 var resp = convert.JSON.encode(buildOperation());
2892 return new async.Future.value(stringResponse(200, h, resp)); 2947 return new async.Future.value(stringResponse(200, h, resp));
2893 }), true); 2948 }), true);
2894 res.debug(arg_request, arg_appsId, arg_modulesId, arg_versionsId, arg_inst ancesId).then(unittest.expectAsync(((api.Operation response) { 2949 res.debug(arg_request, arg_appsId, arg_modulesId, arg_versionsId, arg_inst ancesId).then(unittest.expectAsync1(((api.Operation response) {
2895 checkOperation(response); 2950 checkOperation(response);
2896 }))); 2951 })));
2897 }); 2952 });
2898 2953
2899 unittest.test("method--delete", () { 2954 unittest.test("method--delete", () {
2900 2955
2901 var mock = new HttpServerMock(); 2956 var mock = new HttpServerMock();
2902 api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(moc k).apps.modules.versions.instances; 2957 api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(moc k).apps.modules.versions.instances;
2903 var arg_appsId = "foo"; 2958 var arg_appsId = "foo";
2904 var arg_modulesId = "foo"; 2959 var arg_modulesId = "foo";
2905 var arg_versionsId = "foo"; 2960 var arg_versionsId = "foo";
2906 var arg_instancesId = "foo"; 2961 var arg_instancesId = "foo";
2907 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2962 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2908 var path = (req.url).path; 2963 var path = (req.url).path;
2909 var pathOffset = 0; 2964 var pathOffset = 0;
2910 var index; 2965 var index;
2911 var subPart; 2966 var subPart;
2912 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2967 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2913 pathOffset += 1; 2968 pathOffset += 1;
2914 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 2969 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
2915 pathOffset += 13; 2970 pathOffset += 13;
2916 index = path.indexOf("/modules/", pathOffset); 2971 index = path.indexOf("/modules/", pathOffset);
2917 unittest.expect(index >= 0, unittest.isTrue); 2972 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2955 } 3010 }
2956 } 3011 }
2957 3012
2958 3013
2959 var h = { 3014 var h = {
2960 "content-type" : "application/json; charset=utf-8", 3015 "content-type" : "application/json; charset=utf-8",
2961 }; 3016 };
2962 var resp = convert.JSON.encode(buildOperation()); 3017 var resp = convert.JSON.encode(buildOperation());
2963 return new async.Future.value(stringResponse(200, h, resp)); 3018 return new async.Future.value(stringResponse(200, h, resp));
2964 }), true); 3019 }), true);
2965 res.delete(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).the n(unittest.expectAsync(((api.Operation response) { 3020 res.delete(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).the n(unittest.expectAsync1(((api.Operation response) {
2966 checkOperation(response); 3021 checkOperation(response);
2967 }))); 3022 })));
2968 }); 3023 });
2969 3024
2970 unittest.test("method--get", () { 3025 unittest.test("method--get", () {
2971 3026
2972 var mock = new HttpServerMock(); 3027 var mock = new HttpServerMock();
2973 api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(moc k).apps.modules.versions.instances; 3028 api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(moc k).apps.modules.versions.instances;
2974 var arg_appsId = "foo"; 3029 var arg_appsId = "foo";
2975 var arg_modulesId = "foo"; 3030 var arg_modulesId = "foo";
2976 var arg_versionsId = "foo"; 3031 var arg_versionsId = "foo";
2977 var arg_instancesId = "foo"; 3032 var arg_instancesId = "foo";
2978 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3033 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2979 var path = (req.url).path; 3034 var path = (req.url).path;
2980 var pathOffset = 0; 3035 var pathOffset = 0;
2981 var index; 3036 var index;
2982 var subPart; 3037 var subPart;
2983 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3038 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2984 pathOffset += 1; 3039 pathOffset += 1;
2985 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 3040 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
2986 pathOffset += 13; 3041 pathOffset += 13;
2987 index = path.indexOf("/modules/", pathOffset); 3042 index = path.indexOf("/modules/", pathOffset);
2988 unittest.expect(index >= 0, unittest.isTrue); 3043 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
3026 } 3081 }
3027 } 3082 }
3028 3083
3029 3084
3030 var h = { 3085 var h = {
3031 "content-type" : "application/json; charset=utf-8", 3086 "content-type" : "application/json; charset=utf-8",
3032 }; 3087 };
3033 var resp = convert.JSON.encode(buildInstance()); 3088 var resp = convert.JSON.encode(buildInstance());
3034 return new async.Future.value(stringResponse(200, h, resp)); 3089 return new async.Future.value(stringResponse(200, h, resp));
3035 }), true); 3090 }), true);
3036 res.get(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(u nittest.expectAsync(((api.Instance response) { 3091 res.get(arg_appsId, arg_modulesId, arg_versionsId, arg_instancesId).then(u nittest.expectAsync1(((api.Instance response) {
3037 checkInstance(response); 3092 checkInstance(response);
3038 }))); 3093 })));
3039 }); 3094 });
3040 3095
3041 unittest.test("method--list", () { 3096 unittest.test("method--list", () {
3042 3097
3043 var mock = new HttpServerMock(); 3098 var mock = new HttpServerMock();
3044 api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(moc k).apps.modules.versions.instances; 3099 api.AppsModulesVersionsInstancesResourceApi res = new api.AppengineApi(moc k).apps.modules.versions.instances;
3045 var arg_appsId = "foo"; 3100 var arg_appsId = "foo";
3046 var arg_modulesId = "foo"; 3101 var arg_modulesId = "foo";
3047 var arg_versionsId = "foo"; 3102 var arg_versionsId = "foo";
3048 var arg_pageToken = "foo"; 3103 var arg_pageToken = "foo";
3049 var arg_pageSize = 42; 3104 var arg_pageSize = 42;
3050 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3105 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3051 var path = (req.url).path; 3106 var path = (req.url).path;
3052 var pathOffset = 0; 3107 var pathOffset = 0;
3053 var index; 3108 var index;
3054 var subPart; 3109 var subPart;
3055 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3110 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3056 pathOffset += 1; 3111 pathOffset += 1;
3057 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 3112 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
3058 pathOffset += 13; 3113 pathOffset += 13;
3059 index = path.indexOf("/modules/", pathOffset); 3114 index = path.indexOf("/modules/", pathOffset);
3060 unittest.expect(index >= 0, unittest.isTrue); 3115 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
3097 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3152 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3098 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3153 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3099 3154
3100 3155
3101 var h = { 3156 var h = {
3102 "content-type" : "application/json; charset=utf-8", 3157 "content-type" : "application/json; charset=utf-8",
3103 }; 3158 };
3104 var resp = convert.JSON.encode(buildListInstancesResponse()); 3159 var resp = convert.JSON.encode(buildListInstancesResponse());
3105 return new async.Future.value(stringResponse(200, h, resp)); 3160 return new async.Future.value(stringResponse(200, h, resp));
3106 }), true); 3161 }), true);
3107 res.list(arg_appsId, arg_modulesId, arg_versionsId, pageToken: arg_pageTok en, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListInstancesRespons e response) { 3162 res.list(arg_appsId, arg_modulesId, arg_versionsId, pageToken: arg_pageTok en, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesRespon se response) {
3108 checkListInstancesResponse(response); 3163 checkListInstancesResponse(response);
3109 }))); 3164 })));
3110 }); 3165 });
3111 3166
3112 }); 3167 });
3113 3168
3114 3169
3115 unittest.group("resource-AppsOperationsResourceApi", () { 3170 unittest.group("resource-AppsOperationsResourceApi", () {
3116 unittest.test("method--get", () { 3171 unittest.test("method--get", () {
3117 3172
3118 var mock = new HttpServerMock(); 3173 var mock = new HttpServerMock();
3119 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions; 3174 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions;
3120 var arg_appsId = "foo"; 3175 var arg_appsId = "foo";
3121 var arg_operationsId = "foo"; 3176 var arg_operationsId = "foo";
3122 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3177 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3123 var path = (req.url).path; 3178 var path = (req.url).path;
3124 var pathOffset = 0; 3179 var pathOffset = 0;
3125 var index; 3180 var index;
3126 var subPart; 3181 var subPart;
3127 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3182 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3128 pathOffset += 1; 3183 pathOffset += 1;
3129 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 3184 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
3130 pathOffset += 13; 3185 pathOffset += 13;
3131 index = path.indexOf("/operations/", pathOffset); 3186 index = path.indexOf("/operations/", pathOffset);
3132 unittest.expect(index >= 0, unittest.isTrue); 3187 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
3156 } 3211 }
3157 } 3212 }
3158 3213
3159 3214
3160 var h = { 3215 var h = {
3161 "content-type" : "application/json; charset=utf-8", 3216 "content-type" : "application/json; charset=utf-8",
3162 }; 3217 };
3163 var resp = convert.JSON.encode(buildOperation()); 3218 var resp = convert.JSON.encode(buildOperation());
3164 return new async.Future.value(stringResponse(200, h, resp)); 3219 return new async.Future.value(stringResponse(200, h, resp));
3165 }), true); 3220 }), true);
3166 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Oper ation response) { 3221 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Ope ration response) {
3167 checkOperation(response); 3222 checkOperation(response);
3168 }))); 3223 })));
3169 }); 3224 });
3170 3225
3171 unittest.test("method--list", () { 3226 unittest.test("method--list", () {
3172 3227
3173 var mock = new HttpServerMock(); 3228 var mock = new HttpServerMock();
3174 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions; 3229 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions;
3175 var arg_appsId = "foo"; 3230 var arg_appsId = "foo";
3176 var arg_pageToken = "foo";
3177 var arg_pageSize = 42; 3231 var arg_pageSize = 42;
3178 var arg_filter = "foo"; 3232 var arg_filter = "foo";
3179 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3233 var arg_pageToken = "foo";
3234 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3180 var path = (req.url).path; 3235 var path = (req.url).path;
3181 var pathOffset = 0; 3236 var pathOffset = 0;
3182 var index; 3237 var index;
3183 var subPart; 3238 var subPart;
3184 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3239 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3185 pathOffset += 1; 3240 pathOffset += 1;
3186 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/")); 3241 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq uals("v1beta4/apps/"));
3187 pathOffset += 13; 3242 pathOffset += 13;
3188 index = path.indexOf("/operations", pathOffset); 3243 index = path.indexOf("/operations", pathOffset);
3189 unittest.expect(index >= 0, unittest.isTrue); 3244 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 12 matching lines...) Expand all
3202 if (n == "false") return false; 3257 if (n == "false") return false;
3203 if (n == null) return null; 3258 if (n == null) return null;
3204 throw new core.ArgumentError("Invalid boolean: $n"); 3259 throw new core.ArgumentError("Invalid boolean: $n");
3205 } 3260 }
3206 if (query.length > 0) { 3261 if (query.length > 0) {
3207 for (var part in query.split("&")) { 3262 for (var part in query.split("&")) {
3208 var keyvalue = part.split("="); 3263 var keyvalue = part.split("=");
3209 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3264 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3210 } 3265 }
3211 } 3266 }
3212 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3213 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3267 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3214 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 3268 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
3269 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3215 3270
3216 3271
3217 var h = { 3272 var h = {
3218 "content-type" : "application/json; charset=utf-8", 3273 "content-type" : "application/json; charset=utf-8",
3219 }; 3274 };
3220 var resp = convert.JSON.encode(buildListOperationsResponse()); 3275 var resp = convert.JSON.encode(buildListOperationsResponse());
3221 return new async.Future.value(stringResponse(200, h, resp)); 3276 return new async.Future.value(stringResponse(200, h, resp));
3222 }), true); 3277 }), true);
3223 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, fil ter: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse response ) { 3278 res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken : arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse respons e) {
3224 checkListOperationsResponse(response); 3279 checkListOperationsResponse(response);
3225 }))); 3280 })));
3226 }); 3281 });
3227 3282
3228 }); 3283 });
3229 3284
3230 3285
3231 } 3286 }
3232 3287
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698