| OLD | NEW |
| 1 library googleapis_beta.appengine.v1beta5.test; | 1 library googleapis_beta.appengine.v1beta5.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 buildUnnamed3402() { | 100 buildUnnamed3498() { |
| 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 checkUnnamed3402(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed3498(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 = buildUnnamed3402(); | 123 o.dispatchRules = buildUnnamed3498(); |
| 124 o.iap = buildIdentityAwareProxy(); |
| 124 o.id = "foo"; | 125 o.id = "foo"; |
| 125 o.location = "foo"; | 126 o.location = "foo"; |
| 126 o.name = "foo"; | 127 o.name = "foo"; |
| 127 } | 128 } |
| 128 buildCounterApplication--; | 129 buildCounterApplication--; |
| 129 return o; | 130 return o; |
| 130 } | 131 } |
| 131 | 132 |
| 132 checkApplication(api.Application o) { | 133 checkApplication(api.Application o) { |
| 133 buildCounterApplication++; | 134 buildCounterApplication++; |
| 134 if (buildCounterApplication < 3) { | 135 if (buildCounterApplication < 3) { |
| 135 unittest.expect(o.authDomain, unittest.equals('foo')); | 136 unittest.expect(o.authDomain, unittest.equals('foo')); |
| 136 unittest.expect(o.codeBucket, unittest.equals('foo')); | 137 unittest.expect(o.codeBucket, unittest.equals('foo')); |
| 137 unittest.expect(o.defaultBucket, unittest.equals('foo')); | 138 unittest.expect(o.defaultBucket, unittest.equals('foo')); |
| 138 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); | 139 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); |
| 139 unittest.expect(o.defaultHostname, unittest.equals('foo')); | 140 unittest.expect(o.defaultHostname, unittest.equals('foo')); |
| 140 checkUnnamed3402(o.dispatchRules); | 141 checkUnnamed3498(o.dispatchRules); |
| 142 checkIdentityAwareProxy(o.iap); |
| 141 unittest.expect(o.id, unittest.equals('foo')); | 143 unittest.expect(o.id, unittest.equals('foo')); |
| 142 unittest.expect(o.location, unittest.equals('foo')); | 144 unittest.expect(o.location, unittest.equals('foo')); |
| 143 unittest.expect(o.name, unittest.equals('foo')); | 145 unittest.expect(o.name, unittest.equals('foo')); |
| 144 } | 146 } |
| 145 buildCounterApplication--; | 147 buildCounterApplication--; |
| 146 } | 148 } |
| 147 | 149 |
| 148 core.int buildCounterAutomaticScaling = 0; | 150 core.int buildCounterAutomaticScaling = 0; |
| 149 buildAutomaticScaling() { | 151 buildAutomaticScaling() { |
| 150 var o = new api.AutomaticScaling(); | 152 var o = new api.AutomaticScaling(); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 } | 261 } |
| 260 | 262 |
| 261 checkDebugInstanceRequest(api.DebugInstanceRequest o) { | 263 checkDebugInstanceRequest(api.DebugInstanceRequest o) { |
| 262 buildCounterDebugInstanceRequest++; | 264 buildCounterDebugInstanceRequest++; |
| 263 if (buildCounterDebugInstanceRequest < 3) { | 265 if (buildCounterDebugInstanceRequest < 3) { |
| 264 unittest.expect(o.sshKey, unittest.equals('foo')); | 266 unittest.expect(o.sshKey, unittest.equals('foo')); |
| 265 } | 267 } |
| 266 buildCounterDebugInstanceRequest--; | 268 buildCounterDebugInstanceRequest--; |
| 267 } | 269 } |
| 268 | 270 |
| 269 buildUnnamed3403() { | 271 buildUnnamed3499() { |
| 270 var o = new core.Map<core.String, api.FileInfo>(); | 272 var o = new core.Map<core.String, api.FileInfo>(); |
| 271 o["x"] = buildFileInfo(); | 273 o["x"] = buildFileInfo(); |
| 272 o["y"] = buildFileInfo(); | 274 o["y"] = buildFileInfo(); |
| 273 return o; | 275 return o; |
| 274 } | 276 } |
| 275 | 277 |
| 276 checkUnnamed3403(core.Map<core.String, api.FileInfo> o) { | 278 checkUnnamed3499(core.Map<core.String, api.FileInfo> o) { |
| 277 unittest.expect(o, unittest.hasLength(2)); | 279 unittest.expect(o, unittest.hasLength(2)); |
| 278 checkFileInfo(o["x"]); | 280 checkFileInfo(o["x"]); |
| 279 checkFileInfo(o["y"]); | 281 checkFileInfo(o["y"]); |
| 280 } | 282 } |
| 281 | 283 |
| 282 buildUnnamed3404() { | 284 buildUnnamed3500() { |
| 283 var o = new core.List<api.SourceReference>(); | 285 var o = new core.List<api.SourceReference>(); |
| 284 o.add(buildSourceReference()); | 286 o.add(buildSourceReference()); |
| 285 o.add(buildSourceReference()); | 287 o.add(buildSourceReference()); |
| 286 return o; | 288 return o; |
| 287 } | 289 } |
| 288 | 290 |
| 289 checkUnnamed3404(core.List<api.SourceReference> o) { | 291 checkUnnamed3500(core.List<api.SourceReference> o) { |
| 290 unittest.expect(o, unittest.hasLength(2)); | 292 unittest.expect(o, unittest.hasLength(2)); |
| 291 checkSourceReference(o[0]); | 293 checkSourceReference(o[0]); |
| 292 checkSourceReference(o[1]); | 294 checkSourceReference(o[1]); |
| 293 } | 295 } |
| 294 | 296 |
| 295 core.int buildCounterDeployment = 0; | 297 core.int buildCounterDeployment = 0; |
| 296 buildDeployment() { | 298 buildDeployment() { |
| 297 var o = new api.Deployment(); | 299 var o = new api.Deployment(); |
| 298 buildCounterDeployment++; | 300 buildCounterDeployment++; |
| 299 if (buildCounterDeployment < 3) { | 301 if (buildCounterDeployment < 3) { |
| 300 o.container = buildContainerInfo(); | 302 o.container = buildContainerInfo(); |
| 301 o.files = buildUnnamed3403(); | 303 o.files = buildUnnamed3499(); |
| 302 o.sourceReferences = buildUnnamed3404(); | 304 o.sourceReferences = buildUnnamed3500(); |
| 303 } | 305 } |
| 304 buildCounterDeployment--; | 306 buildCounterDeployment--; |
| 305 return o; | 307 return o; |
| 306 } | 308 } |
| 307 | 309 |
| 308 checkDeployment(api.Deployment o) { | 310 checkDeployment(api.Deployment o) { |
| 309 buildCounterDeployment++; | 311 buildCounterDeployment++; |
| 310 if (buildCounterDeployment < 3) { | 312 if (buildCounterDeployment < 3) { |
| 311 checkContainerInfo(o.container); | 313 checkContainerInfo(o.container); |
| 312 checkUnnamed3403(o.files); | 314 checkUnnamed3499(o.files); |
| 313 checkUnnamed3404(o.sourceReferences); | 315 checkUnnamed3500(o.sourceReferences); |
| 314 } | 316 } |
| 315 buildCounterDeployment--; | 317 buildCounterDeployment--; |
| 316 } | 318 } |
| 317 | 319 |
| 318 core.int buildCounterDiskUtilization = 0; | 320 core.int buildCounterDiskUtilization = 0; |
| 319 buildDiskUtilization() { | 321 buildDiskUtilization() { |
| 320 var o = new api.DiskUtilization(); | 322 var o = new api.DiskUtilization(); |
| 321 buildCounterDiskUtilization++; | 323 buildCounterDiskUtilization++; |
| 322 if (buildCounterDiskUtilization < 3) { | 324 if (buildCounterDiskUtilization < 3) { |
| 323 o.targetReadBytesPerSec = 42; | 325 o.targetReadBytesPerSec = 42; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 unittest.expect(o.disableHealthCheck, unittest.isTrue); | 433 unittest.expect(o.disableHealthCheck, unittest.isTrue); |
| 432 unittest.expect(o.healthyThreshold, unittest.equals(42)); | 434 unittest.expect(o.healthyThreshold, unittest.equals(42)); |
| 433 unittest.expect(o.host, unittest.equals('foo')); | 435 unittest.expect(o.host, unittest.equals('foo')); |
| 434 unittest.expect(o.restartThreshold, unittest.equals(42)); | 436 unittest.expect(o.restartThreshold, unittest.equals(42)); |
| 435 unittest.expect(o.timeout, unittest.equals('foo')); | 437 unittest.expect(o.timeout, unittest.equals('foo')); |
| 436 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); | 438 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); |
| 437 } | 439 } |
| 438 buildCounterHealthCheck--; | 440 buildCounterHealthCheck--; |
| 439 } | 441 } |
| 440 | 442 |
| 443 core.int buildCounterIdentityAwareProxy = 0; |
| 444 buildIdentityAwareProxy() { |
| 445 var o = new api.IdentityAwareProxy(); |
| 446 buildCounterIdentityAwareProxy++; |
| 447 if (buildCounterIdentityAwareProxy < 3) { |
| 448 o.enabled = true; |
| 449 o.oauth2ClientId = "foo"; |
| 450 o.oauth2ClientSecret = "foo"; |
| 451 o.oauth2ClientSecretSha256 = "foo"; |
| 452 } |
| 453 buildCounterIdentityAwareProxy--; |
| 454 return o; |
| 455 } |
| 456 |
| 457 checkIdentityAwareProxy(api.IdentityAwareProxy o) { |
| 458 buildCounterIdentityAwareProxy++; |
| 459 if (buildCounterIdentityAwareProxy < 3) { |
| 460 unittest.expect(o.enabled, unittest.isTrue); |
| 461 unittest.expect(o.oauth2ClientId, unittest.equals('foo')); |
| 462 unittest.expect(o.oauth2ClientSecret, unittest.equals('foo')); |
| 463 unittest.expect(o.oauth2ClientSecretSha256, unittest.equals('foo')); |
| 464 } |
| 465 buildCounterIdentityAwareProxy--; |
| 466 } |
| 467 |
| 441 core.int buildCounterInstance = 0; | 468 core.int buildCounterInstance = 0; |
| 442 buildInstance() { | 469 buildInstance() { |
| 443 var o = new api.Instance(); | 470 var o = new api.Instance(); |
| 444 buildCounterInstance++; | 471 buildCounterInstance++; |
| 445 if (buildCounterInstance < 3) { | 472 if (buildCounterInstance < 3) { |
| 446 o.appEngineRelease = "foo"; | 473 o.appEngineRelease = "foo"; |
| 447 o.availability = "foo"; | 474 o.availability = "foo"; |
| 448 o.averageLatency = 42; | 475 o.averageLatency = 42; |
| 449 o.errors = 42; | 476 o.errors = 42; |
| 450 o.id = "foo"; | 477 o.id = "foo"; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 | 528 |
| 502 checkLibrary(api.Library o) { | 529 checkLibrary(api.Library o) { |
| 503 buildCounterLibrary++; | 530 buildCounterLibrary++; |
| 504 if (buildCounterLibrary < 3) { | 531 if (buildCounterLibrary < 3) { |
| 505 unittest.expect(o.name, unittest.equals('foo')); | 532 unittest.expect(o.name, unittest.equals('foo')); |
| 506 unittest.expect(o.version, unittest.equals('foo')); | 533 unittest.expect(o.version, unittest.equals('foo')); |
| 507 } | 534 } |
| 508 buildCounterLibrary--; | 535 buildCounterLibrary--; |
| 509 } | 536 } |
| 510 | 537 |
| 511 buildUnnamed3405() { | 538 buildUnnamed3501() { |
| 512 var o = new core.List<api.Instance>(); | 539 var o = new core.List<api.Instance>(); |
| 513 o.add(buildInstance()); | 540 o.add(buildInstance()); |
| 514 o.add(buildInstance()); | 541 o.add(buildInstance()); |
| 515 return o; | 542 return o; |
| 516 } | 543 } |
| 517 | 544 |
| 518 checkUnnamed3405(core.List<api.Instance> o) { | 545 checkUnnamed3501(core.List<api.Instance> o) { |
| 519 unittest.expect(o, unittest.hasLength(2)); | 546 unittest.expect(o, unittest.hasLength(2)); |
| 520 checkInstance(o[0]); | 547 checkInstance(o[0]); |
| 521 checkInstance(o[1]); | 548 checkInstance(o[1]); |
| 522 } | 549 } |
| 523 | 550 |
| 524 core.int buildCounterListInstancesResponse = 0; | 551 core.int buildCounterListInstancesResponse = 0; |
| 525 buildListInstancesResponse() { | 552 buildListInstancesResponse() { |
| 526 var o = new api.ListInstancesResponse(); | 553 var o = new api.ListInstancesResponse(); |
| 527 buildCounterListInstancesResponse++; | 554 buildCounterListInstancesResponse++; |
| 528 if (buildCounterListInstancesResponse < 3) { | 555 if (buildCounterListInstancesResponse < 3) { |
| 529 o.instances = buildUnnamed3405(); | 556 o.instances = buildUnnamed3501(); |
| 530 o.nextPageToken = "foo"; | 557 o.nextPageToken = "foo"; |
| 531 } | 558 } |
| 532 buildCounterListInstancesResponse--; | 559 buildCounterListInstancesResponse--; |
| 533 return o; | 560 return o; |
| 534 } | 561 } |
| 535 | 562 |
| 536 checkListInstancesResponse(api.ListInstancesResponse o) { | 563 checkListInstancesResponse(api.ListInstancesResponse o) { |
| 537 buildCounterListInstancesResponse++; | 564 buildCounterListInstancesResponse++; |
| 538 if (buildCounterListInstancesResponse < 3) { | 565 if (buildCounterListInstancesResponse < 3) { |
| 539 checkUnnamed3405(o.instances); | 566 checkUnnamed3501(o.instances); |
| 540 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 567 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 541 } | 568 } |
| 542 buildCounterListInstancesResponse--; | 569 buildCounterListInstancesResponse--; |
| 543 } | 570 } |
| 544 | 571 |
| 545 buildUnnamed3406() { | 572 buildUnnamed3502() { |
| 546 var o = new core.List<api.Location>(); | 573 var o = new core.List<api.Location>(); |
| 547 o.add(buildLocation()); | 574 o.add(buildLocation()); |
| 548 o.add(buildLocation()); | 575 o.add(buildLocation()); |
| 549 return o; | 576 return o; |
| 550 } | 577 } |
| 551 | 578 |
| 552 checkUnnamed3406(core.List<api.Location> o) { | 579 checkUnnamed3502(core.List<api.Location> o) { |
| 553 unittest.expect(o, unittest.hasLength(2)); | 580 unittest.expect(o, unittest.hasLength(2)); |
| 554 checkLocation(o[0]); | 581 checkLocation(o[0]); |
| 555 checkLocation(o[1]); | 582 checkLocation(o[1]); |
| 556 } | 583 } |
| 557 | 584 |
| 558 core.int buildCounterListLocationsResponse = 0; | 585 core.int buildCounterListLocationsResponse = 0; |
| 559 buildListLocationsResponse() { | 586 buildListLocationsResponse() { |
| 560 var o = new api.ListLocationsResponse(); | 587 var o = new api.ListLocationsResponse(); |
| 561 buildCounterListLocationsResponse++; | 588 buildCounterListLocationsResponse++; |
| 562 if (buildCounterListLocationsResponse < 3) { | 589 if (buildCounterListLocationsResponse < 3) { |
| 563 o.locations = buildUnnamed3406(); | 590 o.locations = buildUnnamed3502(); |
| 564 o.nextPageToken = "foo"; | 591 o.nextPageToken = "foo"; |
| 565 } | 592 } |
| 566 buildCounterListLocationsResponse--; | 593 buildCounterListLocationsResponse--; |
| 567 return o; | 594 return o; |
| 568 } | 595 } |
| 569 | 596 |
| 570 checkListLocationsResponse(api.ListLocationsResponse o) { | 597 checkListLocationsResponse(api.ListLocationsResponse o) { |
| 571 buildCounterListLocationsResponse++; | 598 buildCounterListLocationsResponse++; |
| 572 if (buildCounterListLocationsResponse < 3) { | 599 if (buildCounterListLocationsResponse < 3) { |
| 573 checkUnnamed3406(o.locations); | 600 checkUnnamed3502(o.locations); |
| 574 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 601 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 575 } | 602 } |
| 576 buildCounterListLocationsResponse--; | 603 buildCounterListLocationsResponse--; |
| 577 } | 604 } |
| 578 | 605 |
| 579 buildUnnamed3407() { | 606 buildUnnamed3503() { |
| 580 var o = new core.List<api.Operation>(); | 607 var o = new core.List<api.Operation>(); |
| 581 o.add(buildOperation()); | 608 o.add(buildOperation()); |
| 582 o.add(buildOperation()); | 609 o.add(buildOperation()); |
| 583 return o; | 610 return o; |
| 584 } | 611 } |
| 585 | 612 |
| 586 checkUnnamed3407(core.List<api.Operation> o) { | 613 checkUnnamed3503(core.List<api.Operation> o) { |
| 587 unittest.expect(o, unittest.hasLength(2)); | 614 unittest.expect(o, unittest.hasLength(2)); |
| 588 checkOperation(o[0]); | 615 checkOperation(o[0]); |
| 589 checkOperation(o[1]); | 616 checkOperation(o[1]); |
| 590 } | 617 } |
| 591 | 618 |
| 592 core.int buildCounterListOperationsResponse = 0; | 619 core.int buildCounterListOperationsResponse = 0; |
| 593 buildListOperationsResponse() { | 620 buildListOperationsResponse() { |
| 594 var o = new api.ListOperationsResponse(); | 621 var o = new api.ListOperationsResponse(); |
| 595 buildCounterListOperationsResponse++; | 622 buildCounterListOperationsResponse++; |
| 596 if (buildCounterListOperationsResponse < 3) { | 623 if (buildCounterListOperationsResponse < 3) { |
| 597 o.nextPageToken = "foo"; | 624 o.nextPageToken = "foo"; |
| 598 o.operations = buildUnnamed3407(); | 625 o.operations = buildUnnamed3503(); |
| 599 } | 626 } |
| 600 buildCounterListOperationsResponse--; | 627 buildCounterListOperationsResponse--; |
| 601 return o; | 628 return o; |
| 602 } | 629 } |
| 603 | 630 |
| 604 checkListOperationsResponse(api.ListOperationsResponse o) { | 631 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 605 buildCounterListOperationsResponse++; | 632 buildCounterListOperationsResponse++; |
| 606 if (buildCounterListOperationsResponse < 3) { | 633 if (buildCounterListOperationsResponse < 3) { |
| 607 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 634 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 608 checkUnnamed3407(o.operations); | 635 checkUnnamed3503(o.operations); |
| 609 } | 636 } |
| 610 buildCounterListOperationsResponse--; | 637 buildCounterListOperationsResponse--; |
| 611 } | 638 } |
| 612 | 639 |
| 613 buildUnnamed3408() { | 640 buildUnnamed3504() { |
| 614 var o = new core.List<api.Service>(); | 641 var o = new core.List<api.Service>(); |
| 615 o.add(buildService()); | 642 o.add(buildService()); |
| 616 o.add(buildService()); | 643 o.add(buildService()); |
| 617 return o; | 644 return o; |
| 618 } | 645 } |
| 619 | 646 |
| 620 checkUnnamed3408(core.List<api.Service> o) { | 647 checkUnnamed3504(core.List<api.Service> o) { |
| 621 unittest.expect(o, unittest.hasLength(2)); | 648 unittest.expect(o, unittest.hasLength(2)); |
| 622 checkService(o[0]); | 649 checkService(o[0]); |
| 623 checkService(o[1]); | 650 checkService(o[1]); |
| 624 } | 651 } |
| 625 | 652 |
| 626 core.int buildCounterListServicesResponse = 0; | 653 core.int buildCounterListServicesResponse = 0; |
| 627 buildListServicesResponse() { | 654 buildListServicesResponse() { |
| 628 var o = new api.ListServicesResponse(); | 655 var o = new api.ListServicesResponse(); |
| 629 buildCounterListServicesResponse++; | 656 buildCounterListServicesResponse++; |
| 630 if (buildCounterListServicesResponse < 3) { | 657 if (buildCounterListServicesResponse < 3) { |
| 631 o.nextPageToken = "foo"; | 658 o.nextPageToken = "foo"; |
| 632 o.services = buildUnnamed3408(); | 659 o.services = buildUnnamed3504(); |
| 633 } | 660 } |
| 634 buildCounterListServicesResponse--; | 661 buildCounterListServicesResponse--; |
| 635 return o; | 662 return o; |
| 636 } | 663 } |
| 637 | 664 |
| 638 checkListServicesResponse(api.ListServicesResponse o) { | 665 checkListServicesResponse(api.ListServicesResponse o) { |
| 639 buildCounterListServicesResponse++; | 666 buildCounterListServicesResponse++; |
| 640 if (buildCounterListServicesResponse < 3) { | 667 if (buildCounterListServicesResponse < 3) { |
| 641 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 668 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 642 checkUnnamed3408(o.services); | 669 checkUnnamed3504(o.services); |
| 643 } | 670 } |
| 644 buildCounterListServicesResponse--; | 671 buildCounterListServicesResponse--; |
| 645 } | 672 } |
| 646 | 673 |
| 647 buildUnnamed3409() { | 674 buildUnnamed3505() { |
| 648 var o = new core.List<api.Version>(); | 675 var o = new core.List<api.Version>(); |
| 649 o.add(buildVersion()); | 676 o.add(buildVersion()); |
| 650 o.add(buildVersion()); | 677 o.add(buildVersion()); |
| 651 return o; | 678 return o; |
| 652 } | 679 } |
| 653 | 680 |
| 654 checkUnnamed3409(core.List<api.Version> o) { | 681 checkUnnamed3505(core.List<api.Version> o) { |
| 655 unittest.expect(o, unittest.hasLength(2)); | 682 unittest.expect(o, unittest.hasLength(2)); |
| 656 checkVersion(o[0]); | 683 checkVersion(o[0]); |
| 657 checkVersion(o[1]); | 684 checkVersion(o[1]); |
| 658 } | 685 } |
| 659 | 686 |
| 660 core.int buildCounterListVersionsResponse = 0; | 687 core.int buildCounterListVersionsResponse = 0; |
| 661 buildListVersionsResponse() { | 688 buildListVersionsResponse() { |
| 662 var o = new api.ListVersionsResponse(); | 689 var o = new api.ListVersionsResponse(); |
| 663 buildCounterListVersionsResponse++; | 690 buildCounterListVersionsResponse++; |
| 664 if (buildCounterListVersionsResponse < 3) { | 691 if (buildCounterListVersionsResponse < 3) { |
| 665 o.nextPageToken = "foo"; | 692 o.nextPageToken = "foo"; |
| 666 o.versions = buildUnnamed3409(); | 693 o.versions = buildUnnamed3505(); |
| 667 } | 694 } |
| 668 buildCounterListVersionsResponse--; | 695 buildCounterListVersionsResponse--; |
| 669 return o; | 696 return o; |
| 670 } | 697 } |
| 671 | 698 |
| 672 checkListVersionsResponse(api.ListVersionsResponse o) { | 699 checkListVersionsResponse(api.ListVersionsResponse o) { |
| 673 buildCounterListVersionsResponse++; | 700 buildCounterListVersionsResponse++; |
| 674 if (buildCounterListVersionsResponse < 3) { | 701 if (buildCounterListVersionsResponse < 3) { |
| 675 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 702 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 676 checkUnnamed3409(o.versions); | 703 checkUnnamed3505(o.versions); |
| 677 } | 704 } |
| 678 buildCounterListVersionsResponse--; | 705 buildCounterListVersionsResponse--; |
| 679 } | 706 } |
| 680 | 707 |
| 681 buildUnnamed3410() { | 708 buildUnnamed3506() { |
| 682 var o = new core.Map<core.String, core.String>(); | 709 var o = new core.Map<core.String, core.String>(); |
| 683 o["x"] = "foo"; | 710 o["x"] = "foo"; |
| 684 o["y"] = "foo"; | 711 o["y"] = "foo"; |
| 685 return o; | 712 return o; |
| 686 } | 713 } |
| 687 | 714 |
| 688 checkUnnamed3410(core.Map<core.String, core.String> o) { | 715 checkUnnamed3506(core.Map<core.String, core.String> o) { |
| 689 unittest.expect(o, unittest.hasLength(2)); | 716 unittest.expect(o, unittest.hasLength(2)); |
| 690 unittest.expect(o["x"], unittest.equals('foo')); | 717 unittest.expect(o["x"], unittest.equals('foo')); |
| 691 unittest.expect(o["y"], unittest.equals('foo')); | 718 unittest.expect(o["y"], unittest.equals('foo')); |
| 692 } | 719 } |
| 693 | 720 |
| 694 buildUnnamed3411() { | 721 buildUnnamed3507() { |
| 695 var o = new core.Map<core.String, core.Object>(); | 722 var o = new core.Map<core.String, core.Object>(); |
| 696 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 723 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 697 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 724 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 698 return o; | 725 return o; |
| 699 } | 726 } |
| 700 | 727 |
| 701 checkUnnamed3411(core.Map<core.String, core.Object> o) { | 728 checkUnnamed3507(core.Map<core.String, core.Object> o) { |
| 702 unittest.expect(o, unittest.hasLength(2)); | 729 unittest.expect(o, unittest.hasLength(2)); |
| 703 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')); | 730 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')); |
| 704 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')); | 731 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')); |
| 705 } | 732 } |
| 706 | 733 |
| 707 core.int buildCounterLocation = 0; | 734 core.int buildCounterLocation = 0; |
| 708 buildLocation() { | 735 buildLocation() { |
| 709 var o = new api.Location(); | 736 var o = new api.Location(); |
| 710 buildCounterLocation++; | 737 buildCounterLocation++; |
| 711 if (buildCounterLocation < 3) { | 738 if (buildCounterLocation < 3) { |
| 712 o.labels = buildUnnamed3410(); | 739 o.labels = buildUnnamed3506(); |
| 713 o.locationId = "foo"; | 740 o.locationId = "foo"; |
| 714 o.metadata = buildUnnamed3411(); | 741 o.metadata = buildUnnamed3507(); |
| 715 o.name = "foo"; | 742 o.name = "foo"; |
| 716 } | 743 } |
| 717 buildCounterLocation--; | 744 buildCounterLocation--; |
| 718 return o; | 745 return o; |
| 719 } | 746 } |
| 720 | 747 |
| 721 checkLocation(api.Location o) { | 748 checkLocation(api.Location o) { |
| 722 buildCounterLocation++; | 749 buildCounterLocation++; |
| 723 if (buildCounterLocation < 3) { | 750 if (buildCounterLocation < 3) { |
| 724 checkUnnamed3410(o.labels); | 751 checkUnnamed3506(o.labels); |
| 725 unittest.expect(o.locationId, unittest.equals('foo')); | 752 unittest.expect(o.locationId, unittest.equals('foo')); |
| 726 checkUnnamed3411(o.metadata); | 753 checkUnnamed3507(o.metadata); |
| 727 unittest.expect(o.name, unittest.equals('foo')); | 754 unittest.expect(o.name, unittest.equals('foo')); |
| 728 } | 755 } |
| 729 buildCounterLocation--; | 756 buildCounterLocation--; |
| 730 } | 757 } |
| 731 | 758 |
| 732 core.int buildCounterLocationMetadata = 0; | 759 core.int buildCounterLocationMetadata = 0; |
| 733 buildLocationMetadata() { | 760 buildLocationMetadata() { |
| 734 var o = new api.LocationMetadata(); | 761 var o = new api.LocationMetadata(); |
| 735 buildCounterLocationMetadata++; | 762 buildCounterLocationMetadata++; |
| 736 if (buildCounterLocationMetadata < 3) { | 763 if (buildCounterLocationMetadata < 3) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 762 } | 789 } |
| 763 | 790 |
| 764 checkManualScaling(api.ManualScaling o) { | 791 checkManualScaling(api.ManualScaling o) { |
| 765 buildCounterManualScaling++; | 792 buildCounterManualScaling++; |
| 766 if (buildCounterManualScaling < 3) { | 793 if (buildCounterManualScaling < 3) { |
| 767 unittest.expect(o.instances, unittest.equals(42)); | 794 unittest.expect(o.instances, unittest.equals(42)); |
| 768 } | 795 } |
| 769 buildCounterManualScaling--; | 796 buildCounterManualScaling--; |
| 770 } | 797 } |
| 771 | 798 |
| 772 buildUnnamed3412() { | 799 buildUnnamed3508() { |
| 773 var o = new core.List<core.String>(); | 800 var o = new core.List<core.String>(); |
| 774 o.add("foo"); | 801 o.add("foo"); |
| 775 o.add("foo"); | 802 o.add("foo"); |
| 776 return o; | 803 return o; |
| 777 } | 804 } |
| 778 | 805 |
| 779 checkUnnamed3412(core.List<core.String> o) { | 806 checkUnnamed3508(core.List<core.String> o) { |
| 780 unittest.expect(o, unittest.hasLength(2)); | 807 unittest.expect(o, unittest.hasLength(2)); |
| 781 unittest.expect(o[0], unittest.equals('foo')); | 808 unittest.expect(o[0], unittest.equals('foo')); |
| 782 unittest.expect(o[1], unittest.equals('foo')); | 809 unittest.expect(o[1], unittest.equals('foo')); |
| 783 } | 810 } |
| 784 | 811 |
| 785 core.int buildCounterNetwork = 0; | 812 core.int buildCounterNetwork = 0; |
| 786 buildNetwork() { | 813 buildNetwork() { |
| 787 var o = new api.Network(); | 814 var o = new api.Network(); |
| 788 buildCounterNetwork++; | 815 buildCounterNetwork++; |
| 789 if (buildCounterNetwork < 3) { | 816 if (buildCounterNetwork < 3) { |
| 790 o.forwardedPorts = buildUnnamed3412(); | 817 o.forwardedPorts = buildUnnamed3508(); |
| 791 o.instanceTag = "foo"; | 818 o.instanceTag = "foo"; |
| 792 o.name = "foo"; | 819 o.name = "foo"; |
| 793 o.subnetworkName = "foo"; | 820 o.subnetworkName = "foo"; |
| 794 } | 821 } |
| 795 buildCounterNetwork--; | 822 buildCounterNetwork--; |
| 796 return o; | 823 return o; |
| 797 } | 824 } |
| 798 | 825 |
| 799 checkNetwork(api.Network o) { | 826 checkNetwork(api.Network o) { |
| 800 buildCounterNetwork++; | 827 buildCounterNetwork++; |
| 801 if (buildCounterNetwork < 3) { | 828 if (buildCounterNetwork < 3) { |
| 802 checkUnnamed3412(o.forwardedPorts); | 829 checkUnnamed3508(o.forwardedPorts); |
| 803 unittest.expect(o.instanceTag, unittest.equals('foo')); | 830 unittest.expect(o.instanceTag, unittest.equals('foo')); |
| 804 unittest.expect(o.name, unittest.equals('foo')); | 831 unittest.expect(o.name, unittest.equals('foo')); |
| 805 unittest.expect(o.subnetworkName, unittest.equals('foo')); | 832 unittest.expect(o.subnetworkName, unittest.equals('foo')); |
| 806 } | 833 } |
| 807 buildCounterNetwork--; | 834 buildCounterNetwork--; |
| 808 } | 835 } |
| 809 | 836 |
| 810 core.int buildCounterNetworkUtilization = 0; | 837 core.int buildCounterNetworkUtilization = 0; |
| 811 buildNetworkUtilization() { | 838 buildNetworkUtilization() { |
| 812 var o = new api.NetworkUtilization(); | 839 var o = new api.NetworkUtilization(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 825 buildCounterNetworkUtilization++; | 852 buildCounterNetworkUtilization++; |
| 826 if (buildCounterNetworkUtilization < 3) { | 853 if (buildCounterNetworkUtilization < 3) { |
| 827 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); | 854 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); |
| 828 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); | 855 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); |
| 829 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); | 856 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); |
| 830 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); | 857 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); |
| 831 } | 858 } |
| 832 buildCounterNetworkUtilization--; | 859 buildCounterNetworkUtilization--; |
| 833 } | 860 } |
| 834 | 861 |
| 835 buildUnnamed3413() { | 862 buildUnnamed3509() { |
| 836 var o = new core.Map<core.String, core.Object>(); | 863 var o = new core.Map<core.String, core.Object>(); |
| 837 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 864 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 838 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 865 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 839 return o; | 866 return o; |
| 840 } | 867 } |
| 841 | 868 |
| 842 checkUnnamed3413(core.Map<core.String, core.Object> o) { | 869 checkUnnamed3509(core.Map<core.String, core.Object> o) { |
| 843 unittest.expect(o, unittest.hasLength(2)); | 870 unittest.expect(o, unittest.hasLength(2)); |
| 844 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 871 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
| 845 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 872 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
| 846 } | 873 } |
| 847 | 874 |
| 848 buildUnnamed3414() { | 875 buildUnnamed3510() { |
| 849 var o = new core.Map<core.String, core.Object>(); | 876 var o = new core.Map<core.String, core.Object>(); |
| 850 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 877 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 851 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 878 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 852 return o; | 879 return o; |
| 853 } | 880 } |
| 854 | 881 |
| 855 checkUnnamed3414(core.Map<core.String, core.Object> o) { | 882 checkUnnamed3510(core.Map<core.String, core.Object> o) { |
| 856 unittest.expect(o, unittest.hasLength(2)); | 883 unittest.expect(o, unittest.hasLength(2)); |
| 857 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 884 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
| 858 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 885 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
| 859 } | 886 } |
| 860 | 887 |
| 861 core.int buildCounterOperation = 0; | 888 core.int buildCounterOperation = 0; |
| 862 buildOperation() { | 889 buildOperation() { |
| 863 var o = new api.Operation(); | 890 var o = new api.Operation(); |
| 864 buildCounterOperation++; | 891 buildCounterOperation++; |
| 865 if (buildCounterOperation < 3) { | 892 if (buildCounterOperation < 3) { |
| 866 o.done = true; | 893 o.done = true; |
| 867 o.error = buildStatus(); | 894 o.error = buildStatus(); |
| 868 o.metadata = buildUnnamed3413(); | 895 o.metadata = buildUnnamed3509(); |
| 869 o.name = "foo"; | 896 o.name = "foo"; |
| 870 o.response = buildUnnamed3414(); | 897 o.response = buildUnnamed3510(); |
| 871 } | 898 } |
| 872 buildCounterOperation--; | 899 buildCounterOperation--; |
| 873 return o; | 900 return o; |
| 874 } | 901 } |
| 875 | 902 |
| 876 checkOperation(api.Operation o) { | 903 checkOperation(api.Operation o) { |
| 877 buildCounterOperation++; | 904 buildCounterOperation++; |
| 878 if (buildCounterOperation < 3) { | 905 if (buildCounterOperation < 3) { |
| 879 unittest.expect(o.done, unittest.isTrue); | 906 unittest.expect(o.done, unittest.isTrue); |
| 880 checkStatus(o.error); | 907 checkStatus(o.error); |
| 881 checkUnnamed3413(o.metadata); | 908 checkUnnamed3509(o.metadata); |
| 882 unittest.expect(o.name, unittest.equals('foo')); | 909 unittest.expect(o.name, unittest.equals('foo')); |
| 883 checkUnnamed3414(o.response); | 910 checkUnnamed3510(o.response); |
| 884 } | 911 } |
| 885 buildCounterOperation--; | 912 buildCounterOperation--; |
| 886 } | 913 } |
| 887 | 914 |
| 888 core.int buildCounterOperationMetadata = 0; | 915 core.int buildCounterOperationMetadata = 0; |
| 889 buildOperationMetadata() { | 916 buildOperationMetadata() { |
| 890 var o = new api.OperationMetadata(); | 917 var o = new api.OperationMetadata(); |
| 891 buildCounterOperationMetadata++; | 918 buildCounterOperationMetadata++; |
| 892 if (buildCounterOperationMetadata < 3) { | 919 if (buildCounterOperationMetadata < 3) { |
| 893 o.endTime = "foo"; | 920 o.endTime = "foo"; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 if (buildCounterOperationMetadataExperimental < 3) { | 961 if (buildCounterOperationMetadataExperimental < 3) { |
| 935 unittest.expect(o.endTime, unittest.equals('foo')); | 962 unittest.expect(o.endTime, unittest.equals('foo')); |
| 936 unittest.expect(o.insertTime, unittest.equals('foo')); | 963 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 937 unittest.expect(o.method, unittest.equals('foo')); | 964 unittest.expect(o.method, unittest.equals('foo')); |
| 938 unittest.expect(o.target, unittest.equals('foo')); | 965 unittest.expect(o.target, unittest.equals('foo')); |
| 939 unittest.expect(o.user, unittest.equals('foo')); | 966 unittest.expect(o.user, unittest.equals('foo')); |
| 940 } | 967 } |
| 941 buildCounterOperationMetadataExperimental--; | 968 buildCounterOperationMetadataExperimental--; |
| 942 } | 969 } |
| 943 | 970 |
| 944 buildUnnamed3415() { | 971 buildUnnamed3511() { |
| 945 var o = new core.List<core.String>(); | 972 var o = new core.List<core.String>(); |
| 946 o.add("foo"); | 973 o.add("foo"); |
| 947 o.add("foo"); | 974 o.add("foo"); |
| 948 return o; | 975 return o; |
| 949 } | 976 } |
| 950 | 977 |
| 951 checkUnnamed3415(core.List<core.String> o) { | 978 checkUnnamed3511(core.List<core.String> o) { |
| 952 unittest.expect(o, unittest.hasLength(2)); | 979 unittest.expect(o, unittest.hasLength(2)); |
| 953 unittest.expect(o[0], unittest.equals('foo')); | 980 unittest.expect(o[0], unittest.equals('foo')); |
| 954 unittest.expect(o[1], unittest.equals('foo')); | 981 unittest.expect(o[1], unittest.equals('foo')); |
| 955 } | 982 } |
| 956 | 983 |
| 957 core.int buildCounterOperationMetadataV1 = 0; | 984 core.int buildCounterOperationMetadataV1 = 0; |
| 958 buildOperationMetadataV1() { | 985 buildOperationMetadataV1() { |
| 959 var o = new api.OperationMetadataV1(); | 986 var o = new api.OperationMetadataV1(); |
| 960 buildCounterOperationMetadataV1++; | 987 buildCounterOperationMetadataV1++; |
| 961 if (buildCounterOperationMetadataV1 < 3) { | 988 if (buildCounterOperationMetadataV1 < 3) { |
| 962 o.endTime = "foo"; | 989 o.endTime = "foo"; |
| 963 o.ephemeralMessage = "foo"; | 990 o.ephemeralMessage = "foo"; |
| 964 o.insertTime = "foo"; | 991 o.insertTime = "foo"; |
| 965 o.method = "foo"; | 992 o.method = "foo"; |
| 966 o.target = "foo"; | 993 o.target = "foo"; |
| 967 o.user = "foo"; | 994 o.user = "foo"; |
| 968 o.warning = buildUnnamed3415(); | 995 o.warning = buildUnnamed3511(); |
| 969 } | 996 } |
| 970 buildCounterOperationMetadataV1--; | 997 buildCounterOperationMetadataV1--; |
| 971 return o; | 998 return o; |
| 972 } | 999 } |
| 973 | 1000 |
| 974 checkOperationMetadataV1(api.OperationMetadataV1 o) { | 1001 checkOperationMetadataV1(api.OperationMetadataV1 o) { |
| 975 buildCounterOperationMetadataV1++; | 1002 buildCounterOperationMetadataV1++; |
| 976 if (buildCounterOperationMetadataV1 < 3) { | 1003 if (buildCounterOperationMetadataV1 < 3) { |
| 977 unittest.expect(o.endTime, unittest.equals('foo')); | 1004 unittest.expect(o.endTime, unittest.equals('foo')); |
| 978 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); | 1005 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
| 979 unittest.expect(o.insertTime, unittest.equals('foo')); | 1006 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 980 unittest.expect(o.method, unittest.equals('foo')); | 1007 unittest.expect(o.method, unittest.equals('foo')); |
| 981 unittest.expect(o.target, unittest.equals('foo')); | 1008 unittest.expect(o.target, unittest.equals('foo')); |
| 982 unittest.expect(o.user, unittest.equals('foo')); | 1009 unittest.expect(o.user, unittest.equals('foo')); |
| 983 checkUnnamed3415(o.warning); | 1010 checkUnnamed3511(o.warning); |
| 984 } | 1011 } |
| 985 buildCounterOperationMetadataV1--; | 1012 buildCounterOperationMetadataV1--; |
| 986 } | 1013 } |
| 987 | 1014 |
| 1015 buildUnnamed3512() { |
| 1016 var o = new core.List<core.String>(); |
| 1017 o.add("foo"); |
| 1018 o.add("foo"); |
| 1019 return o; |
| 1020 } |
| 1021 |
| 1022 checkUnnamed3512(core.List<core.String> o) { |
| 1023 unittest.expect(o, unittest.hasLength(2)); |
| 1024 unittest.expect(o[0], unittest.equals('foo')); |
| 1025 unittest.expect(o[1], unittest.equals('foo')); |
| 1026 } |
| 1027 |
| 1028 core.int buildCounterOperationMetadataV1Beta = 0; |
| 1029 buildOperationMetadataV1Beta() { |
| 1030 var o = new api.OperationMetadataV1Beta(); |
| 1031 buildCounterOperationMetadataV1Beta++; |
| 1032 if (buildCounterOperationMetadataV1Beta < 3) { |
| 1033 o.endTime = "foo"; |
| 1034 o.ephemeralMessage = "foo"; |
| 1035 o.insertTime = "foo"; |
| 1036 o.method = "foo"; |
| 1037 o.target = "foo"; |
| 1038 o.user = "foo"; |
| 1039 o.warning = buildUnnamed3512(); |
| 1040 } |
| 1041 buildCounterOperationMetadataV1Beta--; |
| 1042 return o; |
| 1043 } |
| 1044 |
| 1045 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { |
| 1046 buildCounterOperationMetadataV1Beta++; |
| 1047 if (buildCounterOperationMetadataV1Beta < 3) { |
| 1048 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1049 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
| 1050 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 1051 unittest.expect(o.method, unittest.equals('foo')); |
| 1052 unittest.expect(o.target, unittest.equals('foo')); |
| 1053 unittest.expect(o.user, unittest.equals('foo')); |
| 1054 checkUnnamed3512(o.warning); |
| 1055 } |
| 1056 buildCounterOperationMetadataV1Beta--; |
| 1057 } |
| 1058 |
| 988 core.int buildCounterOperationMetadataV1Beta5 = 0; | 1059 core.int buildCounterOperationMetadataV1Beta5 = 0; |
| 989 buildOperationMetadataV1Beta5() { | 1060 buildOperationMetadataV1Beta5() { |
| 990 var o = new api.OperationMetadataV1Beta5(); | 1061 var o = new api.OperationMetadataV1Beta5(); |
| 991 buildCounterOperationMetadataV1Beta5++; | 1062 buildCounterOperationMetadataV1Beta5++; |
| 992 if (buildCounterOperationMetadataV1Beta5 < 3) { | 1063 if (buildCounterOperationMetadataV1Beta5 < 3) { |
| 993 o.endTime = "foo"; | 1064 o.endTime = "foo"; |
| 994 o.insertTime = "foo"; | 1065 o.insertTime = "foo"; |
| 995 o.method = "foo"; | 1066 o.method = "foo"; |
| 996 o.target = "foo"; | 1067 o.target = "foo"; |
| 997 o.user = "foo"; | 1068 o.user = "foo"; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 1026 | 1097 |
| 1027 checkRequestUtilization(api.RequestUtilization o) { | 1098 checkRequestUtilization(api.RequestUtilization o) { |
| 1028 buildCounterRequestUtilization++; | 1099 buildCounterRequestUtilization++; |
| 1029 if (buildCounterRequestUtilization < 3) { | 1100 if (buildCounterRequestUtilization < 3) { |
| 1030 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); | 1101 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); |
| 1031 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); | 1102 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); |
| 1032 } | 1103 } |
| 1033 buildCounterRequestUtilization--; | 1104 buildCounterRequestUtilization--; |
| 1034 } | 1105 } |
| 1035 | 1106 |
| 1036 buildUnnamed3416() { | 1107 buildUnnamed3513() { |
| 1037 var o = new core.List<api.Volume>(); | 1108 var o = new core.List<api.Volume>(); |
| 1038 o.add(buildVolume()); | 1109 o.add(buildVolume()); |
| 1039 o.add(buildVolume()); | 1110 o.add(buildVolume()); |
| 1040 return o; | 1111 return o; |
| 1041 } | 1112 } |
| 1042 | 1113 |
| 1043 checkUnnamed3416(core.List<api.Volume> o) { | 1114 checkUnnamed3513(core.List<api.Volume> o) { |
| 1044 unittest.expect(o, unittest.hasLength(2)); | 1115 unittest.expect(o, unittest.hasLength(2)); |
| 1045 checkVolume(o[0]); | 1116 checkVolume(o[0]); |
| 1046 checkVolume(o[1]); | 1117 checkVolume(o[1]); |
| 1047 } | 1118 } |
| 1048 | 1119 |
| 1049 core.int buildCounterResources = 0; | 1120 core.int buildCounterResources = 0; |
| 1050 buildResources() { | 1121 buildResources() { |
| 1051 var o = new api.Resources(); | 1122 var o = new api.Resources(); |
| 1052 buildCounterResources++; | 1123 buildCounterResources++; |
| 1053 if (buildCounterResources < 3) { | 1124 if (buildCounterResources < 3) { |
| 1054 o.cpu = 42.0; | 1125 o.cpu = 42.0; |
| 1055 o.diskGb = 42.0; | 1126 o.diskGb = 42.0; |
| 1056 o.memoryGb = 42.0; | 1127 o.memoryGb = 42.0; |
| 1057 o.volumes = buildUnnamed3416(); | 1128 o.volumes = buildUnnamed3513(); |
| 1058 } | 1129 } |
| 1059 buildCounterResources--; | 1130 buildCounterResources--; |
| 1060 return o; | 1131 return o; |
| 1061 } | 1132 } |
| 1062 | 1133 |
| 1063 checkResources(api.Resources o) { | 1134 checkResources(api.Resources o) { |
| 1064 buildCounterResources++; | 1135 buildCounterResources++; |
| 1065 if (buildCounterResources < 3) { | 1136 if (buildCounterResources < 3) { |
| 1066 unittest.expect(o.cpu, unittest.equals(42.0)); | 1137 unittest.expect(o.cpu, unittest.equals(42.0)); |
| 1067 unittest.expect(o.diskGb, unittest.equals(42.0)); | 1138 unittest.expect(o.diskGb, unittest.equals(42.0)); |
| 1068 unittest.expect(o.memoryGb, unittest.equals(42.0)); | 1139 unittest.expect(o.memoryGb, unittest.equals(42.0)); |
| 1069 checkUnnamed3416(o.volumes); | 1140 checkUnnamed3513(o.volumes); |
| 1070 } | 1141 } |
| 1071 buildCounterResources--; | 1142 buildCounterResources--; |
| 1072 } | 1143 } |
| 1073 | 1144 |
| 1074 core.int buildCounterScriptHandler = 0; | 1145 core.int buildCounterScriptHandler = 0; |
| 1075 buildScriptHandler() { | 1146 buildScriptHandler() { |
| 1076 var o = new api.ScriptHandler(); | 1147 var o = new api.ScriptHandler(); |
| 1077 buildCounterScriptHandler++; | 1148 buildCounterScriptHandler++; |
| 1078 if (buildCounterScriptHandler < 3) { | 1149 if (buildCounterScriptHandler < 3) { |
| 1079 o.scriptPath = "foo"; | 1150 o.scriptPath = "foo"; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 | 1198 |
| 1128 checkSourceReference(api.SourceReference o) { | 1199 checkSourceReference(api.SourceReference o) { |
| 1129 buildCounterSourceReference++; | 1200 buildCounterSourceReference++; |
| 1130 if (buildCounterSourceReference < 3) { | 1201 if (buildCounterSourceReference < 3) { |
| 1131 unittest.expect(o.repository, unittest.equals('foo')); | 1202 unittest.expect(o.repository, unittest.equals('foo')); |
| 1132 unittest.expect(o.revisionId, unittest.equals('foo')); | 1203 unittest.expect(o.revisionId, unittest.equals('foo')); |
| 1133 } | 1204 } |
| 1134 buildCounterSourceReference--; | 1205 buildCounterSourceReference--; |
| 1135 } | 1206 } |
| 1136 | 1207 |
| 1137 buildUnnamed3417() { | 1208 buildUnnamed3514() { |
| 1138 var o = new core.Map<core.String, core.String>(); | 1209 var o = new core.Map<core.String, core.String>(); |
| 1139 o["x"] = "foo"; | 1210 o["x"] = "foo"; |
| 1140 o["y"] = "foo"; | 1211 o["y"] = "foo"; |
| 1141 return o; | 1212 return o; |
| 1142 } | 1213 } |
| 1143 | 1214 |
| 1144 checkUnnamed3417(core.Map<core.String, core.String> o) { | 1215 checkUnnamed3514(core.Map<core.String, core.String> o) { |
| 1145 unittest.expect(o, unittest.hasLength(2)); | 1216 unittest.expect(o, unittest.hasLength(2)); |
| 1146 unittest.expect(o["x"], unittest.equals('foo')); | 1217 unittest.expect(o["x"], unittest.equals('foo')); |
| 1147 unittest.expect(o["y"], unittest.equals('foo')); | 1218 unittest.expect(o["y"], unittest.equals('foo')); |
| 1148 } | 1219 } |
| 1149 | 1220 |
| 1150 core.int buildCounterStaticFilesHandler = 0; | 1221 core.int buildCounterStaticFilesHandler = 0; |
| 1151 buildStaticFilesHandler() { | 1222 buildStaticFilesHandler() { |
| 1152 var o = new api.StaticFilesHandler(); | 1223 var o = new api.StaticFilesHandler(); |
| 1153 buildCounterStaticFilesHandler++; | 1224 buildCounterStaticFilesHandler++; |
| 1154 if (buildCounterStaticFilesHandler < 3) { | 1225 if (buildCounterStaticFilesHandler < 3) { |
| 1155 o.applicationReadable = true; | 1226 o.applicationReadable = true; |
| 1156 o.expiration = "foo"; | 1227 o.expiration = "foo"; |
| 1157 o.httpHeaders = buildUnnamed3417(); | 1228 o.httpHeaders = buildUnnamed3514(); |
| 1158 o.mimeType = "foo"; | 1229 o.mimeType = "foo"; |
| 1159 o.path = "foo"; | 1230 o.path = "foo"; |
| 1160 o.requireMatchingFile = true; | 1231 o.requireMatchingFile = true; |
| 1161 o.uploadPathRegex = "foo"; | 1232 o.uploadPathRegex = "foo"; |
| 1162 } | 1233 } |
| 1163 buildCounterStaticFilesHandler--; | 1234 buildCounterStaticFilesHandler--; |
| 1164 return o; | 1235 return o; |
| 1165 } | 1236 } |
| 1166 | 1237 |
| 1167 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1238 checkStaticFilesHandler(api.StaticFilesHandler o) { |
| 1168 buildCounterStaticFilesHandler++; | 1239 buildCounterStaticFilesHandler++; |
| 1169 if (buildCounterStaticFilesHandler < 3) { | 1240 if (buildCounterStaticFilesHandler < 3) { |
| 1170 unittest.expect(o.applicationReadable, unittest.isTrue); | 1241 unittest.expect(o.applicationReadable, unittest.isTrue); |
| 1171 unittest.expect(o.expiration, unittest.equals('foo')); | 1242 unittest.expect(o.expiration, unittest.equals('foo')); |
| 1172 checkUnnamed3417(o.httpHeaders); | 1243 checkUnnamed3514(o.httpHeaders); |
| 1173 unittest.expect(o.mimeType, unittest.equals('foo')); | 1244 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 1174 unittest.expect(o.path, unittest.equals('foo')); | 1245 unittest.expect(o.path, unittest.equals('foo')); |
| 1175 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1246 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
| 1176 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1247 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
| 1177 } | 1248 } |
| 1178 buildCounterStaticFilesHandler--; | 1249 buildCounterStaticFilesHandler--; |
| 1179 } | 1250 } |
| 1180 | 1251 |
| 1181 buildUnnamed3418() { | 1252 buildUnnamed3515() { |
| 1182 var o = new core.Map<core.String, core.Object>(); | 1253 var o = new core.Map<core.String, core.Object>(); |
| 1183 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1254 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1184 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1255 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1185 return o; | 1256 return o; |
| 1186 } | 1257 } |
| 1187 | 1258 |
| 1188 checkUnnamed3418(core.Map<core.String, core.Object> o) { | 1259 checkUnnamed3515(core.Map<core.String, core.Object> o) { |
| 1189 unittest.expect(o, unittest.hasLength(2)); | 1260 unittest.expect(o, unittest.hasLength(2)); |
| 1190 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')); | 1261 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')); |
| 1191 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')); | 1262 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')); |
| 1192 } | 1263 } |
| 1193 | 1264 |
| 1194 buildUnnamed3419() { | 1265 buildUnnamed3516() { |
| 1195 var o = new core.List<core.Map<core.String, core.Object>>(); | 1266 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1196 o.add(buildUnnamed3418()); | 1267 o.add(buildUnnamed3515()); |
| 1197 o.add(buildUnnamed3418()); | 1268 o.add(buildUnnamed3515()); |
| 1198 return o; | 1269 return o; |
| 1199 } | 1270 } |
| 1200 | 1271 |
| 1201 checkUnnamed3419(core.List<core.Map<core.String, core.Object>> o) { | 1272 checkUnnamed3516(core.List<core.Map<core.String, core.Object>> o) { |
| 1202 unittest.expect(o, unittest.hasLength(2)); | 1273 unittest.expect(o, unittest.hasLength(2)); |
| 1203 checkUnnamed3418(o[0]); | 1274 checkUnnamed3515(o[0]); |
| 1204 checkUnnamed3418(o[1]); | 1275 checkUnnamed3515(o[1]); |
| 1205 } | 1276 } |
| 1206 | 1277 |
| 1207 core.int buildCounterStatus = 0; | 1278 core.int buildCounterStatus = 0; |
| 1208 buildStatus() { | 1279 buildStatus() { |
| 1209 var o = new api.Status(); | 1280 var o = new api.Status(); |
| 1210 buildCounterStatus++; | 1281 buildCounterStatus++; |
| 1211 if (buildCounterStatus < 3) { | 1282 if (buildCounterStatus < 3) { |
| 1212 o.code = 42; | 1283 o.code = 42; |
| 1213 o.details = buildUnnamed3419(); | 1284 o.details = buildUnnamed3516(); |
| 1214 o.message = "foo"; | 1285 o.message = "foo"; |
| 1215 } | 1286 } |
| 1216 buildCounterStatus--; | 1287 buildCounterStatus--; |
| 1217 return o; | 1288 return o; |
| 1218 } | 1289 } |
| 1219 | 1290 |
| 1220 checkStatus(api.Status o) { | 1291 checkStatus(api.Status o) { |
| 1221 buildCounterStatus++; | 1292 buildCounterStatus++; |
| 1222 if (buildCounterStatus < 3) { | 1293 if (buildCounterStatus < 3) { |
| 1223 unittest.expect(o.code, unittest.equals(42)); | 1294 unittest.expect(o.code, unittest.equals(42)); |
| 1224 checkUnnamed3419(o.details); | 1295 checkUnnamed3516(o.details); |
| 1225 unittest.expect(o.message, unittest.equals('foo')); | 1296 unittest.expect(o.message, unittest.equals('foo')); |
| 1226 } | 1297 } |
| 1227 buildCounterStatus--; | 1298 buildCounterStatus--; |
| 1228 } | 1299 } |
| 1229 | 1300 |
| 1230 buildUnnamed3420() { | 1301 buildUnnamed3517() { |
| 1231 var o = new core.Map<core.String, core.double>(); | 1302 var o = new core.Map<core.String, core.double>(); |
| 1232 o["x"] = 42.0; | 1303 o["x"] = 42.0; |
| 1233 o["y"] = 42.0; | 1304 o["y"] = 42.0; |
| 1234 return o; | 1305 return o; |
| 1235 } | 1306 } |
| 1236 | 1307 |
| 1237 checkUnnamed3420(core.Map<core.String, core.double> o) { | 1308 checkUnnamed3517(core.Map<core.String, core.double> o) { |
| 1238 unittest.expect(o, unittest.hasLength(2)); | 1309 unittest.expect(o, unittest.hasLength(2)); |
| 1239 unittest.expect(o["x"], unittest.equals(42.0)); | 1310 unittest.expect(o["x"], unittest.equals(42.0)); |
| 1240 unittest.expect(o["y"], unittest.equals(42.0)); | 1311 unittest.expect(o["y"], unittest.equals(42.0)); |
| 1241 } | 1312 } |
| 1242 | 1313 |
| 1243 core.int buildCounterTrafficSplit = 0; | 1314 core.int buildCounterTrafficSplit = 0; |
| 1244 buildTrafficSplit() { | 1315 buildTrafficSplit() { |
| 1245 var o = new api.TrafficSplit(); | 1316 var o = new api.TrafficSplit(); |
| 1246 buildCounterTrafficSplit++; | 1317 buildCounterTrafficSplit++; |
| 1247 if (buildCounterTrafficSplit < 3) { | 1318 if (buildCounterTrafficSplit < 3) { |
| 1248 o.allocations = buildUnnamed3420(); | 1319 o.allocations = buildUnnamed3517(); |
| 1249 o.shardBy = "foo"; | 1320 o.shardBy = "foo"; |
| 1250 } | 1321 } |
| 1251 buildCounterTrafficSplit--; | 1322 buildCounterTrafficSplit--; |
| 1252 return o; | 1323 return o; |
| 1253 } | 1324 } |
| 1254 | 1325 |
| 1255 checkTrafficSplit(api.TrafficSplit o) { | 1326 checkTrafficSplit(api.TrafficSplit o) { |
| 1256 buildCounterTrafficSplit++; | 1327 buildCounterTrafficSplit++; |
| 1257 if (buildCounterTrafficSplit < 3) { | 1328 if (buildCounterTrafficSplit < 3) { |
| 1258 checkUnnamed3420(o.allocations); | 1329 checkUnnamed3517(o.allocations); |
| 1259 unittest.expect(o.shardBy, unittest.equals('foo')); | 1330 unittest.expect(o.shardBy, unittest.equals('foo')); |
| 1260 } | 1331 } |
| 1261 buildCounterTrafficSplit--; | 1332 buildCounterTrafficSplit--; |
| 1262 } | 1333 } |
| 1263 | 1334 |
| 1264 core.int buildCounterUrlDispatchRule = 0; | 1335 core.int buildCounterUrlDispatchRule = 0; |
| 1265 buildUrlDispatchRule() { | 1336 buildUrlDispatchRule() { |
| 1266 var o = new api.UrlDispatchRule(); | 1337 var o = new api.UrlDispatchRule(); |
| 1267 buildCounterUrlDispatchRule++; | 1338 buildCounterUrlDispatchRule++; |
| 1268 if (buildCounterUrlDispatchRule < 3) { | 1339 if (buildCounterUrlDispatchRule < 3) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1310 unittest.expect(o.login, unittest.equals('foo')); | 1381 unittest.expect(o.login, unittest.equals('foo')); |
| 1311 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1382 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
| 1312 checkScriptHandler(o.script); | 1383 checkScriptHandler(o.script); |
| 1313 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1384 unittest.expect(o.securityLevel, unittest.equals('foo')); |
| 1314 checkStaticFilesHandler(o.staticFiles); | 1385 checkStaticFilesHandler(o.staticFiles); |
| 1315 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1386 unittest.expect(o.urlRegex, unittest.equals('foo')); |
| 1316 } | 1387 } |
| 1317 buildCounterUrlMap--; | 1388 buildCounterUrlMap--; |
| 1318 } | 1389 } |
| 1319 | 1390 |
| 1320 buildUnnamed3421() { | 1391 buildUnnamed3518() { |
| 1321 var o = new core.Map<core.String, core.String>(); | 1392 var o = new core.Map<core.String, core.String>(); |
| 1322 o["x"] = "foo"; | 1393 o["x"] = "foo"; |
| 1323 o["y"] = "foo"; | 1394 o["y"] = "foo"; |
| 1324 return o; | 1395 return o; |
| 1325 } | 1396 } |
| 1326 | 1397 |
| 1327 checkUnnamed3421(core.Map<core.String, core.String> o) { | 1398 checkUnnamed3518(core.Map<core.String, core.String> o) { |
| 1328 unittest.expect(o, unittest.hasLength(2)); | 1399 unittest.expect(o, unittest.hasLength(2)); |
| 1329 unittest.expect(o["x"], unittest.equals('foo')); | 1400 unittest.expect(o["x"], unittest.equals('foo')); |
| 1330 unittest.expect(o["y"], unittest.equals('foo')); | 1401 unittest.expect(o["y"], unittest.equals('foo')); |
| 1331 } | 1402 } |
| 1332 | 1403 |
| 1333 buildUnnamed3422() { | 1404 buildUnnamed3519() { |
| 1334 var o = new core.Map<core.String, core.String>(); | 1405 var o = new core.Map<core.String, core.String>(); |
| 1335 o["x"] = "foo"; | 1406 o["x"] = "foo"; |
| 1336 o["y"] = "foo"; | 1407 o["y"] = "foo"; |
| 1337 return o; | 1408 return o; |
| 1338 } | 1409 } |
| 1339 | 1410 |
| 1340 checkUnnamed3422(core.Map<core.String, core.String> o) { | 1411 checkUnnamed3519(core.Map<core.String, core.String> o) { |
| 1341 unittest.expect(o, unittest.hasLength(2)); | 1412 unittest.expect(o, unittest.hasLength(2)); |
| 1342 unittest.expect(o["x"], unittest.equals('foo')); | 1413 unittest.expect(o["x"], unittest.equals('foo')); |
| 1343 unittest.expect(o["y"], unittest.equals('foo')); | 1414 unittest.expect(o["y"], unittest.equals('foo')); |
| 1344 } | 1415 } |
| 1345 | 1416 |
| 1346 buildUnnamed3423() { | 1417 buildUnnamed3520() { |
| 1347 var o = new core.List<api.ErrorHandler>(); | 1418 var o = new core.List<api.ErrorHandler>(); |
| 1348 o.add(buildErrorHandler()); | 1419 o.add(buildErrorHandler()); |
| 1349 o.add(buildErrorHandler()); | 1420 o.add(buildErrorHandler()); |
| 1350 return o; | 1421 return o; |
| 1351 } | 1422 } |
| 1352 | 1423 |
| 1353 checkUnnamed3423(core.List<api.ErrorHandler> o) { | 1424 checkUnnamed3520(core.List<api.ErrorHandler> o) { |
| 1354 unittest.expect(o, unittest.hasLength(2)); | 1425 unittest.expect(o, unittest.hasLength(2)); |
| 1355 checkErrorHandler(o[0]); | 1426 checkErrorHandler(o[0]); |
| 1356 checkErrorHandler(o[1]); | 1427 checkErrorHandler(o[1]); |
| 1357 } | 1428 } |
| 1358 | 1429 |
| 1359 buildUnnamed3424() { | 1430 buildUnnamed3521() { |
| 1360 var o = new core.List<api.UrlMap>(); | 1431 var o = new core.List<api.UrlMap>(); |
| 1361 o.add(buildUrlMap()); | 1432 o.add(buildUrlMap()); |
| 1362 o.add(buildUrlMap()); | 1433 o.add(buildUrlMap()); |
| 1363 return o; | 1434 return o; |
| 1364 } | 1435 } |
| 1365 | 1436 |
| 1366 checkUnnamed3424(core.List<api.UrlMap> o) { | 1437 checkUnnamed3521(core.List<api.UrlMap> o) { |
| 1367 unittest.expect(o, unittest.hasLength(2)); | 1438 unittest.expect(o, unittest.hasLength(2)); |
| 1368 checkUrlMap(o[0]); | 1439 checkUrlMap(o[0]); |
| 1369 checkUrlMap(o[1]); | 1440 checkUrlMap(o[1]); |
| 1370 } | 1441 } |
| 1371 | 1442 |
| 1372 buildUnnamed3425() { | 1443 buildUnnamed3522() { |
| 1373 var o = new core.List<core.String>(); | 1444 var o = new core.List<core.String>(); |
| 1374 o.add("foo"); | 1445 o.add("foo"); |
| 1375 o.add("foo"); | 1446 o.add("foo"); |
| 1376 return o; | 1447 return o; |
| 1377 } | 1448 } |
| 1378 | 1449 |
| 1379 checkUnnamed3425(core.List<core.String> o) { | 1450 checkUnnamed3522(core.List<core.String> o) { |
| 1380 unittest.expect(o, unittest.hasLength(2)); | 1451 unittest.expect(o, unittest.hasLength(2)); |
| 1381 unittest.expect(o[0], unittest.equals('foo')); | 1452 unittest.expect(o[0], unittest.equals('foo')); |
| 1382 unittest.expect(o[1], unittest.equals('foo')); | 1453 unittest.expect(o[1], unittest.equals('foo')); |
| 1383 } | 1454 } |
| 1384 | 1455 |
| 1385 buildUnnamed3426() { | 1456 buildUnnamed3523() { |
| 1386 var o = new core.List<api.Library>(); | 1457 var o = new core.List<api.Library>(); |
| 1387 o.add(buildLibrary()); | 1458 o.add(buildLibrary()); |
| 1388 o.add(buildLibrary()); | 1459 o.add(buildLibrary()); |
| 1389 return o; | 1460 return o; |
| 1390 } | 1461 } |
| 1391 | 1462 |
| 1392 checkUnnamed3426(core.List<api.Library> o) { | 1463 checkUnnamed3523(core.List<api.Library> o) { |
| 1393 unittest.expect(o, unittest.hasLength(2)); | 1464 unittest.expect(o, unittest.hasLength(2)); |
| 1394 checkLibrary(o[0]); | 1465 checkLibrary(o[0]); |
| 1395 checkLibrary(o[1]); | 1466 checkLibrary(o[1]); |
| 1396 } | 1467 } |
| 1397 | 1468 |
| 1398 core.int buildCounterVersion = 0; | 1469 core.int buildCounterVersion = 0; |
| 1399 buildVersion() { | 1470 buildVersion() { |
| 1400 var o = new api.Version(); | 1471 var o = new api.Version(); |
| 1401 buildCounterVersion++; | 1472 buildCounterVersion++; |
| 1402 if (buildCounterVersion < 3) { | 1473 if (buildCounterVersion < 3) { |
| 1403 o.apiConfig = buildApiConfigHandler(); | 1474 o.apiConfig = buildApiConfigHandler(); |
| 1404 o.automaticScaling = buildAutomaticScaling(); | 1475 o.automaticScaling = buildAutomaticScaling(); |
| 1405 o.basicScaling = buildBasicScaling(); | 1476 o.basicScaling = buildBasicScaling(); |
| 1406 o.betaSettings = buildUnnamed3421(); | 1477 o.betaSettings = buildUnnamed3518(); |
| 1407 o.creationTime = "foo"; | 1478 o.creationTime = "foo"; |
| 1408 o.defaultExpiration = "foo"; | 1479 o.defaultExpiration = "foo"; |
| 1409 o.deployer = "foo"; | 1480 o.deployer = "foo"; |
| 1410 o.deployment = buildDeployment(); | 1481 o.deployment = buildDeployment(); |
| 1411 o.diskUsageBytes = "foo"; | 1482 o.diskUsageBytes = "foo"; |
| 1412 o.endpointsApiService = buildEndpointsApiService(); | 1483 o.endpointsApiService = buildEndpointsApiService(); |
| 1413 o.env = "foo"; | 1484 o.env = "foo"; |
| 1414 o.envVariables = buildUnnamed3422(); | 1485 o.envVariables = buildUnnamed3519(); |
| 1415 o.errorHandlers = buildUnnamed3423(); | 1486 o.errorHandlers = buildUnnamed3520(); |
| 1416 o.handlers = buildUnnamed3424(); | 1487 o.handlers = buildUnnamed3521(); |
| 1417 o.healthCheck = buildHealthCheck(); | 1488 o.healthCheck = buildHealthCheck(); |
| 1418 o.id = "foo"; | 1489 o.id = "foo"; |
| 1419 o.inboundServices = buildUnnamed3425(); | 1490 o.inboundServices = buildUnnamed3522(); |
| 1420 o.instanceClass = "foo"; | 1491 o.instanceClass = "foo"; |
| 1421 o.libraries = buildUnnamed3426(); | 1492 o.libraries = buildUnnamed3523(); |
| 1422 o.manualScaling = buildManualScaling(); | 1493 o.manualScaling = buildManualScaling(); |
| 1423 o.name = "foo"; | 1494 o.name = "foo"; |
| 1424 o.network = buildNetwork(); | 1495 o.network = buildNetwork(); |
| 1425 o.nobuildFilesRegex = "foo"; | 1496 o.nobuildFilesRegex = "foo"; |
| 1426 o.resources = buildResources(); | 1497 o.resources = buildResources(); |
| 1427 o.runtime = "foo"; | 1498 o.runtime = "foo"; |
| 1428 o.servingStatus = "foo"; | 1499 o.servingStatus = "foo"; |
| 1429 o.threadsafe = true; | 1500 o.threadsafe = true; |
| 1430 o.vm = true; | 1501 o.vm = true; |
| 1431 } | 1502 } |
| 1432 buildCounterVersion--; | 1503 buildCounterVersion--; |
| 1433 return o; | 1504 return o; |
| 1434 } | 1505 } |
| 1435 | 1506 |
| 1436 checkVersion(api.Version o) { | 1507 checkVersion(api.Version o) { |
| 1437 buildCounterVersion++; | 1508 buildCounterVersion++; |
| 1438 if (buildCounterVersion < 3) { | 1509 if (buildCounterVersion < 3) { |
| 1439 checkApiConfigHandler(o.apiConfig); | 1510 checkApiConfigHandler(o.apiConfig); |
| 1440 checkAutomaticScaling(o.automaticScaling); | 1511 checkAutomaticScaling(o.automaticScaling); |
| 1441 checkBasicScaling(o.basicScaling); | 1512 checkBasicScaling(o.basicScaling); |
| 1442 checkUnnamed3421(o.betaSettings); | 1513 checkUnnamed3518(o.betaSettings); |
| 1443 unittest.expect(o.creationTime, unittest.equals('foo')); | 1514 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 1444 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1515 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
| 1445 unittest.expect(o.deployer, unittest.equals('foo')); | 1516 unittest.expect(o.deployer, unittest.equals('foo')); |
| 1446 checkDeployment(o.deployment); | 1517 checkDeployment(o.deployment); |
| 1447 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); | 1518 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); |
| 1448 checkEndpointsApiService(o.endpointsApiService); | 1519 checkEndpointsApiService(o.endpointsApiService); |
| 1449 unittest.expect(o.env, unittest.equals('foo')); | 1520 unittest.expect(o.env, unittest.equals('foo')); |
| 1450 checkUnnamed3422(o.envVariables); | 1521 checkUnnamed3519(o.envVariables); |
| 1451 checkUnnamed3423(o.errorHandlers); | 1522 checkUnnamed3520(o.errorHandlers); |
| 1452 checkUnnamed3424(o.handlers); | 1523 checkUnnamed3521(o.handlers); |
| 1453 checkHealthCheck(o.healthCheck); | 1524 checkHealthCheck(o.healthCheck); |
| 1454 unittest.expect(o.id, unittest.equals('foo')); | 1525 unittest.expect(o.id, unittest.equals('foo')); |
| 1455 checkUnnamed3425(o.inboundServices); | 1526 checkUnnamed3522(o.inboundServices); |
| 1456 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1527 unittest.expect(o.instanceClass, unittest.equals('foo')); |
| 1457 checkUnnamed3426(o.libraries); | 1528 checkUnnamed3523(o.libraries); |
| 1458 checkManualScaling(o.manualScaling); | 1529 checkManualScaling(o.manualScaling); |
| 1459 unittest.expect(o.name, unittest.equals('foo')); | 1530 unittest.expect(o.name, unittest.equals('foo')); |
| 1460 checkNetwork(o.network); | 1531 checkNetwork(o.network); |
| 1461 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1532 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
| 1462 checkResources(o.resources); | 1533 checkResources(o.resources); |
| 1463 unittest.expect(o.runtime, unittest.equals('foo')); | 1534 unittest.expect(o.runtime, unittest.equals('foo')); |
| 1464 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1535 unittest.expect(o.servingStatus, unittest.equals('foo')); |
| 1465 unittest.expect(o.threadsafe, unittest.isTrue); | 1536 unittest.expect(o.threadsafe, unittest.isTrue); |
| 1466 unittest.expect(o.vm, unittest.isTrue); | 1537 unittest.expect(o.vm, unittest.isTrue); |
| 1467 } | 1538 } |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1612 | 1683 |
| 1613 unittest.group("obj-schema-HealthCheck", () { | 1684 unittest.group("obj-schema-HealthCheck", () { |
| 1614 unittest.test("to-json--from-json", () { | 1685 unittest.test("to-json--from-json", () { |
| 1615 var o = buildHealthCheck(); | 1686 var o = buildHealthCheck(); |
| 1616 var od = new api.HealthCheck.fromJson(o.toJson()); | 1687 var od = new api.HealthCheck.fromJson(o.toJson()); |
| 1617 checkHealthCheck(od); | 1688 checkHealthCheck(od); |
| 1618 }); | 1689 }); |
| 1619 }); | 1690 }); |
| 1620 | 1691 |
| 1621 | 1692 |
| 1693 unittest.group("obj-schema-IdentityAwareProxy", () { |
| 1694 unittest.test("to-json--from-json", () { |
| 1695 var o = buildIdentityAwareProxy(); |
| 1696 var od = new api.IdentityAwareProxy.fromJson(o.toJson()); |
| 1697 checkIdentityAwareProxy(od); |
| 1698 }); |
| 1699 }); |
| 1700 |
| 1701 |
| 1622 unittest.group("obj-schema-Instance", () { | 1702 unittest.group("obj-schema-Instance", () { |
| 1623 unittest.test("to-json--from-json", () { | 1703 unittest.test("to-json--from-json", () { |
| 1624 var o = buildInstance(); | 1704 var o = buildInstance(); |
| 1625 var od = new api.Instance.fromJson(o.toJson()); | 1705 var od = new api.Instance.fromJson(o.toJson()); |
| 1626 checkInstance(od); | 1706 checkInstance(od); |
| 1627 }); | 1707 }); |
| 1628 }); | 1708 }); |
| 1629 | 1709 |
| 1630 | 1710 |
| 1631 unittest.group("obj-schema-Library", () { | 1711 unittest.group("obj-schema-Library", () { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1756 | 1836 |
| 1757 unittest.group("obj-schema-OperationMetadataV1", () { | 1837 unittest.group("obj-schema-OperationMetadataV1", () { |
| 1758 unittest.test("to-json--from-json", () { | 1838 unittest.test("to-json--from-json", () { |
| 1759 var o = buildOperationMetadataV1(); | 1839 var o = buildOperationMetadataV1(); |
| 1760 var od = new api.OperationMetadataV1.fromJson(o.toJson()); | 1840 var od = new api.OperationMetadataV1.fromJson(o.toJson()); |
| 1761 checkOperationMetadataV1(od); | 1841 checkOperationMetadataV1(od); |
| 1762 }); | 1842 }); |
| 1763 }); | 1843 }); |
| 1764 | 1844 |
| 1765 | 1845 |
| 1846 unittest.group("obj-schema-OperationMetadataV1Beta", () { |
| 1847 unittest.test("to-json--from-json", () { |
| 1848 var o = buildOperationMetadataV1Beta(); |
| 1849 var od = new api.OperationMetadataV1Beta.fromJson(o.toJson()); |
| 1850 checkOperationMetadataV1Beta(od); |
| 1851 }); |
| 1852 }); |
| 1853 |
| 1854 |
| 1766 unittest.group("obj-schema-OperationMetadataV1Beta5", () { | 1855 unittest.group("obj-schema-OperationMetadataV1Beta5", () { |
| 1767 unittest.test("to-json--from-json", () { | 1856 unittest.test("to-json--from-json", () { |
| 1768 var o = buildOperationMetadataV1Beta5(); | 1857 var o = buildOperationMetadataV1Beta5(); |
| 1769 var od = new api.OperationMetadataV1Beta5.fromJson(o.toJson()); | 1858 var od = new api.OperationMetadataV1Beta5.fromJson(o.toJson()); |
| 1770 checkOperationMetadataV1Beta5(od); | 1859 checkOperationMetadataV1Beta5(od); |
| 1771 }); | 1860 }); |
| 1772 }); | 1861 }); |
| 1773 | 1862 |
| 1774 | 1863 |
| 1775 unittest.group("obj-schema-RequestUtilization", () { | 1864 unittest.group("obj-schema-RequestUtilization", () { |
| (...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3117 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { | 3206 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { |
| 3118 checkListInstancesResponse(response); | 3207 checkListInstancesResponse(response); |
| 3119 }))); | 3208 }))); |
| 3120 }); | 3209 }); |
| 3121 | 3210 |
| 3122 }); | 3211 }); |
| 3123 | 3212 |
| 3124 | 3213 |
| 3125 } | 3214 } |
| 3126 | 3215 |
| OLD | NEW |