| 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:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 buildUnnamed3368() { | 100 buildUnnamed3496() { |
| 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 checkUnnamed3368(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed3496(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 = buildUnnamed3368(); | 123 o.dispatchRules = buildUnnamed3496(); |
| 124 o.iap = buildIdentityAwareProxy(); | 124 o.iap = buildIdentityAwareProxy(); |
| 125 o.id = "foo"; | 125 o.id = "foo"; |
| 126 o.location = "foo"; | 126 o.location = "foo"; |
| 127 o.name = "foo"; | 127 o.name = "foo"; |
| 128 } | 128 } |
| 129 buildCounterApplication--; | 129 buildCounterApplication--; |
| 130 return o; | 130 return o; |
| 131 } | 131 } |
| 132 | 132 |
| 133 checkApplication(api.Application o) { | 133 checkApplication(api.Application o) { |
| 134 buildCounterApplication++; | 134 buildCounterApplication++; |
| 135 if (buildCounterApplication < 3) { | 135 if (buildCounterApplication < 3) { |
| 136 unittest.expect(o.authDomain, unittest.equals('foo')); | 136 unittest.expect(o.authDomain, unittest.equals('foo')); |
| 137 unittest.expect(o.codeBucket, unittest.equals('foo')); | 137 unittest.expect(o.codeBucket, unittest.equals('foo')); |
| 138 unittest.expect(o.defaultBucket, unittest.equals('foo')); | 138 unittest.expect(o.defaultBucket, unittest.equals('foo')); |
| 139 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); | 139 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); |
| 140 unittest.expect(o.defaultHostname, unittest.equals('foo')); | 140 unittest.expect(o.defaultHostname, unittest.equals('foo')); |
| 141 checkUnnamed3368(o.dispatchRules); | 141 checkUnnamed3496(o.dispatchRules); |
| 142 checkIdentityAwareProxy(o.iap); | 142 checkIdentityAwareProxy(o.iap); |
| 143 unittest.expect(o.id, unittest.equals('foo')); | 143 unittest.expect(o.id, unittest.equals('foo')); |
| 144 unittest.expect(o.location, unittest.equals('foo')); | 144 unittest.expect(o.location, unittest.equals('foo')); |
| 145 unittest.expect(o.name, unittest.equals('foo')); | 145 unittest.expect(o.name, unittest.equals('foo')); |
| 146 } | 146 } |
| 147 buildCounterApplication--; | 147 buildCounterApplication--; |
| 148 } | 148 } |
| 149 | 149 |
| 150 core.int buildCounterAutomaticScaling = 0; | 150 core.int buildCounterAutomaticScaling = 0; |
| 151 buildAutomaticScaling() { | 151 buildAutomaticScaling() { |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 } | 261 } |
| 262 | 262 |
| 263 checkDebugInstanceRequest(api.DebugInstanceRequest o) { | 263 checkDebugInstanceRequest(api.DebugInstanceRequest o) { |
| 264 buildCounterDebugInstanceRequest++; | 264 buildCounterDebugInstanceRequest++; |
| 265 if (buildCounterDebugInstanceRequest < 3) { | 265 if (buildCounterDebugInstanceRequest < 3) { |
| 266 unittest.expect(o.sshKey, unittest.equals('foo')); | 266 unittest.expect(o.sshKey, unittest.equals('foo')); |
| 267 } | 267 } |
| 268 buildCounterDebugInstanceRequest--; | 268 buildCounterDebugInstanceRequest--; |
| 269 } | 269 } |
| 270 | 270 |
| 271 buildUnnamed3369() { | 271 buildUnnamed3497() { |
| 272 var o = new core.Map<core.String, api.FileInfo>(); | 272 var o = new core.Map<core.String, api.FileInfo>(); |
| 273 o["x"] = buildFileInfo(); | 273 o["x"] = buildFileInfo(); |
| 274 o["y"] = buildFileInfo(); | 274 o["y"] = buildFileInfo(); |
| 275 return o; | 275 return o; |
| 276 } | 276 } |
| 277 | 277 |
| 278 checkUnnamed3369(core.Map<core.String, api.FileInfo> o) { | 278 checkUnnamed3497(core.Map<core.String, api.FileInfo> o) { |
| 279 unittest.expect(o, unittest.hasLength(2)); | 279 unittest.expect(o, unittest.hasLength(2)); |
| 280 checkFileInfo(o["x"]); | 280 checkFileInfo(o["x"]); |
| 281 checkFileInfo(o["y"]); | 281 checkFileInfo(o["y"]); |
| 282 } | 282 } |
| 283 | 283 |
| 284 buildUnnamed3370() { | 284 buildUnnamed3498() { |
| 285 var o = new core.List<api.SourceReference>(); | 285 var o = new core.List<api.SourceReference>(); |
| 286 o.add(buildSourceReference()); | 286 o.add(buildSourceReference()); |
| 287 o.add(buildSourceReference()); | 287 o.add(buildSourceReference()); |
| 288 return o; | 288 return o; |
| 289 } | 289 } |
| 290 | 290 |
| 291 checkUnnamed3370(core.List<api.SourceReference> o) { | 291 checkUnnamed3498(core.List<api.SourceReference> o) { |
| 292 unittest.expect(o, unittest.hasLength(2)); | 292 unittest.expect(o, unittest.hasLength(2)); |
| 293 checkSourceReference(o[0]); | 293 checkSourceReference(o[0]); |
| 294 checkSourceReference(o[1]); | 294 checkSourceReference(o[1]); |
| 295 } | 295 } |
| 296 | 296 |
| 297 core.int buildCounterDeployment = 0; | 297 core.int buildCounterDeployment = 0; |
| 298 buildDeployment() { | 298 buildDeployment() { |
| 299 var o = new api.Deployment(); | 299 var o = new api.Deployment(); |
| 300 buildCounterDeployment++; | 300 buildCounterDeployment++; |
| 301 if (buildCounterDeployment < 3) { | 301 if (buildCounterDeployment < 3) { |
| 302 o.container = buildContainerInfo(); | 302 o.container = buildContainerInfo(); |
| 303 o.files = buildUnnamed3369(); | 303 o.files = buildUnnamed3497(); |
| 304 o.sourceReferences = buildUnnamed3370(); | 304 o.sourceReferences = buildUnnamed3498(); |
| 305 } | 305 } |
| 306 buildCounterDeployment--; | 306 buildCounterDeployment--; |
| 307 return o; | 307 return o; |
| 308 } | 308 } |
| 309 | 309 |
| 310 checkDeployment(api.Deployment o) { | 310 checkDeployment(api.Deployment o) { |
| 311 buildCounterDeployment++; | 311 buildCounterDeployment++; |
| 312 if (buildCounterDeployment < 3) { | 312 if (buildCounterDeployment < 3) { |
| 313 checkContainerInfo(o.container); | 313 checkContainerInfo(o.container); |
| 314 checkUnnamed3369(o.files); | 314 checkUnnamed3497(o.files); |
| 315 checkUnnamed3370(o.sourceReferences); | 315 checkUnnamed3498(o.sourceReferences); |
| 316 } | 316 } |
| 317 buildCounterDeployment--; | 317 buildCounterDeployment--; |
| 318 } | 318 } |
| 319 | 319 |
| 320 core.int buildCounterDiskUtilization = 0; | 320 core.int buildCounterDiskUtilization = 0; |
| 321 buildDiskUtilization() { | 321 buildDiskUtilization() { |
| 322 var o = new api.DiskUtilization(); | 322 var o = new api.DiskUtilization(); |
| 323 buildCounterDiskUtilization++; | 323 buildCounterDiskUtilization++; |
| 324 if (buildCounterDiskUtilization < 3) { | 324 if (buildCounterDiskUtilization < 3) { |
| 325 o.targetReadBytesPerSec = 42; | 325 o.targetReadBytesPerSec = 42; |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 507 | 507 |
| 508 checkLibrary(api.Library o) { | 508 checkLibrary(api.Library o) { |
| 509 buildCounterLibrary++; | 509 buildCounterLibrary++; |
| 510 if (buildCounterLibrary < 3) { | 510 if (buildCounterLibrary < 3) { |
| 511 unittest.expect(o.name, unittest.equals('foo')); | 511 unittest.expect(o.name, unittest.equals('foo')); |
| 512 unittest.expect(o.version, unittest.equals('foo')); | 512 unittest.expect(o.version, unittest.equals('foo')); |
| 513 } | 513 } |
| 514 buildCounterLibrary--; | 514 buildCounterLibrary--; |
| 515 } | 515 } |
| 516 | 516 |
| 517 buildUnnamed3371() { | 517 buildUnnamed3499() { |
| 518 var o = new core.List<api.Instance>(); | 518 var o = new core.List<api.Instance>(); |
| 519 o.add(buildInstance()); | 519 o.add(buildInstance()); |
| 520 o.add(buildInstance()); | 520 o.add(buildInstance()); |
| 521 return o; | 521 return o; |
| 522 } | 522 } |
| 523 | 523 |
| 524 checkUnnamed3371(core.List<api.Instance> o) { | 524 checkUnnamed3499(core.List<api.Instance> o) { |
| 525 unittest.expect(o, unittest.hasLength(2)); | 525 unittest.expect(o, unittest.hasLength(2)); |
| 526 checkInstance(o[0]); | 526 checkInstance(o[0]); |
| 527 checkInstance(o[1]); | 527 checkInstance(o[1]); |
| 528 } | 528 } |
| 529 | 529 |
| 530 core.int buildCounterListInstancesResponse = 0; | 530 core.int buildCounterListInstancesResponse = 0; |
| 531 buildListInstancesResponse() { | 531 buildListInstancesResponse() { |
| 532 var o = new api.ListInstancesResponse(); | 532 var o = new api.ListInstancesResponse(); |
| 533 buildCounterListInstancesResponse++; | 533 buildCounterListInstancesResponse++; |
| 534 if (buildCounterListInstancesResponse < 3) { | 534 if (buildCounterListInstancesResponse < 3) { |
| 535 o.instances = buildUnnamed3371(); | 535 o.instances = buildUnnamed3499(); |
| 536 o.nextPageToken = "foo"; | 536 o.nextPageToken = "foo"; |
| 537 } | 537 } |
| 538 buildCounterListInstancesResponse--; | 538 buildCounterListInstancesResponse--; |
| 539 return o; | 539 return o; |
| 540 } | 540 } |
| 541 | 541 |
| 542 checkListInstancesResponse(api.ListInstancesResponse o) { | 542 checkListInstancesResponse(api.ListInstancesResponse o) { |
| 543 buildCounterListInstancesResponse++; | 543 buildCounterListInstancesResponse++; |
| 544 if (buildCounterListInstancesResponse < 3) { | 544 if (buildCounterListInstancesResponse < 3) { |
| 545 checkUnnamed3371(o.instances); | 545 checkUnnamed3499(o.instances); |
| 546 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 546 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 547 } | 547 } |
| 548 buildCounterListInstancesResponse--; | 548 buildCounterListInstancesResponse--; |
| 549 } | 549 } |
| 550 | 550 |
| 551 buildUnnamed3372() { | 551 buildUnnamed3500() { |
| 552 var o = new core.List<api.Location>(); | 552 var o = new core.List<api.Location>(); |
| 553 o.add(buildLocation()); | 553 o.add(buildLocation()); |
| 554 o.add(buildLocation()); | 554 o.add(buildLocation()); |
| 555 return o; | 555 return o; |
| 556 } | 556 } |
| 557 | 557 |
| 558 checkUnnamed3372(core.List<api.Location> o) { | 558 checkUnnamed3500(core.List<api.Location> o) { |
| 559 unittest.expect(o, unittest.hasLength(2)); | 559 unittest.expect(o, unittest.hasLength(2)); |
| 560 checkLocation(o[0]); | 560 checkLocation(o[0]); |
| 561 checkLocation(o[1]); | 561 checkLocation(o[1]); |
| 562 } | 562 } |
| 563 | 563 |
| 564 core.int buildCounterListLocationsResponse = 0; | 564 core.int buildCounterListLocationsResponse = 0; |
| 565 buildListLocationsResponse() { | 565 buildListLocationsResponse() { |
| 566 var o = new api.ListLocationsResponse(); | 566 var o = new api.ListLocationsResponse(); |
| 567 buildCounterListLocationsResponse++; | 567 buildCounterListLocationsResponse++; |
| 568 if (buildCounterListLocationsResponse < 3) { | 568 if (buildCounterListLocationsResponse < 3) { |
| 569 o.locations = buildUnnamed3372(); | 569 o.locations = buildUnnamed3500(); |
| 570 o.nextPageToken = "foo"; | 570 o.nextPageToken = "foo"; |
| 571 } | 571 } |
| 572 buildCounterListLocationsResponse--; | 572 buildCounterListLocationsResponse--; |
| 573 return o; | 573 return o; |
| 574 } | 574 } |
| 575 | 575 |
| 576 checkListLocationsResponse(api.ListLocationsResponse o) { | 576 checkListLocationsResponse(api.ListLocationsResponse o) { |
| 577 buildCounterListLocationsResponse++; | 577 buildCounterListLocationsResponse++; |
| 578 if (buildCounterListLocationsResponse < 3) { | 578 if (buildCounterListLocationsResponse < 3) { |
| 579 checkUnnamed3372(o.locations); | 579 checkUnnamed3500(o.locations); |
| 580 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 580 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 581 } | 581 } |
| 582 buildCounterListLocationsResponse--; | 582 buildCounterListLocationsResponse--; |
| 583 } | 583 } |
| 584 | 584 |
| 585 buildUnnamed3373() { | 585 buildUnnamed3501() { |
| 586 var o = new core.List<api.Module>(); | 586 var o = new core.List<api.Module>(); |
| 587 o.add(buildModule()); | 587 o.add(buildModule()); |
| 588 o.add(buildModule()); | 588 o.add(buildModule()); |
| 589 return o; | 589 return o; |
| 590 } | 590 } |
| 591 | 591 |
| 592 checkUnnamed3373(core.List<api.Module> o) { | 592 checkUnnamed3501(core.List<api.Module> o) { |
| 593 unittest.expect(o, unittest.hasLength(2)); | 593 unittest.expect(o, unittest.hasLength(2)); |
| 594 checkModule(o[0]); | 594 checkModule(o[0]); |
| 595 checkModule(o[1]); | 595 checkModule(o[1]); |
| 596 } | 596 } |
| 597 | 597 |
| 598 core.int buildCounterListModulesResponse = 0; | 598 core.int buildCounterListModulesResponse = 0; |
| 599 buildListModulesResponse() { | 599 buildListModulesResponse() { |
| 600 var o = new api.ListModulesResponse(); | 600 var o = new api.ListModulesResponse(); |
| 601 buildCounterListModulesResponse++; | 601 buildCounterListModulesResponse++; |
| 602 if (buildCounterListModulesResponse < 3) { | 602 if (buildCounterListModulesResponse < 3) { |
| 603 o.modules = buildUnnamed3373(); | 603 o.modules = buildUnnamed3501(); |
| 604 o.nextPageToken = "foo"; | 604 o.nextPageToken = "foo"; |
| 605 } | 605 } |
| 606 buildCounterListModulesResponse--; | 606 buildCounterListModulesResponse--; |
| 607 return o; | 607 return o; |
| 608 } | 608 } |
| 609 | 609 |
| 610 checkListModulesResponse(api.ListModulesResponse o) { | 610 checkListModulesResponse(api.ListModulesResponse o) { |
| 611 buildCounterListModulesResponse++; | 611 buildCounterListModulesResponse++; |
| 612 if (buildCounterListModulesResponse < 3) { | 612 if (buildCounterListModulesResponse < 3) { |
| 613 checkUnnamed3373(o.modules); | 613 checkUnnamed3501(o.modules); |
| 614 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 614 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 615 } | 615 } |
| 616 buildCounterListModulesResponse--; | 616 buildCounterListModulesResponse--; |
| 617 } | 617 } |
| 618 | 618 |
| 619 buildUnnamed3374() { | 619 buildUnnamed3502() { |
| 620 var o = new core.List<api.Operation>(); | 620 var o = new core.List<api.Operation>(); |
| 621 o.add(buildOperation()); | 621 o.add(buildOperation()); |
| 622 o.add(buildOperation()); | 622 o.add(buildOperation()); |
| 623 return o; | 623 return o; |
| 624 } | 624 } |
| 625 | 625 |
| 626 checkUnnamed3374(core.List<api.Operation> o) { | 626 checkUnnamed3502(core.List<api.Operation> o) { |
| 627 unittest.expect(o, unittest.hasLength(2)); | 627 unittest.expect(o, unittest.hasLength(2)); |
| 628 checkOperation(o[0]); | 628 checkOperation(o[0]); |
| 629 checkOperation(o[1]); | 629 checkOperation(o[1]); |
| 630 } | 630 } |
| 631 | 631 |
| 632 core.int buildCounterListOperationsResponse = 0; | 632 core.int buildCounterListOperationsResponse = 0; |
| 633 buildListOperationsResponse() { | 633 buildListOperationsResponse() { |
| 634 var o = new api.ListOperationsResponse(); | 634 var o = new api.ListOperationsResponse(); |
| 635 buildCounterListOperationsResponse++; | 635 buildCounterListOperationsResponse++; |
| 636 if (buildCounterListOperationsResponse < 3) { | 636 if (buildCounterListOperationsResponse < 3) { |
| 637 o.nextPageToken = "foo"; | 637 o.nextPageToken = "foo"; |
| 638 o.operations = buildUnnamed3374(); | 638 o.operations = buildUnnamed3502(); |
| 639 } | 639 } |
| 640 buildCounterListOperationsResponse--; | 640 buildCounterListOperationsResponse--; |
| 641 return o; | 641 return o; |
| 642 } | 642 } |
| 643 | 643 |
| 644 checkListOperationsResponse(api.ListOperationsResponse o) { | 644 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 645 buildCounterListOperationsResponse++; | 645 buildCounterListOperationsResponse++; |
| 646 if (buildCounterListOperationsResponse < 3) { | 646 if (buildCounterListOperationsResponse < 3) { |
| 647 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 647 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 648 checkUnnamed3374(o.operations); | 648 checkUnnamed3502(o.operations); |
| 649 } | 649 } |
| 650 buildCounterListOperationsResponse--; | 650 buildCounterListOperationsResponse--; |
| 651 } | 651 } |
| 652 | 652 |
| 653 buildUnnamed3375() { | 653 buildUnnamed3503() { |
| 654 var o = new core.List<api.Version>(); | 654 var o = new core.List<api.Version>(); |
| 655 o.add(buildVersion()); | 655 o.add(buildVersion()); |
| 656 o.add(buildVersion()); | 656 o.add(buildVersion()); |
| 657 return o; | 657 return o; |
| 658 } | 658 } |
| 659 | 659 |
| 660 checkUnnamed3375(core.List<api.Version> o) { | 660 checkUnnamed3503(core.List<api.Version> o) { |
| 661 unittest.expect(o, unittest.hasLength(2)); | 661 unittest.expect(o, unittest.hasLength(2)); |
| 662 checkVersion(o[0]); | 662 checkVersion(o[0]); |
| 663 checkVersion(o[1]); | 663 checkVersion(o[1]); |
| 664 } | 664 } |
| 665 | 665 |
| 666 core.int buildCounterListVersionsResponse = 0; | 666 core.int buildCounterListVersionsResponse = 0; |
| 667 buildListVersionsResponse() { | 667 buildListVersionsResponse() { |
| 668 var o = new api.ListVersionsResponse(); | 668 var o = new api.ListVersionsResponse(); |
| 669 buildCounterListVersionsResponse++; | 669 buildCounterListVersionsResponse++; |
| 670 if (buildCounterListVersionsResponse < 3) { | 670 if (buildCounterListVersionsResponse < 3) { |
| 671 o.nextPageToken = "foo"; | 671 o.nextPageToken = "foo"; |
| 672 o.versions = buildUnnamed3375(); | 672 o.versions = buildUnnamed3503(); |
| 673 } | 673 } |
| 674 buildCounterListVersionsResponse--; | 674 buildCounterListVersionsResponse--; |
| 675 return o; | 675 return o; |
| 676 } | 676 } |
| 677 | 677 |
| 678 checkListVersionsResponse(api.ListVersionsResponse o) { | 678 checkListVersionsResponse(api.ListVersionsResponse o) { |
| 679 buildCounterListVersionsResponse++; | 679 buildCounterListVersionsResponse++; |
| 680 if (buildCounterListVersionsResponse < 3) { | 680 if (buildCounterListVersionsResponse < 3) { |
| 681 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 681 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 682 checkUnnamed3375(o.versions); | 682 checkUnnamed3503(o.versions); |
| 683 } | 683 } |
| 684 buildCounterListVersionsResponse--; | 684 buildCounterListVersionsResponse--; |
| 685 } | 685 } |
| 686 | 686 |
| 687 buildUnnamed3376() { | 687 buildUnnamed3504() { |
| 688 var o = new core.Map<core.String, core.String>(); | 688 var o = new core.Map<core.String, core.String>(); |
| 689 o["x"] = "foo"; | 689 o["x"] = "foo"; |
| 690 o["y"] = "foo"; | 690 o["y"] = "foo"; |
| 691 return o; | 691 return o; |
| 692 } | 692 } |
| 693 | 693 |
| 694 checkUnnamed3376(core.Map<core.String, core.String> o) { | 694 checkUnnamed3504(core.Map<core.String, core.String> o) { |
| 695 unittest.expect(o, unittest.hasLength(2)); | 695 unittest.expect(o, unittest.hasLength(2)); |
| 696 unittest.expect(o["x"], unittest.equals('foo')); | 696 unittest.expect(o["x"], unittest.equals('foo')); |
| 697 unittest.expect(o["y"], unittest.equals('foo')); | 697 unittest.expect(o["y"], unittest.equals('foo')); |
| 698 } | 698 } |
| 699 | 699 |
| 700 buildUnnamed3377() { | 700 buildUnnamed3505() { |
| 701 var o = new core.Map<core.String, core.Object>(); | 701 var o = new core.Map<core.String, core.Object>(); |
| 702 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 702 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 703 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 703 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 704 return o; | 704 return o; |
| 705 } | 705 } |
| 706 | 706 |
| 707 checkUnnamed3377(core.Map<core.String, core.Object> o) { | 707 checkUnnamed3505(core.Map<core.String, core.Object> o) { |
| 708 unittest.expect(o, unittest.hasLength(2)); | 708 unittest.expect(o, unittest.hasLength(2)); |
| 709 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 709 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
| 710 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 710 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
| 711 } | 711 } |
| 712 | 712 |
| 713 core.int buildCounterLocation = 0; | 713 core.int buildCounterLocation = 0; |
| 714 buildLocation() { | 714 buildLocation() { |
| 715 var o = new api.Location(); | 715 var o = new api.Location(); |
| 716 buildCounterLocation++; | 716 buildCounterLocation++; |
| 717 if (buildCounterLocation < 3) { | 717 if (buildCounterLocation < 3) { |
| 718 o.labels = buildUnnamed3376(); | 718 o.labels = buildUnnamed3504(); |
| 719 o.locationId = "foo"; | 719 o.locationId = "foo"; |
| 720 o.metadata = buildUnnamed3377(); | 720 o.metadata = buildUnnamed3505(); |
| 721 o.name = "foo"; | 721 o.name = "foo"; |
| 722 } | 722 } |
| 723 buildCounterLocation--; | 723 buildCounterLocation--; |
| 724 return o; | 724 return o; |
| 725 } | 725 } |
| 726 | 726 |
| 727 checkLocation(api.Location o) { | 727 checkLocation(api.Location o) { |
| 728 buildCounterLocation++; | 728 buildCounterLocation++; |
| 729 if (buildCounterLocation < 3) { | 729 if (buildCounterLocation < 3) { |
| 730 checkUnnamed3376(o.labels); | 730 checkUnnamed3504(o.labels); |
| 731 unittest.expect(o.locationId, unittest.equals('foo')); | 731 unittest.expect(o.locationId, unittest.equals('foo')); |
| 732 checkUnnamed3377(o.metadata); | 732 checkUnnamed3505(o.metadata); |
| 733 unittest.expect(o.name, unittest.equals('foo')); | 733 unittest.expect(o.name, unittest.equals('foo')); |
| 734 } | 734 } |
| 735 buildCounterLocation--; | 735 buildCounterLocation--; |
| 736 } | 736 } |
| 737 | 737 |
| 738 core.int buildCounterLocationMetadata = 0; | 738 core.int buildCounterLocationMetadata = 0; |
| 739 buildLocationMetadata() { | 739 buildLocationMetadata() { |
| 740 var o = new api.LocationMetadata(); | 740 var o = new api.LocationMetadata(); |
| 741 buildCounterLocationMetadata++; | 741 buildCounterLocationMetadata++; |
| 742 if (buildCounterLocationMetadata < 3) { | 742 if (buildCounterLocationMetadata < 3) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 checkModule(api.Module o) { | 791 checkModule(api.Module o) { |
| 792 buildCounterModule++; | 792 buildCounterModule++; |
| 793 if (buildCounterModule < 3) { | 793 if (buildCounterModule < 3) { |
| 794 unittest.expect(o.id, unittest.equals('foo')); | 794 unittest.expect(o.id, unittest.equals('foo')); |
| 795 unittest.expect(o.name, unittest.equals('foo')); | 795 unittest.expect(o.name, unittest.equals('foo')); |
| 796 checkTrafficSplit(o.split); | 796 checkTrafficSplit(o.split); |
| 797 } | 797 } |
| 798 buildCounterModule--; | 798 buildCounterModule--; |
| 799 } | 799 } |
| 800 | 800 |
| 801 buildUnnamed3378() { | 801 buildUnnamed3506() { |
| 802 var o = new core.List<core.String>(); | 802 var o = new core.List<core.String>(); |
| 803 o.add("foo"); | 803 o.add("foo"); |
| 804 o.add("foo"); | 804 o.add("foo"); |
| 805 return o; | 805 return o; |
| 806 } | 806 } |
| 807 | 807 |
| 808 checkUnnamed3378(core.List<core.String> o) { | 808 checkUnnamed3506(core.List<core.String> o) { |
| 809 unittest.expect(o, unittest.hasLength(2)); | 809 unittest.expect(o, unittest.hasLength(2)); |
| 810 unittest.expect(o[0], unittest.equals('foo')); | 810 unittest.expect(o[0], unittest.equals('foo')); |
| 811 unittest.expect(o[1], unittest.equals('foo')); | 811 unittest.expect(o[1], unittest.equals('foo')); |
| 812 } | 812 } |
| 813 | 813 |
| 814 core.int buildCounterNetwork = 0; | 814 core.int buildCounterNetwork = 0; |
| 815 buildNetwork() { | 815 buildNetwork() { |
| 816 var o = new api.Network(); | 816 var o = new api.Network(); |
| 817 buildCounterNetwork++; | 817 buildCounterNetwork++; |
| 818 if (buildCounterNetwork < 3) { | 818 if (buildCounterNetwork < 3) { |
| 819 o.forwardedPorts = buildUnnamed3378(); | 819 o.forwardedPorts = buildUnnamed3506(); |
| 820 o.instanceTag = "foo"; | 820 o.instanceTag = "foo"; |
| 821 o.name = "foo"; | 821 o.name = "foo"; |
| 822 } | 822 } |
| 823 buildCounterNetwork--; | 823 buildCounterNetwork--; |
| 824 return o; | 824 return o; |
| 825 } | 825 } |
| 826 | 826 |
| 827 checkNetwork(api.Network o) { | 827 checkNetwork(api.Network o) { |
| 828 buildCounterNetwork++; | 828 buildCounterNetwork++; |
| 829 if (buildCounterNetwork < 3) { | 829 if (buildCounterNetwork < 3) { |
| 830 checkUnnamed3378(o.forwardedPorts); | 830 checkUnnamed3506(o.forwardedPorts); |
| 831 unittest.expect(o.instanceTag, unittest.equals('foo')); | 831 unittest.expect(o.instanceTag, unittest.equals('foo')); |
| 832 unittest.expect(o.name, unittest.equals('foo')); | 832 unittest.expect(o.name, unittest.equals('foo')); |
| 833 } | 833 } |
| 834 buildCounterNetwork--; | 834 buildCounterNetwork--; |
| 835 } | 835 } |
| 836 | 836 |
| 837 core.int buildCounterNetworkUtilization = 0; | 837 core.int buildCounterNetworkUtilization = 0; |
| 838 buildNetworkUtilization() { | 838 buildNetworkUtilization() { |
| 839 var o = new api.NetworkUtilization(); | 839 var o = new api.NetworkUtilization(); |
| 840 buildCounterNetworkUtilization++; | 840 buildCounterNetworkUtilization++; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 852 buildCounterNetworkUtilization++; | 852 buildCounterNetworkUtilization++; |
| 853 if (buildCounterNetworkUtilization < 3) { | 853 if (buildCounterNetworkUtilization < 3) { |
| 854 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); | 854 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); |
| 855 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); | 855 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); |
| 856 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); | 856 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); |
| 857 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); | 857 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); |
| 858 } | 858 } |
| 859 buildCounterNetworkUtilization--; | 859 buildCounterNetworkUtilization--; |
| 860 } | 860 } |
| 861 | 861 |
| 862 buildUnnamed3379() { | 862 buildUnnamed3507() { |
| 863 var o = new core.Map<core.String, core.Object>(); | 863 var o = new core.Map<core.String, core.Object>(); |
| 864 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 864 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 865 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 865 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 866 return o; | 866 return o; |
| 867 } | 867 } |
| 868 | 868 |
| 869 checkUnnamed3379(core.Map<core.String, core.Object> o) { | 869 checkUnnamed3507(core.Map<core.String, core.Object> o) { |
| 870 unittest.expect(o, unittest.hasLength(2)); | 870 unittest.expect(o, unittest.hasLength(2)); |
| 871 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 871 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
| 872 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 872 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
| 873 } | 873 } |
| 874 | 874 |
| 875 buildUnnamed3380() { | 875 buildUnnamed3508() { |
| 876 var o = new core.Map<core.String, core.Object>(); | 876 var o = new core.Map<core.String, core.Object>(); |
| 877 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 877 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 878 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 878 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 879 return o; | 879 return o; |
| 880 } | 880 } |
| 881 | 881 |
| 882 checkUnnamed3380(core.Map<core.String, core.Object> o) { | 882 checkUnnamed3508(core.Map<core.String, core.Object> o) { |
| 883 unittest.expect(o, unittest.hasLength(2)); | 883 unittest.expect(o, unittest.hasLength(2)); |
| 884 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 884 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
| 885 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 885 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
| 886 } | 886 } |
| 887 | 887 |
| 888 core.int buildCounterOperation = 0; | 888 core.int buildCounterOperation = 0; |
| 889 buildOperation() { | 889 buildOperation() { |
| 890 var o = new api.Operation(); | 890 var o = new api.Operation(); |
| 891 buildCounterOperation++; | 891 buildCounterOperation++; |
| 892 if (buildCounterOperation < 3) { | 892 if (buildCounterOperation < 3) { |
| 893 o.done = true; | 893 o.done = true; |
| 894 o.error = buildStatus(); | 894 o.error = buildStatus(); |
| 895 o.metadata = buildUnnamed3379(); | 895 o.metadata = buildUnnamed3507(); |
| 896 o.name = "foo"; | 896 o.name = "foo"; |
| 897 o.response = buildUnnamed3380(); | 897 o.response = buildUnnamed3508(); |
| 898 } | 898 } |
| 899 buildCounterOperation--; | 899 buildCounterOperation--; |
| 900 return o; | 900 return o; |
| 901 } | 901 } |
| 902 | 902 |
| 903 checkOperation(api.Operation o) { | 903 checkOperation(api.Operation o) { |
| 904 buildCounterOperation++; | 904 buildCounterOperation++; |
| 905 if (buildCounterOperation < 3) { | 905 if (buildCounterOperation < 3) { |
| 906 unittest.expect(o.done, unittest.isTrue); | 906 unittest.expect(o.done, unittest.isTrue); |
| 907 checkStatus(o.error); | 907 checkStatus(o.error); |
| 908 checkUnnamed3379(o.metadata); | 908 checkUnnamed3507(o.metadata); |
| 909 unittest.expect(o.name, unittest.equals('foo')); | 909 unittest.expect(o.name, unittest.equals('foo')); |
| 910 checkUnnamed3380(o.response); | 910 checkUnnamed3508(o.response); |
| 911 } | 911 } |
| 912 buildCounterOperation--; | 912 buildCounterOperation--; |
| 913 } | 913 } |
| 914 | 914 |
| 915 core.int buildCounterOperationMetadata = 0; | 915 core.int buildCounterOperationMetadata = 0; |
| 916 buildOperationMetadata() { | 916 buildOperationMetadata() { |
| 917 var o = new api.OperationMetadata(); | 917 var o = new api.OperationMetadata(); |
| 918 buildCounterOperationMetadata++; | 918 buildCounterOperationMetadata++; |
| 919 if (buildCounterOperationMetadata < 3) { | 919 if (buildCounterOperationMetadata < 3) { |
| 920 o.endTime = "foo"; | 920 o.endTime = "foo"; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 if (buildCounterOperationMetadataExperimental < 3) { | 961 if (buildCounterOperationMetadataExperimental < 3) { |
| 962 unittest.expect(o.endTime, unittest.equals('foo')); | 962 unittest.expect(o.endTime, unittest.equals('foo')); |
| 963 unittest.expect(o.insertTime, unittest.equals('foo')); | 963 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 964 unittest.expect(o.method, unittest.equals('foo')); | 964 unittest.expect(o.method, unittest.equals('foo')); |
| 965 unittest.expect(o.target, unittest.equals('foo')); | 965 unittest.expect(o.target, unittest.equals('foo')); |
| 966 unittest.expect(o.user, unittest.equals('foo')); | 966 unittest.expect(o.user, unittest.equals('foo')); |
| 967 } | 967 } |
| 968 buildCounterOperationMetadataExperimental--; | 968 buildCounterOperationMetadataExperimental--; |
| 969 } | 969 } |
| 970 | 970 |
| 971 buildUnnamed3381() { | 971 buildUnnamed3509() { |
| 972 var o = new core.List<core.String>(); | 972 var o = new core.List<core.String>(); |
| 973 o.add("foo"); | 973 o.add("foo"); |
| 974 o.add("foo"); | 974 o.add("foo"); |
| 975 return o; | 975 return o; |
| 976 } | 976 } |
| 977 | 977 |
| 978 checkUnnamed3381(core.List<core.String> o) { | 978 checkUnnamed3509(core.List<core.String> o) { |
| 979 unittest.expect(o, unittest.hasLength(2)); | 979 unittest.expect(o, unittest.hasLength(2)); |
| 980 unittest.expect(o[0], unittest.equals('foo')); | 980 unittest.expect(o[0], unittest.equals('foo')); |
| 981 unittest.expect(o[1], unittest.equals('foo')); | 981 unittest.expect(o[1], unittest.equals('foo')); |
| 982 } | 982 } |
| 983 | 983 |
| 984 core.int buildCounterOperationMetadataV1 = 0; | 984 core.int buildCounterOperationMetadataV1 = 0; |
| 985 buildOperationMetadataV1() { | 985 buildOperationMetadataV1() { |
| 986 var o = new api.OperationMetadataV1(); | 986 var o = new api.OperationMetadataV1(); |
| 987 buildCounterOperationMetadataV1++; | 987 buildCounterOperationMetadataV1++; |
| 988 if (buildCounterOperationMetadataV1 < 3) { | 988 if (buildCounterOperationMetadataV1 < 3) { |
| 989 o.endTime = "foo"; | 989 o.endTime = "foo"; |
| 990 o.ephemeralMessage = "foo"; | 990 o.ephemeralMessage = "foo"; |
| 991 o.insertTime = "foo"; | 991 o.insertTime = "foo"; |
| 992 o.method = "foo"; | 992 o.method = "foo"; |
| 993 o.target = "foo"; | 993 o.target = "foo"; |
| 994 o.user = "foo"; | 994 o.user = "foo"; |
| 995 o.warning = buildUnnamed3381(); | 995 o.warning = buildUnnamed3509(); |
| 996 } | 996 } |
| 997 buildCounterOperationMetadataV1--; | 997 buildCounterOperationMetadataV1--; |
| 998 return o; | 998 return o; |
| 999 } | 999 } |
| 1000 | 1000 |
| 1001 checkOperationMetadataV1(api.OperationMetadataV1 o) { | 1001 checkOperationMetadataV1(api.OperationMetadataV1 o) { |
| 1002 buildCounterOperationMetadataV1++; | 1002 buildCounterOperationMetadataV1++; |
| 1003 if (buildCounterOperationMetadataV1 < 3) { | 1003 if (buildCounterOperationMetadataV1 < 3) { |
| 1004 unittest.expect(o.endTime, unittest.equals('foo')); | 1004 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1005 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); | 1005 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
| 1006 unittest.expect(o.insertTime, unittest.equals('foo')); | 1006 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 1007 unittest.expect(o.method, unittest.equals('foo')); | 1007 unittest.expect(o.method, unittest.equals('foo')); |
| 1008 unittest.expect(o.target, unittest.equals('foo')); | 1008 unittest.expect(o.target, unittest.equals('foo')); |
| 1009 unittest.expect(o.user, unittest.equals('foo')); | 1009 unittest.expect(o.user, unittest.equals('foo')); |
| 1010 checkUnnamed3381(o.warning); | 1010 checkUnnamed3509(o.warning); |
| 1011 } | 1011 } |
| 1012 buildCounterOperationMetadataV1--; | 1012 buildCounterOperationMetadataV1--; |
| 1013 } | 1013 } |
| 1014 | 1014 |
| 1015 buildUnnamed3382() { | 1015 buildUnnamed3510() { |
| 1016 var o = new core.List<core.String>(); | 1016 var o = new core.List<core.String>(); |
| 1017 o.add("foo"); | 1017 o.add("foo"); |
| 1018 o.add("foo"); | 1018 o.add("foo"); |
| 1019 return o; | 1019 return o; |
| 1020 } | 1020 } |
| 1021 | 1021 |
| 1022 checkUnnamed3382(core.List<core.String> o) { | 1022 checkUnnamed3510(core.List<core.String> o) { |
| 1023 unittest.expect(o, unittest.hasLength(2)); | 1023 unittest.expect(o, unittest.hasLength(2)); |
| 1024 unittest.expect(o[0], unittest.equals('foo')); | 1024 unittest.expect(o[0], unittest.equals('foo')); |
| 1025 unittest.expect(o[1], unittest.equals('foo')); | 1025 unittest.expect(o[1], unittest.equals('foo')); |
| 1026 } | 1026 } |
| 1027 | 1027 |
| 1028 core.int buildCounterOperationMetadataV1Alpha = 0; | 1028 core.int buildCounterOperationMetadataV1Alpha = 0; |
| 1029 buildOperationMetadataV1Alpha() { | 1029 buildOperationMetadataV1Alpha() { |
| 1030 var o = new api.OperationMetadataV1Alpha(); | 1030 var o = new api.OperationMetadataV1Alpha(); |
| 1031 buildCounterOperationMetadataV1Alpha++; | 1031 buildCounterOperationMetadataV1Alpha++; |
| 1032 if (buildCounterOperationMetadataV1Alpha < 3) { | 1032 if (buildCounterOperationMetadataV1Alpha < 3) { |
| 1033 o.endTime = "foo"; | 1033 o.endTime = "foo"; |
| 1034 o.ephemeralMessage = "foo"; | 1034 o.ephemeralMessage = "foo"; |
| 1035 o.insertTime = "foo"; | 1035 o.insertTime = "foo"; |
| 1036 o.method = "foo"; | 1036 o.method = "foo"; |
| 1037 o.target = "foo"; | 1037 o.target = "foo"; |
| 1038 o.user = "foo"; | 1038 o.user = "foo"; |
| 1039 o.warning = buildUnnamed3382(); | 1039 o.warning = buildUnnamed3510(); |
| 1040 } | 1040 } |
| 1041 buildCounterOperationMetadataV1Alpha--; | 1041 buildCounterOperationMetadataV1Alpha--; |
| 1042 return o; | 1042 return o; |
| 1043 } | 1043 } |
| 1044 | 1044 |
| 1045 checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) { | 1045 checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) { |
| 1046 buildCounterOperationMetadataV1Alpha++; | 1046 buildCounterOperationMetadataV1Alpha++; |
| 1047 if (buildCounterOperationMetadataV1Alpha < 3) { | 1047 if (buildCounterOperationMetadataV1Alpha < 3) { |
| 1048 unittest.expect(o.endTime, unittest.equals('foo')); | 1048 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1049 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); | 1049 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
| 1050 unittest.expect(o.insertTime, unittest.equals('foo')); | 1050 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 1051 unittest.expect(o.method, unittest.equals('foo')); | 1051 unittest.expect(o.method, unittest.equals('foo')); |
| 1052 unittest.expect(o.target, unittest.equals('foo')); | 1052 unittest.expect(o.target, unittest.equals('foo')); |
| 1053 unittest.expect(o.user, unittest.equals('foo')); | 1053 unittest.expect(o.user, unittest.equals('foo')); |
| 1054 checkUnnamed3382(o.warning); | 1054 checkUnnamed3510(o.warning); |
| 1055 } | 1055 } |
| 1056 buildCounterOperationMetadataV1Alpha--; | 1056 buildCounterOperationMetadataV1Alpha--; |
| 1057 } | 1057 } |
| 1058 | 1058 |
| 1059 buildUnnamed3383() { | 1059 buildUnnamed3511() { |
| 1060 var o = new core.List<core.String>(); | 1060 var o = new core.List<core.String>(); |
| 1061 o.add("foo"); | 1061 o.add("foo"); |
| 1062 o.add("foo"); | 1062 o.add("foo"); |
| 1063 return o; | 1063 return o; |
| 1064 } | 1064 } |
| 1065 | 1065 |
| 1066 checkUnnamed3383(core.List<core.String> o) { | 1066 checkUnnamed3511(core.List<core.String> o) { |
| 1067 unittest.expect(o, unittest.hasLength(2)); | 1067 unittest.expect(o, unittest.hasLength(2)); |
| 1068 unittest.expect(o[0], unittest.equals('foo')); | 1068 unittest.expect(o[0], unittest.equals('foo')); |
| 1069 unittest.expect(o[1], unittest.equals('foo')); | 1069 unittest.expect(o[1], unittest.equals('foo')); |
| 1070 } | 1070 } |
| 1071 | 1071 |
| 1072 core.int buildCounterOperationMetadataV1Beta = 0; | 1072 core.int buildCounterOperationMetadataV1Beta = 0; |
| 1073 buildOperationMetadataV1Beta() { | 1073 buildOperationMetadataV1Beta() { |
| 1074 var o = new api.OperationMetadataV1Beta(); | 1074 var o = new api.OperationMetadataV1Beta(); |
| 1075 buildCounterOperationMetadataV1Beta++; | 1075 buildCounterOperationMetadataV1Beta++; |
| 1076 if (buildCounterOperationMetadataV1Beta < 3) { | 1076 if (buildCounterOperationMetadataV1Beta < 3) { |
| 1077 o.endTime = "foo"; | 1077 o.endTime = "foo"; |
| 1078 o.ephemeralMessage = "foo"; | 1078 o.ephemeralMessage = "foo"; |
| 1079 o.insertTime = "foo"; | 1079 o.insertTime = "foo"; |
| 1080 o.method = "foo"; | 1080 o.method = "foo"; |
| 1081 o.target = "foo"; | 1081 o.target = "foo"; |
| 1082 o.user = "foo"; | 1082 o.user = "foo"; |
| 1083 o.warning = buildUnnamed3383(); | 1083 o.warning = buildUnnamed3511(); |
| 1084 } | 1084 } |
| 1085 buildCounterOperationMetadataV1Beta--; | 1085 buildCounterOperationMetadataV1Beta--; |
| 1086 return o; | 1086 return o; |
| 1087 } | 1087 } |
| 1088 | 1088 |
| 1089 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { | 1089 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { |
| 1090 buildCounterOperationMetadataV1Beta++; | 1090 buildCounterOperationMetadataV1Beta++; |
| 1091 if (buildCounterOperationMetadataV1Beta < 3) { | 1091 if (buildCounterOperationMetadataV1Beta < 3) { |
| 1092 unittest.expect(o.endTime, unittest.equals('foo')); | 1092 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1093 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); | 1093 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
| 1094 unittest.expect(o.insertTime, unittest.equals('foo')); | 1094 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 1095 unittest.expect(o.method, unittest.equals('foo')); | 1095 unittest.expect(o.method, unittest.equals('foo')); |
| 1096 unittest.expect(o.target, unittest.equals('foo')); | 1096 unittest.expect(o.target, unittest.equals('foo')); |
| 1097 unittest.expect(o.user, unittest.equals('foo')); | 1097 unittest.expect(o.user, unittest.equals('foo')); |
| 1098 checkUnnamed3383(o.warning); | 1098 checkUnnamed3511(o.warning); |
| 1099 } | 1099 } |
| 1100 buildCounterOperationMetadataV1Beta--; | 1100 buildCounterOperationMetadataV1Beta--; |
| 1101 } | 1101 } |
| 1102 | 1102 |
| 1103 core.int buildCounterOperationMetadataV1Beta5 = 0; | 1103 core.int buildCounterOperationMetadataV1Beta5 = 0; |
| 1104 buildOperationMetadataV1Beta5() { | 1104 buildOperationMetadataV1Beta5() { |
| 1105 var o = new api.OperationMetadataV1Beta5(); | 1105 var o = new api.OperationMetadataV1Beta5(); |
| 1106 buildCounterOperationMetadataV1Beta5++; | 1106 buildCounterOperationMetadataV1Beta5++; |
| 1107 if (buildCounterOperationMetadataV1Beta5 < 3) { | 1107 if (buildCounterOperationMetadataV1Beta5 < 3) { |
| 1108 o.endTime = "foo"; | 1108 o.endTime = "foo"; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1141 | 1141 |
| 1142 checkRequestUtilization(api.RequestUtilization o) { | 1142 checkRequestUtilization(api.RequestUtilization o) { |
| 1143 buildCounterRequestUtilization++; | 1143 buildCounterRequestUtilization++; |
| 1144 if (buildCounterRequestUtilization < 3) { | 1144 if (buildCounterRequestUtilization < 3) { |
| 1145 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); | 1145 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); |
| 1146 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); | 1146 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); |
| 1147 } | 1147 } |
| 1148 buildCounterRequestUtilization--; | 1148 buildCounterRequestUtilization--; |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 buildUnnamed3384() { | 1151 buildUnnamed3512() { |
| 1152 var o = new core.List<api.Volume>(); | 1152 var o = new core.List<api.Volume>(); |
| 1153 o.add(buildVolume()); | 1153 o.add(buildVolume()); |
| 1154 o.add(buildVolume()); | 1154 o.add(buildVolume()); |
| 1155 return o; | 1155 return o; |
| 1156 } | 1156 } |
| 1157 | 1157 |
| 1158 checkUnnamed3384(core.List<api.Volume> o) { | 1158 checkUnnamed3512(core.List<api.Volume> o) { |
| 1159 unittest.expect(o, unittest.hasLength(2)); | 1159 unittest.expect(o, unittest.hasLength(2)); |
| 1160 checkVolume(o[0]); | 1160 checkVolume(o[0]); |
| 1161 checkVolume(o[1]); | 1161 checkVolume(o[1]); |
| 1162 } | 1162 } |
| 1163 | 1163 |
| 1164 core.int buildCounterResources = 0; | 1164 core.int buildCounterResources = 0; |
| 1165 buildResources() { | 1165 buildResources() { |
| 1166 var o = new api.Resources(); | 1166 var o = new api.Resources(); |
| 1167 buildCounterResources++; | 1167 buildCounterResources++; |
| 1168 if (buildCounterResources < 3) { | 1168 if (buildCounterResources < 3) { |
| 1169 o.cpu = 42.0; | 1169 o.cpu = 42.0; |
| 1170 o.diskGb = 42.0; | 1170 o.diskGb = 42.0; |
| 1171 o.memoryGb = 42.0; | 1171 o.memoryGb = 42.0; |
| 1172 o.volumes = buildUnnamed3384(); | 1172 o.volumes = buildUnnamed3512(); |
| 1173 } | 1173 } |
| 1174 buildCounterResources--; | 1174 buildCounterResources--; |
| 1175 return o; | 1175 return o; |
| 1176 } | 1176 } |
| 1177 | 1177 |
| 1178 checkResources(api.Resources o) { | 1178 checkResources(api.Resources o) { |
| 1179 buildCounterResources++; | 1179 buildCounterResources++; |
| 1180 if (buildCounterResources < 3) { | 1180 if (buildCounterResources < 3) { |
| 1181 unittest.expect(o.cpu, unittest.equals(42.0)); | 1181 unittest.expect(o.cpu, unittest.equals(42.0)); |
| 1182 unittest.expect(o.diskGb, unittest.equals(42.0)); | 1182 unittest.expect(o.diskGb, unittest.equals(42.0)); |
| 1183 unittest.expect(o.memoryGb, unittest.equals(42.0)); | 1183 unittest.expect(o.memoryGb, unittest.equals(42.0)); |
| 1184 checkUnnamed3384(o.volumes); | 1184 checkUnnamed3512(o.volumes); |
| 1185 } | 1185 } |
| 1186 buildCounterResources--; | 1186 buildCounterResources--; |
| 1187 } | 1187 } |
| 1188 | 1188 |
| 1189 core.int buildCounterScriptHandler = 0; | 1189 core.int buildCounterScriptHandler = 0; |
| 1190 buildScriptHandler() { | 1190 buildScriptHandler() { |
| 1191 var o = new api.ScriptHandler(); | 1191 var o = new api.ScriptHandler(); |
| 1192 buildCounterScriptHandler++; | 1192 buildCounterScriptHandler++; |
| 1193 if (buildCounterScriptHandler < 3) { | 1193 if (buildCounterScriptHandler < 3) { |
| 1194 o.scriptPath = "foo"; | 1194 o.scriptPath = "foo"; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1219 | 1219 |
| 1220 checkSourceReference(api.SourceReference o) { | 1220 checkSourceReference(api.SourceReference o) { |
| 1221 buildCounterSourceReference++; | 1221 buildCounterSourceReference++; |
| 1222 if (buildCounterSourceReference < 3) { | 1222 if (buildCounterSourceReference < 3) { |
| 1223 unittest.expect(o.repository, unittest.equals('foo')); | 1223 unittest.expect(o.repository, unittest.equals('foo')); |
| 1224 unittest.expect(o.revisionId, unittest.equals('foo')); | 1224 unittest.expect(o.revisionId, unittest.equals('foo')); |
| 1225 } | 1225 } |
| 1226 buildCounterSourceReference--; | 1226 buildCounterSourceReference--; |
| 1227 } | 1227 } |
| 1228 | 1228 |
| 1229 buildUnnamed3385() { | 1229 buildUnnamed3513() { |
| 1230 var o = new core.Map<core.String, core.String>(); | 1230 var o = new core.Map<core.String, core.String>(); |
| 1231 o["x"] = "foo"; | 1231 o["x"] = "foo"; |
| 1232 o["y"] = "foo"; | 1232 o["y"] = "foo"; |
| 1233 return o; | 1233 return o; |
| 1234 } | 1234 } |
| 1235 | 1235 |
| 1236 checkUnnamed3385(core.Map<core.String, core.String> o) { | 1236 checkUnnamed3513(core.Map<core.String, core.String> o) { |
| 1237 unittest.expect(o, unittest.hasLength(2)); | 1237 unittest.expect(o, unittest.hasLength(2)); |
| 1238 unittest.expect(o["x"], unittest.equals('foo')); | 1238 unittest.expect(o["x"], unittest.equals('foo')); |
| 1239 unittest.expect(o["y"], unittest.equals('foo')); | 1239 unittest.expect(o["y"], unittest.equals('foo')); |
| 1240 } | 1240 } |
| 1241 | 1241 |
| 1242 core.int buildCounterStaticDirectoryHandler = 0; | 1242 core.int buildCounterStaticDirectoryHandler = 0; |
| 1243 buildStaticDirectoryHandler() { | 1243 buildStaticDirectoryHandler() { |
| 1244 var o = new api.StaticDirectoryHandler(); | 1244 var o = new api.StaticDirectoryHandler(); |
| 1245 buildCounterStaticDirectoryHandler++; | 1245 buildCounterStaticDirectoryHandler++; |
| 1246 if (buildCounterStaticDirectoryHandler < 3) { | 1246 if (buildCounterStaticDirectoryHandler < 3) { |
| 1247 o.applicationReadable = true; | 1247 o.applicationReadable = true; |
| 1248 o.directory = "foo"; | 1248 o.directory = "foo"; |
| 1249 o.expiration = "foo"; | 1249 o.expiration = "foo"; |
| 1250 o.httpHeaders = buildUnnamed3385(); | 1250 o.httpHeaders = buildUnnamed3513(); |
| 1251 o.mimeType = "foo"; | 1251 o.mimeType = "foo"; |
| 1252 o.requireMatchingFile = true; | 1252 o.requireMatchingFile = true; |
| 1253 } | 1253 } |
| 1254 buildCounterStaticDirectoryHandler--; | 1254 buildCounterStaticDirectoryHandler--; |
| 1255 return o; | 1255 return o; |
| 1256 } | 1256 } |
| 1257 | 1257 |
| 1258 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { | 1258 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { |
| 1259 buildCounterStaticDirectoryHandler++; | 1259 buildCounterStaticDirectoryHandler++; |
| 1260 if (buildCounterStaticDirectoryHandler < 3) { | 1260 if (buildCounterStaticDirectoryHandler < 3) { |
| 1261 unittest.expect(o.applicationReadable, unittest.isTrue); | 1261 unittest.expect(o.applicationReadable, unittest.isTrue); |
| 1262 unittest.expect(o.directory, unittest.equals('foo')); | 1262 unittest.expect(o.directory, unittest.equals('foo')); |
| 1263 unittest.expect(o.expiration, unittest.equals('foo')); | 1263 unittest.expect(o.expiration, unittest.equals('foo')); |
| 1264 checkUnnamed3385(o.httpHeaders); | 1264 checkUnnamed3513(o.httpHeaders); |
| 1265 unittest.expect(o.mimeType, unittest.equals('foo')); | 1265 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 1266 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1266 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
| 1267 } | 1267 } |
| 1268 buildCounterStaticDirectoryHandler--; | 1268 buildCounterStaticDirectoryHandler--; |
| 1269 } | 1269 } |
| 1270 | 1270 |
| 1271 buildUnnamed3386() { | 1271 buildUnnamed3514() { |
| 1272 var o = new core.Map<core.String, core.String>(); | 1272 var o = new core.Map<core.String, core.String>(); |
| 1273 o["x"] = "foo"; | 1273 o["x"] = "foo"; |
| 1274 o["y"] = "foo"; | 1274 o["y"] = "foo"; |
| 1275 return o; | 1275 return o; |
| 1276 } | 1276 } |
| 1277 | 1277 |
| 1278 checkUnnamed3386(core.Map<core.String, core.String> o) { | 1278 checkUnnamed3514(core.Map<core.String, core.String> o) { |
| 1279 unittest.expect(o, unittest.hasLength(2)); | 1279 unittest.expect(o, unittest.hasLength(2)); |
| 1280 unittest.expect(o["x"], unittest.equals('foo')); | 1280 unittest.expect(o["x"], unittest.equals('foo')); |
| 1281 unittest.expect(o["y"], unittest.equals('foo')); | 1281 unittest.expect(o["y"], unittest.equals('foo')); |
| 1282 } | 1282 } |
| 1283 | 1283 |
| 1284 core.int buildCounterStaticFilesHandler = 0; | 1284 core.int buildCounterStaticFilesHandler = 0; |
| 1285 buildStaticFilesHandler() { | 1285 buildStaticFilesHandler() { |
| 1286 var o = new api.StaticFilesHandler(); | 1286 var o = new api.StaticFilesHandler(); |
| 1287 buildCounterStaticFilesHandler++; | 1287 buildCounterStaticFilesHandler++; |
| 1288 if (buildCounterStaticFilesHandler < 3) { | 1288 if (buildCounterStaticFilesHandler < 3) { |
| 1289 o.applicationReadable = true; | 1289 o.applicationReadable = true; |
| 1290 o.expiration = "foo"; | 1290 o.expiration = "foo"; |
| 1291 o.httpHeaders = buildUnnamed3386(); | 1291 o.httpHeaders = buildUnnamed3514(); |
| 1292 o.mimeType = "foo"; | 1292 o.mimeType = "foo"; |
| 1293 o.path = "foo"; | 1293 o.path = "foo"; |
| 1294 o.requireMatchingFile = true; | 1294 o.requireMatchingFile = true; |
| 1295 o.uploadPathRegex = "foo"; | 1295 o.uploadPathRegex = "foo"; |
| 1296 } | 1296 } |
| 1297 buildCounterStaticFilesHandler--; | 1297 buildCounterStaticFilesHandler--; |
| 1298 return o; | 1298 return o; |
| 1299 } | 1299 } |
| 1300 | 1300 |
| 1301 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1301 checkStaticFilesHandler(api.StaticFilesHandler o) { |
| 1302 buildCounterStaticFilesHandler++; | 1302 buildCounterStaticFilesHandler++; |
| 1303 if (buildCounterStaticFilesHandler < 3) { | 1303 if (buildCounterStaticFilesHandler < 3) { |
| 1304 unittest.expect(o.applicationReadable, unittest.isTrue); | 1304 unittest.expect(o.applicationReadable, unittest.isTrue); |
| 1305 unittest.expect(o.expiration, unittest.equals('foo')); | 1305 unittest.expect(o.expiration, unittest.equals('foo')); |
| 1306 checkUnnamed3386(o.httpHeaders); | 1306 checkUnnamed3514(o.httpHeaders); |
| 1307 unittest.expect(o.mimeType, unittest.equals('foo')); | 1307 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 1308 unittest.expect(o.path, unittest.equals('foo')); | 1308 unittest.expect(o.path, unittest.equals('foo')); |
| 1309 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1309 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
| 1310 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1310 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
| 1311 } | 1311 } |
| 1312 buildCounterStaticFilesHandler--; | 1312 buildCounterStaticFilesHandler--; |
| 1313 } | 1313 } |
| 1314 | 1314 |
| 1315 buildUnnamed3387() { | 1315 buildUnnamed3515() { |
| 1316 var o = new core.Map<core.String, core.Object>(); | 1316 var o = new core.Map<core.String, core.Object>(); |
| 1317 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1317 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1318 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1318 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1319 return o; | 1319 return o; |
| 1320 } | 1320 } |
| 1321 | 1321 |
| 1322 checkUnnamed3387(core.Map<core.String, core.Object> o) { | 1322 checkUnnamed3515(core.Map<core.String, core.Object> o) { |
| 1323 unittest.expect(o, unittest.hasLength(2)); | 1323 unittest.expect(o, unittest.hasLength(2)); |
| 1324 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); | 1324 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
| 1325 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); | 1325 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
| 1326 } | 1326 } |
| 1327 | 1327 |
| 1328 buildUnnamed3388() { | 1328 buildUnnamed3516() { |
| 1329 var o = new core.List<core.Map<core.String, core.Object>>(); | 1329 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1330 o.add(buildUnnamed3387()); | 1330 o.add(buildUnnamed3515()); |
| 1331 o.add(buildUnnamed3387()); | 1331 o.add(buildUnnamed3515()); |
| 1332 return o; | 1332 return o; |
| 1333 } | 1333 } |
| 1334 | 1334 |
| 1335 checkUnnamed3388(core.List<core.Map<core.String, core.Object>> o) { | 1335 checkUnnamed3516(core.List<core.Map<core.String, core.Object>> o) { |
| 1336 unittest.expect(o, unittest.hasLength(2)); | 1336 unittest.expect(o, unittest.hasLength(2)); |
| 1337 checkUnnamed3387(o[0]); | 1337 checkUnnamed3515(o[0]); |
| 1338 checkUnnamed3387(o[1]); | 1338 checkUnnamed3515(o[1]); |
| 1339 } | 1339 } |
| 1340 | 1340 |
| 1341 core.int buildCounterStatus = 0; | 1341 core.int buildCounterStatus = 0; |
| 1342 buildStatus() { | 1342 buildStatus() { |
| 1343 var o = new api.Status(); | 1343 var o = new api.Status(); |
| 1344 buildCounterStatus++; | 1344 buildCounterStatus++; |
| 1345 if (buildCounterStatus < 3) { | 1345 if (buildCounterStatus < 3) { |
| 1346 o.code = 42; | 1346 o.code = 42; |
| 1347 o.details = buildUnnamed3388(); | 1347 o.details = buildUnnamed3516(); |
| 1348 o.message = "foo"; | 1348 o.message = "foo"; |
| 1349 } | 1349 } |
| 1350 buildCounterStatus--; | 1350 buildCounterStatus--; |
| 1351 return o; | 1351 return o; |
| 1352 } | 1352 } |
| 1353 | 1353 |
| 1354 checkStatus(api.Status o) { | 1354 checkStatus(api.Status o) { |
| 1355 buildCounterStatus++; | 1355 buildCounterStatus++; |
| 1356 if (buildCounterStatus < 3) { | 1356 if (buildCounterStatus < 3) { |
| 1357 unittest.expect(o.code, unittest.equals(42)); | 1357 unittest.expect(o.code, unittest.equals(42)); |
| 1358 checkUnnamed3388(o.details); | 1358 checkUnnamed3516(o.details); |
| 1359 unittest.expect(o.message, unittest.equals('foo')); | 1359 unittest.expect(o.message, unittest.equals('foo')); |
| 1360 } | 1360 } |
| 1361 buildCounterStatus--; | 1361 buildCounterStatus--; |
| 1362 } | 1362 } |
| 1363 | 1363 |
| 1364 buildUnnamed3389() { | 1364 buildUnnamed3517() { |
| 1365 var o = new core.Map<core.String, core.double>(); | 1365 var o = new core.Map<core.String, core.double>(); |
| 1366 o["x"] = 42.0; | 1366 o["x"] = 42.0; |
| 1367 o["y"] = 42.0; | 1367 o["y"] = 42.0; |
| 1368 return o; | 1368 return o; |
| 1369 } | 1369 } |
| 1370 | 1370 |
| 1371 checkUnnamed3389(core.Map<core.String, core.double> o) { | 1371 checkUnnamed3517(core.Map<core.String, core.double> o) { |
| 1372 unittest.expect(o, unittest.hasLength(2)); | 1372 unittest.expect(o, unittest.hasLength(2)); |
| 1373 unittest.expect(o["x"], unittest.equals(42.0)); | 1373 unittest.expect(o["x"], unittest.equals(42.0)); |
| 1374 unittest.expect(o["y"], unittest.equals(42.0)); | 1374 unittest.expect(o["y"], unittest.equals(42.0)); |
| 1375 } | 1375 } |
| 1376 | 1376 |
| 1377 core.int buildCounterTrafficSplit = 0; | 1377 core.int buildCounterTrafficSplit = 0; |
| 1378 buildTrafficSplit() { | 1378 buildTrafficSplit() { |
| 1379 var o = new api.TrafficSplit(); | 1379 var o = new api.TrafficSplit(); |
| 1380 buildCounterTrafficSplit++; | 1380 buildCounterTrafficSplit++; |
| 1381 if (buildCounterTrafficSplit < 3) { | 1381 if (buildCounterTrafficSplit < 3) { |
| 1382 o.allocations = buildUnnamed3389(); | 1382 o.allocations = buildUnnamed3517(); |
| 1383 o.shardBy = "foo"; | 1383 o.shardBy = "foo"; |
| 1384 } | 1384 } |
| 1385 buildCounterTrafficSplit--; | 1385 buildCounterTrafficSplit--; |
| 1386 return o; | 1386 return o; |
| 1387 } | 1387 } |
| 1388 | 1388 |
| 1389 checkTrafficSplit(api.TrafficSplit o) { | 1389 checkTrafficSplit(api.TrafficSplit o) { |
| 1390 buildCounterTrafficSplit++; | 1390 buildCounterTrafficSplit++; |
| 1391 if (buildCounterTrafficSplit < 3) { | 1391 if (buildCounterTrafficSplit < 3) { |
| 1392 checkUnnamed3389(o.allocations); | 1392 checkUnnamed3517(o.allocations); |
| 1393 unittest.expect(o.shardBy, unittest.equals('foo')); | 1393 unittest.expect(o.shardBy, unittest.equals('foo')); |
| 1394 } | 1394 } |
| 1395 buildCounterTrafficSplit--; | 1395 buildCounterTrafficSplit--; |
| 1396 } | 1396 } |
| 1397 | 1397 |
| 1398 core.int buildCounterUrlDispatchRule = 0; | 1398 core.int buildCounterUrlDispatchRule = 0; |
| 1399 buildUrlDispatchRule() { | 1399 buildUrlDispatchRule() { |
| 1400 var o = new api.UrlDispatchRule(); | 1400 var o = new api.UrlDispatchRule(); |
| 1401 buildCounterUrlDispatchRule++; | 1401 buildCounterUrlDispatchRule++; |
| 1402 if (buildCounterUrlDispatchRule < 3) { | 1402 if (buildCounterUrlDispatchRule < 3) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1446 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
| 1447 checkScriptHandler(o.script); | 1447 checkScriptHandler(o.script); |
| 1448 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1448 unittest.expect(o.securityLevel, unittest.equals('foo')); |
| 1449 checkStaticDirectoryHandler(o.staticDirectory); | 1449 checkStaticDirectoryHandler(o.staticDirectory); |
| 1450 checkStaticFilesHandler(o.staticFiles); | 1450 checkStaticFilesHandler(o.staticFiles); |
| 1451 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1451 unittest.expect(o.urlRegex, unittest.equals('foo')); |
| 1452 } | 1452 } |
| 1453 buildCounterUrlMap--; | 1453 buildCounterUrlMap--; |
| 1454 } | 1454 } |
| 1455 | 1455 |
| 1456 buildUnnamed3390() { | 1456 buildUnnamed3518() { |
| 1457 var o = new core.Map<core.String, core.String>(); | 1457 var o = new core.Map<core.String, core.String>(); |
| 1458 o["x"] = "foo"; | 1458 o["x"] = "foo"; |
| 1459 o["y"] = "foo"; | 1459 o["y"] = "foo"; |
| 1460 return o; | 1460 return o; |
| 1461 } | 1461 } |
| 1462 | 1462 |
| 1463 checkUnnamed3390(core.Map<core.String, core.String> o) { | 1463 checkUnnamed3518(core.Map<core.String, core.String> o) { |
| 1464 unittest.expect(o, unittest.hasLength(2)); | 1464 unittest.expect(o, unittest.hasLength(2)); |
| 1465 unittest.expect(o["x"], unittest.equals('foo')); | 1465 unittest.expect(o["x"], unittest.equals('foo')); |
| 1466 unittest.expect(o["y"], unittest.equals('foo')); | 1466 unittest.expect(o["y"], unittest.equals('foo')); |
| 1467 } | 1467 } |
| 1468 | 1468 |
| 1469 buildUnnamed3391() { | 1469 buildUnnamed3519() { |
| 1470 var o = new core.Map<core.String, core.String>(); | 1470 var o = new core.Map<core.String, core.String>(); |
| 1471 o["x"] = "foo"; | 1471 o["x"] = "foo"; |
| 1472 o["y"] = "foo"; | 1472 o["y"] = "foo"; |
| 1473 return o; | 1473 return o; |
| 1474 } | 1474 } |
| 1475 | 1475 |
| 1476 checkUnnamed3391(core.Map<core.String, core.String> o) { | 1476 checkUnnamed3519(core.Map<core.String, core.String> o) { |
| 1477 unittest.expect(o, unittest.hasLength(2)); | 1477 unittest.expect(o, unittest.hasLength(2)); |
| 1478 unittest.expect(o["x"], unittest.equals('foo')); | 1478 unittest.expect(o["x"], unittest.equals('foo')); |
| 1479 unittest.expect(o["y"], unittest.equals('foo')); | 1479 unittest.expect(o["y"], unittest.equals('foo')); |
| 1480 } | 1480 } |
| 1481 | 1481 |
| 1482 buildUnnamed3392() { | 1482 buildUnnamed3520() { |
| 1483 var o = new core.List<api.ErrorHandler>(); | 1483 var o = new core.List<api.ErrorHandler>(); |
| 1484 o.add(buildErrorHandler()); | 1484 o.add(buildErrorHandler()); |
| 1485 o.add(buildErrorHandler()); | 1485 o.add(buildErrorHandler()); |
| 1486 return o; | 1486 return o; |
| 1487 } | 1487 } |
| 1488 | 1488 |
| 1489 checkUnnamed3392(core.List<api.ErrorHandler> o) { | 1489 checkUnnamed3520(core.List<api.ErrorHandler> o) { |
| 1490 unittest.expect(o, unittest.hasLength(2)); | 1490 unittest.expect(o, unittest.hasLength(2)); |
| 1491 checkErrorHandler(o[0]); | 1491 checkErrorHandler(o[0]); |
| 1492 checkErrorHandler(o[1]); | 1492 checkErrorHandler(o[1]); |
| 1493 } | 1493 } |
| 1494 | 1494 |
| 1495 buildUnnamed3393() { | 1495 buildUnnamed3521() { |
| 1496 var o = new core.List<api.UrlMap>(); | 1496 var o = new core.List<api.UrlMap>(); |
| 1497 o.add(buildUrlMap()); | 1497 o.add(buildUrlMap()); |
| 1498 o.add(buildUrlMap()); | 1498 o.add(buildUrlMap()); |
| 1499 return o; | 1499 return o; |
| 1500 } | 1500 } |
| 1501 | 1501 |
| 1502 checkUnnamed3393(core.List<api.UrlMap> o) { | 1502 checkUnnamed3521(core.List<api.UrlMap> o) { |
| 1503 unittest.expect(o, unittest.hasLength(2)); | 1503 unittest.expect(o, unittest.hasLength(2)); |
| 1504 checkUrlMap(o[0]); | 1504 checkUrlMap(o[0]); |
| 1505 checkUrlMap(o[1]); | 1505 checkUrlMap(o[1]); |
| 1506 } | 1506 } |
| 1507 | 1507 |
| 1508 buildUnnamed3394() { | 1508 buildUnnamed3522() { |
| 1509 var o = new core.List<core.String>(); | 1509 var o = new core.List<core.String>(); |
| 1510 o.add("foo"); | 1510 o.add("foo"); |
| 1511 o.add("foo"); | 1511 o.add("foo"); |
| 1512 return o; | 1512 return o; |
| 1513 } | 1513 } |
| 1514 | 1514 |
| 1515 checkUnnamed3394(core.List<core.String> o) { | 1515 checkUnnamed3522(core.List<core.String> o) { |
| 1516 unittest.expect(o, unittest.hasLength(2)); | 1516 unittest.expect(o, unittest.hasLength(2)); |
| 1517 unittest.expect(o[0], unittest.equals('foo')); | 1517 unittest.expect(o[0], unittest.equals('foo')); |
| 1518 unittest.expect(o[1], unittest.equals('foo')); | 1518 unittest.expect(o[1], unittest.equals('foo')); |
| 1519 } | 1519 } |
| 1520 | 1520 |
| 1521 buildUnnamed3395() { | 1521 buildUnnamed3523() { |
| 1522 var o = new core.List<api.Library>(); | 1522 var o = new core.List<api.Library>(); |
| 1523 o.add(buildLibrary()); | 1523 o.add(buildLibrary()); |
| 1524 o.add(buildLibrary()); | 1524 o.add(buildLibrary()); |
| 1525 return o; | 1525 return o; |
| 1526 } | 1526 } |
| 1527 | 1527 |
| 1528 checkUnnamed3395(core.List<api.Library> o) { | 1528 checkUnnamed3523(core.List<api.Library> o) { |
| 1529 unittest.expect(o, unittest.hasLength(2)); | 1529 unittest.expect(o, unittest.hasLength(2)); |
| 1530 checkLibrary(o[0]); | 1530 checkLibrary(o[0]); |
| 1531 checkLibrary(o[1]); | 1531 checkLibrary(o[1]); |
| 1532 } | 1532 } |
| 1533 | 1533 |
| 1534 core.int buildCounterVersion = 0; | 1534 core.int buildCounterVersion = 0; |
| 1535 buildVersion() { | 1535 buildVersion() { |
| 1536 var o = new api.Version(); | 1536 var o = new api.Version(); |
| 1537 buildCounterVersion++; | 1537 buildCounterVersion++; |
| 1538 if (buildCounterVersion < 3) { | 1538 if (buildCounterVersion < 3) { |
| 1539 o.apiConfig = buildApiConfigHandler(); | 1539 o.apiConfig = buildApiConfigHandler(); |
| 1540 o.automaticScaling = buildAutomaticScaling(); | 1540 o.automaticScaling = buildAutomaticScaling(); |
| 1541 o.basicScaling = buildBasicScaling(); | 1541 o.basicScaling = buildBasicScaling(); |
| 1542 o.betaSettings = buildUnnamed3390(); | 1542 o.betaSettings = buildUnnamed3518(); |
| 1543 o.creationTime = "foo"; | 1543 o.creationTime = "foo"; |
| 1544 o.defaultExpiration = "foo"; | 1544 o.defaultExpiration = "foo"; |
| 1545 o.deployer = "foo"; | 1545 o.deployer = "foo"; |
| 1546 o.deployment = buildDeployment(); | 1546 o.deployment = buildDeployment(); |
| 1547 o.env = "foo"; | 1547 o.env = "foo"; |
| 1548 o.envVariables = buildUnnamed3391(); | 1548 o.envVariables = buildUnnamed3519(); |
| 1549 o.errorHandlers = buildUnnamed3392(); | 1549 o.errorHandlers = buildUnnamed3520(); |
| 1550 o.handlers = buildUnnamed3393(); | 1550 o.handlers = buildUnnamed3521(); |
| 1551 o.healthCheck = buildHealthCheck(); | 1551 o.healthCheck = buildHealthCheck(); |
| 1552 o.id = "foo"; | 1552 o.id = "foo"; |
| 1553 o.inboundServices = buildUnnamed3394(); | 1553 o.inboundServices = buildUnnamed3522(); |
| 1554 o.instanceClass = "foo"; | 1554 o.instanceClass = "foo"; |
| 1555 o.libraries = buildUnnamed3395(); | 1555 o.libraries = buildUnnamed3523(); |
| 1556 o.manualScaling = buildManualScaling(); | 1556 o.manualScaling = buildManualScaling(); |
| 1557 o.name = "foo"; | 1557 o.name = "foo"; |
| 1558 o.network = buildNetwork(); | 1558 o.network = buildNetwork(); |
| 1559 o.nobuildFilesRegex = "foo"; | 1559 o.nobuildFilesRegex = "foo"; |
| 1560 o.resources = buildResources(); | 1560 o.resources = buildResources(); |
| 1561 o.runtime = "foo"; | 1561 o.runtime = "foo"; |
| 1562 o.runtimeApiVersion = "foo"; | 1562 o.runtimeApiVersion = "foo"; |
| 1563 o.servingStatus = "foo"; | 1563 o.servingStatus = "foo"; |
| 1564 o.threadsafe = true; | 1564 o.threadsafe = true; |
| 1565 o.vm = true; | 1565 o.vm = true; |
| 1566 } | 1566 } |
| 1567 buildCounterVersion--; | 1567 buildCounterVersion--; |
| 1568 return o; | 1568 return o; |
| 1569 } | 1569 } |
| 1570 | 1570 |
| 1571 checkVersion(api.Version o) { | 1571 checkVersion(api.Version o) { |
| 1572 buildCounterVersion++; | 1572 buildCounterVersion++; |
| 1573 if (buildCounterVersion < 3) { | 1573 if (buildCounterVersion < 3) { |
| 1574 checkApiConfigHandler(o.apiConfig); | 1574 checkApiConfigHandler(o.apiConfig); |
| 1575 checkAutomaticScaling(o.automaticScaling); | 1575 checkAutomaticScaling(o.automaticScaling); |
| 1576 checkBasicScaling(o.basicScaling); | 1576 checkBasicScaling(o.basicScaling); |
| 1577 checkUnnamed3390(o.betaSettings); | 1577 checkUnnamed3518(o.betaSettings); |
| 1578 unittest.expect(o.creationTime, unittest.equals('foo')); | 1578 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 1579 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1579 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
| 1580 unittest.expect(o.deployer, unittest.equals('foo')); | 1580 unittest.expect(o.deployer, unittest.equals('foo')); |
| 1581 checkDeployment(o.deployment); | 1581 checkDeployment(o.deployment); |
| 1582 unittest.expect(o.env, unittest.equals('foo')); | 1582 unittest.expect(o.env, unittest.equals('foo')); |
| 1583 checkUnnamed3391(o.envVariables); | 1583 checkUnnamed3519(o.envVariables); |
| 1584 checkUnnamed3392(o.errorHandlers); | 1584 checkUnnamed3520(o.errorHandlers); |
| 1585 checkUnnamed3393(o.handlers); | 1585 checkUnnamed3521(o.handlers); |
| 1586 checkHealthCheck(o.healthCheck); | 1586 checkHealthCheck(o.healthCheck); |
| 1587 unittest.expect(o.id, unittest.equals('foo')); | 1587 unittest.expect(o.id, unittest.equals('foo')); |
| 1588 checkUnnamed3394(o.inboundServices); | 1588 checkUnnamed3522(o.inboundServices); |
| 1589 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1589 unittest.expect(o.instanceClass, unittest.equals('foo')); |
| 1590 checkUnnamed3395(o.libraries); | 1590 checkUnnamed3523(o.libraries); |
| 1591 checkManualScaling(o.manualScaling); | 1591 checkManualScaling(o.manualScaling); |
| 1592 unittest.expect(o.name, unittest.equals('foo')); | 1592 unittest.expect(o.name, unittest.equals('foo')); |
| 1593 checkNetwork(o.network); | 1593 checkNetwork(o.network); |
| 1594 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1594 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
| 1595 checkResources(o.resources); | 1595 checkResources(o.resources); |
| 1596 unittest.expect(o.runtime, unittest.equals('foo')); | 1596 unittest.expect(o.runtime, unittest.equals('foo')); |
| 1597 unittest.expect(o.runtimeApiVersion, unittest.equals('foo')); | 1597 unittest.expect(o.runtimeApiVersion, unittest.equals('foo')); |
| 1598 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1598 unittest.expect(o.servingStatus, unittest.equals('foo')); |
| 1599 unittest.expect(o.threadsafe, unittest.isTrue); | 1599 unittest.expect(o.threadsafe, unittest.isTrue); |
| 1600 unittest.expect(o.vm, unittest.isTrue); | 1600 unittest.expect(o.vm, unittest.isTrue); |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2419 res.get(arg_appsId, arg_modulesId).then(unittest.expectAsync1(((api.Module
response) { | 2419 res.get(arg_appsId, arg_modulesId).then(unittest.expectAsync1(((api.Module
response) { |
| 2420 checkModule(response); | 2420 checkModule(response); |
| 2421 }))); | 2421 }))); |
| 2422 }); | 2422 }); |
| 2423 | 2423 |
| 2424 unittest.test("method--list", () { | 2424 unittest.test("method--list", () { |
| 2425 | 2425 |
| 2426 var mock = new HttpServerMock(); | 2426 var mock = new HttpServerMock(); |
| 2427 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; | 2427 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; |
| 2428 var arg_appsId = "foo"; | 2428 var arg_appsId = "foo"; |
| 2429 var arg_pageToken = "foo"; |
| 2429 var arg_pageSize = 42; | 2430 var arg_pageSize = 42; |
| 2430 var arg_pageToken = "foo"; | |
| 2431 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2431 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2432 var path = (req.url).path; | 2432 var path = (req.url).path; |
| 2433 var pathOffset = 0; | 2433 var pathOffset = 0; |
| 2434 var index; | 2434 var index; |
| 2435 var subPart; | 2435 var subPart; |
| 2436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2436 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2437 pathOffset += 1; | 2437 pathOffset += 1; |
| 2438 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); | 2438 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); |
| 2439 pathOffset += 13; | 2439 pathOffset += 13; |
| 2440 index = path.indexOf("/modules", pathOffset); | 2440 index = path.indexOf("/modules", pathOffset); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2454 if (n == "false") return false; | 2454 if (n == "false") return false; |
| 2455 if (n == null) return null; | 2455 if (n == null) return null; |
| 2456 throw new core.ArgumentError("Invalid boolean: $n"); | 2456 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2457 } | 2457 } |
| 2458 if (query.length > 0) { | 2458 if (query.length > 0) { |
| 2459 for (var part in query.split("&")) { | 2459 for (var part in query.split("&")) { |
| 2460 var keyvalue = part.split("="); | 2460 var keyvalue = part.split("="); |
| 2461 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2461 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2462 } | 2462 } |
| 2463 } | 2463 } |
| 2464 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2464 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2465 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2465 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
| 2466 | 2466 |
| 2467 | 2467 |
| 2468 var h = { | 2468 var h = { |
| 2469 "content-type" : "application/json; charset=utf-8", | 2469 "content-type" : "application/json; charset=utf-8", |
| 2470 }; | 2470 }; |
| 2471 var resp = convert.JSON.encode(buildListModulesResponse()); | 2471 var resp = convert.JSON.encode(buildListModulesResponse()); |
| 2472 return new async.Future.value(stringResponse(200, h, resp)); | 2472 return new async.Future.value(stringResponse(200, h, resp)); |
| 2473 }), true); | 2473 }), true); |
| 2474 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the
n(unittest.expectAsync1(((api.ListModulesResponse response) { | 2474 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the
n(unittest.expectAsync1(((api.ListModulesResponse response) { |
| 2475 checkListModulesResponse(response); | 2475 checkListModulesResponse(response); |
| 2476 }))); | 2476 }))); |
| 2477 }); | 2477 }); |
| 2478 | 2478 |
| 2479 unittest.test("method--patch", () { | 2479 unittest.test("method--patch", () { |
| 2480 | 2480 |
| 2481 var mock = new HttpServerMock(); | 2481 var mock = new HttpServerMock(); |
| 2482 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; | 2482 api.AppsModulesResourceApi res = new api.AppengineApi(mock).apps.modules; |
| 2483 var arg_request = buildModule(); | 2483 var arg_request = buildModule(); |
| 2484 var arg_appsId = "foo"; | 2484 var arg_appsId = "foo"; |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2733 checkVersion(response); | 2733 checkVersion(response); |
| 2734 }))); | 2734 }))); |
| 2735 }); | 2735 }); |
| 2736 | 2736 |
| 2737 unittest.test("method--list", () { | 2737 unittest.test("method--list", () { |
| 2738 | 2738 |
| 2739 var mock = new HttpServerMock(); | 2739 var mock = new HttpServerMock(); |
| 2740 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m
odules.versions; | 2740 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m
odules.versions; |
| 2741 var arg_appsId = "foo"; | 2741 var arg_appsId = "foo"; |
| 2742 var arg_modulesId = "foo"; | 2742 var arg_modulesId = "foo"; |
| 2743 var arg_pageToken = "foo"; |
| 2743 var arg_pageSize = 42; | 2744 var arg_pageSize = 42; |
| 2744 var arg_view = "foo"; | 2745 var arg_view = "foo"; |
| 2745 var arg_pageToken = "foo"; | |
| 2746 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2746 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 2747 var path = (req.url).path; | 2747 var path = (req.url).path; |
| 2748 var pathOffset = 0; | 2748 var pathOffset = 0; |
| 2749 var index; | 2749 var index; |
| 2750 var subPart; | 2750 var subPart; |
| 2751 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2751 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2752 pathOffset += 1; | 2752 pathOffset += 1; |
| 2753 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); | 2753 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); |
| 2754 pathOffset += 13; | 2754 pathOffset += 13; |
| 2755 index = path.indexOf("/modules/", pathOffset); | 2755 index = path.indexOf("/modules/", pathOffset); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2776 if (n == "false") return false; | 2776 if (n == "false") return false; |
| 2777 if (n == null) return null; | 2777 if (n == null) return null; |
| 2778 throw new core.ArgumentError("Invalid boolean: $n"); | 2778 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2779 } | 2779 } |
| 2780 if (query.length > 0) { | 2780 if (query.length > 0) { |
| 2781 for (var part in query.split("&")) { | 2781 for (var part in query.split("&")) { |
| 2782 var keyvalue = part.split("="); | 2782 var keyvalue = part.split("="); |
| 2783 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2783 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2784 } | 2784 } |
| 2785 } | 2785 } |
| 2786 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2786 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2787 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2787 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 2788 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
| 2788 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
| 2789 | 2789 |
| 2790 | 2790 |
| 2791 var h = { | 2791 var h = { |
| 2792 "content-type" : "application/json; charset=utf-8", | 2792 "content-type" : "application/json; charset=utf-8", |
| 2793 }; | 2793 }; |
| 2794 var resp = convert.JSON.encode(buildListVersionsResponse()); | 2794 var resp = convert.JSON.encode(buildListVersionsResponse()); |
| 2795 return new async.Future.value(stringResponse(200, h, resp)); | 2795 return new async.Future.value(stringResponse(200, h, resp)); |
| 2796 }), true); | 2796 }), true); |
| 2797 res.list(arg_appsId, arg_modulesId, pageSize: arg_pageSize, view: arg_view
, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListVersionsRespons
e response) { | 2797 res.list(arg_appsId, arg_modulesId, pageToken: arg_pageToken, pageSize: ar
g_pageSize, view: arg_view).then(unittest.expectAsync1(((api.ListVersionsRespons
e response) { |
| 2798 checkListVersionsResponse(response); | 2798 checkListVersionsResponse(response); |
| 2799 }))); | 2799 }))); |
| 2800 }); | 2800 }); |
| 2801 | 2801 |
| 2802 unittest.test("method--patch", () { | 2802 unittest.test("method--patch", () { |
| 2803 | 2803 |
| 2804 var mock = new HttpServerMock(); | 2804 var mock = new HttpServerMock(); |
| 2805 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m
odules.versions; | 2805 api.AppsModulesVersionsResourceApi res = new api.AppengineApi(mock).apps.m
odules.versions; |
| 2806 var arg_request = buildVersion(); | 2806 var arg_request = buildVersion(); |
| 2807 var arg_appsId = "foo"; | 2807 var arg_appsId = "foo"; |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3221 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Ope
ration response) { | 3221 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Ope
ration response) { |
| 3222 checkOperation(response); | 3222 checkOperation(response); |
| 3223 }))); | 3223 }))); |
| 3224 }); | 3224 }); |
| 3225 | 3225 |
| 3226 unittest.test("method--list", () { | 3226 unittest.test("method--list", () { |
| 3227 | 3227 |
| 3228 var mock = new HttpServerMock(); | 3228 var mock = new HttpServerMock(); |
| 3229 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat
ions; | 3229 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat
ions; |
| 3230 var arg_appsId = "foo"; | 3230 var arg_appsId = "foo"; |
| 3231 var arg_pageSize = 42; | |
| 3232 var arg_filter = "foo"; | 3231 var arg_filter = "foo"; |
| 3233 var arg_pageToken = "foo"; | 3232 var arg_pageToken = "foo"; |
| 3233 var arg_pageSize = 42; |
| 3234 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 3234 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 3235 var path = (req.url).path; | 3235 var path = (req.url).path; |
| 3236 var pathOffset = 0; | 3236 var pathOffset = 0; |
| 3237 var index; | 3237 var index; |
| 3238 var subPart; | 3238 var subPart; |
| 3239 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3239 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3240 pathOffset += 1; | 3240 pathOffset += 1; |
| 3241 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); | 3241 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); |
| 3242 pathOffset += 13; | 3242 pathOffset += 13; |
| 3243 index = path.indexOf("/operations", pathOffset); | 3243 index = path.indexOf("/operations", pathOffset); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3257 if (n == "false") return false; | 3257 if (n == "false") return false; |
| 3258 if (n == null) return null; | 3258 if (n == null) return null; |
| 3259 throw new core.ArgumentError("Invalid boolean: $n"); | 3259 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3260 } | 3260 } |
| 3261 if (query.length > 0) { | 3261 if (query.length > 0) { |
| 3262 for (var part in query.split("&")) { | 3262 for (var part in query.split("&")) { |
| 3263 var keyvalue = part.split("="); | 3263 var keyvalue = part.split("="); |
| 3264 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3264 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3265 } | 3265 } |
| 3266 } | 3266 } |
| 3267 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
| 3268 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 3267 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 3269 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3268 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 3269 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 3270 | 3270 |
| 3271 | 3271 |
| 3272 var h = { | 3272 var h = { |
| 3273 "content-type" : "application/json; charset=utf-8", | 3273 "content-type" : "application/json; charset=utf-8", |
| 3274 }; | 3274 }; |
| 3275 var resp = convert.JSON.encode(buildListOperationsResponse()); | 3275 var resp = convert.JSON.encode(buildListOperationsResponse()); |
| 3276 return new async.Future.value(stringResponse(200, h, resp)); | 3276 return new async.Future.value(stringResponse(200, h, resp)); |
| 3277 }), true); | 3277 }), true); |
| 3278 res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken
: arg_pageToken).then(unittest.expectAsync1(((api.ListOperationsResponse respons
e) { | 3278 res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse respons
e) { |
| 3279 checkListOperationsResponse(response); | 3279 checkListOperationsResponse(response); |
| 3280 }))); | 3280 }))); |
| 3281 }); | 3281 }); |
| 3282 | 3282 |
| 3283 }); | 3283 }); |
| 3284 | 3284 |
| 3285 | 3285 |
| 3286 } | 3286 } |
| 3287 | 3287 |
| OLD | NEW |