OLD | NEW |
1 library googleapis.appengine.v1.test; | 1 library googleapis.appengine.v1.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 buildUnnamed2862() { | 100 buildUnnamed2967() { |
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 checkUnnamed2862(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed2967(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 = buildUnnamed2862(); | 123 o.dispatchRules = buildUnnamed2967(); |
| 124 o.gcrDomain = "foo"; |
| 125 o.iap = buildIdentityAwareProxy(); |
124 o.id = "foo"; | 126 o.id = "foo"; |
125 o.locationId = "foo"; | 127 o.locationId = "foo"; |
126 o.name = "foo"; | 128 o.name = "foo"; |
| 129 o.servingStatus = "foo"; |
127 } | 130 } |
128 buildCounterApplication--; | 131 buildCounterApplication--; |
129 return o; | 132 return o; |
130 } | 133 } |
131 | 134 |
132 checkApplication(api.Application o) { | 135 checkApplication(api.Application o) { |
133 buildCounterApplication++; | 136 buildCounterApplication++; |
134 if (buildCounterApplication < 3) { | 137 if (buildCounterApplication < 3) { |
135 unittest.expect(o.authDomain, unittest.equals('foo')); | 138 unittest.expect(o.authDomain, unittest.equals('foo')); |
136 unittest.expect(o.codeBucket, unittest.equals('foo')); | 139 unittest.expect(o.codeBucket, unittest.equals('foo')); |
137 unittest.expect(o.defaultBucket, unittest.equals('foo')); | 140 unittest.expect(o.defaultBucket, unittest.equals('foo')); |
138 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); | 141 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); |
139 unittest.expect(o.defaultHostname, unittest.equals('foo')); | 142 unittest.expect(o.defaultHostname, unittest.equals('foo')); |
140 checkUnnamed2862(o.dispatchRules); | 143 checkUnnamed2967(o.dispatchRules); |
| 144 unittest.expect(o.gcrDomain, unittest.equals('foo')); |
| 145 checkIdentityAwareProxy(o.iap); |
141 unittest.expect(o.id, unittest.equals('foo')); | 146 unittest.expect(o.id, unittest.equals('foo')); |
142 unittest.expect(o.locationId, unittest.equals('foo')); | 147 unittest.expect(o.locationId, unittest.equals('foo')); |
143 unittest.expect(o.name, unittest.equals('foo')); | 148 unittest.expect(o.name, unittest.equals('foo')); |
| 149 unittest.expect(o.servingStatus, unittest.equals('foo')); |
144 } | 150 } |
145 buildCounterApplication--; | 151 buildCounterApplication--; |
146 } | 152 } |
147 | 153 |
148 core.int buildCounterAutomaticScaling = 0; | 154 core.int buildCounterAutomaticScaling = 0; |
149 buildAutomaticScaling() { | 155 buildAutomaticScaling() { |
150 var o = new api.AutomaticScaling(); | 156 var o = new api.AutomaticScaling(); |
151 buildCounterAutomaticScaling++; | 157 buildCounterAutomaticScaling++; |
152 if (buildCounterAutomaticScaling < 3) { | 158 if (buildCounterAutomaticScaling < 3) { |
153 o.coolDownPeriod = "foo"; | 159 o.coolDownPeriod = "foo"; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 } | 265 } |
260 | 266 |
261 checkDebugInstanceRequest(api.DebugInstanceRequest o) { | 267 checkDebugInstanceRequest(api.DebugInstanceRequest o) { |
262 buildCounterDebugInstanceRequest++; | 268 buildCounterDebugInstanceRequest++; |
263 if (buildCounterDebugInstanceRequest < 3) { | 269 if (buildCounterDebugInstanceRequest < 3) { |
264 unittest.expect(o.sshKey, unittest.equals('foo')); | 270 unittest.expect(o.sshKey, unittest.equals('foo')); |
265 } | 271 } |
266 buildCounterDebugInstanceRequest--; | 272 buildCounterDebugInstanceRequest--; |
267 } | 273 } |
268 | 274 |
269 buildUnnamed2863() { | 275 buildUnnamed2968() { |
270 var o = new core.Map<core.String, api.FileInfo>(); | 276 var o = new core.Map<core.String, api.FileInfo>(); |
271 o["x"] = buildFileInfo(); | 277 o["x"] = buildFileInfo(); |
272 o["y"] = buildFileInfo(); | 278 o["y"] = buildFileInfo(); |
273 return o; | 279 return o; |
274 } | 280 } |
275 | 281 |
276 checkUnnamed2863(core.Map<core.String, api.FileInfo> o) { | 282 checkUnnamed2968(core.Map<core.String, api.FileInfo> o) { |
277 unittest.expect(o, unittest.hasLength(2)); | 283 unittest.expect(o, unittest.hasLength(2)); |
278 checkFileInfo(o["x"]); | 284 checkFileInfo(o["x"]); |
279 checkFileInfo(o["y"]); | 285 checkFileInfo(o["y"]); |
280 } | 286 } |
281 | 287 |
282 core.int buildCounterDeployment = 0; | 288 core.int buildCounterDeployment = 0; |
283 buildDeployment() { | 289 buildDeployment() { |
284 var o = new api.Deployment(); | 290 var o = new api.Deployment(); |
285 buildCounterDeployment++; | 291 buildCounterDeployment++; |
286 if (buildCounterDeployment < 3) { | 292 if (buildCounterDeployment < 3) { |
287 o.container = buildContainerInfo(); | 293 o.container = buildContainerInfo(); |
288 o.files = buildUnnamed2863(); | 294 o.files = buildUnnamed2968(); |
289 o.zip = buildZipInfo(); | 295 o.zip = buildZipInfo(); |
290 } | 296 } |
291 buildCounterDeployment--; | 297 buildCounterDeployment--; |
292 return o; | 298 return o; |
293 } | 299 } |
294 | 300 |
295 checkDeployment(api.Deployment o) { | 301 checkDeployment(api.Deployment o) { |
296 buildCounterDeployment++; | 302 buildCounterDeployment++; |
297 if (buildCounterDeployment < 3) { | 303 if (buildCounterDeployment < 3) { |
298 checkContainerInfo(o.container); | 304 checkContainerInfo(o.container); |
299 checkUnnamed2863(o.files); | 305 checkUnnamed2968(o.files); |
300 checkZipInfo(o.zip); | 306 checkZipInfo(o.zip); |
301 } | 307 } |
302 buildCounterDeployment--; | 308 buildCounterDeployment--; |
303 } | 309 } |
304 | 310 |
305 core.int buildCounterDiskUtilization = 0; | 311 core.int buildCounterDiskUtilization = 0; |
306 buildDiskUtilization() { | 312 buildDiskUtilization() { |
307 var o = new api.DiskUtilization(); | 313 var o = new api.DiskUtilization(); |
308 buildCounterDiskUtilization++; | 314 buildCounterDiskUtilization++; |
309 if (buildCounterDiskUtilization < 3) { | 315 if (buildCounterDiskUtilization < 3) { |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 unittest.expect(o.disableHealthCheck, unittest.isTrue); | 424 unittest.expect(o.disableHealthCheck, unittest.isTrue); |
419 unittest.expect(o.healthyThreshold, unittest.equals(42)); | 425 unittest.expect(o.healthyThreshold, unittest.equals(42)); |
420 unittest.expect(o.host, unittest.equals('foo')); | 426 unittest.expect(o.host, unittest.equals('foo')); |
421 unittest.expect(o.restartThreshold, unittest.equals(42)); | 427 unittest.expect(o.restartThreshold, unittest.equals(42)); |
422 unittest.expect(o.timeout, unittest.equals('foo')); | 428 unittest.expect(o.timeout, unittest.equals('foo')); |
423 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); | 429 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); |
424 } | 430 } |
425 buildCounterHealthCheck--; | 431 buildCounterHealthCheck--; |
426 } | 432 } |
427 | 433 |
| 434 core.int buildCounterIdentityAwareProxy = 0; |
| 435 buildIdentityAwareProxy() { |
| 436 var o = new api.IdentityAwareProxy(); |
| 437 buildCounterIdentityAwareProxy++; |
| 438 if (buildCounterIdentityAwareProxy < 3) { |
| 439 o.enabled = true; |
| 440 o.oauth2ClientId = "foo"; |
| 441 o.oauth2ClientSecret = "foo"; |
| 442 o.oauth2ClientSecretSha256 = "foo"; |
| 443 } |
| 444 buildCounterIdentityAwareProxy--; |
| 445 return o; |
| 446 } |
| 447 |
| 448 checkIdentityAwareProxy(api.IdentityAwareProxy o) { |
| 449 buildCounterIdentityAwareProxy++; |
| 450 if (buildCounterIdentityAwareProxy < 3) { |
| 451 unittest.expect(o.enabled, unittest.isTrue); |
| 452 unittest.expect(o.oauth2ClientId, unittest.equals('foo')); |
| 453 unittest.expect(o.oauth2ClientSecret, unittest.equals('foo')); |
| 454 unittest.expect(o.oauth2ClientSecretSha256, unittest.equals('foo')); |
| 455 } |
| 456 buildCounterIdentityAwareProxy--; |
| 457 } |
| 458 |
428 core.int buildCounterInstance = 0; | 459 core.int buildCounterInstance = 0; |
429 buildInstance() { | 460 buildInstance() { |
430 var o = new api.Instance(); | 461 var o = new api.Instance(); |
431 buildCounterInstance++; | 462 buildCounterInstance++; |
432 if (buildCounterInstance < 3) { | 463 if (buildCounterInstance < 3) { |
433 o.appEngineRelease = "foo"; | 464 o.appEngineRelease = "foo"; |
434 o.availability = "foo"; | 465 o.availability = "foo"; |
435 o.averageLatency = 42; | 466 o.averageLatency = 42; |
436 o.errors = 42; | 467 o.errors = 42; |
437 o.id = "foo"; | 468 o.id = "foo"; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 | 519 |
489 checkLibrary(api.Library o) { | 520 checkLibrary(api.Library o) { |
490 buildCounterLibrary++; | 521 buildCounterLibrary++; |
491 if (buildCounterLibrary < 3) { | 522 if (buildCounterLibrary < 3) { |
492 unittest.expect(o.name, unittest.equals('foo')); | 523 unittest.expect(o.name, unittest.equals('foo')); |
493 unittest.expect(o.version, unittest.equals('foo')); | 524 unittest.expect(o.version, unittest.equals('foo')); |
494 } | 525 } |
495 buildCounterLibrary--; | 526 buildCounterLibrary--; |
496 } | 527 } |
497 | 528 |
498 buildUnnamed2864() { | 529 buildUnnamed2969() { |
499 var o = new core.List<api.Instance>(); | 530 var o = new core.List<api.Instance>(); |
500 o.add(buildInstance()); | 531 o.add(buildInstance()); |
501 o.add(buildInstance()); | 532 o.add(buildInstance()); |
502 return o; | 533 return o; |
503 } | 534 } |
504 | 535 |
505 checkUnnamed2864(core.List<api.Instance> o) { | 536 checkUnnamed2969(core.List<api.Instance> o) { |
506 unittest.expect(o, unittest.hasLength(2)); | 537 unittest.expect(o, unittest.hasLength(2)); |
507 checkInstance(o[0]); | 538 checkInstance(o[0]); |
508 checkInstance(o[1]); | 539 checkInstance(o[1]); |
509 } | 540 } |
510 | 541 |
511 core.int buildCounterListInstancesResponse = 0; | 542 core.int buildCounterListInstancesResponse = 0; |
512 buildListInstancesResponse() { | 543 buildListInstancesResponse() { |
513 var o = new api.ListInstancesResponse(); | 544 var o = new api.ListInstancesResponse(); |
514 buildCounterListInstancesResponse++; | 545 buildCounterListInstancesResponse++; |
515 if (buildCounterListInstancesResponse < 3) { | 546 if (buildCounterListInstancesResponse < 3) { |
516 o.instances = buildUnnamed2864(); | 547 o.instances = buildUnnamed2969(); |
517 o.nextPageToken = "foo"; | 548 o.nextPageToken = "foo"; |
518 } | 549 } |
519 buildCounterListInstancesResponse--; | 550 buildCounterListInstancesResponse--; |
520 return o; | 551 return o; |
521 } | 552 } |
522 | 553 |
523 checkListInstancesResponse(api.ListInstancesResponse o) { | 554 checkListInstancesResponse(api.ListInstancesResponse o) { |
524 buildCounterListInstancesResponse++; | 555 buildCounterListInstancesResponse++; |
525 if (buildCounterListInstancesResponse < 3) { | 556 if (buildCounterListInstancesResponse < 3) { |
526 checkUnnamed2864(o.instances); | 557 checkUnnamed2969(o.instances); |
527 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 558 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
528 } | 559 } |
529 buildCounterListInstancesResponse--; | 560 buildCounterListInstancesResponse--; |
530 } | 561 } |
531 | 562 |
532 buildUnnamed2865() { | 563 buildUnnamed2970() { |
533 var o = new core.List<api.Location>(); | 564 var o = new core.List<api.Location>(); |
534 o.add(buildLocation()); | 565 o.add(buildLocation()); |
535 o.add(buildLocation()); | 566 o.add(buildLocation()); |
536 return o; | 567 return o; |
537 } | 568 } |
538 | 569 |
539 checkUnnamed2865(core.List<api.Location> o) { | 570 checkUnnamed2970(core.List<api.Location> o) { |
540 unittest.expect(o, unittest.hasLength(2)); | 571 unittest.expect(o, unittest.hasLength(2)); |
541 checkLocation(o[0]); | 572 checkLocation(o[0]); |
542 checkLocation(o[1]); | 573 checkLocation(o[1]); |
543 } | 574 } |
544 | 575 |
545 core.int buildCounterListLocationsResponse = 0; | 576 core.int buildCounterListLocationsResponse = 0; |
546 buildListLocationsResponse() { | 577 buildListLocationsResponse() { |
547 var o = new api.ListLocationsResponse(); | 578 var o = new api.ListLocationsResponse(); |
548 buildCounterListLocationsResponse++; | 579 buildCounterListLocationsResponse++; |
549 if (buildCounterListLocationsResponse < 3) { | 580 if (buildCounterListLocationsResponse < 3) { |
550 o.locations = buildUnnamed2865(); | 581 o.locations = buildUnnamed2970(); |
551 o.nextPageToken = "foo"; | 582 o.nextPageToken = "foo"; |
552 } | 583 } |
553 buildCounterListLocationsResponse--; | 584 buildCounterListLocationsResponse--; |
554 return o; | 585 return o; |
555 } | 586 } |
556 | 587 |
557 checkListLocationsResponse(api.ListLocationsResponse o) { | 588 checkListLocationsResponse(api.ListLocationsResponse o) { |
558 buildCounterListLocationsResponse++; | 589 buildCounterListLocationsResponse++; |
559 if (buildCounterListLocationsResponse < 3) { | 590 if (buildCounterListLocationsResponse < 3) { |
560 checkUnnamed2865(o.locations); | 591 checkUnnamed2970(o.locations); |
561 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 592 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
562 } | 593 } |
563 buildCounterListLocationsResponse--; | 594 buildCounterListLocationsResponse--; |
564 } | 595 } |
565 | 596 |
566 buildUnnamed2866() { | 597 buildUnnamed2971() { |
567 var o = new core.List<api.Operation>(); | 598 var o = new core.List<api.Operation>(); |
568 o.add(buildOperation()); | 599 o.add(buildOperation()); |
569 o.add(buildOperation()); | 600 o.add(buildOperation()); |
570 return o; | 601 return o; |
571 } | 602 } |
572 | 603 |
573 checkUnnamed2866(core.List<api.Operation> o) { | 604 checkUnnamed2971(core.List<api.Operation> o) { |
574 unittest.expect(o, unittest.hasLength(2)); | 605 unittest.expect(o, unittest.hasLength(2)); |
575 checkOperation(o[0]); | 606 checkOperation(o[0]); |
576 checkOperation(o[1]); | 607 checkOperation(o[1]); |
577 } | 608 } |
578 | 609 |
579 core.int buildCounterListOperationsResponse = 0; | 610 core.int buildCounterListOperationsResponse = 0; |
580 buildListOperationsResponse() { | 611 buildListOperationsResponse() { |
581 var o = new api.ListOperationsResponse(); | 612 var o = new api.ListOperationsResponse(); |
582 buildCounterListOperationsResponse++; | 613 buildCounterListOperationsResponse++; |
583 if (buildCounterListOperationsResponse < 3) { | 614 if (buildCounterListOperationsResponse < 3) { |
584 o.nextPageToken = "foo"; | 615 o.nextPageToken = "foo"; |
585 o.operations = buildUnnamed2866(); | 616 o.operations = buildUnnamed2971(); |
586 } | 617 } |
587 buildCounterListOperationsResponse--; | 618 buildCounterListOperationsResponse--; |
588 return o; | 619 return o; |
589 } | 620 } |
590 | 621 |
591 checkListOperationsResponse(api.ListOperationsResponse o) { | 622 checkListOperationsResponse(api.ListOperationsResponse o) { |
592 buildCounterListOperationsResponse++; | 623 buildCounterListOperationsResponse++; |
593 if (buildCounterListOperationsResponse < 3) { | 624 if (buildCounterListOperationsResponse < 3) { |
594 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 625 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
595 checkUnnamed2866(o.operations); | 626 checkUnnamed2971(o.operations); |
596 } | 627 } |
597 buildCounterListOperationsResponse--; | 628 buildCounterListOperationsResponse--; |
598 } | 629 } |
599 | 630 |
600 buildUnnamed2867() { | 631 buildUnnamed2972() { |
601 var o = new core.List<api.Service>(); | 632 var o = new core.List<api.Service>(); |
602 o.add(buildService()); | 633 o.add(buildService()); |
603 o.add(buildService()); | 634 o.add(buildService()); |
604 return o; | 635 return o; |
605 } | 636 } |
606 | 637 |
607 checkUnnamed2867(core.List<api.Service> o) { | 638 checkUnnamed2972(core.List<api.Service> o) { |
608 unittest.expect(o, unittest.hasLength(2)); | 639 unittest.expect(o, unittest.hasLength(2)); |
609 checkService(o[0]); | 640 checkService(o[0]); |
610 checkService(o[1]); | 641 checkService(o[1]); |
611 } | 642 } |
612 | 643 |
613 core.int buildCounterListServicesResponse = 0; | 644 core.int buildCounterListServicesResponse = 0; |
614 buildListServicesResponse() { | 645 buildListServicesResponse() { |
615 var o = new api.ListServicesResponse(); | 646 var o = new api.ListServicesResponse(); |
616 buildCounterListServicesResponse++; | 647 buildCounterListServicesResponse++; |
617 if (buildCounterListServicesResponse < 3) { | 648 if (buildCounterListServicesResponse < 3) { |
618 o.nextPageToken = "foo"; | 649 o.nextPageToken = "foo"; |
619 o.services = buildUnnamed2867(); | 650 o.services = buildUnnamed2972(); |
620 } | 651 } |
621 buildCounterListServicesResponse--; | 652 buildCounterListServicesResponse--; |
622 return o; | 653 return o; |
623 } | 654 } |
624 | 655 |
625 checkListServicesResponse(api.ListServicesResponse o) { | 656 checkListServicesResponse(api.ListServicesResponse o) { |
626 buildCounterListServicesResponse++; | 657 buildCounterListServicesResponse++; |
627 if (buildCounterListServicesResponse < 3) { | 658 if (buildCounterListServicesResponse < 3) { |
628 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 659 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
629 checkUnnamed2867(o.services); | 660 checkUnnamed2972(o.services); |
630 } | 661 } |
631 buildCounterListServicesResponse--; | 662 buildCounterListServicesResponse--; |
632 } | 663 } |
633 | 664 |
634 buildUnnamed2868() { | 665 buildUnnamed2973() { |
635 var o = new core.List<api.Version>(); | 666 var o = new core.List<api.Version>(); |
636 o.add(buildVersion()); | 667 o.add(buildVersion()); |
637 o.add(buildVersion()); | 668 o.add(buildVersion()); |
638 return o; | 669 return o; |
639 } | 670 } |
640 | 671 |
641 checkUnnamed2868(core.List<api.Version> o) { | 672 checkUnnamed2973(core.List<api.Version> o) { |
642 unittest.expect(o, unittest.hasLength(2)); | 673 unittest.expect(o, unittest.hasLength(2)); |
643 checkVersion(o[0]); | 674 checkVersion(o[0]); |
644 checkVersion(o[1]); | 675 checkVersion(o[1]); |
645 } | 676 } |
646 | 677 |
647 core.int buildCounterListVersionsResponse = 0; | 678 core.int buildCounterListVersionsResponse = 0; |
648 buildListVersionsResponse() { | 679 buildListVersionsResponse() { |
649 var o = new api.ListVersionsResponse(); | 680 var o = new api.ListVersionsResponse(); |
650 buildCounterListVersionsResponse++; | 681 buildCounterListVersionsResponse++; |
651 if (buildCounterListVersionsResponse < 3) { | 682 if (buildCounterListVersionsResponse < 3) { |
652 o.nextPageToken = "foo"; | 683 o.nextPageToken = "foo"; |
653 o.versions = buildUnnamed2868(); | 684 o.versions = buildUnnamed2973(); |
654 } | 685 } |
655 buildCounterListVersionsResponse--; | 686 buildCounterListVersionsResponse--; |
656 return o; | 687 return o; |
657 } | 688 } |
658 | 689 |
659 checkListVersionsResponse(api.ListVersionsResponse o) { | 690 checkListVersionsResponse(api.ListVersionsResponse o) { |
660 buildCounterListVersionsResponse++; | 691 buildCounterListVersionsResponse++; |
661 if (buildCounterListVersionsResponse < 3) { | 692 if (buildCounterListVersionsResponse < 3) { |
662 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 693 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
663 checkUnnamed2868(o.versions); | 694 checkUnnamed2973(o.versions); |
664 } | 695 } |
665 buildCounterListVersionsResponse--; | 696 buildCounterListVersionsResponse--; |
666 } | 697 } |
667 | 698 |
668 buildUnnamed2869() { | 699 core.int buildCounterLivenessCheck = 0; |
| 700 buildLivenessCheck() { |
| 701 var o = new api.LivenessCheck(); |
| 702 buildCounterLivenessCheck++; |
| 703 if (buildCounterLivenessCheck < 3) { |
| 704 o.checkInterval = "foo"; |
| 705 o.failureThreshold = 42; |
| 706 o.host = "foo"; |
| 707 o.initialDelay = "foo"; |
| 708 o.path = "foo"; |
| 709 o.successThreshold = 42; |
| 710 o.timeout = "foo"; |
| 711 } |
| 712 buildCounterLivenessCheck--; |
| 713 return o; |
| 714 } |
| 715 |
| 716 checkLivenessCheck(api.LivenessCheck o) { |
| 717 buildCounterLivenessCheck++; |
| 718 if (buildCounterLivenessCheck < 3) { |
| 719 unittest.expect(o.checkInterval, unittest.equals('foo')); |
| 720 unittest.expect(o.failureThreshold, unittest.equals(42)); |
| 721 unittest.expect(o.host, unittest.equals('foo')); |
| 722 unittest.expect(o.initialDelay, unittest.equals('foo')); |
| 723 unittest.expect(o.path, unittest.equals('foo')); |
| 724 unittest.expect(o.successThreshold, unittest.equals(42)); |
| 725 unittest.expect(o.timeout, unittest.equals('foo')); |
| 726 } |
| 727 buildCounterLivenessCheck--; |
| 728 } |
| 729 |
| 730 buildUnnamed2974() { |
669 var o = new core.Map<core.String, core.String>(); | 731 var o = new core.Map<core.String, core.String>(); |
670 o["x"] = "foo"; | 732 o["x"] = "foo"; |
671 o["y"] = "foo"; | 733 o["y"] = "foo"; |
672 return o; | 734 return o; |
673 } | 735 } |
674 | 736 |
675 checkUnnamed2869(core.Map<core.String, core.String> o) { | 737 checkUnnamed2974(core.Map<core.String, core.String> o) { |
676 unittest.expect(o, unittest.hasLength(2)); | 738 unittest.expect(o, unittest.hasLength(2)); |
677 unittest.expect(o["x"], unittest.equals('foo')); | 739 unittest.expect(o["x"], unittest.equals('foo')); |
678 unittest.expect(o["y"], unittest.equals('foo')); | 740 unittest.expect(o["y"], unittest.equals('foo')); |
679 } | 741 } |
680 | 742 |
681 buildUnnamed2870() { | 743 buildUnnamed2975() { |
682 var o = new core.Map<core.String, core.Object>(); | 744 var o = new core.Map<core.String, core.Object>(); |
683 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 745 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
684 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 746 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
685 return o; | 747 return o; |
686 } | 748 } |
687 | 749 |
688 checkUnnamed2870(core.Map<core.String, core.Object> o) { | 750 checkUnnamed2975(core.Map<core.String, core.Object> o) { |
689 unittest.expect(o, unittest.hasLength(2)); | 751 unittest.expect(o, unittest.hasLength(2)); |
690 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')); | 752 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')); |
691 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')); | 753 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')); |
692 } | 754 } |
693 | 755 |
694 core.int buildCounterLocation = 0; | 756 core.int buildCounterLocation = 0; |
695 buildLocation() { | 757 buildLocation() { |
696 var o = new api.Location(); | 758 var o = new api.Location(); |
697 buildCounterLocation++; | 759 buildCounterLocation++; |
698 if (buildCounterLocation < 3) { | 760 if (buildCounterLocation < 3) { |
699 o.labels = buildUnnamed2869(); | 761 o.labels = buildUnnamed2974(); |
700 o.locationId = "foo"; | 762 o.locationId = "foo"; |
701 o.metadata = buildUnnamed2870(); | 763 o.metadata = buildUnnamed2975(); |
702 o.name = "foo"; | 764 o.name = "foo"; |
703 } | 765 } |
704 buildCounterLocation--; | 766 buildCounterLocation--; |
705 return o; | 767 return o; |
706 } | 768 } |
707 | 769 |
708 checkLocation(api.Location o) { | 770 checkLocation(api.Location o) { |
709 buildCounterLocation++; | 771 buildCounterLocation++; |
710 if (buildCounterLocation < 3) { | 772 if (buildCounterLocation < 3) { |
711 checkUnnamed2869(o.labels); | 773 checkUnnamed2974(o.labels); |
712 unittest.expect(o.locationId, unittest.equals('foo')); | 774 unittest.expect(o.locationId, unittest.equals('foo')); |
713 checkUnnamed2870(o.metadata); | 775 checkUnnamed2975(o.metadata); |
714 unittest.expect(o.name, unittest.equals('foo')); | 776 unittest.expect(o.name, unittest.equals('foo')); |
715 } | 777 } |
716 buildCounterLocation--; | 778 buildCounterLocation--; |
717 } | 779 } |
718 | 780 |
719 core.int buildCounterLocationMetadata = 0; | 781 core.int buildCounterLocationMetadata = 0; |
720 buildLocationMetadata() { | 782 buildLocationMetadata() { |
721 var o = new api.LocationMetadata(); | 783 var o = new api.LocationMetadata(); |
722 buildCounterLocationMetadata++; | 784 buildCounterLocationMetadata++; |
723 if (buildCounterLocationMetadata < 3) { | 785 if (buildCounterLocationMetadata < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
749 } | 811 } |
750 | 812 |
751 checkManualScaling(api.ManualScaling o) { | 813 checkManualScaling(api.ManualScaling o) { |
752 buildCounterManualScaling++; | 814 buildCounterManualScaling++; |
753 if (buildCounterManualScaling < 3) { | 815 if (buildCounterManualScaling < 3) { |
754 unittest.expect(o.instances, unittest.equals(42)); | 816 unittest.expect(o.instances, unittest.equals(42)); |
755 } | 817 } |
756 buildCounterManualScaling--; | 818 buildCounterManualScaling--; |
757 } | 819 } |
758 | 820 |
759 buildUnnamed2871() { | 821 buildUnnamed2976() { |
760 var o = new core.List<core.String>(); | 822 var o = new core.List<core.String>(); |
761 o.add("foo"); | 823 o.add("foo"); |
762 o.add("foo"); | 824 o.add("foo"); |
763 return o; | 825 return o; |
764 } | 826 } |
765 | 827 |
766 checkUnnamed2871(core.List<core.String> o) { | 828 checkUnnamed2976(core.List<core.String> o) { |
767 unittest.expect(o, unittest.hasLength(2)); | 829 unittest.expect(o, unittest.hasLength(2)); |
768 unittest.expect(o[0], unittest.equals('foo')); | 830 unittest.expect(o[0], unittest.equals('foo')); |
769 unittest.expect(o[1], unittest.equals('foo')); | 831 unittest.expect(o[1], unittest.equals('foo')); |
770 } | 832 } |
771 | 833 |
772 core.int buildCounterNetwork = 0; | 834 core.int buildCounterNetwork = 0; |
773 buildNetwork() { | 835 buildNetwork() { |
774 var o = new api.Network(); | 836 var o = new api.Network(); |
775 buildCounterNetwork++; | 837 buildCounterNetwork++; |
776 if (buildCounterNetwork < 3) { | 838 if (buildCounterNetwork < 3) { |
777 o.forwardedPorts = buildUnnamed2871(); | 839 o.forwardedPorts = buildUnnamed2976(); |
778 o.instanceTag = "foo"; | 840 o.instanceTag = "foo"; |
779 o.name = "foo"; | 841 o.name = "foo"; |
780 o.subnetworkName = "foo"; | 842 o.subnetworkName = "foo"; |
781 } | 843 } |
782 buildCounterNetwork--; | 844 buildCounterNetwork--; |
783 return o; | 845 return o; |
784 } | 846 } |
785 | 847 |
786 checkNetwork(api.Network o) { | 848 checkNetwork(api.Network o) { |
787 buildCounterNetwork++; | 849 buildCounterNetwork++; |
788 if (buildCounterNetwork < 3) { | 850 if (buildCounterNetwork < 3) { |
789 checkUnnamed2871(o.forwardedPorts); | 851 checkUnnamed2976(o.forwardedPorts); |
790 unittest.expect(o.instanceTag, unittest.equals('foo')); | 852 unittest.expect(o.instanceTag, unittest.equals('foo')); |
791 unittest.expect(o.name, unittest.equals('foo')); | 853 unittest.expect(o.name, unittest.equals('foo')); |
792 unittest.expect(o.subnetworkName, unittest.equals('foo')); | 854 unittest.expect(o.subnetworkName, unittest.equals('foo')); |
793 } | 855 } |
794 buildCounterNetwork--; | 856 buildCounterNetwork--; |
795 } | 857 } |
796 | 858 |
797 core.int buildCounterNetworkUtilization = 0; | 859 core.int buildCounterNetworkUtilization = 0; |
798 buildNetworkUtilization() { | 860 buildNetworkUtilization() { |
799 var o = new api.NetworkUtilization(); | 861 var o = new api.NetworkUtilization(); |
(...skipping 12 matching lines...) Expand all Loading... |
812 buildCounterNetworkUtilization++; | 874 buildCounterNetworkUtilization++; |
813 if (buildCounterNetworkUtilization < 3) { | 875 if (buildCounterNetworkUtilization < 3) { |
814 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42)); | 876 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42)); |
815 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42)); | 877 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42)); |
816 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42)); | 878 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42)); |
817 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42)); | 879 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42)); |
818 } | 880 } |
819 buildCounterNetworkUtilization--; | 881 buildCounterNetworkUtilization--; |
820 } | 882 } |
821 | 883 |
822 buildUnnamed2872() { | 884 buildUnnamed2977() { |
823 var o = new core.Map<core.String, core.Object>(); | 885 var o = new core.Map<core.String, core.Object>(); |
824 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 886 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
825 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 887 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
826 return o; | 888 return o; |
827 } | 889 } |
828 | 890 |
829 checkUnnamed2872(core.Map<core.String, core.Object> o) { | 891 checkUnnamed2977(core.Map<core.String, core.Object> o) { |
830 unittest.expect(o, unittest.hasLength(2)); | 892 unittest.expect(o, unittest.hasLength(2)); |
831 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')); | 893 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')); |
832 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')); | 894 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')); |
833 } | 895 } |
834 | 896 |
835 buildUnnamed2873() { | 897 buildUnnamed2978() { |
836 var o = new core.Map<core.String, core.Object>(); | 898 var o = new core.Map<core.String, core.Object>(); |
837 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 899 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
838 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 900 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
839 return o; | 901 return o; |
840 } | 902 } |
841 | 903 |
842 checkUnnamed2873(core.Map<core.String, core.Object> o) { | 904 checkUnnamed2978(core.Map<core.String, core.Object> o) { |
843 unittest.expect(o, unittest.hasLength(2)); | 905 unittest.expect(o, unittest.hasLength(2)); |
844 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')); | 906 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')); |
845 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')); | 907 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')); |
846 } | 908 } |
847 | 909 |
848 core.int buildCounterOperation = 0; | 910 core.int buildCounterOperation = 0; |
849 buildOperation() { | 911 buildOperation() { |
850 var o = new api.Operation(); | 912 var o = new api.Operation(); |
851 buildCounterOperation++; | 913 buildCounterOperation++; |
852 if (buildCounterOperation < 3) { | 914 if (buildCounterOperation < 3) { |
853 o.done = true; | 915 o.done = true; |
854 o.error = buildStatus(); | 916 o.error = buildStatus(); |
855 o.metadata = buildUnnamed2872(); | 917 o.metadata = buildUnnamed2977(); |
856 o.name = "foo"; | 918 o.name = "foo"; |
857 o.response = buildUnnamed2873(); | 919 o.response = buildUnnamed2978(); |
858 } | 920 } |
859 buildCounterOperation--; | 921 buildCounterOperation--; |
860 return o; | 922 return o; |
861 } | 923 } |
862 | 924 |
863 checkOperation(api.Operation o) { | 925 checkOperation(api.Operation o) { |
864 buildCounterOperation++; | 926 buildCounterOperation++; |
865 if (buildCounterOperation < 3) { | 927 if (buildCounterOperation < 3) { |
866 unittest.expect(o.done, unittest.isTrue); | 928 unittest.expect(o.done, unittest.isTrue); |
867 checkStatus(o.error); | 929 checkStatus(o.error); |
868 checkUnnamed2872(o.metadata); | 930 checkUnnamed2977(o.metadata); |
869 unittest.expect(o.name, unittest.equals('foo')); | 931 unittest.expect(o.name, unittest.equals('foo')); |
870 checkUnnamed2873(o.response); | 932 checkUnnamed2978(o.response); |
871 } | 933 } |
872 buildCounterOperation--; | 934 buildCounterOperation--; |
873 } | 935 } |
874 | 936 |
875 core.int buildCounterOperationMetadata = 0; | 937 core.int buildCounterOperationMetadata = 0; |
876 buildOperationMetadata() { | 938 buildOperationMetadata() { |
877 var o = new api.OperationMetadata(); | 939 var o = new api.OperationMetadata(); |
878 buildCounterOperationMetadata++; | 940 buildCounterOperationMetadata++; |
879 if (buildCounterOperationMetadata < 3) { | 941 if (buildCounterOperationMetadata < 3) { |
880 o.endTime = "foo"; | 942 o.endTime = "foo"; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 if (buildCounterOperationMetadataExperimental < 3) { | 983 if (buildCounterOperationMetadataExperimental < 3) { |
922 unittest.expect(o.endTime, unittest.equals('foo')); | 984 unittest.expect(o.endTime, unittest.equals('foo')); |
923 unittest.expect(o.insertTime, unittest.equals('foo')); | 985 unittest.expect(o.insertTime, unittest.equals('foo')); |
924 unittest.expect(o.method, unittest.equals('foo')); | 986 unittest.expect(o.method, unittest.equals('foo')); |
925 unittest.expect(o.target, unittest.equals('foo')); | 987 unittest.expect(o.target, unittest.equals('foo')); |
926 unittest.expect(o.user, unittest.equals('foo')); | 988 unittest.expect(o.user, unittest.equals('foo')); |
927 } | 989 } |
928 buildCounterOperationMetadataExperimental--; | 990 buildCounterOperationMetadataExperimental--; |
929 } | 991 } |
930 | 992 |
931 buildUnnamed2874() { | 993 buildUnnamed2979() { |
932 var o = new core.List<core.String>(); | 994 var o = new core.List<core.String>(); |
933 o.add("foo"); | 995 o.add("foo"); |
934 o.add("foo"); | 996 o.add("foo"); |
935 return o; | 997 return o; |
936 } | 998 } |
937 | 999 |
938 checkUnnamed2874(core.List<core.String> o) { | 1000 checkUnnamed2979(core.List<core.String> o) { |
939 unittest.expect(o, unittest.hasLength(2)); | 1001 unittest.expect(o, unittest.hasLength(2)); |
940 unittest.expect(o[0], unittest.equals('foo')); | 1002 unittest.expect(o[0], unittest.equals('foo')); |
941 unittest.expect(o[1], unittest.equals('foo')); | 1003 unittest.expect(o[1], unittest.equals('foo')); |
942 } | 1004 } |
943 | 1005 |
944 core.int buildCounterOperationMetadataV1 = 0; | 1006 core.int buildCounterOperationMetadataV1 = 0; |
945 buildOperationMetadataV1() { | 1007 buildOperationMetadataV1() { |
946 var o = new api.OperationMetadataV1(); | 1008 var o = new api.OperationMetadataV1(); |
947 buildCounterOperationMetadataV1++; | 1009 buildCounterOperationMetadataV1++; |
948 if (buildCounterOperationMetadataV1 < 3) { | 1010 if (buildCounterOperationMetadataV1 < 3) { |
949 o.endTime = "foo"; | 1011 o.endTime = "foo"; |
950 o.ephemeralMessage = "foo"; | 1012 o.ephemeralMessage = "foo"; |
951 o.insertTime = "foo"; | 1013 o.insertTime = "foo"; |
952 o.method = "foo"; | 1014 o.method = "foo"; |
953 o.target = "foo"; | 1015 o.target = "foo"; |
954 o.user = "foo"; | 1016 o.user = "foo"; |
955 o.warning = buildUnnamed2874(); | 1017 o.warning = buildUnnamed2979(); |
956 } | 1018 } |
957 buildCounterOperationMetadataV1--; | 1019 buildCounterOperationMetadataV1--; |
958 return o; | 1020 return o; |
959 } | 1021 } |
960 | 1022 |
961 checkOperationMetadataV1(api.OperationMetadataV1 o) { | 1023 checkOperationMetadataV1(api.OperationMetadataV1 o) { |
962 buildCounterOperationMetadataV1++; | 1024 buildCounterOperationMetadataV1++; |
963 if (buildCounterOperationMetadataV1 < 3) { | 1025 if (buildCounterOperationMetadataV1 < 3) { |
964 unittest.expect(o.endTime, unittest.equals('foo')); | 1026 unittest.expect(o.endTime, unittest.equals('foo')); |
965 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); | 1027 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
966 unittest.expect(o.insertTime, unittest.equals('foo')); | 1028 unittest.expect(o.insertTime, unittest.equals('foo')); |
967 unittest.expect(o.method, unittest.equals('foo')); | 1029 unittest.expect(o.method, unittest.equals('foo')); |
968 unittest.expect(o.target, unittest.equals('foo')); | 1030 unittest.expect(o.target, unittest.equals('foo')); |
969 unittest.expect(o.user, unittest.equals('foo')); | 1031 unittest.expect(o.user, unittest.equals('foo')); |
970 checkUnnamed2874(o.warning); | 1032 checkUnnamed2979(o.warning); |
971 } | 1033 } |
972 buildCounterOperationMetadataV1--; | 1034 buildCounterOperationMetadataV1--; |
973 } | 1035 } |
974 | 1036 |
| 1037 buildUnnamed2980() { |
| 1038 var o = new core.List<core.String>(); |
| 1039 o.add("foo"); |
| 1040 o.add("foo"); |
| 1041 return o; |
| 1042 } |
| 1043 |
| 1044 checkUnnamed2980(core.List<core.String> o) { |
| 1045 unittest.expect(o, unittest.hasLength(2)); |
| 1046 unittest.expect(o[0], unittest.equals('foo')); |
| 1047 unittest.expect(o[1], unittest.equals('foo')); |
| 1048 } |
| 1049 |
| 1050 core.int buildCounterOperationMetadataV1Beta = 0; |
| 1051 buildOperationMetadataV1Beta() { |
| 1052 var o = new api.OperationMetadataV1Beta(); |
| 1053 buildCounterOperationMetadataV1Beta++; |
| 1054 if (buildCounterOperationMetadataV1Beta < 3) { |
| 1055 o.endTime = "foo"; |
| 1056 o.ephemeralMessage = "foo"; |
| 1057 o.insertTime = "foo"; |
| 1058 o.method = "foo"; |
| 1059 o.target = "foo"; |
| 1060 o.user = "foo"; |
| 1061 o.warning = buildUnnamed2980(); |
| 1062 } |
| 1063 buildCounterOperationMetadataV1Beta--; |
| 1064 return o; |
| 1065 } |
| 1066 |
| 1067 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { |
| 1068 buildCounterOperationMetadataV1Beta++; |
| 1069 if (buildCounterOperationMetadataV1Beta < 3) { |
| 1070 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1071 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
| 1072 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 1073 unittest.expect(o.method, unittest.equals('foo')); |
| 1074 unittest.expect(o.target, unittest.equals('foo')); |
| 1075 unittest.expect(o.user, unittest.equals('foo')); |
| 1076 checkUnnamed2980(o.warning); |
| 1077 } |
| 1078 buildCounterOperationMetadataV1Beta--; |
| 1079 } |
| 1080 |
975 core.int buildCounterOperationMetadataV1Beta5 = 0; | 1081 core.int buildCounterOperationMetadataV1Beta5 = 0; |
976 buildOperationMetadataV1Beta5() { | 1082 buildOperationMetadataV1Beta5() { |
977 var o = new api.OperationMetadataV1Beta5(); | 1083 var o = new api.OperationMetadataV1Beta5(); |
978 buildCounterOperationMetadataV1Beta5++; | 1084 buildCounterOperationMetadataV1Beta5++; |
979 if (buildCounterOperationMetadataV1Beta5 < 3) { | 1085 if (buildCounterOperationMetadataV1Beta5 < 3) { |
980 o.endTime = "foo"; | 1086 o.endTime = "foo"; |
981 o.insertTime = "foo"; | 1087 o.insertTime = "foo"; |
982 o.method = "foo"; | 1088 o.method = "foo"; |
983 o.target = "foo"; | 1089 o.target = "foo"; |
984 o.user = "foo"; | 1090 o.user = "foo"; |
985 } | 1091 } |
986 buildCounterOperationMetadataV1Beta5--; | 1092 buildCounterOperationMetadataV1Beta5--; |
987 return o; | 1093 return o; |
988 } | 1094 } |
989 | 1095 |
990 checkOperationMetadataV1Beta5(api.OperationMetadataV1Beta5 o) { | 1096 checkOperationMetadataV1Beta5(api.OperationMetadataV1Beta5 o) { |
991 buildCounterOperationMetadataV1Beta5++; | 1097 buildCounterOperationMetadataV1Beta5++; |
992 if (buildCounterOperationMetadataV1Beta5 < 3) { | 1098 if (buildCounterOperationMetadataV1Beta5 < 3) { |
993 unittest.expect(o.endTime, unittest.equals('foo')); | 1099 unittest.expect(o.endTime, unittest.equals('foo')); |
994 unittest.expect(o.insertTime, unittest.equals('foo')); | 1100 unittest.expect(o.insertTime, unittest.equals('foo')); |
995 unittest.expect(o.method, unittest.equals('foo')); | 1101 unittest.expect(o.method, unittest.equals('foo')); |
996 unittest.expect(o.target, unittest.equals('foo')); | 1102 unittest.expect(o.target, unittest.equals('foo')); |
997 unittest.expect(o.user, unittest.equals('foo')); | 1103 unittest.expect(o.user, unittest.equals('foo')); |
998 } | 1104 } |
999 buildCounterOperationMetadataV1Beta5--; | 1105 buildCounterOperationMetadataV1Beta5--; |
1000 } | 1106 } |
1001 | 1107 |
| 1108 core.int buildCounterReadinessCheck = 0; |
| 1109 buildReadinessCheck() { |
| 1110 var o = new api.ReadinessCheck(); |
| 1111 buildCounterReadinessCheck++; |
| 1112 if (buildCounterReadinessCheck < 3) { |
| 1113 o.checkInterval = "foo"; |
| 1114 o.failureThreshold = 42; |
| 1115 o.host = "foo"; |
| 1116 o.path = "foo"; |
| 1117 o.successThreshold = 42; |
| 1118 o.timeout = "foo"; |
| 1119 } |
| 1120 buildCounterReadinessCheck--; |
| 1121 return o; |
| 1122 } |
| 1123 |
| 1124 checkReadinessCheck(api.ReadinessCheck o) { |
| 1125 buildCounterReadinessCheck++; |
| 1126 if (buildCounterReadinessCheck < 3) { |
| 1127 unittest.expect(o.checkInterval, unittest.equals('foo')); |
| 1128 unittest.expect(o.failureThreshold, unittest.equals(42)); |
| 1129 unittest.expect(o.host, unittest.equals('foo')); |
| 1130 unittest.expect(o.path, unittest.equals('foo')); |
| 1131 unittest.expect(o.successThreshold, unittest.equals(42)); |
| 1132 unittest.expect(o.timeout, unittest.equals('foo')); |
| 1133 } |
| 1134 buildCounterReadinessCheck--; |
| 1135 } |
| 1136 |
1002 core.int buildCounterRepairApplicationRequest = 0; | 1137 core.int buildCounterRepairApplicationRequest = 0; |
1003 buildRepairApplicationRequest() { | 1138 buildRepairApplicationRequest() { |
1004 var o = new api.RepairApplicationRequest(); | 1139 var o = new api.RepairApplicationRequest(); |
1005 buildCounterRepairApplicationRequest++; | 1140 buildCounterRepairApplicationRequest++; |
1006 if (buildCounterRepairApplicationRequest < 3) { | 1141 if (buildCounterRepairApplicationRequest < 3) { |
1007 } | 1142 } |
1008 buildCounterRepairApplicationRequest--; | 1143 buildCounterRepairApplicationRequest--; |
1009 return o; | 1144 return o; |
1010 } | 1145 } |
1011 | 1146 |
(...skipping 18 matching lines...) Expand all Loading... |
1030 | 1165 |
1031 checkRequestUtilization(api.RequestUtilization o) { | 1166 checkRequestUtilization(api.RequestUtilization o) { |
1032 buildCounterRequestUtilization++; | 1167 buildCounterRequestUtilization++; |
1033 if (buildCounterRequestUtilization < 3) { | 1168 if (buildCounterRequestUtilization < 3) { |
1034 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); | 1169 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); |
1035 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42)); | 1170 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42)); |
1036 } | 1171 } |
1037 buildCounterRequestUtilization--; | 1172 buildCounterRequestUtilization--; |
1038 } | 1173 } |
1039 | 1174 |
1040 buildUnnamed2875() { | 1175 buildUnnamed2981() { |
1041 var o = new core.List<api.Volume>(); | 1176 var o = new core.List<api.Volume>(); |
1042 o.add(buildVolume()); | 1177 o.add(buildVolume()); |
1043 o.add(buildVolume()); | 1178 o.add(buildVolume()); |
1044 return o; | 1179 return o; |
1045 } | 1180 } |
1046 | 1181 |
1047 checkUnnamed2875(core.List<api.Volume> o) { | 1182 checkUnnamed2981(core.List<api.Volume> o) { |
1048 unittest.expect(o, unittest.hasLength(2)); | 1183 unittest.expect(o, unittest.hasLength(2)); |
1049 checkVolume(o[0]); | 1184 checkVolume(o[0]); |
1050 checkVolume(o[1]); | 1185 checkVolume(o[1]); |
1051 } | 1186 } |
1052 | 1187 |
1053 core.int buildCounterResources = 0; | 1188 core.int buildCounterResources = 0; |
1054 buildResources() { | 1189 buildResources() { |
1055 var o = new api.Resources(); | 1190 var o = new api.Resources(); |
1056 buildCounterResources++; | 1191 buildCounterResources++; |
1057 if (buildCounterResources < 3) { | 1192 if (buildCounterResources < 3) { |
1058 o.cpu = 42.0; | 1193 o.cpu = 42.0; |
1059 o.diskGb = 42.0; | 1194 o.diskGb = 42.0; |
1060 o.memoryGb = 42.0; | 1195 o.memoryGb = 42.0; |
1061 o.volumes = buildUnnamed2875(); | 1196 o.volumes = buildUnnamed2981(); |
1062 } | 1197 } |
1063 buildCounterResources--; | 1198 buildCounterResources--; |
1064 return o; | 1199 return o; |
1065 } | 1200 } |
1066 | 1201 |
1067 checkResources(api.Resources o) { | 1202 checkResources(api.Resources o) { |
1068 buildCounterResources++; | 1203 buildCounterResources++; |
1069 if (buildCounterResources < 3) { | 1204 if (buildCounterResources < 3) { |
1070 unittest.expect(o.cpu, unittest.equals(42.0)); | 1205 unittest.expect(o.cpu, unittest.equals(42.0)); |
1071 unittest.expect(o.diskGb, unittest.equals(42.0)); | 1206 unittest.expect(o.diskGb, unittest.equals(42.0)); |
1072 unittest.expect(o.memoryGb, unittest.equals(42.0)); | 1207 unittest.expect(o.memoryGb, unittest.equals(42.0)); |
1073 checkUnnamed2875(o.volumes); | 1208 checkUnnamed2981(o.volumes); |
1074 } | 1209 } |
1075 buildCounterResources--; | 1210 buildCounterResources--; |
1076 } | 1211 } |
1077 | 1212 |
1078 core.int buildCounterScriptHandler = 0; | 1213 core.int buildCounterScriptHandler = 0; |
1079 buildScriptHandler() { | 1214 buildScriptHandler() { |
1080 var o = new api.ScriptHandler(); | 1215 var o = new api.ScriptHandler(); |
1081 buildCounterScriptHandler++; | 1216 buildCounterScriptHandler++; |
1082 if (buildCounterScriptHandler < 3) { | 1217 if (buildCounterScriptHandler < 3) { |
1083 o.scriptPath = "foo"; | 1218 o.scriptPath = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1110 checkService(api.Service o) { | 1245 checkService(api.Service o) { |
1111 buildCounterService++; | 1246 buildCounterService++; |
1112 if (buildCounterService < 3) { | 1247 if (buildCounterService < 3) { |
1113 unittest.expect(o.id, unittest.equals('foo')); | 1248 unittest.expect(o.id, unittest.equals('foo')); |
1114 unittest.expect(o.name, unittest.equals('foo')); | 1249 unittest.expect(o.name, unittest.equals('foo')); |
1115 checkTrafficSplit(o.split); | 1250 checkTrafficSplit(o.split); |
1116 } | 1251 } |
1117 buildCounterService--; | 1252 buildCounterService--; |
1118 } | 1253 } |
1119 | 1254 |
1120 buildUnnamed2876() { | 1255 buildUnnamed2982() { |
1121 var o = new core.Map<core.String, core.String>(); | 1256 var o = new core.Map<core.String, core.String>(); |
1122 o["x"] = "foo"; | 1257 o["x"] = "foo"; |
1123 o["y"] = "foo"; | 1258 o["y"] = "foo"; |
1124 return o; | 1259 return o; |
1125 } | 1260 } |
1126 | 1261 |
1127 checkUnnamed2876(core.Map<core.String, core.String> o) { | 1262 checkUnnamed2982(core.Map<core.String, core.String> o) { |
1128 unittest.expect(o, unittest.hasLength(2)); | 1263 unittest.expect(o, unittest.hasLength(2)); |
1129 unittest.expect(o["x"], unittest.equals('foo')); | 1264 unittest.expect(o["x"], unittest.equals('foo')); |
1130 unittest.expect(o["y"], unittest.equals('foo')); | 1265 unittest.expect(o["y"], unittest.equals('foo')); |
1131 } | 1266 } |
1132 | 1267 |
1133 core.int buildCounterStaticFilesHandler = 0; | 1268 core.int buildCounterStaticFilesHandler = 0; |
1134 buildStaticFilesHandler() { | 1269 buildStaticFilesHandler() { |
1135 var o = new api.StaticFilesHandler(); | 1270 var o = new api.StaticFilesHandler(); |
1136 buildCounterStaticFilesHandler++; | 1271 buildCounterStaticFilesHandler++; |
1137 if (buildCounterStaticFilesHandler < 3) { | 1272 if (buildCounterStaticFilesHandler < 3) { |
1138 o.applicationReadable = true; | 1273 o.applicationReadable = true; |
1139 o.expiration = "foo"; | 1274 o.expiration = "foo"; |
1140 o.httpHeaders = buildUnnamed2876(); | 1275 o.httpHeaders = buildUnnamed2982(); |
1141 o.mimeType = "foo"; | 1276 o.mimeType = "foo"; |
1142 o.path = "foo"; | 1277 o.path = "foo"; |
1143 o.requireMatchingFile = true; | 1278 o.requireMatchingFile = true; |
1144 o.uploadPathRegex = "foo"; | 1279 o.uploadPathRegex = "foo"; |
1145 } | 1280 } |
1146 buildCounterStaticFilesHandler--; | 1281 buildCounterStaticFilesHandler--; |
1147 return o; | 1282 return o; |
1148 } | 1283 } |
1149 | 1284 |
1150 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1285 checkStaticFilesHandler(api.StaticFilesHandler o) { |
1151 buildCounterStaticFilesHandler++; | 1286 buildCounterStaticFilesHandler++; |
1152 if (buildCounterStaticFilesHandler < 3) { | 1287 if (buildCounterStaticFilesHandler < 3) { |
1153 unittest.expect(o.applicationReadable, unittest.isTrue); | 1288 unittest.expect(o.applicationReadable, unittest.isTrue); |
1154 unittest.expect(o.expiration, unittest.equals('foo')); | 1289 unittest.expect(o.expiration, unittest.equals('foo')); |
1155 checkUnnamed2876(o.httpHeaders); | 1290 checkUnnamed2982(o.httpHeaders); |
1156 unittest.expect(o.mimeType, unittest.equals('foo')); | 1291 unittest.expect(o.mimeType, unittest.equals('foo')); |
1157 unittest.expect(o.path, unittest.equals('foo')); | 1292 unittest.expect(o.path, unittest.equals('foo')); |
1158 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1293 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1159 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1294 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
1160 } | 1295 } |
1161 buildCounterStaticFilesHandler--; | 1296 buildCounterStaticFilesHandler--; |
1162 } | 1297 } |
1163 | 1298 |
1164 buildUnnamed2877() { | 1299 buildUnnamed2983() { |
1165 var o = new core.Map<core.String, core.Object>(); | 1300 var o = new core.Map<core.String, core.Object>(); |
1166 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1301 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1167 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1302 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1168 return o; | 1303 return o; |
1169 } | 1304 } |
1170 | 1305 |
1171 checkUnnamed2877(core.Map<core.String, core.Object> o) { | 1306 checkUnnamed2983(core.Map<core.String, core.Object> o) { |
1172 unittest.expect(o, unittest.hasLength(2)); | 1307 unittest.expect(o, unittest.hasLength(2)); |
1173 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')); | 1308 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')); |
1174 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')); | 1309 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')); |
1175 } | 1310 } |
1176 | 1311 |
1177 buildUnnamed2878() { | 1312 buildUnnamed2984() { |
1178 var o = new core.List<core.Map<core.String, core.Object>>(); | 1313 var o = new core.List<core.Map<core.String, core.Object>>(); |
1179 o.add(buildUnnamed2877()); | 1314 o.add(buildUnnamed2983()); |
1180 o.add(buildUnnamed2877()); | 1315 o.add(buildUnnamed2983()); |
1181 return o; | 1316 return o; |
1182 } | 1317 } |
1183 | 1318 |
1184 checkUnnamed2878(core.List<core.Map<core.String, core.Object>> o) { | 1319 checkUnnamed2984(core.List<core.Map<core.String, core.Object>> o) { |
1185 unittest.expect(o, unittest.hasLength(2)); | 1320 unittest.expect(o, unittest.hasLength(2)); |
1186 checkUnnamed2877(o[0]); | 1321 checkUnnamed2983(o[0]); |
1187 checkUnnamed2877(o[1]); | 1322 checkUnnamed2983(o[1]); |
1188 } | 1323 } |
1189 | 1324 |
1190 core.int buildCounterStatus = 0; | 1325 core.int buildCounterStatus = 0; |
1191 buildStatus() { | 1326 buildStatus() { |
1192 var o = new api.Status(); | 1327 var o = new api.Status(); |
1193 buildCounterStatus++; | 1328 buildCounterStatus++; |
1194 if (buildCounterStatus < 3) { | 1329 if (buildCounterStatus < 3) { |
1195 o.code = 42; | 1330 o.code = 42; |
1196 o.details = buildUnnamed2878(); | 1331 o.details = buildUnnamed2984(); |
1197 o.message = "foo"; | 1332 o.message = "foo"; |
1198 } | 1333 } |
1199 buildCounterStatus--; | 1334 buildCounterStatus--; |
1200 return o; | 1335 return o; |
1201 } | 1336 } |
1202 | 1337 |
1203 checkStatus(api.Status o) { | 1338 checkStatus(api.Status o) { |
1204 buildCounterStatus++; | 1339 buildCounterStatus++; |
1205 if (buildCounterStatus < 3) { | 1340 if (buildCounterStatus < 3) { |
1206 unittest.expect(o.code, unittest.equals(42)); | 1341 unittest.expect(o.code, unittest.equals(42)); |
1207 checkUnnamed2878(o.details); | 1342 checkUnnamed2984(o.details); |
1208 unittest.expect(o.message, unittest.equals('foo')); | 1343 unittest.expect(o.message, unittest.equals('foo')); |
1209 } | 1344 } |
1210 buildCounterStatus--; | 1345 buildCounterStatus--; |
1211 } | 1346 } |
1212 | 1347 |
1213 buildUnnamed2879() { | 1348 buildUnnamed2985() { |
1214 var o = new core.Map<core.String, core.double>(); | 1349 var o = new core.Map<core.String, core.double>(); |
1215 o["x"] = 42.0; | 1350 o["x"] = 42.0; |
1216 o["y"] = 42.0; | 1351 o["y"] = 42.0; |
1217 return o; | 1352 return o; |
1218 } | 1353 } |
1219 | 1354 |
1220 checkUnnamed2879(core.Map<core.String, core.double> o) { | 1355 checkUnnamed2985(core.Map<core.String, core.double> o) { |
1221 unittest.expect(o, unittest.hasLength(2)); | 1356 unittest.expect(o, unittest.hasLength(2)); |
1222 unittest.expect(o["x"], unittest.equals(42.0)); | 1357 unittest.expect(o["x"], unittest.equals(42.0)); |
1223 unittest.expect(o["y"], unittest.equals(42.0)); | 1358 unittest.expect(o["y"], unittest.equals(42.0)); |
1224 } | 1359 } |
1225 | 1360 |
1226 core.int buildCounterTrafficSplit = 0; | 1361 core.int buildCounterTrafficSplit = 0; |
1227 buildTrafficSplit() { | 1362 buildTrafficSplit() { |
1228 var o = new api.TrafficSplit(); | 1363 var o = new api.TrafficSplit(); |
1229 buildCounterTrafficSplit++; | 1364 buildCounterTrafficSplit++; |
1230 if (buildCounterTrafficSplit < 3) { | 1365 if (buildCounterTrafficSplit < 3) { |
1231 o.allocations = buildUnnamed2879(); | 1366 o.allocations = buildUnnamed2985(); |
1232 o.shardBy = "foo"; | 1367 o.shardBy = "foo"; |
1233 } | 1368 } |
1234 buildCounterTrafficSplit--; | 1369 buildCounterTrafficSplit--; |
1235 return o; | 1370 return o; |
1236 } | 1371 } |
1237 | 1372 |
1238 checkTrafficSplit(api.TrafficSplit o) { | 1373 checkTrafficSplit(api.TrafficSplit o) { |
1239 buildCounterTrafficSplit++; | 1374 buildCounterTrafficSplit++; |
1240 if (buildCounterTrafficSplit < 3) { | 1375 if (buildCounterTrafficSplit < 3) { |
1241 checkUnnamed2879(o.allocations); | 1376 checkUnnamed2985(o.allocations); |
1242 unittest.expect(o.shardBy, unittest.equals('foo')); | 1377 unittest.expect(o.shardBy, unittest.equals('foo')); |
1243 } | 1378 } |
1244 buildCounterTrafficSplit--; | 1379 buildCounterTrafficSplit--; |
1245 } | 1380 } |
1246 | 1381 |
1247 core.int buildCounterUrlDispatchRule = 0; | 1382 core.int buildCounterUrlDispatchRule = 0; |
1248 buildUrlDispatchRule() { | 1383 buildUrlDispatchRule() { |
1249 var o = new api.UrlDispatchRule(); | 1384 var o = new api.UrlDispatchRule(); |
1250 buildCounterUrlDispatchRule++; | 1385 buildCounterUrlDispatchRule++; |
1251 if (buildCounterUrlDispatchRule < 3) { | 1386 if (buildCounterUrlDispatchRule < 3) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1293 unittest.expect(o.login, unittest.equals('foo')); | 1428 unittest.expect(o.login, unittest.equals('foo')); |
1294 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1429 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
1295 checkScriptHandler(o.script); | 1430 checkScriptHandler(o.script); |
1296 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1431 unittest.expect(o.securityLevel, unittest.equals('foo')); |
1297 checkStaticFilesHandler(o.staticFiles); | 1432 checkStaticFilesHandler(o.staticFiles); |
1298 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1433 unittest.expect(o.urlRegex, unittest.equals('foo')); |
1299 } | 1434 } |
1300 buildCounterUrlMap--; | 1435 buildCounterUrlMap--; |
1301 } | 1436 } |
1302 | 1437 |
1303 buildUnnamed2880() { | 1438 buildUnnamed2986() { |
1304 var o = new core.Map<core.String, core.String>(); | 1439 var o = new core.Map<core.String, core.String>(); |
1305 o["x"] = "foo"; | 1440 o["x"] = "foo"; |
1306 o["y"] = "foo"; | 1441 o["y"] = "foo"; |
1307 return o; | 1442 return o; |
1308 } | 1443 } |
1309 | 1444 |
1310 checkUnnamed2880(core.Map<core.String, core.String> o) { | 1445 checkUnnamed2986(core.Map<core.String, core.String> o) { |
1311 unittest.expect(o, unittest.hasLength(2)); | 1446 unittest.expect(o, unittest.hasLength(2)); |
1312 unittest.expect(o["x"], unittest.equals('foo')); | 1447 unittest.expect(o["x"], unittest.equals('foo')); |
1313 unittest.expect(o["y"], unittest.equals('foo')); | 1448 unittest.expect(o["y"], unittest.equals('foo')); |
1314 } | 1449 } |
1315 | 1450 |
1316 buildUnnamed2881() { | 1451 buildUnnamed2987() { |
1317 var o = new core.Map<core.String, core.String>(); | 1452 var o = new core.Map<core.String, core.String>(); |
1318 o["x"] = "foo"; | 1453 o["x"] = "foo"; |
1319 o["y"] = "foo"; | 1454 o["y"] = "foo"; |
1320 return o; | 1455 return o; |
1321 } | 1456 } |
1322 | 1457 |
1323 checkUnnamed2881(core.Map<core.String, core.String> o) { | 1458 checkUnnamed2987(core.Map<core.String, core.String> o) { |
1324 unittest.expect(o, unittest.hasLength(2)); | 1459 unittest.expect(o, unittest.hasLength(2)); |
1325 unittest.expect(o["x"], unittest.equals('foo')); | 1460 unittest.expect(o["x"], unittest.equals('foo')); |
1326 unittest.expect(o["y"], unittest.equals('foo')); | 1461 unittest.expect(o["y"], unittest.equals('foo')); |
1327 } | 1462 } |
1328 | 1463 |
1329 buildUnnamed2882() { | 1464 buildUnnamed2988() { |
1330 var o = new core.List<api.ErrorHandler>(); | 1465 var o = new core.List<api.ErrorHandler>(); |
1331 o.add(buildErrorHandler()); | 1466 o.add(buildErrorHandler()); |
1332 o.add(buildErrorHandler()); | 1467 o.add(buildErrorHandler()); |
1333 return o; | 1468 return o; |
1334 } | 1469 } |
1335 | 1470 |
1336 checkUnnamed2882(core.List<api.ErrorHandler> o) { | 1471 checkUnnamed2988(core.List<api.ErrorHandler> o) { |
1337 unittest.expect(o, unittest.hasLength(2)); | 1472 unittest.expect(o, unittest.hasLength(2)); |
1338 checkErrorHandler(o[0]); | 1473 checkErrorHandler(o[0]); |
1339 checkErrorHandler(o[1]); | 1474 checkErrorHandler(o[1]); |
1340 } | 1475 } |
1341 | 1476 |
1342 buildUnnamed2883() { | 1477 buildUnnamed2989() { |
1343 var o = new core.List<api.UrlMap>(); | 1478 var o = new core.List<api.UrlMap>(); |
1344 o.add(buildUrlMap()); | 1479 o.add(buildUrlMap()); |
1345 o.add(buildUrlMap()); | 1480 o.add(buildUrlMap()); |
1346 return o; | 1481 return o; |
1347 } | 1482 } |
1348 | 1483 |
1349 checkUnnamed2883(core.List<api.UrlMap> o) { | 1484 checkUnnamed2989(core.List<api.UrlMap> o) { |
1350 unittest.expect(o, unittest.hasLength(2)); | 1485 unittest.expect(o, unittest.hasLength(2)); |
1351 checkUrlMap(o[0]); | 1486 checkUrlMap(o[0]); |
1352 checkUrlMap(o[1]); | 1487 checkUrlMap(o[1]); |
1353 } | 1488 } |
1354 | 1489 |
1355 buildUnnamed2884() { | 1490 buildUnnamed2990() { |
1356 var o = new core.List<core.String>(); | 1491 var o = new core.List<core.String>(); |
1357 o.add("foo"); | 1492 o.add("foo"); |
1358 o.add("foo"); | 1493 o.add("foo"); |
1359 return o; | 1494 return o; |
1360 } | 1495 } |
1361 | 1496 |
1362 checkUnnamed2884(core.List<core.String> o) { | 1497 checkUnnamed2990(core.List<core.String> o) { |
1363 unittest.expect(o, unittest.hasLength(2)); | 1498 unittest.expect(o, unittest.hasLength(2)); |
1364 unittest.expect(o[0], unittest.equals('foo')); | 1499 unittest.expect(o[0], unittest.equals('foo')); |
1365 unittest.expect(o[1], unittest.equals('foo')); | 1500 unittest.expect(o[1], unittest.equals('foo')); |
1366 } | 1501 } |
1367 | 1502 |
1368 buildUnnamed2885() { | 1503 buildUnnamed2991() { |
1369 var o = new core.List<api.Library>(); | 1504 var o = new core.List<api.Library>(); |
1370 o.add(buildLibrary()); | 1505 o.add(buildLibrary()); |
1371 o.add(buildLibrary()); | 1506 o.add(buildLibrary()); |
1372 return o; | 1507 return o; |
1373 } | 1508 } |
1374 | 1509 |
1375 checkUnnamed2885(core.List<api.Library> o) { | 1510 checkUnnamed2991(core.List<api.Library> o) { |
1376 unittest.expect(o, unittest.hasLength(2)); | 1511 unittest.expect(o, unittest.hasLength(2)); |
1377 checkLibrary(o[0]); | 1512 checkLibrary(o[0]); |
1378 checkLibrary(o[1]); | 1513 checkLibrary(o[1]); |
1379 } | 1514 } |
1380 | 1515 |
1381 core.int buildCounterVersion = 0; | 1516 core.int buildCounterVersion = 0; |
1382 buildVersion() { | 1517 buildVersion() { |
1383 var o = new api.Version(); | 1518 var o = new api.Version(); |
1384 buildCounterVersion++; | 1519 buildCounterVersion++; |
1385 if (buildCounterVersion < 3) { | 1520 if (buildCounterVersion < 3) { |
1386 o.apiConfig = buildApiConfigHandler(); | 1521 o.apiConfig = buildApiConfigHandler(); |
1387 o.automaticScaling = buildAutomaticScaling(); | 1522 o.automaticScaling = buildAutomaticScaling(); |
1388 o.basicScaling = buildBasicScaling(); | 1523 o.basicScaling = buildBasicScaling(); |
1389 o.betaSettings = buildUnnamed2880(); | 1524 o.betaSettings = buildUnnamed2986(); |
1390 o.createTime = "foo"; | 1525 o.createTime = "foo"; |
1391 o.createdBy = "foo"; | 1526 o.createdBy = "foo"; |
1392 o.defaultExpiration = "foo"; | 1527 o.defaultExpiration = "foo"; |
1393 o.deployment = buildDeployment(); | 1528 o.deployment = buildDeployment(); |
1394 o.diskUsageBytes = "foo"; | 1529 o.diskUsageBytes = "foo"; |
1395 o.endpointsApiService = buildEndpointsApiService(); | 1530 o.endpointsApiService = buildEndpointsApiService(); |
1396 o.env = "foo"; | 1531 o.env = "foo"; |
1397 o.envVariables = buildUnnamed2881(); | 1532 o.envVariables = buildUnnamed2987(); |
1398 o.errorHandlers = buildUnnamed2882(); | 1533 o.errorHandlers = buildUnnamed2988(); |
1399 o.handlers = buildUnnamed2883(); | 1534 o.handlers = buildUnnamed2989(); |
1400 o.healthCheck = buildHealthCheck(); | 1535 o.healthCheck = buildHealthCheck(); |
1401 o.id = "foo"; | 1536 o.id = "foo"; |
1402 o.inboundServices = buildUnnamed2884(); | 1537 o.inboundServices = buildUnnamed2990(); |
1403 o.instanceClass = "foo"; | 1538 o.instanceClass = "foo"; |
1404 o.libraries = buildUnnamed2885(); | 1539 o.libraries = buildUnnamed2991(); |
| 1540 o.livenessCheck = buildLivenessCheck(); |
1405 o.manualScaling = buildManualScaling(); | 1541 o.manualScaling = buildManualScaling(); |
1406 o.name = "foo"; | 1542 o.name = "foo"; |
1407 o.network = buildNetwork(); | 1543 o.network = buildNetwork(); |
1408 o.nobuildFilesRegex = "foo"; | 1544 o.nobuildFilesRegex = "foo"; |
| 1545 o.readinessCheck = buildReadinessCheck(); |
1409 o.resources = buildResources(); | 1546 o.resources = buildResources(); |
1410 o.runtime = "foo"; | 1547 o.runtime = "foo"; |
1411 o.servingStatus = "foo"; | 1548 o.servingStatus = "foo"; |
1412 o.threadsafe = true; | 1549 o.threadsafe = true; |
1413 o.versionUrl = "foo"; | 1550 o.versionUrl = "foo"; |
1414 o.vm = true; | 1551 o.vm = true; |
1415 } | 1552 } |
1416 buildCounterVersion--; | 1553 buildCounterVersion--; |
1417 return o; | 1554 return o; |
1418 } | 1555 } |
1419 | 1556 |
1420 checkVersion(api.Version o) { | 1557 checkVersion(api.Version o) { |
1421 buildCounterVersion++; | 1558 buildCounterVersion++; |
1422 if (buildCounterVersion < 3) { | 1559 if (buildCounterVersion < 3) { |
1423 checkApiConfigHandler(o.apiConfig); | 1560 checkApiConfigHandler(o.apiConfig); |
1424 checkAutomaticScaling(o.automaticScaling); | 1561 checkAutomaticScaling(o.automaticScaling); |
1425 checkBasicScaling(o.basicScaling); | 1562 checkBasicScaling(o.basicScaling); |
1426 checkUnnamed2880(o.betaSettings); | 1563 checkUnnamed2986(o.betaSettings); |
1427 unittest.expect(o.createTime, unittest.equals('foo')); | 1564 unittest.expect(o.createTime, unittest.equals('foo')); |
1428 unittest.expect(o.createdBy, unittest.equals('foo')); | 1565 unittest.expect(o.createdBy, unittest.equals('foo')); |
1429 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1566 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
1430 checkDeployment(o.deployment); | 1567 checkDeployment(o.deployment); |
1431 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); | 1568 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); |
1432 checkEndpointsApiService(o.endpointsApiService); | 1569 checkEndpointsApiService(o.endpointsApiService); |
1433 unittest.expect(o.env, unittest.equals('foo')); | 1570 unittest.expect(o.env, unittest.equals('foo')); |
1434 checkUnnamed2881(o.envVariables); | 1571 checkUnnamed2987(o.envVariables); |
1435 checkUnnamed2882(o.errorHandlers); | 1572 checkUnnamed2988(o.errorHandlers); |
1436 checkUnnamed2883(o.handlers); | 1573 checkUnnamed2989(o.handlers); |
1437 checkHealthCheck(o.healthCheck); | 1574 checkHealthCheck(o.healthCheck); |
1438 unittest.expect(o.id, unittest.equals('foo')); | 1575 unittest.expect(o.id, unittest.equals('foo')); |
1439 checkUnnamed2884(o.inboundServices); | 1576 checkUnnamed2990(o.inboundServices); |
1440 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1577 unittest.expect(o.instanceClass, unittest.equals('foo')); |
1441 checkUnnamed2885(o.libraries); | 1578 checkUnnamed2991(o.libraries); |
| 1579 checkLivenessCheck(o.livenessCheck); |
1442 checkManualScaling(o.manualScaling); | 1580 checkManualScaling(o.manualScaling); |
1443 unittest.expect(o.name, unittest.equals('foo')); | 1581 unittest.expect(o.name, unittest.equals('foo')); |
1444 checkNetwork(o.network); | 1582 checkNetwork(o.network); |
1445 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1583 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
| 1584 checkReadinessCheck(o.readinessCheck); |
1446 checkResources(o.resources); | 1585 checkResources(o.resources); |
1447 unittest.expect(o.runtime, unittest.equals('foo')); | 1586 unittest.expect(o.runtime, unittest.equals('foo')); |
1448 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1587 unittest.expect(o.servingStatus, unittest.equals('foo')); |
1449 unittest.expect(o.threadsafe, unittest.isTrue); | 1588 unittest.expect(o.threadsafe, unittest.isTrue); |
1450 unittest.expect(o.versionUrl, unittest.equals('foo')); | 1589 unittest.expect(o.versionUrl, unittest.equals('foo')); |
1451 unittest.expect(o.vm, unittest.isTrue); | 1590 unittest.expect(o.vm, unittest.isTrue); |
1452 } | 1591 } |
1453 buildCounterVersion--; | 1592 buildCounterVersion--; |
1454 } | 1593 } |
1455 | 1594 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1618 | 1757 |
1619 unittest.group("obj-schema-HealthCheck", () { | 1758 unittest.group("obj-schema-HealthCheck", () { |
1620 unittest.test("to-json--from-json", () { | 1759 unittest.test("to-json--from-json", () { |
1621 var o = buildHealthCheck(); | 1760 var o = buildHealthCheck(); |
1622 var od = new api.HealthCheck.fromJson(o.toJson()); | 1761 var od = new api.HealthCheck.fromJson(o.toJson()); |
1623 checkHealthCheck(od); | 1762 checkHealthCheck(od); |
1624 }); | 1763 }); |
1625 }); | 1764 }); |
1626 | 1765 |
1627 | 1766 |
| 1767 unittest.group("obj-schema-IdentityAwareProxy", () { |
| 1768 unittest.test("to-json--from-json", () { |
| 1769 var o = buildIdentityAwareProxy(); |
| 1770 var od = new api.IdentityAwareProxy.fromJson(o.toJson()); |
| 1771 checkIdentityAwareProxy(od); |
| 1772 }); |
| 1773 }); |
| 1774 |
| 1775 |
1628 unittest.group("obj-schema-Instance", () { | 1776 unittest.group("obj-schema-Instance", () { |
1629 unittest.test("to-json--from-json", () { | 1777 unittest.test("to-json--from-json", () { |
1630 var o = buildInstance(); | 1778 var o = buildInstance(); |
1631 var od = new api.Instance.fromJson(o.toJson()); | 1779 var od = new api.Instance.fromJson(o.toJson()); |
1632 checkInstance(od); | 1780 checkInstance(od); |
1633 }); | 1781 }); |
1634 }); | 1782 }); |
1635 | 1783 |
1636 | 1784 |
1637 unittest.group("obj-schema-Library", () { | 1785 unittest.group("obj-schema-Library", () { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1681 | 1829 |
1682 unittest.group("obj-schema-ListVersionsResponse", () { | 1830 unittest.group("obj-schema-ListVersionsResponse", () { |
1683 unittest.test("to-json--from-json", () { | 1831 unittest.test("to-json--from-json", () { |
1684 var o = buildListVersionsResponse(); | 1832 var o = buildListVersionsResponse(); |
1685 var od = new api.ListVersionsResponse.fromJson(o.toJson()); | 1833 var od = new api.ListVersionsResponse.fromJson(o.toJson()); |
1686 checkListVersionsResponse(od); | 1834 checkListVersionsResponse(od); |
1687 }); | 1835 }); |
1688 }); | 1836 }); |
1689 | 1837 |
1690 | 1838 |
| 1839 unittest.group("obj-schema-LivenessCheck", () { |
| 1840 unittest.test("to-json--from-json", () { |
| 1841 var o = buildLivenessCheck(); |
| 1842 var od = new api.LivenessCheck.fromJson(o.toJson()); |
| 1843 checkLivenessCheck(od); |
| 1844 }); |
| 1845 }); |
| 1846 |
| 1847 |
1691 unittest.group("obj-schema-Location", () { | 1848 unittest.group("obj-schema-Location", () { |
1692 unittest.test("to-json--from-json", () { | 1849 unittest.test("to-json--from-json", () { |
1693 var o = buildLocation(); | 1850 var o = buildLocation(); |
1694 var od = new api.Location.fromJson(o.toJson()); | 1851 var od = new api.Location.fromJson(o.toJson()); |
1695 checkLocation(od); | 1852 checkLocation(od); |
1696 }); | 1853 }); |
1697 }); | 1854 }); |
1698 | 1855 |
1699 | 1856 |
1700 unittest.group("obj-schema-LocationMetadata", () { | 1857 unittest.group("obj-schema-LocationMetadata", () { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1762 | 1919 |
1763 unittest.group("obj-schema-OperationMetadataV1", () { | 1920 unittest.group("obj-schema-OperationMetadataV1", () { |
1764 unittest.test("to-json--from-json", () { | 1921 unittest.test("to-json--from-json", () { |
1765 var o = buildOperationMetadataV1(); | 1922 var o = buildOperationMetadataV1(); |
1766 var od = new api.OperationMetadataV1.fromJson(o.toJson()); | 1923 var od = new api.OperationMetadataV1.fromJson(o.toJson()); |
1767 checkOperationMetadataV1(od); | 1924 checkOperationMetadataV1(od); |
1768 }); | 1925 }); |
1769 }); | 1926 }); |
1770 | 1927 |
1771 | 1928 |
| 1929 unittest.group("obj-schema-OperationMetadataV1Beta", () { |
| 1930 unittest.test("to-json--from-json", () { |
| 1931 var o = buildOperationMetadataV1Beta(); |
| 1932 var od = new api.OperationMetadataV1Beta.fromJson(o.toJson()); |
| 1933 checkOperationMetadataV1Beta(od); |
| 1934 }); |
| 1935 }); |
| 1936 |
| 1937 |
1772 unittest.group("obj-schema-OperationMetadataV1Beta5", () { | 1938 unittest.group("obj-schema-OperationMetadataV1Beta5", () { |
1773 unittest.test("to-json--from-json", () { | 1939 unittest.test("to-json--from-json", () { |
1774 var o = buildOperationMetadataV1Beta5(); | 1940 var o = buildOperationMetadataV1Beta5(); |
1775 var od = new api.OperationMetadataV1Beta5.fromJson(o.toJson()); | 1941 var od = new api.OperationMetadataV1Beta5.fromJson(o.toJson()); |
1776 checkOperationMetadataV1Beta5(od); | 1942 checkOperationMetadataV1Beta5(od); |
1777 }); | 1943 }); |
1778 }); | 1944 }); |
1779 | 1945 |
1780 | 1946 |
| 1947 unittest.group("obj-schema-ReadinessCheck", () { |
| 1948 unittest.test("to-json--from-json", () { |
| 1949 var o = buildReadinessCheck(); |
| 1950 var od = new api.ReadinessCheck.fromJson(o.toJson()); |
| 1951 checkReadinessCheck(od); |
| 1952 }); |
| 1953 }); |
| 1954 |
| 1955 |
1781 unittest.group("obj-schema-RepairApplicationRequest", () { | 1956 unittest.group("obj-schema-RepairApplicationRequest", () { |
1782 unittest.test("to-json--from-json", () { | 1957 unittest.test("to-json--from-json", () { |
1783 var o = buildRepairApplicationRequest(); | 1958 var o = buildRepairApplicationRequest(); |
1784 var od = new api.RepairApplicationRequest.fromJson(o.toJson()); | 1959 var od = new api.RepairApplicationRequest.fromJson(o.toJson()); |
1785 checkRepairApplicationRequest(od); | 1960 checkRepairApplicationRequest(od); |
1786 }); | 1961 }); |
1787 }); | 1962 }); |
1788 | 1963 |
1789 | 1964 |
1790 unittest.group("obj-schema-RequestUtilization", () { | 1965 unittest.group("obj-schema-RequestUtilization", () { |
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3185 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { | 3360 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { |
3186 checkListInstancesResponse(response); | 3361 checkListInstancesResponse(response); |
3187 }))); | 3362 }))); |
3188 }); | 3363 }); |
3189 | 3364 |
3190 }); | 3365 }); |
3191 | 3366 |
3192 | 3367 |
3193 } | 3368 } |
3194 | 3369 |
OLD | NEW |