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

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

Issue 2973303002: Api-Roll 51: 2017-07-10 (Closed)
Patch Set: Created 3 years, 5 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:test/test.dart' as unittest; 10 import 'package:test/test.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 buildUnnamed3449() { 100 buildUnnamed3577() {
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 checkUnnamed3449(core.List<api.UrlDispatchRule> o) { 107 checkUnnamed3577(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 = buildUnnamed3449(); 123 o.dispatchRules = buildUnnamed3577();
124 o.featureSettings = buildFeatureSettings();
124 o.gcrDomain = "foo"; 125 o.gcrDomain = "foo";
125 o.iap = buildIdentityAwareProxy(); 126 o.iap = buildIdentityAwareProxy();
126 o.id = "foo"; 127 o.id = "foo";
127 o.locationId = "foo"; 128 o.locationId = "foo";
128 o.name = "foo"; 129 o.name = "foo";
129 o.servingStatus = "foo"; 130 o.servingStatus = "foo";
130 } 131 }
131 buildCounterApplication--; 132 buildCounterApplication--;
132 return o; 133 return o;
133 } 134 }
134 135
135 checkApplication(api.Application o) { 136 checkApplication(api.Application o) {
136 buildCounterApplication++; 137 buildCounterApplication++;
137 if (buildCounterApplication < 3) { 138 if (buildCounterApplication < 3) {
138 unittest.expect(o.authDomain, unittest.equals('foo')); 139 unittest.expect(o.authDomain, unittest.equals('foo'));
139 unittest.expect(o.codeBucket, unittest.equals('foo')); 140 unittest.expect(o.codeBucket, unittest.equals('foo'));
140 unittest.expect(o.defaultBucket, unittest.equals('foo')); 141 unittest.expect(o.defaultBucket, unittest.equals('foo'));
141 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); 142 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo'));
142 unittest.expect(o.defaultHostname, unittest.equals('foo')); 143 unittest.expect(o.defaultHostname, unittest.equals('foo'));
143 checkUnnamed3449(o.dispatchRules); 144 checkUnnamed3577(o.dispatchRules);
145 checkFeatureSettings(o.featureSettings);
144 unittest.expect(o.gcrDomain, unittest.equals('foo')); 146 unittest.expect(o.gcrDomain, unittest.equals('foo'));
145 checkIdentityAwareProxy(o.iap); 147 checkIdentityAwareProxy(o.iap);
146 unittest.expect(o.id, unittest.equals('foo')); 148 unittest.expect(o.id, unittest.equals('foo'));
147 unittest.expect(o.locationId, unittest.equals('foo')); 149 unittest.expect(o.locationId, unittest.equals('foo'));
148 unittest.expect(o.name, unittest.equals('foo')); 150 unittest.expect(o.name, unittest.equals('foo'));
149 unittest.expect(o.servingStatus, unittest.equals('foo')); 151 unittest.expect(o.servingStatus, unittest.equals('foo'));
150 } 152 }
151 buildCounterApplication--; 153 buildCounterApplication--;
152 } 154 }
153 155
154 buildUnnamed3450() { 156 buildUnnamed3578() {
155 var o = new core.List<core.String>(); 157 var o = new core.List<core.String>();
156 o.add("foo"); 158 o.add("foo");
157 o.add("foo"); 159 o.add("foo");
158 return o; 160 return o;
159 } 161 }
160 162
161 checkUnnamed3450(core.List<core.String> o) { 163 checkUnnamed3578(core.List<core.String> o) {
162 unittest.expect(o, unittest.hasLength(2)); 164 unittest.expect(o, unittest.hasLength(2));
163 unittest.expect(o[0], unittest.equals('foo')); 165 unittest.expect(o[0], unittest.equals('foo'));
164 unittest.expect(o[1], unittest.equals('foo')); 166 unittest.expect(o[1], unittest.equals('foo'));
165 } 167 }
166 168
167 buildUnnamed3451() { 169 buildUnnamed3579() {
168 var o = new core.List<core.String>(); 170 var o = new core.List<core.String>();
169 o.add("foo"); 171 o.add("foo");
170 o.add("foo"); 172 o.add("foo");
171 return o; 173 return o;
172 } 174 }
173 175
174 checkUnnamed3451(core.List<core.String> o) { 176 checkUnnamed3579(core.List<core.String> o) {
175 unittest.expect(o, unittest.hasLength(2)); 177 unittest.expect(o, unittest.hasLength(2));
176 unittest.expect(o[0], unittest.equals('foo')); 178 unittest.expect(o[0], unittest.equals('foo'));
177 unittest.expect(o[1], unittest.equals('foo')); 179 unittest.expect(o[1], unittest.equals('foo'));
178 } 180 }
179 181
180 core.int buildCounterAuthorizedCertificate = 0; 182 core.int buildCounterAuthorizedCertificate = 0;
181 buildAuthorizedCertificate() { 183 buildAuthorizedCertificate() {
182 var o = new api.AuthorizedCertificate(); 184 var o = new api.AuthorizedCertificate();
183 buildCounterAuthorizedCertificate++; 185 buildCounterAuthorizedCertificate++;
184 if (buildCounterAuthorizedCertificate < 3) { 186 if (buildCounterAuthorizedCertificate < 3) {
185 o.certificateRawData = buildCertificateRawData(); 187 o.certificateRawData = buildCertificateRawData();
186 o.displayName = "foo"; 188 o.displayName = "foo";
187 o.domainMappingsCount = 42; 189 o.domainMappingsCount = 42;
188 o.domainNames = buildUnnamed3450(); 190 o.domainNames = buildUnnamed3578();
189 o.expireTime = "foo"; 191 o.expireTime = "foo";
190 o.id = "foo"; 192 o.id = "foo";
191 o.name = "foo"; 193 o.name = "foo";
192 o.visibleDomainMappings = buildUnnamed3451(); 194 o.visibleDomainMappings = buildUnnamed3579();
193 } 195 }
194 buildCounterAuthorizedCertificate--; 196 buildCounterAuthorizedCertificate--;
195 return o; 197 return o;
196 } 198 }
197 199
198 checkAuthorizedCertificate(api.AuthorizedCertificate o) { 200 checkAuthorizedCertificate(api.AuthorizedCertificate o) {
199 buildCounterAuthorizedCertificate++; 201 buildCounterAuthorizedCertificate++;
200 if (buildCounterAuthorizedCertificate < 3) { 202 if (buildCounterAuthorizedCertificate < 3) {
201 checkCertificateRawData(o.certificateRawData); 203 checkCertificateRawData(o.certificateRawData);
202 unittest.expect(o.displayName, unittest.equals('foo')); 204 unittest.expect(o.displayName, unittest.equals('foo'));
203 unittest.expect(o.domainMappingsCount, unittest.equals(42)); 205 unittest.expect(o.domainMappingsCount, unittest.equals(42));
204 checkUnnamed3450(o.domainNames); 206 checkUnnamed3578(o.domainNames);
205 unittest.expect(o.expireTime, unittest.equals('foo')); 207 unittest.expect(o.expireTime, unittest.equals('foo'));
206 unittest.expect(o.id, unittest.equals('foo')); 208 unittest.expect(o.id, unittest.equals('foo'));
207 unittest.expect(o.name, unittest.equals('foo')); 209 unittest.expect(o.name, unittest.equals('foo'));
208 checkUnnamed3451(o.visibleDomainMappings); 210 checkUnnamed3579(o.visibleDomainMappings);
209 } 211 }
210 buildCounterAuthorizedCertificate--; 212 buildCounterAuthorizedCertificate--;
211 } 213 }
212 214
213 core.int buildCounterAuthorizedDomain = 0; 215 core.int buildCounterAuthorizedDomain = 0;
214 buildAuthorizedDomain() { 216 buildAuthorizedDomain() {
215 var o = new api.AuthorizedDomain(); 217 var o = new api.AuthorizedDomain();
216 buildCounterAuthorizedDomain++; 218 buildCounterAuthorizedDomain++;
217 if (buildCounterAuthorizedDomain < 3) { 219 if (buildCounterAuthorizedDomain < 3) {
218 o.id = "foo"; 220 o.id = "foo";
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 290
289 checkBasicScaling(api.BasicScaling o) { 291 checkBasicScaling(api.BasicScaling o) {
290 buildCounterBasicScaling++; 292 buildCounterBasicScaling++;
291 if (buildCounterBasicScaling < 3) { 293 if (buildCounterBasicScaling < 3) {
292 unittest.expect(o.idleTimeout, unittest.equals('foo')); 294 unittest.expect(o.idleTimeout, unittest.equals('foo'));
293 unittest.expect(o.maxInstances, unittest.equals(42)); 295 unittest.expect(o.maxInstances, unittest.equals(42));
294 } 296 }
295 buildCounterBasicScaling--; 297 buildCounterBasicScaling--;
296 } 298 }
297 299
300 buildUnnamed3580() {
301 var o = new core.List<api.FirewallRule>();
302 o.add(buildFirewallRule());
303 o.add(buildFirewallRule());
304 return o;
305 }
306
307 checkUnnamed3580(core.List<api.FirewallRule> o) {
308 unittest.expect(o, unittest.hasLength(2));
309 checkFirewallRule(o[0]);
310 checkFirewallRule(o[1]);
311 }
312
313 core.int buildCounterBatchUpdateIngressRulesRequest = 0;
314 buildBatchUpdateIngressRulesRequest() {
315 var o = new api.BatchUpdateIngressRulesRequest();
316 buildCounterBatchUpdateIngressRulesRequest++;
317 if (buildCounterBatchUpdateIngressRulesRequest < 3) {
318 o.ingressRules = buildUnnamed3580();
319 }
320 buildCounterBatchUpdateIngressRulesRequest--;
321 return o;
322 }
323
324 checkBatchUpdateIngressRulesRequest(api.BatchUpdateIngressRulesRequest o) {
325 buildCounterBatchUpdateIngressRulesRequest++;
326 if (buildCounterBatchUpdateIngressRulesRequest < 3) {
327 checkUnnamed3580(o.ingressRules);
328 }
329 buildCounterBatchUpdateIngressRulesRequest--;
330 }
331
332 buildUnnamed3581() {
333 var o = new core.List<api.FirewallRule>();
334 o.add(buildFirewallRule());
335 o.add(buildFirewallRule());
336 return o;
337 }
338
339 checkUnnamed3581(core.List<api.FirewallRule> o) {
340 unittest.expect(o, unittest.hasLength(2));
341 checkFirewallRule(o[0]);
342 checkFirewallRule(o[1]);
343 }
344
345 core.int buildCounterBatchUpdateIngressRulesResponse = 0;
346 buildBatchUpdateIngressRulesResponse() {
347 var o = new api.BatchUpdateIngressRulesResponse();
348 buildCounterBatchUpdateIngressRulesResponse++;
349 if (buildCounterBatchUpdateIngressRulesResponse < 3) {
350 o.ingressRules = buildUnnamed3581();
351 }
352 buildCounterBatchUpdateIngressRulesResponse--;
353 return o;
354 }
355
356 checkBatchUpdateIngressRulesResponse(api.BatchUpdateIngressRulesResponse o) {
357 buildCounterBatchUpdateIngressRulesResponse++;
358 if (buildCounterBatchUpdateIngressRulesResponse < 3) {
359 checkUnnamed3581(o.ingressRules);
360 }
361 buildCounterBatchUpdateIngressRulesResponse--;
362 }
363
298 core.int buildCounterBuildInfo = 0; 364 core.int buildCounterBuildInfo = 0;
299 buildBuildInfo() { 365 buildBuildInfo() {
300 var o = new api.BuildInfo(); 366 var o = new api.BuildInfo();
301 buildCounterBuildInfo++; 367 buildCounterBuildInfo++;
302 if (buildCounterBuildInfo < 3) { 368 if (buildCounterBuildInfo < 3) {
303 o.cloudBuildId = "foo"; 369 o.cloudBuildId = "foo";
304 } 370 }
305 buildCounterBuildInfo--; 371 buildCounterBuildInfo--;
306 return o; 372 return o;
307 } 373 }
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 } 453 }
388 454
389 checkDebugInstanceRequest(api.DebugInstanceRequest o) { 455 checkDebugInstanceRequest(api.DebugInstanceRequest o) {
390 buildCounterDebugInstanceRequest++; 456 buildCounterDebugInstanceRequest++;
391 if (buildCounterDebugInstanceRequest < 3) { 457 if (buildCounterDebugInstanceRequest < 3) {
392 unittest.expect(o.sshKey, unittest.equals('foo')); 458 unittest.expect(o.sshKey, unittest.equals('foo'));
393 } 459 }
394 buildCounterDebugInstanceRequest--; 460 buildCounterDebugInstanceRequest--;
395 } 461 }
396 462
397 buildUnnamed3452() { 463 buildUnnamed3582() {
398 var o = new core.Map<core.String, api.FileInfo>(); 464 var o = new core.Map<core.String, api.FileInfo>();
399 o["x"] = buildFileInfo(); 465 o["x"] = buildFileInfo();
400 o["y"] = buildFileInfo(); 466 o["y"] = buildFileInfo();
401 return o; 467 return o;
402 } 468 }
403 469
404 checkUnnamed3452(core.Map<core.String, api.FileInfo> o) { 470 checkUnnamed3582(core.Map<core.String, api.FileInfo> o) {
405 unittest.expect(o, unittest.hasLength(2)); 471 unittest.expect(o, unittest.hasLength(2));
406 checkFileInfo(o["x"]); 472 checkFileInfo(o["x"]);
407 checkFileInfo(o["y"]); 473 checkFileInfo(o["y"]);
408 } 474 }
409 475
410 core.int buildCounterDeployment = 0; 476 core.int buildCounterDeployment = 0;
411 buildDeployment() { 477 buildDeployment() {
412 var o = new api.Deployment(); 478 var o = new api.Deployment();
413 buildCounterDeployment++; 479 buildCounterDeployment++;
414 if (buildCounterDeployment < 3) { 480 if (buildCounterDeployment < 3) {
415 o.build = buildBuildInfo(); 481 o.build = buildBuildInfo();
416 o.container = buildContainerInfo(); 482 o.container = buildContainerInfo();
417 o.files = buildUnnamed3452(); 483 o.files = buildUnnamed3582();
418 o.zip = buildZipInfo(); 484 o.zip = buildZipInfo();
419 } 485 }
420 buildCounterDeployment--; 486 buildCounterDeployment--;
421 return o; 487 return o;
422 } 488 }
423 489
424 checkDeployment(api.Deployment o) { 490 checkDeployment(api.Deployment o) {
425 buildCounterDeployment++; 491 buildCounterDeployment++;
426 if (buildCounterDeployment < 3) { 492 if (buildCounterDeployment < 3) {
427 checkBuildInfo(o.build); 493 checkBuildInfo(o.build);
428 checkContainerInfo(o.container); 494 checkContainerInfo(o.container);
429 checkUnnamed3452(o.files); 495 checkUnnamed3582(o.files);
430 checkZipInfo(o.zip); 496 checkZipInfo(o.zip);
431 } 497 }
432 buildCounterDeployment--; 498 buildCounterDeployment--;
433 } 499 }
434 500
435 core.int buildCounterDiskUtilization = 0; 501 core.int buildCounterDiskUtilization = 0;
436 buildDiskUtilization() { 502 buildDiskUtilization() {
437 var o = new api.DiskUtilization(); 503 var o = new api.DiskUtilization();
438 buildCounterDiskUtilization++; 504 buildCounterDiskUtilization++;
439 if (buildCounterDiskUtilization < 3) { 505 if (buildCounterDiskUtilization < 3) {
(...skipping 10 matching lines...) Expand all
450 buildCounterDiskUtilization++; 516 buildCounterDiskUtilization++;
451 if (buildCounterDiskUtilization < 3) { 517 if (buildCounterDiskUtilization < 3) {
452 unittest.expect(o.targetReadBytesPerSecond, unittest.equals(42)); 518 unittest.expect(o.targetReadBytesPerSecond, unittest.equals(42));
453 unittest.expect(o.targetReadOpsPerSecond, unittest.equals(42)); 519 unittest.expect(o.targetReadOpsPerSecond, unittest.equals(42));
454 unittest.expect(o.targetWriteBytesPerSecond, unittest.equals(42)); 520 unittest.expect(o.targetWriteBytesPerSecond, unittest.equals(42));
455 unittest.expect(o.targetWriteOpsPerSecond, unittest.equals(42)); 521 unittest.expect(o.targetWriteOpsPerSecond, unittest.equals(42));
456 } 522 }
457 buildCounterDiskUtilization--; 523 buildCounterDiskUtilization--;
458 } 524 }
459 525
460 buildUnnamed3453() { 526 buildUnnamed3583() {
461 var o = new core.List<api.ResourceRecord>(); 527 var o = new core.List<api.ResourceRecord>();
462 o.add(buildResourceRecord()); 528 o.add(buildResourceRecord());
463 o.add(buildResourceRecord()); 529 o.add(buildResourceRecord());
464 return o; 530 return o;
465 } 531 }
466 532
467 checkUnnamed3453(core.List<api.ResourceRecord> o) { 533 checkUnnamed3583(core.List<api.ResourceRecord> o) {
468 unittest.expect(o, unittest.hasLength(2)); 534 unittest.expect(o, unittest.hasLength(2));
469 checkResourceRecord(o[0]); 535 checkResourceRecord(o[0]);
470 checkResourceRecord(o[1]); 536 checkResourceRecord(o[1]);
471 } 537 }
472 538
473 core.int buildCounterDomainMapping = 0; 539 core.int buildCounterDomainMapping = 0;
474 buildDomainMapping() { 540 buildDomainMapping() {
475 var o = new api.DomainMapping(); 541 var o = new api.DomainMapping();
476 buildCounterDomainMapping++; 542 buildCounterDomainMapping++;
477 if (buildCounterDomainMapping < 3) { 543 if (buildCounterDomainMapping < 3) {
478 o.id = "foo"; 544 o.id = "foo";
479 o.name = "foo"; 545 o.name = "foo";
480 o.resourceRecords = buildUnnamed3453(); 546 o.resourceRecords = buildUnnamed3583();
481 o.sslSettings = buildSslSettings(); 547 o.sslSettings = buildSslSettings();
482 } 548 }
483 buildCounterDomainMapping--; 549 buildCounterDomainMapping--;
484 return o; 550 return o;
485 } 551 }
486 552
487 checkDomainMapping(api.DomainMapping o) { 553 checkDomainMapping(api.DomainMapping o) {
488 buildCounterDomainMapping++; 554 buildCounterDomainMapping++;
489 if (buildCounterDomainMapping < 3) { 555 if (buildCounterDomainMapping < 3) {
490 unittest.expect(o.id, unittest.equals('foo')); 556 unittest.expect(o.id, unittest.equals('foo'));
491 unittest.expect(o.name, unittest.equals('foo')); 557 unittest.expect(o.name, unittest.equals('foo'));
492 checkUnnamed3453(o.resourceRecords); 558 checkUnnamed3583(o.resourceRecords);
493 checkSslSettings(o.sslSettings); 559 checkSslSettings(o.sslSettings);
494 } 560 }
495 buildCounterDomainMapping--; 561 buildCounterDomainMapping--;
496 } 562 }
497 563
498 core.int buildCounterEmpty = 0; 564 core.int buildCounterEmpty = 0;
499 buildEmpty() { 565 buildEmpty() {
500 var o = new api.Empty(); 566 var o = new api.Empty();
501 buildCounterEmpty++; 567 buildCounterEmpty++;
502 if (buildCounterEmpty < 3) { 568 if (buildCounterEmpty < 3) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 checkErrorHandler(api.ErrorHandler o) { 615 checkErrorHandler(api.ErrorHandler o) {
550 buildCounterErrorHandler++; 616 buildCounterErrorHandler++;
551 if (buildCounterErrorHandler < 3) { 617 if (buildCounterErrorHandler < 3) {
552 unittest.expect(o.errorCode, unittest.equals('foo')); 618 unittest.expect(o.errorCode, unittest.equals('foo'));
553 unittest.expect(o.mimeType, unittest.equals('foo')); 619 unittest.expect(o.mimeType, unittest.equals('foo'));
554 unittest.expect(o.staticFile, unittest.equals('foo')); 620 unittest.expect(o.staticFile, unittest.equals('foo'));
555 } 621 }
556 buildCounterErrorHandler--; 622 buildCounterErrorHandler--;
557 } 623 }
558 624
625 core.int buildCounterFeatureSettings = 0;
626 buildFeatureSettings() {
627 var o = new api.FeatureSettings();
628 buildCounterFeatureSettings++;
629 if (buildCounterFeatureSettings < 3) {
630 o.splitHealthChecks = true;
631 }
632 buildCounterFeatureSettings--;
633 return o;
634 }
635
636 checkFeatureSettings(api.FeatureSettings o) {
637 buildCounterFeatureSettings++;
638 if (buildCounterFeatureSettings < 3) {
639 unittest.expect(o.splitHealthChecks, unittest.isTrue);
640 }
641 buildCounterFeatureSettings--;
642 }
643
559 core.int buildCounterFileInfo = 0; 644 core.int buildCounterFileInfo = 0;
560 buildFileInfo() { 645 buildFileInfo() {
561 var o = new api.FileInfo(); 646 var o = new api.FileInfo();
562 buildCounterFileInfo++; 647 buildCounterFileInfo++;
563 if (buildCounterFileInfo < 3) { 648 if (buildCounterFileInfo < 3) {
564 o.mimeType = "foo"; 649 o.mimeType = "foo";
565 o.sha1Sum = "foo"; 650 o.sha1Sum = "foo";
566 o.sourceUrl = "foo"; 651 o.sourceUrl = "foo";
567 } 652 }
568 buildCounterFileInfo--; 653 buildCounterFileInfo--;
569 return o; 654 return o;
570 } 655 }
571 656
572 checkFileInfo(api.FileInfo o) { 657 checkFileInfo(api.FileInfo o) {
573 buildCounterFileInfo++; 658 buildCounterFileInfo++;
574 if (buildCounterFileInfo < 3) { 659 if (buildCounterFileInfo < 3) {
575 unittest.expect(o.mimeType, unittest.equals('foo')); 660 unittest.expect(o.mimeType, unittest.equals('foo'));
576 unittest.expect(o.sha1Sum, unittest.equals('foo')); 661 unittest.expect(o.sha1Sum, unittest.equals('foo'));
577 unittest.expect(o.sourceUrl, unittest.equals('foo')); 662 unittest.expect(o.sourceUrl, unittest.equals('foo'));
578 } 663 }
579 buildCounterFileInfo--; 664 buildCounterFileInfo--;
580 } 665 }
581 666
667 core.int buildCounterFirewallRule = 0;
668 buildFirewallRule() {
669 var o = new api.FirewallRule();
670 buildCounterFirewallRule++;
671 if (buildCounterFirewallRule < 3) {
672 o.action = "foo";
673 o.description = "foo";
674 o.priority = 42;
675 o.sourceRange = "foo";
676 }
677 buildCounterFirewallRule--;
678 return o;
679 }
680
681 checkFirewallRule(api.FirewallRule o) {
682 buildCounterFirewallRule++;
683 if (buildCounterFirewallRule < 3) {
684 unittest.expect(o.action, unittest.equals('foo'));
685 unittest.expect(o.description, unittest.equals('foo'));
686 unittest.expect(o.priority, unittest.equals(42));
687 unittest.expect(o.sourceRange, unittest.equals('foo'));
688 }
689 buildCounterFirewallRule--;
690 }
691
582 core.int buildCounterHealthCheck = 0; 692 core.int buildCounterHealthCheck = 0;
583 buildHealthCheck() { 693 buildHealthCheck() {
584 var o = new api.HealthCheck(); 694 var o = new api.HealthCheck();
585 buildCounterHealthCheck++; 695 buildCounterHealthCheck++;
586 if (buildCounterHealthCheck < 3) { 696 if (buildCounterHealthCheck < 3) {
587 o.checkInterval = "foo"; 697 o.checkInterval = "foo";
588 o.disableHealthCheck = true; 698 o.disableHealthCheck = true;
589 o.healthyThreshold = 42; 699 o.healthyThreshold = 42;
590 o.host = "foo"; 700 o.host = "foo";
591 o.restartThreshold = 42; 701 o.restartThreshold = 42;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 808
699 checkLibrary(api.Library o) { 809 checkLibrary(api.Library o) {
700 buildCounterLibrary++; 810 buildCounterLibrary++;
701 if (buildCounterLibrary < 3) { 811 if (buildCounterLibrary < 3) {
702 unittest.expect(o.name, unittest.equals('foo')); 812 unittest.expect(o.name, unittest.equals('foo'));
703 unittest.expect(o.version, unittest.equals('foo')); 813 unittest.expect(o.version, unittest.equals('foo'));
704 } 814 }
705 buildCounterLibrary--; 815 buildCounterLibrary--;
706 } 816 }
707 817
708 buildUnnamed3454() { 818 buildUnnamed3584() {
709 var o = new core.List<api.AuthorizedCertificate>(); 819 var o = new core.List<api.AuthorizedCertificate>();
710 o.add(buildAuthorizedCertificate()); 820 o.add(buildAuthorizedCertificate());
711 o.add(buildAuthorizedCertificate()); 821 o.add(buildAuthorizedCertificate());
712 return o; 822 return o;
713 } 823 }
714 824
715 checkUnnamed3454(core.List<api.AuthorizedCertificate> o) { 825 checkUnnamed3584(core.List<api.AuthorizedCertificate> o) {
716 unittest.expect(o, unittest.hasLength(2)); 826 unittest.expect(o, unittest.hasLength(2));
717 checkAuthorizedCertificate(o[0]); 827 checkAuthorizedCertificate(o[0]);
718 checkAuthorizedCertificate(o[1]); 828 checkAuthorizedCertificate(o[1]);
719 } 829 }
720 830
721 core.int buildCounterListAuthorizedCertificatesResponse = 0; 831 core.int buildCounterListAuthorizedCertificatesResponse = 0;
722 buildListAuthorizedCertificatesResponse() { 832 buildListAuthorizedCertificatesResponse() {
723 var o = new api.ListAuthorizedCertificatesResponse(); 833 var o = new api.ListAuthorizedCertificatesResponse();
724 buildCounterListAuthorizedCertificatesResponse++; 834 buildCounterListAuthorizedCertificatesResponse++;
725 if (buildCounterListAuthorizedCertificatesResponse < 3) { 835 if (buildCounterListAuthorizedCertificatesResponse < 3) {
726 o.certificates = buildUnnamed3454(); 836 o.certificates = buildUnnamed3584();
727 o.nextPageToken = "foo"; 837 o.nextPageToken = "foo";
728 } 838 }
729 buildCounterListAuthorizedCertificatesResponse--; 839 buildCounterListAuthorizedCertificatesResponse--;
730 return o; 840 return o;
731 } 841 }
732 842
733 checkListAuthorizedCertificatesResponse(api.ListAuthorizedCertificatesResponse o ) { 843 checkListAuthorizedCertificatesResponse(api.ListAuthorizedCertificatesResponse o ) {
734 buildCounterListAuthorizedCertificatesResponse++; 844 buildCounterListAuthorizedCertificatesResponse++;
735 if (buildCounterListAuthorizedCertificatesResponse < 3) { 845 if (buildCounterListAuthorizedCertificatesResponse < 3) {
736 checkUnnamed3454(o.certificates); 846 checkUnnamed3584(o.certificates);
737 unittest.expect(o.nextPageToken, unittest.equals('foo')); 847 unittest.expect(o.nextPageToken, unittest.equals('foo'));
738 } 848 }
739 buildCounterListAuthorizedCertificatesResponse--; 849 buildCounterListAuthorizedCertificatesResponse--;
740 } 850 }
741 851
742 buildUnnamed3455() { 852 buildUnnamed3585() {
743 var o = new core.List<api.AuthorizedDomain>(); 853 var o = new core.List<api.AuthorizedDomain>();
744 o.add(buildAuthorizedDomain()); 854 o.add(buildAuthorizedDomain());
745 o.add(buildAuthorizedDomain()); 855 o.add(buildAuthorizedDomain());
746 return o; 856 return o;
747 } 857 }
748 858
749 checkUnnamed3455(core.List<api.AuthorizedDomain> o) { 859 checkUnnamed3585(core.List<api.AuthorizedDomain> o) {
750 unittest.expect(o, unittest.hasLength(2)); 860 unittest.expect(o, unittest.hasLength(2));
751 checkAuthorizedDomain(o[0]); 861 checkAuthorizedDomain(o[0]);
752 checkAuthorizedDomain(o[1]); 862 checkAuthorizedDomain(o[1]);
753 } 863 }
754 864
755 core.int buildCounterListAuthorizedDomainsResponse = 0; 865 core.int buildCounterListAuthorizedDomainsResponse = 0;
756 buildListAuthorizedDomainsResponse() { 866 buildListAuthorizedDomainsResponse() {
757 var o = new api.ListAuthorizedDomainsResponse(); 867 var o = new api.ListAuthorizedDomainsResponse();
758 buildCounterListAuthorizedDomainsResponse++; 868 buildCounterListAuthorizedDomainsResponse++;
759 if (buildCounterListAuthorizedDomainsResponse < 3) { 869 if (buildCounterListAuthorizedDomainsResponse < 3) {
760 o.domains = buildUnnamed3455(); 870 o.domains = buildUnnamed3585();
761 o.nextPageToken = "foo"; 871 o.nextPageToken = "foo";
762 } 872 }
763 buildCounterListAuthorizedDomainsResponse--; 873 buildCounterListAuthorizedDomainsResponse--;
764 return o; 874 return o;
765 } 875 }
766 876
767 checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) { 877 checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) {
768 buildCounterListAuthorizedDomainsResponse++; 878 buildCounterListAuthorizedDomainsResponse++;
769 if (buildCounterListAuthorizedDomainsResponse < 3) { 879 if (buildCounterListAuthorizedDomainsResponse < 3) {
770 checkUnnamed3455(o.domains); 880 checkUnnamed3585(o.domains);
771 unittest.expect(o.nextPageToken, unittest.equals('foo')); 881 unittest.expect(o.nextPageToken, unittest.equals('foo'));
772 } 882 }
773 buildCounterListAuthorizedDomainsResponse--; 883 buildCounterListAuthorizedDomainsResponse--;
774 } 884 }
775 885
776 buildUnnamed3456() { 886 buildUnnamed3586() {
777 var o = new core.List<api.DomainMapping>(); 887 var o = new core.List<api.DomainMapping>();
778 o.add(buildDomainMapping()); 888 o.add(buildDomainMapping());
779 o.add(buildDomainMapping()); 889 o.add(buildDomainMapping());
780 return o; 890 return o;
781 } 891 }
782 892
783 checkUnnamed3456(core.List<api.DomainMapping> o) { 893 checkUnnamed3586(core.List<api.DomainMapping> o) {
784 unittest.expect(o, unittest.hasLength(2)); 894 unittest.expect(o, unittest.hasLength(2));
785 checkDomainMapping(o[0]); 895 checkDomainMapping(o[0]);
786 checkDomainMapping(o[1]); 896 checkDomainMapping(o[1]);
787 } 897 }
788 898
789 core.int buildCounterListDomainMappingsResponse = 0; 899 core.int buildCounterListDomainMappingsResponse = 0;
790 buildListDomainMappingsResponse() { 900 buildListDomainMappingsResponse() {
791 var o = new api.ListDomainMappingsResponse(); 901 var o = new api.ListDomainMappingsResponse();
792 buildCounterListDomainMappingsResponse++; 902 buildCounterListDomainMappingsResponse++;
793 if (buildCounterListDomainMappingsResponse < 3) { 903 if (buildCounterListDomainMappingsResponse < 3) {
794 o.domainMappings = buildUnnamed3456(); 904 o.domainMappings = buildUnnamed3586();
795 o.nextPageToken = "foo"; 905 o.nextPageToken = "foo";
796 } 906 }
797 buildCounterListDomainMappingsResponse--; 907 buildCounterListDomainMappingsResponse--;
798 return o; 908 return o;
799 } 909 }
800 910
801 checkListDomainMappingsResponse(api.ListDomainMappingsResponse o) { 911 checkListDomainMappingsResponse(api.ListDomainMappingsResponse o) {
802 buildCounterListDomainMappingsResponse++; 912 buildCounterListDomainMappingsResponse++;
803 if (buildCounterListDomainMappingsResponse < 3) { 913 if (buildCounterListDomainMappingsResponse < 3) {
804 checkUnnamed3456(o.domainMappings); 914 checkUnnamed3586(o.domainMappings);
805 unittest.expect(o.nextPageToken, unittest.equals('foo')); 915 unittest.expect(o.nextPageToken, unittest.equals('foo'));
806 } 916 }
807 buildCounterListDomainMappingsResponse--; 917 buildCounterListDomainMappingsResponse--;
808 } 918 }
809 919
810 buildUnnamed3457() { 920 buildUnnamed3587() {
921 var o = new core.List<api.FirewallRule>();
922 o.add(buildFirewallRule());
923 o.add(buildFirewallRule());
924 return o;
925 }
926
927 checkUnnamed3587(core.List<api.FirewallRule> o) {
928 unittest.expect(o, unittest.hasLength(2));
929 checkFirewallRule(o[0]);
930 checkFirewallRule(o[1]);
931 }
932
933 core.int buildCounterListIngressRulesResponse = 0;
934 buildListIngressRulesResponse() {
935 var o = new api.ListIngressRulesResponse();
936 buildCounterListIngressRulesResponse++;
937 if (buildCounterListIngressRulesResponse < 3) {
938 o.ingressRules = buildUnnamed3587();
939 o.nextPageToken = "foo";
940 }
941 buildCounterListIngressRulesResponse--;
942 return o;
943 }
944
945 checkListIngressRulesResponse(api.ListIngressRulesResponse o) {
946 buildCounterListIngressRulesResponse++;
947 if (buildCounterListIngressRulesResponse < 3) {
948 checkUnnamed3587(o.ingressRules);
949 unittest.expect(o.nextPageToken, unittest.equals('foo'));
950 }
951 buildCounterListIngressRulesResponse--;
952 }
953
954 buildUnnamed3588() {
811 var o = new core.List<api.Instance>(); 955 var o = new core.List<api.Instance>();
812 o.add(buildInstance()); 956 o.add(buildInstance());
813 o.add(buildInstance()); 957 o.add(buildInstance());
814 return o; 958 return o;
815 } 959 }
816 960
817 checkUnnamed3457(core.List<api.Instance> o) { 961 checkUnnamed3588(core.List<api.Instance> o) {
818 unittest.expect(o, unittest.hasLength(2)); 962 unittest.expect(o, unittest.hasLength(2));
819 checkInstance(o[0]); 963 checkInstance(o[0]);
820 checkInstance(o[1]); 964 checkInstance(o[1]);
821 } 965 }
822 966
823 core.int buildCounterListInstancesResponse = 0; 967 core.int buildCounterListInstancesResponse = 0;
824 buildListInstancesResponse() { 968 buildListInstancesResponse() {
825 var o = new api.ListInstancesResponse(); 969 var o = new api.ListInstancesResponse();
826 buildCounterListInstancesResponse++; 970 buildCounterListInstancesResponse++;
827 if (buildCounterListInstancesResponse < 3) { 971 if (buildCounterListInstancesResponse < 3) {
828 o.instances = buildUnnamed3457(); 972 o.instances = buildUnnamed3588();
829 o.nextPageToken = "foo"; 973 o.nextPageToken = "foo";
830 } 974 }
831 buildCounterListInstancesResponse--; 975 buildCounterListInstancesResponse--;
832 return o; 976 return o;
833 } 977 }
834 978
835 checkListInstancesResponse(api.ListInstancesResponse o) { 979 checkListInstancesResponse(api.ListInstancesResponse o) {
836 buildCounterListInstancesResponse++; 980 buildCounterListInstancesResponse++;
837 if (buildCounterListInstancesResponse < 3) { 981 if (buildCounterListInstancesResponse < 3) {
838 checkUnnamed3457(o.instances); 982 checkUnnamed3588(o.instances);
839 unittest.expect(o.nextPageToken, unittest.equals('foo')); 983 unittest.expect(o.nextPageToken, unittest.equals('foo'));
840 } 984 }
841 buildCounterListInstancesResponse--; 985 buildCounterListInstancesResponse--;
842 } 986 }
843 987
844 buildUnnamed3458() { 988 buildUnnamed3589() {
845 var o = new core.List<api.Location>(); 989 var o = new core.List<api.Location>();
846 o.add(buildLocation()); 990 o.add(buildLocation());
847 o.add(buildLocation()); 991 o.add(buildLocation());
848 return o; 992 return o;
849 } 993 }
850 994
851 checkUnnamed3458(core.List<api.Location> o) { 995 checkUnnamed3589(core.List<api.Location> o) {
852 unittest.expect(o, unittest.hasLength(2)); 996 unittest.expect(o, unittest.hasLength(2));
853 checkLocation(o[0]); 997 checkLocation(o[0]);
854 checkLocation(o[1]); 998 checkLocation(o[1]);
855 } 999 }
856 1000
857 core.int buildCounterListLocationsResponse = 0; 1001 core.int buildCounterListLocationsResponse = 0;
858 buildListLocationsResponse() { 1002 buildListLocationsResponse() {
859 var o = new api.ListLocationsResponse(); 1003 var o = new api.ListLocationsResponse();
860 buildCounterListLocationsResponse++; 1004 buildCounterListLocationsResponse++;
861 if (buildCounterListLocationsResponse < 3) { 1005 if (buildCounterListLocationsResponse < 3) {
862 o.locations = buildUnnamed3458(); 1006 o.locations = buildUnnamed3589();
863 o.nextPageToken = "foo"; 1007 o.nextPageToken = "foo";
864 } 1008 }
865 buildCounterListLocationsResponse--; 1009 buildCounterListLocationsResponse--;
866 return o; 1010 return o;
867 } 1011 }
868 1012
869 checkListLocationsResponse(api.ListLocationsResponse o) { 1013 checkListLocationsResponse(api.ListLocationsResponse o) {
870 buildCounterListLocationsResponse++; 1014 buildCounterListLocationsResponse++;
871 if (buildCounterListLocationsResponse < 3) { 1015 if (buildCounterListLocationsResponse < 3) {
872 checkUnnamed3458(o.locations); 1016 checkUnnamed3589(o.locations);
873 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1017 unittest.expect(o.nextPageToken, unittest.equals('foo'));
874 } 1018 }
875 buildCounterListLocationsResponse--; 1019 buildCounterListLocationsResponse--;
876 } 1020 }
877 1021
878 buildUnnamed3459() { 1022 buildUnnamed3590() {
879 var o = new core.List<api.Operation>(); 1023 var o = new core.List<api.Operation>();
880 o.add(buildOperation()); 1024 o.add(buildOperation());
881 o.add(buildOperation()); 1025 o.add(buildOperation());
882 return o; 1026 return o;
883 } 1027 }
884 1028
885 checkUnnamed3459(core.List<api.Operation> o) { 1029 checkUnnamed3590(core.List<api.Operation> o) {
886 unittest.expect(o, unittest.hasLength(2)); 1030 unittest.expect(o, unittest.hasLength(2));
887 checkOperation(o[0]); 1031 checkOperation(o[0]);
888 checkOperation(o[1]); 1032 checkOperation(o[1]);
889 } 1033 }
890 1034
891 core.int buildCounterListOperationsResponse = 0; 1035 core.int buildCounterListOperationsResponse = 0;
892 buildListOperationsResponse() { 1036 buildListOperationsResponse() {
893 var o = new api.ListOperationsResponse(); 1037 var o = new api.ListOperationsResponse();
894 buildCounterListOperationsResponse++; 1038 buildCounterListOperationsResponse++;
895 if (buildCounterListOperationsResponse < 3) { 1039 if (buildCounterListOperationsResponse < 3) {
896 o.nextPageToken = "foo"; 1040 o.nextPageToken = "foo";
897 o.operations = buildUnnamed3459(); 1041 o.operations = buildUnnamed3590();
898 } 1042 }
899 buildCounterListOperationsResponse--; 1043 buildCounterListOperationsResponse--;
900 return o; 1044 return o;
901 } 1045 }
902 1046
903 checkListOperationsResponse(api.ListOperationsResponse o) { 1047 checkListOperationsResponse(api.ListOperationsResponse o) {
904 buildCounterListOperationsResponse++; 1048 buildCounterListOperationsResponse++;
905 if (buildCounterListOperationsResponse < 3) { 1049 if (buildCounterListOperationsResponse < 3) {
906 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1050 unittest.expect(o.nextPageToken, unittest.equals('foo'));
907 checkUnnamed3459(o.operations); 1051 checkUnnamed3590(o.operations);
908 } 1052 }
909 buildCounterListOperationsResponse--; 1053 buildCounterListOperationsResponse--;
910 } 1054 }
911 1055
912 buildUnnamed3460() { 1056 buildUnnamed3591() {
913 var o = new core.List<api.Service>(); 1057 var o = new core.List<api.Service>();
914 o.add(buildService()); 1058 o.add(buildService());
915 o.add(buildService()); 1059 o.add(buildService());
916 return o; 1060 return o;
917 } 1061 }
918 1062
919 checkUnnamed3460(core.List<api.Service> o) { 1063 checkUnnamed3591(core.List<api.Service> o) {
920 unittest.expect(o, unittest.hasLength(2)); 1064 unittest.expect(o, unittest.hasLength(2));
921 checkService(o[0]); 1065 checkService(o[0]);
922 checkService(o[1]); 1066 checkService(o[1]);
923 } 1067 }
924 1068
925 core.int buildCounterListServicesResponse = 0; 1069 core.int buildCounterListServicesResponse = 0;
926 buildListServicesResponse() { 1070 buildListServicesResponse() {
927 var o = new api.ListServicesResponse(); 1071 var o = new api.ListServicesResponse();
928 buildCounterListServicesResponse++; 1072 buildCounterListServicesResponse++;
929 if (buildCounterListServicesResponse < 3) { 1073 if (buildCounterListServicesResponse < 3) {
930 o.nextPageToken = "foo"; 1074 o.nextPageToken = "foo";
931 o.services = buildUnnamed3460(); 1075 o.services = buildUnnamed3591();
932 } 1076 }
933 buildCounterListServicesResponse--; 1077 buildCounterListServicesResponse--;
934 return o; 1078 return o;
935 } 1079 }
936 1080
937 checkListServicesResponse(api.ListServicesResponse o) { 1081 checkListServicesResponse(api.ListServicesResponse o) {
938 buildCounterListServicesResponse++; 1082 buildCounterListServicesResponse++;
939 if (buildCounterListServicesResponse < 3) { 1083 if (buildCounterListServicesResponse < 3) {
940 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1084 unittest.expect(o.nextPageToken, unittest.equals('foo'));
941 checkUnnamed3460(o.services); 1085 checkUnnamed3591(o.services);
942 } 1086 }
943 buildCounterListServicesResponse--; 1087 buildCounterListServicesResponse--;
944 } 1088 }
945 1089
946 buildUnnamed3461() { 1090 buildUnnamed3592() {
947 var o = new core.List<api.Version>(); 1091 var o = new core.List<api.Version>();
948 o.add(buildVersion()); 1092 o.add(buildVersion());
949 o.add(buildVersion()); 1093 o.add(buildVersion());
950 return o; 1094 return o;
951 } 1095 }
952 1096
953 checkUnnamed3461(core.List<api.Version> o) { 1097 checkUnnamed3592(core.List<api.Version> o) {
954 unittest.expect(o, unittest.hasLength(2)); 1098 unittest.expect(o, unittest.hasLength(2));
955 checkVersion(o[0]); 1099 checkVersion(o[0]);
956 checkVersion(o[1]); 1100 checkVersion(o[1]);
957 } 1101 }
958 1102
959 core.int buildCounterListVersionsResponse = 0; 1103 core.int buildCounterListVersionsResponse = 0;
960 buildListVersionsResponse() { 1104 buildListVersionsResponse() {
961 var o = new api.ListVersionsResponse(); 1105 var o = new api.ListVersionsResponse();
962 buildCounterListVersionsResponse++; 1106 buildCounterListVersionsResponse++;
963 if (buildCounterListVersionsResponse < 3) { 1107 if (buildCounterListVersionsResponse < 3) {
964 o.nextPageToken = "foo"; 1108 o.nextPageToken = "foo";
965 o.versions = buildUnnamed3461(); 1109 o.versions = buildUnnamed3592();
966 } 1110 }
967 buildCounterListVersionsResponse--; 1111 buildCounterListVersionsResponse--;
968 return o; 1112 return o;
969 } 1113 }
970 1114
971 checkListVersionsResponse(api.ListVersionsResponse o) { 1115 checkListVersionsResponse(api.ListVersionsResponse o) {
972 buildCounterListVersionsResponse++; 1116 buildCounterListVersionsResponse++;
973 if (buildCounterListVersionsResponse < 3) { 1117 if (buildCounterListVersionsResponse < 3) {
974 unittest.expect(o.nextPageToken, unittest.equals('foo')); 1118 unittest.expect(o.nextPageToken, unittest.equals('foo'));
975 checkUnnamed3461(o.versions); 1119 checkUnnamed3592(o.versions);
976 } 1120 }
977 buildCounterListVersionsResponse--; 1121 buildCounterListVersionsResponse--;
978 } 1122 }
979 1123
980 core.int buildCounterLivenessCheck = 0; 1124 core.int buildCounterLivenessCheck = 0;
981 buildLivenessCheck() { 1125 buildLivenessCheck() {
982 var o = new api.LivenessCheck(); 1126 var o = new api.LivenessCheck();
983 buildCounterLivenessCheck++; 1127 buildCounterLivenessCheck++;
984 if (buildCounterLivenessCheck < 3) { 1128 if (buildCounterLivenessCheck < 3) {
985 o.checkInterval = "foo"; 1129 o.checkInterval = "foo";
(...skipping 15 matching lines...) Expand all
1001 unittest.expect(o.failureThreshold, unittest.equals(42)); 1145 unittest.expect(o.failureThreshold, unittest.equals(42));
1002 unittest.expect(o.host, unittest.equals('foo')); 1146 unittest.expect(o.host, unittest.equals('foo'));
1003 unittest.expect(o.initialDelay, unittest.equals('foo')); 1147 unittest.expect(o.initialDelay, unittest.equals('foo'));
1004 unittest.expect(o.path, unittest.equals('foo')); 1148 unittest.expect(o.path, unittest.equals('foo'));
1005 unittest.expect(o.successThreshold, unittest.equals(42)); 1149 unittest.expect(o.successThreshold, unittest.equals(42));
1006 unittest.expect(o.timeout, unittest.equals('foo')); 1150 unittest.expect(o.timeout, unittest.equals('foo'));
1007 } 1151 }
1008 buildCounterLivenessCheck--; 1152 buildCounterLivenessCheck--;
1009 } 1153 }
1010 1154
1011 buildUnnamed3462() { 1155 buildUnnamed3593() {
1012 var o = new core.Map<core.String, core.String>(); 1156 var o = new core.Map<core.String, core.String>();
1013 o["x"] = "foo"; 1157 o["x"] = "foo";
1014 o["y"] = "foo"; 1158 o["y"] = "foo";
1015 return o; 1159 return o;
1016 } 1160 }
1017 1161
1018 checkUnnamed3462(core.Map<core.String, core.String> o) { 1162 checkUnnamed3593(core.Map<core.String, core.String> o) {
1019 unittest.expect(o, unittest.hasLength(2)); 1163 unittest.expect(o, unittest.hasLength(2));
1020 unittest.expect(o["x"], unittest.equals('foo')); 1164 unittest.expect(o["x"], unittest.equals('foo'));
1021 unittest.expect(o["y"], unittest.equals('foo')); 1165 unittest.expect(o["y"], unittest.equals('foo'));
1022 } 1166 }
1023 1167
1024 buildUnnamed3463() { 1168 buildUnnamed3594() {
1025 var o = new core.Map<core.String, core.Object>(); 1169 var o = new core.Map<core.String, core.Object>();
1026 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1170 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1027 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1171 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1028 return o; 1172 return o;
1029 } 1173 }
1030 1174
1031 checkUnnamed3463(core.Map<core.String, core.Object> o) { 1175 checkUnnamed3594(core.Map<core.String, core.Object> o) {
1032 unittest.expect(o, unittest.hasLength(2)); 1176 unittest.expect(o, unittest.hasLength(2));
1033 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')); 1177 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'));
1034 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')); 1178 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'));
1035 } 1179 }
1036 1180
1037 core.int buildCounterLocation = 0; 1181 core.int buildCounterLocation = 0;
1038 buildLocation() { 1182 buildLocation() {
1039 var o = new api.Location(); 1183 var o = new api.Location();
1040 buildCounterLocation++; 1184 buildCounterLocation++;
1041 if (buildCounterLocation < 3) { 1185 if (buildCounterLocation < 3) {
1042 o.labels = buildUnnamed3462(); 1186 o.labels = buildUnnamed3593();
1043 o.locationId = "foo"; 1187 o.locationId = "foo";
1044 o.metadata = buildUnnamed3463(); 1188 o.metadata = buildUnnamed3594();
1045 o.name = "foo"; 1189 o.name = "foo";
1046 } 1190 }
1047 buildCounterLocation--; 1191 buildCounterLocation--;
1048 return o; 1192 return o;
1049 } 1193 }
1050 1194
1051 checkLocation(api.Location o) { 1195 checkLocation(api.Location o) {
1052 buildCounterLocation++; 1196 buildCounterLocation++;
1053 if (buildCounterLocation < 3) { 1197 if (buildCounterLocation < 3) {
1054 checkUnnamed3462(o.labels); 1198 checkUnnamed3593(o.labels);
1055 unittest.expect(o.locationId, unittest.equals('foo')); 1199 unittest.expect(o.locationId, unittest.equals('foo'));
1056 checkUnnamed3463(o.metadata); 1200 checkUnnamed3594(o.metadata);
1057 unittest.expect(o.name, unittest.equals('foo')); 1201 unittest.expect(o.name, unittest.equals('foo'));
1058 } 1202 }
1059 buildCounterLocation--; 1203 buildCounterLocation--;
1060 } 1204 }
1061 1205
1062 core.int buildCounterLocationMetadata = 0; 1206 core.int buildCounterLocationMetadata = 0;
1063 buildLocationMetadata() { 1207 buildLocationMetadata() {
1064 var o = new api.LocationMetadata(); 1208 var o = new api.LocationMetadata();
1065 buildCounterLocationMetadata++; 1209 buildCounterLocationMetadata++;
1066 if (buildCounterLocationMetadata < 3) { 1210 if (buildCounterLocationMetadata < 3) {
(...skipping 25 matching lines...) Expand all
1092 } 1236 }
1093 1237
1094 checkManualScaling(api.ManualScaling o) { 1238 checkManualScaling(api.ManualScaling o) {
1095 buildCounterManualScaling++; 1239 buildCounterManualScaling++;
1096 if (buildCounterManualScaling < 3) { 1240 if (buildCounterManualScaling < 3) {
1097 unittest.expect(o.instances, unittest.equals(42)); 1241 unittest.expect(o.instances, unittest.equals(42));
1098 } 1242 }
1099 buildCounterManualScaling--; 1243 buildCounterManualScaling--;
1100 } 1244 }
1101 1245
1102 buildUnnamed3464() { 1246 buildUnnamed3595() {
1103 var o = new core.List<core.String>(); 1247 var o = new core.List<core.String>();
1104 o.add("foo"); 1248 o.add("foo");
1105 o.add("foo"); 1249 o.add("foo");
1106 return o; 1250 return o;
1107 } 1251 }
1108 1252
1109 checkUnnamed3464(core.List<core.String> o) { 1253 checkUnnamed3595(core.List<core.String> o) {
1110 unittest.expect(o, unittest.hasLength(2)); 1254 unittest.expect(o, unittest.hasLength(2));
1111 unittest.expect(o[0], unittest.equals('foo')); 1255 unittest.expect(o[0], unittest.equals('foo'));
1112 unittest.expect(o[1], unittest.equals('foo')); 1256 unittest.expect(o[1], unittest.equals('foo'));
1113 } 1257 }
1114 1258
1115 core.int buildCounterNetwork = 0; 1259 core.int buildCounterNetwork = 0;
1116 buildNetwork() { 1260 buildNetwork() {
1117 var o = new api.Network(); 1261 var o = new api.Network();
1118 buildCounterNetwork++; 1262 buildCounterNetwork++;
1119 if (buildCounterNetwork < 3) { 1263 if (buildCounterNetwork < 3) {
1120 o.forwardedPorts = buildUnnamed3464(); 1264 o.forwardedPorts = buildUnnamed3595();
1121 o.instanceTag = "foo"; 1265 o.instanceTag = "foo";
1122 o.name = "foo"; 1266 o.name = "foo";
1123 o.subnetworkName = "foo"; 1267 o.subnetworkName = "foo";
1124 } 1268 }
1125 buildCounterNetwork--; 1269 buildCounterNetwork--;
1126 return o; 1270 return o;
1127 } 1271 }
1128 1272
1129 checkNetwork(api.Network o) { 1273 checkNetwork(api.Network o) {
1130 buildCounterNetwork++; 1274 buildCounterNetwork++;
1131 if (buildCounterNetwork < 3) { 1275 if (buildCounterNetwork < 3) {
1132 checkUnnamed3464(o.forwardedPorts); 1276 checkUnnamed3595(o.forwardedPorts);
1133 unittest.expect(o.instanceTag, unittest.equals('foo')); 1277 unittest.expect(o.instanceTag, unittest.equals('foo'));
1134 unittest.expect(o.name, unittest.equals('foo')); 1278 unittest.expect(o.name, unittest.equals('foo'));
1135 unittest.expect(o.subnetworkName, unittest.equals('foo')); 1279 unittest.expect(o.subnetworkName, unittest.equals('foo'));
1136 } 1280 }
1137 buildCounterNetwork--; 1281 buildCounterNetwork--;
1138 } 1282 }
1139 1283
1140 core.int buildCounterNetworkUtilization = 0; 1284 core.int buildCounterNetworkUtilization = 0;
1141 buildNetworkUtilization() { 1285 buildNetworkUtilization() {
1142 var o = new api.NetworkUtilization(); 1286 var o = new api.NetworkUtilization();
(...skipping 12 matching lines...) Expand all
1155 buildCounterNetworkUtilization++; 1299 buildCounterNetworkUtilization++;
1156 if (buildCounterNetworkUtilization < 3) { 1300 if (buildCounterNetworkUtilization < 3) {
1157 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42)); 1301 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42));
1158 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42)); 1302 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42));
1159 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42)); 1303 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42));
1160 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42)); 1304 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42));
1161 } 1305 }
1162 buildCounterNetworkUtilization--; 1306 buildCounterNetworkUtilization--;
1163 } 1307 }
1164 1308
1165 buildUnnamed3465() { 1309 buildUnnamed3596() {
1166 var o = new core.Map<core.String, core.Object>(); 1310 var o = new core.Map<core.String, core.Object>();
1167 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1311 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1168 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1312 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1169 return o; 1313 return o;
1170 } 1314 }
1171 1315
1172 checkUnnamed3465(core.Map<core.String, core.Object> o) { 1316 checkUnnamed3596(core.Map<core.String, core.Object> o) {
1173 unittest.expect(o, unittest.hasLength(2)); 1317 unittest.expect(o, unittest.hasLength(2));
1174 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')); 1318 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'));
1175 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')); 1319 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'));
1176 } 1320 }
1177 1321
1178 buildUnnamed3466() { 1322 buildUnnamed3597() {
1179 var o = new core.Map<core.String, core.Object>(); 1323 var o = new core.Map<core.String, core.Object>();
1180 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1324 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1181 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1325 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1182 return o; 1326 return o;
1183 } 1327 }
1184 1328
1185 checkUnnamed3466(core.Map<core.String, core.Object> o) { 1329 checkUnnamed3597(core.Map<core.String, core.Object> o) {
1186 unittest.expect(o, unittest.hasLength(2)); 1330 unittest.expect(o, unittest.hasLength(2));
1187 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')); 1331 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'));
1188 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')); 1332 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'));
1189 } 1333 }
1190 1334
1191 core.int buildCounterOperation = 0; 1335 core.int buildCounterOperation = 0;
1192 buildOperation() { 1336 buildOperation() {
1193 var o = new api.Operation(); 1337 var o = new api.Operation();
1194 buildCounterOperation++; 1338 buildCounterOperation++;
1195 if (buildCounterOperation < 3) { 1339 if (buildCounterOperation < 3) {
1196 o.done = true; 1340 o.done = true;
1197 o.error = buildStatus(); 1341 o.error = buildStatus();
1198 o.metadata = buildUnnamed3465(); 1342 o.metadata = buildUnnamed3596();
1199 o.name = "foo"; 1343 o.name = "foo";
1200 o.response = buildUnnamed3466(); 1344 o.response = buildUnnamed3597();
1201 } 1345 }
1202 buildCounterOperation--; 1346 buildCounterOperation--;
1203 return o; 1347 return o;
1204 } 1348 }
1205 1349
1206 checkOperation(api.Operation o) { 1350 checkOperation(api.Operation o) {
1207 buildCounterOperation++; 1351 buildCounterOperation++;
1208 if (buildCounterOperation < 3) { 1352 if (buildCounterOperation < 3) {
1209 unittest.expect(o.done, unittest.isTrue); 1353 unittest.expect(o.done, unittest.isTrue);
1210 checkStatus(o.error); 1354 checkStatus(o.error);
1211 checkUnnamed3465(o.metadata); 1355 checkUnnamed3596(o.metadata);
1212 unittest.expect(o.name, unittest.equals('foo')); 1356 unittest.expect(o.name, unittest.equals('foo'));
1213 checkUnnamed3466(o.response); 1357 checkUnnamed3597(o.response);
1214 } 1358 }
1215 buildCounterOperation--; 1359 buildCounterOperation--;
1216 } 1360 }
1217 1361
1218 core.int buildCounterOperationMetadata = 0; 1362 core.int buildCounterOperationMetadata = 0;
1219 buildOperationMetadata() { 1363 buildOperationMetadata() {
1220 var o = new api.OperationMetadata(); 1364 var o = new api.OperationMetadata();
1221 buildCounterOperationMetadata++; 1365 buildCounterOperationMetadata++;
1222 if (buildCounterOperationMetadata < 3) { 1366 if (buildCounterOperationMetadata < 3) {
1223 o.endTime = "foo"; 1367 o.endTime = "foo";
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 if (buildCounterOperationMetadataExperimental < 3) { 1408 if (buildCounterOperationMetadataExperimental < 3) {
1265 unittest.expect(o.endTime, unittest.equals('foo')); 1409 unittest.expect(o.endTime, unittest.equals('foo'));
1266 unittest.expect(o.insertTime, unittest.equals('foo')); 1410 unittest.expect(o.insertTime, unittest.equals('foo'));
1267 unittest.expect(o.method, unittest.equals('foo')); 1411 unittest.expect(o.method, unittest.equals('foo'));
1268 unittest.expect(o.target, unittest.equals('foo')); 1412 unittest.expect(o.target, unittest.equals('foo'));
1269 unittest.expect(o.user, unittest.equals('foo')); 1413 unittest.expect(o.user, unittest.equals('foo'));
1270 } 1414 }
1271 buildCounterOperationMetadataExperimental--; 1415 buildCounterOperationMetadataExperimental--;
1272 } 1416 }
1273 1417
1274 buildUnnamed3467() { 1418 buildUnnamed3598() {
1275 var o = new core.List<core.String>(); 1419 var o = new core.List<core.String>();
1276 o.add("foo"); 1420 o.add("foo");
1277 o.add("foo"); 1421 o.add("foo");
1278 return o; 1422 return o;
1279 } 1423 }
1280 1424
1281 checkUnnamed3467(core.List<core.String> o) { 1425 checkUnnamed3598(core.List<core.String> o) {
1282 unittest.expect(o, unittest.hasLength(2)); 1426 unittest.expect(o, unittest.hasLength(2));
1283 unittest.expect(o[0], unittest.equals('foo')); 1427 unittest.expect(o[0], unittest.equals('foo'));
1284 unittest.expect(o[1], unittest.equals('foo')); 1428 unittest.expect(o[1], unittest.equals('foo'));
1285 } 1429 }
1286 1430
1287 core.int buildCounterOperationMetadataV1 = 0; 1431 core.int buildCounterOperationMetadataV1 = 0;
1288 buildOperationMetadataV1() { 1432 buildOperationMetadataV1() {
1289 var o = new api.OperationMetadataV1(); 1433 var o = new api.OperationMetadataV1();
1290 buildCounterOperationMetadataV1++; 1434 buildCounterOperationMetadataV1++;
1291 if (buildCounterOperationMetadataV1 < 3) { 1435 if (buildCounterOperationMetadataV1 < 3) {
1292 o.endTime = "foo"; 1436 o.endTime = "foo";
1293 o.ephemeralMessage = "foo"; 1437 o.ephemeralMessage = "foo";
1294 o.insertTime = "foo"; 1438 o.insertTime = "foo";
1295 o.method = "foo"; 1439 o.method = "foo";
1296 o.target = "foo"; 1440 o.target = "foo";
1297 o.user = "foo"; 1441 o.user = "foo";
1298 o.warning = buildUnnamed3467(); 1442 o.warning = buildUnnamed3598();
1299 } 1443 }
1300 buildCounterOperationMetadataV1--; 1444 buildCounterOperationMetadataV1--;
1301 return o; 1445 return o;
1302 } 1446 }
1303 1447
1304 checkOperationMetadataV1(api.OperationMetadataV1 o) { 1448 checkOperationMetadataV1(api.OperationMetadataV1 o) {
1305 buildCounterOperationMetadataV1++; 1449 buildCounterOperationMetadataV1++;
1306 if (buildCounterOperationMetadataV1 < 3) { 1450 if (buildCounterOperationMetadataV1 < 3) {
1307 unittest.expect(o.endTime, unittest.equals('foo')); 1451 unittest.expect(o.endTime, unittest.equals('foo'));
1308 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1452 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1309 unittest.expect(o.insertTime, unittest.equals('foo')); 1453 unittest.expect(o.insertTime, unittest.equals('foo'));
1310 unittest.expect(o.method, unittest.equals('foo')); 1454 unittest.expect(o.method, unittest.equals('foo'));
1311 unittest.expect(o.target, unittest.equals('foo')); 1455 unittest.expect(o.target, unittest.equals('foo'));
1312 unittest.expect(o.user, unittest.equals('foo')); 1456 unittest.expect(o.user, unittest.equals('foo'));
1313 checkUnnamed3467(o.warning); 1457 checkUnnamed3598(o.warning);
1314 } 1458 }
1315 buildCounterOperationMetadataV1--; 1459 buildCounterOperationMetadataV1--;
1316 } 1460 }
1317 1461
1318 buildUnnamed3468() { 1462 buildUnnamed3599() {
1319 var o = new core.List<core.String>(); 1463 var o = new core.List<core.String>();
1320 o.add("foo"); 1464 o.add("foo");
1321 o.add("foo"); 1465 o.add("foo");
1322 return o; 1466 return o;
1323 } 1467 }
1324 1468
1325 checkUnnamed3468(core.List<core.String> o) { 1469 checkUnnamed3599(core.List<core.String> o) {
1326 unittest.expect(o, unittest.hasLength(2)); 1470 unittest.expect(o, unittest.hasLength(2));
1327 unittest.expect(o[0], unittest.equals('foo')); 1471 unittest.expect(o[0], unittest.equals('foo'));
1328 unittest.expect(o[1], unittest.equals('foo')); 1472 unittest.expect(o[1], unittest.equals('foo'));
1329 } 1473 }
1330 1474
1331 core.int buildCounterOperationMetadataV1Alpha = 0; 1475 core.int buildCounterOperationMetadataV1Alpha = 0;
1332 buildOperationMetadataV1Alpha() { 1476 buildOperationMetadataV1Alpha() {
1333 var o = new api.OperationMetadataV1Alpha(); 1477 var o = new api.OperationMetadataV1Alpha();
1334 buildCounterOperationMetadataV1Alpha++; 1478 buildCounterOperationMetadataV1Alpha++;
1335 if (buildCounterOperationMetadataV1Alpha < 3) { 1479 if (buildCounterOperationMetadataV1Alpha < 3) {
1336 o.endTime = "foo"; 1480 o.endTime = "foo";
1337 o.ephemeralMessage = "foo"; 1481 o.ephemeralMessage = "foo";
1338 o.insertTime = "foo"; 1482 o.insertTime = "foo";
1339 o.method = "foo"; 1483 o.method = "foo";
1340 o.target = "foo"; 1484 o.target = "foo";
1341 o.user = "foo"; 1485 o.user = "foo";
1342 o.warning = buildUnnamed3468(); 1486 o.warning = buildUnnamed3599();
1343 } 1487 }
1344 buildCounterOperationMetadataV1Alpha--; 1488 buildCounterOperationMetadataV1Alpha--;
1345 return o; 1489 return o;
1346 } 1490 }
1347 1491
1348 checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) { 1492 checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) {
1349 buildCounterOperationMetadataV1Alpha++; 1493 buildCounterOperationMetadataV1Alpha++;
1350 if (buildCounterOperationMetadataV1Alpha < 3) { 1494 if (buildCounterOperationMetadataV1Alpha < 3) {
1351 unittest.expect(o.endTime, unittest.equals('foo')); 1495 unittest.expect(o.endTime, unittest.equals('foo'));
1352 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1496 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1353 unittest.expect(o.insertTime, unittest.equals('foo')); 1497 unittest.expect(o.insertTime, unittest.equals('foo'));
1354 unittest.expect(o.method, unittest.equals('foo')); 1498 unittest.expect(o.method, unittest.equals('foo'));
1355 unittest.expect(o.target, unittest.equals('foo')); 1499 unittest.expect(o.target, unittest.equals('foo'));
1356 unittest.expect(o.user, unittest.equals('foo')); 1500 unittest.expect(o.user, unittest.equals('foo'));
1357 checkUnnamed3468(o.warning); 1501 checkUnnamed3599(o.warning);
1358 } 1502 }
1359 buildCounterOperationMetadataV1Alpha--; 1503 buildCounterOperationMetadataV1Alpha--;
1360 } 1504 }
1361 1505
1362 buildUnnamed3469() { 1506 buildUnnamed3600() {
1363 var o = new core.List<core.String>(); 1507 var o = new core.List<core.String>();
1364 o.add("foo"); 1508 o.add("foo");
1365 o.add("foo"); 1509 o.add("foo");
1366 return o; 1510 return o;
1367 } 1511 }
1368 1512
1369 checkUnnamed3469(core.List<core.String> o) { 1513 checkUnnamed3600(core.List<core.String> o) {
1370 unittest.expect(o, unittest.hasLength(2)); 1514 unittest.expect(o, unittest.hasLength(2));
1371 unittest.expect(o[0], unittest.equals('foo')); 1515 unittest.expect(o[0], unittest.equals('foo'));
1372 unittest.expect(o[1], unittest.equals('foo')); 1516 unittest.expect(o[1], unittest.equals('foo'));
1373 } 1517 }
1374 1518
1375 core.int buildCounterOperationMetadataV1Beta = 0; 1519 core.int buildCounterOperationMetadataV1Beta = 0;
1376 buildOperationMetadataV1Beta() { 1520 buildOperationMetadataV1Beta() {
1377 var o = new api.OperationMetadataV1Beta(); 1521 var o = new api.OperationMetadataV1Beta();
1378 buildCounterOperationMetadataV1Beta++; 1522 buildCounterOperationMetadataV1Beta++;
1379 if (buildCounterOperationMetadataV1Beta < 3) { 1523 if (buildCounterOperationMetadataV1Beta < 3) {
1380 o.endTime = "foo"; 1524 o.endTime = "foo";
1381 o.ephemeralMessage = "foo"; 1525 o.ephemeralMessage = "foo";
1382 o.insertTime = "foo"; 1526 o.insertTime = "foo";
1383 o.method = "foo"; 1527 o.method = "foo";
1384 o.target = "foo"; 1528 o.target = "foo";
1385 o.user = "foo"; 1529 o.user = "foo";
1386 o.warning = buildUnnamed3469(); 1530 o.warning = buildUnnamed3600();
1387 } 1531 }
1388 buildCounterOperationMetadataV1Beta--; 1532 buildCounterOperationMetadataV1Beta--;
1389 return o; 1533 return o;
1390 } 1534 }
1391 1535
1392 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { 1536 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) {
1393 buildCounterOperationMetadataV1Beta++; 1537 buildCounterOperationMetadataV1Beta++;
1394 if (buildCounterOperationMetadataV1Beta < 3) { 1538 if (buildCounterOperationMetadataV1Beta < 3) {
1395 unittest.expect(o.endTime, unittest.equals('foo')); 1539 unittest.expect(o.endTime, unittest.equals('foo'));
1396 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1540 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1397 unittest.expect(o.insertTime, unittest.equals('foo')); 1541 unittest.expect(o.insertTime, unittest.equals('foo'));
1398 unittest.expect(o.method, unittest.equals('foo')); 1542 unittest.expect(o.method, unittest.equals('foo'));
1399 unittest.expect(o.target, unittest.equals('foo')); 1543 unittest.expect(o.target, unittest.equals('foo'));
1400 unittest.expect(o.user, unittest.equals('foo')); 1544 unittest.expect(o.user, unittest.equals('foo'));
1401 checkUnnamed3469(o.warning); 1545 checkUnnamed3600(o.warning);
1402 } 1546 }
1403 buildCounterOperationMetadataV1Beta--; 1547 buildCounterOperationMetadataV1Beta--;
1404 } 1548 }
1405 1549
1406 core.int buildCounterOperationMetadataV1Beta5 = 0; 1550 core.int buildCounterOperationMetadataV1Beta5 = 0;
1407 buildOperationMetadataV1Beta5() { 1551 buildOperationMetadataV1Beta5() {
1408 var o = new api.OperationMetadataV1Beta5(); 1552 var o = new api.OperationMetadataV1Beta5();
1409 buildCounterOperationMetadataV1Beta5++; 1553 buildCounterOperationMetadataV1Beta5++;
1410 if (buildCounterOperationMetadataV1Beta5 < 3) { 1554 if (buildCounterOperationMetadataV1Beta5 < 3) {
1411 o.endTime = "foo"; 1555 o.endTime = "foo";
(...skipping 16 matching lines...) Expand all
1428 unittest.expect(o.user, unittest.equals('foo')); 1572 unittest.expect(o.user, unittest.equals('foo'));
1429 } 1573 }
1430 buildCounterOperationMetadataV1Beta5--; 1574 buildCounterOperationMetadataV1Beta5--;
1431 } 1575 }
1432 1576
1433 core.int buildCounterReadinessCheck = 0; 1577 core.int buildCounterReadinessCheck = 0;
1434 buildReadinessCheck() { 1578 buildReadinessCheck() {
1435 var o = new api.ReadinessCheck(); 1579 var o = new api.ReadinessCheck();
1436 buildCounterReadinessCheck++; 1580 buildCounterReadinessCheck++;
1437 if (buildCounterReadinessCheck < 3) { 1581 if (buildCounterReadinessCheck < 3) {
1582 o.appStartTimeout = "foo";
1438 o.checkInterval = "foo"; 1583 o.checkInterval = "foo";
1439 o.failureThreshold = 42; 1584 o.failureThreshold = 42;
1440 o.host = "foo"; 1585 o.host = "foo";
1441 o.path = "foo"; 1586 o.path = "foo";
1442 o.successThreshold = 42; 1587 o.successThreshold = 42;
1443 o.timeout = "foo"; 1588 o.timeout = "foo";
1444 } 1589 }
1445 buildCounterReadinessCheck--; 1590 buildCounterReadinessCheck--;
1446 return o; 1591 return o;
1447 } 1592 }
1448 1593
1449 checkReadinessCheck(api.ReadinessCheck o) { 1594 checkReadinessCheck(api.ReadinessCheck o) {
1450 buildCounterReadinessCheck++; 1595 buildCounterReadinessCheck++;
1451 if (buildCounterReadinessCheck < 3) { 1596 if (buildCounterReadinessCheck < 3) {
1597 unittest.expect(o.appStartTimeout, unittest.equals('foo'));
1452 unittest.expect(o.checkInterval, unittest.equals('foo')); 1598 unittest.expect(o.checkInterval, unittest.equals('foo'));
1453 unittest.expect(o.failureThreshold, unittest.equals(42)); 1599 unittest.expect(o.failureThreshold, unittest.equals(42));
1454 unittest.expect(o.host, unittest.equals('foo')); 1600 unittest.expect(o.host, unittest.equals('foo'));
1455 unittest.expect(o.path, unittest.equals('foo')); 1601 unittest.expect(o.path, unittest.equals('foo'));
1456 unittest.expect(o.successThreshold, unittest.equals(42)); 1602 unittest.expect(o.successThreshold, unittest.equals(42));
1457 unittest.expect(o.timeout, unittest.equals('foo')); 1603 unittest.expect(o.timeout, unittest.equals('foo'));
1458 } 1604 }
1459 buildCounterReadinessCheck--; 1605 buildCounterReadinessCheck--;
1460 } 1606 }
1461 1607
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 checkResourceRecord(api.ResourceRecord o) { 1659 checkResourceRecord(api.ResourceRecord o) {
1514 buildCounterResourceRecord++; 1660 buildCounterResourceRecord++;
1515 if (buildCounterResourceRecord < 3) { 1661 if (buildCounterResourceRecord < 3) {
1516 unittest.expect(o.name, unittest.equals('foo')); 1662 unittest.expect(o.name, unittest.equals('foo'));
1517 unittest.expect(o.rrdata, unittest.equals('foo')); 1663 unittest.expect(o.rrdata, unittest.equals('foo'));
1518 unittest.expect(o.type, unittest.equals('foo')); 1664 unittest.expect(o.type, unittest.equals('foo'));
1519 } 1665 }
1520 buildCounterResourceRecord--; 1666 buildCounterResourceRecord--;
1521 } 1667 }
1522 1668
1523 buildUnnamed3470() { 1669 buildUnnamed3601() {
1524 var o = new core.List<api.Volume>(); 1670 var o = new core.List<api.Volume>();
1525 o.add(buildVolume()); 1671 o.add(buildVolume());
1526 o.add(buildVolume()); 1672 o.add(buildVolume());
1527 return o; 1673 return o;
1528 } 1674 }
1529 1675
1530 checkUnnamed3470(core.List<api.Volume> o) { 1676 checkUnnamed3601(core.List<api.Volume> o) {
1531 unittest.expect(o, unittest.hasLength(2)); 1677 unittest.expect(o, unittest.hasLength(2));
1532 checkVolume(o[0]); 1678 checkVolume(o[0]);
1533 checkVolume(o[1]); 1679 checkVolume(o[1]);
1534 } 1680 }
1535 1681
1536 core.int buildCounterResources = 0; 1682 core.int buildCounterResources = 0;
1537 buildResources() { 1683 buildResources() {
1538 var o = new api.Resources(); 1684 var o = new api.Resources();
1539 buildCounterResources++; 1685 buildCounterResources++;
1540 if (buildCounterResources < 3) { 1686 if (buildCounterResources < 3) {
1541 o.cpu = 42.0; 1687 o.cpu = 42.0;
1542 o.diskGb = 42.0; 1688 o.diskGb = 42.0;
1543 o.memoryGb = 42.0; 1689 o.memoryGb = 42.0;
1544 o.volumes = buildUnnamed3470(); 1690 o.volumes = buildUnnamed3601();
1545 } 1691 }
1546 buildCounterResources--; 1692 buildCounterResources--;
1547 return o; 1693 return o;
1548 } 1694 }
1549 1695
1550 checkResources(api.Resources o) { 1696 checkResources(api.Resources o) {
1551 buildCounterResources++; 1697 buildCounterResources++;
1552 if (buildCounterResources < 3) { 1698 if (buildCounterResources < 3) {
1553 unittest.expect(o.cpu, unittest.equals(42.0)); 1699 unittest.expect(o.cpu, unittest.equals(42.0));
1554 unittest.expect(o.diskGb, unittest.equals(42.0)); 1700 unittest.expect(o.diskGb, unittest.equals(42.0));
1555 unittest.expect(o.memoryGb, unittest.equals(42.0)); 1701 unittest.expect(o.memoryGb, unittest.equals(42.0));
1556 checkUnnamed3470(o.volumes); 1702 checkUnnamed3601(o.volumes);
1557 } 1703 }
1558 buildCounterResources--; 1704 buildCounterResources--;
1559 } 1705 }
1560 1706
1561 core.int buildCounterScriptHandler = 0; 1707 core.int buildCounterScriptHandler = 0;
1562 buildScriptHandler() { 1708 buildScriptHandler() {
1563 var o = new api.ScriptHandler(); 1709 var o = new api.ScriptHandler();
1564 buildCounterScriptHandler++; 1710 buildCounterScriptHandler++;
1565 if (buildCounterScriptHandler < 3) { 1711 if (buildCounterScriptHandler < 3) {
1566 o.scriptPath = "foo"; 1712 o.scriptPath = "foo";
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
1617 unittest.expect(o.certificateId, unittest.equals('foo')); 1763 unittest.expect(o.certificateId, unittest.equals('foo'));
1618 } 1764 }
1619 buildCounterSslSettings--; 1765 buildCounterSslSettings--;
1620 } 1766 }
1621 1767
1622 core.int buildCounterStandardSchedulerSettings = 0; 1768 core.int buildCounterStandardSchedulerSettings = 0;
1623 buildStandardSchedulerSettings() { 1769 buildStandardSchedulerSettings() {
1624 var o = new api.StandardSchedulerSettings(); 1770 var o = new api.StandardSchedulerSettings();
1625 buildCounterStandardSchedulerSettings++; 1771 buildCounterStandardSchedulerSettings++;
1626 if (buildCounterStandardSchedulerSettings < 3) { 1772 if (buildCounterStandardSchedulerSettings < 3) {
1773 o.maxInstances = 42;
1774 o.minInstances = 42;
1627 o.targetCpuUtilization = 42.0; 1775 o.targetCpuUtilization = 42.0;
1628 o.targetThroughputUtilization = 42.0; 1776 o.targetThroughputUtilization = 42.0;
1629 } 1777 }
1630 buildCounterStandardSchedulerSettings--; 1778 buildCounterStandardSchedulerSettings--;
1631 return o; 1779 return o;
1632 } 1780 }
1633 1781
1634 checkStandardSchedulerSettings(api.StandardSchedulerSettings o) { 1782 checkStandardSchedulerSettings(api.StandardSchedulerSettings o) {
1635 buildCounterStandardSchedulerSettings++; 1783 buildCounterStandardSchedulerSettings++;
1636 if (buildCounterStandardSchedulerSettings < 3) { 1784 if (buildCounterStandardSchedulerSettings < 3) {
1785 unittest.expect(o.maxInstances, unittest.equals(42));
1786 unittest.expect(o.minInstances, unittest.equals(42));
1637 unittest.expect(o.targetCpuUtilization, unittest.equals(42.0)); 1787 unittest.expect(o.targetCpuUtilization, unittest.equals(42.0));
1638 unittest.expect(o.targetThroughputUtilization, unittest.equals(42.0)); 1788 unittest.expect(o.targetThroughputUtilization, unittest.equals(42.0));
1639 } 1789 }
1640 buildCounterStandardSchedulerSettings--; 1790 buildCounterStandardSchedulerSettings--;
1641 } 1791 }
1642 1792
1643 buildUnnamed3471() { 1793 buildUnnamed3602() {
1644 var o = new core.Map<core.String, core.String>(); 1794 var o = new core.Map<core.String, core.String>();
1645 o["x"] = "foo"; 1795 o["x"] = "foo";
1646 o["y"] = "foo"; 1796 o["y"] = "foo";
1647 return o; 1797 return o;
1648 } 1798 }
1649 1799
1650 checkUnnamed3471(core.Map<core.String, core.String> o) { 1800 checkUnnamed3602(core.Map<core.String, core.String> o) {
1651 unittest.expect(o, unittest.hasLength(2)); 1801 unittest.expect(o, unittest.hasLength(2));
1652 unittest.expect(o["x"], unittest.equals('foo')); 1802 unittest.expect(o["x"], unittest.equals('foo'));
1653 unittest.expect(o["y"], unittest.equals('foo')); 1803 unittest.expect(o["y"], unittest.equals('foo'));
1654 } 1804 }
1655 1805
1656 core.int buildCounterStaticFilesHandler = 0; 1806 core.int buildCounterStaticFilesHandler = 0;
1657 buildStaticFilesHandler() { 1807 buildStaticFilesHandler() {
1658 var o = new api.StaticFilesHandler(); 1808 var o = new api.StaticFilesHandler();
1659 buildCounterStaticFilesHandler++; 1809 buildCounterStaticFilesHandler++;
1660 if (buildCounterStaticFilesHandler < 3) { 1810 if (buildCounterStaticFilesHandler < 3) {
1661 o.applicationReadable = true; 1811 o.applicationReadable = true;
1662 o.expiration = "foo"; 1812 o.expiration = "foo";
1663 o.httpHeaders = buildUnnamed3471(); 1813 o.httpHeaders = buildUnnamed3602();
1664 o.mimeType = "foo"; 1814 o.mimeType = "foo";
1665 o.path = "foo"; 1815 o.path = "foo";
1666 o.requireMatchingFile = true; 1816 o.requireMatchingFile = true;
1667 o.uploadPathRegex = "foo"; 1817 o.uploadPathRegex = "foo";
1668 } 1818 }
1669 buildCounterStaticFilesHandler--; 1819 buildCounterStaticFilesHandler--;
1670 return o; 1820 return o;
1671 } 1821 }
1672 1822
1673 checkStaticFilesHandler(api.StaticFilesHandler o) { 1823 checkStaticFilesHandler(api.StaticFilesHandler o) {
1674 buildCounterStaticFilesHandler++; 1824 buildCounterStaticFilesHandler++;
1675 if (buildCounterStaticFilesHandler < 3) { 1825 if (buildCounterStaticFilesHandler < 3) {
1676 unittest.expect(o.applicationReadable, unittest.isTrue); 1826 unittest.expect(o.applicationReadable, unittest.isTrue);
1677 unittest.expect(o.expiration, unittest.equals('foo')); 1827 unittest.expect(o.expiration, unittest.equals('foo'));
1678 checkUnnamed3471(o.httpHeaders); 1828 checkUnnamed3602(o.httpHeaders);
1679 unittest.expect(o.mimeType, unittest.equals('foo')); 1829 unittest.expect(o.mimeType, unittest.equals('foo'));
1680 unittest.expect(o.path, unittest.equals('foo')); 1830 unittest.expect(o.path, unittest.equals('foo'));
1681 unittest.expect(o.requireMatchingFile, unittest.isTrue); 1831 unittest.expect(o.requireMatchingFile, unittest.isTrue);
1682 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); 1832 unittest.expect(o.uploadPathRegex, unittest.equals('foo'));
1683 } 1833 }
1684 buildCounterStaticFilesHandler--; 1834 buildCounterStaticFilesHandler--;
1685 } 1835 }
1686 1836
1687 buildUnnamed3472() { 1837 buildUnnamed3603() {
1688 var o = new core.Map<core.String, core.Object>(); 1838 var o = new core.Map<core.String, core.Object>();
1689 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1839 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1690 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1840 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1691 return o; 1841 return o;
1692 } 1842 }
1693 1843
1694 checkUnnamed3472(core.Map<core.String, core.Object> o) { 1844 checkUnnamed3603(core.Map<core.String, core.Object> o) {
1695 unittest.expect(o, unittest.hasLength(2)); 1845 unittest.expect(o, unittest.hasLength(2));
1696 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')); 1846 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'));
1697 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')); 1847 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'));
1698 } 1848 }
1699 1849
1700 buildUnnamed3473() { 1850 buildUnnamed3604() {
1701 var o = new core.List<core.Map<core.String, core.Object>>(); 1851 var o = new core.List<core.Map<core.String, core.Object>>();
1702 o.add(buildUnnamed3472()); 1852 o.add(buildUnnamed3603());
1703 o.add(buildUnnamed3472()); 1853 o.add(buildUnnamed3603());
1704 return o; 1854 return o;
1705 } 1855 }
1706 1856
1707 checkUnnamed3473(core.List<core.Map<core.String, core.Object>> o) { 1857 checkUnnamed3604(core.List<core.Map<core.String, core.Object>> o) {
1708 unittest.expect(o, unittest.hasLength(2)); 1858 unittest.expect(o, unittest.hasLength(2));
1709 checkUnnamed3472(o[0]); 1859 checkUnnamed3603(o[0]);
1710 checkUnnamed3472(o[1]); 1860 checkUnnamed3603(o[1]);
1711 } 1861 }
1712 1862
1713 core.int buildCounterStatus = 0; 1863 core.int buildCounterStatus = 0;
1714 buildStatus() { 1864 buildStatus() {
1715 var o = new api.Status(); 1865 var o = new api.Status();
1716 buildCounterStatus++; 1866 buildCounterStatus++;
1717 if (buildCounterStatus < 3) { 1867 if (buildCounterStatus < 3) {
1718 o.code = 42; 1868 o.code = 42;
1719 o.details = buildUnnamed3473(); 1869 o.details = buildUnnamed3604();
1720 o.message = "foo"; 1870 o.message = "foo";
1721 } 1871 }
1722 buildCounterStatus--; 1872 buildCounterStatus--;
1723 return o; 1873 return o;
1724 } 1874 }
1725 1875
1726 checkStatus(api.Status o) { 1876 checkStatus(api.Status o) {
1727 buildCounterStatus++; 1877 buildCounterStatus++;
1728 if (buildCounterStatus < 3) { 1878 if (buildCounterStatus < 3) {
1729 unittest.expect(o.code, unittest.equals(42)); 1879 unittest.expect(o.code, unittest.equals(42));
1730 checkUnnamed3473(o.details); 1880 checkUnnamed3604(o.details);
1731 unittest.expect(o.message, unittest.equals('foo')); 1881 unittest.expect(o.message, unittest.equals('foo'));
1732 } 1882 }
1733 buildCounterStatus--; 1883 buildCounterStatus--;
1734 } 1884 }
1735 1885
1736 buildUnnamed3474() { 1886 buildUnnamed3605() {
1737 var o = new core.Map<core.String, core.double>(); 1887 var o = new core.Map<core.String, core.double>();
1738 o["x"] = 42.0; 1888 o["x"] = 42.0;
1739 o["y"] = 42.0; 1889 o["y"] = 42.0;
1740 return o; 1890 return o;
1741 } 1891 }
1742 1892
1743 checkUnnamed3474(core.Map<core.String, core.double> o) { 1893 checkUnnamed3605(core.Map<core.String, core.double> o) {
1744 unittest.expect(o, unittest.hasLength(2)); 1894 unittest.expect(o, unittest.hasLength(2));
1745 unittest.expect(o["x"], unittest.equals(42.0)); 1895 unittest.expect(o["x"], unittest.equals(42.0));
1746 unittest.expect(o["y"], unittest.equals(42.0)); 1896 unittest.expect(o["y"], unittest.equals(42.0));
1747 } 1897 }
1748 1898
1749 core.int buildCounterTrafficSplit = 0; 1899 core.int buildCounterTrafficSplit = 0;
1750 buildTrafficSplit() { 1900 buildTrafficSplit() {
1751 var o = new api.TrafficSplit(); 1901 var o = new api.TrafficSplit();
1752 buildCounterTrafficSplit++; 1902 buildCounterTrafficSplit++;
1753 if (buildCounterTrafficSplit < 3) { 1903 if (buildCounterTrafficSplit < 3) {
1754 o.allocations = buildUnnamed3474(); 1904 o.allocations = buildUnnamed3605();
1755 o.shardBy = "foo"; 1905 o.shardBy = "foo";
1756 } 1906 }
1757 buildCounterTrafficSplit--; 1907 buildCounterTrafficSplit--;
1758 return o; 1908 return o;
1759 } 1909 }
1760 1910
1761 checkTrafficSplit(api.TrafficSplit o) { 1911 checkTrafficSplit(api.TrafficSplit o) {
1762 buildCounterTrafficSplit++; 1912 buildCounterTrafficSplit++;
1763 if (buildCounterTrafficSplit < 3) { 1913 if (buildCounterTrafficSplit < 3) {
1764 checkUnnamed3474(o.allocations); 1914 checkUnnamed3605(o.allocations);
1765 unittest.expect(o.shardBy, unittest.equals('foo')); 1915 unittest.expect(o.shardBy, unittest.equals('foo'));
1766 } 1916 }
1767 buildCounterTrafficSplit--; 1917 buildCounterTrafficSplit--;
1768 } 1918 }
1769 1919
1770 core.int buildCounterUrlDispatchRule = 0; 1920 core.int buildCounterUrlDispatchRule = 0;
1771 buildUrlDispatchRule() { 1921 buildUrlDispatchRule() {
1772 var o = new api.UrlDispatchRule(); 1922 var o = new api.UrlDispatchRule();
1773 buildCounterUrlDispatchRule++; 1923 buildCounterUrlDispatchRule++;
1774 if (buildCounterUrlDispatchRule < 3) { 1924 if (buildCounterUrlDispatchRule < 3) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1816 unittest.expect(o.login, unittest.equals('foo')); 1966 unittest.expect(o.login, unittest.equals('foo'));
1817 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); 1967 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo'));
1818 checkScriptHandler(o.script); 1968 checkScriptHandler(o.script);
1819 unittest.expect(o.securityLevel, unittest.equals('foo')); 1969 unittest.expect(o.securityLevel, unittest.equals('foo'));
1820 checkStaticFilesHandler(o.staticFiles); 1970 checkStaticFilesHandler(o.staticFiles);
1821 unittest.expect(o.urlRegex, unittest.equals('foo')); 1971 unittest.expect(o.urlRegex, unittest.equals('foo'));
1822 } 1972 }
1823 buildCounterUrlMap--; 1973 buildCounterUrlMap--;
1824 } 1974 }
1825 1975
1826 buildUnnamed3475() { 1976 buildUnnamed3606() {
1827 var o = new core.Map<core.String, core.String>(); 1977 var o = new core.Map<core.String, core.String>();
1828 o["x"] = "foo"; 1978 o["x"] = "foo";
1829 o["y"] = "foo"; 1979 o["y"] = "foo";
1830 return o; 1980 return o;
1831 } 1981 }
1832 1982
1833 checkUnnamed3475(core.Map<core.String, core.String> o) { 1983 checkUnnamed3606(core.Map<core.String, core.String> o) {
1834 unittest.expect(o, unittest.hasLength(2)); 1984 unittest.expect(o, unittest.hasLength(2));
1835 unittest.expect(o["x"], unittest.equals('foo')); 1985 unittest.expect(o["x"], unittest.equals('foo'));
1836 unittest.expect(o["y"], unittest.equals('foo')); 1986 unittest.expect(o["y"], unittest.equals('foo'));
1837 } 1987 }
1838 1988
1839 buildUnnamed3476() { 1989 buildUnnamed3607() {
1840 var o = new core.Map<core.String, core.String>(); 1990 var o = new core.Map<core.String, core.String>();
1841 o["x"] = "foo"; 1991 o["x"] = "foo";
1842 o["y"] = "foo"; 1992 o["y"] = "foo";
1843 return o; 1993 return o;
1844 } 1994 }
1845 1995
1846 checkUnnamed3476(core.Map<core.String, core.String> o) { 1996 checkUnnamed3607(core.Map<core.String, core.String> o) {
1847 unittest.expect(o, unittest.hasLength(2)); 1997 unittest.expect(o, unittest.hasLength(2));
1848 unittest.expect(o["x"], unittest.equals('foo')); 1998 unittest.expect(o["x"], unittest.equals('foo'));
1849 unittest.expect(o["y"], unittest.equals('foo')); 1999 unittest.expect(o["y"], unittest.equals('foo'));
1850 } 2000 }
1851 2001
1852 buildUnnamed3477() { 2002 buildUnnamed3608() {
1853 var o = new core.List<api.ErrorHandler>(); 2003 var o = new core.List<api.ErrorHandler>();
1854 o.add(buildErrorHandler()); 2004 o.add(buildErrorHandler());
1855 o.add(buildErrorHandler()); 2005 o.add(buildErrorHandler());
1856 return o; 2006 return o;
1857 } 2007 }
1858 2008
1859 checkUnnamed3477(core.List<api.ErrorHandler> o) { 2009 checkUnnamed3608(core.List<api.ErrorHandler> o) {
1860 unittest.expect(o, unittest.hasLength(2)); 2010 unittest.expect(o, unittest.hasLength(2));
1861 checkErrorHandler(o[0]); 2011 checkErrorHandler(o[0]);
1862 checkErrorHandler(o[1]); 2012 checkErrorHandler(o[1]);
1863 } 2013 }
1864 2014
1865 buildUnnamed3478() { 2015 buildUnnamed3609() {
1866 var o = new core.List<api.UrlMap>(); 2016 var o = new core.List<api.UrlMap>();
1867 o.add(buildUrlMap()); 2017 o.add(buildUrlMap());
1868 o.add(buildUrlMap()); 2018 o.add(buildUrlMap());
1869 return o; 2019 return o;
1870 } 2020 }
1871 2021
1872 checkUnnamed3478(core.List<api.UrlMap> o) { 2022 checkUnnamed3609(core.List<api.UrlMap> o) {
1873 unittest.expect(o, unittest.hasLength(2)); 2023 unittest.expect(o, unittest.hasLength(2));
1874 checkUrlMap(o[0]); 2024 checkUrlMap(o[0]);
1875 checkUrlMap(o[1]); 2025 checkUrlMap(o[1]);
1876 } 2026 }
1877 2027
1878 buildUnnamed3479() { 2028 buildUnnamed3610() {
1879 var o = new core.List<core.String>(); 2029 var o = new core.List<core.String>();
1880 o.add("foo"); 2030 o.add("foo");
1881 o.add("foo"); 2031 o.add("foo");
1882 return o; 2032 return o;
1883 } 2033 }
1884 2034
1885 checkUnnamed3479(core.List<core.String> o) { 2035 checkUnnamed3610(core.List<core.String> o) {
1886 unittest.expect(o, unittest.hasLength(2)); 2036 unittest.expect(o, unittest.hasLength(2));
1887 unittest.expect(o[0], unittest.equals('foo')); 2037 unittest.expect(o[0], unittest.equals('foo'));
1888 unittest.expect(o[1], unittest.equals('foo')); 2038 unittest.expect(o[1], unittest.equals('foo'));
1889 } 2039 }
1890 2040
1891 buildUnnamed3480() { 2041 buildUnnamed3611() {
1892 var o = new core.List<api.Library>(); 2042 var o = new core.List<api.Library>();
1893 o.add(buildLibrary()); 2043 o.add(buildLibrary());
1894 o.add(buildLibrary()); 2044 o.add(buildLibrary());
1895 return o; 2045 return o;
1896 } 2046 }
1897 2047
1898 checkUnnamed3480(core.List<api.Library> o) { 2048 checkUnnamed3611(core.List<api.Library> o) {
1899 unittest.expect(o, unittest.hasLength(2)); 2049 unittest.expect(o, unittest.hasLength(2));
1900 checkLibrary(o[0]); 2050 checkLibrary(o[0]);
1901 checkLibrary(o[1]); 2051 checkLibrary(o[1]);
1902 } 2052 }
1903 2053
1904 core.int buildCounterVersion = 0; 2054 core.int buildCounterVersion = 0;
1905 buildVersion() { 2055 buildVersion() {
1906 var o = new api.Version(); 2056 var o = new api.Version();
1907 buildCounterVersion++; 2057 buildCounterVersion++;
1908 if (buildCounterVersion < 3) { 2058 if (buildCounterVersion < 3) {
1909 o.apiConfig = buildApiConfigHandler(); 2059 o.apiConfig = buildApiConfigHandler();
1910 o.automaticScaling = buildAutomaticScaling(); 2060 o.automaticScaling = buildAutomaticScaling();
1911 o.basicScaling = buildBasicScaling(); 2061 o.basicScaling = buildBasicScaling();
1912 o.betaSettings = buildUnnamed3475(); 2062 o.betaSettings = buildUnnamed3606();
1913 o.createTime = "foo"; 2063 o.createTime = "foo";
1914 o.createdBy = "foo"; 2064 o.createdBy = "foo";
1915 o.defaultExpiration = "foo"; 2065 o.defaultExpiration = "foo";
1916 o.deployment = buildDeployment(); 2066 o.deployment = buildDeployment();
1917 o.diskUsageBytes = "foo"; 2067 o.diskUsageBytes = "foo";
1918 o.endpointsApiService = buildEndpointsApiService(); 2068 o.endpointsApiService = buildEndpointsApiService();
1919 o.env = "foo"; 2069 o.env = "foo";
1920 o.envVariables = buildUnnamed3476(); 2070 o.envVariables = buildUnnamed3607();
1921 o.errorHandlers = buildUnnamed3477(); 2071 o.errorHandlers = buildUnnamed3608();
1922 o.handlers = buildUnnamed3478(); 2072 o.handlers = buildUnnamed3609();
1923 o.healthCheck = buildHealthCheck(); 2073 o.healthCheck = buildHealthCheck();
1924 o.id = "foo"; 2074 o.id = "foo";
1925 o.inboundServices = buildUnnamed3479(); 2075 o.inboundServices = buildUnnamed3610();
1926 o.instanceClass = "foo"; 2076 o.instanceClass = "foo";
1927 o.libraries = buildUnnamed3480(); 2077 o.libraries = buildUnnamed3611();
1928 o.livenessCheck = buildLivenessCheck(); 2078 o.livenessCheck = buildLivenessCheck();
1929 o.manualScaling = buildManualScaling(); 2079 o.manualScaling = buildManualScaling();
1930 o.name = "foo"; 2080 o.name = "foo";
1931 o.network = buildNetwork(); 2081 o.network = buildNetwork();
1932 o.nobuildFilesRegex = "foo"; 2082 o.nobuildFilesRegex = "foo";
1933 o.readinessCheck = buildReadinessCheck(); 2083 o.readinessCheck = buildReadinessCheck();
1934 o.resources = buildResources(); 2084 o.resources = buildResources();
1935 o.runtime = "foo"; 2085 o.runtime = "foo";
1936 o.runtimeApiVersion = "foo"; 2086 o.runtimeApiVersion = "foo";
1937 o.servingStatus = "foo"; 2087 o.servingStatus = "foo";
1938 o.threadsafe = true; 2088 o.threadsafe = true;
1939 o.versionUrl = "foo"; 2089 o.versionUrl = "foo";
1940 o.vm = true; 2090 o.vm = true;
1941 } 2091 }
1942 buildCounterVersion--; 2092 buildCounterVersion--;
1943 return o; 2093 return o;
1944 } 2094 }
1945 2095
1946 checkVersion(api.Version o) { 2096 checkVersion(api.Version o) {
1947 buildCounterVersion++; 2097 buildCounterVersion++;
1948 if (buildCounterVersion < 3) { 2098 if (buildCounterVersion < 3) {
1949 checkApiConfigHandler(o.apiConfig); 2099 checkApiConfigHandler(o.apiConfig);
1950 checkAutomaticScaling(o.automaticScaling); 2100 checkAutomaticScaling(o.automaticScaling);
1951 checkBasicScaling(o.basicScaling); 2101 checkBasicScaling(o.basicScaling);
1952 checkUnnamed3475(o.betaSettings); 2102 checkUnnamed3606(o.betaSettings);
1953 unittest.expect(o.createTime, unittest.equals('foo')); 2103 unittest.expect(o.createTime, unittest.equals('foo'));
1954 unittest.expect(o.createdBy, unittest.equals('foo')); 2104 unittest.expect(o.createdBy, unittest.equals('foo'));
1955 unittest.expect(o.defaultExpiration, unittest.equals('foo')); 2105 unittest.expect(o.defaultExpiration, unittest.equals('foo'));
1956 checkDeployment(o.deployment); 2106 checkDeployment(o.deployment);
1957 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); 2107 unittest.expect(o.diskUsageBytes, unittest.equals('foo'));
1958 checkEndpointsApiService(o.endpointsApiService); 2108 checkEndpointsApiService(o.endpointsApiService);
1959 unittest.expect(o.env, unittest.equals('foo')); 2109 unittest.expect(o.env, unittest.equals('foo'));
1960 checkUnnamed3476(o.envVariables); 2110 checkUnnamed3607(o.envVariables);
1961 checkUnnamed3477(o.errorHandlers); 2111 checkUnnamed3608(o.errorHandlers);
1962 checkUnnamed3478(o.handlers); 2112 checkUnnamed3609(o.handlers);
1963 checkHealthCheck(o.healthCheck); 2113 checkHealthCheck(o.healthCheck);
1964 unittest.expect(o.id, unittest.equals('foo')); 2114 unittest.expect(o.id, unittest.equals('foo'));
1965 checkUnnamed3479(o.inboundServices); 2115 checkUnnamed3610(o.inboundServices);
1966 unittest.expect(o.instanceClass, unittest.equals('foo')); 2116 unittest.expect(o.instanceClass, unittest.equals('foo'));
1967 checkUnnamed3480(o.libraries); 2117 checkUnnamed3611(o.libraries);
1968 checkLivenessCheck(o.livenessCheck); 2118 checkLivenessCheck(o.livenessCheck);
1969 checkManualScaling(o.manualScaling); 2119 checkManualScaling(o.manualScaling);
1970 unittest.expect(o.name, unittest.equals('foo')); 2120 unittest.expect(o.name, unittest.equals('foo'));
1971 checkNetwork(o.network); 2121 checkNetwork(o.network);
1972 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); 2122 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo'));
1973 checkReadinessCheck(o.readinessCheck); 2123 checkReadinessCheck(o.readinessCheck);
1974 checkResources(o.resources); 2124 checkResources(o.resources);
1975 unittest.expect(o.runtime, unittest.equals('foo')); 2125 unittest.expect(o.runtime, unittest.equals('foo'));
1976 unittest.expect(o.runtimeApiVersion, unittest.equals('foo')); 2126 unittest.expect(o.runtimeApiVersion, unittest.equals('foo'));
1977 unittest.expect(o.servingStatus, unittest.equals('foo')); 2127 unittest.expect(o.servingStatus, unittest.equals('foo'));
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2084 2234
2085 unittest.group("obj-schema-BasicScaling", () { 2235 unittest.group("obj-schema-BasicScaling", () {
2086 unittest.test("to-json--from-json", () { 2236 unittest.test("to-json--from-json", () {
2087 var o = buildBasicScaling(); 2237 var o = buildBasicScaling();
2088 var od = new api.BasicScaling.fromJson(o.toJson()); 2238 var od = new api.BasicScaling.fromJson(o.toJson());
2089 checkBasicScaling(od); 2239 checkBasicScaling(od);
2090 }); 2240 });
2091 }); 2241 });
2092 2242
2093 2243
2244 unittest.group("obj-schema-BatchUpdateIngressRulesRequest", () {
2245 unittest.test("to-json--from-json", () {
2246 var o = buildBatchUpdateIngressRulesRequest();
2247 var od = new api.BatchUpdateIngressRulesRequest.fromJson(o.toJson());
2248 checkBatchUpdateIngressRulesRequest(od);
2249 });
2250 });
2251
2252
2253 unittest.group("obj-schema-BatchUpdateIngressRulesResponse", () {
2254 unittest.test("to-json--from-json", () {
2255 var o = buildBatchUpdateIngressRulesResponse();
2256 var od = new api.BatchUpdateIngressRulesResponse.fromJson(o.toJson());
2257 checkBatchUpdateIngressRulesResponse(od);
2258 });
2259 });
2260
2261
2094 unittest.group("obj-schema-BuildInfo", () { 2262 unittest.group("obj-schema-BuildInfo", () {
2095 unittest.test("to-json--from-json", () { 2263 unittest.test("to-json--from-json", () {
2096 var o = buildBuildInfo(); 2264 var o = buildBuildInfo();
2097 var od = new api.BuildInfo.fromJson(o.toJson()); 2265 var od = new api.BuildInfo.fromJson(o.toJson());
2098 checkBuildInfo(od); 2266 checkBuildInfo(od);
2099 }); 2267 });
2100 }); 2268 });
2101 2269
2102 2270
2103 unittest.group("obj-schema-CertificateRawData", () { 2271 unittest.group("obj-schema-CertificateRawData", () {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
2183 2351
2184 unittest.group("obj-schema-ErrorHandler", () { 2352 unittest.group("obj-schema-ErrorHandler", () {
2185 unittest.test("to-json--from-json", () { 2353 unittest.test("to-json--from-json", () {
2186 var o = buildErrorHandler(); 2354 var o = buildErrorHandler();
2187 var od = new api.ErrorHandler.fromJson(o.toJson()); 2355 var od = new api.ErrorHandler.fromJson(o.toJson());
2188 checkErrorHandler(od); 2356 checkErrorHandler(od);
2189 }); 2357 });
2190 }); 2358 });
2191 2359
2192 2360
2361 unittest.group("obj-schema-FeatureSettings", () {
2362 unittest.test("to-json--from-json", () {
2363 var o = buildFeatureSettings();
2364 var od = new api.FeatureSettings.fromJson(o.toJson());
2365 checkFeatureSettings(od);
2366 });
2367 });
2368
2369
2193 unittest.group("obj-schema-FileInfo", () { 2370 unittest.group("obj-schema-FileInfo", () {
2194 unittest.test("to-json--from-json", () { 2371 unittest.test("to-json--from-json", () {
2195 var o = buildFileInfo(); 2372 var o = buildFileInfo();
2196 var od = new api.FileInfo.fromJson(o.toJson()); 2373 var od = new api.FileInfo.fromJson(o.toJson());
2197 checkFileInfo(od); 2374 checkFileInfo(od);
2198 }); 2375 });
2199 }); 2376 });
2200 2377
2201 2378
2379 unittest.group("obj-schema-FirewallRule", () {
2380 unittest.test("to-json--from-json", () {
2381 var o = buildFirewallRule();
2382 var od = new api.FirewallRule.fromJson(o.toJson());
2383 checkFirewallRule(od);
2384 });
2385 });
2386
2387
2202 unittest.group("obj-schema-HealthCheck", () { 2388 unittest.group("obj-schema-HealthCheck", () {
2203 unittest.test("to-json--from-json", () { 2389 unittest.test("to-json--from-json", () {
2204 var o = buildHealthCheck(); 2390 var o = buildHealthCheck();
2205 var od = new api.HealthCheck.fromJson(o.toJson()); 2391 var od = new api.HealthCheck.fromJson(o.toJson());
2206 checkHealthCheck(od); 2392 checkHealthCheck(od);
2207 }); 2393 });
2208 }); 2394 });
2209 2395
2210 2396
2211 unittest.group("obj-schema-IdentityAwareProxy", () { 2397 unittest.group("obj-schema-IdentityAwareProxy", () {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2255 2441
2256 unittest.group("obj-schema-ListDomainMappingsResponse", () { 2442 unittest.group("obj-schema-ListDomainMappingsResponse", () {
2257 unittest.test("to-json--from-json", () { 2443 unittest.test("to-json--from-json", () {
2258 var o = buildListDomainMappingsResponse(); 2444 var o = buildListDomainMappingsResponse();
2259 var od = new api.ListDomainMappingsResponse.fromJson(o.toJson()); 2445 var od = new api.ListDomainMappingsResponse.fromJson(o.toJson());
2260 checkListDomainMappingsResponse(od); 2446 checkListDomainMappingsResponse(od);
2261 }); 2447 });
2262 }); 2448 });
2263 2449
2264 2450
2451 unittest.group("obj-schema-ListIngressRulesResponse", () {
2452 unittest.test("to-json--from-json", () {
2453 var o = buildListIngressRulesResponse();
2454 var od = new api.ListIngressRulesResponse.fromJson(o.toJson());
2455 checkListIngressRulesResponse(od);
2456 });
2457 });
2458
2459
2265 unittest.group("obj-schema-ListInstancesResponse", () { 2460 unittest.group("obj-schema-ListInstancesResponse", () {
2266 unittest.test("to-json--from-json", () { 2461 unittest.test("to-json--from-json", () {
2267 var o = buildListInstancesResponse(); 2462 var o = buildListInstancesResponse();
2268 var od = new api.ListInstancesResponse.fromJson(o.toJson()); 2463 var od = new api.ListInstancesResponse.fromJson(o.toJson());
2269 checkListInstancesResponse(od); 2464 checkListInstancesResponse(od);
2270 }); 2465 });
2271 }); 2466 });
2272 2467
2273 2468
2274 unittest.group("obj-schema-ListLocationsResponse", () { 2469 unittest.group("obj-schema-ListLocationsResponse", () {
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2949 res.get(arg_appsId, arg_authorizedCertificatesId, view: arg_view).then(uni ttest.expectAsync1(((api.AuthorizedCertificate response) { 3144 res.get(arg_appsId, arg_authorizedCertificatesId, view: arg_view).then(uni ttest.expectAsync1(((api.AuthorizedCertificate response) {
2950 checkAuthorizedCertificate(response); 3145 checkAuthorizedCertificate(response);
2951 }))); 3146 })));
2952 }); 3147 });
2953 3148
2954 unittest.test("method--list", () { 3149 unittest.test("method--list", () {
2955 3150
2956 var mock = new HttpServerMock(); 3151 var mock = new HttpServerMock();
2957 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates; 3152 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates;
2958 var arg_appsId = "foo"; 3153 var arg_appsId = "foo";
3154 var arg_pageToken = "foo";
2959 var arg_pageSize = 42; 3155 var arg_pageSize = 42;
2960 var arg_pageToken = "foo";
2961 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 3156 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2962 var path = (req.url).path; 3157 var path = (req.url).path;
2963 var pathOffset = 0; 3158 var pathOffset = 0;
2964 var index; 3159 var index;
2965 var subPart; 3160 var subPart;
2966 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3161 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2967 pathOffset += 1; 3162 pathOffset += 1;
2968 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3163 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
2969 pathOffset += 12; 3164 pathOffset += 12;
2970 index = path.indexOf("/authorizedCertificates", pathOffset); 3165 index = path.indexOf("/authorizedCertificates", pathOffset);
(...skipping 13 matching lines...) Expand all
2984 if (n == "false") return false; 3179 if (n == "false") return false;
2985 if (n == null) return null; 3180 if (n == null) return null;
2986 throw new core.ArgumentError("Invalid boolean: $n"); 3181 throw new core.ArgumentError("Invalid boolean: $n");
2987 } 3182 }
2988 if (query.length > 0) { 3183 if (query.length > 0) {
2989 for (var part in query.split("&")) { 3184 for (var part in query.split("&")) {
2990 var keyvalue = part.split("="); 3185 var keyvalue = part.split("=");
2991 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3186 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2992 } 3187 }
2993 } 3188 }
3189 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2994 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3190 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2995 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2996 3191
2997 3192
2998 var h = { 3193 var h = {
2999 "content-type" : "application/json; charset=utf-8", 3194 "content-type" : "application/json; charset=utf-8",
3000 }; 3195 };
3001 var resp = convert.JSON.encode(buildListAuthorizedCertificatesResponse() ); 3196 var resp = convert.JSON.encode(buildListAuthorizedCertificatesResponse() );
3002 return new async.Future.value(stringResponse(200, h, resp)); 3197 return new async.Future.value(stringResponse(200, h, resp));
3003 }), true); 3198 }), true);
3004 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync1(((api.ListAuthorizedCertificatesResponse response) { 3199 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync1(((api.ListAuthorizedCertificatesResponse response) {
3005 checkListAuthorizedCertificatesResponse(response); 3200 checkListAuthorizedCertificatesResponse(response);
3006 }))); 3201 })));
3007 }); 3202 });
3008 3203
3009 unittest.test("method--patch", () { 3204 unittest.test("method--patch", () {
3010 3205
3011 var mock = new HttpServerMock(); 3206 var mock = new HttpServerMock();
3012 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates; 3207 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates;
3013 var arg_request = buildAuthorizedCertificate(); 3208 var arg_request = buildAuthorizedCertificate();
3014 var arg_appsId = "foo"; 3209 var arg_appsId = "foo";
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
3293 res.get(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync1(((api .DomainMapping response) { 3488 res.get(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync1(((api .DomainMapping response) {
3294 checkDomainMapping(response); 3489 checkDomainMapping(response);
3295 }))); 3490 })));
3296 }); 3491 });
3297 3492
3298 unittest.test("method--list", () { 3493 unittest.test("method--list", () {
3299 3494
3300 var mock = new HttpServerMock(); 3495 var mock = new HttpServerMock();
3301 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings; 3496 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings;
3302 var arg_appsId = "foo"; 3497 var arg_appsId = "foo";
3498 var arg_pageToken = "foo";
3303 var arg_pageSize = 42; 3499 var arg_pageSize = 42;
3304 var arg_pageToken = "foo";
3305 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 3500 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3306 var path = (req.url).path; 3501 var path = (req.url).path;
3307 var pathOffset = 0; 3502 var pathOffset = 0;
3308 var index; 3503 var index;
3309 var subPart; 3504 var subPart;
3310 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3505 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3311 pathOffset += 1; 3506 pathOffset += 1;
3312 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3507 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3313 pathOffset += 12; 3508 pathOffset += 12;
3314 index = path.indexOf("/domainMappings", pathOffset); 3509 index = path.indexOf("/domainMappings", pathOffset);
(...skipping 13 matching lines...) Expand all
3328 if (n == "false") return false; 3523 if (n == "false") return false;
3329 if (n == null) return null; 3524 if (n == null) return null;
3330 throw new core.ArgumentError("Invalid boolean: $n"); 3525 throw new core.ArgumentError("Invalid boolean: $n");
3331 } 3526 }
3332 if (query.length > 0) { 3527 if (query.length > 0) {
3333 for (var part in query.split("&")) { 3528 for (var part in query.split("&")) {
3334 var keyvalue = part.split("="); 3529 var keyvalue = part.split("=");
3335 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3530 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3336 } 3531 }
3337 } 3532 }
3533 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3338 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3534 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3339 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3340 3535
3341 3536
3342 var h = { 3537 var h = {
3343 "content-type" : "application/json; charset=utf-8", 3538 "content-type" : "application/json; charset=utf-8",
3344 }; 3539 };
3345 var resp = convert.JSON.encode(buildListDomainMappingsResponse()); 3540 var resp = convert.JSON.encode(buildListDomainMappingsResponse());
3346 return new async.Future.value(stringResponse(200, h, resp)); 3541 return new async.Future.value(stringResponse(200, h, resp));
3347 }), true); 3542 }), true);
3348 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync1(((api.ListDomainMappingsResponse response) { 3543 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync1(((api.ListDomainMappingsResponse response) {
3349 checkListDomainMappingsResponse(response); 3544 checkListDomainMappingsResponse(response);
3350 }))); 3545 })));
3351 }); 3546 });
3352 3547
3353 unittest.test("method--patch", () { 3548 unittest.test("method--patch", () {
3354 3549
3355 var mock = new HttpServerMock(); 3550 var mock = new HttpServerMock();
3356 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings; 3551 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings;
3357 var arg_request = buildDomainMapping(); 3552 var arg_request = buildDomainMapping();
3358 var arg_appsId = "foo"; 3553 var arg_appsId = "foo";
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
3407 return new async.Future.value(stringResponse(200, h, resp)); 3602 return new async.Future.value(stringResponse(200, h, resp));
3408 }), true); 3603 }), true);
3409 res.patch(arg_request, arg_appsId, arg_domainMappingsId, updateMask: arg_u pdateMask).then(unittest.expectAsync1(((api.Operation response) { 3604 res.patch(arg_request, arg_appsId, arg_domainMappingsId, updateMask: arg_u pdateMask).then(unittest.expectAsync1(((api.Operation response) {
3410 checkOperation(response); 3605 checkOperation(response);
3411 }))); 3606 })));
3412 }); 3607 });
3413 3608
3414 }); 3609 });
3415 3610
3416 3611
3612 unittest.group("resource-AppsFirewallIngressRulesResourceApi", () {
3613 unittest.test("method--batchUpdate", () {
3614
3615 var mock = new HttpServerMock();
3616 api.AppsFirewallIngressRulesResourceApi res = new api.AppengineApi(mock).a pps.firewall.ingressRules;
3617 var arg_request = buildBatchUpdateIngressRulesRequest();
3618 var arg_appsId = "foo";
3619 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3620 var obj = new api.BatchUpdateIngressRulesRequest.fromJson(json);
3621 checkBatchUpdateIngressRulesRequest(obj);
3622
3623 var path = (req.url).path;
3624 var pathOffset = 0;
3625 var index;
3626 var subPart;
3627 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3628 pathOffset += 1;
3629 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3630 pathOffset += 12;
3631 index = path.indexOf("/firewall/ingressRules:batchUpdate", pathOffset);
3632 unittest.expect(index >= 0, unittest.isTrue);
3633 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3634 pathOffset = index;
3635 unittest.expect(subPart, unittest.equals("$arg_appsId"));
3636 unittest.expect(path.substring(pathOffset, pathOffset + 34), unittest.eq uals("/firewall/ingressRules:batchUpdate"));
3637 pathOffset += 34;
3638
3639 var query = (req.url).query;
3640 var queryOffset = 0;
3641 var queryMap = {};
3642 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3643 parseBool(n) {
3644 if (n == "true") return true;
3645 if (n == "false") return false;
3646 if (n == null) return null;
3647 throw new core.ArgumentError("Invalid boolean: $n");
3648 }
3649 if (query.length > 0) {
3650 for (var part in query.split("&")) {
3651 var keyvalue = part.split("=");
3652 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3653 }
3654 }
3655
3656
3657 var h = {
3658 "content-type" : "application/json; charset=utf-8",
3659 };
3660 var resp = convert.JSON.encode(buildBatchUpdateIngressRulesResponse());
3661 return new async.Future.value(stringResponse(200, h, resp));
3662 }), true);
3663 res.batchUpdate(arg_request, arg_appsId).then(unittest.expectAsync1(((api. BatchUpdateIngressRulesResponse response) {
3664 checkBatchUpdateIngressRulesResponse(response);
3665 })));
3666 });
3667
3668 unittest.test("method--create", () {
3669
3670 var mock = new HttpServerMock();
3671 api.AppsFirewallIngressRulesResourceApi res = new api.AppengineApi(mock).a pps.firewall.ingressRules;
3672 var arg_request = buildFirewallRule();
3673 var arg_appsId = "foo";
3674 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3675 var obj = new api.FirewallRule.fromJson(json);
3676 checkFirewallRule(obj);
3677
3678 var path = (req.url).path;
3679 var pathOffset = 0;
3680 var index;
3681 var subPart;
3682 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3683 pathOffset += 1;
3684 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3685 pathOffset += 12;
3686 index = path.indexOf("/firewall/ingressRules", pathOffset);
3687 unittest.expect(index >= 0, unittest.isTrue);
3688 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3689 pathOffset = index;
3690 unittest.expect(subPart, unittest.equals("$arg_appsId"));
3691 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("/firewall/ingressRules"));
3692 pathOffset += 22;
3693
3694 var query = (req.url).query;
3695 var queryOffset = 0;
3696 var queryMap = {};
3697 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3698 parseBool(n) {
3699 if (n == "true") return true;
3700 if (n == "false") return false;
3701 if (n == null) return null;
3702 throw new core.ArgumentError("Invalid boolean: $n");
3703 }
3704 if (query.length > 0) {
3705 for (var part in query.split("&")) {
3706 var keyvalue = part.split("=");
3707 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3708 }
3709 }
3710
3711
3712 var h = {
3713 "content-type" : "application/json; charset=utf-8",
3714 };
3715 var resp = convert.JSON.encode(buildFirewallRule());
3716 return new async.Future.value(stringResponse(200, h, resp));
3717 }), true);
3718 res.create(arg_request, arg_appsId).then(unittest.expectAsync1(((api.Firew allRule response) {
3719 checkFirewallRule(response);
3720 })));
3721 });
3722
3723 unittest.test("method--delete", () {
3724
3725 var mock = new HttpServerMock();
3726 api.AppsFirewallIngressRulesResourceApi res = new api.AppengineApi(mock).a pps.firewall.ingressRules;
3727 var arg_appsId = "foo";
3728 var arg_ingressRulesId = "foo";
3729 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3730 var path = (req.url).path;
3731 var pathOffset = 0;
3732 var index;
3733 var subPart;
3734 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3735 pathOffset += 1;
3736 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3737 pathOffset += 12;
3738 index = path.indexOf("/firewall/ingressRules/", pathOffset);
3739 unittest.expect(index >= 0, unittest.isTrue);
3740 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3741 pathOffset = index;
3742 unittest.expect(subPart, unittest.equals("$arg_appsId"));
3743 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq uals("/firewall/ingressRules/"));
3744 pathOffset += 23;
3745 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
3746 pathOffset = path.length;
3747 unittest.expect(subPart, unittest.equals("$arg_ingressRulesId"));
3748
3749 var query = (req.url).query;
3750 var queryOffset = 0;
3751 var queryMap = {};
3752 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3753 parseBool(n) {
3754 if (n == "true") return true;
3755 if (n == "false") return false;
3756 if (n == null) return null;
3757 throw new core.ArgumentError("Invalid boolean: $n");
3758 }
3759 if (query.length > 0) {
3760 for (var part in query.split("&")) {
3761 var keyvalue = part.split("=");
3762 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3763 }
3764 }
3765
3766
3767 var h = {
3768 "content-type" : "application/json; charset=utf-8",
3769 };
3770 var resp = convert.JSON.encode(buildEmpty());
3771 return new async.Future.value(stringResponse(200, h, resp));
3772 }), true);
3773 res.delete(arg_appsId, arg_ingressRulesId).then(unittest.expectAsync1(((ap i.Empty response) {
3774 checkEmpty(response);
3775 })));
3776 });
3777
3778 unittest.test("method--get", () {
3779
3780 var mock = new HttpServerMock();
3781 api.AppsFirewallIngressRulesResourceApi res = new api.AppengineApi(mock).a pps.firewall.ingressRules;
3782 var arg_appsId = "foo";
3783 var arg_ingressRulesId = "foo";
3784 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3785 var path = (req.url).path;
3786 var pathOffset = 0;
3787 var index;
3788 var subPart;
3789 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3790 pathOffset += 1;
3791 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3792 pathOffset += 12;
3793 index = path.indexOf("/firewall/ingressRules/", pathOffset);
3794 unittest.expect(index >= 0, unittest.isTrue);
3795 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3796 pathOffset = index;
3797 unittest.expect(subPart, unittest.equals("$arg_appsId"));
3798 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq uals("/firewall/ingressRules/"));
3799 pathOffset += 23;
3800 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
3801 pathOffset = path.length;
3802 unittest.expect(subPart, unittest.equals("$arg_ingressRulesId"));
3803
3804 var query = (req.url).query;
3805 var queryOffset = 0;
3806 var queryMap = {};
3807 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3808 parseBool(n) {
3809 if (n == "true") return true;
3810 if (n == "false") return false;
3811 if (n == null) return null;
3812 throw new core.ArgumentError("Invalid boolean: $n");
3813 }
3814 if (query.length > 0) {
3815 for (var part in query.split("&")) {
3816 var keyvalue = part.split("=");
3817 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3818 }
3819 }
3820
3821
3822 var h = {
3823 "content-type" : "application/json; charset=utf-8",
3824 };
3825 var resp = convert.JSON.encode(buildFirewallRule());
3826 return new async.Future.value(stringResponse(200, h, resp));
3827 }), true);
3828 res.get(arg_appsId, arg_ingressRulesId).then(unittest.expectAsync1(((api.F irewallRule response) {
3829 checkFirewallRule(response);
3830 })));
3831 });
3832
3833 unittest.test("method--list", () {
3834
3835 var mock = new HttpServerMock();
3836 api.AppsFirewallIngressRulesResourceApi res = new api.AppengineApi(mock).a pps.firewall.ingressRules;
3837 var arg_appsId = "foo";
3838 var arg_pageToken = "foo";
3839 var arg_pageSize = 42;
3840 var arg_matchingAddress = "foo";
3841 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3842 var path = (req.url).path;
3843 var pathOffset = 0;
3844 var index;
3845 var subPart;
3846 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3847 pathOffset += 1;
3848 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3849 pathOffset += 12;
3850 index = path.indexOf("/firewall/ingressRules", pathOffset);
3851 unittest.expect(index >= 0, unittest.isTrue);
3852 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3853 pathOffset = index;
3854 unittest.expect(subPart, unittest.equals("$arg_appsId"));
3855 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("/firewall/ingressRules"));
3856 pathOffset += 22;
3857
3858 var query = (req.url).query;
3859 var queryOffset = 0;
3860 var queryMap = {};
3861 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3862 parseBool(n) {
3863 if (n == "true") return true;
3864 if (n == "false") return false;
3865 if (n == null) return null;
3866 throw new core.ArgumentError("Invalid boolean: $n");
3867 }
3868 if (query.length > 0) {
3869 for (var part in query.split("&")) {
3870 var keyvalue = part.split("=");
3871 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3872 }
3873 }
3874 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3875 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3876 unittest.expect(queryMap["matchingAddress"].first, unittest.equals(arg_m atchingAddress));
3877
3878
3879 var h = {
3880 "content-type" : "application/json; charset=utf-8",
3881 };
3882 var resp = convert.JSON.encode(buildListIngressRulesResponse());
3883 return new async.Future.value(stringResponse(200, h, resp));
3884 }), true);
3885 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, mat chingAddress: arg_matchingAddress).then(unittest.expectAsync1(((api.ListIngressR ulesResponse response) {
3886 checkListIngressRulesResponse(response);
3887 })));
3888 });
3889
3890 unittest.test("method--patch", () {
3891
3892 var mock = new HttpServerMock();
3893 api.AppsFirewallIngressRulesResourceApi res = new api.AppengineApi(mock).a pps.firewall.ingressRules;
3894 var arg_request = buildFirewallRule();
3895 var arg_appsId = "foo";
3896 var arg_ingressRulesId = "foo";
3897 var arg_updateMask = "foo";
3898 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3899 var obj = new api.FirewallRule.fromJson(json);
3900 checkFirewallRule(obj);
3901
3902 var path = (req.url).path;
3903 var pathOffset = 0;
3904 var index;
3905 var subPart;
3906 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3907 pathOffset += 1;
3908 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3909 pathOffset += 12;
3910 index = path.indexOf("/firewall/ingressRules/", pathOffset);
3911 unittest.expect(index >= 0, unittest.isTrue);
3912 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3913 pathOffset = index;
3914 unittest.expect(subPart, unittest.equals("$arg_appsId"));
3915 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq uals("/firewall/ingressRules/"));
3916 pathOffset += 23;
3917 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
3918 pathOffset = path.length;
3919 unittest.expect(subPart, unittest.equals("$arg_ingressRulesId"));
3920
3921 var query = (req.url).query;
3922 var queryOffset = 0;
3923 var queryMap = {};
3924 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3925 parseBool(n) {
3926 if (n == "true") return true;
3927 if (n == "false") return false;
3928 if (n == null) return null;
3929 throw new core.ArgumentError("Invalid boolean: $n");
3930 }
3931 if (query.length > 0) {
3932 for (var part in query.split("&")) {
3933 var keyvalue = part.split("=");
3934 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3935 }
3936 }
3937 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask));
3938
3939
3940 var h = {
3941 "content-type" : "application/json; charset=utf-8",
3942 };
3943 var resp = convert.JSON.encode(buildFirewallRule());
3944 return new async.Future.value(stringResponse(200, h, resp));
3945 }), true);
3946 res.patch(arg_request, arg_appsId, arg_ingressRulesId, updateMask: arg_upd ateMask).then(unittest.expectAsync1(((api.FirewallRule response) {
3947 checkFirewallRule(response);
3948 })));
3949 });
3950
3951 });
3952
3953
3417 unittest.group("resource-AppsLocationsResourceApi", () { 3954 unittest.group("resource-AppsLocationsResourceApi", () {
3418 unittest.test("method--get", () { 3955 unittest.test("method--get", () {
3419 3956
3420 var mock = new HttpServerMock(); 3957 var mock = new HttpServerMock();
3421 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns; 3958 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns;
3422 var arg_appsId = "foo"; 3959 var arg_appsId = "foo";
3423 var arg_locationsId = "foo"; 3960 var arg_locationsId = "foo";
3424 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 3961 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3425 var path = (req.url).path; 3962 var path = (req.url).path;
3426 var pathOffset = 0; 3963 var pathOffset = 0;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
3468 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Loca tion response) { 4005 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Loca tion response) {
3469 checkLocation(response); 4006 checkLocation(response);
3470 }))); 4007 })));
3471 }); 4008 });
3472 4009
3473 unittest.test("method--list", () { 4010 unittest.test("method--list", () {
3474 4011
3475 var mock = new HttpServerMock(); 4012 var mock = new HttpServerMock();
3476 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns; 4013 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns;
3477 var arg_appsId = "foo"; 4014 var arg_appsId = "foo";
4015 var arg_pageToken = "foo";
3478 var arg_pageSize = 42; 4016 var arg_pageSize = 42;
3479 var arg_filter = "foo"; 4017 var arg_filter = "foo";
3480 var arg_pageToken = "foo";
3481 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4018 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3482 var path = (req.url).path; 4019 var path = (req.url).path;
3483 var pathOffset = 0; 4020 var pathOffset = 0;
3484 var index; 4021 var index;
3485 var subPart; 4022 var subPart;
3486 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4023 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3487 pathOffset += 1; 4024 pathOffset += 1;
3488 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 4025 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3489 pathOffset += 12; 4026 pathOffset += 12;
3490 index = path.indexOf("/locations", pathOffset); 4027 index = path.indexOf("/locations", pathOffset);
(...skipping 13 matching lines...) Expand all
3504 if (n == "false") return false; 4041 if (n == "false") return false;
3505 if (n == null) return null; 4042 if (n == null) return null;
3506 throw new core.ArgumentError("Invalid boolean: $n"); 4043 throw new core.ArgumentError("Invalid boolean: $n");
3507 } 4044 }
3508 if (query.length > 0) { 4045 if (query.length > 0) {
3509 for (var part in query.split("&")) { 4046 for (var part in query.split("&")) {
3510 var keyvalue = part.split("="); 4047 var keyvalue = part.split("=");
3511 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4048 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3512 } 4049 }
3513 } 4050 }
4051 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3514 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 4052 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3515 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 4053 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
3516 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3517 4054
3518 4055
3519 var h = { 4056 var h = {
3520 "content-type" : "application/json; charset=utf-8", 4057 "content-type" : "application/json; charset=utf-8",
3521 }; 4058 };
3522 var resp = convert.JSON.encode(buildListLocationsResponse()); 4059 var resp = convert.JSON.encode(buildListLocationsResponse());
3523 return new async.Future.value(stringResponse(200, h, resp)); 4060 return new async.Future.value(stringResponse(200, h, resp));
3524 }), true); 4061 }), true);
3525 res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken : arg_pageToken).then(unittest.expectAsync1(((api.ListLocationsResponse response ) { 4062 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, fil ter: arg_filter).then(unittest.expectAsync1(((api.ListLocationsResponse response ) {
3526 checkListLocationsResponse(response); 4063 checkListLocationsResponse(response);
3527 }))); 4064 })));
3528 }); 4065 });
3529 4066
3530 }); 4067 });
3531 4068
3532 4069
3533 unittest.group("resource-AppsOperationsResourceApi", () { 4070 unittest.group("resource-AppsOperationsResourceApi", () {
3534 unittest.test("method--get", () { 4071 unittest.test("method--get", () {
3535 4072
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
3584 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Ope ration response) { 4121 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Ope ration response) {
3585 checkOperation(response); 4122 checkOperation(response);
3586 }))); 4123 })));
3587 }); 4124 });
3588 4125
3589 unittest.test("method--list", () { 4126 unittest.test("method--list", () {
3590 4127
3591 var mock = new HttpServerMock(); 4128 var mock = new HttpServerMock();
3592 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions; 4129 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions;
3593 var arg_appsId = "foo"; 4130 var arg_appsId = "foo";
4131 var arg_pageSize = 42;
3594 var arg_filter = "foo"; 4132 var arg_filter = "foo";
3595 var arg_pageToken = "foo"; 4133 var arg_pageToken = "foo";
3596 var arg_pageSize = 42;
3597 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4134 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3598 var path = (req.url).path; 4135 var path = (req.url).path;
3599 var pathOffset = 0; 4136 var pathOffset = 0;
3600 var index; 4137 var index;
3601 var subPart; 4138 var subPart;
3602 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4139 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3603 pathOffset += 1; 4140 pathOffset += 1;
3604 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 4141 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3605 pathOffset += 12; 4142 pathOffset += 12;
3606 index = path.indexOf("/operations", pathOffset); 4143 index = path.indexOf("/operations", pathOffset);
(...skipping 13 matching lines...) Expand all
3620 if (n == "false") return false; 4157 if (n == "false") return false;
3621 if (n == null) return null; 4158 if (n == null) return null;
3622 throw new core.ArgumentError("Invalid boolean: $n"); 4159 throw new core.ArgumentError("Invalid boolean: $n");
3623 } 4160 }
3624 if (query.length > 0) { 4161 if (query.length > 0) {
3625 for (var part in query.split("&")) { 4162 for (var part in query.split("&")) {
3626 var keyvalue = part.split("="); 4163 var keyvalue = part.split("=");
3627 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4164 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3628 } 4165 }
3629 } 4166 }
4167 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3630 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 4168 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
3631 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 4169 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3632 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3633 4170
3634 4171
3635 var h = { 4172 var h = {
3636 "content-type" : "application/json; charset=utf-8", 4173 "content-type" : "application/json; charset=utf-8",
3637 }; 4174 };
3638 var resp = convert.JSON.encode(buildListOperationsResponse()); 4175 var resp = convert.JSON.encode(buildListOperationsResponse());
3639 return new async.Future.value(stringResponse(200, h, resp)); 4176 return new async.Future.value(stringResponse(200, h, resp));
3640 }), true); 4177 }), true);
3641 res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse respons e) { 4178 res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken : arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse respons e) {
3642 checkListOperationsResponse(response); 4179 checkListOperationsResponse(response);
3643 }))); 4180 })));
3644 }); 4181 });
3645 4182
3646 }); 4183 });
3647 4184
3648 4185
3649 unittest.group("resource-AppsServicesResourceApi", () { 4186 unittest.group("resource-AppsServicesResourceApi", () {
3650 unittest.test("method--delete", () { 4187 unittest.test("method--delete", () {
3651 4188
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
3755 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Servi ce response) { 4292 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Servi ce response) {
3756 checkService(response); 4293 checkService(response);
3757 }))); 4294 })));
3758 }); 4295 });
3759 4296
3760 unittest.test("method--list", () { 4297 unittest.test("method--list", () {
3761 4298
3762 var mock = new HttpServerMock(); 4299 var mock = new HttpServerMock();
3763 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ; 4300 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ;
3764 var arg_appsId = "foo"; 4301 var arg_appsId = "foo";
4302 var arg_pageToken = "foo";
3765 var arg_pageSize = 42; 4303 var arg_pageSize = 42;
3766 var arg_pageToken = "foo";
3767 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 4304 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3768 var path = (req.url).path; 4305 var path = (req.url).path;
3769 var pathOffset = 0; 4306 var pathOffset = 0;
3770 var index; 4307 var index;
3771 var subPart; 4308 var subPart;
3772 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4309 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3773 pathOffset += 1; 4310 pathOffset += 1;
3774 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 4311 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3775 pathOffset += 12; 4312 pathOffset += 12;
3776 index = path.indexOf("/services", pathOffset); 4313 index = path.indexOf("/services", pathOffset);
(...skipping 13 matching lines...) Expand all
3790 if (n == "false") return false; 4327 if (n == "false") return false;
3791 if (n == null) return null; 4328 if (n == null) return null;
3792 throw new core.ArgumentError("Invalid boolean: $n"); 4329 throw new core.ArgumentError("Invalid boolean: $n");
3793 } 4330 }
3794 if (query.length > 0) { 4331 if (query.length > 0) {
3795 for (var part in query.split("&")) { 4332 for (var part in query.split("&")) {
3796 var keyvalue = part.split("="); 4333 var keyvalue = part.split("=");
3797 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4334 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3798 } 4335 }
3799 } 4336 }
4337 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3800 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 4338 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3801 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3802 4339
3803 4340
3804 var h = { 4341 var h = {
3805 "content-type" : "application/json; charset=utf-8", 4342 "content-type" : "application/json; charset=utf-8",
3806 }; 4343 };
3807 var resp = convert.JSON.encode(buildListServicesResponse()); 4344 var resp = convert.JSON.encode(buildListServicesResponse());
3808 return new async.Future.value(stringResponse(200, h, resp)); 4345 return new async.Future.value(stringResponse(200, h, resp));
3809 }), true); 4346 }), true);
3810 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync1(((api.ListServicesResponse response) { 4347 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync1(((api.ListServicesResponse response) {
3811 checkListServicesResponse(response); 4348 checkListServicesResponse(response);
3812 }))); 4349 })));
3813 }); 4350 });
3814 4351
3815 unittest.test("method--patch", () { 4352 unittest.test("method--patch", () {
3816 4353
3817 var mock = new HttpServerMock(); 4354 var mock = new HttpServerMock();
3818 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ; 4355 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ;
3819 var arg_request = buildService(); 4356 var arg_request = buildService();
3820 var arg_appsId = "foo"; 4357 var arg_appsId = "foo";
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
4498 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageTo ken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesRespo nse response) { 5035 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageTo ken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesRespo nse response) {
4499 checkListInstancesResponse(response); 5036 checkListInstancesResponse(response);
4500 }))); 5037 })));
4501 }); 5038 });
4502 5039
4503 }); 5040 });
4504 5041
4505 5042
4506 } 5043 }
4507 5044
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698