| 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 buildUnnamed4166() { | 100 buildUnnamed4001() { |
| 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 checkUnnamed4166(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed4001(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 = buildUnnamed4166(); | 123 o.dispatchRules = buildUnnamed4001(); |
| 124 o.id = "foo"; | 124 o.id = "foo"; |
| 125 o.location = "foo"; | 125 o.location = "foo"; |
| 126 o.name = "foo"; | 126 o.name = "foo"; |
| 127 } | 127 } |
| 128 buildCounterApplication--; | 128 buildCounterApplication--; |
| 129 return o; | 129 return o; |
| 130 } | 130 } |
| 131 | 131 |
| 132 checkApplication(api.Application o) { | 132 checkApplication(api.Application o) { |
| 133 buildCounterApplication++; | 133 buildCounterApplication++; |
| 134 if (buildCounterApplication < 3) { | 134 if (buildCounterApplication < 3) { |
| 135 unittest.expect(o.authDomain, unittest.equals('foo')); | 135 unittest.expect(o.authDomain, unittest.equals('foo')); |
| 136 unittest.expect(o.codeBucket, unittest.equals('foo')); | 136 unittest.expect(o.codeBucket, unittest.equals('foo')); |
| 137 unittest.expect(o.defaultBucket, unittest.equals('foo')); | 137 unittest.expect(o.defaultBucket, unittest.equals('foo')); |
| 138 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); | 138 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); |
| 139 unittest.expect(o.defaultHostname, unittest.equals('foo')); | 139 unittest.expect(o.defaultHostname, unittest.equals('foo')); |
| 140 checkUnnamed4166(o.dispatchRules); | 140 checkUnnamed4001(o.dispatchRules); |
| 141 unittest.expect(o.id, unittest.equals('foo')); | 141 unittest.expect(o.id, unittest.equals('foo')); |
| 142 unittest.expect(o.location, unittest.equals('foo')); | 142 unittest.expect(o.location, unittest.equals('foo')); |
| 143 unittest.expect(o.name, unittest.equals('foo')); | 143 unittest.expect(o.name, unittest.equals('foo')); |
| 144 } | 144 } |
| 145 buildCounterApplication--; | 145 buildCounterApplication--; |
| 146 } | 146 } |
| 147 | 147 |
| 148 core.int buildCounterAutomaticScaling = 0; | 148 core.int buildCounterAutomaticScaling = 0; |
| 149 buildAutomaticScaling() { | 149 buildAutomaticScaling() { |
| 150 var o = new api.AutomaticScaling(); | 150 var o = new api.AutomaticScaling(); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 unittest.expect(o.targetUtilization, unittest.equals(42.0)); | 245 unittest.expect(o.targetUtilization, unittest.equals(42.0)); |
| 246 } | 246 } |
| 247 buildCounterCpuUtilization--; | 247 buildCounterCpuUtilization--; |
| 248 } | 248 } |
| 249 | 249 |
| 250 core.int buildCounterDebugInstanceRequest = 0; | 250 core.int buildCounterDebugInstanceRequest = 0; |
| 251 buildDebugInstanceRequest() { | 251 buildDebugInstanceRequest() { |
| 252 var o = new api.DebugInstanceRequest(); | 252 var o = new api.DebugInstanceRequest(); |
| 253 buildCounterDebugInstanceRequest++; | 253 buildCounterDebugInstanceRequest++; |
| 254 if (buildCounterDebugInstanceRequest < 3) { | 254 if (buildCounterDebugInstanceRequest < 3) { |
| 255 o.sshKey = "foo"; |
| 255 } | 256 } |
| 256 buildCounterDebugInstanceRequest--; | 257 buildCounterDebugInstanceRequest--; |
| 257 return o; | 258 return o; |
| 258 } | 259 } |
| 259 | 260 |
| 260 checkDebugInstanceRequest(api.DebugInstanceRequest o) { | 261 checkDebugInstanceRequest(api.DebugInstanceRequest o) { |
| 261 buildCounterDebugInstanceRequest++; | 262 buildCounterDebugInstanceRequest++; |
| 262 if (buildCounterDebugInstanceRequest < 3) { | 263 if (buildCounterDebugInstanceRequest < 3) { |
| 264 unittest.expect(o.sshKey, unittest.equals('foo')); |
| 263 } | 265 } |
| 264 buildCounterDebugInstanceRequest--; | 266 buildCounterDebugInstanceRequest--; |
| 265 } | 267 } |
| 266 | 268 |
| 267 buildUnnamed4167() { | 269 buildUnnamed4002() { |
| 268 var o = new core.Map<core.String, api.FileInfo>(); | 270 var o = new core.Map<core.String, api.FileInfo>(); |
| 269 o["x"] = buildFileInfo(); | 271 o["x"] = buildFileInfo(); |
| 270 o["y"] = buildFileInfo(); | 272 o["y"] = buildFileInfo(); |
| 271 return o; | 273 return o; |
| 272 } | 274 } |
| 273 | 275 |
| 274 checkUnnamed4167(core.Map<core.String, api.FileInfo> o) { | 276 checkUnnamed4002(core.Map<core.String, api.FileInfo> o) { |
| 275 unittest.expect(o, unittest.hasLength(2)); | 277 unittest.expect(o, unittest.hasLength(2)); |
| 276 checkFileInfo(o["x"]); | 278 checkFileInfo(o["x"]); |
| 277 checkFileInfo(o["y"]); | 279 checkFileInfo(o["y"]); |
| 278 } | 280 } |
| 279 | 281 |
| 280 buildUnnamed4168() { | 282 buildUnnamed4003() { |
| 281 var o = new core.List<api.SourceReference>(); | 283 var o = new core.List<api.SourceReference>(); |
| 282 o.add(buildSourceReference()); | 284 o.add(buildSourceReference()); |
| 283 o.add(buildSourceReference()); | 285 o.add(buildSourceReference()); |
| 284 return o; | 286 return o; |
| 285 } | 287 } |
| 286 | 288 |
| 287 checkUnnamed4168(core.List<api.SourceReference> o) { | 289 checkUnnamed4003(core.List<api.SourceReference> o) { |
| 288 unittest.expect(o, unittest.hasLength(2)); | 290 unittest.expect(o, unittest.hasLength(2)); |
| 289 checkSourceReference(o[0]); | 291 checkSourceReference(o[0]); |
| 290 checkSourceReference(o[1]); | 292 checkSourceReference(o[1]); |
| 291 } | 293 } |
| 292 | 294 |
| 293 core.int buildCounterDeployment = 0; | 295 core.int buildCounterDeployment = 0; |
| 294 buildDeployment() { | 296 buildDeployment() { |
| 295 var o = new api.Deployment(); | 297 var o = new api.Deployment(); |
| 296 buildCounterDeployment++; | 298 buildCounterDeployment++; |
| 297 if (buildCounterDeployment < 3) { | 299 if (buildCounterDeployment < 3) { |
| 298 o.container = buildContainerInfo(); | 300 o.container = buildContainerInfo(); |
| 299 o.files = buildUnnamed4167(); | 301 o.files = buildUnnamed4002(); |
| 300 o.sourceReferences = buildUnnamed4168(); | 302 o.sourceReferences = buildUnnamed4003(); |
| 301 } | 303 } |
| 302 buildCounterDeployment--; | 304 buildCounterDeployment--; |
| 303 return o; | 305 return o; |
| 304 } | 306 } |
| 305 | 307 |
| 306 checkDeployment(api.Deployment o) { | 308 checkDeployment(api.Deployment o) { |
| 307 buildCounterDeployment++; | 309 buildCounterDeployment++; |
| 308 if (buildCounterDeployment < 3) { | 310 if (buildCounterDeployment < 3) { |
| 309 checkContainerInfo(o.container); | 311 checkContainerInfo(o.container); |
| 310 checkUnnamed4167(o.files); | 312 checkUnnamed4002(o.files); |
| 311 checkUnnamed4168(o.sourceReferences); | 313 checkUnnamed4003(o.sourceReferences); |
| 312 } | 314 } |
| 313 buildCounterDeployment--; | 315 buildCounterDeployment--; |
| 314 } | 316 } |
| 315 | 317 |
| 316 core.int buildCounterDiskUtilization = 0; | 318 core.int buildCounterDiskUtilization = 0; |
| 317 buildDiskUtilization() { | 319 buildDiskUtilization() { |
| 318 var o = new api.DiskUtilization(); | 320 var o = new api.DiskUtilization(); |
| 319 buildCounterDiskUtilization++; | 321 buildCounterDiskUtilization++; |
| 320 if (buildCounterDiskUtilization < 3) { | 322 if (buildCounterDiskUtilization < 3) { |
| 321 o.targetReadBytesPerSec = 42; | 323 o.targetReadBytesPerSec = 42; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 o.availability = "foo"; | 426 o.availability = "foo"; |
| 425 o.averageLatency = 42; | 427 o.averageLatency = 42; |
| 426 o.errors = 42; | 428 o.errors = 42; |
| 427 o.id = "foo"; | 429 o.id = "foo"; |
| 428 o.memoryUsage = "foo"; | 430 o.memoryUsage = "foo"; |
| 429 o.name = "foo"; | 431 o.name = "foo"; |
| 430 o.qps = 42.0; | 432 o.qps = 42.0; |
| 431 o.requests = 42; | 433 o.requests = 42; |
| 432 o.startTimestamp = "foo"; | 434 o.startTimestamp = "foo"; |
| 433 o.vmId = "foo"; | 435 o.vmId = "foo"; |
| 436 o.vmIp = "foo"; |
| 434 o.vmName = "foo"; | 437 o.vmName = "foo"; |
| 435 o.vmStatus = "foo"; | 438 o.vmStatus = "foo"; |
| 436 o.vmUnlocked = true; | 439 o.vmUnlocked = true; |
| 437 o.vmZoneName = "foo"; | 440 o.vmZoneName = "foo"; |
| 438 } | 441 } |
| 439 buildCounterInstance--; | 442 buildCounterInstance--; |
| 440 return o; | 443 return o; |
| 441 } | 444 } |
| 442 | 445 |
| 443 checkInstance(api.Instance o) { | 446 checkInstance(api.Instance o) { |
| 444 buildCounterInstance++; | 447 buildCounterInstance++; |
| 445 if (buildCounterInstance < 3) { | 448 if (buildCounterInstance < 3) { |
| 446 unittest.expect(o.appEngineRelease, unittest.equals('foo')); | 449 unittest.expect(o.appEngineRelease, unittest.equals('foo')); |
| 447 unittest.expect(o.availability, unittest.equals('foo')); | 450 unittest.expect(o.availability, unittest.equals('foo')); |
| 448 unittest.expect(o.averageLatency, unittest.equals(42)); | 451 unittest.expect(o.averageLatency, unittest.equals(42)); |
| 449 unittest.expect(o.errors, unittest.equals(42)); | 452 unittest.expect(o.errors, unittest.equals(42)); |
| 450 unittest.expect(o.id, unittest.equals('foo')); | 453 unittest.expect(o.id, unittest.equals('foo')); |
| 451 unittest.expect(o.memoryUsage, unittest.equals('foo')); | 454 unittest.expect(o.memoryUsage, unittest.equals('foo')); |
| 452 unittest.expect(o.name, unittest.equals('foo')); | 455 unittest.expect(o.name, unittest.equals('foo')); |
| 453 unittest.expect(o.qps, unittest.equals(42.0)); | 456 unittest.expect(o.qps, unittest.equals(42.0)); |
| 454 unittest.expect(o.requests, unittest.equals(42)); | 457 unittest.expect(o.requests, unittest.equals(42)); |
| 455 unittest.expect(o.startTimestamp, unittest.equals('foo')); | 458 unittest.expect(o.startTimestamp, unittest.equals('foo')); |
| 456 unittest.expect(o.vmId, unittest.equals('foo')); | 459 unittest.expect(o.vmId, unittest.equals('foo')); |
| 460 unittest.expect(o.vmIp, unittest.equals('foo')); |
| 457 unittest.expect(o.vmName, unittest.equals('foo')); | 461 unittest.expect(o.vmName, unittest.equals('foo')); |
| 458 unittest.expect(o.vmStatus, unittest.equals('foo')); | 462 unittest.expect(o.vmStatus, unittest.equals('foo')); |
| 459 unittest.expect(o.vmUnlocked, unittest.isTrue); | 463 unittest.expect(o.vmUnlocked, unittest.isTrue); |
| 460 unittest.expect(o.vmZoneName, unittest.equals('foo')); | 464 unittest.expect(o.vmZoneName, unittest.equals('foo')); |
| 461 } | 465 } |
| 462 buildCounterInstance--; | 466 buildCounterInstance--; |
| 463 } | 467 } |
| 464 | 468 |
| 465 core.int buildCounterLibrary = 0; | 469 core.int buildCounterLibrary = 0; |
| 466 buildLibrary() { | 470 buildLibrary() { |
| 467 var o = new api.Library(); | 471 var o = new api.Library(); |
| 468 buildCounterLibrary++; | 472 buildCounterLibrary++; |
| 469 if (buildCounterLibrary < 3) { | 473 if (buildCounterLibrary < 3) { |
| 470 o.name = "foo"; | 474 o.name = "foo"; |
| 471 o.version = "foo"; | 475 o.version = "foo"; |
| 472 } | 476 } |
| 473 buildCounterLibrary--; | 477 buildCounterLibrary--; |
| 474 return o; | 478 return o; |
| 475 } | 479 } |
| 476 | 480 |
| 477 checkLibrary(api.Library o) { | 481 checkLibrary(api.Library o) { |
| 478 buildCounterLibrary++; | 482 buildCounterLibrary++; |
| 479 if (buildCounterLibrary < 3) { | 483 if (buildCounterLibrary < 3) { |
| 480 unittest.expect(o.name, unittest.equals('foo')); | 484 unittest.expect(o.name, unittest.equals('foo')); |
| 481 unittest.expect(o.version, unittest.equals('foo')); | 485 unittest.expect(o.version, unittest.equals('foo')); |
| 482 } | 486 } |
| 483 buildCounterLibrary--; | 487 buildCounterLibrary--; |
| 484 } | 488 } |
| 485 | 489 |
| 486 buildUnnamed4169() { | 490 buildUnnamed4004() { |
| 487 var o = new core.List<api.Instance>(); | 491 var o = new core.List<api.Instance>(); |
| 488 o.add(buildInstance()); | 492 o.add(buildInstance()); |
| 489 o.add(buildInstance()); | 493 o.add(buildInstance()); |
| 490 return o; | 494 return o; |
| 491 } | 495 } |
| 492 | 496 |
| 493 checkUnnamed4169(core.List<api.Instance> o) { | 497 checkUnnamed4004(core.List<api.Instance> o) { |
| 494 unittest.expect(o, unittest.hasLength(2)); | 498 unittest.expect(o, unittest.hasLength(2)); |
| 495 checkInstance(o[0]); | 499 checkInstance(o[0]); |
| 496 checkInstance(o[1]); | 500 checkInstance(o[1]); |
| 497 } | 501 } |
| 498 | 502 |
| 499 core.int buildCounterListInstancesResponse = 0; | 503 core.int buildCounterListInstancesResponse = 0; |
| 500 buildListInstancesResponse() { | 504 buildListInstancesResponse() { |
| 501 var o = new api.ListInstancesResponse(); | 505 var o = new api.ListInstancesResponse(); |
| 502 buildCounterListInstancesResponse++; | 506 buildCounterListInstancesResponse++; |
| 503 if (buildCounterListInstancesResponse < 3) { | 507 if (buildCounterListInstancesResponse < 3) { |
| 504 o.instances = buildUnnamed4169(); | 508 o.instances = buildUnnamed4004(); |
| 505 o.nextPageToken = "foo"; | 509 o.nextPageToken = "foo"; |
| 506 } | 510 } |
| 507 buildCounterListInstancesResponse--; | 511 buildCounterListInstancesResponse--; |
| 508 return o; | 512 return o; |
| 509 } | 513 } |
| 510 | 514 |
| 511 checkListInstancesResponse(api.ListInstancesResponse o) { | 515 checkListInstancesResponse(api.ListInstancesResponse o) { |
| 512 buildCounterListInstancesResponse++; | 516 buildCounterListInstancesResponse++; |
| 513 if (buildCounterListInstancesResponse < 3) { | 517 if (buildCounterListInstancesResponse < 3) { |
| 514 checkUnnamed4169(o.instances); | 518 checkUnnamed4004(o.instances); |
| 515 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 519 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 516 } | 520 } |
| 517 buildCounterListInstancesResponse--; | 521 buildCounterListInstancesResponse--; |
| 518 } | 522 } |
| 519 | 523 |
| 520 buildUnnamed4170() { | 524 buildUnnamed4005() { |
| 521 var o = new core.List<api.Location>(); | 525 var o = new core.List<api.Location>(); |
| 522 o.add(buildLocation()); | 526 o.add(buildLocation()); |
| 523 o.add(buildLocation()); | 527 o.add(buildLocation()); |
| 524 return o; | 528 return o; |
| 525 } | 529 } |
| 526 | 530 |
| 527 checkUnnamed4170(core.List<api.Location> o) { | 531 checkUnnamed4005(core.List<api.Location> o) { |
| 528 unittest.expect(o, unittest.hasLength(2)); | 532 unittest.expect(o, unittest.hasLength(2)); |
| 529 checkLocation(o[0]); | 533 checkLocation(o[0]); |
| 530 checkLocation(o[1]); | 534 checkLocation(o[1]); |
| 531 } | 535 } |
| 532 | 536 |
| 533 core.int buildCounterListLocationsResponse = 0; | 537 core.int buildCounterListLocationsResponse = 0; |
| 534 buildListLocationsResponse() { | 538 buildListLocationsResponse() { |
| 535 var o = new api.ListLocationsResponse(); | 539 var o = new api.ListLocationsResponse(); |
| 536 buildCounterListLocationsResponse++; | 540 buildCounterListLocationsResponse++; |
| 537 if (buildCounterListLocationsResponse < 3) { | 541 if (buildCounterListLocationsResponse < 3) { |
| 538 o.locations = buildUnnamed4170(); | 542 o.locations = buildUnnamed4005(); |
| 539 o.nextPageToken = "foo"; | 543 o.nextPageToken = "foo"; |
| 540 } | 544 } |
| 541 buildCounterListLocationsResponse--; | 545 buildCounterListLocationsResponse--; |
| 542 return o; | 546 return o; |
| 543 } | 547 } |
| 544 | 548 |
| 545 checkListLocationsResponse(api.ListLocationsResponse o) { | 549 checkListLocationsResponse(api.ListLocationsResponse o) { |
| 546 buildCounterListLocationsResponse++; | 550 buildCounterListLocationsResponse++; |
| 547 if (buildCounterListLocationsResponse < 3) { | 551 if (buildCounterListLocationsResponse < 3) { |
| 548 checkUnnamed4170(o.locations); | 552 checkUnnamed4005(o.locations); |
| 549 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 553 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 550 } | 554 } |
| 551 buildCounterListLocationsResponse--; | 555 buildCounterListLocationsResponse--; |
| 552 } | 556 } |
| 553 | 557 |
| 554 buildUnnamed4171() { | 558 buildUnnamed4006() { |
| 555 var o = new core.List<api.Operation>(); | 559 var o = new core.List<api.Operation>(); |
| 556 o.add(buildOperation()); | 560 o.add(buildOperation()); |
| 557 o.add(buildOperation()); | 561 o.add(buildOperation()); |
| 558 return o; | 562 return o; |
| 559 } | 563 } |
| 560 | 564 |
| 561 checkUnnamed4171(core.List<api.Operation> o) { | 565 checkUnnamed4006(core.List<api.Operation> o) { |
| 562 unittest.expect(o, unittest.hasLength(2)); | 566 unittest.expect(o, unittest.hasLength(2)); |
| 563 checkOperation(o[0]); | 567 checkOperation(o[0]); |
| 564 checkOperation(o[1]); | 568 checkOperation(o[1]); |
| 565 } | 569 } |
| 566 | 570 |
| 567 core.int buildCounterListOperationsResponse = 0; | 571 core.int buildCounterListOperationsResponse = 0; |
| 568 buildListOperationsResponse() { | 572 buildListOperationsResponse() { |
| 569 var o = new api.ListOperationsResponse(); | 573 var o = new api.ListOperationsResponse(); |
| 570 buildCounterListOperationsResponse++; | 574 buildCounterListOperationsResponse++; |
| 571 if (buildCounterListOperationsResponse < 3) { | 575 if (buildCounterListOperationsResponse < 3) { |
| 572 o.nextPageToken = "foo"; | 576 o.nextPageToken = "foo"; |
| 573 o.operations = buildUnnamed4171(); | 577 o.operations = buildUnnamed4006(); |
| 574 } | 578 } |
| 575 buildCounterListOperationsResponse--; | 579 buildCounterListOperationsResponse--; |
| 576 return o; | 580 return o; |
| 577 } | 581 } |
| 578 | 582 |
| 579 checkListOperationsResponse(api.ListOperationsResponse o) { | 583 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 580 buildCounterListOperationsResponse++; | 584 buildCounterListOperationsResponse++; |
| 581 if (buildCounterListOperationsResponse < 3) { | 585 if (buildCounterListOperationsResponse < 3) { |
| 582 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 586 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 583 checkUnnamed4171(o.operations); | 587 checkUnnamed4006(o.operations); |
| 584 } | 588 } |
| 585 buildCounterListOperationsResponse--; | 589 buildCounterListOperationsResponse--; |
| 586 } | 590 } |
| 587 | 591 |
| 588 buildUnnamed4172() { | 592 buildUnnamed4007() { |
| 589 var o = new core.List<api.Service>(); | 593 var o = new core.List<api.Service>(); |
| 590 o.add(buildService()); | 594 o.add(buildService()); |
| 591 o.add(buildService()); | 595 o.add(buildService()); |
| 592 return o; | 596 return o; |
| 593 } | 597 } |
| 594 | 598 |
| 595 checkUnnamed4172(core.List<api.Service> o) { | 599 checkUnnamed4007(core.List<api.Service> o) { |
| 596 unittest.expect(o, unittest.hasLength(2)); | 600 unittest.expect(o, unittest.hasLength(2)); |
| 597 checkService(o[0]); | 601 checkService(o[0]); |
| 598 checkService(o[1]); | 602 checkService(o[1]); |
| 599 } | 603 } |
| 600 | 604 |
| 601 core.int buildCounterListServicesResponse = 0; | 605 core.int buildCounterListServicesResponse = 0; |
| 602 buildListServicesResponse() { | 606 buildListServicesResponse() { |
| 603 var o = new api.ListServicesResponse(); | 607 var o = new api.ListServicesResponse(); |
| 604 buildCounterListServicesResponse++; | 608 buildCounterListServicesResponse++; |
| 605 if (buildCounterListServicesResponse < 3) { | 609 if (buildCounterListServicesResponse < 3) { |
| 606 o.nextPageToken = "foo"; | 610 o.nextPageToken = "foo"; |
| 607 o.services = buildUnnamed4172(); | 611 o.services = buildUnnamed4007(); |
| 608 } | 612 } |
| 609 buildCounterListServicesResponse--; | 613 buildCounterListServicesResponse--; |
| 610 return o; | 614 return o; |
| 611 } | 615 } |
| 612 | 616 |
| 613 checkListServicesResponse(api.ListServicesResponse o) { | 617 checkListServicesResponse(api.ListServicesResponse o) { |
| 614 buildCounterListServicesResponse++; | 618 buildCounterListServicesResponse++; |
| 615 if (buildCounterListServicesResponse < 3) { | 619 if (buildCounterListServicesResponse < 3) { |
| 616 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 620 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 617 checkUnnamed4172(o.services); | 621 checkUnnamed4007(o.services); |
| 618 } | 622 } |
| 619 buildCounterListServicesResponse--; | 623 buildCounterListServicesResponse--; |
| 620 } | 624 } |
| 621 | 625 |
| 622 buildUnnamed4173() { | 626 buildUnnamed4008() { |
| 623 var o = new core.List<api.Version>(); | 627 var o = new core.List<api.Version>(); |
| 624 o.add(buildVersion()); | 628 o.add(buildVersion()); |
| 625 o.add(buildVersion()); | 629 o.add(buildVersion()); |
| 626 return o; | 630 return o; |
| 627 } | 631 } |
| 628 | 632 |
| 629 checkUnnamed4173(core.List<api.Version> o) { | 633 checkUnnamed4008(core.List<api.Version> o) { |
| 630 unittest.expect(o, unittest.hasLength(2)); | 634 unittest.expect(o, unittest.hasLength(2)); |
| 631 checkVersion(o[0]); | 635 checkVersion(o[0]); |
| 632 checkVersion(o[1]); | 636 checkVersion(o[1]); |
| 633 } | 637 } |
| 634 | 638 |
| 635 core.int buildCounterListVersionsResponse = 0; | 639 core.int buildCounterListVersionsResponse = 0; |
| 636 buildListVersionsResponse() { | 640 buildListVersionsResponse() { |
| 637 var o = new api.ListVersionsResponse(); | 641 var o = new api.ListVersionsResponse(); |
| 638 buildCounterListVersionsResponse++; | 642 buildCounterListVersionsResponse++; |
| 639 if (buildCounterListVersionsResponse < 3) { | 643 if (buildCounterListVersionsResponse < 3) { |
| 640 o.nextPageToken = "foo"; | 644 o.nextPageToken = "foo"; |
| 641 o.versions = buildUnnamed4173(); | 645 o.versions = buildUnnamed4008(); |
| 642 } | 646 } |
| 643 buildCounterListVersionsResponse--; | 647 buildCounterListVersionsResponse--; |
| 644 return o; | 648 return o; |
| 645 } | 649 } |
| 646 | 650 |
| 647 checkListVersionsResponse(api.ListVersionsResponse o) { | 651 checkListVersionsResponse(api.ListVersionsResponse o) { |
| 648 buildCounterListVersionsResponse++; | 652 buildCounterListVersionsResponse++; |
| 649 if (buildCounterListVersionsResponse < 3) { | 653 if (buildCounterListVersionsResponse < 3) { |
| 650 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 654 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 651 checkUnnamed4173(o.versions); | 655 checkUnnamed4008(o.versions); |
| 652 } | 656 } |
| 653 buildCounterListVersionsResponse--; | 657 buildCounterListVersionsResponse--; |
| 654 } | 658 } |
| 655 | 659 |
| 656 buildUnnamed4174() { | 660 buildUnnamed4009() { |
| 657 var o = new core.Map<core.String, core.String>(); | 661 var o = new core.Map<core.String, core.String>(); |
| 658 o["x"] = "foo"; | 662 o["x"] = "foo"; |
| 659 o["y"] = "foo"; | 663 o["y"] = "foo"; |
| 660 return o; | 664 return o; |
| 661 } | 665 } |
| 662 | 666 |
| 663 checkUnnamed4174(core.Map<core.String, core.String> o) { | 667 checkUnnamed4009(core.Map<core.String, core.String> o) { |
| 664 unittest.expect(o, unittest.hasLength(2)); | 668 unittest.expect(o, unittest.hasLength(2)); |
| 665 unittest.expect(o["x"], unittest.equals('foo')); | 669 unittest.expect(o["x"], unittest.equals('foo')); |
| 666 unittest.expect(o["y"], unittest.equals('foo')); | 670 unittest.expect(o["y"], unittest.equals('foo')); |
| 667 } | 671 } |
| 668 | 672 |
| 669 buildUnnamed4175() { | 673 buildUnnamed4010() { |
| 670 var o = new core.Map<core.String, core.Object>(); | 674 var o = new core.Map<core.String, core.Object>(); |
| 671 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 675 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 672 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 676 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 673 return o; | 677 return o; |
| 674 } | 678 } |
| 675 | 679 |
| 676 checkUnnamed4175(core.Map<core.String, core.Object> o) { | 680 checkUnnamed4010(core.Map<core.String, core.Object> o) { |
| 677 unittest.expect(o, unittest.hasLength(2)); | 681 unittest.expect(o, unittest.hasLength(2)); |
| 678 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')); | 682 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
| 679 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')); | 683 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
| 680 } | 684 } |
| 681 | 685 |
| 682 core.int buildCounterLocation = 0; | 686 core.int buildCounterLocation = 0; |
| 683 buildLocation() { | 687 buildLocation() { |
| 684 var o = new api.Location(); | 688 var o = new api.Location(); |
| 685 buildCounterLocation++; | 689 buildCounterLocation++; |
| 686 if (buildCounterLocation < 3) { | 690 if (buildCounterLocation < 3) { |
| 687 o.labels = buildUnnamed4174(); | 691 o.labels = buildUnnamed4009(); |
| 688 o.locationId = "foo"; | 692 o.locationId = "foo"; |
| 689 o.metadata = buildUnnamed4175(); | 693 o.metadata = buildUnnamed4010(); |
| 690 o.name = "foo"; | 694 o.name = "foo"; |
| 691 } | 695 } |
| 692 buildCounterLocation--; | 696 buildCounterLocation--; |
| 693 return o; | 697 return o; |
| 694 } | 698 } |
| 695 | 699 |
| 696 checkLocation(api.Location o) { | 700 checkLocation(api.Location o) { |
| 697 buildCounterLocation++; | 701 buildCounterLocation++; |
| 698 if (buildCounterLocation < 3) { | 702 if (buildCounterLocation < 3) { |
| 699 checkUnnamed4174(o.labels); | 703 checkUnnamed4009(o.labels); |
| 700 unittest.expect(o.locationId, unittest.equals('foo')); | 704 unittest.expect(o.locationId, unittest.equals('foo')); |
| 701 checkUnnamed4175(o.metadata); | 705 checkUnnamed4010(o.metadata); |
| 702 unittest.expect(o.name, unittest.equals('foo')); | 706 unittest.expect(o.name, unittest.equals('foo')); |
| 703 } | 707 } |
| 704 buildCounterLocation--; | 708 buildCounterLocation--; |
| 705 } | 709 } |
| 706 | 710 |
| 707 core.int buildCounterLocationMetadata = 0; | 711 core.int buildCounterLocationMetadata = 0; |
| 708 buildLocationMetadata() { | 712 buildLocationMetadata() { |
| 709 var o = new api.LocationMetadata(); | 713 var o = new api.LocationMetadata(); |
| 710 buildCounterLocationMetadata++; | 714 buildCounterLocationMetadata++; |
| 711 if (buildCounterLocationMetadata < 3) { | 715 if (buildCounterLocationMetadata < 3) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 737 } | 741 } |
| 738 | 742 |
| 739 checkManualScaling(api.ManualScaling o) { | 743 checkManualScaling(api.ManualScaling o) { |
| 740 buildCounterManualScaling++; | 744 buildCounterManualScaling++; |
| 741 if (buildCounterManualScaling < 3) { | 745 if (buildCounterManualScaling < 3) { |
| 742 unittest.expect(o.instances, unittest.equals(42)); | 746 unittest.expect(o.instances, unittest.equals(42)); |
| 743 } | 747 } |
| 744 buildCounterManualScaling--; | 748 buildCounterManualScaling--; |
| 745 } | 749 } |
| 746 | 750 |
| 747 buildUnnamed4176() { | 751 buildUnnamed4011() { |
| 748 var o = new core.List<core.String>(); | 752 var o = new core.List<core.String>(); |
| 749 o.add("foo"); | 753 o.add("foo"); |
| 750 o.add("foo"); | 754 o.add("foo"); |
| 751 return o; | 755 return o; |
| 752 } | 756 } |
| 753 | 757 |
| 754 checkUnnamed4176(core.List<core.String> o) { | 758 checkUnnamed4011(core.List<core.String> o) { |
| 755 unittest.expect(o, unittest.hasLength(2)); | 759 unittest.expect(o, unittest.hasLength(2)); |
| 756 unittest.expect(o[0], unittest.equals('foo')); | 760 unittest.expect(o[0], unittest.equals('foo')); |
| 757 unittest.expect(o[1], unittest.equals('foo')); | 761 unittest.expect(o[1], unittest.equals('foo')); |
| 758 } | 762 } |
| 759 | 763 |
| 760 core.int buildCounterNetwork = 0; | 764 core.int buildCounterNetwork = 0; |
| 761 buildNetwork() { | 765 buildNetwork() { |
| 762 var o = new api.Network(); | 766 var o = new api.Network(); |
| 763 buildCounterNetwork++; | 767 buildCounterNetwork++; |
| 764 if (buildCounterNetwork < 3) { | 768 if (buildCounterNetwork < 3) { |
| 765 o.forwardedPorts = buildUnnamed4176(); | 769 o.forwardedPorts = buildUnnamed4011(); |
| 766 o.instanceTag = "foo"; | 770 o.instanceTag = "foo"; |
| 767 o.name = "foo"; | 771 o.name = "foo"; |
| 768 } | 772 } |
| 769 buildCounterNetwork--; | 773 buildCounterNetwork--; |
| 770 return o; | 774 return o; |
| 771 } | 775 } |
| 772 | 776 |
| 773 checkNetwork(api.Network o) { | 777 checkNetwork(api.Network o) { |
| 774 buildCounterNetwork++; | 778 buildCounterNetwork++; |
| 775 if (buildCounterNetwork < 3) { | 779 if (buildCounterNetwork < 3) { |
| 776 checkUnnamed4176(o.forwardedPorts); | 780 checkUnnamed4011(o.forwardedPorts); |
| 777 unittest.expect(o.instanceTag, unittest.equals('foo')); | 781 unittest.expect(o.instanceTag, unittest.equals('foo')); |
| 778 unittest.expect(o.name, unittest.equals('foo')); | 782 unittest.expect(o.name, unittest.equals('foo')); |
| 779 } | 783 } |
| 780 buildCounterNetwork--; | 784 buildCounterNetwork--; |
| 781 } | 785 } |
| 782 | 786 |
| 783 core.int buildCounterNetworkUtilization = 0; | 787 core.int buildCounterNetworkUtilization = 0; |
| 784 buildNetworkUtilization() { | 788 buildNetworkUtilization() { |
| 785 var o = new api.NetworkUtilization(); | 789 var o = new api.NetworkUtilization(); |
| 786 buildCounterNetworkUtilization++; | 790 buildCounterNetworkUtilization++; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 798 buildCounterNetworkUtilization++; | 802 buildCounterNetworkUtilization++; |
| 799 if (buildCounterNetworkUtilization < 3) { | 803 if (buildCounterNetworkUtilization < 3) { |
| 800 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); | 804 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); |
| 801 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); | 805 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); |
| 802 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); | 806 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); |
| 803 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); | 807 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); |
| 804 } | 808 } |
| 805 buildCounterNetworkUtilization--; | 809 buildCounterNetworkUtilization--; |
| 806 } | 810 } |
| 807 | 811 |
| 808 buildUnnamed4177() { | 812 buildUnnamed4012() { |
| 809 var o = new core.Map<core.String, core.Object>(); | 813 var o = new core.Map<core.String, core.Object>(); |
| 810 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 814 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 811 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 815 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 812 return o; | 816 return o; |
| 813 } | 817 } |
| 814 | 818 |
| 815 checkUnnamed4177(core.Map<core.String, core.Object> o) { | 819 checkUnnamed4012(core.Map<core.String, core.Object> o) { |
| 816 unittest.expect(o, unittest.hasLength(2)); | 820 unittest.expect(o, unittest.hasLength(2)); |
| 817 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')); | 821 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')); |
| 818 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')); | 822 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')); |
| 819 } | 823 } |
| 820 | 824 |
| 821 buildUnnamed4178() { | 825 buildUnnamed4013() { |
| 822 var o = new core.Map<core.String, core.Object>(); | 826 var o = new core.Map<core.String, core.Object>(); |
| 823 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 827 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 824 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 828 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 825 return o; | 829 return o; |
| 826 } | 830 } |
| 827 | 831 |
| 828 checkUnnamed4178(core.Map<core.String, core.Object> o) { | 832 checkUnnamed4013(core.Map<core.String, core.Object> o) { |
| 829 unittest.expect(o, unittest.hasLength(2)); | 833 unittest.expect(o, unittest.hasLength(2)); |
| 830 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')); | 834 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')); |
| 831 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')); | 835 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')); |
| 832 } | 836 } |
| 833 | 837 |
| 834 core.int buildCounterOperation = 0; | 838 core.int buildCounterOperation = 0; |
| 835 buildOperation() { | 839 buildOperation() { |
| 836 var o = new api.Operation(); | 840 var o = new api.Operation(); |
| 837 buildCounterOperation++; | 841 buildCounterOperation++; |
| 838 if (buildCounterOperation < 3) { | 842 if (buildCounterOperation < 3) { |
| 839 o.done = true; | 843 o.done = true; |
| 840 o.error = buildStatus(); | 844 o.error = buildStatus(); |
| 841 o.metadata = buildUnnamed4177(); | 845 o.metadata = buildUnnamed4012(); |
| 842 o.name = "foo"; | 846 o.name = "foo"; |
| 843 o.response = buildUnnamed4178(); | 847 o.response = buildUnnamed4013(); |
| 844 } | 848 } |
| 845 buildCounterOperation--; | 849 buildCounterOperation--; |
| 846 return o; | 850 return o; |
| 847 } | 851 } |
| 848 | 852 |
| 849 checkOperation(api.Operation o) { | 853 checkOperation(api.Operation o) { |
| 850 buildCounterOperation++; | 854 buildCounterOperation++; |
| 851 if (buildCounterOperation < 3) { | 855 if (buildCounterOperation < 3) { |
| 852 unittest.expect(o.done, unittest.isTrue); | 856 unittest.expect(o.done, unittest.isTrue); |
| 853 checkStatus(o.error); | 857 checkStatus(o.error); |
| 854 checkUnnamed4177(o.metadata); | 858 checkUnnamed4012(o.metadata); |
| 855 unittest.expect(o.name, unittest.equals('foo')); | 859 unittest.expect(o.name, unittest.equals('foo')); |
| 856 checkUnnamed4178(o.response); | 860 checkUnnamed4013(o.response); |
| 857 } | 861 } |
| 858 buildCounterOperation--; | 862 buildCounterOperation--; |
| 859 } | 863 } |
| 860 | 864 |
| 861 core.int buildCounterOperationMetadata = 0; | 865 core.int buildCounterOperationMetadata = 0; |
| 862 buildOperationMetadata() { | 866 buildOperationMetadata() { |
| 863 var o = new api.OperationMetadata(); | 867 var o = new api.OperationMetadata(); |
| 864 buildCounterOperationMetadata++; | 868 buildCounterOperationMetadata++; |
| 865 if (buildCounterOperationMetadata < 3) { | 869 if (buildCounterOperationMetadata < 3) { |
| 866 o.endTime = "foo"; | 870 o.endTime = "foo"; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 880 unittest.expect(o.endTime, unittest.equals('foo')); | 884 unittest.expect(o.endTime, unittest.equals('foo')); |
| 881 unittest.expect(o.insertTime, unittest.equals('foo')); | 885 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 882 unittest.expect(o.method, unittest.equals('foo')); | 886 unittest.expect(o.method, unittest.equals('foo')); |
| 883 unittest.expect(o.operationType, unittest.equals('foo')); | 887 unittest.expect(o.operationType, unittest.equals('foo')); |
| 884 unittest.expect(o.target, unittest.equals('foo')); | 888 unittest.expect(o.target, unittest.equals('foo')); |
| 885 unittest.expect(o.user, unittest.equals('foo')); | 889 unittest.expect(o.user, unittest.equals('foo')); |
| 886 } | 890 } |
| 887 buildCounterOperationMetadata--; | 891 buildCounterOperationMetadata--; |
| 888 } | 892 } |
| 889 | 893 |
| 894 core.int buildCounterOperationMetadataExperimental = 0; |
| 895 buildOperationMetadataExperimental() { |
| 896 var o = new api.OperationMetadataExperimental(); |
| 897 buildCounterOperationMetadataExperimental++; |
| 898 if (buildCounterOperationMetadataExperimental < 3) { |
| 899 o.endTime = "foo"; |
| 900 o.insertTime = "foo"; |
| 901 o.method = "foo"; |
| 902 o.target = "foo"; |
| 903 o.user = "foo"; |
| 904 } |
| 905 buildCounterOperationMetadataExperimental--; |
| 906 return o; |
| 907 } |
| 908 |
| 909 checkOperationMetadataExperimental(api.OperationMetadataExperimental o) { |
| 910 buildCounterOperationMetadataExperimental++; |
| 911 if (buildCounterOperationMetadataExperimental < 3) { |
| 912 unittest.expect(o.endTime, unittest.equals('foo')); |
| 913 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 914 unittest.expect(o.method, unittest.equals('foo')); |
| 915 unittest.expect(o.target, unittest.equals('foo')); |
| 916 unittest.expect(o.user, unittest.equals('foo')); |
| 917 } |
| 918 buildCounterOperationMetadataExperimental--; |
| 919 } |
| 920 |
| 890 core.int buildCounterOperationMetadataV1 = 0; | 921 core.int buildCounterOperationMetadataV1 = 0; |
| 891 buildOperationMetadataV1() { | 922 buildOperationMetadataV1() { |
| 892 var o = new api.OperationMetadataV1(); | 923 var o = new api.OperationMetadataV1(); |
| 893 buildCounterOperationMetadataV1++; | 924 buildCounterOperationMetadataV1++; |
| 894 if (buildCounterOperationMetadataV1 < 3) { | 925 if (buildCounterOperationMetadataV1 < 3) { |
| 895 o.endTime = "foo"; | 926 o.endTime = "foo"; |
| 896 o.insertTime = "foo"; | 927 o.insertTime = "foo"; |
| 897 o.method = "foo"; | 928 o.method = "foo"; |
| 898 o.target = "foo"; | 929 o.target = "foo"; |
| 899 o.user = "foo"; | 930 o.user = "foo"; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1041 | 1072 |
| 1042 checkSourceReference(api.SourceReference o) { | 1073 checkSourceReference(api.SourceReference o) { |
| 1043 buildCounterSourceReference++; | 1074 buildCounterSourceReference++; |
| 1044 if (buildCounterSourceReference < 3) { | 1075 if (buildCounterSourceReference < 3) { |
| 1045 unittest.expect(o.repository, unittest.equals('foo')); | 1076 unittest.expect(o.repository, unittest.equals('foo')); |
| 1046 unittest.expect(o.revisionId, unittest.equals('foo')); | 1077 unittest.expect(o.revisionId, unittest.equals('foo')); |
| 1047 } | 1078 } |
| 1048 buildCounterSourceReference--; | 1079 buildCounterSourceReference--; |
| 1049 } | 1080 } |
| 1050 | 1081 |
| 1051 buildUnnamed4179() { | 1082 buildUnnamed4014() { |
| 1052 var o = new core.Map<core.String, core.String>(); | 1083 var o = new core.Map<core.String, core.String>(); |
| 1053 o["x"] = "foo"; | 1084 o["x"] = "foo"; |
| 1054 o["y"] = "foo"; | 1085 o["y"] = "foo"; |
| 1055 return o; | 1086 return o; |
| 1056 } | 1087 } |
| 1057 | 1088 |
| 1058 checkUnnamed4179(core.Map<core.String, core.String> o) { | 1089 checkUnnamed4014(core.Map<core.String, core.String> o) { |
| 1059 unittest.expect(o, unittest.hasLength(2)); | 1090 unittest.expect(o, unittest.hasLength(2)); |
| 1060 unittest.expect(o["x"], unittest.equals('foo')); | 1091 unittest.expect(o["x"], unittest.equals('foo')); |
| 1061 unittest.expect(o["y"], unittest.equals('foo')); | 1092 unittest.expect(o["y"], unittest.equals('foo')); |
| 1062 } | 1093 } |
| 1063 | 1094 |
| 1064 core.int buildCounterStaticFilesHandler = 0; | 1095 core.int buildCounterStaticFilesHandler = 0; |
| 1065 buildStaticFilesHandler() { | 1096 buildStaticFilesHandler() { |
| 1066 var o = new api.StaticFilesHandler(); | 1097 var o = new api.StaticFilesHandler(); |
| 1067 buildCounterStaticFilesHandler++; | 1098 buildCounterStaticFilesHandler++; |
| 1068 if (buildCounterStaticFilesHandler < 3) { | 1099 if (buildCounterStaticFilesHandler < 3) { |
| 1069 o.applicationReadable = true; | 1100 o.applicationReadable = true; |
| 1070 o.expiration = "foo"; | 1101 o.expiration = "foo"; |
| 1071 o.httpHeaders = buildUnnamed4179(); | 1102 o.httpHeaders = buildUnnamed4014(); |
| 1072 o.mimeType = "foo"; | 1103 o.mimeType = "foo"; |
| 1073 o.path = "foo"; | 1104 o.path = "foo"; |
| 1074 o.requireMatchingFile = true; | 1105 o.requireMatchingFile = true; |
| 1075 o.uploadPathRegex = "foo"; | 1106 o.uploadPathRegex = "foo"; |
| 1076 } | 1107 } |
| 1077 buildCounterStaticFilesHandler--; | 1108 buildCounterStaticFilesHandler--; |
| 1078 return o; | 1109 return o; |
| 1079 } | 1110 } |
| 1080 | 1111 |
| 1081 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1112 checkStaticFilesHandler(api.StaticFilesHandler o) { |
| 1082 buildCounterStaticFilesHandler++; | 1113 buildCounterStaticFilesHandler++; |
| 1083 if (buildCounterStaticFilesHandler < 3) { | 1114 if (buildCounterStaticFilesHandler < 3) { |
| 1084 unittest.expect(o.applicationReadable, unittest.isTrue); | 1115 unittest.expect(o.applicationReadable, unittest.isTrue); |
| 1085 unittest.expect(o.expiration, unittest.equals('foo')); | 1116 unittest.expect(o.expiration, unittest.equals('foo')); |
| 1086 checkUnnamed4179(o.httpHeaders); | 1117 checkUnnamed4014(o.httpHeaders); |
| 1087 unittest.expect(o.mimeType, unittest.equals('foo')); | 1118 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 1088 unittest.expect(o.path, unittest.equals('foo')); | 1119 unittest.expect(o.path, unittest.equals('foo')); |
| 1089 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1120 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
| 1090 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1121 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
| 1091 } | 1122 } |
| 1092 buildCounterStaticFilesHandler--; | 1123 buildCounterStaticFilesHandler--; |
| 1093 } | 1124 } |
| 1094 | 1125 |
| 1095 buildUnnamed4180() { | 1126 buildUnnamed4015() { |
| 1096 var o = new core.Map<core.String, core.Object>(); | 1127 var o = new core.Map<core.String, core.Object>(); |
| 1097 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1128 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1098 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1129 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1099 return o; | 1130 return o; |
| 1100 } | 1131 } |
| 1101 | 1132 |
| 1102 checkUnnamed4180(core.Map<core.String, core.Object> o) { | 1133 checkUnnamed4015(core.Map<core.String, core.Object> o) { |
| 1103 unittest.expect(o, unittest.hasLength(2)); | 1134 unittest.expect(o, unittest.hasLength(2)); |
| 1104 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')); | 1135 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')); |
| 1105 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')); | 1136 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')); |
| 1106 } | 1137 } |
| 1107 | 1138 |
| 1108 buildUnnamed4181() { | 1139 buildUnnamed4016() { |
| 1109 var o = new core.List<core.Map<core.String, core.Object>>(); | 1140 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1110 o.add(buildUnnamed4180()); | 1141 o.add(buildUnnamed4015()); |
| 1111 o.add(buildUnnamed4180()); | 1142 o.add(buildUnnamed4015()); |
| 1112 return o; | 1143 return o; |
| 1113 } | 1144 } |
| 1114 | 1145 |
| 1115 checkUnnamed4181(core.List<core.Map<core.String, core.Object>> o) { | 1146 checkUnnamed4016(core.List<core.Map<core.String, core.Object>> o) { |
| 1116 unittest.expect(o, unittest.hasLength(2)); | 1147 unittest.expect(o, unittest.hasLength(2)); |
| 1117 checkUnnamed4180(o[0]); | 1148 checkUnnamed4015(o[0]); |
| 1118 checkUnnamed4180(o[1]); | 1149 checkUnnamed4015(o[1]); |
| 1119 } | 1150 } |
| 1120 | 1151 |
| 1121 core.int buildCounterStatus = 0; | 1152 core.int buildCounterStatus = 0; |
| 1122 buildStatus() { | 1153 buildStatus() { |
| 1123 var o = new api.Status(); | 1154 var o = new api.Status(); |
| 1124 buildCounterStatus++; | 1155 buildCounterStatus++; |
| 1125 if (buildCounterStatus < 3) { | 1156 if (buildCounterStatus < 3) { |
| 1126 o.code = 42; | 1157 o.code = 42; |
| 1127 o.details = buildUnnamed4181(); | 1158 o.details = buildUnnamed4016(); |
| 1128 o.message = "foo"; | 1159 o.message = "foo"; |
| 1129 } | 1160 } |
| 1130 buildCounterStatus--; | 1161 buildCounterStatus--; |
| 1131 return o; | 1162 return o; |
| 1132 } | 1163 } |
| 1133 | 1164 |
| 1134 checkStatus(api.Status o) { | 1165 checkStatus(api.Status o) { |
| 1135 buildCounterStatus++; | 1166 buildCounterStatus++; |
| 1136 if (buildCounterStatus < 3) { | 1167 if (buildCounterStatus < 3) { |
| 1137 unittest.expect(o.code, unittest.equals(42)); | 1168 unittest.expect(o.code, unittest.equals(42)); |
| 1138 checkUnnamed4181(o.details); | 1169 checkUnnamed4016(o.details); |
| 1139 unittest.expect(o.message, unittest.equals('foo')); | 1170 unittest.expect(o.message, unittest.equals('foo')); |
| 1140 } | 1171 } |
| 1141 buildCounterStatus--; | 1172 buildCounterStatus--; |
| 1142 } | 1173 } |
| 1143 | 1174 |
| 1144 buildUnnamed4182() { | 1175 buildUnnamed4017() { |
| 1145 var o = new core.Map<core.String, core.double>(); | 1176 var o = new core.Map<core.String, core.double>(); |
| 1146 o["x"] = 42.0; | 1177 o["x"] = 42.0; |
| 1147 o["y"] = 42.0; | 1178 o["y"] = 42.0; |
| 1148 return o; | 1179 return o; |
| 1149 } | 1180 } |
| 1150 | 1181 |
| 1151 checkUnnamed4182(core.Map<core.String, core.double> o) { | 1182 checkUnnamed4017(core.Map<core.String, core.double> o) { |
| 1152 unittest.expect(o, unittest.hasLength(2)); | 1183 unittest.expect(o, unittest.hasLength(2)); |
| 1153 unittest.expect(o["x"], unittest.equals(42.0)); | 1184 unittest.expect(o["x"], unittest.equals(42.0)); |
| 1154 unittest.expect(o["y"], unittest.equals(42.0)); | 1185 unittest.expect(o["y"], unittest.equals(42.0)); |
| 1155 } | 1186 } |
| 1156 | 1187 |
| 1157 core.int buildCounterTrafficSplit = 0; | 1188 core.int buildCounterTrafficSplit = 0; |
| 1158 buildTrafficSplit() { | 1189 buildTrafficSplit() { |
| 1159 var o = new api.TrafficSplit(); | 1190 var o = new api.TrafficSplit(); |
| 1160 buildCounterTrafficSplit++; | 1191 buildCounterTrafficSplit++; |
| 1161 if (buildCounterTrafficSplit < 3) { | 1192 if (buildCounterTrafficSplit < 3) { |
| 1162 o.allocations = buildUnnamed4182(); | 1193 o.allocations = buildUnnamed4017(); |
| 1163 o.shardBy = "foo"; | 1194 o.shardBy = "foo"; |
| 1164 } | 1195 } |
| 1165 buildCounterTrafficSplit--; | 1196 buildCounterTrafficSplit--; |
| 1166 return o; | 1197 return o; |
| 1167 } | 1198 } |
| 1168 | 1199 |
| 1169 checkTrafficSplit(api.TrafficSplit o) { | 1200 checkTrafficSplit(api.TrafficSplit o) { |
| 1170 buildCounterTrafficSplit++; | 1201 buildCounterTrafficSplit++; |
| 1171 if (buildCounterTrafficSplit < 3) { | 1202 if (buildCounterTrafficSplit < 3) { |
| 1172 checkUnnamed4182(o.allocations); | 1203 checkUnnamed4017(o.allocations); |
| 1173 unittest.expect(o.shardBy, unittest.equals('foo')); | 1204 unittest.expect(o.shardBy, unittest.equals('foo')); |
| 1174 } | 1205 } |
| 1175 buildCounterTrafficSplit--; | 1206 buildCounterTrafficSplit--; |
| 1176 } | 1207 } |
| 1177 | 1208 |
| 1178 core.int buildCounterUrlDispatchRule = 0; | 1209 core.int buildCounterUrlDispatchRule = 0; |
| 1179 buildUrlDispatchRule() { | 1210 buildUrlDispatchRule() { |
| 1180 var o = new api.UrlDispatchRule(); | 1211 var o = new api.UrlDispatchRule(); |
| 1181 buildCounterUrlDispatchRule++; | 1212 buildCounterUrlDispatchRule++; |
| 1182 if (buildCounterUrlDispatchRule < 3) { | 1213 if (buildCounterUrlDispatchRule < 3) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1224 unittest.expect(o.login, unittest.equals('foo')); | 1255 unittest.expect(o.login, unittest.equals('foo')); |
| 1225 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1256 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
| 1226 checkScriptHandler(o.script); | 1257 checkScriptHandler(o.script); |
| 1227 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1258 unittest.expect(o.securityLevel, unittest.equals('foo')); |
| 1228 checkStaticFilesHandler(o.staticFiles); | 1259 checkStaticFilesHandler(o.staticFiles); |
| 1229 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1260 unittest.expect(o.urlRegex, unittest.equals('foo')); |
| 1230 } | 1261 } |
| 1231 buildCounterUrlMap--; | 1262 buildCounterUrlMap--; |
| 1232 } | 1263 } |
| 1233 | 1264 |
| 1234 buildUnnamed4183() { | 1265 buildUnnamed4018() { |
| 1235 var o = new core.Map<core.String, core.String>(); | 1266 var o = new core.Map<core.String, core.String>(); |
| 1236 o["x"] = "foo"; | 1267 o["x"] = "foo"; |
| 1237 o["y"] = "foo"; | 1268 o["y"] = "foo"; |
| 1238 return o; | 1269 return o; |
| 1239 } | 1270 } |
| 1240 | 1271 |
| 1241 checkUnnamed4183(core.Map<core.String, core.String> o) { | 1272 checkUnnamed4018(core.Map<core.String, core.String> o) { |
| 1242 unittest.expect(o, unittest.hasLength(2)); | 1273 unittest.expect(o, unittest.hasLength(2)); |
| 1243 unittest.expect(o["x"], unittest.equals('foo')); | 1274 unittest.expect(o["x"], unittest.equals('foo')); |
| 1244 unittest.expect(o["y"], unittest.equals('foo')); | 1275 unittest.expect(o["y"], unittest.equals('foo')); |
| 1245 } | 1276 } |
| 1246 | 1277 |
| 1247 buildUnnamed4184() { | 1278 buildUnnamed4019() { |
| 1248 var o = new core.Map<core.String, core.String>(); | 1279 var o = new core.Map<core.String, core.String>(); |
| 1249 o["x"] = "foo"; | 1280 o["x"] = "foo"; |
| 1250 o["y"] = "foo"; | 1281 o["y"] = "foo"; |
| 1251 return o; | 1282 return o; |
| 1252 } | 1283 } |
| 1253 | 1284 |
| 1254 checkUnnamed4184(core.Map<core.String, core.String> o) { | 1285 checkUnnamed4019(core.Map<core.String, core.String> o) { |
| 1255 unittest.expect(o, unittest.hasLength(2)); | 1286 unittest.expect(o, unittest.hasLength(2)); |
| 1256 unittest.expect(o["x"], unittest.equals('foo')); | 1287 unittest.expect(o["x"], unittest.equals('foo')); |
| 1257 unittest.expect(o["y"], unittest.equals('foo')); | 1288 unittest.expect(o["y"], unittest.equals('foo')); |
| 1258 } | 1289 } |
| 1259 | 1290 |
| 1260 buildUnnamed4185() { | 1291 buildUnnamed4020() { |
| 1261 var o = new core.List<api.ErrorHandler>(); | 1292 var o = new core.List<api.ErrorHandler>(); |
| 1262 o.add(buildErrorHandler()); | 1293 o.add(buildErrorHandler()); |
| 1263 o.add(buildErrorHandler()); | 1294 o.add(buildErrorHandler()); |
| 1264 return o; | 1295 return o; |
| 1265 } | 1296 } |
| 1266 | 1297 |
| 1267 checkUnnamed4185(core.List<api.ErrorHandler> o) { | 1298 checkUnnamed4020(core.List<api.ErrorHandler> o) { |
| 1268 unittest.expect(o, unittest.hasLength(2)); | 1299 unittest.expect(o, unittest.hasLength(2)); |
| 1269 checkErrorHandler(o[0]); | 1300 checkErrorHandler(o[0]); |
| 1270 checkErrorHandler(o[1]); | 1301 checkErrorHandler(o[1]); |
| 1271 } | 1302 } |
| 1272 | 1303 |
| 1273 buildUnnamed4186() { | 1304 buildUnnamed4021() { |
| 1274 var o = new core.List<api.UrlMap>(); | 1305 var o = new core.List<api.UrlMap>(); |
| 1275 o.add(buildUrlMap()); | 1306 o.add(buildUrlMap()); |
| 1276 o.add(buildUrlMap()); | 1307 o.add(buildUrlMap()); |
| 1277 return o; | 1308 return o; |
| 1278 } | 1309 } |
| 1279 | 1310 |
| 1280 checkUnnamed4186(core.List<api.UrlMap> o) { | 1311 checkUnnamed4021(core.List<api.UrlMap> o) { |
| 1281 unittest.expect(o, unittest.hasLength(2)); | 1312 unittest.expect(o, unittest.hasLength(2)); |
| 1282 checkUrlMap(o[0]); | 1313 checkUrlMap(o[0]); |
| 1283 checkUrlMap(o[1]); | 1314 checkUrlMap(o[1]); |
| 1284 } | 1315 } |
| 1285 | 1316 |
| 1286 buildUnnamed4187() { | 1317 buildUnnamed4022() { |
| 1287 var o = new core.List<core.String>(); | 1318 var o = new core.List<core.String>(); |
| 1288 o.add("foo"); | 1319 o.add("foo"); |
| 1289 o.add("foo"); | 1320 o.add("foo"); |
| 1290 return o; | 1321 return o; |
| 1291 } | 1322 } |
| 1292 | 1323 |
| 1293 checkUnnamed4187(core.List<core.String> o) { | 1324 checkUnnamed4022(core.List<core.String> o) { |
| 1294 unittest.expect(o, unittest.hasLength(2)); | 1325 unittest.expect(o, unittest.hasLength(2)); |
| 1295 unittest.expect(o[0], unittest.equals('foo')); | 1326 unittest.expect(o[0], unittest.equals('foo')); |
| 1296 unittest.expect(o[1], unittest.equals('foo')); | 1327 unittest.expect(o[1], unittest.equals('foo')); |
| 1297 } | 1328 } |
| 1298 | 1329 |
| 1299 buildUnnamed4188() { | 1330 buildUnnamed4023() { |
| 1300 var o = new core.List<api.Library>(); | 1331 var o = new core.List<api.Library>(); |
| 1301 o.add(buildLibrary()); | 1332 o.add(buildLibrary()); |
| 1302 o.add(buildLibrary()); | 1333 o.add(buildLibrary()); |
| 1303 return o; | 1334 return o; |
| 1304 } | 1335 } |
| 1305 | 1336 |
| 1306 checkUnnamed4188(core.List<api.Library> o) { | 1337 checkUnnamed4023(core.List<api.Library> o) { |
| 1307 unittest.expect(o, unittest.hasLength(2)); | 1338 unittest.expect(o, unittest.hasLength(2)); |
| 1308 checkLibrary(o[0]); | 1339 checkLibrary(o[0]); |
| 1309 checkLibrary(o[1]); | 1340 checkLibrary(o[1]); |
| 1310 } | 1341 } |
| 1311 | 1342 |
| 1312 core.int buildCounterVersion = 0; | 1343 core.int buildCounterVersion = 0; |
| 1313 buildVersion() { | 1344 buildVersion() { |
| 1314 var o = new api.Version(); | 1345 var o = new api.Version(); |
| 1315 buildCounterVersion++; | 1346 buildCounterVersion++; |
| 1316 if (buildCounterVersion < 3) { | 1347 if (buildCounterVersion < 3) { |
| 1317 o.apiConfig = buildApiConfigHandler(); | 1348 o.apiConfig = buildApiConfigHandler(); |
| 1318 o.automaticScaling = buildAutomaticScaling(); | 1349 o.automaticScaling = buildAutomaticScaling(); |
| 1319 o.basicScaling = buildBasicScaling(); | 1350 o.basicScaling = buildBasicScaling(); |
| 1320 o.betaSettings = buildUnnamed4183(); | 1351 o.betaSettings = buildUnnamed4018(); |
| 1321 o.creationTime = "foo"; | 1352 o.creationTime = "foo"; |
| 1322 o.defaultExpiration = "foo"; | 1353 o.defaultExpiration = "foo"; |
| 1323 o.deployer = "foo"; | 1354 o.deployer = "foo"; |
| 1324 o.deployment = buildDeployment(); | 1355 o.deployment = buildDeployment(); |
| 1325 o.diskUsageBytes = "foo"; | 1356 o.diskUsageBytes = "foo"; |
| 1326 o.env = "foo"; | 1357 o.env = "foo"; |
| 1327 o.envVariables = buildUnnamed4184(); | 1358 o.envVariables = buildUnnamed4019(); |
| 1328 o.errorHandlers = buildUnnamed4185(); | 1359 o.errorHandlers = buildUnnamed4020(); |
| 1329 o.handlers = buildUnnamed4186(); | 1360 o.handlers = buildUnnamed4021(); |
| 1330 o.healthCheck = buildHealthCheck(); | 1361 o.healthCheck = buildHealthCheck(); |
| 1331 o.id = "foo"; | 1362 o.id = "foo"; |
| 1332 o.inboundServices = buildUnnamed4187(); | 1363 o.inboundServices = buildUnnamed4022(); |
| 1333 o.instanceClass = "foo"; | 1364 o.instanceClass = "foo"; |
| 1334 o.libraries = buildUnnamed4188(); | 1365 o.libraries = buildUnnamed4023(); |
| 1335 o.manualScaling = buildManualScaling(); | 1366 o.manualScaling = buildManualScaling(); |
| 1336 o.name = "foo"; | 1367 o.name = "foo"; |
| 1337 o.network = buildNetwork(); | 1368 o.network = buildNetwork(); |
| 1338 o.nobuildFilesRegex = "foo"; | 1369 o.nobuildFilesRegex = "foo"; |
| 1339 o.resources = buildResources(); | 1370 o.resources = buildResources(); |
| 1340 o.runtime = "foo"; | 1371 o.runtime = "foo"; |
| 1341 o.servingStatus = "foo"; | 1372 o.servingStatus = "foo"; |
| 1342 o.threadsafe = true; | 1373 o.threadsafe = true; |
| 1343 o.vm = true; | 1374 o.vm = true; |
| 1344 } | 1375 } |
| 1345 buildCounterVersion--; | 1376 buildCounterVersion--; |
| 1346 return o; | 1377 return o; |
| 1347 } | 1378 } |
| 1348 | 1379 |
| 1349 checkVersion(api.Version o) { | 1380 checkVersion(api.Version o) { |
| 1350 buildCounterVersion++; | 1381 buildCounterVersion++; |
| 1351 if (buildCounterVersion < 3) { | 1382 if (buildCounterVersion < 3) { |
| 1352 checkApiConfigHandler(o.apiConfig); | 1383 checkApiConfigHandler(o.apiConfig); |
| 1353 checkAutomaticScaling(o.automaticScaling); | 1384 checkAutomaticScaling(o.automaticScaling); |
| 1354 checkBasicScaling(o.basicScaling); | 1385 checkBasicScaling(o.basicScaling); |
| 1355 checkUnnamed4183(o.betaSettings); | 1386 checkUnnamed4018(o.betaSettings); |
| 1356 unittest.expect(o.creationTime, unittest.equals('foo')); | 1387 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 1357 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1388 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
| 1358 unittest.expect(o.deployer, unittest.equals('foo')); | 1389 unittest.expect(o.deployer, unittest.equals('foo')); |
| 1359 checkDeployment(o.deployment); | 1390 checkDeployment(o.deployment); |
| 1360 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); | 1391 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); |
| 1361 unittest.expect(o.env, unittest.equals('foo')); | 1392 unittest.expect(o.env, unittest.equals('foo')); |
| 1362 checkUnnamed4184(o.envVariables); | 1393 checkUnnamed4019(o.envVariables); |
| 1363 checkUnnamed4185(o.errorHandlers); | 1394 checkUnnamed4020(o.errorHandlers); |
| 1364 checkUnnamed4186(o.handlers); | 1395 checkUnnamed4021(o.handlers); |
| 1365 checkHealthCheck(o.healthCheck); | 1396 checkHealthCheck(o.healthCheck); |
| 1366 unittest.expect(o.id, unittest.equals('foo')); | 1397 unittest.expect(o.id, unittest.equals('foo')); |
| 1367 checkUnnamed4187(o.inboundServices); | 1398 checkUnnamed4022(o.inboundServices); |
| 1368 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1399 unittest.expect(o.instanceClass, unittest.equals('foo')); |
| 1369 checkUnnamed4188(o.libraries); | 1400 checkUnnamed4023(o.libraries); |
| 1370 checkManualScaling(o.manualScaling); | 1401 checkManualScaling(o.manualScaling); |
| 1371 unittest.expect(o.name, unittest.equals('foo')); | 1402 unittest.expect(o.name, unittest.equals('foo')); |
| 1372 checkNetwork(o.network); | 1403 checkNetwork(o.network); |
| 1373 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1404 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
| 1374 checkResources(o.resources); | 1405 checkResources(o.resources); |
| 1375 unittest.expect(o.runtime, unittest.equals('foo')); | 1406 unittest.expect(o.runtime, unittest.equals('foo')); |
| 1376 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1407 unittest.expect(o.servingStatus, unittest.equals('foo')); |
| 1377 unittest.expect(o.threadsafe, unittest.isTrue); | 1408 unittest.expect(o.threadsafe, unittest.isTrue); |
| 1378 unittest.expect(o.vm, unittest.isTrue); | 1409 unittest.expect(o.vm, unittest.isTrue); |
| 1379 } | 1410 } |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1618 | 1649 |
| 1619 unittest.group("obj-schema-OperationMetadata", () { | 1650 unittest.group("obj-schema-OperationMetadata", () { |
| 1620 unittest.test("to-json--from-json", () { | 1651 unittest.test("to-json--from-json", () { |
| 1621 var o = buildOperationMetadata(); | 1652 var o = buildOperationMetadata(); |
| 1622 var od = new api.OperationMetadata.fromJson(o.toJson()); | 1653 var od = new api.OperationMetadata.fromJson(o.toJson()); |
| 1623 checkOperationMetadata(od); | 1654 checkOperationMetadata(od); |
| 1624 }); | 1655 }); |
| 1625 }); | 1656 }); |
| 1626 | 1657 |
| 1627 | 1658 |
| 1659 unittest.group("obj-schema-OperationMetadataExperimental", () { |
| 1660 unittest.test("to-json--from-json", () { |
| 1661 var o = buildOperationMetadataExperimental(); |
| 1662 var od = new api.OperationMetadataExperimental.fromJson(o.toJson()); |
| 1663 checkOperationMetadataExperimental(od); |
| 1664 }); |
| 1665 }); |
| 1666 |
| 1667 |
| 1628 unittest.group("obj-schema-OperationMetadataV1", () { | 1668 unittest.group("obj-schema-OperationMetadataV1", () { |
| 1629 unittest.test("to-json--from-json", () { | 1669 unittest.test("to-json--from-json", () { |
| 1630 var o = buildOperationMetadataV1(); | 1670 var o = buildOperationMetadataV1(); |
| 1631 var od = new api.OperationMetadataV1.fromJson(o.toJson()); | 1671 var od = new api.OperationMetadataV1.fromJson(o.toJson()); |
| 1632 checkOperationMetadataV1(od); | 1672 checkOperationMetadataV1(od); |
| 1633 }); | 1673 }); |
| 1634 }); | 1674 }); |
| 1635 | 1675 |
| 1636 | 1676 |
| 1637 unittest.group("obj-schema-OperationMetadataV1Beta5", () { | 1677 unittest.group("obj-schema-OperationMetadataV1Beta5", () { |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1832 "content-type" : "application/json; charset=utf-8", | 1872 "content-type" : "application/json; charset=utf-8", |
| 1833 }; | 1873 }; |
| 1834 var resp = convert.JSON.encode(buildApplication()); | 1874 var resp = convert.JSON.encode(buildApplication()); |
| 1835 return new async.Future.value(stringResponse(200, h, resp)); | 1875 return new async.Future.value(stringResponse(200, h, resp)); |
| 1836 }), true); | 1876 }), true); |
| 1837 res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(u
nittest.expectAsync(((api.Application response) { | 1877 res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(u
nittest.expectAsync(((api.Application response) { |
| 1838 checkApplication(response); | 1878 checkApplication(response); |
| 1839 }))); | 1879 }))); |
| 1840 }); | 1880 }); |
| 1841 | 1881 |
| 1882 unittest.test("method--patch", () { |
| 1883 |
| 1884 var mock = new HttpServerMock(); |
| 1885 api.AppsResourceApi res = new api.AppengineApi(mock).apps; |
| 1886 var arg_request = buildApplication(); |
| 1887 var arg_appsId = "foo"; |
| 1888 var arg_mask = "foo"; |
| 1889 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1890 var obj = new api.Application.fromJson(json); |
| 1891 checkApplication(obj); |
| 1892 |
| 1893 var path = (req.url).path; |
| 1894 var pathOffset = 0; |
| 1895 var index; |
| 1896 var subPart; |
| 1897 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1898 pathOffset += 1; |
| 1899 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta5/apps/")); |
| 1900 pathOffset += 13; |
| 1901 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 1902 pathOffset = path.length; |
| 1903 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 1904 |
| 1905 var query = (req.url).query; |
| 1906 var queryOffset = 0; |
| 1907 var queryMap = {}; |
| 1908 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1909 parseBool(n) { |
| 1910 if (n == "true") return true; |
| 1911 if (n == "false") return false; |
| 1912 if (n == null) return null; |
| 1913 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1914 } |
| 1915 if (query.length > 0) { |
| 1916 for (var part in query.split("&")) { |
| 1917 var keyvalue = part.split("="); |
| 1918 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1919 } |
| 1920 } |
| 1921 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask)); |
| 1922 |
| 1923 |
| 1924 var h = { |
| 1925 "content-type" : "application/json; charset=utf-8", |
| 1926 }; |
| 1927 var resp = convert.JSON.encode(buildOperation()); |
| 1928 return new async.Future.value(stringResponse(200, h, resp)); |
| 1929 }), true); |
| 1930 res.patch(arg_request, arg_appsId, mask: arg_mask).then(unittest.expectAsy
nc(((api.Operation response) { |
| 1931 checkOperation(response); |
| 1932 }))); |
| 1933 }); |
| 1934 |
| 1842 }); | 1935 }); |
| 1843 | 1936 |
| 1844 | 1937 |
| 1845 unittest.group("resource-AppsLocationsResourceApi", () { | 1938 unittest.group("resource-AppsLocationsResourceApi", () { |
| 1846 unittest.test("method--get", () { | 1939 unittest.test("method--get", () { |
| 1847 | 1940 |
| 1848 var mock = new HttpServerMock(); | 1941 var mock = new HttpServerMock(); |
| 1849 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; | 1942 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; |
| 1850 var arg_appsId = "foo"; | 1943 var arg_appsId = "foo"; |
| 1851 var arg_locationsId = "foo"; | 1944 var arg_locationsId = "foo"; |
| (...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2926 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { | 3019 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { |
| 2927 checkListInstancesResponse(response); | 3020 checkListInstancesResponse(response); |
| 2928 }))); | 3021 }))); |
| 2929 }); | 3022 }); |
| 2930 | 3023 |
| 2931 }); | 3024 }); |
| 2932 | 3025 |
| 2933 | 3026 |
| 2934 } | 3027 } |
| 2935 | 3028 |
| OLD | NEW |