OLD | NEW |
1 library googleapis_beta.appengine.v1beta4.test; | 1 library googleapis_beta.appengine.v1beta4.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 90 } |
91 | 91 |
92 checkApiEndpointHandler(api.ApiEndpointHandler o) { | 92 checkApiEndpointHandler(api.ApiEndpointHandler o) { |
93 buildCounterApiEndpointHandler++; | 93 buildCounterApiEndpointHandler++; |
94 if (buildCounterApiEndpointHandler < 3) { | 94 if (buildCounterApiEndpointHandler < 3) { |
95 unittest.expect(o.scriptPath, unittest.equals('foo')); | 95 unittest.expect(o.scriptPath, unittest.equals('foo')); |
96 } | 96 } |
97 buildCounterApiEndpointHandler--; | 97 buildCounterApiEndpointHandler--; |
98 } | 98 } |
99 | 99 |
100 buildUnnamed4189() { | 100 buildUnnamed4024() { |
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 checkUnnamed4189(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed4024(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 = buildUnnamed4189(); | 123 o.dispatchRules = buildUnnamed4024(); |
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 checkUnnamed4189(o.dispatchRules); | 140 checkUnnamed4024(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 buildUnnamed4190() { | 269 buildUnnamed4025() { |
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 checkUnnamed4190(core.Map<core.String, api.FileInfo> o) { | 276 checkUnnamed4025(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 buildUnnamed4191() { | 282 buildUnnamed4026() { |
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 checkUnnamed4191(core.List<api.SourceReference> o) { | 289 checkUnnamed4026(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 = buildUnnamed4190(); | 301 o.files = buildUnnamed4025(); |
300 o.sourceReferences = buildUnnamed4191(); | 302 o.sourceReferences = buildUnnamed4026(); |
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 checkUnnamed4190(o.files); | 312 checkUnnamed4025(o.files); |
311 checkUnnamed4191(o.sourceReferences); | 313 checkUnnamed4026(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 buildUnnamed4192() { | 490 buildUnnamed4027() { |
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 checkUnnamed4192(core.List<api.Instance> o) { | 497 checkUnnamed4027(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 = buildUnnamed4192(); | 508 o.instances = buildUnnamed4027(); |
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 checkUnnamed4192(o.instances); | 518 checkUnnamed4027(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 buildUnnamed4193() { | 524 buildUnnamed4028() { |
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 checkUnnamed4193(core.List<api.Location> o) { | 531 checkUnnamed4028(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 = buildUnnamed4193(); | 542 o.locations = buildUnnamed4028(); |
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 checkUnnamed4193(o.locations); | 552 checkUnnamed4028(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 buildUnnamed4194() { | 558 buildUnnamed4029() { |
555 var o = new core.List<api.Module>(); | 559 var o = new core.List<api.Module>(); |
556 o.add(buildModule()); | 560 o.add(buildModule()); |
557 o.add(buildModule()); | 561 o.add(buildModule()); |
558 return o; | 562 return o; |
559 } | 563 } |
560 | 564 |
561 checkUnnamed4194(core.List<api.Module> o) { | 565 checkUnnamed4029(core.List<api.Module> o) { |
562 unittest.expect(o, unittest.hasLength(2)); | 566 unittest.expect(o, unittest.hasLength(2)); |
563 checkModule(o[0]); | 567 checkModule(o[0]); |
564 checkModule(o[1]); | 568 checkModule(o[1]); |
565 } | 569 } |
566 | 570 |
567 core.int buildCounterListModulesResponse = 0; | 571 core.int buildCounterListModulesResponse = 0; |
568 buildListModulesResponse() { | 572 buildListModulesResponse() { |
569 var o = new api.ListModulesResponse(); | 573 var o = new api.ListModulesResponse(); |
570 buildCounterListModulesResponse++; | 574 buildCounterListModulesResponse++; |
571 if (buildCounterListModulesResponse < 3) { | 575 if (buildCounterListModulesResponse < 3) { |
572 o.modules = buildUnnamed4194(); | 576 o.modules = buildUnnamed4029(); |
573 o.nextPageToken = "foo"; | 577 o.nextPageToken = "foo"; |
574 } | 578 } |
575 buildCounterListModulesResponse--; | 579 buildCounterListModulesResponse--; |
576 return o; | 580 return o; |
577 } | 581 } |
578 | 582 |
579 checkListModulesResponse(api.ListModulesResponse o) { | 583 checkListModulesResponse(api.ListModulesResponse o) { |
580 buildCounterListModulesResponse++; | 584 buildCounterListModulesResponse++; |
581 if (buildCounterListModulesResponse < 3) { | 585 if (buildCounterListModulesResponse < 3) { |
582 checkUnnamed4194(o.modules); | 586 checkUnnamed4029(o.modules); |
583 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 587 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
584 } | 588 } |
585 buildCounterListModulesResponse--; | 589 buildCounterListModulesResponse--; |
586 } | 590 } |
587 | 591 |
588 buildUnnamed4195() { | 592 buildUnnamed4030() { |
589 var o = new core.List<api.Operation>(); | 593 var o = new core.List<api.Operation>(); |
590 o.add(buildOperation()); | 594 o.add(buildOperation()); |
591 o.add(buildOperation()); | 595 o.add(buildOperation()); |
592 return o; | 596 return o; |
593 } | 597 } |
594 | 598 |
595 checkUnnamed4195(core.List<api.Operation> o) { | 599 checkUnnamed4030(core.List<api.Operation> o) { |
596 unittest.expect(o, unittest.hasLength(2)); | 600 unittest.expect(o, unittest.hasLength(2)); |
597 checkOperation(o[0]); | 601 checkOperation(o[0]); |
598 checkOperation(o[1]); | 602 checkOperation(o[1]); |
599 } | 603 } |
600 | 604 |
601 core.int buildCounterListOperationsResponse = 0; | 605 core.int buildCounterListOperationsResponse = 0; |
602 buildListOperationsResponse() { | 606 buildListOperationsResponse() { |
603 var o = new api.ListOperationsResponse(); | 607 var o = new api.ListOperationsResponse(); |
604 buildCounterListOperationsResponse++; | 608 buildCounterListOperationsResponse++; |
605 if (buildCounterListOperationsResponse < 3) { | 609 if (buildCounterListOperationsResponse < 3) { |
606 o.nextPageToken = "foo"; | 610 o.nextPageToken = "foo"; |
607 o.operations = buildUnnamed4195(); | 611 o.operations = buildUnnamed4030(); |
608 } | 612 } |
609 buildCounterListOperationsResponse--; | 613 buildCounterListOperationsResponse--; |
610 return o; | 614 return o; |
611 } | 615 } |
612 | 616 |
613 checkListOperationsResponse(api.ListOperationsResponse o) { | 617 checkListOperationsResponse(api.ListOperationsResponse o) { |
614 buildCounterListOperationsResponse++; | 618 buildCounterListOperationsResponse++; |
615 if (buildCounterListOperationsResponse < 3) { | 619 if (buildCounterListOperationsResponse < 3) { |
616 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 620 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
617 checkUnnamed4195(o.operations); | 621 checkUnnamed4030(o.operations); |
618 } | 622 } |
619 buildCounterListOperationsResponse--; | 623 buildCounterListOperationsResponse--; |
620 } | 624 } |
621 | 625 |
622 buildUnnamed4196() { | 626 buildUnnamed4031() { |
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 checkUnnamed4196(core.List<api.Version> o) { | 633 checkUnnamed4031(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 = buildUnnamed4196(); | 645 o.versions = buildUnnamed4031(); |
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 checkUnnamed4196(o.versions); | 655 checkUnnamed4031(o.versions); |
652 } | 656 } |
653 buildCounterListVersionsResponse--; | 657 buildCounterListVersionsResponse--; |
654 } | 658 } |
655 | 659 |
656 buildUnnamed4197() { | 660 buildUnnamed4032() { |
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 checkUnnamed4197(core.Map<core.String, core.String> o) { | 667 checkUnnamed4032(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 buildUnnamed4198() { | 673 buildUnnamed4033() { |
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 checkUnnamed4198(core.Map<core.String, core.Object> o) { | 680 checkUnnamed4033(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 = buildUnnamed4197(); | 691 o.labels = buildUnnamed4032(); |
688 o.locationId = "foo"; | 692 o.locationId = "foo"; |
689 o.metadata = buildUnnamed4198(); | 693 o.metadata = buildUnnamed4033(); |
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 checkUnnamed4197(o.labels); | 703 checkUnnamed4032(o.labels); |
700 unittest.expect(o.locationId, unittest.equals('foo')); | 704 unittest.expect(o.locationId, unittest.equals('foo')); |
701 checkUnnamed4198(o.metadata); | 705 checkUnnamed4033(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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 checkModule(api.Module o) { | 764 checkModule(api.Module o) { |
761 buildCounterModule++; | 765 buildCounterModule++; |
762 if (buildCounterModule < 3) { | 766 if (buildCounterModule < 3) { |
763 unittest.expect(o.id, unittest.equals('foo')); | 767 unittest.expect(o.id, unittest.equals('foo')); |
764 unittest.expect(o.name, unittest.equals('foo')); | 768 unittest.expect(o.name, unittest.equals('foo')); |
765 checkTrafficSplit(o.split); | 769 checkTrafficSplit(o.split); |
766 } | 770 } |
767 buildCounterModule--; | 771 buildCounterModule--; |
768 } | 772 } |
769 | 773 |
770 buildUnnamed4199() { | 774 buildUnnamed4034() { |
771 var o = new core.List<core.String>(); | 775 var o = new core.List<core.String>(); |
772 o.add("foo"); | 776 o.add("foo"); |
773 o.add("foo"); | 777 o.add("foo"); |
774 return o; | 778 return o; |
775 } | 779 } |
776 | 780 |
777 checkUnnamed4199(core.List<core.String> o) { | 781 checkUnnamed4034(core.List<core.String> o) { |
778 unittest.expect(o, unittest.hasLength(2)); | 782 unittest.expect(o, unittest.hasLength(2)); |
779 unittest.expect(o[0], unittest.equals('foo')); | 783 unittest.expect(o[0], unittest.equals('foo')); |
780 unittest.expect(o[1], unittest.equals('foo')); | 784 unittest.expect(o[1], unittest.equals('foo')); |
781 } | 785 } |
782 | 786 |
783 core.int buildCounterNetwork = 0; | 787 core.int buildCounterNetwork = 0; |
784 buildNetwork() { | 788 buildNetwork() { |
785 var o = new api.Network(); | 789 var o = new api.Network(); |
786 buildCounterNetwork++; | 790 buildCounterNetwork++; |
787 if (buildCounterNetwork < 3) { | 791 if (buildCounterNetwork < 3) { |
788 o.forwardedPorts = buildUnnamed4199(); | 792 o.forwardedPorts = buildUnnamed4034(); |
789 o.instanceTag = "foo"; | 793 o.instanceTag = "foo"; |
790 o.name = "foo"; | 794 o.name = "foo"; |
791 } | 795 } |
792 buildCounterNetwork--; | 796 buildCounterNetwork--; |
793 return o; | 797 return o; |
794 } | 798 } |
795 | 799 |
796 checkNetwork(api.Network o) { | 800 checkNetwork(api.Network o) { |
797 buildCounterNetwork++; | 801 buildCounterNetwork++; |
798 if (buildCounterNetwork < 3) { | 802 if (buildCounterNetwork < 3) { |
799 checkUnnamed4199(o.forwardedPorts); | 803 checkUnnamed4034(o.forwardedPorts); |
800 unittest.expect(o.instanceTag, unittest.equals('foo')); | 804 unittest.expect(o.instanceTag, unittest.equals('foo')); |
801 unittest.expect(o.name, unittest.equals('foo')); | 805 unittest.expect(o.name, unittest.equals('foo')); |
802 } | 806 } |
803 buildCounterNetwork--; | 807 buildCounterNetwork--; |
804 } | 808 } |
805 | 809 |
806 core.int buildCounterNetworkUtilization = 0; | 810 core.int buildCounterNetworkUtilization = 0; |
807 buildNetworkUtilization() { | 811 buildNetworkUtilization() { |
808 var o = new api.NetworkUtilization(); | 812 var o = new api.NetworkUtilization(); |
809 buildCounterNetworkUtilization++; | 813 buildCounterNetworkUtilization++; |
(...skipping 11 matching lines...) Expand all Loading... |
821 buildCounterNetworkUtilization++; | 825 buildCounterNetworkUtilization++; |
822 if (buildCounterNetworkUtilization < 3) { | 826 if (buildCounterNetworkUtilization < 3) { |
823 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); | 827 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); |
824 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); | 828 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); |
825 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); | 829 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); |
826 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); | 830 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); |
827 } | 831 } |
828 buildCounterNetworkUtilization--; | 832 buildCounterNetworkUtilization--; |
829 } | 833 } |
830 | 834 |
831 buildUnnamed4200() { | 835 buildUnnamed4035() { |
832 var o = new core.Map<core.String, core.Object>(); | 836 var o = new core.Map<core.String, core.Object>(); |
833 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 837 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
834 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 838 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
835 return o; | 839 return o; |
836 } | 840 } |
837 | 841 |
838 checkUnnamed4200(core.Map<core.String, core.Object> o) { | 842 checkUnnamed4035(core.Map<core.String, core.Object> o) { |
839 unittest.expect(o, unittest.hasLength(2)); | 843 unittest.expect(o, unittest.hasLength(2)); |
840 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')); | 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')); |
841 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')); | 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')); |
842 } | 846 } |
843 | 847 |
844 buildUnnamed4201() { | 848 buildUnnamed4036() { |
845 var o = new core.Map<core.String, core.Object>(); | 849 var o = new core.Map<core.String, core.Object>(); |
846 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 850 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
847 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 851 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
848 return o; | 852 return o; |
849 } | 853 } |
850 | 854 |
851 checkUnnamed4201(core.Map<core.String, core.Object> o) { | 855 checkUnnamed4036(core.Map<core.String, core.Object> o) { |
852 unittest.expect(o, unittest.hasLength(2)); | 856 unittest.expect(o, unittest.hasLength(2)); |
853 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')); | 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')); |
854 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')); | 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')); |
855 } | 859 } |
856 | 860 |
857 core.int buildCounterOperation = 0; | 861 core.int buildCounterOperation = 0; |
858 buildOperation() { | 862 buildOperation() { |
859 var o = new api.Operation(); | 863 var o = new api.Operation(); |
860 buildCounterOperation++; | 864 buildCounterOperation++; |
861 if (buildCounterOperation < 3) { | 865 if (buildCounterOperation < 3) { |
862 o.done = true; | 866 o.done = true; |
863 o.error = buildStatus(); | 867 o.error = buildStatus(); |
864 o.metadata = buildUnnamed4200(); | 868 o.metadata = buildUnnamed4035(); |
865 o.name = "foo"; | 869 o.name = "foo"; |
866 o.response = buildUnnamed4201(); | 870 o.response = buildUnnamed4036(); |
867 } | 871 } |
868 buildCounterOperation--; | 872 buildCounterOperation--; |
869 return o; | 873 return o; |
870 } | 874 } |
871 | 875 |
872 checkOperation(api.Operation o) { | 876 checkOperation(api.Operation o) { |
873 buildCounterOperation++; | 877 buildCounterOperation++; |
874 if (buildCounterOperation < 3) { | 878 if (buildCounterOperation < 3) { |
875 unittest.expect(o.done, unittest.isTrue); | 879 unittest.expect(o.done, unittest.isTrue); |
876 checkStatus(o.error); | 880 checkStatus(o.error); |
877 checkUnnamed4200(o.metadata); | 881 checkUnnamed4035(o.metadata); |
878 unittest.expect(o.name, unittest.equals('foo')); | 882 unittest.expect(o.name, unittest.equals('foo')); |
879 checkUnnamed4201(o.response); | 883 checkUnnamed4036(o.response); |
880 } | 884 } |
881 buildCounterOperation--; | 885 buildCounterOperation--; |
882 } | 886 } |
883 | 887 |
884 core.int buildCounterOperationMetadata = 0; | 888 core.int buildCounterOperationMetadata = 0; |
885 buildOperationMetadata() { | 889 buildOperationMetadata() { |
886 var o = new api.OperationMetadata(); | 890 var o = new api.OperationMetadata(); |
887 buildCounterOperationMetadata++; | 891 buildCounterOperationMetadata++; |
888 if (buildCounterOperationMetadata < 3) { | 892 if (buildCounterOperationMetadata < 3) { |
889 o.endTime = "foo"; | 893 o.endTime = "foo"; |
(...skipping 13 matching lines...) Expand all Loading... |
903 unittest.expect(o.endTime, unittest.equals('foo')); | 907 unittest.expect(o.endTime, unittest.equals('foo')); |
904 unittest.expect(o.insertTime, unittest.equals('foo')); | 908 unittest.expect(o.insertTime, unittest.equals('foo')); |
905 unittest.expect(o.method, unittest.equals('foo')); | 909 unittest.expect(o.method, unittest.equals('foo')); |
906 unittest.expect(o.operationType, unittest.equals('foo')); | 910 unittest.expect(o.operationType, unittest.equals('foo')); |
907 unittest.expect(o.target, unittest.equals('foo')); | 911 unittest.expect(o.target, unittest.equals('foo')); |
908 unittest.expect(o.user, unittest.equals('foo')); | 912 unittest.expect(o.user, unittest.equals('foo')); |
909 } | 913 } |
910 buildCounterOperationMetadata--; | 914 buildCounterOperationMetadata--; |
911 } | 915 } |
912 | 916 |
| 917 core.int buildCounterOperationMetadataExperimental = 0; |
| 918 buildOperationMetadataExperimental() { |
| 919 var o = new api.OperationMetadataExperimental(); |
| 920 buildCounterOperationMetadataExperimental++; |
| 921 if (buildCounterOperationMetadataExperimental < 3) { |
| 922 o.endTime = "foo"; |
| 923 o.insertTime = "foo"; |
| 924 o.method = "foo"; |
| 925 o.target = "foo"; |
| 926 o.user = "foo"; |
| 927 } |
| 928 buildCounterOperationMetadataExperimental--; |
| 929 return o; |
| 930 } |
| 931 |
| 932 checkOperationMetadataExperimental(api.OperationMetadataExperimental o) { |
| 933 buildCounterOperationMetadataExperimental++; |
| 934 if (buildCounterOperationMetadataExperimental < 3) { |
| 935 unittest.expect(o.endTime, unittest.equals('foo')); |
| 936 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 937 unittest.expect(o.method, unittest.equals('foo')); |
| 938 unittest.expect(o.target, unittest.equals('foo')); |
| 939 unittest.expect(o.user, unittest.equals('foo')); |
| 940 } |
| 941 buildCounterOperationMetadataExperimental--; |
| 942 } |
| 943 |
913 core.int buildCounterOperationMetadataV1 = 0; | 944 core.int buildCounterOperationMetadataV1 = 0; |
914 buildOperationMetadataV1() { | 945 buildOperationMetadataV1() { |
915 var o = new api.OperationMetadataV1(); | 946 var o = new api.OperationMetadataV1(); |
916 buildCounterOperationMetadataV1++; | 947 buildCounterOperationMetadataV1++; |
917 if (buildCounterOperationMetadataV1 < 3) { | 948 if (buildCounterOperationMetadataV1 < 3) { |
918 o.endTime = "foo"; | 949 o.endTime = "foo"; |
919 o.insertTime = "foo"; | 950 o.insertTime = "foo"; |
920 o.method = "foo"; | 951 o.method = "foo"; |
921 o.target = "foo"; | 952 o.target = "foo"; |
922 o.user = "foo"; | 953 o.user = "foo"; |
(...skipping 118 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 buildUnnamed4202() { | 1082 buildUnnamed4037() { |
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 checkUnnamed4202(core.Map<core.String, core.String> o) { | 1089 checkUnnamed4037(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 buildCounterStaticDirectoryHandler = 0; | 1095 core.int buildCounterStaticDirectoryHandler = 0; |
1065 buildStaticDirectoryHandler() { | 1096 buildStaticDirectoryHandler() { |
1066 var o = new api.StaticDirectoryHandler(); | 1097 var o = new api.StaticDirectoryHandler(); |
1067 buildCounterStaticDirectoryHandler++; | 1098 buildCounterStaticDirectoryHandler++; |
1068 if (buildCounterStaticDirectoryHandler < 3) { | 1099 if (buildCounterStaticDirectoryHandler < 3) { |
1069 o.applicationReadable = true; | 1100 o.applicationReadable = true; |
1070 o.directory = "foo"; | 1101 o.directory = "foo"; |
1071 o.expiration = "foo"; | 1102 o.expiration = "foo"; |
1072 o.httpHeaders = buildUnnamed4202(); | 1103 o.httpHeaders = buildUnnamed4037(); |
1073 o.mimeType = "foo"; | 1104 o.mimeType = "foo"; |
1074 o.requireMatchingFile = true; | 1105 o.requireMatchingFile = true; |
1075 } | 1106 } |
1076 buildCounterStaticDirectoryHandler--; | 1107 buildCounterStaticDirectoryHandler--; |
1077 return o; | 1108 return o; |
1078 } | 1109 } |
1079 | 1110 |
1080 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { | 1111 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { |
1081 buildCounterStaticDirectoryHandler++; | 1112 buildCounterStaticDirectoryHandler++; |
1082 if (buildCounterStaticDirectoryHandler < 3) { | 1113 if (buildCounterStaticDirectoryHandler < 3) { |
1083 unittest.expect(o.applicationReadable, unittest.isTrue); | 1114 unittest.expect(o.applicationReadable, unittest.isTrue); |
1084 unittest.expect(o.directory, unittest.equals('foo')); | 1115 unittest.expect(o.directory, unittest.equals('foo')); |
1085 unittest.expect(o.expiration, unittest.equals('foo')); | 1116 unittest.expect(o.expiration, unittest.equals('foo')); |
1086 checkUnnamed4202(o.httpHeaders); | 1117 checkUnnamed4037(o.httpHeaders); |
1087 unittest.expect(o.mimeType, unittest.equals('foo')); | 1118 unittest.expect(o.mimeType, unittest.equals('foo')); |
1088 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1119 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1089 } | 1120 } |
1090 buildCounterStaticDirectoryHandler--; | 1121 buildCounterStaticDirectoryHandler--; |
1091 } | 1122 } |
1092 | 1123 |
1093 buildUnnamed4203() { | 1124 buildUnnamed4038() { |
1094 var o = new core.Map<core.String, core.String>(); | 1125 var o = new core.Map<core.String, core.String>(); |
1095 o["x"] = "foo"; | 1126 o["x"] = "foo"; |
1096 o["y"] = "foo"; | 1127 o["y"] = "foo"; |
1097 return o; | 1128 return o; |
1098 } | 1129 } |
1099 | 1130 |
1100 checkUnnamed4203(core.Map<core.String, core.String> o) { | 1131 checkUnnamed4038(core.Map<core.String, core.String> o) { |
1101 unittest.expect(o, unittest.hasLength(2)); | 1132 unittest.expect(o, unittest.hasLength(2)); |
1102 unittest.expect(o["x"], unittest.equals('foo')); | 1133 unittest.expect(o["x"], unittest.equals('foo')); |
1103 unittest.expect(o["y"], unittest.equals('foo')); | 1134 unittest.expect(o["y"], unittest.equals('foo')); |
1104 } | 1135 } |
1105 | 1136 |
1106 core.int buildCounterStaticFilesHandler = 0; | 1137 core.int buildCounterStaticFilesHandler = 0; |
1107 buildStaticFilesHandler() { | 1138 buildStaticFilesHandler() { |
1108 var o = new api.StaticFilesHandler(); | 1139 var o = new api.StaticFilesHandler(); |
1109 buildCounterStaticFilesHandler++; | 1140 buildCounterStaticFilesHandler++; |
1110 if (buildCounterStaticFilesHandler < 3) { | 1141 if (buildCounterStaticFilesHandler < 3) { |
1111 o.applicationReadable = true; | 1142 o.applicationReadable = true; |
1112 o.expiration = "foo"; | 1143 o.expiration = "foo"; |
1113 o.httpHeaders = buildUnnamed4203(); | 1144 o.httpHeaders = buildUnnamed4038(); |
1114 o.mimeType = "foo"; | 1145 o.mimeType = "foo"; |
1115 o.path = "foo"; | 1146 o.path = "foo"; |
1116 o.requireMatchingFile = true; | 1147 o.requireMatchingFile = true; |
1117 o.uploadPathRegex = "foo"; | 1148 o.uploadPathRegex = "foo"; |
1118 } | 1149 } |
1119 buildCounterStaticFilesHandler--; | 1150 buildCounterStaticFilesHandler--; |
1120 return o; | 1151 return o; |
1121 } | 1152 } |
1122 | 1153 |
1123 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1154 checkStaticFilesHandler(api.StaticFilesHandler o) { |
1124 buildCounterStaticFilesHandler++; | 1155 buildCounterStaticFilesHandler++; |
1125 if (buildCounterStaticFilesHandler < 3) { | 1156 if (buildCounterStaticFilesHandler < 3) { |
1126 unittest.expect(o.applicationReadable, unittest.isTrue); | 1157 unittest.expect(o.applicationReadable, unittest.isTrue); |
1127 unittest.expect(o.expiration, unittest.equals('foo')); | 1158 unittest.expect(o.expiration, unittest.equals('foo')); |
1128 checkUnnamed4203(o.httpHeaders); | 1159 checkUnnamed4038(o.httpHeaders); |
1129 unittest.expect(o.mimeType, unittest.equals('foo')); | 1160 unittest.expect(o.mimeType, unittest.equals('foo')); |
1130 unittest.expect(o.path, unittest.equals('foo')); | 1161 unittest.expect(o.path, unittest.equals('foo')); |
1131 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1162 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1132 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1163 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
1133 } | 1164 } |
1134 buildCounterStaticFilesHandler--; | 1165 buildCounterStaticFilesHandler--; |
1135 } | 1166 } |
1136 | 1167 |
1137 buildUnnamed4204() { | 1168 buildUnnamed4039() { |
1138 var o = new core.Map<core.String, core.Object>(); | 1169 var o = new core.Map<core.String, core.Object>(); |
1139 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1170 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1140 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1171 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1141 return o; | 1172 return o; |
1142 } | 1173 } |
1143 | 1174 |
1144 checkUnnamed4204(core.Map<core.String, core.Object> o) { | 1175 checkUnnamed4039(core.Map<core.String, core.Object> o) { |
1145 unittest.expect(o, unittest.hasLength(2)); | 1176 unittest.expect(o, unittest.hasLength(2)); |
1146 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')); | 1177 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')); |
1147 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')); | 1178 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')); |
1148 } | 1179 } |
1149 | 1180 |
1150 buildUnnamed4205() { | 1181 buildUnnamed4040() { |
1151 var o = new core.List<core.Map<core.String, core.Object>>(); | 1182 var o = new core.List<core.Map<core.String, core.Object>>(); |
1152 o.add(buildUnnamed4204()); | 1183 o.add(buildUnnamed4039()); |
1153 o.add(buildUnnamed4204()); | 1184 o.add(buildUnnamed4039()); |
1154 return o; | 1185 return o; |
1155 } | 1186 } |
1156 | 1187 |
1157 checkUnnamed4205(core.List<core.Map<core.String, core.Object>> o) { | 1188 checkUnnamed4040(core.List<core.Map<core.String, core.Object>> o) { |
1158 unittest.expect(o, unittest.hasLength(2)); | 1189 unittest.expect(o, unittest.hasLength(2)); |
1159 checkUnnamed4204(o[0]); | 1190 checkUnnamed4039(o[0]); |
1160 checkUnnamed4204(o[1]); | 1191 checkUnnamed4039(o[1]); |
1161 } | 1192 } |
1162 | 1193 |
1163 core.int buildCounterStatus = 0; | 1194 core.int buildCounterStatus = 0; |
1164 buildStatus() { | 1195 buildStatus() { |
1165 var o = new api.Status(); | 1196 var o = new api.Status(); |
1166 buildCounterStatus++; | 1197 buildCounterStatus++; |
1167 if (buildCounterStatus < 3) { | 1198 if (buildCounterStatus < 3) { |
1168 o.code = 42; | 1199 o.code = 42; |
1169 o.details = buildUnnamed4205(); | 1200 o.details = buildUnnamed4040(); |
1170 o.message = "foo"; | 1201 o.message = "foo"; |
1171 } | 1202 } |
1172 buildCounterStatus--; | 1203 buildCounterStatus--; |
1173 return o; | 1204 return o; |
1174 } | 1205 } |
1175 | 1206 |
1176 checkStatus(api.Status o) { | 1207 checkStatus(api.Status o) { |
1177 buildCounterStatus++; | 1208 buildCounterStatus++; |
1178 if (buildCounterStatus < 3) { | 1209 if (buildCounterStatus < 3) { |
1179 unittest.expect(o.code, unittest.equals(42)); | 1210 unittest.expect(o.code, unittest.equals(42)); |
1180 checkUnnamed4205(o.details); | 1211 checkUnnamed4040(o.details); |
1181 unittest.expect(o.message, unittest.equals('foo')); | 1212 unittest.expect(o.message, unittest.equals('foo')); |
1182 } | 1213 } |
1183 buildCounterStatus--; | 1214 buildCounterStatus--; |
1184 } | 1215 } |
1185 | 1216 |
1186 buildUnnamed4206() { | 1217 buildUnnamed4041() { |
1187 var o = new core.Map<core.String, core.double>(); | 1218 var o = new core.Map<core.String, core.double>(); |
1188 o["x"] = 42.0; | 1219 o["x"] = 42.0; |
1189 o["y"] = 42.0; | 1220 o["y"] = 42.0; |
1190 return o; | 1221 return o; |
1191 } | 1222 } |
1192 | 1223 |
1193 checkUnnamed4206(core.Map<core.String, core.double> o) { | 1224 checkUnnamed4041(core.Map<core.String, core.double> o) { |
1194 unittest.expect(o, unittest.hasLength(2)); | 1225 unittest.expect(o, unittest.hasLength(2)); |
1195 unittest.expect(o["x"], unittest.equals(42.0)); | 1226 unittest.expect(o["x"], unittest.equals(42.0)); |
1196 unittest.expect(o["y"], unittest.equals(42.0)); | 1227 unittest.expect(o["y"], unittest.equals(42.0)); |
1197 } | 1228 } |
1198 | 1229 |
1199 core.int buildCounterTrafficSplit = 0; | 1230 core.int buildCounterTrafficSplit = 0; |
1200 buildTrafficSplit() { | 1231 buildTrafficSplit() { |
1201 var o = new api.TrafficSplit(); | 1232 var o = new api.TrafficSplit(); |
1202 buildCounterTrafficSplit++; | 1233 buildCounterTrafficSplit++; |
1203 if (buildCounterTrafficSplit < 3) { | 1234 if (buildCounterTrafficSplit < 3) { |
1204 o.allocations = buildUnnamed4206(); | 1235 o.allocations = buildUnnamed4041(); |
1205 o.shardBy = "foo"; | 1236 o.shardBy = "foo"; |
1206 } | 1237 } |
1207 buildCounterTrafficSplit--; | 1238 buildCounterTrafficSplit--; |
1208 return o; | 1239 return o; |
1209 } | 1240 } |
1210 | 1241 |
1211 checkTrafficSplit(api.TrafficSplit o) { | 1242 checkTrafficSplit(api.TrafficSplit o) { |
1212 buildCounterTrafficSplit++; | 1243 buildCounterTrafficSplit++; |
1213 if (buildCounterTrafficSplit < 3) { | 1244 if (buildCounterTrafficSplit < 3) { |
1214 checkUnnamed4206(o.allocations); | 1245 checkUnnamed4041(o.allocations); |
1215 unittest.expect(o.shardBy, unittest.equals('foo')); | 1246 unittest.expect(o.shardBy, unittest.equals('foo')); |
1216 } | 1247 } |
1217 buildCounterTrafficSplit--; | 1248 buildCounterTrafficSplit--; |
1218 } | 1249 } |
1219 | 1250 |
1220 core.int buildCounterUrlDispatchRule = 0; | 1251 core.int buildCounterUrlDispatchRule = 0; |
1221 buildUrlDispatchRule() { | 1252 buildUrlDispatchRule() { |
1222 var o = new api.UrlDispatchRule(); | 1253 var o = new api.UrlDispatchRule(); |
1223 buildCounterUrlDispatchRule++; | 1254 buildCounterUrlDispatchRule++; |
1224 if (buildCounterUrlDispatchRule < 3) { | 1255 if (buildCounterUrlDispatchRule < 3) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1299 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
1269 checkScriptHandler(o.script); | 1300 checkScriptHandler(o.script); |
1270 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1301 unittest.expect(o.securityLevel, unittest.equals('foo')); |
1271 checkStaticDirectoryHandler(o.staticDirectory); | 1302 checkStaticDirectoryHandler(o.staticDirectory); |
1272 checkStaticFilesHandler(o.staticFiles); | 1303 checkStaticFilesHandler(o.staticFiles); |
1273 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1304 unittest.expect(o.urlRegex, unittest.equals('foo')); |
1274 } | 1305 } |
1275 buildCounterUrlMap--; | 1306 buildCounterUrlMap--; |
1276 } | 1307 } |
1277 | 1308 |
1278 buildUnnamed4207() { | 1309 buildUnnamed4042() { |
1279 var o = new core.Map<core.String, core.String>(); | 1310 var o = new core.Map<core.String, core.String>(); |
1280 o["x"] = "foo"; | 1311 o["x"] = "foo"; |
1281 o["y"] = "foo"; | 1312 o["y"] = "foo"; |
1282 return o; | 1313 return o; |
1283 } | 1314 } |
1284 | 1315 |
1285 checkUnnamed4207(core.Map<core.String, core.String> o) { | 1316 checkUnnamed4042(core.Map<core.String, core.String> o) { |
1286 unittest.expect(o, unittest.hasLength(2)); | 1317 unittest.expect(o, unittest.hasLength(2)); |
1287 unittest.expect(o["x"], unittest.equals('foo')); | 1318 unittest.expect(o["x"], unittest.equals('foo')); |
1288 unittest.expect(o["y"], unittest.equals('foo')); | 1319 unittest.expect(o["y"], unittest.equals('foo')); |
1289 } | 1320 } |
1290 | 1321 |
1291 buildUnnamed4208() { | 1322 buildUnnamed4043() { |
1292 var o = new core.Map<core.String, core.String>(); | 1323 var o = new core.Map<core.String, core.String>(); |
1293 o["x"] = "foo"; | 1324 o["x"] = "foo"; |
1294 o["y"] = "foo"; | 1325 o["y"] = "foo"; |
1295 return o; | 1326 return o; |
1296 } | 1327 } |
1297 | 1328 |
1298 checkUnnamed4208(core.Map<core.String, core.String> o) { | 1329 checkUnnamed4043(core.Map<core.String, core.String> o) { |
1299 unittest.expect(o, unittest.hasLength(2)); | 1330 unittest.expect(o, unittest.hasLength(2)); |
1300 unittest.expect(o["x"], unittest.equals('foo')); | 1331 unittest.expect(o["x"], unittest.equals('foo')); |
1301 unittest.expect(o["y"], unittest.equals('foo')); | 1332 unittest.expect(o["y"], unittest.equals('foo')); |
1302 } | 1333 } |
1303 | 1334 |
1304 buildUnnamed4209() { | 1335 buildUnnamed4044() { |
1305 var o = new core.List<api.ErrorHandler>(); | 1336 var o = new core.List<api.ErrorHandler>(); |
1306 o.add(buildErrorHandler()); | 1337 o.add(buildErrorHandler()); |
1307 o.add(buildErrorHandler()); | 1338 o.add(buildErrorHandler()); |
1308 return o; | 1339 return o; |
1309 } | 1340 } |
1310 | 1341 |
1311 checkUnnamed4209(core.List<api.ErrorHandler> o) { | 1342 checkUnnamed4044(core.List<api.ErrorHandler> o) { |
1312 unittest.expect(o, unittest.hasLength(2)); | 1343 unittest.expect(o, unittest.hasLength(2)); |
1313 checkErrorHandler(o[0]); | 1344 checkErrorHandler(o[0]); |
1314 checkErrorHandler(o[1]); | 1345 checkErrorHandler(o[1]); |
1315 } | 1346 } |
1316 | 1347 |
1317 buildUnnamed4210() { | 1348 buildUnnamed4045() { |
1318 var o = new core.List<api.UrlMap>(); | 1349 var o = new core.List<api.UrlMap>(); |
1319 o.add(buildUrlMap()); | 1350 o.add(buildUrlMap()); |
1320 o.add(buildUrlMap()); | 1351 o.add(buildUrlMap()); |
1321 return o; | 1352 return o; |
1322 } | 1353 } |
1323 | 1354 |
1324 checkUnnamed4210(core.List<api.UrlMap> o) { | 1355 checkUnnamed4045(core.List<api.UrlMap> o) { |
1325 unittest.expect(o, unittest.hasLength(2)); | 1356 unittest.expect(o, unittest.hasLength(2)); |
1326 checkUrlMap(o[0]); | 1357 checkUrlMap(o[0]); |
1327 checkUrlMap(o[1]); | 1358 checkUrlMap(o[1]); |
1328 } | 1359 } |
1329 | 1360 |
1330 buildUnnamed4211() { | 1361 buildUnnamed4046() { |
1331 var o = new core.List<core.String>(); | 1362 var o = new core.List<core.String>(); |
1332 o.add("foo"); | 1363 o.add("foo"); |
1333 o.add("foo"); | 1364 o.add("foo"); |
1334 return o; | 1365 return o; |
1335 } | 1366 } |
1336 | 1367 |
1337 checkUnnamed4211(core.List<core.String> o) { | 1368 checkUnnamed4046(core.List<core.String> o) { |
1338 unittest.expect(o, unittest.hasLength(2)); | 1369 unittest.expect(o, unittest.hasLength(2)); |
1339 unittest.expect(o[0], unittest.equals('foo')); | 1370 unittest.expect(o[0], unittest.equals('foo')); |
1340 unittest.expect(o[1], unittest.equals('foo')); | 1371 unittest.expect(o[1], unittest.equals('foo')); |
1341 } | 1372 } |
1342 | 1373 |
1343 buildUnnamed4212() { | 1374 buildUnnamed4047() { |
1344 var o = new core.List<api.Library>(); | 1375 var o = new core.List<api.Library>(); |
1345 o.add(buildLibrary()); | 1376 o.add(buildLibrary()); |
1346 o.add(buildLibrary()); | 1377 o.add(buildLibrary()); |
1347 return o; | 1378 return o; |
1348 } | 1379 } |
1349 | 1380 |
1350 checkUnnamed4212(core.List<api.Library> o) { | 1381 checkUnnamed4047(core.List<api.Library> o) { |
1351 unittest.expect(o, unittest.hasLength(2)); | 1382 unittest.expect(o, unittest.hasLength(2)); |
1352 checkLibrary(o[0]); | 1383 checkLibrary(o[0]); |
1353 checkLibrary(o[1]); | 1384 checkLibrary(o[1]); |
1354 } | 1385 } |
1355 | 1386 |
1356 core.int buildCounterVersion = 0; | 1387 core.int buildCounterVersion = 0; |
1357 buildVersion() { | 1388 buildVersion() { |
1358 var o = new api.Version(); | 1389 var o = new api.Version(); |
1359 buildCounterVersion++; | 1390 buildCounterVersion++; |
1360 if (buildCounterVersion < 3) { | 1391 if (buildCounterVersion < 3) { |
1361 o.apiConfig = buildApiConfigHandler(); | 1392 o.apiConfig = buildApiConfigHandler(); |
1362 o.automaticScaling = buildAutomaticScaling(); | 1393 o.automaticScaling = buildAutomaticScaling(); |
1363 o.basicScaling = buildBasicScaling(); | 1394 o.basicScaling = buildBasicScaling(); |
1364 o.betaSettings = buildUnnamed4207(); | 1395 o.betaSettings = buildUnnamed4042(); |
1365 o.creationTime = "foo"; | 1396 o.creationTime = "foo"; |
1366 o.defaultExpiration = "foo"; | 1397 o.defaultExpiration = "foo"; |
1367 o.deployer = "foo"; | 1398 o.deployer = "foo"; |
1368 o.deployment = buildDeployment(); | 1399 o.deployment = buildDeployment(); |
1369 o.env = "foo"; | 1400 o.env = "foo"; |
1370 o.envVariables = buildUnnamed4208(); | 1401 o.envVariables = buildUnnamed4043(); |
1371 o.errorHandlers = buildUnnamed4209(); | 1402 o.errorHandlers = buildUnnamed4044(); |
1372 o.handlers = buildUnnamed4210(); | 1403 o.handlers = buildUnnamed4045(); |
1373 o.healthCheck = buildHealthCheck(); | 1404 o.healthCheck = buildHealthCheck(); |
1374 o.id = "foo"; | 1405 o.id = "foo"; |
1375 o.inboundServices = buildUnnamed4211(); | 1406 o.inboundServices = buildUnnamed4046(); |
1376 o.instanceClass = "foo"; | 1407 o.instanceClass = "foo"; |
1377 o.libraries = buildUnnamed4212(); | 1408 o.libraries = buildUnnamed4047(); |
1378 o.manualScaling = buildManualScaling(); | 1409 o.manualScaling = buildManualScaling(); |
1379 o.name = "foo"; | 1410 o.name = "foo"; |
1380 o.network = buildNetwork(); | 1411 o.network = buildNetwork(); |
1381 o.nobuildFilesRegex = "foo"; | 1412 o.nobuildFilesRegex = "foo"; |
1382 o.resources = buildResources(); | 1413 o.resources = buildResources(); |
1383 o.runtime = "foo"; | 1414 o.runtime = "foo"; |
1384 o.servingStatus = "foo"; | 1415 o.servingStatus = "foo"; |
1385 o.threadsafe = true; | 1416 o.threadsafe = true; |
1386 o.vm = true; | 1417 o.vm = true; |
1387 } | 1418 } |
1388 buildCounterVersion--; | 1419 buildCounterVersion--; |
1389 return o; | 1420 return o; |
1390 } | 1421 } |
1391 | 1422 |
1392 checkVersion(api.Version o) { | 1423 checkVersion(api.Version o) { |
1393 buildCounterVersion++; | 1424 buildCounterVersion++; |
1394 if (buildCounterVersion < 3) { | 1425 if (buildCounterVersion < 3) { |
1395 checkApiConfigHandler(o.apiConfig); | 1426 checkApiConfigHandler(o.apiConfig); |
1396 checkAutomaticScaling(o.automaticScaling); | 1427 checkAutomaticScaling(o.automaticScaling); |
1397 checkBasicScaling(o.basicScaling); | 1428 checkBasicScaling(o.basicScaling); |
1398 checkUnnamed4207(o.betaSettings); | 1429 checkUnnamed4042(o.betaSettings); |
1399 unittest.expect(o.creationTime, unittest.equals('foo')); | 1430 unittest.expect(o.creationTime, unittest.equals('foo')); |
1400 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1431 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
1401 unittest.expect(o.deployer, unittest.equals('foo')); | 1432 unittest.expect(o.deployer, unittest.equals('foo')); |
1402 checkDeployment(o.deployment); | 1433 checkDeployment(o.deployment); |
1403 unittest.expect(o.env, unittest.equals('foo')); | 1434 unittest.expect(o.env, unittest.equals('foo')); |
1404 checkUnnamed4208(o.envVariables); | 1435 checkUnnamed4043(o.envVariables); |
1405 checkUnnamed4209(o.errorHandlers); | 1436 checkUnnamed4044(o.errorHandlers); |
1406 checkUnnamed4210(o.handlers); | 1437 checkUnnamed4045(o.handlers); |
1407 checkHealthCheck(o.healthCheck); | 1438 checkHealthCheck(o.healthCheck); |
1408 unittest.expect(o.id, unittest.equals('foo')); | 1439 unittest.expect(o.id, unittest.equals('foo')); |
1409 checkUnnamed4211(o.inboundServices); | 1440 checkUnnamed4046(o.inboundServices); |
1410 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1441 unittest.expect(o.instanceClass, unittest.equals('foo')); |
1411 checkUnnamed4212(o.libraries); | 1442 checkUnnamed4047(o.libraries); |
1412 checkManualScaling(o.manualScaling); | 1443 checkManualScaling(o.manualScaling); |
1413 unittest.expect(o.name, unittest.equals('foo')); | 1444 unittest.expect(o.name, unittest.equals('foo')); |
1414 checkNetwork(o.network); | 1445 checkNetwork(o.network); |
1415 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1446 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
1416 checkResources(o.resources); | 1447 checkResources(o.resources); |
1417 unittest.expect(o.runtime, unittest.equals('foo')); | 1448 unittest.expect(o.runtime, unittest.equals('foo')); |
1418 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1449 unittest.expect(o.servingStatus, unittest.equals('foo')); |
1419 unittest.expect(o.threadsafe, unittest.isTrue); | 1450 unittest.expect(o.threadsafe, unittest.isTrue); |
1420 unittest.expect(o.vm, unittest.isTrue); | 1451 unittest.expect(o.vm, unittest.isTrue); |
1421 } | 1452 } |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1669 | 1700 |
1670 unittest.group("obj-schema-OperationMetadata", () { | 1701 unittest.group("obj-schema-OperationMetadata", () { |
1671 unittest.test("to-json--from-json", () { | 1702 unittest.test("to-json--from-json", () { |
1672 var o = buildOperationMetadata(); | 1703 var o = buildOperationMetadata(); |
1673 var od = new api.OperationMetadata.fromJson(o.toJson()); | 1704 var od = new api.OperationMetadata.fromJson(o.toJson()); |
1674 checkOperationMetadata(od); | 1705 checkOperationMetadata(od); |
1675 }); | 1706 }); |
1676 }); | 1707 }); |
1677 | 1708 |
1678 | 1709 |
| 1710 unittest.group("obj-schema-OperationMetadataExperimental", () { |
| 1711 unittest.test("to-json--from-json", () { |
| 1712 var o = buildOperationMetadataExperimental(); |
| 1713 var od = new api.OperationMetadataExperimental.fromJson(o.toJson()); |
| 1714 checkOperationMetadataExperimental(od); |
| 1715 }); |
| 1716 }); |
| 1717 |
| 1718 |
1679 unittest.group("obj-schema-OperationMetadataV1", () { | 1719 unittest.group("obj-schema-OperationMetadataV1", () { |
1680 unittest.test("to-json--from-json", () { | 1720 unittest.test("to-json--from-json", () { |
1681 var o = buildOperationMetadataV1(); | 1721 var o = buildOperationMetadataV1(); |
1682 var od = new api.OperationMetadataV1.fromJson(o.toJson()); | 1722 var od = new api.OperationMetadataV1.fromJson(o.toJson()); |
1683 checkOperationMetadataV1(od); | 1723 checkOperationMetadataV1(od); |
1684 }); | 1724 }); |
1685 }); | 1725 }); |
1686 | 1726 |
1687 | 1727 |
1688 unittest.group("obj-schema-OperationMetadataV1Beta5", () { | 1728 unittest.group("obj-schema-OperationMetadataV1Beta5", () { |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1883 "content-type" : "application/json; charset=utf-8", | 1923 "content-type" : "application/json; charset=utf-8", |
1884 }; | 1924 }; |
1885 var resp = convert.JSON.encode(buildApplication()); | 1925 var resp = convert.JSON.encode(buildApplication()); |
1886 return new async.Future.value(stringResponse(200, h, resp)); | 1926 return new async.Future.value(stringResponse(200, h, resp)); |
1887 }), true); | 1927 }), true); |
1888 res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(u
nittest.expectAsync(((api.Application response) { | 1928 res.get(arg_appsId, ensureResourcesExist: arg_ensureResourcesExist).then(u
nittest.expectAsync(((api.Application response) { |
1889 checkApplication(response); | 1929 checkApplication(response); |
1890 }))); | 1930 }))); |
1891 }); | 1931 }); |
1892 | 1932 |
| 1933 unittest.test("method--patch", () { |
| 1934 |
| 1935 var mock = new HttpServerMock(); |
| 1936 api.AppsResourceApi res = new api.AppengineApi(mock).apps; |
| 1937 var arg_request = buildApplication(); |
| 1938 var arg_appsId = "foo"; |
| 1939 var arg_mask = "foo"; |
| 1940 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1941 var obj = new api.Application.fromJson(json); |
| 1942 checkApplication(obj); |
| 1943 |
| 1944 var path = (req.url).path; |
| 1945 var pathOffset = 0; |
| 1946 var index; |
| 1947 var subPart; |
| 1948 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1949 pathOffset += 1; |
| 1950 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1beta4/apps/")); |
| 1951 pathOffset += 13; |
| 1952 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 1953 pathOffset = path.length; |
| 1954 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 1955 |
| 1956 var query = (req.url).query; |
| 1957 var queryOffset = 0; |
| 1958 var queryMap = {}; |
| 1959 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1960 parseBool(n) { |
| 1961 if (n == "true") return true; |
| 1962 if (n == "false") return false; |
| 1963 if (n == null) return null; |
| 1964 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1965 } |
| 1966 if (query.length > 0) { |
| 1967 for (var part in query.split("&")) { |
| 1968 var keyvalue = part.split("="); |
| 1969 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1970 } |
| 1971 } |
| 1972 unittest.expect(queryMap["mask"].first, unittest.equals(arg_mask)); |
| 1973 |
| 1974 |
| 1975 var h = { |
| 1976 "content-type" : "application/json; charset=utf-8", |
| 1977 }; |
| 1978 var resp = convert.JSON.encode(buildOperation()); |
| 1979 return new async.Future.value(stringResponse(200, h, resp)); |
| 1980 }), true); |
| 1981 res.patch(arg_request, arg_appsId, mask: arg_mask).then(unittest.expectAsy
nc(((api.Operation response) { |
| 1982 checkOperation(response); |
| 1983 }))); |
| 1984 }); |
| 1985 |
1893 }); | 1986 }); |
1894 | 1987 |
1895 | 1988 |
1896 unittest.group("resource-AppsLocationsResourceApi", () { | 1989 unittest.group("resource-AppsLocationsResourceApi", () { |
1897 unittest.test("method--get", () { | 1990 unittest.test("method--get", () { |
1898 | 1991 |
1899 var mock = new HttpServerMock(); | 1992 var mock = new HttpServerMock(); |
1900 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; | 1993 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; |
1901 var arg_appsId = "foo"; | 1994 var arg_appsId = "foo"; |
1902 var arg_locationsId = "foo"; | 1995 var arg_locationsId = "foo"; |
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2977 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { | 3070 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { |
2978 checkListOperationsResponse(response); | 3071 checkListOperationsResponse(response); |
2979 }))); | 3072 }))); |
2980 }); | 3073 }); |
2981 | 3074 |
2982 }); | 3075 }); |
2983 | 3076 |
2984 | 3077 |
2985 } | 3078 } |
2986 | 3079 |
OLD | NEW |