OLD | NEW |
1 library googleapis_beta.appengine.v1beta4.test; | 1 library googleapis_beta.appengine.v1beta4.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 90 } |
91 | 91 |
92 checkApiEndpointHandler(api.ApiEndpointHandler o) { | 92 checkApiEndpointHandler(api.ApiEndpointHandler o) { |
93 buildCounterApiEndpointHandler++; | 93 buildCounterApiEndpointHandler++; |
94 if (buildCounterApiEndpointHandler < 3) { | 94 if (buildCounterApiEndpointHandler < 3) { |
95 unittest.expect(o.scriptPath, unittest.equals('foo')); | 95 unittest.expect(o.scriptPath, unittest.equals('foo')); |
96 } | 96 } |
97 buildCounterApiEndpointHandler--; | 97 buildCounterApiEndpointHandler--; |
98 } | 98 } |
99 | 99 |
100 buildUnnamed3427() { | 100 buildUnnamed3524() { |
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 checkUnnamed3427(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed3524(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 = buildUnnamed3427(); | 123 o.dispatchRules = buildUnnamed3524(); |
| 124 o.iap = buildIdentityAwareProxy(); |
124 o.id = "foo"; | 125 o.id = "foo"; |
125 o.location = "foo"; | 126 o.location = "foo"; |
126 o.name = "foo"; | 127 o.name = "foo"; |
127 } | 128 } |
128 buildCounterApplication--; | 129 buildCounterApplication--; |
129 return o; | 130 return o; |
130 } | 131 } |
131 | 132 |
132 checkApplication(api.Application o) { | 133 checkApplication(api.Application o) { |
133 buildCounterApplication++; | 134 buildCounterApplication++; |
134 if (buildCounterApplication < 3) { | 135 if (buildCounterApplication < 3) { |
135 unittest.expect(o.authDomain, unittest.equals('foo')); | 136 unittest.expect(o.authDomain, unittest.equals('foo')); |
136 unittest.expect(o.codeBucket, unittest.equals('foo')); | 137 unittest.expect(o.codeBucket, unittest.equals('foo')); |
137 unittest.expect(o.defaultBucket, unittest.equals('foo')); | 138 unittest.expect(o.defaultBucket, unittest.equals('foo')); |
138 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); | 139 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); |
139 unittest.expect(o.defaultHostname, unittest.equals('foo')); | 140 unittest.expect(o.defaultHostname, unittest.equals('foo')); |
140 checkUnnamed3427(o.dispatchRules); | 141 checkUnnamed3524(o.dispatchRules); |
| 142 checkIdentityAwareProxy(o.iap); |
141 unittest.expect(o.id, unittest.equals('foo')); | 143 unittest.expect(o.id, unittest.equals('foo')); |
142 unittest.expect(o.location, unittest.equals('foo')); | 144 unittest.expect(o.location, unittest.equals('foo')); |
143 unittest.expect(o.name, unittest.equals('foo')); | 145 unittest.expect(o.name, unittest.equals('foo')); |
144 } | 146 } |
145 buildCounterApplication--; | 147 buildCounterApplication--; |
146 } | 148 } |
147 | 149 |
148 core.int buildCounterAutomaticScaling = 0; | 150 core.int buildCounterAutomaticScaling = 0; |
149 buildAutomaticScaling() { | 151 buildAutomaticScaling() { |
150 var o = new api.AutomaticScaling(); | 152 var o = new api.AutomaticScaling(); |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 } | 261 } |
260 | 262 |
261 checkDebugInstanceRequest(api.DebugInstanceRequest o) { | 263 checkDebugInstanceRequest(api.DebugInstanceRequest o) { |
262 buildCounterDebugInstanceRequest++; | 264 buildCounterDebugInstanceRequest++; |
263 if (buildCounterDebugInstanceRequest < 3) { | 265 if (buildCounterDebugInstanceRequest < 3) { |
264 unittest.expect(o.sshKey, unittest.equals('foo')); | 266 unittest.expect(o.sshKey, unittest.equals('foo')); |
265 } | 267 } |
266 buildCounterDebugInstanceRequest--; | 268 buildCounterDebugInstanceRequest--; |
267 } | 269 } |
268 | 270 |
269 buildUnnamed3428() { | 271 buildUnnamed3525() { |
270 var o = new core.Map<core.String, api.FileInfo>(); | 272 var o = new core.Map<core.String, api.FileInfo>(); |
271 o["x"] = buildFileInfo(); | 273 o["x"] = buildFileInfo(); |
272 o["y"] = buildFileInfo(); | 274 o["y"] = buildFileInfo(); |
273 return o; | 275 return o; |
274 } | 276 } |
275 | 277 |
276 checkUnnamed3428(core.Map<core.String, api.FileInfo> o) { | 278 checkUnnamed3525(core.Map<core.String, api.FileInfo> o) { |
277 unittest.expect(o, unittest.hasLength(2)); | 279 unittest.expect(o, unittest.hasLength(2)); |
278 checkFileInfo(o["x"]); | 280 checkFileInfo(o["x"]); |
279 checkFileInfo(o["y"]); | 281 checkFileInfo(o["y"]); |
280 } | 282 } |
281 | 283 |
282 buildUnnamed3429() { | 284 buildUnnamed3526() { |
283 var o = new core.List<api.SourceReference>(); | 285 var o = new core.List<api.SourceReference>(); |
284 o.add(buildSourceReference()); | 286 o.add(buildSourceReference()); |
285 o.add(buildSourceReference()); | 287 o.add(buildSourceReference()); |
286 return o; | 288 return o; |
287 } | 289 } |
288 | 290 |
289 checkUnnamed3429(core.List<api.SourceReference> o) { | 291 checkUnnamed3526(core.List<api.SourceReference> o) { |
290 unittest.expect(o, unittest.hasLength(2)); | 292 unittest.expect(o, unittest.hasLength(2)); |
291 checkSourceReference(o[0]); | 293 checkSourceReference(o[0]); |
292 checkSourceReference(o[1]); | 294 checkSourceReference(o[1]); |
293 } | 295 } |
294 | 296 |
295 core.int buildCounterDeployment = 0; | 297 core.int buildCounterDeployment = 0; |
296 buildDeployment() { | 298 buildDeployment() { |
297 var o = new api.Deployment(); | 299 var o = new api.Deployment(); |
298 buildCounterDeployment++; | 300 buildCounterDeployment++; |
299 if (buildCounterDeployment < 3) { | 301 if (buildCounterDeployment < 3) { |
300 o.container = buildContainerInfo(); | 302 o.container = buildContainerInfo(); |
301 o.files = buildUnnamed3428(); | 303 o.files = buildUnnamed3525(); |
302 o.sourceReferences = buildUnnamed3429(); | 304 o.sourceReferences = buildUnnamed3526(); |
303 } | 305 } |
304 buildCounterDeployment--; | 306 buildCounterDeployment--; |
305 return o; | 307 return o; |
306 } | 308 } |
307 | 309 |
308 checkDeployment(api.Deployment o) { | 310 checkDeployment(api.Deployment o) { |
309 buildCounterDeployment++; | 311 buildCounterDeployment++; |
310 if (buildCounterDeployment < 3) { | 312 if (buildCounterDeployment < 3) { |
311 checkContainerInfo(o.container); | 313 checkContainerInfo(o.container); |
312 checkUnnamed3428(o.files); | 314 checkUnnamed3525(o.files); |
313 checkUnnamed3429(o.sourceReferences); | 315 checkUnnamed3526(o.sourceReferences); |
314 } | 316 } |
315 buildCounterDeployment--; | 317 buildCounterDeployment--; |
316 } | 318 } |
317 | 319 |
318 core.int buildCounterDiskUtilization = 0; | 320 core.int buildCounterDiskUtilization = 0; |
319 buildDiskUtilization() { | 321 buildDiskUtilization() { |
320 var o = new api.DiskUtilization(); | 322 var o = new api.DiskUtilization(); |
321 buildCounterDiskUtilization++; | 323 buildCounterDiskUtilization++; |
322 if (buildCounterDiskUtilization < 3) { | 324 if (buildCounterDiskUtilization < 3) { |
323 o.targetReadBytesPerSec = 42; | 325 o.targetReadBytesPerSec = 42; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 unittest.expect(o.disableHealthCheck, unittest.isTrue); | 412 unittest.expect(o.disableHealthCheck, unittest.isTrue); |
411 unittest.expect(o.healthyThreshold, unittest.equals(42)); | 413 unittest.expect(o.healthyThreshold, unittest.equals(42)); |
412 unittest.expect(o.host, unittest.equals('foo')); | 414 unittest.expect(o.host, unittest.equals('foo')); |
413 unittest.expect(o.restartThreshold, unittest.equals(42)); | 415 unittest.expect(o.restartThreshold, unittest.equals(42)); |
414 unittest.expect(o.timeout, unittest.equals('foo')); | 416 unittest.expect(o.timeout, unittest.equals('foo')); |
415 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); | 417 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); |
416 } | 418 } |
417 buildCounterHealthCheck--; | 419 buildCounterHealthCheck--; |
418 } | 420 } |
419 | 421 |
| 422 core.int buildCounterIdentityAwareProxy = 0; |
| 423 buildIdentityAwareProxy() { |
| 424 var o = new api.IdentityAwareProxy(); |
| 425 buildCounterIdentityAwareProxy++; |
| 426 if (buildCounterIdentityAwareProxy < 3) { |
| 427 o.enabled = true; |
| 428 o.oauth2ClientId = "foo"; |
| 429 o.oauth2ClientSecret = "foo"; |
| 430 o.oauth2ClientSecretSha256 = "foo"; |
| 431 } |
| 432 buildCounterIdentityAwareProxy--; |
| 433 return o; |
| 434 } |
| 435 |
| 436 checkIdentityAwareProxy(api.IdentityAwareProxy o) { |
| 437 buildCounterIdentityAwareProxy++; |
| 438 if (buildCounterIdentityAwareProxy < 3) { |
| 439 unittest.expect(o.enabled, unittest.isTrue); |
| 440 unittest.expect(o.oauth2ClientId, unittest.equals('foo')); |
| 441 unittest.expect(o.oauth2ClientSecret, unittest.equals('foo')); |
| 442 unittest.expect(o.oauth2ClientSecretSha256, unittest.equals('foo')); |
| 443 } |
| 444 buildCounterIdentityAwareProxy--; |
| 445 } |
| 446 |
420 core.int buildCounterInstance = 0; | 447 core.int buildCounterInstance = 0; |
421 buildInstance() { | 448 buildInstance() { |
422 var o = new api.Instance(); | 449 var o = new api.Instance(); |
423 buildCounterInstance++; | 450 buildCounterInstance++; |
424 if (buildCounterInstance < 3) { | 451 if (buildCounterInstance < 3) { |
425 o.appEngineRelease = "foo"; | 452 o.appEngineRelease = "foo"; |
426 o.availability = "foo"; | 453 o.availability = "foo"; |
427 o.averageLatency = 42; | 454 o.averageLatency = 42; |
428 o.errors = 42; | 455 o.errors = 42; |
429 o.id = "foo"; | 456 o.id = "foo"; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 | 507 |
481 checkLibrary(api.Library o) { | 508 checkLibrary(api.Library o) { |
482 buildCounterLibrary++; | 509 buildCounterLibrary++; |
483 if (buildCounterLibrary < 3) { | 510 if (buildCounterLibrary < 3) { |
484 unittest.expect(o.name, unittest.equals('foo')); | 511 unittest.expect(o.name, unittest.equals('foo')); |
485 unittest.expect(o.version, unittest.equals('foo')); | 512 unittest.expect(o.version, unittest.equals('foo')); |
486 } | 513 } |
487 buildCounterLibrary--; | 514 buildCounterLibrary--; |
488 } | 515 } |
489 | 516 |
490 buildUnnamed3430() { | 517 buildUnnamed3527() { |
491 var o = new core.List<api.Instance>(); | 518 var o = new core.List<api.Instance>(); |
492 o.add(buildInstance()); | 519 o.add(buildInstance()); |
493 o.add(buildInstance()); | 520 o.add(buildInstance()); |
494 return o; | 521 return o; |
495 } | 522 } |
496 | 523 |
497 checkUnnamed3430(core.List<api.Instance> o) { | 524 checkUnnamed3527(core.List<api.Instance> o) { |
498 unittest.expect(o, unittest.hasLength(2)); | 525 unittest.expect(o, unittest.hasLength(2)); |
499 checkInstance(o[0]); | 526 checkInstance(o[0]); |
500 checkInstance(o[1]); | 527 checkInstance(o[1]); |
501 } | 528 } |
502 | 529 |
503 core.int buildCounterListInstancesResponse = 0; | 530 core.int buildCounterListInstancesResponse = 0; |
504 buildListInstancesResponse() { | 531 buildListInstancesResponse() { |
505 var o = new api.ListInstancesResponse(); | 532 var o = new api.ListInstancesResponse(); |
506 buildCounterListInstancesResponse++; | 533 buildCounterListInstancesResponse++; |
507 if (buildCounterListInstancesResponse < 3) { | 534 if (buildCounterListInstancesResponse < 3) { |
508 o.instances = buildUnnamed3430(); | 535 o.instances = buildUnnamed3527(); |
509 o.nextPageToken = "foo"; | 536 o.nextPageToken = "foo"; |
510 } | 537 } |
511 buildCounterListInstancesResponse--; | 538 buildCounterListInstancesResponse--; |
512 return o; | 539 return o; |
513 } | 540 } |
514 | 541 |
515 checkListInstancesResponse(api.ListInstancesResponse o) { | 542 checkListInstancesResponse(api.ListInstancesResponse o) { |
516 buildCounterListInstancesResponse++; | 543 buildCounterListInstancesResponse++; |
517 if (buildCounterListInstancesResponse < 3) { | 544 if (buildCounterListInstancesResponse < 3) { |
518 checkUnnamed3430(o.instances); | 545 checkUnnamed3527(o.instances); |
519 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 546 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
520 } | 547 } |
521 buildCounterListInstancesResponse--; | 548 buildCounterListInstancesResponse--; |
522 } | 549 } |
523 | 550 |
524 buildUnnamed3431() { | 551 buildUnnamed3528() { |
525 var o = new core.List<api.Location>(); | 552 var o = new core.List<api.Location>(); |
526 o.add(buildLocation()); | 553 o.add(buildLocation()); |
527 o.add(buildLocation()); | 554 o.add(buildLocation()); |
528 return o; | 555 return o; |
529 } | 556 } |
530 | 557 |
531 checkUnnamed3431(core.List<api.Location> o) { | 558 checkUnnamed3528(core.List<api.Location> o) { |
532 unittest.expect(o, unittest.hasLength(2)); | 559 unittest.expect(o, unittest.hasLength(2)); |
533 checkLocation(o[0]); | 560 checkLocation(o[0]); |
534 checkLocation(o[1]); | 561 checkLocation(o[1]); |
535 } | 562 } |
536 | 563 |
537 core.int buildCounterListLocationsResponse = 0; | 564 core.int buildCounterListLocationsResponse = 0; |
538 buildListLocationsResponse() { | 565 buildListLocationsResponse() { |
539 var o = new api.ListLocationsResponse(); | 566 var o = new api.ListLocationsResponse(); |
540 buildCounterListLocationsResponse++; | 567 buildCounterListLocationsResponse++; |
541 if (buildCounterListLocationsResponse < 3) { | 568 if (buildCounterListLocationsResponse < 3) { |
542 o.locations = buildUnnamed3431(); | 569 o.locations = buildUnnamed3528(); |
543 o.nextPageToken = "foo"; | 570 o.nextPageToken = "foo"; |
544 } | 571 } |
545 buildCounterListLocationsResponse--; | 572 buildCounterListLocationsResponse--; |
546 return o; | 573 return o; |
547 } | 574 } |
548 | 575 |
549 checkListLocationsResponse(api.ListLocationsResponse o) { | 576 checkListLocationsResponse(api.ListLocationsResponse o) { |
550 buildCounterListLocationsResponse++; | 577 buildCounterListLocationsResponse++; |
551 if (buildCounterListLocationsResponse < 3) { | 578 if (buildCounterListLocationsResponse < 3) { |
552 checkUnnamed3431(o.locations); | 579 checkUnnamed3528(o.locations); |
553 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 580 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
554 } | 581 } |
555 buildCounterListLocationsResponse--; | 582 buildCounterListLocationsResponse--; |
556 } | 583 } |
557 | 584 |
558 buildUnnamed3432() { | 585 buildUnnamed3529() { |
559 var o = new core.List<api.Module>(); | 586 var o = new core.List<api.Module>(); |
560 o.add(buildModule()); | 587 o.add(buildModule()); |
561 o.add(buildModule()); | 588 o.add(buildModule()); |
562 return o; | 589 return o; |
563 } | 590 } |
564 | 591 |
565 checkUnnamed3432(core.List<api.Module> o) { | 592 checkUnnamed3529(core.List<api.Module> o) { |
566 unittest.expect(o, unittest.hasLength(2)); | 593 unittest.expect(o, unittest.hasLength(2)); |
567 checkModule(o[0]); | 594 checkModule(o[0]); |
568 checkModule(o[1]); | 595 checkModule(o[1]); |
569 } | 596 } |
570 | 597 |
571 core.int buildCounterListModulesResponse = 0; | 598 core.int buildCounterListModulesResponse = 0; |
572 buildListModulesResponse() { | 599 buildListModulesResponse() { |
573 var o = new api.ListModulesResponse(); | 600 var o = new api.ListModulesResponse(); |
574 buildCounterListModulesResponse++; | 601 buildCounterListModulesResponse++; |
575 if (buildCounterListModulesResponse < 3) { | 602 if (buildCounterListModulesResponse < 3) { |
576 o.modules = buildUnnamed3432(); | 603 o.modules = buildUnnamed3529(); |
577 o.nextPageToken = "foo"; | 604 o.nextPageToken = "foo"; |
578 } | 605 } |
579 buildCounterListModulesResponse--; | 606 buildCounterListModulesResponse--; |
580 return o; | 607 return o; |
581 } | 608 } |
582 | 609 |
583 checkListModulesResponse(api.ListModulesResponse o) { | 610 checkListModulesResponse(api.ListModulesResponse o) { |
584 buildCounterListModulesResponse++; | 611 buildCounterListModulesResponse++; |
585 if (buildCounterListModulesResponse < 3) { | 612 if (buildCounterListModulesResponse < 3) { |
586 checkUnnamed3432(o.modules); | 613 checkUnnamed3529(o.modules); |
587 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 614 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
588 } | 615 } |
589 buildCounterListModulesResponse--; | 616 buildCounterListModulesResponse--; |
590 } | 617 } |
591 | 618 |
592 buildUnnamed3433() { | 619 buildUnnamed3530() { |
593 var o = new core.List<api.Operation>(); | 620 var o = new core.List<api.Operation>(); |
594 o.add(buildOperation()); | 621 o.add(buildOperation()); |
595 o.add(buildOperation()); | 622 o.add(buildOperation()); |
596 return o; | 623 return o; |
597 } | 624 } |
598 | 625 |
599 checkUnnamed3433(core.List<api.Operation> o) { | 626 checkUnnamed3530(core.List<api.Operation> o) { |
600 unittest.expect(o, unittest.hasLength(2)); | 627 unittest.expect(o, unittest.hasLength(2)); |
601 checkOperation(o[0]); | 628 checkOperation(o[0]); |
602 checkOperation(o[1]); | 629 checkOperation(o[1]); |
603 } | 630 } |
604 | 631 |
605 core.int buildCounterListOperationsResponse = 0; | 632 core.int buildCounterListOperationsResponse = 0; |
606 buildListOperationsResponse() { | 633 buildListOperationsResponse() { |
607 var o = new api.ListOperationsResponse(); | 634 var o = new api.ListOperationsResponse(); |
608 buildCounterListOperationsResponse++; | 635 buildCounterListOperationsResponse++; |
609 if (buildCounterListOperationsResponse < 3) { | 636 if (buildCounterListOperationsResponse < 3) { |
610 o.nextPageToken = "foo"; | 637 o.nextPageToken = "foo"; |
611 o.operations = buildUnnamed3433(); | 638 o.operations = buildUnnamed3530(); |
612 } | 639 } |
613 buildCounterListOperationsResponse--; | 640 buildCounterListOperationsResponse--; |
614 return o; | 641 return o; |
615 } | 642 } |
616 | 643 |
617 checkListOperationsResponse(api.ListOperationsResponse o) { | 644 checkListOperationsResponse(api.ListOperationsResponse o) { |
618 buildCounterListOperationsResponse++; | 645 buildCounterListOperationsResponse++; |
619 if (buildCounterListOperationsResponse < 3) { | 646 if (buildCounterListOperationsResponse < 3) { |
620 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 647 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
621 checkUnnamed3433(o.operations); | 648 checkUnnamed3530(o.operations); |
622 } | 649 } |
623 buildCounterListOperationsResponse--; | 650 buildCounterListOperationsResponse--; |
624 } | 651 } |
625 | 652 |
626 buildUnnamed3434() { | 653 buildUnnamed3531() { |
627 var o = new core.List<api.Version>(); | 654 var o = new core.List<api.Version>(); |
628 o.add(buildVersion()); | 655 o.add(buildVersion()); |
629 o.add(buildVersion()); | 656 o.add(buildVersion()); |
630 return o; | 657 return o; |
631 } | 658 } |
632 | 659 |
633 checkUnnamed3434(core.List<api.Version> o) { | 660 checkUnnamed3531(core.List<api.Version> o) { |
634 unittest.expect(o, unittest.hasLength(2)); | 661 unittest.expect(o, unittest.hasLength(2)); |
635 checkVersion(o[0]); | 662 checkVersion(o[0]); |
636 checkVersion(o[1]); | 663 checkVersion(o[1]); |
637 } | 664 } |
638 | 665 |
639 core.int buildCounterListVersionsResponse = 0; | 666 core.int buildCounterListVersionsResponse = 0; |
640 buildListVersionsResponse() { | 667 buildListVersionsResponse() { |
641 var o = new api.ListVersionsResponse(); | 668 var o = new api.ListVersionsResponse(); |
642 buildCounterListVersionsResponse++; | 669 buildCounterListVersionsResponse++; |
643 if (buildCounterListVersionsResponse < 3) { | 670 if (buildCounterListVersionsResponse < 3) { |
644 o.nextPageToken = "foo"; | 671 o.nextPageToken = "foo"; |
645 o.versions = buildUnnamed3434(); | 672 o.versions = buildUnnamed3531(); |
646 } | 673 } |
647 buildCounterListVersionsResponse--; | 674 buildCounterListVersionsResponse--; |
648 return o; | 675 return o; |
649 } | 676 } |
650 | 677 |
651 checkListVersionsResponse(api.ListVersionsResponse o) { | 678 checkListVersionsResponse(api.ListVersionsResponse o) { |
652 buildCounterListVersionsResponse++; | 679 buildCounterListVersionsResponse++; |
653 if (buildCounterListVersionsResponse < 3) { | 680 if (buildCounterListVersionsResponse < 3) { |
654 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 681 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
655 checkUnnamed3434(o.versions); | 682 checkUnnamed3531(o.versions); |
656 } | 683 } |
657 buildCounterListVersionsResponse--; | 684 buildCounterListVersionsResponse--; |
658 } | 685 } |
659 | 686 |
660 buildUnnamed3435() { | 687 buildUnnamed3532() { |
661 var o = new core.Map<core.String, core.String>(); | 688 var o = new core.Map<core.String, core.String>(); |
662 o["x"] = "foo"; | 689 o["x"] = "foo"; |
663 o["y"] = "foo"; | 690 o["y"] = "foo"; |
664 return o; | 691 return o; |
665 } | 692 } |
666 | 693 |
667 checkUnnamed3435(core.Map<core.String, core.String> o) { | 694 checkUnnamed3532(core.Map<core.String, core.String> o) { |
668 unittest.expect(o, unittest.hasLength(2)); | 695 unittest.expect(o, unittest.hasLength(2)); |
669 unittest.expect(o["x"], unittest.equals('foo')); | 696 unittest.expect(o["x"], unittest.equals('foo')); |
670 unittest.expect(o["y"], unittest.equals('foo')); | 697 unittest.expect(o["y"], unittest.equals('foo')); |
671 } | 698 } |
672 | 699 |
673 buildUnnamed3436() { | 700 buildUnnamed3533() { |
674 var o = new core.Map<core.String, core.Object>(); | 701 var o = new core.Map<core.String, core.Object>(); |
675 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 702 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
676 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 703 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
677 return o; | 704 return o; |
678 } | 705 } |
679 | 706 |
680 checkUnnamed3436(core.Map<core.String, core.Object> o) { | 707 checkUnnamed3533(core.Map<core.String, core.Object> o) { |
681 unittest.expect(o, unittest.hasLength(2)); | 708 unittest.expect(o, unittest.hasLength(2)); |
682 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 709 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
683 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 710 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
684 } | 711 } |
685 | 712 |
686 core.int buildCounterLocation = 0; | 713 core.int buildCounterLocation = 0; |
687 buildLocation() { | 714 buildLocation() { |
688 var o = new api.Location(); | 715 var o = new api.Location(); |
689 buildCounterLocation++; | 716 buildCounterLocation++; |
690 if (buildCounterLocation < 3) { | 717 if (buildCounterLocation < 3) { |
691 o.labels = buildUnnamed3435(); | 718 o.labels = buildUnnamed3532(); |
692 o.locationId = "foo"; | 719 o.locationId = "foo"; |
693 o.metadata = buildUnnamed3436(); | 720 o.metadata = buildUnnamed3533(); |
694 o.name = "foo"; | 721 o.name = "foo"; |
695 } | 722 } |
696 buildCounterLocation--; | 723 buildCounterLocation--; |
697 return o; | 724 return o; |
698 } | 725 } |
699 | 726 |
700 checkLocation(api.Location o) { | 727 checkLocation(api.Location o) { |
701 buildCounterLocation++; | 728 buildCounterLocation++; |
702 if (buildCounterLocation < 3) { | 729 if (buildCounterLocation < 3) { |
703 checkUnnamed3435(o.labels); | 730 checkUnnamed3532(o.labels); |
704 unittest.expect(o.locationId, unittest.equals('foo')); | 731 unittest.expect(o.locationId, unittest.equals('foo')); |
705 checkUnnamed3436(o.metadata); | 732 checkUnnamed3533(o.metadata); |
706 unittest.expect(o.name, unittest.equals('foo')); | 733 unittest.expect(o.name, unittest.equals('foo')); |
707 } | 734 } |
708 buildCounterLocation--; | 735 buildCounterLocation--; |
709 } | 736 } |
710 | 737 |
711 core.int buildCounterLocationMetadata = 0; | 738 core.int buildCounterLocationMetadata = 0; |
712 buildLocationMetadata() { | 739 buildLocationMetadata() { |
713 var o = new api.LocationMetadata(); | 740 var o = new api.LocationMetadata(); |
714 buildCounterLocationMetadata++; | 741 buildCounterLocationMetadata++; |
715 if (buildCounterLocationMetadata < 3) { | 742 if (buildCounterLocationMetadata < 3) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 checkModule(api.Module o) { | 791 checkModule(api.Module o) { |
765 buildCounterModule++; | 792 buildCounterModule++; |
766 if (buildCounterModule < 3) { | 793 if (buildCounterModule < 3) { |
767 unittest.expect(o.id, unittest.equals('foo')); | 794 unittest.expect(o.id, unittest.equals('foo')); |
768 unittest.expect(o.name, unittest.equals('foo')); | 795 unittest.expect(o.name, unittest.equals('foo')); |
769 checkTrafficSplit(o.split); | 796 checkTrafficSplit(o.split); |
770 } | 797 } |
771 buildCounterModule--; | 798 buildCounterModule--; |
772 } | 799 } |
773 | 800 |
774 buildUnnamed3437() { | 801 buildUnnamed3534() { |
775 var o = new core.List<core.String>(); | 802 var o = new core.List<core.String>(); |
776 o.add("foo"); | 803 o.add("foo"); |
777 o.add("foo"); | 804 o.add("foo"); |
778 return o; | 805 return o; |
779 } | 806 } |
780 | 807 |
781 checkUnnamed3437(core.List<core.String> o) { | 808 checkUnnamed3534(core.List<core.String> o) { |
782 unittest.expect(o, unittest.hasLength(2)); | 809 unittest.expect(o, unittest.hasLength(2)); |
783 unittest.expect(o[0], unittest.equals('foo')); | 810 unittest.expect(o[0], unittest.equals('foo')); |
784 unittest.expect(o[1], unittest.equals('foo')); | 811 unittest.expect(o[1], unittest.equals('foo')); |
785 } | 812 } |
786 | 813 |
787 core.int buildCounterNetwork = 0; | 814 core.int buildCounterNetwork = 0; |
788 buildNetwork() { | 815 buildNetwork() { |
789 var o = new api.Network(); | 816 var o = new api.Network(); |
790 buildCounterNetwork++; | 817 buildCounterNetwork++; |
791 if (buildCounterNetwork < 3) { | 818 if (buildCounterNetwork < 3) { |
792 o.forwardedPorts = buildUnnamed3437(); | 819 o.forwardedPorts = buildUnnamed3534(); |
793 o.instanceTag = "foo"; | 820 o.instanceTag = "foo"; |
794 o.name = "foo"; | 821 o.name = "foo"; |
795 } | 822 } |
796 buildCounterNetwork--; | 823 buildCounterNetwork--; |
797 return o; | 824 return o; |
798 } | 825 } |
799 | 826 |
800 checkNetwork(api.Network o) { | 827 checkNetwork(api.Network o) { |
801 buildCounterNetwork++; | 828 buildCounterNetwork++; |
802 if (buildCounterNetwork < 3) { | 829 if (buildCounterNetwork < 3) { |
803 checkUnnamed3437(o.forwardedPorts); | 830 checkUnnamed3534(o.forwardedPorts); |
804 unittest.expect(o.instanceTag, unittest.equals('foo')); | 831 unittest.expect(o.instanceTag, unittest.equals('foo')); |
805 unittest.expect(o.name, unittest.equals('foo')); | 832 unittest.expect(o.name, unittest.equals('foo')); |
806 } | 833 } |
807 buildCounterNetwork--; | 834 buildCounterNetwork--; |
808 } | 835 } |
809 | 836 |
810 core.int buildCounterNetworkUtilization = 0; | 837 core.int buildCounterNetworkUtilization = 0; |
811 buildNetworkUtilization() { | 838 buildNetworkUtilization() { |
812 var o = new api.NetworkUtilization(); | 839 var o = new api.NetworkUtilization(); |
813 buildCounterNetworkUtilization++; | 840 buildCounterNetworkUtilization++; |
(...skipping 11 matching lines...) Expand all Loading... |
825 buildCounterNetworkUtilization++; | 852 buildCounterNetworkUtilization++; |
826 if (buildCounterNetworkUtilization < 3) { | 853 if (buildCounterNetworkUtilization < 3) { |
827 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); | 854 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); |
828 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); | 855 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); |
829 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); | 856 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); |
830 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); | 857 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); |
831 } | 858 } |
832 buildCounterNetworkUtilization--; | 859 buildCounterNetworkUtilization--; |
833 } | 860 } |
834 | 861 |
835 buildUnnamed3438() { | 862 buildUnnamed3535() { |
836 var o = new core.Map<core.String, core.Object>(); | 863 var o = new core.Map<core.String, core.Object>(); |
837 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 864 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
838 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 865 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
839 return o; | 866 return o; |
840 } | 867 } |
841 | 868 |
842 checkUnnamed3438(core.Map<core.String, core.Object> o) { | 869 checkUnnamed3535(core.Map<core.String, core.Object> o) { |
843 unittest.expect(o, unittest.hasLength(2)); | 870 unittest.expect(o, unittest.hasLength(2)); |
844 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 871 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
845 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 872 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
846 } | 873 } |
847 | 874 |
848 buildUnnamed3439() { | 875 buildUnnamed3536() { |
849 var o = new core.Map<core.String, core.Object>(); | 876 var o = new core.Map<core.String, core.Object>(); |
850 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 877 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
851 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 878 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
852 return o; | 879 return o; |
853 } | 880 } |
854 | 881 |
855 checkUnnamed3439(core.Map<core.String, core.Object> o) { | 882 checkUnnamed3536(core.Map<core.String, core.Object> o) { |
856 unittest.expect(o, unittest.hasLength(2)); | 883 unittest.expect(o, unittest.hasLength(2)); |
857 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 884 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
858 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 885 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
859 } | 886 } |
860 | 887 |
861 core.int buildCounterOperation = 0; | 888 core.int buildCounterOperation = 0; |
862 buildOperation() { | 889 buildOperation() { |
863 var o = new api.Operation(); | 890 var o = new api.Operation(); |
864 buildCounterOperation++; | 891 buildCounterOperation++; |
865 if (buildCounterOperation < 3) { | 892 if (buildCounterOperation < 3) { |
866 o.done = true; | 893 o.done = true; |
867 o.error = buildStatus(); | 894 o.error = buildStatus(); |
868 o.metadata = buildUnnamed3438(); | 895 o.metadata = buildUnnamed3535(); |
869 o.name = "foo"; | 896 o.name = "foo"; |
870 o.response = buildUnnamed3439(); | 897 o.response = buildUnnamed3536(); |
871 } | 898 } |
872 buildCounterOperation--; | 899 buildCounterOperation--; |
873 return o; | 900 return o; |
874 } | 901 } |
875 | 902 |
876 checkOperation(api.Operation o) { | 903 checkOperation(api.Operation o) { |
877 buildCounterOperation++; | 904 buildCounterOperation++; |
878 if (buildCounterOperation < 3) { | 905 if (buildCounterOperation < 3) { |
879 unittest.expect(o.done, unittest.isTrue); | 906 unittest.expect(o.done, unittest.isTrue); |
880 checkStatus(o.error); | 907 checkStatus(o.error); |
881 checkUnnamed3438(o.metadata); | 908 checkUnnamed3535(o.metadata); |
882 unittest.expect(o.name, unittest.equals('foo')); | 909 unittest.expect(o.name, unittest.equals('foo')); |
883 checkUnnamed3439(o.response); | 910 checkUnnamed3536(o.response); |
884 } | 911 } |
885 buildCounterOperation--; | 912 buildCounterOperation--; |
886 } | 913 } |
887 | 914 |
888 core.int buildCounterOperationMetadata = 0; | 915 core.int buildCounterOperationMetadata = 0; |
889 buildOperationMetadata() { | 916 buildOperationMetadata() { |
890 var o = new api.OperationMetadata(); | 917 var o = new api.OperationMetadata(); |
891 buildCounterOperationMetadata++; | 918 buildCounterOperationMetadata++; |
892 if (buildCounterOperationMetadata < 3) { | 919 if (buildCounterOperationMetadata < 3) { |
893 o.endTime = "foo"; | 920 o.endTime = "foo"; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 if (buildCounterOperationMetadataExperimental < 3) { | 961 if (buildCounterOperationMetadataExperimental < 3) { |
935 unittest.expect(o.endTime, unittest.equals('foo')); | 962 unittest.expect(o.endTime, unittest.equals('foo')); |
936 unittest.expect(o.insertTime, unittest.equals('foo')); | 963 unittest.expect(o.insertTime, unittest.equals('foo')); |
937 unittest.expect(o.method, unittest.equals('foo')); | 964 unittest.expect(o.method, unittest.equals('foo')); |
938 unittest.expect(o.target, unittest.equals('foo')); | 965 unittest.expect(o.target, unittest.equals('foo')); |
939 unittest.expect(o.user, unittest.equals('foo')); | 966 unittest.expect(o.user, unittest.equals('foo')); |
940 } | 967 } |
941 buildCounterOperationMetadataExperimental--; | 968 buildCounterOperationMetadataExperimental--; |
942 } | 969 } |
943 | 970 |
944 buildUnnamed3440() { | 971 buildUnnamed3537() { |
945 var o = new core.List<core.String>(); | 972 var o = new core.List<core.String>(); |
946 o.add("foo"); | 973 o.add("foo"); |
947 o.add("foo"); | 974 o.add("foo"); |
948 return o; | 975 return o; |
949 } | 976 } |
950 | 977 |
951 checkUnnamed3440(core.List<core.String> o) { | 978 checkUnnamed3537(core.List<core.String> o) { |
952 unittest.expect(o, unittest.hasLength(2)); | 979 unittest.expect(o, unittest.hasLength(2)); |
953 unittest.expect(o[0], unittest.equals('foo')); | 980 unittest.expect(o[0], unittest.equals('foo')); |
954 unittest.expect(o[1], unittest.equals('foo')); | 981 unittest.expect(o[1], unittest.equals('foo')); |
955 } | 982 } |
956 | 983 |
957 core.int buildCounterOperationMetadataV1 = 0; | 984 core.int buildCounterOperationMetadataV1 = 0; |
958 buildOperationMetadataV1() { | 985 buildOperationMetadataV1() { |
959 var o = new api.OperationMetadataV1(); | 986 var o = new api.OperationMetadataV1(); |
960 buildCounterOperationMetadataV1++; | 987 buildCounterOperationMetadataV1++; |
961 if (buildCounterOperationMetadataV1 < 3) { | 988 if (buildCounterOperationMetadataV1 < 3) { |
962 o.endTime = "foo"; | 989 o.endTime = "foo"; |
963 o.ephemeralMessage = "foo"; | 990 o.ephemeralMessage = "foo"; |
964 o.insertTime = "foo"; | 991 o.insertTime = "foo"; |
965 o.method = "foo"; | 992 o.method = "foo"; |
966 o.target = "foo"; | 993 o.target = "foo"; |
967 o.user = "foo"; | 994 o.user = "foo"; |
968 o.warning = buildUnnamed3440(); | 995 o.warning = buildUnnamed3537(); |
969 } | 996 } |
970 buildCounterOperationMetadataV1--; | 997 buildCounterOperationMetadataV1--; |
971 return o; | 998 return o; |
972 } | 999 } |
973 | 1000 |
974 checkOperationMetadataV1(api.OperationMetadataV1 o) { | 1001 checkOperationMetadataV1(api.OperationMetadataV1 o) { |
975 buildCounterOperationMetadataV1++; | 1002 buildCounterOperationMetadataV1++; |
976 if (buildCounterOperationMetadataV1 < 3) { | 1003 if (buildCounterOperationMetadataV1 < 3) { |
977 unittest.expect(o.endTime, unittest.equals('foo')); | 1004 unittest.expect(o.endTime, unittest.equals('foo')); |
978 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); | 1005 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
979 unittest.expect(o.insertTime, unittest.equals('foo')); | 1006 unittest.expect(o.insertTime, unittest.equals('foo')); |
980 unittest.expect(o.method, unittest.equals('foo')); | 1007 unittest.expect(o.method, unittest.equals('foo')); |
981 unittest.expect(o.target, unittest.equals('foo')); | 1008 unittest.expect(o.target, unittest.equals('foo')); |
982 unittest.expect(o.user, unittest.equals('foo')); | 1009 unittest.expect(o.user, unittest.equals('foo')); |
983 checkUnnamed3440(o.warning); | 1010 checkUnnamed3537(o.warning); |
984 } | 1011 } |
985 buildCounterOperationMetadataV1--; | 1012 buildCounterOperationMetadataV1--; |
986 } | 1013 } |
987 | 1014 |
| 1015 buildUnnamed3538() { |
| 1016 var o = new core.List<core.String>(); |
| 1017 o.add("foo"); |
| 1018 o.add("foo"); |
| 1019 return o; |
| 1020 } |
| 1021 |
| 1022 checkUnnamed3538(core.List<core.String> o) { |
| 1023 unittest.expect(o, unittest.hasLength(2)); |
| 1024 unittest.expect(o[0], unittest.equals('foo')); |
| 1025 unittest.expect(o[1], unittest.equals('foo')); |
| 1026 } |
| 1027 |
| 1028 core.int buildCounterOperationMetadataV1Beta = 0; |
| 1029 buildOperationMetadataV1Beta() { |
| 1030 var o = new api.OperationMetadataV1Beta(); |
| 1031 buildCounterOperationMetadataV1Beta++; |
| 1032 if (buildCounterOperationMetadataV1Beta < 3) { |
| 1033 o.endTime = "foo"; |
| 1034 o.ephemeralMessage = "foo"; |
| 1035 o.insertTime = "foo"; |
| 1036 o.method = "foo"; |
| 1037 o.target = "foo"; |
| 1038 o.user = "foo"; |
| 1039 o.warning = buildUnnamed3538(); |
| 1040 } |
| 1041 buildCounterOperationMetadataV1Beta--; |
| 1042 return o; |
| 1043 } |
| 1044 |
| 1045 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { |
| 1046 buildCounterOperationMetadataV1Beta++; |
| 1047 if (buildCounterOperationMetadataV1Beta < 3) { |
| 1048 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1049 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
| 1050 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 1051 unittest.expect(o.method, unittest.equals('foo')); |
| 1052 unittest.expect(o.target, unittest.equals('foo')); |
| 1053 unittest.expect(o.user, unittest.equals('foo')); |
| 1054 checkUnnamed3538(o.warning); |
| 1055 } |
| 1056 buildCounterOperationMetadataV1Beta--; |
| 1057 } |
| 1058 |
988 core.int buildCounterOperationMetadataV1Beta5 = 0; | 1059 core.int buildCounterOperationMetadataV1Beta5 = 0; |
989 buildOperationMetadataV1Beta5() { | 1060 buildOperationMetadataV1Beta5() { |
990 var o = new api.OperationMetadataV1Beta5(); | 1061 var o = new api.OperationMetadataV1Beta5(); |
991 buildCounterOperationMetadataV1Beta5++; | 1062 buildCounterOperationMetadataV1Beta5++; |
992 if (buildCounterOperationMetadataV1Beta5 < 3) { | 1063 if (buildCounterOperationMetadataV1Beta5 < 3) { |
993 o.endTime = "foo"; | 1064 o.endTime = "foo"; |
994 o.insertTime = "foo"; | 1065 o.insertTime = "foo"; |
995 o.method = "foo"; | 1066 o.method = "foo"; |
996 o.target = "foo"; | 1067 o.target = "foo"; |
997 o.user = "foo"; | 1068 o.user = "foo"; |
(...skipping 28 matching lines...) Expand all Loading... |
1026 | 1097 |
1027 checkRequestUtilization(api.RequestUtilization o) { | 1098 checkRequestUtilization(api.RequestUtilization o) { |
1028 buildCounterRequestUtilization++; | 1099 buildCounterRequestUtilization++; |
1029 if (buildCounterRequestUtilization < 3) { | 1100 if (buildCounterRequestUtilization < 3) { |
1030 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); | 1101 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); |
1031 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); | 1102 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); |
1032 } | 1103 } |
1033 buildCounterRequestUtilization--; | 1104 buildCounterRequestUtilization--; |
1034 } | 1105 } |
1035 | 1106 |
1036 buildUnnamed3441() { | 1107 buildUnnamed3539() { |
1037 var o = new core.List<api.Volume>(); | 1108 var o = new core.List<api.Volume>(); |
1038 o.add(buildVolume()); | 1109 o.add(buildVolume()); |
1039 o.add(buildVolume()); | 1110 o.add(buildVolume()); |
1040 return o; | 1111 return o; |
1041 } | 1112 } |
1042 | 1113 |
1043 checkUnnamed3441(core.List<api.Volume> o) { | 1114 checkUnnamed3539(core.List<api.Volume> o) { |
1044 unittest.expect(o, unittest.hasLength(2)); | 1115 unittest.expect(o, unittest.hasLength(2)); |
1045 checkVolume(o[0]); | 1116 checkVolume(o[0]); |
1046 checkVolume(o[1]); | 1117 checkVolume(o[1]); |
1047 } | 1118 } |
1048 | 1119 |
1049 core.int buildCounterResources = 0; | 1120 core.int buildCounterResources = 0; |
1050 buildResources() { | 1121 buildResources() { |
1051 var o = new api.Resources(); | 1122 var o = new api.Resources(); |
1052 buildCounterResources++; | 1123 buildCounterResources++; |
1053 if (buildCounterResources < 3) { | 1124 if (buildCounterResources < 3) { |
1054 o.cpu = 42.0; | 1125 o.cpu = 42.0; |
1055 o.diskGb = 42.0; | 1126 o.diskGb = 42.0; |
1056 o.memoryGb = 42.0; | 1127 o.memoryGb = 42.0; |
1057 o.volumes = buildUnnamed3441(); | 1128 o.volumes = buildUnnamed3539(); |
1058 } | 1129 } |
1059 buildCounterResources--; | 1130 buildCounterResources--; |
1060 return o; | 1131 return o; |
1061 } | 1132 } |
1062 | 1133 |
1063 checkResources(api.Resources o) { | 1134 checkResources(api.Resources o) { |
1064 buildCounterResources++; | 1135 buildCounterResources++; |
1065 if (buildCounterResources < 3) { | 1136 if (buildCounterResources < 3) { |
1066 unittest.expect(o.cpu, unittest.equals(42.0)); | 1137 unittest.expect(o.cpu, unittest.equals(42.0)); |
1067 unittest.expect(o.diskGb, unittest.equals(42.0)); | 1138 unittest.expect(o.diskGb, unittest.equals(42.0)); |
1068 unittest.expect(o.memoryGb, unittest.equals(42.0)); | 1139 unittest.expect(o.memoryGb, unittest.equals(42.0)); |
1069 checkUnnamed3441(o.volumes); | 1140 checkUnnamed3539(o.volumes); |
1070 } | 1141 } |
1071 buildCounterResources--; | 1142 buildCounterResources--; |
1072 } | 1143 } |
1073 | 1144 |
1074 core.int buildCounterScriptHandler = 0; | 1145 core.int buildCounterScriptHandler = 0; |
1075 buildScriptHandler() { | 1146 buildScriptHandler() { |
1076 var o = new api.ScriptHandler(); | 1147 var o = new api.ScriptHandler(); |
1077 buildCounterScriptHandler++; | 1148 buildCounterScriptHandler++; |
1078 if (buildCounterScriptHandler < 3) { | 1149 if (buildCounterScriptHandler < 3) { |
1079 o.scriptPath = "foo"; | 1150 o.scriptPath = "foo"; |
(...skipping 24 matching lines...) Expand all Loading... |
1104 | 1175 |
1105 checkSourceReference(api.SourceReference o) { | 1176 checkSourceReference(api.SourceReference o) { |
1106 buildCounterSourceReference++; | 1177 buildCounterSourceReference++; |
1107 if (buildCounterSourceReference < 3) { | 1178 if (buildCounterSourceReference < 3) { |
1108 unittest.expect(o.repository, unittest.equals('foo')); | 1179 unittest.expect(o.repository, unittest.equals('foo')); |
1109 unittest.expect(o.revisionId, unittest.equals('foo')); | 1180 unittest.expect(o.revisionId, unittest.equals('foo')); |
1110 } | 1181 } |
1111 buildCounterSourceReference--; | 1182 buildCounterSourceReference--; |
1112 } | 1183 } |
1113 | 1184 |
1114 buildUnnamed3442() { | 1185 buildUnnamed3540() { |
1115 var o = new core.Map<core.String, core.String>(); | 1186 var o = new core.Map<core.String, core.String>(); |
1116 o["x"] = "foo"; | 1187 o["x"] = "foo"; |
1117 o["y"] = "foo"; | 1188 o["y"] = "foo"; |
1118 return o; | 1189 return o; |
1119 } | 1190 } |
1120 | 1191 |
1121 checkUnnamed3442(core.Map<core.String, core.String> o) { | 1192 checkUnnamed3540(core.Map<core.String, core.String> o) { |
1122 unittest.expect(o, unittest.hasLength(2)); | 1193 unittest.expect(o, unittest.hasLength(2)); |
1123 unittest.expect(o["x"], unittest.equals('foo')); | 1194 unittest.expect(o["x"], unittest.equals('foo')); |
1124 unittest.expect(o["y"], unittest.equals('foo')); | 1195 unittest.expect(o["y"], unittest.equals('foo')); |
1125 } | 1196 } |
1126 | 1197 |
1127 core.int buildCounterStaticDirectoryHandler = 0; | 1198 core.int buildCounterStaticDirectoryHandler = 0; |
1128 buildStaticDirectoryHandler() { | 1199 buildStaticDirectoryHandler() { |
1129 var o = new api.StaticDirectoryHandler(); | 1200 var o = new api.StaticDirectoryHandler(); |
1130 buildCounterStaticDirectoryHandler++; | 1201 buildCounterStaticDirectoryHandler++; |
1131 if (buildCounterStaticDirectoryHandler < 3) { | 1202 if (buildCounterStaticDirectoryHandler < 3) { |
1132 o.applicationReadable = true; | 1203 o.applicationReadable = true; |
1133 o.directory = "foo"; | 1204 o.directory = "foo"; |
1134 o.expiration = "foo"; | 1205 o.expiration = "foo"; |
1135 o.httpHeaders = buildUnnamed3442(); | 1206 o.httpHeaders = buildUnnamed3540(); |
1136 o.mimeType = "foo"; | 1207 o.mimeType = "foo"; |
1137 o.requireMatchingFile = true; | 1208 o.requireMatchingFile = true; |
1138 } | 1209 } |
1139 buildCounterStaticDirectoryHandler--; | 1210 buildCounterStaticDirectoryHandler--; |
1140 return o; | 1211 return o; |
1141 } | 1212 } |
1142 | 1213 |
1143 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { | 1214 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { |
1144 buildCounterStaticDirectoryHandler++; | 1215 buildCounterStaticDirectoryHandler++; |
1145 if (buildCounterStaticDirectoryHandler < 3) { | 1216 if (buildCounterStaticDirectoryHandler < 3) { |
1146 unittest.expect(o.applicationReadable, unittest.isTrue); | 1217 unittest.expect(o.applicationReadable, unittest.isTrue); |
1147 unittest.expect(o.directory, unittest.equals('foo')); | 1218 unittest.expect(o.directory, unittest.equals('foo')); |
1148 unittest.expect(o.expiration, unittest.equals('foo')); | 1219 unittest.expect(o.expiration, unittest.equals('foo')); |
1149 checkUnnamed3442(o.httpHeaders); | 1220 checkUnnamed3540(o.httpHeaders); |
1150 unittest.expect(o.mimeType, unittest.equals('foo')); | 1221 unittest.expect(o.mimeType, unittest.equals('foo')); |
1151 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1222 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1152 } | 1223 } |
1153 buildCounterStaticDirectoryHandler--; | 1224 buildCounterStaticDirectoryHandler--; |
1154 } | 1225 } |
1155 | 1226 |
1156 buildUnnamed3443() { | 1227 buildUnnamed3541() { |
1157 var o = new core.Map<core.String, core.String>(); | 1228 var o = new core.Map<core.String, core.String>(); |
1158 o["x"] = "foo"; | 1229 o["x"] = "foo"; |
1159 o["y"] = "foo"; | 1230 o["y"] = "foo"; |
1160 return o; | 1231 return o; |
1161 } | 1232 } |
1162 | 1233 |
1163 checkUnnamed3443(core.Map<core.String, core.String> o) { | 1234 checkUnnamed3541(core.Map<core.String, core.String> o) { |
1164 unittest.expect(o, unittest.hasLength(2)); | 1235 unittest.expect(o, unittest.hasLength(2)); |
1165 unittest.expect(o["x"], unittest.equals('foo')); | 1236 unittest.expect(o["x"], unittest.equals('foo')); |
1166 unittest.expect(o["y"], unittest.equals('foo')); | 1237 unittest.expect(o["y"], unittest.equals('foo')); |
1167 } | 1238 } |
1168 | 1239 |
1169 core.int buildCounterStaticFilesHandler = 0; | 1240 core.int buildCounterStaticFilesHandler = 0; |
1170 buildStaticFilesHandler() { | 1241 buildStaticFilesHandler() { |
1171 var o = new api.StaticFilesHandler(); | 1242 var o = new api.StaticFilesHandler(); |
1172 buildCounterStaticFilesHandler++; | 1243 buildCounterStaticFilesHandler++; |
1173 if (buildCounterStaticFilesHandler < 3) { | 1244 if (buildCounterStaticFilesHandler < 3) { |
1174 o.applicationReadable = true; | 1245 o.applicationReadable = true; |
1175 o.expiration = "foo"; | 1246 o.expiration = "foo"; |
1176 o.httpHeaders = buildUnnamed3443(); | 1247 o.httpHeaders = buildUnnamed3541(); |
1177 o.mimeType = "foo"; | 1248 o.mimeType = "foo"; |
1178 o.path = "foo"; | 1249 o.path = "foo"; |
1179 o.requireMatchingFile = true; | 1250 o.requireMatchingFile = true; |
1180 o.uploadPathRegex = "foo"; | 1251 o.uploadPathRegex = "foo"; |
1181 } | 1252 } |
1182 buildCounterStaticFilesHandler--; | 1253 buildCounterStaticFilesHandler--; |
1183 return o; | 1254 return o; |
1184 } | 1255 } |
1185 | 1256 |
1186 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1257 checkStaticFilesHandler(api.StaticFilesHandler o) { |
1187 buildCounterStaticFilesHandler++; | 1258 buildCounterStaticFilesHandler++; |
1188 if (buildCounterStaticFilesHandler < 3) { | 1259 if (buildCounterStaticFilesHandler < 3) { |
1189 unittest.expect(o.applicationReadable, unittest.isTrue); | 1260 unittest.expect(o.applicationReadable, unittest.isTrue); |
1190 unittest.expect(o.expiration, unittest.equals('foo')); | 1261 unittest.expect(o.expiration, unittest.equals('foo')); |
1191 checkUnnamed3443(o.httpHeaders); | 1262 checkUnnamed3541(o.httpHeaders); |
1192 unittest.expect(o.mimeType, unittest.equals('foo')); | 1263 unittest.expect(o.mimeType, unittest.equals('foo')); |
1193 unittest.expect(o.path, unittest.equals('foo')); | 1264 unittest.expect(o.path, unittest.equals('foo')); |
1194 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1265 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1195 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1266 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
1196 } | 1267 } |
1197 buildCounterStaticFilesHandler--; | 1268 buildCounterStaticFilesHandler--; |
1198 } | 1269 } |
1199 | 1270 |
1200 buildUnnamed3444() { | 1271 buildUnnamed3542() { |
1201 var o = new core.Map<core.String, core.Object>(); | 1272 var o = new core.Map<core.String, core.Object>(); |
1202 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1273 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1203 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1274 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1204 return o; | 1275 return o; |
1205 } | 1276 } |
1206 | 1277 |
1207 checkUnnamed3444(core.Map<core.String, core.Object> o) { | 1278 checkUnnamed3542(core.Map<core.String, core.Object> o) { |
1208 unittest.expect(o, unittest.hasLength(2)); | 1279 unittest.expect(o, unittest.hasLength(2)); |
1209 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); | 1280 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
1210 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); | 1281 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
1211 } | 1282 } |
1212 | 1283 |
1213 buildUnnamed3445() { | 1284 buildUnnamed3543() { |
1214 var o = new core.List<core.Map<core.String, core.Object>>(); | 1285 var o = new core.List<core.Map<core.String, core.Object>>(); |
1215 o.add(buildUnnamed3444()); | 1286 o.add(buildUnnamed3542()); |
1216 o.add(buildUnnamed3444()); | 1287 o.add(buildUnnamed3542()); |
1217 return o; | 1288 return o; |
1218 } | 1289 } |
1219 | 1290 |
1220 checkUnnamed3445(core.List<core.Map<core.String, core.Object>> o) { | 1291 checkUnnamed3543(core.List<core.Map<core.String, core.Object>> o) { |
1221 unittest.expect(o, unittest.hasLength(2)); | 1292 unittest.expect(o, unittest.hasLength(2)); |
1222 checkUnnamed3444(o[0]); | 1293 checkUnnamed3542(o[0]); |
1223 checkUnnamed3444(o[1]); | 1294 checkUnnamed3542(o[1]); |
1224 } | 1295 } |
1225 | 1296 |
1226 core.int buildCounterStatus = 0; | 1297 core.int buildCounterStatus = 0; |
1227 buildStatus() { | 1298 buildStatus() { |
1228 var o = new api.Status(); | 1299 var o = new api.Status(); |
1229 buildCounterStatus++; | 1300 buildCounterStatus++; |
1230 if (buildCounterStatus < 3) { | 1301 if (buildCounterStatus < 3) { |
1231 o.code = 42; | 1302 o.code = 42; |
1232 o.details = buildUnnamed3445(); | 1303 o.details = buildUnnamed3543(); |
1233 o.message = "foo"; | 1304 o.message = "foo"; |
1234 } | 1305 } |
1235 buildCounterStatus--; | 1306 buildCounterStatus--; |
1236 return o; | 1307 return o; |
1237 } | 1308 } |
1238 | 1309 |
1239 checkStatus(api.Status o) { | 1310 checkStatus(api.Status o) { |
1240 buildCounterStatus++; | 1311 buildCounterStatus++; |
1241 if (buildCounterStatus < 3) { | 1312 if (buildCounterStatus < 3) { |
1242 unittest.expect(o.code, unittest.equals(42)); | 1313 unittest.expect(o.code, unittest.equals(42)); |
1243 checkUnnamed3445(o.details); | 1314 checkUnnamed3543(o.details); |
1244 unittest.expect(o.message, unittest.equals('foo')); | 1315 unittest.expect(o.message, unittest.equals('foo')); |
1245 } | 1316 } |
1246 buildCounterStatus--; | 1317 buildCounterStatus--; |
1247 } | 1318 } |
1248 | 1319 |
1249 buildUnnamed3446() { | 1320 buildUnnamed3544() { |
1250 var o = new core.Map<core.String, core.double>(); | 1321 var o = new core.Map<core.String, core.double>(); |
1251 o["x"] = 42.0; | 1322 o["x"] = 42.0; |
1252 o["y"] = 42.0; | 1323 o["y"] = 42.0; |
1253 return o; | 1324 return o; |
1254 } | 1325 } |
1255 | 1326 |
1256 checkUnnamed3446(core.Map<core.String, core.double> o) { | 1327 checkUnnamed3544(core.Map<core.String, core.double> o) { |
1257 unittest.expect(o, unittest.hasLength(2)); | 1328 unittest.expect(o, unittest.hasLength(2)); |
1258 unittest.expect(o["x"], unittest.equals(42.0)); | 1329 unittest.expect(o["x"], unittest.equals(42.0)); |
1259 unittest.expect(o["y"], unittest.equals(42.0)); | 1330 unittest.expect(o["y"], unittest.equals(42.0)); |
1260 } | 1331 } |
1261 | 1332 |
1262 core.int buildCounterTrafficSplit = 0; | 1333 core.int buildCounterTrafficSplit = 0; |
1263 buildTrafficSplit() { | 1334 buildTrafficSplit() { |
1264 var o = new api.TrafficSplit(); | 1335 var o = new api.TrafficSplit(); |
1265 buildCounterTrafficSplit++; | 1336 buildCounterTrafficSplit++; |
1266 if (buildCounterTrafficSplit < 3) { | 1337 if (buildCounterTrafficSplit < 3) { |
1267 o.allocations = buildUnnamed3446(); | 1338 o.allocations = buildUnnamed3544(); |
1268 o.shardBy = "foo"; | 1339 o.shardBy = "foo"; |
1269 } | 1340 } |
1270 buildCounterTrafficSplit--; | 1341 buildCounterTrafficSplit--; |
1271 return o; | 1342 return o; |
1272 } | 1343 } |
1273 | 1344 |
1274 checkTrafficSplit(api.TrafficSplit o) { | 1345 checkTrafficSplit(api.TrafficSplit o) { |
1275 buildCounterTrafficSplit++; | 1346 buildCounterTrafficSplit++; |
1276 if (buildCounterTrafficSplit < 3) { | 1347 if (buildCounterTrafficSplit < 3) { |
1277 checkUnnamed3446(o.allocations); | 1348 checkUnnamed3544(o.allocations); |
1278 unittest.expect(o.shardBy, unittest.equals('foo')); | 1349 unittest.expect(o.shardBy, unittest.equals('foo')); |
1279 } | 1350 } |
1280 buildCounterTrafficSplit--; | 1351 buildCounterTrafficSplit--; |
1281 } | 1352 } |
1282 | 1353 |
1283 core.int buildCounterUrlDispatchRule = 0; | 1354 core.int buildCounterUrlDispatchRule = 0; |
1284 buildUrlDispatchRule() { | 1355 buildUrlDispatchRule() { |
1285 var o = new api.UrlDispatchRule(); | 1356 var o = new api.UrlDispatchRule(); |
1286 buildCounterUrlDispatchRule++; | 1357 buildCounterUrlDispatchRule++; |
1287 if (buildCounterUrlDispatchRule < 3) { | 1358 if (buildCounterUrlDispatchRule < 3) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1331 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1402 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
1332 checkScriptHandler(o.script); | 1403 checkScriptHandler(o.script); |
1333 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1404 unittest.expect(o.securityLevel, unittest.equals('foo')); |
1334 checkStaticDirectoryHandler(o.staticDirectory); | 1405 checkStaticDirectoryHandler(o.staticDirectory); |
1335 checkStaticFilesHandler(o.staticFiles); | 1406 checkStaticFilesHandler(o.staticFiles); |
1336 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1407 unittest.expect(o.urlRegex, unittest.equals('foo')); |
1337 } | 1408 } |
1338 buildCounterUrlMap--; | 1409 buildCounterUrlMap--; |
1339 } | 1410 } |
1340 | 1411 |
1341 buildUnnamed3447() { | 1412 buildUnnamed3545() { |
1342 var o = new core.Map<core.String, core.String>(); | 1413 var o = new core.Map<core.String, core.String>(); |
1343 o["x"] = "foo"; | 1414 o["x"] = "foo"; |
1344 o["y"] = "foo"; | 1415 o["y"] = "foo"; |
1345 return o; | 1416 return o; |
1346 } | 1417 } |
1347 | 1418 |
1348 checkUnnamed3447(core.Map<core.String, core.String> o) { | 1419 checkUnnamed3545(core.Map<core.String, core.String> o) { |
1349 unittest.expect(o, unittest.hasLength(2)); | 1420 unittest.expect(o, unittest.hasLength(2)); |
1350 unittest.expect(o["x"], unittest.equals('foo')); | 1421 unittest.expect(o["x"], unittest.equals('foo')); |
1351 unittest.expect(o["y"], unittest.equals('foo')); | 1422 unittest.expect(o["y"], unittest.equals('foo')); |
1352 } | 1423 } |
1353 | 1424 |
1354 buildUnnamed3448() { | 1425 buildUnnamed3546() { |
1355 var o = new core.Map<core.String, core.String>(); | 1426 var o = new core.Map<core.String, core.String>(); |
1356 o["x"] = "foo"; | 1427 o["x"] = "foo"; |
1357 o["y"] = "foo"; | 1428 o["y"] = "foo"; |
1358 return o; | 1429 return o; |
1359 } | 1430 } |
1360 | 1431 |
1361 checkUnnamed3448(core.Map<core.String, core.String> o) { | 1432 checkUnnamed3546(core.Map<core.String, core.String> o) { |
1362 unittest.expect(o, unittest.hasLength(2)); | 1433 unittest.expect(o, unittest.hasLength(2)); |
1363 unittest.expect(o["x"], unittest.equals('foo')); | 1434 unittest.expect(o["x"], unittest.equals('foo')); |
1364 unittest.expect(o["y"], unittest.equals('foo')); | 1435 unittest.expect(o["y"], unittest.equals('foo')); |
1365 } | 1436 } |
1366 | 1437 |
1367 buildUnnamed3449() { | 1438 buildUnnamed3547() { |
1368 var o = new core.List<api.ErrorHandler>(); | 1439 var o = new core.List<api.ErrorHandler>(); |
1369 o.add(buildErrorHandler()); | 1440 o.add(buildErrorHandler()); |
1370 o.add(buildErrorHandler()); | 1441 o.add(buildErrorHandler()); |
1371 return o; | 1442 return o; |
1372 } | 1443 } |
1373 | 1444 |
1374 checkUnnamed3449(core.List<api.ErrorHandler> o) { | 1445 checkUnnamed3547(core.List<api.ErrorHandler> o) { |
1375 unittest.expect(o, unittest.hasLength(2)); | 1446 unittest.expect(o, unittest.hasLength(2)); |
1376 checkErrorHandler(o[0]); | 1447 checkErrorHandler(o[0]); |
1377 checkErrorHandler(o[1]); | 1448 checkErrorHandler(o[1]); |
1378 } | 1449 } |
1379 | 1450 |
1380 buildUnnamed3450() { | 1451 buildUnnamed3548() { |
1381 var o = new core.List<api.UrlMap>(); | 1452 var o = new core.List<api.UrlMap>(); |
1382 o.add(buildUrlMap()); | 1453 o.add(buildUrlMap()); |
1383 o.add(buildUrlMap()); | 1454 o.add(buildUrlMap()); |
1384 return o; | 1455 return o; |
1385 } | 1456 } |
1386 | 1457 |
1387 checkUnnamed3450(core.List<api.UrlMap> o) { | 1458 checkUnnamed3548(core.List<api.UrlMap> o) { |
1388 unittest.expect(o, unittest.hasLength(2)); | 1459 unittest.expect(o, unittest.hasLength(2)); |
1389 checkUrlMap(o[0]); | 1460 checkUrlMap(o[0]); |
1390 checkUrlMap(o[1]); | 1461 checkUrlMap(o[1]); |
1391 } | 1462 } |
1392 | 1463 |
1393 buildUnnamed3451() { | 1464 buildUnnamed3549() { |
1394 var o = new core.List<core.String>(); | 1465 var o = new core.List<core.String>(); |
1395 o.add("foo"); | 1466 o.add("foo"); |
1396 o.add("foo"); | 1467 o.add("foo"); |
1397 return o; | 1468 return o; |
1398 } | 1469 } |
1399 | 1470 |
1400 checkUnnamed3451(core.List<core.String> o) { | 1471 checkUnnamed3549(core.List<core.String> o) { |
1401 unittest.expect(o, unittest.hasLength(2)); | 1472 unittest.expect(o, unittest.hasLength(2)); |
1402 unittest.expect(o[0], unittest.equals('foo')); | 1473 unittest.expect(o[0], unittest.equals('foo')); |
1403 unittest.expect(o[1], unittest.equals('foo')); | 1474 unittest.expect(o[1], unittest.equals('foo')); |
1404 } | 1475 } |
1405 | 1476 |
1406 buildUnnamed3452() { | 1477 buildUnnamed3550() { |
1407 var o = new core.List<api.Library>(); | 1478 var o = new core.List<api.Library>(); |
1408 o.add(buildLibrary()); | 1479 o.add(buildLibrary()); |
1409 o.add(buildLibrary()); | 1480 o.add(buildLibrary()); |
1410 return o; | 1481 return o; |
1411 } | 1482 } |
1412 | 1483 |
1413 checkUnnamed3452(core.List<api.Library> o) { | 1484 checkUnnamed3550(core.List<api.Library> o) { |
1414 unittest.expect(o, unittest.hasLength(2)); | 1485 unittest.expect(o, unittest.hasLength(2)); |
1415 checkLibrary(o[0]); | 1486 checkLibrary(o[0]); |
1416 checkLibrary(o[1]); | 1487 checkLibrary(o[1]); |
1417 } | 1488 } |
1418 | 1489 |
1419 core.int buildCounterVersion = 0; | 1490 core.int buildCounterVersion = 0; |
1420 buildVersion() { | 1491 buildVersion() { |
1421 var o = new api.Version(); | 1492 var o = new api.Version(); |
1422 buildCounterVersion++; | 1493 buildCounterVersion++; |
1423 if (buildCounterVersion < 3) { | 1494 if (buildCounterVersion < 3) { |
1424 o.apiConfig = buildApiConfigHandler(); | 1495 o.apiConfig = buildApiConfigHandler(); |
1425 o.automaticScaling = buildAutomaticScaling(); | 1496 o.automaticScaling = buildAutomaticScaling(); |
1426 o.basicScaling = buildBasicScaling(); | 1497 o.basicScaling = buildBasicScaling(); |
1427 o.betaSettings = buildUnnamed3447(); | 1498 o.betaSettings = buildUnnamed3545(); |
1428 o.creationTime = "foo"; | 1499 o.creationTime = "foo"; |
1429 o.defaultExpiration = "foo"; | 1500 o.defaultExpiration = "foo"; |
1430 o.deployer = "foo"; | 1501 o.deployer = "foo"; |
1431 o.deployment = buildDeployment(); | 1502 o.deployment = buildDeployment(); |
1432 o.env = "foo"; | 1503 o.env = "foo"; |
1433 o.envVariables = buildUnnamed3448(); | 1504 o.envVariables = buildUnnamed3546(); |
1434 o.errorHandlers = buildUnnamed3449(); | 1505 o.errorHandlers = buildUnnamed3547(); |
1435 o.handlers = buildUnnamed3450(); | 1506 o.handlers = buildUnnamed3548(); |
1436 o.healthCheck = buildHealthCheck(); | 1507 o.healthCheck = buildHealthCheck(); |
1437 o.id = "foo"; | 1508 o.id = "foo"; |
1438 o.inboundServices = buildUnnamed3451(); | 1509 o.inboundServices = buildUnnamed3549(); |
1439 o.instanceClass = "foo"; | 1510 o.instanceClass = "foo"; |
1440 o.libraries = buildUnnamed3452(); | 1511 o.libraries = buildUnnamed3550(); |
1441 o.manualScaling = buildManualScaling(); | 1512 o.manualScaling = buildManualScaling(); |
1442 o.name = "foo"; | 1513 o.name = "foo"; |
1443 o.network = buildNetwork(); | 1514 o.network = buildNetwork(); |
1444 o.nobuildFilesRegex = "foo"; | 1515 o.nobuildFilesRegex = "foo"; |
1445 o.resources = buildResources(); | 1516 o.resources = buildResources(); |
1446 o.runtime = "foo"; | 1517 o.runtime = "foo"; |
1447 o.servingStatus = "foo"; | 1518 o.servingStatus = "foo"; |
1448 o.threadsafe = true; | 1519 o.threadsafe = true; |
1449 o.vm = true; | 1520 o.vm = true; |
1450 } | 1521 } |
1451 buildCounterVersion--; | 1522 buildCounterVersion--; |
1452 return o; | 1523 return o; |
1453 } | 1524 } |
1454 | 1525 |
1455 checkVersion(api.Version o) { | 1526 checkVersion(api.Version o) { |
1456 buildCounterVersion++; | 1527 buildCounterVersion++; |
1457 if (buildCounterVersion < 3) { | 1528 if (buildCounterVersion < 3) { |
1458 checkApiConfigHandler(o.apiConfig); | 1529 checkApiConfigHandler(o.apiConfig); |
1459 checkAutomaticScaling(o.automaticScaling); | 1530 checkAutomaticScaling(o.automaticScaling); |
1460 checkBasicScaling(o.basicScaling); | 1531 checkBasicScaling(o.basicScaling); |
1461 checkUnnamed3447(o.betaSettings); | 1532 checkUnnamed3545(o.betaSettings); |
1462 unittest.expect(o.creationTime, unittest.equals('foo')); | 1533 unittest.expect(o.creationTime, unittest.equals('foo')); |
1463 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1534 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
1464 unittest.expect(o.deployer, unittest.equals('foo')); | 1535 unittest.expect(o.deployer, unittest.equals('foo')); |
1465 checkDeployment(o.deployment); | 1536 checkDeployment(o.deployment); |
1466 unittest.expect(o.env, unittest.equals('foo')); | 1537 unittest.expect(o.env, unittest.equals('foo')); |
1467 checkUnnamed3448(o.envVariables); | 1538 checkUnnamed3546(o.envVariables); |
1468 checkUnnamed3449(o.errorHandlers); | 1539 checkUnnamed3547(o.errorHandlers); |
1469 checkUnnamed3450(o.handlers); | 1540 checkUnnamed3548(o.handlers); |
1470 checkHealthCheck(o.healthCheck); | 1541 checkHealthCheck(o.healthCheck); |
1471 unittest.expect(o.id, unittest.equals('foo')); | 1542 unittest.expect(o.id, unittest.equals('foo')); |
1472 checkUnnamed3451(o.inboundServices); | 1543 checkUnnamed3549(o.inboundServices); |
1473 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1544 unittest.expect(o.instanceClass, unittest.equals('foo')); |
1474 checkUnnamed3452(o.libraries); | 1545 checkUnnamed3550(o.libraries); |
1475 checkManualScaling(o.manualScaling); | 1546 checkManualScaling(o.manualScaling); |
1476 unittest.expect(o.name, unittest.equals('foo')); | 1547 unittest.expect(o.name, unittest.equals('foo')); |
1477 checkNetwork(o.network); | 1548 checkNetwork(o.network); |
1478 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1549 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
1479 checkResources(o.resources); | 1550 checkResources(o.resources); |
1480 unittest.expect(o.runtime, unittest.equals('foo')); | 1551 unittest.expect(o.runtime, unittest.equals('foo')); |
1481 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1552 unittest.expect(o.servingStatus, unittest.equals('foo')); |
1482 unittest.expect(o.threadsafe, unittest.isTrue); | 1553 unittest.expect(o.threadsafe, unittest.isTrue); |
1483 unittest.expect(o.vm, unittest.isTrue); | 1554 unittest.expect(o.vm, unittest.isTrue); |
1484 } | 1555 } |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1620 | 1691 |
1621 unittest.group("obj-schema-HealthCheck", () { | 1692 unittest.group("obj-schema-HealthCheck", () { |
1622 unittest.test("to-json--from-json", () { | 1693 unittest.test("to-json--from-json", () { |
1623 var o = buildHealthCheck(); | 1694 var o = buildHealthCheck(); |
1624 var od = new api.HealthCheck.fromJson(o.toJson()); | 1695 var od = new api.HealthCheck.fromJson(o.toJson()); |
1625 checkHealthCheck(od); | 1696 checkHealthCheck(od); |
1626 }); | 1697 }); |
1627 }); | 1698 }); |
1628 | 1699 |
1629 | 1700 |
| 1701 unittest.group("obj-schema-IdentityAwareProxy", () { |
| 1702 unittest.test("to-json--from-json", () { |
| 1703 var o = buildIdentityAwareProxy(); |
| 1704 var od = new api.IdentityAwareProxy.fromJson(o.toJson()); |
| 1705 checkIdentityAwareProxy(od); |
| 1706 }); |
| 1707 }); |
| 1708 |
| 1709 |
1630 unittest.group("obj-schema-Instance", () { | 1710 unittest.group("obj-schema-Instance", () { |
1631 unittest.test("to-json--from-json", () { | 1711 unittest.test("to-json--from-json", () { |
1632 var o = buildInstance(); | 1712 var o = buildInstance(); |
1633 var od = new api.Instance.fromJson(o.toJson()); | 1713 var od = new api.Instance.fromJson(o.toJson()); |
1634 checkInstance(od); | 1714 checkInstance(od); |
1635 }); | 1715 }); |
1636 }); | 1716 }); |
1637 | 1717 |
1638 | 1718 |
1639 unittest.group("obj-schema-Library", () { | 1719 unittest.group("obj-schema-Library", () { |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1773 | 1853 |
1774 unittest.group("obj-schema-OperationMetadataV1", () { | 1854 unittest.group("obj-schema-OperationMetadataV1", () { |
1775 unittest.test("to-json--from-json", () { | 1855 unittest.test("to-json--from-json", () { |
1776 var o = buildOperationMetadataV1(); | 1856 var o = buildOperationMetadataV1(); |
1777 var od = new api.OperationMetadataV1.fromJson(o.toJson()); | 1857 var od = new api.OperationMetadataV1.fromJson(o.toJson()); |
1778 checkOperationMetadataV1(od); | 1858 checkOperationMetadataV1(od); |
1779 }); | 1859 }); |
1780 }); | 1860 }); |
1781 | 1861 |
1782 | 1862 |
| 1863 unittest.group("obj-schema-OperationMetadataV1Beta", () { |
| 1864 unittest.test("to-json--from-json", () { |
| 1865 var o = buildOperationMetadataV1Beta(); |
| 1866 var od = new api.OperationMetadataV1Beta.fromJson(o.toJson()); |
| 1867 checkOperationMetadataV1Beta(od); |
| 1868 }); |
| 1869 }); |
| 1870 |
| 1871 |
1783 unittest.group("obj-schema-OperationMetadataV1Beta5", () { | 1872 unittest.group("obj-schema-OperationMetadataV1Beta5", () { |
1784 unittest.test("to-json--from-json", () { | 1873 unittest.test("to-json--from-json", () { |
1785 var o = buildOperationMetadataV1Beta5(); | 1874 var o = buildOperationMetadataV1Beta5(); |
1786 var od = new api.OperationMetadataV1Beta5.fromJson(o.toJson()); | 1875 var od = new api.OperationMetadataV1Beta5.fromJson(o.toJson()); |
1787 checkOperationMetadataV1Beta5(od); | 1876 checkOperationMetadataV1Beta5(od); |
1788 }); | 1877 }); |
1789 }); | 1878 }); |
1790 | 1879 |
1791 | 1880 |
1792 unittest.group("obj-schema-RequestUtilization", () { | 1881 unittest.group("obj-schema-RequestUtilization", () { |
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3134 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { | 3223 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { |
3135 checkListOperationsResponse(response); | 3224 checkListOperationsResponse(response); |
3136 }))); | 3225 }))); |
3137 }); | 3226 }); |
3138 | 3227 |
3139 }); | 3228 }); |
3140 | 3229 |
3141 | 3230 |
3142 } | 3231 } |
3143 | 3232 |
OLD | NEW |