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

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

Issue 2824163002: Api-roll 48: 2017-04-18 (Closed)
Patch Set: Revert changes to pubspecs Created 3 years, 8 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.v1beta.test; 1 library googleapis_beta.appengine.v1beta.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 buildUnnamed3617() { 100 buildUnnamed3573() {
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 checkUnnamed3617(core.List<api.UrlDispatchRule> o) { 107 checkUnnamed3573(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 = buildUnnamed3617(); 123 o.dispatchRules = buildUnnamed3573();
124 o.gcrDomain = "foo"; 124 o.gcrDomain = "foo";
125 o.iap = buildIdentityAwareProxy(); 125 o.iap = buildIdentityAwareProxy();
126 o.id = "foo"; 126 o.id = "foo";
127 o.locationId = "foo"; 127 o.locationId = "foo";
128 o.name = "foo"; 128 o.name = "foo";
129 o.servingStatus = "foo"; 129 o.servingStatus = "foo";
130 } 130 }
131 buildCounterApplication--; 131 buildCounterApplication--;
132 return o; 132 return o;
133 } 133 }
134 134
135 checkApplication(api.Application o) { 135 checkApplication(api.Application o) {
136 buildCounterApplication++; 136 buildCounterApplication++;
137 if (buildCounterApplication < 3) { 137 if (buildCounterApplication < 3) {
138 unittest.expect(o.authDomain, unittest.equals('foo')); 138 unittest.expect(o.authDomain, unittest.equals('foo'));
139 unittest.expect(o.codeBucket, unittest.equals('foo')); 139 unittest.expect(o.codeBucket, unittest.equals('foo'));
140 unittest.expect(o.defaultBucket, unittest.equals('foo')); 140 unittest.expect(o.defaultBucket, unittest.equals('foo'));
141 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); 141 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo'));
142 unittest.expect(o.defaultHostname, unittest.equals('foo')); 142 unittest.expect(o.defaultHostname, unittest.equals('foo'));
143 checkUnnamed3617(o.dispatchRules); 143 checkUnnamed3573(o.dispatchRules);
144 unittest.expect(o.gcrDomain, unittest.equals('foo')); 144 unittest.expect(o.gcrDomain, unittest.equals('foo'));
145 checkIdentityAwareProxy(o.iap); 145 checkIdentityAwareProxy(o.iap);
146 unittest.expect(o.id, unittest.equals('foo')); 146 unittest.expect(o.id, unittest.equals('foo'));
147 unittest.expect(o.locationId, unittest.equals('foo')); 147 unittest.expect(o.locationId, unittest.equals('foo'));
148 unittest.expect(o.name, unittest.equals('foo')); 148 unittest.expect(o.name, unittest.equals('foo'));
149 unittest.expect(o.servingStatus, unittest.equals('foo')); 149 unittest.expect(o.servingStatus, unittest.equals('foo'));
150 } 150 }
151 buildCounterApplication--; 151 buildCounterApplication--;
152 } 152 }
153 153
154 buildUnnamed3618() { 154 buildUnnamed3574() {
155 var o = new core.List<core.String>(); 155 var o = new core.List<core.String>();
156 o.add("foo"); 156 o.add("foo");
157 o.add("foo"); 157 o.add("foo");
158 return o; 158 return o;
159 } 159 }
160 160
161 checkUnnamed3618(core.List<core.String> o) { 161 checkUnnamed3574(core.List<core.String> o) {
162 unittest.expect(o, unittest.hasLength(2)); 162 unittest.expect(o, unittest.hasLength(2));
163 unittest.expect(o[0], unittest.equals('foo')); 163 unittest.expect(o[0], unittest.equals('foo'));
164 unittest.expect(o[1], unittest.equals('foo')); 164 unittest.expect(o[1], unittest.equals('foo'));
165 } 165 }
166 166
167 buildUnnamed3619() { 167 buildUnnamed3575() {
168 var o = new core.List<core.String>(); 168 var o = new core.List<core.String>();
169 o.add("foo"); 169 o.add("foo");
170 o.add("foo"); 170 o.add("foo");
171 return o; 171 return o;
172 } 172 }
173 173
174 checkUnnamed3619(core.List<core.String> o) { 174 checkUnnamed3575(core.List<core.String> o) {
175 unittest.expect(o, unittest.hasLength(2)); 175 unittest.expect(o, unittest.hasLength(2));
176 unittest.expect(o[0], unittest.equals('foo')); 176 unittest.expect(o[0], unittest.equals('foo'));
177 unittest.expect(o[1], unittest.equals('foo')); 177 unittest.expect(o[1], unittest.equals('foo'));
178 } 178 }
179 179
180 core.int buildCounterAuthorizedCertificate = 0; 180 core.int buildCounterAuthorizedCertificate = 0;
181 buildAuthorizedCertificate() { 181 buildAuthorizedCertificate() {
182 var o = new api.AuthorizedCertificate(); 182 var o = new api.AuthorizedCertificate();
183 buildCounterAuthorizedCertificate++; 183 buildCounterAuthorizedCertificate++;
184 if (buildCounterAuthorizedCertificate < 3) { 184 if (buildCounterAuthorizedCertificate < 3) {
185 o.certificateRawData = buildCertificateRawData(); 185 o.certificateRawData = buildCertificateRawData();
186 o.displayName = "foo"; 186 o.displayName = "foo";
187 o.domainMappingsCount = 42; 187 o.domainMappingsCount = 42;
188 o.domainNames = buildUnnamed3618(); 188 o.domainNames = buildUnnamed3574();
189 o.expireTime = "foo"; 189 o.expireTime = "foo";
190 o.id = "foo"; 190 o.id = "foo";
191 o.name = "foo"; 191 o.name = "foo";
192 o.visibleDomainMappings = buildUnnamed3619(); 192 o.visibleDomainMappings = buildUnnamed3575();
193 } 193 }
194 buildCounterAuthorizedCertificate--; 194 buildCounterAuthorizedCertificate--;
195 return o; 195 return o;
196 } 196 }
197 197
198 checkAuthorizedCertificate(api.AuthorizedCertificate o) { 198 checkAuthorizedCertificate(api.AuthorizedCertificate o) {
199 buildCounterAuthorizedCertificate++; 199 buildCounterAuthorizedCertificate++;
200 if (buildCounterAuthorizedCertificate < 3) { 200 if (buildCounterAuthorizedCertificate < 3) {
201 checkCertificateRawData(o.certificateRawData); 201 checkCertificateRawData(o.certificateRawData);
202 unittest.expect(o.displayName, unittest.equals('foo')); 202 unittest.expect(o.displayName, unittest.equals('foo'));
203 unittest.expect(o.domainMappingsCount, unittest.equals(42)); 203 unittest.expect(o.domainMappingsCount, unittest.equals(42));
204 checkUnnamed3618(o.domainNames); 204 checkUnnamed3574(o.domainNames);
205 unittest.expect(o.expireTime, unittest.equals('foo')); 205 unittest.expect(o.expireTime, unittest.equals('foo'));
206 unittest.expect(o.id, unittest.equals('foo')); 206 unittest.expect(o.id, unittest.equals('foo'));
207 unittest.expect(o.name, unittest.equals('foo')); 207 unittest.expect(o.name, unittest.equals('foo'));
208 checkUnnamed3619(o.visibleDomainMappings); 208 checkUnnamed3575(o.visibleDomainMappings);
209 } 209 }
210 buildCounterAuthorizedCertificate--; 210 buildCounterAuthorizedCertificate--;
211 } 211 }
212 212
213 core.int buildCounterAuthorizedDomain = 0; 213 core.int buildCounterAuthorizedDomain = 0;
214 buildAuthorizedDomain() { 214 buildAuthorizedDomain() {
215 var o = new api.AuthorizedDomain(); 215 var o = new api.AuthorizedDomain();
216 buildCounterAuthorizedDomain++; 216 buildCounterAuthorizedDomain++;
217 if (buildCounterAuthorizedDomain < 3) { 217 if (buildCounterAuthorizedDomain < 3) {
218 o.id = "foo"; 218 o.id = "foo";
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 } 366 }
367 367
368 checkDebugInstanceRequest(api.DebugInstanceRequest o) { 368 checkDebugInstanceRequest(api.DebugInstanceRequest o) {
369 buildCounterDebugInstanceRequest++; 369 buildCounterDebugInstanceRequest++;
370 if (buildCounterDebugInstanceRequest < 3) { 370 if (buildCounterDebugInstanceRequest < 3) {
371 unittest.expect(o.sshKey, unittest.equals('foo')); 371 unittest.expect(o.sshKey, unittest.equals('foo'));
372 } 372 }
373 buildCounterDebugInstanceRequest--; 373 buildCounterDebugInstanceRequest--;
374 } 374 }
375 375
376 buildUnnamed3620() { 376 buildUnnamed3576() {
377 var o = new core.Map<core.String, api.FileInfo>(); 377 var o = new core.Map<core.String, api.FileInfo>();
378 o["x"] = buildFileInfo(); 378 o["x"] = buildFileInfo();
379 o["y"] = buildFileInfo(); 379 o["y"] = buildFileInfo();
380 return o; 380 return o;
381 } 381 }
382 382
383 checkUnnamed3620(core.Map<core.String, api.FileInfo> o) { 383 checkUnnamed3576(core.Map<core.String, api.FileInfo> o) {
384 unittest.expect(o, unittest.hasLength(2)); 384 unittest.expect(o, unittest.hasLength(2));
385 checkFileInfo(o["x"]); 385 checkFileInfo(o["x"]);
386 checkFileInfo(o["y"]); 386 checkFileInfo(o["y"]);
387 } 387 }
388 388
389 core.int buildCounterDeployment = 0; 389 core.int buildCounterDeployment = 0;
390 buildDeployment() { 390 buildDeployment() {
391 var o = new api.Deployment(); 391 var o = new api.Deployment();
392 buildCounterDeployment++; 392 buildCounterDeployment++;
393 if (buildCounterDeployment < 3) { 393 if (buildCounterDeployment < 3) {
394 o.container = buildContainerInfo(); 394 o.container = buildContainerInfo();
395 o.files = buildUnnamed3620(); 395 o.files = buildUnnamed3576();
396 o.zip = buildZipInfo(); 396 o.zip = buildZipInfo();
397 } 397 }
398 buildCounterDeployment--; 398 buildCounterDeployment--;
399 return o; 399 return o;
400 } 400 }
401 401
402 checkDeployment(api.Deployment o) { 402 checkDeployment(api.Deployment o) {
403 buildCounterDeployment++; 403 buildCounterDeployment++;
404 if (buildCounterDeployment < 3) { 404 if (buildCounterDeployment < 3) {
405 checkContainerInfo(o.container); 405 checkContainerInfo(o.container);
406 checkUnnamed3620(o.files); 406 checkUnnamed3576(o.files);
407 checkZipInfo(o.zip); 407 checkZipInfo(o.zip);
408 } 408 }
409 buildCounterDeployment--; 409 buildCounterDeployment--;
410 } 410 }
411 411
412 core.int buildCounterDiskUtilization = 0; 412 core.int buildCounterDiskUtilization = 0;
413 buildDiskUtilization() { 413 buildDiskUtilization() {
414 var o = new api.DiskUtilization(); 414 var o = new api.DiskUtilization();
415 buildCounterDiskUtilization++; 415 buildCounterDiskUtilization++;
416 if (buildCounterDiskUtilization < 3) { 416 if (buildCounterDiskUtilization < 3) {
(...skipping 10 matching lines...) Expand all
427 buildCounterDiskUtilization++; 427 buildCounterDiskUtilization++;
428 if (buildCounterDiskUtilization < 3) { 428 if (buildCounterDiskUtilization < 3) {
429 unittest.expect(o.targetReadBytesPerSecond, unittest.equals(42)); 429 unittest.expect(o.targetReadBytesPerSecond, unittest.equals(42));
430 unittest.expect(o.targetReadOpsPerSecond, unittest.equals(42)); 430 unittest.expect(o.targetReadOpsPerSecond, unittest.equals(42));
431 unittest.expect(o.targetWriteBytesPerSecond, unittest.equals(42)); 431 unittest.expect(o.targetWriteBytesPerSecond, unittest.equals(42));
432 unittest.expect(o.targetWriteOpsPerSecond, unittest.equals(42)); 432 unittest.expect(o.targetWriteOpsPerSecond, unittest.equals(42));
433 } 433 }
434 buildCounterDiskUtilization--; 434 buildCounterDiskUtilization--;
435 } 435 }
436 436
437 buildUnnamed3621() { 437 buildUnnamed3577() {
438 var o = new core.List<api.ResourceRecord>(); 438 var o = new core.List<api.ResourceRecord>();
439 o.add(buildResourceRecord()); 439 o.add(buildResourceRecord());
440 o.add(buildResourceRecord()); 440 o.add(buildResourceRecord());
441 return o; 441 return o;
442 } 442 }
443 443
444 checkUnnamed3621(core.List<api.ResourceRecord> o) { 444 checkUnnamed3577(core.List<api.ResourceRecord> o) {
445 unittest.expect(o, unittest.hasLength(2)); 445 unittest.expect(o, unittest.hasLength(2));
446 checkResourceRecord(o[0]); 446 checkResourceRecord(o[0]);
447 checkResourceRecord(o[1]); 447 checkResourceRecord(o[1]);
448 } 448 }
449 449
450 core.int buildCounterDomainMapping = 0; 450 core.int buildCounterDomainMapping = 0;
451 buildDomainMapping() { 451 buildDomainMapping() {
452 var o = new api.DomainMapping(); 452 var o = new api.DomainMapping();
453 buildCounterDomainMapping++; 453 buildCounterDomainMapping++;
454 if (buildCounterDomainMapping < 3) { 454 if (buildCounterDomainMapping < 3) {
455 o.id = "foo"; 455 o.id = "foo";
456 o.name = "foo"; 456 o.name = "foo";
457 o.resourceRecords = buildUnnamed3621(); 457 o.resourceRecords = buildUnnamed3577();
458 o.sslSettings = buildSslSettings(); 458 o.sslSettings = buildSslSettings();
459 } 459 }
460 buildCounterDomainMapping--; 460 buildCounterDomainMapping--;
461 return o; 461 return o;
462 } 462 }
463 463
464 checkDomainMapping(api.DomainMapping o) { 464 checkDomainMapping(api.DomainMapping o) {
465 buildCounterDomainMapping++; 465 buildCounterDomainMapping++;
466 if (buildCounterDomainMapping < 3) { 466 if (buildCounterDomainMapping < 3) {
467 unittest.expect(o.id, unittest.equals('foo')); 467 unittest.expect(o.id, unittest.equals('foo'));
468 unittest.expect(o.name, unittest.equals('foo')); 468 unittest.expect(o.name, unittest.equals('foo'));
469 checkUnnamed3621(o.resourceRecords); 469 checkUnnamed3577(o.resourceRecords);
470 checkSslSettings(o.sslSettings); 470 checkSslSettings(o.sslSettings);
471 } 471 }
472 buildCounterDomainMapping--; 472 buildCounterDomainMapping--;
473 } 473 }
474 474
475 core.int buildCounterEmpty = 0; 475 core.int buildCounterEmpty = 0;
476 buildEmpty() { 476 buildEmpty() {
477 var o = new api.Empty(); 477 var o = new api.Empty();
478 buildCounterEmpty++; 478 buildCounterEmpty++;
479 if (buildCounterEmpty < 3) { 479 if (buildCounterEmpty < 3) {
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 675
676 checkLibrary(api.Library o) { 676 checkLibrary(api.Library o) {
677 buildCounterLibrary++; 677 buildCounterLibrary++;
678 if (buildCounterLibrary < 3) { 678 if (buildCounterLibrary < 3) {
679 unittest.expect(o.name, unittest.equals('foo')); 679 unittest.expect(o.name, unittest.equals('foo'));
680 unittest.expect(o.version, unittest.equals('foo')); 680 unittest.expect(o.version, unittest.equals('foo'));
681 } 681 }
682 buildCounterLibrary--; 682 buildCounterLibrary--;
683 } 683 }
684 684
685 buildUnnamed3622() { 685 buildUnnamed3578() {
686 var o = new core.List<api.AuthorizedCertificate>(); 686 var o = new core.List<api.AuthorizedCertificate>();
687 o.add(buildAuthorizedCertificate()); 687 o.add(buildAuthorizedCertificate());
688 o.add(buildAuthorizedCertificate()); 688 o.add(buildAuthorizedCertificate());
689 return o; 689 return o;
690 } 690 }
691 691
692 checkUnnamed3622(core.List<api.AuthorizedCertificate> o) { 692 checkUnnamed3578(core.List<api.AuthorizedCertificate> o) {
693 unittest.expect(o, unittest.hasLength(2)); 693 unittest.expect(o, unittest.hasLength(2));
694 checkAuthorizedCertificate(o[0]); 694 checkAuthorizedCertificate(o[0]);
695 checkAuthorizedCertificate(o[1]); 695 checkAuthorizedCertificate(o[1]);
696 } 696 }
697 697
698 core.int buildCounterListAuthorizedCertificatesResponse = 0; 698 core.int buildCounterListAuthorizedCertificatesResponse = 0;
699 buildListAuthorizedCertificatesResponse() { 699 buildListAuthorizedCertificatesResponse() {
700 var o = new api.ListAuthorizedCertificatesResponse(); 700 var o = new api.ListAuthorizedCertificatesResponse();
701 buildCounterListAuthorizedCertificatesResponse++; 701 buildCounterListAuthorizedCertificatesResponse++;
702 if (buildCounterListAuthorizedCertificatesResponse < 3) { 702 if (buildCounterListAuthorizedCertificatesResponse < 3) {
703 o.certificates = buildUnnamed3622(); 703 o.certificates = buildUnnamed3578();
704 o.nextPageToken = "foo"; 704 o.nextPageToken = "foo";
705 } 705 }
706 buildCounterListAuthorizedCertificatesResponse--; 706 buildCounterListAuthorizedCertificatesResponse--;
707 return o; 707 return o;
708 } 708 }
709 709
710 checkListAuthorizedCertificatesResponse(api.ListAuthorizedCertificatesResponse o ) { 710 checkListAuthorizedCertificatesResponse(api.ListAuthorizedCertificatesResponse o ) {
711 buildCounterListAuthorizedCertificatesResponse++; 711 buildCounterListAuthorizedCertificatesResponse++;
712 if (buildCounterListAuthorizedCertificatesResponse < 3) { 712 if (buildCounterListAuthorizedCertificatesResponse < 3) {
713 checkUnnamed3622(o.certificates); 713 checkUnnamed3578(o.certificates);
714 unittest.expect(o.nextPageToken, unittest.equals('foo')); 714 unittest.expect(o.nextPageToken, unittest.equals('foo'));
715 } 715 }
716 buildCounterListAuthorizedCertificatesResponse--; 716 buildCounterListAuthorizedCertificatesResponse--;
717 } 717 }
718 718
719 buildUnnamed3623() { 719 buildUnnamed3579() {
720 var o = new core.List<api.AuthorizedDomain>(); 720 var o = new core.List<api.AuthorizedDomain>();
721 o.add(buildAuthorizedDomain()); 721 o.add(buildAuthorizedDomain());
722 o.add(buildAuthorizedDomain()); 722 o.add(buildAuthorizedDomain());
723 return o; 723 return o;
724 } 724 }
725 725
726 checkUnnamed3623(core.List<api.AuthorizedDomain> o) { 726 checkUnnamed3579(core.List<api.AuthorizedDomain> o) {
727 unittest.expect(o, unittest.hasLength(2)); 727 unittest.expect(o, unittest.hasLength(2));
728 checkAuthorizedDomain(o[0]); 728 checkAuthorizedDomain(o[0]);
729 checkAuthorizedDomain(o[1]); 729 checkAuthorizedDomain(o[1]);
730 } 730 }
731 731
732 core.int buildCounterListAuthorizedDomainsResponse = 0; 732 core.int buildCounterListAuthorizedDomainsResponse = 0;
733 buildListAuthorizedDomainsResponse() { 733 buildListAuthorizedDomainsResponse() {
734 var o = new api.ListAuthorizedDomainsResponse(); 734 var o = new api.ListAuthorizedDomainsResponse();
735 buildCounterListAuthorizedDomainsResponse++; 735 buildCounterListAuthorizedDomainsResponse++;
736 if (buildCounterListAuthorizedDomainsResponse < 3) { 736 if (buildCounterListAuthorizedDomainsResponse < 3) {
737 o.domains = buildUnnamed3623(); 737 o.domains = buildUnnamed3579();
738 o.nextPageToken = "foo"; 738 o.nextPageToken = "foo";
739 } 739 }
740 buildCounterListAuthorizedDomainsResponse--; 740 buildCounterListAuthorizedDomainsResponse--;
741 return o; 741 return o;
742 } 742 }
743 743
744 checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) { 744 checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) {
745 buildCounterListAuthorizedDomainsResponse++; 745 buildCounterListAuthorizedDomainsResponse++;
746 if (buildCounterListAuthorizedDomainsResponse < 3) { 746 if (buildCounterListAuthorizedDomainsResponse < 3) {
747 checkUnnamed3623(o.domains); 747 checkUnnamed3579(o.domains);
748 unittest.expect(o.nextPageToken, unittest.equals('foo')); 748 unittest.expect(o.nextPageToken, unittest.equals('foo'));
749 } 749 }
750 buildCounterListAuthorizedDomainsResponse--; 750 buildCounterListAuthorizedDomainsResponse--;
751 } 751 }
752 752
753 buildUnnamed3624() { 753 buildUnnamed3580() {
754 var o = new core.List<api.DomainMapping>(); 754 var o = new core.List<api.DomainMapping>();
755 o.add(buildDomainMapping()); 755 o.add(buildDomainMapping());
756 o.add(buildDomainMapping()); 756 o.add(buildDomainMapping());
757 return o; 757 return o;
758 } 758 }
759 759
760 checkUnnamed3624(core.List<api.DomainMapping> o) { 760 checkUnnamed3580(core.List<api.DomainMapping> o) {
761 unittest.expect(o, unittest.hasLength(2)); 761 unittest.expect(o, unittest.hasLength(2));
762 checkDomainMapping(o[0]); 762 checkDomainMapping(o[0]);
763 checkDomainMapping(o[1]); 763 checkDomainMapping(o[1]);
764 } 764 }
765 765
766 core.int buildCounterListDomainMappingsResponse = 0; 766 core.int buildCounterListDomainMappingsResponse = 0;
767 buildListDomainMappingsResponse() { 767 buildListDomainMappingsResponse() {
768 var o = new api.ListDomainMappingsResponse(); 768 var o = new api.ListDomainMappingsResponse();
769 buildCounterListDomainMappingsResponse++; 769 buildCounterListDomainMappingsResponse++;
770 if (buildCounterListDomainMappingsResponse < 3) { 770 if (buildCounterListDomainMappingsResponse < 3) {
771 o.domainMappings = buildUnnamed3624(); 771 o.domainMappings = buildUnnamed3580();
772 o.nextPageToken = "foo"; 772 o.nextPageToken = "foo";
773 } 773 }
774 buildCounterListDomainMappingsResponse--; 774 buildCounterListDomainMappingsResponse--;
775 return o; 775 return o;
776 } 776 }
777 777
778 checkListDomainMappingsResponse(api.ListDomainMappingsResponse o) { 778 checkListDomainMappingsResponse(api.ListDomainMappingsResponse o) {
779 buildCounterListDomainMappingsResponse++; 779 buildCounterListDomainMappingsResponse++;
780 if (buildCounterListDomainMappingsResponse < 3) { 780 if (buildCounterListDomainMappingsResponse < 3) {
781 checkUnnamed3624(o.domainMappings); 781 checkUnnamed3580(o.domainMappings);
782 unittest.expect(o.nextPageToken, unittest.equals('foo')); 782 unittest.expect(o.nextPageToken, unittest.equals('foo'));
783 } 783 }
784 buildCounterListDomainMappingsResponse--; 784 buildCounterListDomainMappingsResponse--;
785 } 785 }
786 786
787 buildUnnamed3625() { 787 buildUnnamed3581() {
788 var o = new core.List<api.Instance>(); 788 var o = new core.List<api.Instance>();
789 o.add(buildInstance()); 789 o.add(buildInstance());
790 o.add(buildInstance()); 790 o.add(buildInstance());
791 return o; 791 return o;
792 } 792 }
793 793
794 checkUnnamed3625(core.List<api.Instance> o) { 794 checkUnnamed3581(core.List<api.Instance> o) {
795 unittest.expect(o, unittest.hasLength(2)); 795 unittest.expect(o, unittest.hasLength(2));
796 checkInstance(o[0]); 796 checkInstance(o[0]);
797 checkInstance(o[1]); 797 checkInstance(o[1]);
798 } 798 }
799 799
800 core.int buildCounterListInstancesResponse = 0; 800 core.int buildCounterListInstancesResponse = 0;
801 buildListInstancesResponse() { 801 buildListInstancesResponse() {
802 var o = new api.ListInstancesResponse(); 802 var o = new api.ListInstancesResponse();
803 buildCounterListInstancesResponse++; 803 buildCounterListInstancesResponse++;
804 if (buildCounterListInstancesResponse < 3) { 804 if (buildCounterListInstancesResponse < 3) {
805 o.instances = buildUnnamed3625(); 805 o.instances = buildUnnamed3581();
806 o.nextPageToken = "foo"; 806 o.nextPageToken = "foo";
807 } 807 }
808 buildCounterListInstancesResponse--; 808 buildCounterListInstancesResponse--;
809 return o; 809 return o;
810 } 810 }
811 811
812 checkListInstancesResponse(api.ListInstancesResponse o) { 812 checkListInstancesResponse(api.ListInstancesResponse o) {
813 buildCounterListInstancesResponse++; 813 buildCounterListInstancesResponse++;
814 if (buildCounterListInstancesResponse < 3) { 814 if (buildCounterListInstancesResponse < 3) {
815 checkUnnamed3625(o.instances); 815 checkUnnamed3581(o.instances);
816 unittest.expect(o.nextPageToken, unittest.equals('foo')); 816 unittest.expect(o.nextPageToken, unittest.equals('foo'));
817 } 817 }
818 buildCounterListInstancesResponse--; 818 buildCounterListInstancesResponse--;
819 } 819 }
820 820
821 buildUnnamed3626() { 821 buildUnnamed3582() {
822 var o = new core.List<api.Location>(); 822 var o = new core.List<api.Location>();
823 o.add(buildLocation()); 823 o.add(buildLocation());
824 o.add(buildLocation()); 824 o.add(buildLocation());
825 return o; 825 return o;
826 } 826 }
827 827
828 checkUnnamed3626(core.List<api.Location> o) { 828 checkUnnamed3582(core.List<api.Location> o) {
829 unittest.expect(o, unittest.hasLength(2)); 829 unittest.expect(o, unittest.hasLength(2));
830 checkLocation(o[0]); 830 checkLocation(o[0]);
831 checkLocation(o[1]); 831 checkLocation(o[1]);
832 } 832 }
833 833
834 core.int buildCounterListLocationsResponse = 0; 834 core.int buildCounterListLocationsResponse = 0;
835 buildListLocationsResponse() { 835 buildListLocationsResponse() {
836 var o = new api.ListLocationsResponse(); 836 var o = new api.ListLocationsResponse();
837 buildCounterListLocationsResponse++; 837 buildCounterListLocationsResponse++;
838 if (buildCounterListLocationsResponse < 3) { 838 if (buildCounterListLocationsResponse < 3) {
839 o.locations = buildUnnamed3626(); 839 o.locations = buildUnnamed3582();
840 o.nextPageToken = "foo"; 840 o.nextPageToken = "foo";
841 } 841 }
842 buildCounterListLocationsResponse--; 842 buildCounterListLocationsResponse--;
843 return o; 843 return o;
844 } 844 }
845 845
846 checkListLocationsResponse(api.ListLocationsResponse o) { 846 checkListLocationsResponse(api.ListLocationsResponse o) {
847 buildCounterListLocationsResponse++; 847 buildCounterListLocationsResponse++;
848 if (buildCounterListLocationsResponse < 3) { 848 if (buildCounterListLocationsResponse < 3) {
849 checkUnnamed3626(o.locations); 849 checkUnnamed3582(o.locations);
850 unittest.expect(o.nextPageToken, unittest.equals('foo')); 850 unittest.expect(o.nextPageToken, unittest.equals('foo'));
851 } 851 }
852 buildCounterListLocationsResponse--; 852 buildCounterListLocationsResponse--;
853 } 853 }
854 854
855 buildUnnamed3627() { 855 buildUnnamed3583() {
856 var o = new core.List<api.Operation>(); 856 var o = new core.List<api.Operation>();
857 o.add(buildOperation()); 857 o.add(buildOperation());
858 o.add(buildOperation()); 858 o.add(buildOperation());
859 return o; 859 return o;
860 } 860 }
861 861
862 checkUnnamed3627(core.List<api.Operation> o) { 862 checkUnnamed3583(core.List<api.Operation> o) {
863 unittest.expect(o, unittest.hasLength(2)); 863 unittest.expect(o, unittest.hasLength(2));
864 checkOperation(o[0]); 864 checkOperation(o[0]);
865 checkOperation(o[1]); 865 checkOperation(o[1]);
866 } 866 }
867 867
868 core.int buildCounterListOperationsResponse = 0; 868 core.int buildCounterListOperationsResponse = 0;
869 buildListOperationsResponse() { 869 buildListOperationsResponse() {
870 var o = new api.ListOperationsResponse(); 870 var o = new api.ListOperationsResponse();
871 buildCounterListOperationsResponse++; 871 buildCounterListOperationsResponse++;
872 if (buildCounterListOperationsResponse < 3) { 872 if (buildCounterListOperationsResponse < 3) {
873 o.nextPageToken = "foo"; 873 o.nextPageToken = "foo";
874 o.operations = buildUnnamed3627(); 874 o.operations = buildUnnamed3583();
875 } 875 }
876 buildCounterListOperationsResponse--; 876 buildCounterListOperationsResponse--;
877 return o; 877 return o;
878 } 878 }
879 879
880 checkListOperationsResponse(api.ListOperationsResponse o) { 880 checkListOperationsResponse(api.ListOperationsResponse o) {
881 buildCounterListOperationsResponse++; 881 buildCounterListOperationsResponse++;
882 if (buildCounterListOperationsResponse < 3) { 882 if (buildCounterListOperationsResponse < 3) {
883 unittest.expect(o.nextPageToken, unittest.equals('foo')); 883 unittest.expect(o.nextPageToken, unittest.equals('foo'));
884 checkUnnamed3627(o.operations); 884 checkUnnamed3583(o.operations);
885 } 885 }
886 buildCounterListOperationsResponse--; 886 buildCounterListOperationsResponse--;
887 } 887 }
888 888
889 buildUnnamed3628() { 889 buildUnnamed3584() {
890 var o = new core.List<api.Service>(); 890 var o = new core.List<api.Service>();
891 o.add(buildService()); 891 o.add(buildService());
892 o.add(buildService()); 892 o.add(buildService());
893 return o; 893 return o;
894 } 894 }
895 895
896 checkUnnamed3628(core.List<api.Service> o) { 896 checkUnnamed3584(core.List<api.Service> o) {
897 unittest.expect(o, unittest.hasLength(2)); 897 unittest.expect(o, unittest.hasLength(2));
898 checkService(o[0]); 898 checkService(o[0]);
899 checkService(o[1]); 899 checkService(o[1]);
900 } 900 }
901 901
902 core.int buildCounterListServicesResponse = 0; 902 core.int buildCounterListServicesResponse = 0;
903 buildListServicesResponse() { 903 buildListServicesResponse() {
904 var o = new api.ListServicesResponse(); 904 var o = new api.ListServicesResponse();
905 buildCounterListServicesResponse++; 905 buildCounterListServicesResponse++;
906 if (buildCounterListServicesResponse < 3) { 906 if (buildCounterListServicesResponse < 3) {
907 o.nextPageToken = "foo"; 907 o.nextPageToken = "foo";
908 o.services = buildUnnamed3628(); 908 o.services = buildUnnamed3584();
909 } 909 }
910 buildCounterListServicesResponse--; 910 buildCounterListServicesResponse--;
911 return o; 911 return o;
912 } 912 }
913 913
914 checkListServicesResponse(api.ListServicesResponse o) { 914 checkListServicesResponse(api.ListServicesResponse o) {
915 buildCounterListServicesResponse++; 915 buildCounterListServicesResponse++;
916 if (buildCounterListServicesResponse < 3) { 916 if (buildCounterListServicesResponse < 3) {
917 unittest.expect(o.nextPageToken, unittest.equals('foo')); 917 unittest.expect(o.nextPageToken, unittest.equals('foo'));
918 checkUnnamed3628(o.services); 918 checkUnnamed3584(o.services);
919 } 919 }
920 buildCounterListServicesResponse--; 920 buildCounterListServicesResponse--;
921 } 921 }
922 922
923 buildUnnamed3629() { 923 buildUnnamed3585() {
924 var o = new core.List<api.Version>(); 924 var o = new core.List<api.Version>();
925 o.add(buildVersion()); 925 o.add(buildVersion());
926 o.add(buildVersion()); 926 o.add(buildVersion());
927 return o; 927 return o;
928 } 928 }
929 929
930 checkUnnamed3629(core.List<api.Version> o) { 930 checkUnnamed3585(core.List<api.Version> o) {
931 unittest.expect(o, unittest.hasLength(2)); 931 unittest.expect(o, unittest.hasLength(2));
932 checkVersion(o[0]); 932 checkVersion(o[0]);
933 checkVersion(o[1]); 933 checkVersion(o[1]);
934 } 934 }
935 935
936 core.int buildCounterListVersionsResponse = 0; 936 core.int buildCounterListVersionsResponse = 0;
937 buildListVersionsResponse() { 937 buildListVersionsResponse() {
938 var o = new api.ListVersionsResponse(); 938 var o = new api.ListVersionsResponse();
939 buildCounterListVersionsResponse++; 939 buildCounterListVersionsResponse++;
940 if (buildCounterListVersionsResponse < 3) { 940 if (buildCounterListVersionsResponse < 3) {
941 o.nextPageToken = "foo"; 941 o.nextPageToken = "foo";
942 o.versions = buildUnnamed3629(); 942 o.versions = buildUnnamed3585();
943 } 943 }
944 buildCounterListVersionsResponse--; 944 buildCounterListVersionsResponse--;
945 return o; 945 return o;
946 } 946 }
947 947
948 checkListVersionsResponse(api.ListVersionsResponse o) { 948 checkListVersionsResponse(api.ListVersionsResponse o) {
949 buildCounterListVersionsResponse++; 949 buildCounterListVersionsResponse++;
950 if (buildCounterListVersionsResponse < 3) { 950 if (buildCounterListVersionsResponse < 3) {
951 unittest.expect(o.nextPageToken, unittest.equals('foo')); 951 unittest.expect(o.nextPageToken, unittest.equals('foo'));
952 checkUnnamed3629(o.versions); 952 checkUnnamed3585(o.versions);
953 } 953 }
954 buildCounterListVersionsResponse--; 954 buildCounterListVersionsResponse--;
955 } 955 }
956 956
957 core.int buildCounterLivenessCheck = 0; 957 core.int buildCounterLivenessCheck = 0;
958 buildLivenessCheck() { 958 buildLivenessCheck() {
959 var o = new api.LivenessCheck(); 959 var o = new api.LivenessCheck();
960 buildCounterLivenessCheck++; 960 buildCounterLivenessCheck++;
961 if (buildCounterLivenessCheck < 3) { 961 if (buildCounterLivenessCheck < 3) {
962 o.checkInterval = "foo"; 962 o.checkInterval = "foo";
(...skipping 15 matching lines...) Expand all
978 unittest.expect(o.failureThreshold, unittest.equals(42)); 978 unittest.expect(o.failureThreshold, unittest.equals(42));
979 unittest.expect(o.host, unittest.equals('foo')); 979 unittest.expect(o.host, unittest.equals('foo'));
980 unittest.expect(o.initialDelay, unittest.equals('foo')); 980 unittest.expect(o.initialDelay, unittest.equals('foo'));
981 unittest.expect(o.path, unittest.equals('foo')); 981 unittest.expect(o.path, unittest.equals('foo'));
982 unittest.expect(o.successThreshold, unittest.equals(42)); 982 unittest.expect(o.successThreshold, unittest.equals(42));
983 unittest.expect(o.timeout, unittest.equals('foo')); 983 unittest.expect(o.timeout, unittest.equals('foo'));
984 } 984 }
985 buildCounterLivenessCheck--; 985 buildCounterLivenessCheck--;
986 } 986 }
987 987
988 buildUnnamed3630() { 988 buildUnnamed3586() {
989 var o = new core.Map<core.String, core.String>(); 989 var o = new core.Map<core.String, core.String>();
990 o["x"] = "foo"; 990 o["x"] = "foo";
991 o["y"] = "foo"; 991 o["y"] = "foo";
992 return o; 992 return o;
993 } 993 }
994 994
995 checkUnnamed3630(core.Map<core.String, core.String> o) { 995 checkUnnamed3586(core.Map<core.String, core.String> o) {
996 unittest.expect(o, unittest.hasLength(2)); 996 unittest.expect(o, unittest.hasLength(2));
997 unittest.expect(o["x"], unittest.equals('foo')); 997 unittest.expect(o["x"], unittest.equals('foo'));
998 unittest.expect(o["y"], unittest.equals('foo')); 998 unittest.expect(o["y"], unittest.equals('foo'));
999 } 999 }
1000 1000
1001 buildUnnamed3631() { 1001 buildUnnamed3587() {
1002 var o = new core.Map<core.String, core.Object>(); 1002 var o = new core.Map<core.String, core.Object>();
1003 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1003 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1004 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1004 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1005 return o; 1005 return o;
1006 } 1006 }
1007 1007
1008 checkUnnamed3631(core.Map<core.String, core.Object> o) { 1008 checkUnnamed3587(core.Map<core.String, core.Object> o) {
1009 unittest.expect(o, unittest.hasLength(2)); 1009 unittest.expect(o, unittest.hasLength(2));
1010 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')); 1010 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'));
1011 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')); 1011 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'));
1012 } 1012 }
1013 1013
1014 core.int buildCounterLocation = 0; 1014 core.int buildCounterLocation = 0;
1015 buildLocation() { 1015 buildLocation() {
1016 var o = new api.Location(); 1016 var o = new api.Location();
1017 buildCounterLocation++; 1017 buildCounterLocation++;
1018 if (buildCounterLocation < 3) { 1018 if (buildCounterLocation < 3) {
1019 o.labels = buildUnnamed3630(); 1019 o.labels = buildUnnamed3586();
1020 o.locationId = "foo"; 1020 o.locationId = "foo";
1021 o.metadata = buildUnnamed3631(); 1021 o.metadata = buildUnnamed3587();
1022 o.name = "foo"; 1022 o.name = "foo";
1023 } 1023 }
1024 buildCounterLocation--; 1024 buildCounterLocation--;
1025 return o; 1025 return o;
1026 } 1026 }
1027 1027
1028 checkLocation(api.Location o) { 1028 checkLocation(api.Location o) {
1029 buildCounterLocation++; 1029 buildCounterLocation++;
1030 if (buildCounterLocation < 3) { 1030 if (buildCounterLocation < 3) {
1031 checkUnnamed3630(o.labels); 1031 checkUnnamed3586(o.labels);
1032 unittest.expect(o.locationId, unittest.equals('foo')); 1032 unittest.expect(o.locationId, unittest.equals('foo'));
1033 checkUnnamed3631(o.metadata); 1033 checkUnnamed3587(o.metadata);
1034 unittest.expect(o.name, unittest.equals('foo')); 1034 unittest.expect(o.name, unittest.equals('foo'));
1035 } 1035 }
1036 buildCounterLocation--; 1036 buildCounterLocation--;
1037 } 1037 }
1038 1038
1039 core.int buildCounterLocationMetadata = 0; 1039 core.int buildCounterLocationMetadata = 0;
1040 buildLocationMetadata() { 1040 buildLocationMetadata() {
1041 var o = new api.LocationMetadata(); 1041 var o = new api.LocationMetadata();
1042 buildCounterLocationMetadata++; 1042 buildCounterLocationMetadata++;
1043 if (buildCounterLocationMetadata < 3) { 1043 if (buildCounterLocationMetadata < 3) {
(...skipping 25 matching lines...) Expand all
1069 } 1069 }
1070 1070
1071 checkManualScaling(api.ManualScaling o) { 1071 checkManualScaling(api.ManualScaling o) {
1072 buildCounterManualScaling++; 1072 buildCounterManualScaling++;
1073 if (buildCounterManualScaling < 3) { 1073 if (buildCounterManualScaling < 3) {
1074 unittest.expect(o.instances, unittest.equals(42)); 1074 unittest.expect(o.instances, unittest.equals(42));
1075 } 1075 }
1076 buildCounterManualScaling--; 1076 buildCounterManualScaling--;
1077 } 1077 }
1078 1078
1079 buildUnnamed3632() { 1079 buildUnnamed3588() {
1080 var o = new core.List<core.String>(); 1080 var o = new core.List<core.String>();
1081 o.add("foo"); 1081 o.add("foo");
1082 o.add("foo"); 1082 o.add("foo");
1083 return o; 1083 return o;
1084 } 1084 }
1085 1085
1086 checkUnnamed3632(core.List<core.String> o) { 1086 checkUnnamed3588(core.List<core.String> o) {
1087 unittest.expect(o, unittest.hasLength(2)); 1087 unittest.expect(o, unittest.hasLength(2));
1088 unittest.expect(o[0], unittest.equals('foo')); 1088 unittest.expect(o[0], unittest.equals('foo'));
1089 unittest.expect(o[1], unittest.equals('foo')); 1089 unittest.expect(o[1], unittest.equals('foo'));
1090 } 1090 }
1091 1091
1092 core.int buildCounterNetwork = 0; 1092 core.int buildCounterNetwork = 0;
1093 buildNetwork() { 1093 buildNetwork() {
1094 var o = new api.Network(); 1094 var o = new api.Network();
1095 buildCounterNetwork++; 1095 buildCounterNetwork++;
1096 if (buildCounterNetwork < 3) { 1096 if (buildCounterNetwork < 3) {
1097 o.forwardedPorts = buildUnnamed3632(); 1097 o.forwardedPorts = buildUnnamed3588();
1098 o.instanceTag = "foo"; 1098 o.instanceTag = "foo";
1099 o.name = "foo"; 1099 o.name = "foo";
1100 o.subnetworkName = "foo"; 1100 o.subnetworkName = "foo";
1101 } 1101 }
1102 buildCounterNetwork--; 1102 buildCounterNetwork--;
1103 return o; 1103 return o;
1104 } 1104 }
1105 1105
1106 checkNetwork(api.Network o) { 1106 checkNetwork(api.Network o) {
1107 buildCounterNetwork++; 1107 buildCounterNetwork++;
1108 if (buildCounterNetwork < 3) { 1108 if (buildCounterNetwork < 3) {
1109 checkUnnamed3632(o.forwardedPorts); 1109 checkUnnamed3588(o.forwardedPorts);
1110 unittest.expect(o.instanceTag, unittest.equals('foo')); 1110 unittest.expect(o.instanceTag, unittest.equals('foo'));
1111 unittest.expect(o.name, unittest.equals('foo')); 1111 unittest.expect(o.name, unittest.equals('foo'));
1112 unittest.expect(o.subnetworkName, unittest.equals('foo')); 1112 unittest.expect(o.subnetworkName, unittest.equals('foo'));
1113 } 1113 }
1114 buildCounterNetwork--; 1114 buildCounterNetwork--;
1115 } 1115 }
1116 1116
1117 core.int buildCounterNetworkUtilization = 0; 1117 core.int buildCounterNetworkUtilization = 0;
1118 buildNetworkUtilization() { 1118 buildNetworkUtilization() {
1119 var o = new api.NetworkUtilization(); 1119 var o = new api.NetworkUtilization();
(...skipping 12 matching lines...) Expand all
1132 buildCounterNetworkUtilization++; 1132 buildCounterNetworkUtilization++;
1133 if (buildCounterNetworkUtilization < 3) { 1133 if (buildCounterNetworkUtilization < 3) {
1134 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42)); 1134 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42));
1135 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42)); 1135 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42));
1136 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42)); 1136 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42));
1137 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42)); 1137 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42));
1138 } 1138 }
1139 buildCounterNetworkUtilization--; 1139 buildCounterNetworkUtilization--;
1140 } 1140 }
1141 1141
1142 buildUnnamed3633() { 1142 buildUnnamed3589() {
1143 var o = new core.Map<core.String, core.Object>(); 1143 var o = new core.Map<core.String, core.Object>();
1144 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1144 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1145 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1145 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1146 return o; 1146 return o;
1147 } 1147 }
1148 1148
1149 checkUnnamed3633(core.Map<core.String, core.Object> o) { 1149 checkUnnamed3589(core.Map<core.String, core.Object> o) {
1150 unittest.expect(o, unittest.hasLength(2)); 1150 unittest.expect(o, unittest.hasLength(2));
1151 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')); 1151 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'));
1152 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')); 1152 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'));
1153 } 1153 }
1154 1154
1155 buildUnnamed3634() { 1155 buildUnnamed3590() {
1156 var o = new core.Map<core.String, core.Object>(); 1156 var o = new core.Map<core.String, core.Object>();
1157 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1157 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1158 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1158 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1159 return o; 1159 return o;
1160 } 1160 }
1161 1161
1162 checkUnnamed3634(core.Map<core.String, core.Object> o) { 1162 checkUnnamed3590(core.Map<core.String, core.Object> o) {
1163 unittest.expect(o, unittest.hasLength(2)); 1163 unittest.expect(o, unittest.hasLength(2));
1164 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')); 1164 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'));
1165 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')); 1165 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'));
1166 } 1166 }
1167 1167
1168 core.int buildCounterOperation = 0; 1168 core.int buildCounterOperation = 0;
1169 buildOperation() { 1169 buildOperation() {
1170 var o = new api.Operation(); 1170 var o = new api.Operation();
1171 buildCounterOperation++; 1171 buildCounterOperation++;
1172 if (buildCounterOperation < 3) { 1172 if (buildCounterOperation < 3) {
1173 o.done = true; 1173 o.done = true;
1174 o.error = buildStatus(); 1174 o.error = buildStatus();
1175 o.metadata = buildUnnamed3633(); 1175 o.metadata = buildUnnamed3589();
1176 o.name = "foo"; 1176 o.name = "foo";
1177 o.response = buildUnnamed3634(); 1177 o.response = buildUnnamed3590();
1178 } 1178 }
1179 buildCounterOperation--; 1179 buildCounterOperation--;
1180 return o; 1180 return o;
1181 } 1181 }
1182 1182
1183 checkOperation(api.Operation o) { 1183 checkOperation(api.Operation o) {
1184 buildCounterOperation++; 1184 buildCounterOperation++;
1185 if (buildCounterOperation < 3) { 1185 if (buildCounterOperation < 3) {
1186 unittest.expect(o.done, unittest.isTrue); 1186 unittest.expect(o.done, unittest.isTrue);
1187 checkStatus(o.error); 1187 checkStatus(o.error);
1188 checkUnnamed3633(o.metadata); 1188 checkUnnamed3589(o.metadata);
1189 unittest.expect(o.name, unittest.equals('foo')); 1189 unittest.expect(o.name, unittest.equals('foo'));
1190 checkUnnamed3634(o.response); 1190 checkUnnamed3590(o.response);
1191 } 1191 }
1192 buildCounterOperation--; 1192 buildCounterOperation--;
1193 } 1193 }
1194 1194
1195 core.int buildCounterOperationMetadata = 0; 1195 core.int buildCounterOperationMetadata = 0;
1196 buildOperationMetadata() { 1196 buildOperationMetadata() {
1197 var o = new api.OperationMetadata(); 1197 var o = new api.OperationMetadata();
1198 buildCounterOperationMetadata++; 1198 buildCounterOperationMetadata++;
1199 if (buildCounterOperationMetadata < 3) { 1199 if (buildCounterOperationMetadata < 3) {
1200 o.endTime = "foo"; 1200 o.endTime = "foo";
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 if (buildCounterOperationMetadataExperimental < 3) { 1241 if (buildCounterOperationMetadataExperimental < 3) {
1242 unittest.expect(o.endTime, unittest.equals('foo')); 1242 unittest.expect(o.endTime, unittest.equals('foo'));
1243 unittest.expect(o.insertTime, unittest.equals('foo')); 1243 unittest.expect(o.insertTime, unittest.equals('foo'));
1244 unittest.expect(o.method, unittest.equals('foo')); 1244 unittest.expect(o.method, unittest.equals('foo'));
1245 unittest.expect(o.target, unittest.equals('foo')); 1245 unittest.expect(o.target, unittest.equals('foo'));
1246 unittest.expect(o.user, unittest.equals('foo')); 1246 unittest.expect(o.user, unittest.equals('foo'));
1247 } 1247 }
1248 buildCounterOperationMetadataExperimental--; 1248 buildCounterOperationMetadataExperimental--;
1249 } 1249 }
1250 1250
1251 buildUnnamed3635() { 1251 buildUnnamed3591() {
1252 var o = new core.List<core.String>(); 1252 var o = new core.List<core.String>();
1253 o.add("foo"); 1253 o.add("foo");
1254 o.add("foo"); 1254 o.add("foo");
1255 return o; 1255 return o;
1256 } 1256 }
1257 1257
1258 checkUnnamed3635(core.List<core.String> o) { 1258 checkUnnamed3591(core.List<core.String> o) {
1259 unittest.expect(o, unittest.hasLength(2)); 1259 unittest.expect(o, unittest.hasLength(2));
1260 unittest.expect(o[0], unittest.equals('foo')); 1260 unittest.expect(o[0], unittest.equals('foo'));
1261 unittest.expect(o[1], unittest.equals('foo')); 1261 unittest.expect(o[1], unittest.equals('foo'));
1262 } 1262 }
1263 1263
1264 core.int buildCounterOperationMetadataV1 = 0; 1264 core.int buildCounterOperationMetadataV1 = 0;
1265 buildOperationMetadataV1() { 1265 buildOperationMetadataV1() {
1266 var o = new api.OperationMetadataV1(); 1266 var o = new api.OperationMetadataV1();
1267 buildCounterOperationMetadataV1++; 1267 buildCounterOperationMetadataV1++;
1268 if (buildCounterOperationMetadataV1 < 3) { 1268 if (buildCounterOperationMetadataV1 < 3) {
1269 o.endTime = "foo"; 1269 o.endTime = "foo";
1270 o.ephemeralMessage = "foo"; 1270 o.ephemeralMessage = "foo";
1271 o.insertTime = "foo"; 1271 o.insertTime = "foo";
1272 o.method = "foo"; 1272 o.method = "foo";
1273 o.target = "foo"; 1273 o.target = "foo";
1274 o.user = "foo"; 1274 o.user = "foo";
1275 o.warning = buildUnnamed3635(); 1275 o.warning = buildUnnamed3591();
1276 } 1276 }
1277 buildCounterOperationMetadataV1--; 1277 buildCounterOperationMetadataV1--;
1278 return o; 1278 return o;
1279 } 1279 }
1280 1280
1281 checkOperationMetadataV1(api.OperationMetadataV1 o) { 1281 checkOperationMetadataV1(api.OperationMetadataV1 o) {
1282 buildCounterOperationMetadataV1++; 1282 buildCounterOperationMetadataV1++;
1283 if (buildCounterOperationMetadataV1 < 3) { 1283 if (buildCounterOperationMetadataV1 < 3) {
1284 unittest.expect(o.endTime, unittest.equals('foo')); 1284 unittest.expect(o.endTime, unittest.equals('foo'));
1285 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1285 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1286 unittest.expect(o.insertTime, unittest.equals('foo')); 1286 unittest.expect(o.insertTime, unittest.equals('foo'));
1287 unittest.expect(o.method, unittest.equals('foo')); 1287 unittest.expect(o.method, unittest.equals('foo'));
1288 unittest.expect(o.target, unittest.equals('foo')); 1288 unittest.expect(o.target, unittest.equals('foo'));
1289 unittest.expect(o.user, unittest.equals('foo')); 1289 unittest.expect(o.user, unittest.equals('foo'));
1290 checkUnnamed3635(o.warning); 1290 checkUnnamed3591(o.warning);
1291 } 1291 }
1292 buildCounterOperationMetadataV1--; 1292 buildCounterOperationMetadataV1--;
1293 } 1293 }
1294 1294
1295 buildUnnamed3636() { 1295 buildUnnamed3592() {
1296 var o = new core.List<core.String>(); 1296 var o = new core.List<core.String>();
1297 o.add("foo"); 1297 o.add("foo");
1298 o.add("foo"); 1298 o.add("foo");
1299 return o; 1299 return o;
1300 } 1300 }
1301 1301
1302 checkUnnamed3636(core.List<core.String> o) { 1302 checkUnnamed3592(core.List<core.String> o) {
1303 unittest.expect(o, unittest.hasLength(2)); 1303 unittest.expect(o, unittest.hasLength(2));
1304 unittest.expect(o[0], unittest.equals('foo')); 1304 unittest.expect(o[0], unittest.equals('foo'));
1305 unittest.expect(o[1], unittest.equals('foo')); 1305 unittest.expect(o[1], unittest.equals('foo'));
1306 } 1306 }
1307 1307
1308 core.int buildCounterOperationMetadataV1Beta = 0; 1308 core.int buildCounterOperationMetadataV1Beta = 0;
1309 buildOperationMetadataV1Beta() { 1309 buildOperationMetadataV1Beta() {
1310 var o = new api.OperationMetadataV1Beta(); 1310 var o = new api.OperationMetadataV1Beta();
1311 buildCounterOperationMetadataV1Beta++; 1311 buildCounterOperationMetadataV1Beta++;
1312 if (buildCounterOperationMetadataV1Beta < 3) { 1312 if (buildCounterOperationMetadataV1Beta < 3) {
1313 o.endTime = "foo"; 1313 o.endTime = "foo";
1314 o.ephemeralMessage = "foo"; 1314 o.ephemeralMessage = "foo";
1315 o.insertTime = "foo"; 1315 o.insertTime = "foo";
1316 o.method = "foo"; 1316 o.method = "foo";
1317 o.target = "foo"; 1317 o.target = "foo";
1318 o.user = "foo"; 1318 o.user = "foo";
1319 o.warning = buildUnnamed3636(); 1319 o.warning = buildUnnamed3592();
1320 } 1320 }
1321 buildCounterOperationMetadataV1Beta--; 1321 buildCounterOperationMetadataV1Beta--;
1322 return o; 1322 return o;
1323 } 1323 }
1324 1324
1325 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { 1325 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) {
1326 buildCounterOperationMetadataV1Beta++; 1326 buildCounterOperationMetadataV1Beta++;
1327 if (buildCounterOperationMetadataV1Beta < 3) { 1327 if (buildCounterOperationMetadataV1Beta < 3) {
1328 unittest.expect(o.endTime, unittest.equals('foo')); 1328 unittest.expect(o.endTime, unittest.equals('foo'));
1329 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1329 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1330 unittest.expect(o.insertTime, unittest.equals('foo')); 1330 unittest.expect(o.insertTime, unittest.equals('foo'));
1331 unittest.expect(o.method, unittest.equals('foo')); 1331 unittest.expect(o.method, unittest.equals('foo'));
1332 unittest.expect(o.target, unittest.equals('foo')); 1332 unittest.expect(o.target, unittest.equals('foo'));
1333 unittest.expect(o.user, unittest.equals('foo')); 1333 unittest.expect(o.user, unittest.equals('foo'));
1334 checkUnnamed3636(o.warning); 1334 checkUnnamed3592(o.warning);
1335 } 1335 }
1336 buildCounterOperationMetadataV1Beta--; 1336 buildCounterOperationMetadataV1Beta--;
1337 } 1337 }
1338 1338
1339 core.int buildCounterOperationMetadataV1Beta5 = 0; 1339 core.int buildCounterOperationMetadataV1Beta5 = 0;
1340 buildOperationMetadataV1Beta5() { 1340 buildOperationMetadataV1Beta5() {
1341 var o = new api.OperationMetadataV1Beta5(); 1341 var o = new api.OperationMetadataV1Beta5();
1342 buildCounterOperationMetadataV1Beta5++; 1342 buildCounterOperationMetadataV1Beta5++;
1343 if (buildCounterOperationMetadataV1Beta5 < 3) { 1343 if (buildCounterOperationMetadataV1Beta5 < 3) {
1344 o.endTime = "foo"; 1344 o.endTime = "foo";
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 checkResourceRecord(api.ResourceRecord o) { 1446 checkResourceRecord(api.ResourceRecord o) {
1447 buildCounterResourceRecord++; 1447 buildCounterResourceRecord++;
1448 if (buildCounterResourceRecord < 3) { 1448 if (buildCounterResourceRecord < 3) {
1449 unittest.expect(o.name, unittest.equals('foo')); 1449 unittest.expect(o.name, unittest.equals('foo'));
1450 unittest.expect(o.rrdata, unittest.equals('foo')); 1450 unittest.expect(o.rrdata, unittest.equals('foo'));
1451 unittest.expect(o.type, unittest.equals('foo')); 1451 unittest.expect(o.type, unittest.equals('foo'));
1452 } 1452 }
1453 buildCounterResourceRecord--; 1453 buildCounterResourceRecord--;
1454 } 1454 }
1455 1455
1456 buildUnnamed3637() { 1456 buildUnnamed3593() {
1457 var o = new core.List<api.Volume>(); 1457 var o = new core.List<api.Volume>();
1458 o.add(buildVolume()); 1458 o.add(buildVolume());
1459 o.add(buildVolume()); 1459 o.add(buildVolume());
1460 return o; 1460 return o;
1461 } 1461 }
1462 1462
1463 checkUnnamed3637(core.List<api.Volume> o) { 1463 checkUnnamed3593(core.List<api.Volume> o) {
1464 unittest.expect(o, unittest.hasLength(2)); 1464 unittest.expect(o, unittest.hasLength(2));
1465 checkVolume(o[0]); 1465 checkVolume(o[0]);
1466 checkVolume(o[1]); 1466 checkVolume(o[1]);
1467 } 1467 }
1468 1468
1469 core.int buildCounterResources = 0; 1469 core.int buildCounterResources = 0;
1470 buildResources() { 1470 buildResources() {
1471 var o = new api.Resources(); 1471 var o = new api.Resources();
1472 buildCounterResources++; 1472 buildCounterResources++;
1473 if (buildCounterResources < 3) { 1473 if (buildCounterResources < 3) {
1474 o.cpu = 42.0; 1474 o.cpu = 42.0;
1475 o.diskGb = 42.0; 1475 o.diskGb = 42.0;
1476 o.memoryGb = 42.0; 1476 o.memoryGb = 42.0;
1477 o.volumes = buildUnnamed3637(); 1477 o.volumes = buildUnnamed3593();
1478 } 1478 }
1479 buildCounterResources--; 1479 buildCounterResources--;
1480 return o; 1480 return o;
1481 } 1481 }
1482 1482
1483 checkResources(api.Resources o) { 1483 checkResources(api.Resources o) {
1484 buildCounterResources++; 1484 buildCounterResources++;
1485 if (buildCounterResources < 3) { 1485 if (buildCounterResources < 3) {
1486 unittest.expect(o.cpu, unittest.equals(42.0)); 1486 unittest.expect(o.cpu, unittest.equals(42.0));
1487 unittest.expect(o.diskGb, unittest.equals(42.0)); 1487 unittest.expect(o.diskGb, unittest.equals(42.0));
1488 unittest.expect(o.memoryGb, unittest.equals(42.0)); 1488 unittest.expect(o.memoryGb, unittest.equals(42.0));
1489 checkUnnamed3637(o.volumes); 1489 checkUnnamed3593(o.volumes);
1490 } 1490 }
1491 buildCounterResources--; 1491 buildCounterResources--;
1492 } 1492 }
1493 1493
1494 core.int buildCounterScriptHandler = 0; 1494 core.int buildCounterScriptHandler = 0;
1495 buildScriptHandler() { 1495 buildScriptHandler() {
1496 var o = new api.ScriptHandler(); 1496 var o = new api.ScriptHandler();
1497 buildCounterScriptHandler++; 1497 buildCounterScriptHandler++;
1498 if (buildCounterScriptHandler < 3) { 1498 if (buildCounterScriptHandler < 3) {
1499 o.scriptPath = "foo"; 1499 o.scriptPath = "foo";
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 } 1545 }
1546 1546
1547 checkSslSettings(api.SslSettings o) { 1547 checkSslSettings(api.SslSettings o) {
1548 buildCounterSslSettings++; 1548 buildCounterSslSettings++;
1549 if (buildCounterSslSettings < 3) { 1549 if (buildCounterSslSettings < 3) {
1550 unittest.expect(o.certificateId, unittest.equals('foo')); 1550 unittest.expect(o.certificateId, unittest.equals('foo'));
1551 } 1551 }
1552 buildCounterSslSettings--; 1552 buildCounterSslSettings--;
1553 } 1553 }
1554 1554
1555 buildUnnamed3638() { 1555 buildUnnamed3594() {
1556 var o = new core.Map<core.String, core.String>(); 1556 var o = new core.Map<core.String, core.String>();
1557 o["x"] = "foo"; 1557 o["x"] = "foo";
1558 o["y"] = "foo"; 1558 o["y"] = "foo";
1559 return o; 1559 return o;
1560 } 1560 }
1561 1561
1562 checkUnnamed3638(core.Map<core.String, core.String> o) { 1562 checkUnnamed3594(core.Map<core.String, core.String> o) {
1563 unittest.expect(o, unittest.hasLength(2)); 1563 unittest.expect(o, unittest.hasLength(2));
1564 unittest.expect(o["x"], unittest.equals('foo')); 1564 unittest.expect(o["x"], unittest.equals('foo'));
1565 unittest.expect(o["y"], unittest.equals('foo')); 1565 unittest.expect(o["y"], unittest.equals('foo'));
1566 } 1566 }
1567 1567
1568 core.int buildCounterStaticFilesHandler = 0; 1568 core.int buildCounterStaticFilesHandler = 0;
1569 buildStaticFilesHandler() { 1569 buildStaticFilesHandler() {
1570 var o = new api.StaticFilesHandler(); 1570 var o = new api.StaticFilesHandler();
1571 buildCounterStaticFilesHandler++; 1571 buildCounterStaticFilesHandler++;
1572 if (buildCounterStaticFilesHandler < 3) { 1572 if (buildCounterStaticFilesHandler < 3) {
1573 o.applicationReadable = true; 1573 o.applicationReadable = true;
1574 o.expiration = "foo"; 1574 o.expiration = "foo";
1575 o.httpHeaders = buildUnnamed3638(); 1575 o.httpHeaders = buildUnnamed3594();
1576 o.mimeType = "foo"; 1576 o.mimeType = "foo";
1577 o.path = "foo"; 1577 o.path = "foo";
1578 o.requireMatchingFile = true; 1578 o.requireMatchingFile = true;
1579 o.uploadPathRegex = "foo"; 1579 o.uploadPathRegex = "foo";
1580 } 1580 }
1581 buildCounterStaticFilesHandler--; 1581 buildCounterStaticFilesHandler--;
1582 return o; 1582 return o;
1583 } 1583 }
1584 1584
1585 checkStaticFilesHandler(api.StaticFilesHandler o) { 1585 checkStaticFilesHandler(api.StaticFilesHandler o) {
1586 buildCounterStaticFilesHandler++; 1586 buildCounterStaticFilesHandler++;
1587 if (buildCounterStaticFilesHandler < 3) { 1587 if (buildCounterStaticFilesHandler < 3) {
1588 unittest.expect(o.applicationReadable, unittest.isTrue); 1588 unittest.expect(o.applicationReadable, unittest.isTrue);
1589 unittest.expect(o.expiration, unittest.equals('foo')); 1589 unittest.expect(o.expiration, unittest.equals('foo'));
1590 checkUnnamed3638(o.httpHeaders); 1590 checkUnnamed3594(o.httpHeaders);
1591 unittest.expect(o.mimeType, unittest.equals('foo')); 1591 unittest.expect(o.mimeType, unittest.equals('foo'));
1592 unittest.expect(o.path, unittest.equals('foo')); 1592 unittest.expect(o.path, unittest.equals('foo'));
1593 unittest.expect(o.requireMatchingFile, unittest.isTrue); 1593 unittest.expect(o.requireMatchingFile, unittest.isTrue);
1594 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); 1594 unittest.expect(o.uploadPathRegex, unittest.equals('foo'));
1595 } 1595 }
1596 buildCounterStaticFilesHandler--; 1596 buildCounterStaticFilesHandler--;
1597 } 1597 }
1598 1598
1599 buildUnnamed3639() { 1599 buildUnnamed3595() {
1600 var o = new core.Map<core.String, core.Object>(); 1600 var o = new core.Map<core.String, core.Object>();
1601 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1601 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1602 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1602 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1603 return o; 1603 return o;
1604 } 1604 }
1605 1605
1606 checkUnnamed3639(core.Map<core.String, core.Object> o) { 1606 checkUnnamed3595(core.Map<core.String, core.Object> o) {
1607 unittest.expect(o, unittest.hasLength(2)); 1607 unittest.expect(o, unittest.hasLength(2));
1608 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')); 1608 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'));
1609 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')); 1609 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'));
1610 } 1610 }
1611 1611
1612 buildUnnamed3640() { 1612 buildUnnamed3596() {
1613 var o = new core.List<core.Map<core.String, core.Object>>(); 1613 var o = new core.List<core.Map<core.String, core.Object>>();
1614 o.add(buildUnnamed3639()); 1614 o.add(buildUnnamed3595());
1615 o.add(buildUnnamed3639()); 1615 o.add(buildUnnamed3595());
1616 return o; 1616 return o;
1617 } 1617 }
1618 1618
1619 checkUnnamed3640(core.List<core.Map<core.String, core.Object>> o) { 1619 checkUnnamed3596(core.List<core.Map<core.String, core.Object>> o) {
1620 unittest.expect(o, unittest.hasLength(2)); 1620 unittest.expect(o, unittest.hasLength(2));
1621 checkUnnamed3639(o[0]); 1621 checkUnnamed3595(o[0]);
1622 checkUnnamed3639(o[1]); 1622 checkUnnamed3595(o[1]);
1623 } 1623 }
1624 1624
1625 core.int buildCounterStatus = 0; 1625 core.int buildCounterStatus = 0;
1626 buildStatus() { 1626 buildStatus() {
1627 var o = new api.Status(); 1627 var o = new api.Status();
1628 buildCounterStatus++; 1628 buildCounterStatus++;
1629 if (buildCounterStatus < 3) { 1629 if (buildCounterStatus < 3) {
1630 o.code = 42; 1630 o.code = 42;
1631 o.details = buildUnnamed3640(); 1631 o.details = buildUnnamed3596();
1632 o.message = "foo"; 1632 o.message = "foo";
1633 } 1633 }
1634 buildCounterStatus--; 1634 buildCounterStatus--;
1635 return o; 1635 return o;
1636 } 1636 }
1637 1637
1638 checkStatus(api.Status o) { 1638 checkStatus(api.Status o) {
1639 buildCounterStatus++; 1639 buildCounterStatus++;
1640 if (buildCounterStatus < 3) { 1640 if (buildCounterStatus < 3) {
1641 unittest.expect(o.code, unittest.equals(42)); 1641 unittest.expect(o.code, unittest.equals(42));
1642 checkUnnamed3640(o.details); 1642 checkUnnamed3596(o.details);
1643 unittest.expect(o.message, unittest.equals('foo')); 1643 unittest.expect(o.message, unittest.equals('foo'));
1644 } 1644 }
1645 buildCounterStatus--; 1645 buildCounterStatus--;
1646 } 1646 }
1647 1647
1648 buildUnnamed3641() { 1648 buildUnnamed3597() {
1649 var o = new core.Map<core.String, core.double>(); 1649 var o = new core.Map<core.String, core.double>();
1650 o["x"] = 42.0; 1650 o["x"] = 42.0;
1651 o["y"] = 42.0; 1651 o["y"] = 42.0;
1652 return o; 1652 return o;
1653 } 1653 }
1654 1654
1655 checkUnnamed3641(core.Map<core.String, core.double> o) { 1655 checkUnnamed3597(core.Map<core.String, core.double> o) {
1656 unittest.expect(o, unittest.hasLength(2)); 1656 unittest.expect(o, unittest.hasLength(2));
1657 unittest.expect(o["x"], unittest.equals(42.0)); 1657 unittest.expect(o["x"], unittest.equals(42.0));
1658 unittest.expect(o["y"], unittest.equals(42.0)); 1658 unittest.expect(o["y"], unittest.equals(42.0));
1659 } 1659 }
1660 1660
1661 core.int buildCounterTrafficSplit = 0; 1661 core.int buildCounterTrafficSplit = 0;
1662 buildTrafficSplit() { 1662 buildTrafficSplit() {
1663 var o = new api.TrafficSplit(); 1663 var o = new api.TrafficSplit();
1664 buildCounterTrafficSplit++; 1664 buildCounterTrafficSplit++;
1665 if (buildCounterTrafficSplit < 3) { 1665 if (buildCounterTrafficSplit < 3) {
1666 o.allocations = buildUnnamed3641(); 1666 o.allocations = buildUnnamed3597();
1667 o.shardBy = "foo"; 1667 o.shardBy = "foo";
1668 } 1668 }
1669 buildCounterTrafficSplit--; 1669 buildCounterTrafficSplit--;
1670 return o; 1670 return o;
1671 } 1671 }
1672 1672
1673 checkTrafficSplit(api.TrafficSplit o) { 1673 checkTrafficSplit(api.TrafficSplit o) {
1674 buildCounterTrafficSplit++; 1674 buildCounterTrafficSplit++;
1675 if (buildCounterTrafficSplit < 3) { 1675 if (buildCounterTrafficSplit < 3) {
1676 checkUnnamed3641(o.allocations); 1676 checkUnnamed3597(o.allocations);
1677 unittest.expect(o.shardBy, unittest.equals('foo')); 1677 unittest.expect(o.shardBy, unittest.equals('foo'));
1678 } 1678 }
1679 buildCounterTrafficSplit--; 1679 buildCounterTrafficSplit--;
1680 } 1680 }
1681 1681
1682 core.int buildCounterUrlDispatchRule = 0; 1682 core.int buildCounterUrlDispatchRule = 0;
1683 buildUrlDispatchRule() { 1683 buildUrlDispatchRule() {
1684 var o = new api.UrlDispatchRule(); 1684 var o = new api.UrlDispatchRule();
1685 buildCounterUrlDispatchRule++; 1685 buildCounterUrlDispatchRule++;
1686 if (buildCounterUrlDispatchRule < 3) { 1686 if (buildCounterUrlDispatchRule < 3) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 unittest.expect(o.login, unittest.equals('foo')); 1728 unittest.expect(o.login, unittest.equals('foo'));
1729 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); 1729 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo'));
1730 checkScriptHandler(o.script); 1730 checkScriptHandler(o.script);
1731 unittest.expect(o.securityLevel, unittest.equals('foo')); 1731 unittest.expect(o.securityLevel, unittest.equals('foo'));
1732 checkStaticFilesHandler(o.staticFiles); 1732 checkStaticFilesHandler(o.staticFiles);
1733 unittest.expect(o.urlRegex, unittest.equals('foo')); 1733 unittest.expect(o.urlRegex, unittest.equals('foo'));
1734 } 1734 }
1735 buildCounterUrlMap--; 1735 buildCounterUrlMap--;
1736 } 1736 }
1737 1737
1738 buildUnnamed3642() { 1738 buildUnnamed3598() {
1739 var o = new core.Map<core.String, core.String>(); 1739 var o = new core.Map<core.String, core.String>();
1740 o["x"] = "foo"; 1740 o["x"] = "foo";
1741 o["y"] = "foo"; 1741 o["y"] = "foo";
1742 return o; 1742 return o;
1743 } 1743 }
1744 1744
1745 checkUnnamed3642(core.Map<core.String, core.String> o) { 1745 checkUnnamed3598(core.Map<core.String, core.String> o) {
1746 unittest.expect(o, unittest.hasLength(2)); 1746 unittest.expect(o, unittest.hasLength(2));
1747 unittest.expect(o["x"], unittest.equals('foo')); 1747 unittest.expect(o["x"], unittest.equals('foo'));
1748 unittest.expect(o["y"], unittest.equals('foo')); 1748 unittest.expect(o["y"], unittest.equals('foo'));
1749 } 1749 }
1750 1750
1751 buildUnnamed3643() { 1751 buildUnnamed3599() {
1752 var o = new core.Map<core.String, core.String>(); 1752 var o = new core.Map<core.String, core.String>();
1753 o["x"] = "foo"; 1753 o["x"] = "foo";
1754 o["y"] = "foo"; 1754 o["y"] = "foo";
1755 return o; 1755 return o;
1756 } 1756 }
1757 1757
1758 checkUnnamed3643(core.Map<core.String, core.String> o) { 1758 checkUnnamed3599(core.Map<core.String, core.String> o) {
1759 unittest.expect(o, unittest.hasLength(2)); 1759 unittest.expect(o, unittest.hasLength(2));
1760 unittest.expect(o["x"], unittest.equals('foo')); 1760 unittest.expect(o["x"], unittest.equals('foo'));
1761 unittest.expect(o["y"], unittest.equals('foo')); 1761 unittest.expect(o["y"], unittest.equals('foo'));
1762 } 1762 }
1763 1763
1764 buildUnnamed3644() { 1764 buildUnnamed3600() {
1765 var o = new core.List<api.ErrorHandler>(); 1765 var o = new core.List<api.ErrorHandler>();
1766 o.add(buildErrorHandler()); 1766 o.add(buildErrorHandler());
1767 o.add(buildErrorHandler()); 1767 o.add(buildErrorHandler());
1768 return o; 1768 return o;
1769 } 1769 }
1770 1770
1771 checkUnnamed3644(core.List<api.ErrorHandler> o) { 1771 checkUnnamed3600(core.List<api.ErrorHandler> o) {
1772 unittest.expect(o, unittest.hasLength(2)); 1772 unittest.expect(o, unittest.hasLength(2));
1773 checkErrorHandler(o[0]); 1773 checkErrorHandler(o[0]);
1774 checkErrorHandler(o[1]); 1774 checkErrorHandler(o[1]);
1775 } 1775 }
1776 1776
1777 buildUnnamed3645() { 1777 buildUnnamed3601() {
1778 var o = new core.List<api.UrlMap>(); 1778 var o = new core.List<api.UrlMap>();
1779 o.add(buildUrlMap()); 1779 o.add(buildUrlMap());
1780 o.add(buildUrlMap()); 1780 o.add(buildUrlMap());
1781 return o; 1781 return o;
1782 } 1782 }
1783 1783
1784 checkUnnamed3645(core.List<api.UrlMap> o) { 1784 checkUnnamed3601(core.List<api.UrlMap> o) {
1785 unittest.expect(o, unittest.hasLength(2)); 1785 unittest.expect(o, unittest.hasLength(2));
1786 checkUrlMap(o[0]); 1786 checkUrlMap(o[0]);
1787 checkUrlMap(o[1]); 1787 checkUrlMap(o[1]);
1788 } 1788 }
1789 1789
1790 buildUnnamed3646() { 1790 buildUnnamed3602() {
1791 var o = new core.List<core.String>(); 1791 var o = new core.List<core.String>();
1792 o.add("foo"); 1792 o.add("foo");
1793 o.add("foo"); 1793 o.add("foo");
1794 return o; 1794 return o;
1795 } 1795 }
1796 1796
1797 checkUnnamed3646(core.List<core.String> o) { 1797 checkUnnamed3602(core.List<core.String> o) {
1798 unittest.expect(o, unittest.hasLength(2)); 1798 unittest.expect(o, unittest.hasLength(2));
1799 unittest.expect(o[0], unittest.equals('foo')); 1799 unittest.expect(o[0], unittest.equals('foo'));
1800 unittest.expect(o[1], unittest.equals('foo')); 1800 unittest.expect(o[1], unittest.equals('foo'));
1801 } 1801 }
1802 1802
1803 buildUnnamed3647() { 1803 buildUnnamed3603() {
1804 var o = new core.List<api.Library>(); 1804 var o = new core.List<api.Library>();
1805 o.add(buildLibrary()); 1805 o.add(buildLibrary());
1806 o.add(buildLibrary()); 1806 o.add(buildLibrary());
1807 return o; 1807 return o;
1808 } 1808 }
1809 1809
1810 checkUnnamed3647(core.List<api.Library> o) { 1810 checkUnnamed3603(core.List<api.Library> o) {
1811 unittest.expect(o, unittest.hasLength(2)); 1811 unittest.expect(o, unittest.hasLength(2));
1812 checkLibrary(o[0]); 1812 checkLibrary(o[0]);
1813 checkLibrary(o[1]); 1813 checkLibrary(o[1]);
1814 } 1814 }
1815 1815
1816 core.int buildCounterVersion = 0; 1816 core.int buildCounterVersion = 0;
1817 buildVersion() { 1817 buildVersion() {
1818 var o = new api.Version(); 1818 var o = new api.Version();
1819 buildCounterVersion++; 1819 buildCounterVersion++;
1820 if (buildCounterVersion < 3) { 1820 if (buildCounterVersion < 3) {
1821 o.apiConfig = buildApiConfigHandler(); 1821 o.apiConfig = buildApiConfigHandler();
1822 o.automaticScaling = buildAutomaticScaling(); 1822 o.automaticScaling = buildAutomaticScaling();
1823 o.basicScaling = buildBasicScaling(); 1823 o.basicScaling = buildBasicScaling();
1824 o.betaSettings = buildUnnamed3642(); 1824 o.betaSettings = buildUnnamed3598();
1825 o.createTime = "foo"; 1825 o.createTime = "foo";
1826 o.createdBy = "foo"; 1826 o.createdBy = "foo";
1827 o.defaultExpiration = "foo"; 1827 o.defaultExpiration = "foo";
1828 o.deployment = buildDeployment(); 1828 o.deployment = buildDeployment();
1829 o.diskUsageBytes = "foo"; 1829 o.diskUsageBytes = "foo";
1830 o.endpointsApiService = buildEndpointsApiService(); 1830 o.endpointsApiService = buildEndpointsApiService();
1831 o.env = "foo"; 1831 o.env = "foo";
1832 o.envVariables = buildUnnamed3643(); 1832 o.envVariables = buildUnnamed3599();
1833 o.errorHandlers = buildUnnamed3644(); 1833 o.errorHandlers = buildUnnamed3600();
1834 o.handlers = buildUnnamed3645(); 1834 o.handlers = buildUnnamed3601();
1835 o.healthCheck = buildHealthCheck(); 1835 o.healthCheck = buildHealthCheck();
1836 o.id = "foo"; 1836 o.id = "foo";
1837 o.inboundServices = buildUnnamed3646(); 1837 o.inboundServices = buildUnnamed3602();
1838 o.instanceClass = "foo"; 1838 o.instanceClass = "foo";
1839 o.libraries = buildUnnamed3647(); 1839 o.libraries = buildUnnamed3603();
1840 o.livenessCheck = buildLivenessCheck(); 1840 o.livenessCheck = buildLivenessCheck();
1841 o.manualScaling = buildManualScaling(); 1841 o.manualScaling = buildManualScaling();
1842 o.name = "foo"; 1842 o.name = "foo";
1843 o.network = buildNetwork(); 1843 o.network = buildNetwork();
1844 o.nobuildFilesRegex = "foo"; 1844 o.nobuildFilesRegex = "foo";
1845 o.readinessCheck = buildReadinessCheck(); 1845 o.readinessCheck = buildReadinessCheck();
1846 o.resources = buildResources(); 1846 o.resources = buildResources();
1847 o.runtime = "foo"; 1847 o.runtime = "foo";
1848 o.servingStatus = "foo"; 1848 o.servingStatus = "foo";
1849 o.threadsafe = true; 1849 o.threadsafe = true;
1850 o.versionUrl = "foo"; 1850 o.versionUrl = "foo";
1851 o.vm = true; 1851 o.vm = true;
1852 } 1852 }
1853 buildCounterVersion--; 1853 buildCounterVersion--;
1854 return o; 1854 return o;
1855 } 1855 }
1856 1856
1857 checkVersion(api.Version o) { 1857 checkVersion(api.Version o) {
1858 buildCounterVersion++; 1858 buildCounterVersion++;
1859 if (buildCounterVersion < 3) { 1859 if (buildCounterVersion < 3) {
1860 checkApiConfigHandler(o.apiConfig); 1860 checkApiConfigHandler(o.apiConfig);
1861 checkAutomaticScaling(o.automaticScaling); 1861 checkAutomaticScaling(o.automaticScaling);
1862 checkBasicScaling(o.basicScaling); 1862 checkBasicScaling(o.basicScaling);
1863 checkUnnamed3642(o.betaSettings); 1863 checkUnnamed3598(o.betaSettings);
1864 unittest.expect(o.createTime, unittest.equals('foo')); 1864 unittest.expect(o.createTime, unittest.equals('foo'));
1865 unittest.expect(o.createdBy, unittest.equals('foo')); 1865 unittest.expect(o.createdBy, unittest.equals('foo'));
1866 unittest.expect(o.defaultExpiration, unittest.equals('foo')); 1866 unittest.expect(o.defaultExpiration, unittest.equals('foo'));
1867 checkDeployment(o.deployment); 1867 checkDeployment(o.deployment);
1868 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); 1868 unittest.expect(o.diskUsageBytes, unittest.equals('foo'));
1869 checkEndpointsApiService(o.endpointsApiService); 1869 checkEndpointsApiService(o.endpointsApiService);
1870 unittest.expect(o.env, unittest.equals('foo')); 1870 unittest.expect(o.env, unittest.equals('foo'));
1871 checkUnnamed3643(o.envVariables); 1871 checkUnnamed3599(o.envVariables);
1872 checkUnnamed3644(o.errorHandlers); 1872 checkUnnamed3600(o.errorHandlers);
1873 checkUnnamed3645(o.handlers); 1873 checkUnnamed3601(o.handlers);
1874 checkHealthCheck(o.healthCheck); 1874 checkHealthCheck(o.healthCheck);
1875 unittest.expect(o.id, unittest.equals('foo')); 1875 unittest.expect(o.id, unittest.equals('foo'));
1876 checkUnnamed3646(o.inboundServices); 1876 checkUnnamed3602(o.inboundServices);
1877 unittest.expect(o.instanceClass, unittest.equals('foo')); 1877 unittest.expect(o.instanceClass, unittest.equals('foo'));
1878 checkUnnamed3647(o.libraries); 1878 checkUnnamed3603(o.libraries);
1879 checkLivenessCheck(o.livenessCheck); 1879 checkLivenessCheck(o.livenessCheck);
1880 checkManualScaling(o.manualScaling); 1880 checkManualScaling(o.manualScaling);
1881 unittest.expect(o.name, unittest.equals('foo')); 1881 unittest.expect(o.name, unittest.equals('foo'));
1882 checkNetwork(o.network); 1882 checkNetwork(o.network);
1883 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); 1883 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo'));
1884 checkReadinessCheck(o.readinessCheck); 1884 checkReadinessCheck(o.readinessCheck);
1885 checkResources(o.resources); 1885 checkResources(o.resources);
1886 unittest.expect(o.runtime, unittest.equals('foo')); 1886 unittest.expect(o.runtime, unittest.equals('foo'));
1887 unittest.expect(o.servingStatus, unittest.equals('foo')); 1887 unittest.expect(o.servingStatus, unittest.equals('foo'));
1888 unittest.expect(o.threadsafe, unittest.isTrue); 1888 unittest.expect(o.threadsafe, unittest.isTrue);
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
2832 res.get(arg_appsId, arg_authorizedCertificatesId, view: arg_view).then(uni ttest.expectAsync(((api.AuthorizedCertificate response) { 2832 res.get(arg_appsId, arg_authorizedCertificatesId, view: arg_view).then(uni ttest.expectAsync(((api.AuthorizedCertificate response) {
2833 checkAuthorizedCertificate(response); 2833 checkAuthorizedCertificate(response);
2834 }))); 2834 })));
2835 }); 2835 });
2836 2836
2837 unittest.test("method--list", () { 2837 unittest.test("method--list", () {
2838 2838
2839 var mock = new HttpServerMock(); 2839 var mock = new HttpServerMock();
2840 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates; 2840 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates;
2841 var arg_appsId = "foo"; 2841 var arg_appsId = "foo";
2842 var arg_pageToken = "foo";
2842 var arg_pageSize = 42; 2843 var arg_pageSize = 42;
2843 var arg_pageToken = "foo";
2844 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2844 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2845 var path = (req.url).path; 2845 var path = (req.url).path;
2846 var pathOffset = 0; 2846 var pathOffset = 0;
2847 var index; 2847 var index;
2848 var subPart; 2848 var subPart;
2849 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2849 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2850 pathOffset += 1; 2850 pathOffset += 1;
2851 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 2851 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
2852 pathOffset += 12; 2852 pathOffset += 12;
2853 index = path.indexOf("/authorizedCertificates", pathOffset); 2853 index = path.indexOf("/authorizedCertificates", pathOffset);
(...skipping 13 matching lines...) Expand all
2867 if (n == "false") return false; 2867 if (n == "false") return false;
2868 if (n == null) return null; 2868 if (n == null) return null;
2869 throw new core.ArgumentError("Invalid boolean: $n"); 2869 throw new core.ArgumentError("Invalid boolean: $n");
2870 } 2870 }
2871 if (query.length > 0) { 2871 if (query.length > 0) {
2872 for (var part in query.split("&")) { 2872 for (var part in query.split("&")) {
2873 var keyvalue = part.split("="); 2873 var keyvalue = part.split("=");
2874 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2874 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2875 } 2875 }
2876 } 2876 }
2877 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2877 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 2878 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2878 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2879 2879
2880 2880
2881 var h = { 2881 var h = {
2882 "content-type" : "application/json; charset=utf-8", 2882 "content-type" : "application/json; charset=utf-8",
2883 }; 2883 };
2884 var resp = convert.JSON.encode(buildListAuthorizedCertificatesResponse() ); 2884 var resp = convert.JSON.encode(buildListAuthorizedCertificatesResponse() );
2885 return new async.Future.value(stringResponse(200, h, resp)); 2885 return new async.Future.value(stringResponse(200, h, resp));
2886 }), true); 2886 }), true);
2887 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.ListAuthorizedCertificatesResponse response) { 2887 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListAuthorizedCertificatesResponse response) {
2888 checkListAuthorizedCertificatesResponse(response); 2888 checkListAuthorizedCertificatesResponse(response);
2889 }))); 2889 })));
2890 }); 2890 });
2891 2891
2892 unittest.test("method--patch", () { 2892 unittest.test("method--patch", () {
2893 2893
2894 var mock = new HttpServerMock(); 2894 var mock = new HttpServerMock();
2895 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates; 2895 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates;
2896 var arg_request = buildAuthorizedCertificate(); 2896 var arg_request = buildAuthorizedCertificate();
2897 var arg_appsId = "foo"; 2897 var arg_appsId = "foo";
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
2952 2952
2953 }); 2953 });
2954 2954
2955 2955
2956 unittest.group("resource-AppsAuthorizedDomainsResourceApi", () { 2956 unittest.group("resource-AppsAuthorizedDomainsResourceApi", () {
2957 unittest.test("method--list", () { 2957 unittest.test("method--list", () {
2958 2958
2959 var mock = new HttpServerMock(); 2959 var mock = new HttpServerMock();
2960 api.AppsAuthorizedDomainsResourceApi res = new api.AppengineApi(mock).apps .authorizedDomains; 2960 api.AppsAuthorizedDomainsResourceApi res = new api.AppengineApi(mock).apps .authorizedDomains;
2961 var arg_appsId = "foo"; 2961 var arg_appsId = "foo";
2962 var arg_pageToken = "foo";
2962 var arg_pageSize = 42; 2963 var arg_pageSize = 42;
2963 var arg_pageToken = "foo";
2964 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2964 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2965 var path = (req.url).path; 2965 var path = (req.url).path;
2966 var pathOffset = 0; 2966 var pathOffset = 0;
2967 var index; 2967 var index;
2968 var subPart; 2968 var subPart;
2969 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2969 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2970 pathOffset += 1; 2970 pathOffset += 1;
2971 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 2971 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
2972 pathOffset += 12; 2972 pathOffset += 12;
2973 index = path.indexOf("/authorizedDomains", pathOffset); 2973 index = path.indexOf("/authorizedDomains", pathOffset);
(...skipping 13 matching lines...) Expand all
2987 if (n == "false") return false; 2987 if (n == "false") return false;
2988 if (n == null) return null; 2988 if (n == null) return null;
2989 throw new core.ArgumentError("Invalid boolean: $n"); 2989 throw new core.ArgumentError("Invalid boolean: $n");
2990 } 2990 }
2991 if (query.length > 0) { 2991 if (query.length > 0) {
2992 for (var part in query.split("&")) { 2992 for (var part in query.split("&")) {
2993 var keyvalue = part.split("="); 2993 var keyvalue = part.split("=");
2994 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2994 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2995 } 2995 }
2996 } 2996 }
2997 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2997 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 2998 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2998 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2999 2999
3000 3000
3001 var h = { 3001 var h = {
3002 "content-type" : "application/json; charset=utf-8", 3002 "content-type" : "application/json; charset=utf-8",
3003 }; 3003 };
3004 var resp = convert.JSON.encode(buildListAuthorizedDomainsResponse()); 3004 var resp = convert.JSON.encode(buildListAuthorizedDomainsResponse());
3005 return new async.Future.value(stringResponse(200, h, resp)); 3005 return new async.Future.value(stringResponse(200, h, resp));
3006 }), true); 3006 }), true);
3007 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.ListAuthorizedDomainsResponse response) { 3007 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListAuthorizedDomainsResponse response) {
3008 checkListAuthorizedDomainsResponse(response); 3008 checkListAuthorizedDomainsResponse(response);
3009 }))); 3009 })));
3010 }); 3010 });
3011 3011
3012 }); 3012 });
3013 3013
3014 3014
3015 unittest.group("resource-AppsDomainMappingsResourceApi", () { 3015 unittest.group("resource-AppsDomainMappingsResourceApi", () {
3016 unittest.test("method--create", () { 3016 unittest.test("method--create", () {
3017 3017
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
3176 res.get(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync(((api. DomainMapping response) { 3176 res.get(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync(((api. DomainMapping response) {
3177 checkDomainMapping(response); 3177 checkDomainMapping(response);
3178 }))); 3178 })));
3179 }); 3179 });
3180 3180
3181 unittest.test("method--list", () { 3181 unittest.test("method--list", () {
3182 3182
3183 var mock = new HttpServerMock(); 3183 var mock = new HttpServerMock();
3184 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings; 3184 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings;
3185 var arg_appsId = "foo"; 3185 var arg_appsId = "foo";
3186 var arg_pageToken = "foo";
3186 var arg_pageSize = 42; 3187 var arg_pageSize = 42;
3187 var arg_pageToken = "foo";
3188 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3188 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3189 var path = (req.url).path; 3189 var path = (req.url).path;
3190 var pathOffset = 0; 3190 var pathOffset = 0;
3191 var index; 3191 var index;
3192 var subPart; 3192 var subPart;
3193 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3193 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3194 pathOffset += 1; 3194 pathOffset += 1;
3195 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3195 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3196 pathOffset += 12; 3196 pathOffset += 12;
3197 index = path.indexOf("/domainMappings", pathOffset); 3197 index = path.indexOf("/domainMappings", pathOffset);
(...skipping 13 matching lines...) Expand all
3211 if (n == "false") return false; 3211 if (n == "false") return false;
3212 if (n == null) return null; 3212 if (n == null) return null;
3213 throw new core.ArgumentError("Invalid boolean: $n"); 3213 throw new core.ArgumentError("Invalid boolean: $n");
3214 } 3214 }
3215 if (query.length > 0) { 3215 if (query.length > 0) {
3216 for (var part in query.split("&")) { 3216 for (var part in query.split("&")) {
3217 var keyvalue = part.split("="); 3217 var keyvalue = part.split("=");
3218 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3218 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3219 } 3219 }
3220 } 3220 }
3221 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3221 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3222 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3222 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3223 3223
3224 3224
3225 var h = { 3225 var h = {
3226 "content-type" : "application/json; charset=utf-8", 3226 "content-type" : "application/json; charset=utf-8",
3227 }; 3227 };
3228 var resp = convert.JSON.encode(buildListDomainMappingsResponse()); 3228 var resp = convert.JSON.encode(buildListDomainMappingsResponse());
3229 return new async.Future.value(stringResponse(200, h, resp)); 3229 return new async.Future.value(stringResponse(200, h, resp));
3230 }), true); 3230 }), true);
3231 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.ListDomainMappingsResponse response) { 3231 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListDomainMappingsResponse response) {
3232 checkListDomainMappingsResponse(response); 3232 checkListDomainMappingsResponse(response);
3233 }))); 3233 })));
3234 }); 3234 });
3235 3235
3236 unittest.test("method--patch", () { 3236 unittest.test("method--patch", () {
3237 3237
3238 var mock = new HttpServerMock(); 3238 var mock = new HttpServerMock();
3239 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings; 3239 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings;
3240 var arg_request = buildDomainMapping(); 3240 var arg_request = buildDomainMapping();
3241 var arg_appsId = "foo"; 3241 var arg_appsId = "foo";
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3351 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Locat ion response) { 3351 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Locat ion response) {
3352 checkLocation(response); 3352 checkLocation(response);
3353 }))); 3353 })));
3354 }); 3354 });
3355 3355
3356 unittest.test("method--list", () { 3356 unittest.test("method--list", () {
3357 3357
3358 var mock = new HttpServerMock(); 3358 var mock = new HttpServerMock();
3359 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns; 3359 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns;
3360 var arg_appsId = "foo"; 3360 var arg_appsId = "foo";
3361 var arg_pageSize = 42;
3361 var arg_filter = "foo"; 3362 var arg_filter = "foo";
3362 var arg_pageSize = 42;
3363 var arg_pageToken = "foo"; 3363 var arg_pageToken = "foo";
3364 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3364 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3365 var path = (req.url).path; 3365 var path = (req.url).path;
3366 var pathOffset = 0; 3366 var pathOffset = 0;
3367 var index; 3367 var index;
3368 var subPart; 3368 var subPart;
3369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3370 pathOffset += 1; 3370 pathOffset += 1;
3371 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3371 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3372 pathOffset += 12; 3372 pathOffset += 12;
(...skipping 14 matching lines...) Expand all
3387 if (n == "false") return false; 3387 if (n == "false") return false;
3388 if (n == null) return null; 3388 if (n == null) return null;
3389 throw new core.ArgumentError("Invalid boolean: $n"); 3389 throw new core.ArgumentError("Invalid boolean: $n");
3390 } 3390 }
3391 if (query.length > 0) { 3391 if (query.length > 0) {
3392 for (var part in query.split("&")) { 3392 for (var part in query.split("&")) {
3393 var keyvalue = part.split("="); 3393 var keyvalue = part.split("=");
3394 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3394 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3395 } 3395 }
3396 } 3396 }
3397 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3397 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 3398 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
3398 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3399 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3399 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3400 3400
3401 3401
3402 var h = { 3402 var h = {
3403 "content-type" : "application/json; charset=utf-8", 3403 "content-type" : "application/json; charset=utf-8",
3404 }; 3404 };
3405 var resp = convert.JSON.encode(buildListLocationsResponse()); 3405 var resp = convert.JSON.encode(buildListLocationsResponse());
3406 return new async.Future.value(stringResponse(200, h, resp)); 3406 return new async.Future.value(stringResponse(200, h, resp));
3407 }), true); 3407 }), true);
3408 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken : arg_pageToken).then(unittest.expectAsync(((api.ListLocationsResponse response) { 3408 res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken : arg_pageToken).then(unittest.expectAsync(((api.ListLocationsResponse response) {
3409 checkListLocationsResponse(response); 3409 checkListLocationsResponse(response);
3410 }))); 3410 })));
3411 }); 3411 });
3412 3412
3413 }); 3413 });
3414 3414
3415 3415
3416 unittest.group("resource-AppsOperationsResourceApi", () { 3416 unittest.group("resource-AppsOperationsResourceApi", () {
3417 unittest.test("method--get", () { 3417 unittest.test("method--get", () {
3418 3418
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
3467 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Oper ation response) { 3467 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Oper ation response) {
3468 checkOperation(response); 3468 checkOperation(response);
3469 }))); 3469 })));
3470 }); 3470 });
3471 3471
3472 unittest.test("method--list", () { 3472 unittest.test("method--list", () {
3473 3473
3474 var mock = new HttpServerMock(); 3474 var mock = new HttpServerMock();
3475 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions; 3475 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions;
3476 var arg_appsId = "foo"; 3476 var arg_appsId = "foo";
3477 var arg_pageSize = 42;
3477 var arg_filter = "foo"; 3478 var arg_filter = "foo";
3478 var arg_pageSize = 42;
3479 var arg_pageToken = "foo"; 3479 var arg_pageToken = "foo";
3480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3480 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3481 var path = (req.url).path; 3481 var path = (req.url).path;
3482 var pathOffset = 0; 3482 var pathOffset = 0;
3483 var index; 3483 var index;
3484 var subPart; 3484 var subPart;
3485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3486 pathOffset += 1; 3486 pathOffset += 1;
3487 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3487 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3488 pathOffset += 12; 3488 pathOffset += 12;
(...skipping 14 matching lines...) Expand all
3503 if (n == "false") return false; 3503 if (n == "false") return false;
3504 if (n == null) return null; 3504 if (n == null) return null;
3505 throw new core.ArgumentError("Invalid boolean: $n"); 3505 throw new core.ArgumentError("Invalid boolean: $n");
3506 } 3506 }
3507 if (query.length > 0) { 3507 if (query.length > 0) {
3508 for (var part in query.split("&")) { 3508 for (var part in query.split("&")) {
3509 var keyvalue = part.split("="); 3509 var keyvalue = part.split("=");
3510 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3510 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3511 } 3511 }
3512 } 3512 }
3513 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3513 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 3514 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
3514 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3515 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3515 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3516 3516
3517 3517
3518 var h = { 3518 var h = {
3519 "content-type" : "application/json; charset=utf-8", 3519 "content-type" : "application/json; charset=utf-8",
3520 }; 3520 };
3521 var resp = convert.JSON.encode(buildListOperationsResponse()); 3521 var resp = convert.JSON.encode(buildListOperationsResponse());
3522 return new async.Future.value(stringResponse(200, h, resp)); 3522 return new async.Future.value(stringResponse(200, h, resp));
3523 }), true); 3523 }), true);
3524 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken : arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response ) { 3524 res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken : arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response ) {
3525 checkListOperationsResponse(response); 3525 checkListOperationsResponse(response);
3526 }))); 3526 })));
3527 }); 3527 });
3528 3528
3529 }); 3529 });
3530 3530
3531 3531
3532 unittest.group("resource-AppsServicesResourceApi", () { 3532 unittest.group("resource-AppsServicesResourceApi", () {
3533 unittest.test("method--delete", () { 3533 unittest.test("method--delete", () {
3534 3534
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
3638 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Servic e response) { 3638 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Servic e response) {
3639 checkService(response); 3639 checkService(response);
3640 }))); 3640 })));
3641 }); 3641 });
3642 3642
3643 unittest.test("method--list", () { 3643 unittest.test("method--list", () {
3644 3644
3645 var mock = new HttpServerMock(); 3645 var mock = new HttpServerMock();
3646 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ; 3646 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ;
3647 var arg_appsId = "foo"; 3647 var arg_appsId = "foo";
3648 var arg_pageToken = "foo";
3648 var arg_pageSize = 42; 3649 var arg_pageSize = 42;
3649 var arg_pageToken = "foo";
3650 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3650 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3651 var path = (req.url).path; 3651 var path = (req.url).path;
3652 var pathOffset = 0; 3652 var pathOffset = 0;
3653 var index; 3653 var index;
3654 var subPart; 3654 var subPart;
3655 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3655 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3656 pathOffset += 1; 3656 pathOffset += 1;
3657 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3657 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3658 pathOffset += 12; 3658 pathOffset += 12;
3659 index = path.indexOf("/services", pathOffset); 3659 index = path.indexOf("/services", pathOffset);
(...skipping 13 matching lines...) Expand all
3673 if (n == "false") return false; 3673 if (n == "false") return false;
3674 if (n == null) return null; 3674 if (n == null) return null;
3675 throw new core.ArgumentError("Invalid boolean: $n"); 3675 throw new core.ArgumentError("Invalid boolean: $n");
3676 } 3676 }
3677 if (query.length > 0) { 3677 if (query.length > 0) {
3678 for (var part in query.split("&")) { 3678 for (var part in query.split("&")) {
3679 var keyvalue = part.split("="); 3679 var keyvalue = part.split("=");
3680 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3680 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3681 } 3681 }
3682 } 3682 }
3683 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3683 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3684 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3684 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3685 3685
3686 3686
3687 var h = { 3687 var h = {
3688 "content-type" : "application/json; charset=utf-8", 3688 "content-type" : "application/json; charset=utf-8",
3689 }; 3689 };
3690 var resp = convert.JSON.encode(buildListServicesResponse()); 3690 var resp = convert.JSON.encode(buildListServicesResponse());
3691 return new async.Future.value(stringResponse(200, h, resp)); 3691 return new async.Future.value(stringResponse(200, h, resp));
3692 }), true); 3692 }), true);
3693 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.ListServicesResponse response) { 3693 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListServicesResponse response) {
3694 checkListServicesResponse(response); 3694 checkListServicesResponse(response);
3695 }))); 3695 })));
3696 }); 3696 });
3697 3697
3698 unittest.test("method--patch", () { 3698 unittest.test("method--patch", () {
3699 3699
3700 var mock = new HttpServerMock(); 3700 var mock = new HttpServerMock();
3701 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ; 3701 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ;
3702 var arg_request = buildService(); 3702 var arg_request = buildService();
3703 var arg_appsId = "foo"; 3703 var arg_appsId = "foo";
3704 var arg_servicesId = "foo"; 3704 var arg_servicesId = "foo";
3705 var arg_migrateTraffic = true;
3705 var arg_updateMask = "foo"; 3706 var arg_updateMask = "foo";
3706 var arg_migrateTraffic = true;
3707 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3707 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3708 var obj = new api.Service.fromJson(json); 3708 var obj = new api.Service.fromJson(json);
3709 checkService(obj); 3709 checkService(obj);
3710 3710
3711 var path = (req.url).path; 3711 var path = (req.url).path;
3712 var pathOffset = 0; 3712 var pathOffset = 0;
3713 var index; 3713 var index;
3714 var subPart; 3714 var subPart;
3715 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3715 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3716 pathOffset += 1; 3716 pathOffset += 1;
(...skipping 19 matching lines...) Expand all
3736 if (n == "false") return false; 3736 if (n == "false") return false;
3737 if (n == null) return null; 3737 if (n == null) return null;
3738 throw new core.ArgumentError("Invalid boolean: $n"); 3738 throw new core.ArgumentError("Invalid boolean: $n");
3739 } 3739 }
3740 if (query.length > 0) { 3740 if (query.length > 0) {
3741 for (var part in query.split("&")) { 3741 for (var part in query.split("&")) {
3742 var keyvalue = part.split("="); 3742 var keyvalue = part.split("=");
3743 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3743 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3744 } 3744 }
3745 } 3745 }
3746 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_ migrateTraffic"));
3746 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask)); 3747 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask));
3747 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_ migrateTraffic"));
3748 3748
3749 3749
3750 var h = { 3750 var h = {
3751 "content-type" : "application/json; charset=utf-8", 3751 "content-type" : "application/json; charset=utf-8",
3752 }; 3752 };
3753 var resp = convert.JSON.encode(buildOperation()); 3753 var resp = convert.JSON.encode(buildOperation());
3754 return new async.Future.value(stringResponse(200, h, resp)); 3754 return new async.Future.value(stringResponse(200, h, resp));
3755 }), true); 3755 }), true);
3756 res.patch(arg_request, arg_appsId, arg_servicesId, updateMask: arg_updateM ask, migrateTraffic: arg_migrateTraffic).then(unittest.expectAsync(((api.Operati on response) { 3756 res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_mig rateTraffic, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operati on response) {
3757 checkOperation(response); 3757 checkOperation(response);
3758 }))); 3758 })));
3759 }); 3759 });
3760 3760
3761 }); 3761 });
3762 3762
3763 3763
3764 unittest.group("resource-AppsServicesVersionsResourceApi", () { 3764 unittest.group("resource-AppsServicesVersionsResourceApi", () {
3765 unittest.test("method--create", () { 3765 unittest.test("method--create", () {
3766 3766
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
3952 checkVersion(response); 3952 checkVersion(response);
3953 }))); 3953 })));
3954 }); 3954 });
3955 3955
3956 unittest.test("method--list", () { 3956 unittest.test("method--list", () {
3957 3957
3958 var mock = new HttpServerMock(); 3958 var mock = new HttpServerMock();
3959 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions; 3959 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions;
3960 var arg_appsId = "foo"; 3960 var arg_appsId = "foo";
3961 var arg_servicesId = "foo"; 3961 var arg_servicesId = "foo";
3962 var arg_pageSize = 42;
3962 var arg_view = "foo"; 3963 var arg_view = "foo";
3963 var arg_pageSize = 42;
3964 var arg_pageToken = "foo"; 3964 var arg_pageToken = "foo";
3965 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3965 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3966 var path = (req.url).path; 3966 var path = (req.url).path;
3967 var pathOffset = 0; 3967 var pathOffset = 0;
3968 var index; 3968 var index;
3969 var subPart; 3969 var subPart;
3970 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3970 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3971 pathOffset += 1; 3971 pathOffset += 1;
3972 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3972 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3973 pathOffset += 12; 3973 pathOffset += 12;
(...skipping 21 matching lines...) Expand all
3995 if (n == "false") return false; 3995 if (n == "false") return false;
3996 if (n == null) return null; 3996 if (n == null) return null;
3997 throw new core.ArgumentError("Invalid boolean: $n"); 3997 throw new core.ArgumentError("Invalid boolean: $n");
3998 } 3998 }
3999 if (query.length > 0) { 3999 if (query.length > 0) {
4000 for (var part in query.split("&")) { 4000 for (var part in query.split("&")) {
4001 var keyvalue = part.split("="); 4001 var keyvalue = part.split("=");
4002 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4002 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4003 } 4003 }
4004 } 4004 }
4005 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4005 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 4006 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
4006 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4007 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 4007 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4008 4008
4009 4009
4010 var h = { 4010 var h = {
4011 "content-type" : "application/json; charset=utf-8", 4011 "content-type" : "application/json; charset=utf-8",
4012 }; 4012 };
4013 var resp = convert.JSON.encode(buildListVersionsResponse()); 4013 var resp = convert.JSON.encode(buildListVersionsResponse());
4014 return new async.Future.value(stringResponse(200, h, resp)); 4014 return new async.Future.value(stringResponse(200, h, resp));
4015 }), true); 4015 }), true);
4016 res.list(arg_appsId, arg_servicesId, view: arg_view, pageSize: arg_pageSiz e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListVersionsRespons e response) { 4016 res.list(arg_appsId, arg_servicesId, pageSize: arg_pageSize, view: arg_vie w, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListVersionsRespons e response) {
4017 checkListVersionsResponse(response); 4017 checkListVersionsResponse(response);
4018 }))); 4018 })));
4019 }); 4019 });
4020 4020
4021 unittest.test("method--patch", () { 4021 unittest.test("method--patch", () {
4022 4022
4023 var mock = new HttpServerMock(); 4023 var mock = new HttpServerMock();
4024 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions; 4024 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions;
4025 var arg_request = buildVersion(); 4025 var arg_request = buildVersion();
4026 var arg_appsId = "foo"; 4026 var arg_appsId = "foo";
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
4312 }))); 4312 })));
4313 }); 4313 });
4314 4314
4315 unittest.test("method--list", () { 4315 unittest.test("method--list", () {
4316 4316
4317 var mock = new HttpServerMock(); 4317 var mock = new HttpServerMock();
4318 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo ck).apps.services.versions.instances; 4318 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo ck).apps.services.versions.instances;
4319 var arg_appsId = "foo"; 4319 var arg_appsId = "foo";
4320 var arg_servicesId = "foo"; 4320 var arg_servicesId = "foo";
4321 var arg_versionsId = "foo"; 4321 var arg_versionsId = "foo";
4322 var arg_pageToken = "foo";
4322 var arg_pageSize = 42; 4323 var arg_pageSize = 42;
4323 var arg_pageToken = "foo";
4324 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4324 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4325 var path = (req.url).path; 4325 var path = (req.url).path;
4326 var pathOffset = 0; 4326 var pathOffset = 0;
4327 var index; 4327 var index;
4328 var subPart; 4328 var subPart;
4329 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4329 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4330 pathOffset += 1; 4330 pathOffset += 1;
4331 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 4331 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
4332 pathOffset += 12; 4332 pathOffset += 12;
4333 index = path.indexOf("/services/", pathOffset); 4333 index = path.indexOf("/services/", pathOffset);
(...skipping 27 matching lines...) Expand all
4361 if (n == "false") return false; 4361 if (n == "false") return false;
4362 if (n == null) return null; 4362 if (n == null) return null;
4363 throw new core.ArgumentError("Invalid boolean: $n"); 4363 throw new core.ArgumentError("Invalid boolean: $n");
4364 } 4364 }
4365 if (query.length > 0) { 4365 if (query.length > 0) {
4366 for (var part in query.split("&")) { 4366 for (var part in query.split("&")) {
4367 var keyvalue = part.split("="); 4367 var keyvalue = part.split("=");
4368 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4368 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4369 } 4369 }
4370 } 4370 }
4371 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4371 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 4372 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4372 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4373 4373
4374 4374
4375 var h = { 4375 var h = {
4376 "content-type" : "application/json; charset=utf-8", 4376 "content-type" : "application/json; charset=utf-8",
4377 }; 4377 };
4378 var resp = convert.JSON.encode(buildListInstancesResponse()); 4378 var resp = convert.JSON.encode(buildListInstancesResponse());
4379 return new async.Future.value(stringResponse(200, h, resp)); 4379 return new async.Future.value(stringResponse(200, h, resp));
4380 }), true); 4380 }), true);
4381 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon se response) { 4381 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageTo ken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListInstancesRespon se response) {
4382 checkListInstancesResponse(response); 4382 checkListInstancesResponse(response);
4383 }))); 4383 })));
4384 }); 4384 });
4385 4385
4386 }); 4386 });
4387 4387
4388 4388
4389 } 4389 }
4390 4390
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698