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 buildUnnamed4001() { | 100 buildUnnamed3713() { |
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 checkUnnamed4001(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed3713(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 = buildUnnamed4001(); | 123 o.dispatchRules = buildUnnamed3713(); |
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 checkUnnamed4001(o.dispatchRules); | 140 checkUnnamed3713(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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 } | 259 } |
260 | 260 |
261 checkDebugInstanceRequest(api.DebugInstanceRequest o) { | 261 checkDebugInstanceRequest(api.DebugInstanceRequest o) { |
262 buildCounterDebugInstanceRequest++; | 262 buildCounterDebugInstanceRequest++; |
263 if (buildCounterDebugInstanceRequest < 3) { | 263 if (buildCounterDebugInstanceRequest < 3) { |
264 unittest.expect(o.sshKey, unittest.equals('foo')); | 264 unittest.expect(o.sshKey, unittest.equals('foo')); |
265 } | 265 } |
266 buildCounterDebugInstanceRequest--; | 266 buildCounterDebugInstanceRequest--; |
267 } | 267 } |
268 | 268 |
269 buildUnnamed4002() { | 269 buildUnnamed3714() { |
270 var o = new core.Map<core.String, api.FileInfo>(); | 270 var o = new core.Map<core.String, api.FileInfo>(); |
271 o["x"] = buildFileInfo(); | 271 o["x"] = buildFileInfo(); |
272 o["y"] = buildFileInfo(); | 272 o["y"] = buildFileInfo(); |
273 return o; | 273 return o; |
274 } | 274 } |
275 | 275 |
276 checkUnnamed4002(core.Map<core.String, api.FileInfo> o) { | 276 checkUnnamed3714(core.Map<core.String, api.FileInfo> o) { |
277 unittest.expect(o, unittest.hasLength(2)); | 277 unittest.expect(o, unittest.hasLength(2)); |
278 checkFileInfo(o["x"]); | 278 checkFileInfo(o["x"]); |
279 checkFileInfo(o["y"]); | 279 checkFileInfo(o["y"]); |
280 } | 280 } |
281 | 281 |
282 buildUnnamed4003() { | 282 buildUnnamed3715() { |
283 var o = new core.List<api.SourceReference>(); | 283 var o = new core.List<api.SourceReference>(); |
284 o.add(buildSourceReference()); | 284 o.add(buildSourceReference()); |
285 o.add(buildSourceReference()); | 285 o.add(buildSourceReference()); |
286 return o; | 286 return o; |
287 } | 287 } |
288 | 288 |
289 checkUnnamed4003(core.List<api.SourceReference> o) { | 289 checkUnnamed3715(core.List<api.SourceReference> o) { |
290 unittest.expect(o, unittest.hasLength(2)); | 290 unittest.expect(o, unittest.hasLength(2)); |
291 checkSourceReference(o[0]); | 291 checkSourceReference(o[0]); |
292 checkSourceReference(o[1]); | 292 checkSourceReference(o[1]); |
293 } | 293 } |
294 | 294 |
295 core.int buildCounterDeployment = 0; | 295 core.int buildCounterDeployment = 0; |
296 buildDeployment() { | 296 buildDeployment() { |
297 var o = new api.Deployment(); | 297 var o = new api.Deployment(); |
298 buildCounterDeployment++; | 298 buildCounterDeployment++; |
299 if (buildCounterDeployment < 3) { | 299 if (buildCounterDeployment < 3) { |
300 o.container = buildContainerInfo(); | 300 o.container = buildContainerInfo(); |
301 o.files = buildUnnamed4002(); | 301 o.files = buildUnnamed3714(); |
302 o.sourceReferences = buildUnnamed4003(); | 302 o.sourceReferences = buildUnnamed3715(); |
303 } | 303 } |
304 buildCounterDeployment--; | 304 buildCounterDeployment--; |
305 return o; | 305 return o; |
306 } | 306 } |
307 | 307 |
308 checkDeployment(api.Deployment o) { | 308 checkDeployment(api.Deployment o) { |
309 buildCounterDeployment++; | 309 buildCounterDeployment++; |
310 if (buildCounterDeployment < 3) { | 310 if (buildCounterDeployment < 3) { |
311 checkContainerInfo(o.container); | 311 checkContainerInfo(o.container); |
312 checkUnnamed4002(o.files); | 312 checkUnnamed3714(o.files); |
313 checkUnnamed4003(o.sourceReferences); | 313 checkUnnamed3715(o.sourceReferences); |
314 } | 314 } |
315 buildCounterDeployment--; | 315 buildCounterDeployment--; |
316 } | 316 } |
317 | 317 |
318 core.int buildCounterDiskUtilization = 0; | 318 core.int buildCounterDiskUtilization = 0; |
319 buildDiskUtilization() { | 319 buildDiskUtilization() { |
320 var o = new api.DiskUtilization(); | 320 var o = new api.DiskUtilization(); |
321 buildCounterDiskUtilization++; | 321 buildCounterDiskUtilization++; |
322 if (buildCounterDiskUtilization < 3) { | 322 if (buildCounterDiskUtilization < 3) { |
323 o.targetReadBytesPerSec = 42; | 323 o.targetReadBytesPerSec = 42; |
324 o.targetReadOpsPerSec = 42; | 324 o.targetReadOpsPerSec = 42; |
325 o.targetWriteBytesPerSec = 42; | 325 o.targetWriteBytesPerSec = 42; |
326 o.targetWriteOpsPerSec = 42; | 326 o.targetWriteOpsPerSec = 42; |
327 } | 327 } |
328 buildCounterDiskUtilization--; | 328 buildCounterDiskUtilization--; |
329 return o; | 329 return o; |
330 } | 330 } |
331 | 331 |
332 checkDiskUtilization(api.DiskUtilization o) { | 332 checkDiskUtilization(api.DiskUtilization o) { |
333 buildCounterDiskUtilization++; | 333 buildCounterDiskUtilization++; |
334 if (buildCounterDiskUtilization < 3) { | 334 if (buildCounterDiskUtilization < 3) { |
335 unittest.expect(o.targetReadBytesPerSec, unittest.equals(42)); | 335 unittest.expect(o.targetReadBytesPerSec, unittest.equals(42)); |
336 unittest.expect(o.targetReadOpsPerSec, unittest.equals(42)); | 336 unittest.expect(o.targetReadOpsPerSec, unittest.equals(42)); |
337 unittest.expect(o.targetWriteBytesPerSec, unittest.equals(42)); | 337 unittest.expect(o.targetWriteBytesPerSec, unittest.equals(42)); |
338 unittest.expect(o.targetWriteOpsPerSec, unittest.equals(42)); | 338 unittest.expect(o.targetWriteOpsPerSec, unittest.equals(42)); |
339 } | 339 } |
340 buildCounterDiskUtilization--; | 340 buildCounterDiskUtilization--; |
341 } | 341 } |
342 | 342 |
| 343 core.int buildCounterEndpointsApiService = 0; |
| 344 buildEndpointsApiService() { |
| 345 var o = new api.EndpointsApiService(); |
| 346 buildCounterEndpointsApiService++; |
| 347 if (buildCounterEndpointsApiService < 3) { |
| 348 o.configId = "foo"; |
| 349 o.name = "foo"; |
| 350 } |
| 351 buildCounterEndpointsApiService--; |
| 352 return o; |
| 353 } |
| 354 |
| 355 checkEndpointsApiService(api.EndpointsApiService o) { |
| 356 buildCounterEndpointsApiService++; |
| 357 if (buildCounterEndpointsApiService < 3) { |
| 358 unittest.expect(o.configId, unittest.equals('foo')); |
| 359 unittest.expect(o.name, unittest.equals('foo')); |
| 360 } |
| 361 buildCounterEndpointsApiService--; |
| 362 } |
| 363 |
343 core.int buildCounterErrorHandler = 0; | 364 core.int buildCounterErrorHandler = 0; |
344 buildErrorHandler() { | 365 buildErrorHandler() { |
345 var o = new api.ErrorHandler(); | 366 var o = new api.ErrorHandler(); |
346 buildCounterErrorHandler++; | 367 buildCounterErrorHandler++; |
347 if (buildCounterErrorHandler < 3) { | 368 if (buildCounterErrorHandler < 3) { |
348 o.errorCode = "foo"; | 369 o.errorCode = "foo"; |
349 o.mimeType = "foo"; | 370 o.mimeType = "foo"; |
350 o.staticFile = "foo"; | 371 o.staticFile = "foo"; |
351 } | 372 } |
352 buildCounterErrorHandler--; | 373 buildCounterErrorHandler--; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 | 501 |
481 checkLibrary(api.Library o) { | 502 checkLibrary(api.Library o) { |
482 buildCounterLibrary++; | 503 buildCounterLibrary++; |
483 if (buildCounterLibrary < 3) { | 504 if (buildCounterLibrary < 3) { |
484 unittest.expect(o.name, unittest.equals('foo')); | 505 unittest.expect(o.name, unittest.equals('foo')); |
485 unittest.expect(o.version, unittest.equals('foo')); | 506 unittest.expect(o.version, unittest.equals('foo')); |
486 } | 507 } |
487 buildCounterLibrary--; | 508 buildCounterLibrary--; |
488 } | 509 } |
489 | 510 |
490 buildUnnamed4004() { | 511 buildUnnamed3716() { |
491 var o = new core.List<api.Instance>(); | 512 var o = new core.List<api.Instance>(); |
492 o.add(buildInstance()); | 513 o.add(buildInstance()); |
493 o.add(buildInstance()); | 514 o.add(buildInstance()); |
494 return o; | 515 return o; |
495 } | 516 } |
496 | 517 |
497 checkUnnamed4004(core.List<api.Instance> o) { | 518 checkUnnamed3716(core.List<api.Instance> o) { |
498 unittest.expect(o, unittest.hasLength(2)); | 519 unittest.expect(o, unittest.hasLength(2)); |
499 checkInstance(o[0]); | 520 checkInstance(o[0]); |
500 checkInstance(o[1]); | 521 checkInstance(o[1]); |
501 } | 522 } |
502 | 523 |
503 core.int buildCounterListInstancesResponse = 0; | 524 core.int buildCounterListInstancesResponse = 0; |
504 buildListInstancesResponse() { | 525 buildListInstancesResponse() { |
505 var o = new api.ListInstancesResponse(); | 526 var o = new api.ListInstancesResponse(); |
506 buildCounterListInstancesResponse++; | 527 buildCounterListInstancesResponse++; |
507 if (buildCounterListInstancesResponse < 3) { | 528 if (buildCounterListInstancesResponse < 3) { |
508 o.instances = buildUnnamed4004(); | 529 o.instances = buildUnnamed3716(); |
509 o.nextPageToken = "foo"; | 530 o.nextPageToken = "foo"; |
510 } | 531 } |
511 buildCounterListInstancesResponse--; | 532 buildCounterListInstancesResponse--; |
512 return o; | 533 return o; |
513 } | 534 } |
514 | 535 |
515 checkListInstancesResponse(api.ListInstancesResponse o) { | 536 checkListInstancesResponse(api.ListInstancesResponse o) { |
516 buildCounterListInstancesResponse++; | 537 buildCounterListInstancesResponse++; |
517 if (buildCounterListInstancesResponse < 3) { | 538 if (buildCounterListInstancesResponse < 3) { |
518 checkUnnamed4004(o.instances); | 539 checkUnnamed3716(o.instances); |
519 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 540 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
520 } | 541 } |
521 buildCounterListInstancesResponse--; | 542 buildCounterListInstancesResponse--; |
522 } | 543 } |
523 | 544 |
524 buildUnnamed4005() { | 545 buildUnnamed3717() { |
525 var o = new core.List<api.Location>(); | 546 var o = new core.List<api.Location>(); |
526 o.add(buildLocation()); | 547 o.add(buildLocation()); |
527 o.add(buildLocation()); | 548 o.add(buildLocation()); |
528 return o; | 549 return o; |
529 } | 550 } |
530 | 551 |
531 checkUnnamed4005(core.List<api.Location> o) { | 552 checkUnnamed3717(core.List<api.Location> o) { |
532 unittest.expect(o, unittest.hasLength(2)); | 553 unittest.expect(o, unittest.hasLength(2)); |
533 checkLocation(o[0]); | 554 checkLocation(o[0]); |
534 checkLocation(o[1]); | 555 checkLocation(o[1]); |
535 } | 556 } |
536 | 557 |
537 core.int buildCounterListLocationsResponse = 0; | 558 core.int buildCounterListLocationsResponse = 0; |
538 buildListLocationsResponse() { | 559 buildListLocationsResponse() { |
539 var o = new api.ListLocationsResponse(); | 560 var o = new api.ListLocationsResponse(); |
540 buildCounterListLocationsResponse++; | 561 buildCounterListLocationsResponse++; |
541 if (buildCounterListLocationsResponse < 3) { | 562 if (buildCounterListLocationsResponse < 3) { |
542 o.locations = buildUnnamed4005(); | 563 o.locations = buildUnnamed3717(); |
543 o.nextPageToken = "foo"; | 564 o.nextPageToken = "foo"; |
544 } | 565 } |
545 buildCounterListLocationsResponse--; | 566 buildCounterListLocationsResponse--; |
546 return o; | 567 return o; |
547 } | 568 } |
548 | 569 |
549 checkListLocationsResponse(api.ListLocationsResponse o) { | 570 checkListLocationsResponse(api.ListLocationsResponse o) { |
550 buildCounterListLocationsResponse++; | 571 buildCounterListLocationsResponse++; |
551 if (buildCounterListLocationsResponse < 3) { | 572 if (buildCounterListLocationsResponse < 3) { |
552 checkUnnamed4005(o.locations); | 573 checkUnnamed3717(o.locations); |
553 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 574 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
554 } | 575 } |
555 buildCounterListLocationsResponse--; | 576 buildCounterListLocationsResponse--; |
556 } | 577 } |
557 | 578 |
558 buildUnnamed4006() { | 579 buildUnnamed3718() { |
559 var o = new core.List<api.Operation>(); | 580 var o = new core.List<api.Operation>(); |
560 o.add(buildOperation()); | 581 o.add(buildOperation()); |
561 o.add(buildOperation()); | 582 o.add(buildOperation()); |
562 return o; | 583 return o; |
563 } | 584 } |
564 | 585 |
565 checkUnnamed4006(core.List<api.Operation> o) { | 586 checkUnnamed3718(core.List<api.Operation> o) { |
566 unittest.expect(o, unittest.hasLength(2)); | 587 unittest.expect(o, unittest.hasLength(2)); |
567 checkOperation(o[0]); | 588 checkOperation(o[0]); |
568 checkOperation(o[1]); | 589 checkOperation(o[1]); |
569 } | 590 } |
570 | 591 |
571 core.int buildCounterListOperationsResponse = 0; | 592 core.int buildCounterListOperationsResponse = 0; |
572 buildListOperationsResponse() { | 593 buildListOperationsResponse() { |
573 var o = new api.ListOperationsResponse(); | 594 var o = new api.ListOperationsResponse(); |
574 buildCounterListOperationsResponse++; | 595 buildCounterListOperationsResponse++; |
575 if (buildCounterListOperationsResponse < 3) { | 596 if (buildCounterListOperationsResponse < 3) { |
576 o.nextPageToken = "foo"; | 597 o.nextPageToken = "foo"; |
577 o.operations = buildUnnamed4006(); | 598 o.operations = buildUnnamed3718(); |
578 } | 599 } |
579 buildCounterListOperationsResponse--; | 600 buildCounterListOperationsResponse--; |
580 return o; | 601 return o; |
581 } | 602 } |
582 | 603 |
583 checkListOperationsResponse(api.ListOperationsResponse o) { | 604 checkListOperationsResponse(api.ListOperationsResponse o) { |
584 buildCounterListOperationsResponse++; | 605 buildCounterListOperationsResponse++; |
585 if (buildCounterListOperationsResponse < 3) { | 606 if (buildCounterListOperationsResponse < 3) { |
586 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 607 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
587 checkUnnamed4006(o.operations); | 608 checkUnnamed3718(o.operations); |
588 } | 609 } |
589 buildCounterListOperationsResponse--; | 610 buildCounterListOperationsResponse--; |
590 } | 611 } |
591 | 612 |
592 buildUnnamed4007() { | 613 buildUnnamed3719() { |
593 var o = new core.List<api.Service>(); | 614 var o = new core.List<api.Service>(); |
594 o.add(buildService()); | 615 o.add(buildService()); |
595 o.add(buildService()); | 616 o.add(buildService()); |
596 return o; | 617 return o; |
597 } | 618 } |
598 | 619 |
599 checkUnnamed4007(core.List<api.Service> o) { | 620 checkUnnamed3719(core.List<api.Service> o) { |
600 unittest.expect(o, unittest.hasLength(2)); | 621 unittest.expect(o, unittest.hasLength(2)); |
601 checkService(o[0]); | 622 checkService(o[0]); |
602 checkService(o[1]); | 623 checkService(o[1]); |
603 } | 624 } |
604 | 625 |
605 core.int buildCounterListServicesResponse = 0; | 626 core.int buildCounterListServicesResponse = 0; |
606 buildListServicesResponse() { | 627 buildListServicesResponse() { |
607 var o = new api.ListServicesResponse(); | 628 var o = new api.ListServicesResponse(); |
608 buildCounterListServicesResponse++; | 629 buildCounterListServicesResponse++; |
609 if (buildCounterListServicesResponse < 3) { | 630 if (buildCounterListServicesResponse < 3) { |
610 o.nextPageToken = "foo"; | 631 o.nextPageToken = "foo"; |
611 o.services = buildUnnamed4007(); | 632 o.services = buildUnnamed3719(); |
612 } | 633 } |
613 buildCounterListServicesResponse--; | 634 buildCounterListServicesResponse--; |
614 return o; | 635 return o; |
615 } | 636 } |
616 | 637 |
617 checkListServicesResponse(api.ListServicesResponse o) { | 638 checkListServicesResponse(api.ListServicesResponse o) { |
618 buildCounterListServicesResponse++; | 639 buildCounterListServicesResponse++; |
619 if (buildCounterListServicesResponse < 3) { | 640 if (buildCounterListServicesResponse < 3) { |
620 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 641 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
621 checkUnnamed4007(o.services); | 642 checkUnnamed3719(o.services); |
622 } | 643 } |
623 buildCounterListServicesResponse--; | 644 buildCounterListServicesResponse--; |
624 } | 645 } |
625 | 646 |
626 buildUnnamed4008() { | 647 buildUnnamed3720() { |
627 var o = new core.List<api.Version>(); | 648 var o = new core.List<api.Version>(); |
628 o.add(buildVersion()); | 649 o.add(buildVersion()); |
629 o.add(buildVersion()); | 650 o.add(buildVersion()); |
630 return o; | 651 return o; |
631 } | 652 } |
632 | 653 |
633 checkUnnamed4008(core.List<api.Version> o) { | 654 checkUnnamed3720(core.List<api.Version> o) { |
634 unittest.expect(o, unittest.hasLength(2)); | 655 unittest.expect(o, unittest.hasLength(2)); |
635 checkVersion(o[0]); | 656 checkVersion(o[0]); |
636 checkVersion(o[1]); | 657 checkVersion(o[1]); |
637 } | 658 } |
638 | 659 |
639 core.int buildCounterListVersionsResponse = 0; | 660 core.int buildCounterListVersionsResponse = 0; |
640 buildListVersionsResponse() { | 661 buildListVersionsResponse() { |
641 var o = new api.ListVersionsResponse(); | 662 var o = new api.ListVersionsResponse(); |
642 buildCounterListVersionsResponse++; | 663 buildCounterListVersionsResponse++; |
643 if (buildCounterListVersionsResponse < 3) { | 664 if (buildCounterListVersionsResponse < 3) { |
644 o.nextPageToken = "foo"; | 665 o.nextPageToken = "foo"; |
645 o.versions = buildUnnamed4008(); | 666 o.versions = buildUnnamed3720(); |
646 } | 667 } |
647 buildCounterListVersionsResponse--; | 668 buildCounterListVersionsResponse--; |
648 return o; | 669 return o; |
649 } | 670 } |
650 | 671 |
651 checkListVersionsResponse(api.ListVersionsResponse o) { | 672 checkListVersionsResponse(api.ListVersionsResponse o) { |
652 buildCounterListVersionsResponse++; | 673 buildCounterListVersionsResponse++; |
653 if (buildCounterListVersionsResponse < 3) { | 674 if (buildCounterListVersionsResponse < 3) { |
654 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 675 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
655 checkUnnamed4008(o.versions); | 676 checkUnnamed3720(o.versions); |
656 } | 677 } |
657 buildCounterListVersionsResponse--; | 678 buildCounterListVersionsResponse--; |
658 } | 679 } |
659 | 680 |
660 buildUnnamed4009() { | 681 buildUnnamed3721() { |
661 var o = new core.Map<core.String, core.String>(); | 682 var o = new core.Map<core.String, core.String>(); |
662 o["x"] = "foo"; | 683 o["x"] = "foo"; |
663 o["y"] = "foo"; | 684 o["y"] = "foo"; |
664 return o; | 685 return o; |
665 } | 686 } |
666 | 687 |
667 checkUnnamed4009(core.Map<core.String, core.String> o) { | 688 checkUnnamed3721(core.Map<core.String, core.String> o) { |
668 unittest.expect(o, unittest.hasLength(2)); | 689 unittest.expect(o, unittest.hasLength(2)); |
669 unittest.expect(o["x"], unittest.equals('foo')); | 690 unittest.expect(o["x"], unittest.equals('foo')); |
670 unittest.expect(o["y"], unittest.equals('foo')); | 691 unittest.expect(o["y"], unittest.equals('foo')); |
671 } | 692 } |
672 | 693 |
673 buildUnnamed4010() { | 694 buildUnnamed3722() { |
674 var o = new core.Map<core.String, core.Object>(); | 695 var o = new core.Map<core.String, core.Object>(); |
675 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 696 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
676 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 697 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
677 return o; | 698 return o; |
678 } | 699 } |
679 | 700 |
680 checkUnnamed4010(core.Map<core.String, core.Object> o) { | 701 checkUnnamed3722(core.Map<core.String, core.Object> o) { |
681 unittest.expect(o, unittest.hasLength(2)); | 702 unittest.expect(o, unittest.hasLength(2)); |
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')); | 703 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
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')); | 704 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
684 } | 705 } |
685 | 706 |
686 core.int buildCounterLocation = 0; | 707 core.int buildCounterLocation = 0; |
687 buildLocation() { | 708 buildLocation() { |
688 var o = new api.Location(); | 709 var o = new api.Location(); |
689 buildCounterLocation++; | 710 buildCounterLocation++; |
690 if (buildCounterLocation < 3) { | 711 if (buildCounterLocation < 3) { |
691 o.labels = buildUnnamed4009(); | 712 o.labels = buildUnnamed3721(); |
692 o.locationId = "foo"; | 713 o.locationId = "foo"; |
693 o.metadata = buildUnnamed4010(); | 714 o.metadata = buildUnnamed3722(); |
694 o.name = "foo"; | 715 o.name = "foo"; |
695 } | 716 } |
696 buildCounterLocation--; | 717 buildCounterLocation--; |
697 return o; | 718 return o; |
698 } | 719 } |
699 | 720 |
700 checkLocation(api.Location o) { | 721 checkLocation(api.Location o) { |
701 buildCounterLocation++; | 722 buildCounterLocation++; |
702 if (buildCounterLocation < 3) { | 723 if (buildCounterLocation < 3) { |
703 checkUnnamed4009(o.labels); | 724 checkUnnamed3721(o.labels); |
704 unittest.expect(o.locationId, unittest.equals('foo')); | 725 unittest.expect(o.locationId, unittest.equals('foo')); |
705 checkUnnamed4010(o.metadata); | 726 checkUnnamed3722(o.metadata); |
706 unittest.expect(o.name, unittest.equals('foo')); | 727 unittest.expect(o.name, unittest.equals('foo')); |
707 } | 728 } |
708 buildCounterLocation--; | 729 buildCounterLocation--; |
709 } | 730 } |
710 | 731 |
711 core.int buildCounterLocationMetadata = 0; | 732 core.int buildCounterLocationMetadata = 0; |
712 buildLocationMetadata() { | 733 buildLocationMetadata() { |
713 var o = new api.LocationMetadata(); | 734 var o = new api.LocationMetadata(); |
714 buildCounterLocationMetadata++; | 735 buildCounterLocationMetadata++; |
715 if (buildCounterLocationMetadata < 3) { | 736 if (buildCounterLocationMetadata < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
741 } | 762 } |
742 | 763 |
743 checkManualScaling(api.ManualScaling o) { | 764 checkManualScaling(api.ManualScaling o) { |
744 buildCounterManualScaling++; | 765 buildCounterManualScaling++; |
745 if (buildCounterManualScaling < 3) { | 766 if (buildCounterManualScaling < 3) { |
746 unittest.expect(o.instances, unittest.equals(42)); | 767 unittest.expect(o.instances, unittest.equals(42)); |
747 } | 768 } |
748 buildCounterManualScaling--; | 769 buildCounterManualScaling--; |
749 } | 770 } |
750 | 771 |
751 buildUnnamed4011() { | 772 buildUnnamed3723() { |
752 var o = new core.List<core.String>(); | 773 var o = new core.List<core.String>(); |
753 o.add("foo"); | 774 o.add("foo"); |
754 o.add("foo"); | 775 o.add("foo"); |
755 return o; | 776 return o; |
756 } | 777 } |
757 | 778 |
758 checkUnnamed4011(core.List<core.String> o) { | 779 checkUnnamed3723(core.List<core.String> o) { |
759 unittest.expect(o, unittest.hasLength(2)); | 780 unittest.expect(o, unittest.hasLength(2)); |
760 unittest.expect(o[0], unittest.equals('foo')); | 781 unittest.expect(o[0], unittest.equals('foo')); |
761 unittest.expect(o[1], unittest.equals('foo')); | 782 unittest.expect(o[1], unittest.equals('foo')); |
762 } | 783 } |
763 | 784 |
764 core.int buildCounterNetwork = 0; | 785 core.int buildCounterNetwork = 0; |
765 buildNetwork() { | 786 buildNetwork() { |
766 var o = new api.Network(); | 787 var o = new api.Network(); |
767 buildCounterNetwork++; | 788 buildCounterNetwork++; |
768 if (buildCounterNetwork < 3) { | 789 if (buildCounterNetwork < 3) { |
769 o.forwardedPorts = buildUnnamed4011(); | 790 o.forwardedPorts = buildUnnamed3723(); |
770 o.instanceTag = "foo"; | 791 o.instanceTag = "foo"; |
771 o.name = "foo"; | 792 o.name = "foo"; |
| 793 o.subnetworkName = "foo"; |
772 } | 794 } |
773 buildCounterNetwork--; | 795 buildCounterNetwork--; |
774 return o; | 796 return o; |
775 } | 797 } |
776 | 798 |
777 checkNetwork(api.Network o) { | 799 checkNetwork(api.Network o) { |
778 buildCounterNetwork++; | 800 buildCounterNetwork++; |
779 if (buildCounterNetwork < 3) { | 801 if (buildCounterNetwork < 3) { |
780 checkUnnamed4011(o.forwardedPorts); | 802 checkUnnamed3723(o.forwardedPorts); |
781 unittest.expect(o.instanceTag, unittest.equals('foo')); | 803 unittest.expect(o.instanceTag, unittest.equals('foo')); |
782 unittest.expect(o.name, unittest.equals('foo')); | 804 unittest.expect(o.name, unittest.equals('foo')); |
| 805 unittest.expect(o.subnetworkName, unittest.equals('foo')); |
783 } | 806 } |
784 buildCounterNetwork--; | 807 buildCounterNetwork--; |
785 } | 808 } |
786 | 809 |
787 core.int buildCounterNetworkUtilization = 0; | 810 core.int buildCounterNetworkUtilization = 0; |
788 buildNetworkUtilization() { | 811 buildNetworkUtilization() { |
789 var o = new api.NetworkUtilization(); | 812 var o = new api.NetworkUtilization(); |
790 buildCounterNetworkUtilization++; | 813 buildCounterNetworkUtilization++; |
791 if (buildCounterNetworkUtilization < 3) { | 814 if (buildCounterNetworkUtilization < 3) { |
792 o.targetReceivedBytesPerSec = 42; | 815 o.targetReceivedBytesPerSec = 42; |
793 o.targetReceivedPacketsPerSec = 42; | 816 o.targetReceivedPacketsPerSec = 42; |
794 o.targetSentBytesPerSec = 42; | 817 o.targetSentBytesPerSec = 42; |
795 o.targetSentPacketsPerSec = 42; | 818 o.targetSentPacketsPerSec = 42; |
796 } | 819 } |
797 buildCounterNetworkUtilization--; | 820 buildCounterNetworkUtilization--; |
798 return o; | 821 return o; |
799 } | 822 } |
800 | 823 |
801 checkNetworkUtilization(api.NetworkUtilization o) { | 824 checkNetworkUtilization(api.NetworkUtilization o) { |
802 buildCounterNetworkUtilization++; | 825 buildCounterNetworkUtilization++; |
803 if (buildCounterNetworkUtilization < 3) { | 826 if (buildCounterNetworkUtilization < 3) { |
804 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); | 827 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); |
805 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); | 828 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); |
806 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); | 829 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); |
807 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); | 830 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); |
808 } | 831 } |
809 buildCounterNetworkUtilization--; | 832 buildCounterNetworkUtilization--; |
810 } | 833 } |
811 | 834 |
812 buildUnnamed4012() { | 835 buildUnnamed3724() { |
813 var o = new core.Map<core.String, core.Object>(); | 836 var o = new core.Map<core.String, core.Object>(); |
814 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 837 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
815 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 838 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
816 return o; | 839 return o; |
817 } | 840 } |
818 | 841 |
819 checkUnnamed4012(core.Map<core.String, core.Object> o) { | 842 checkUnnamed3724(core.Map<core.String, core.Object> o) { |
820 unittest.expect(o, unittest.hasLength(2)); | 843 unittest.expect(o, unittest.hasLength(2)); |
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')); | 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')); |
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')); | 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')); |
823 } | 846 } |
824 | 847 |
825 buildUnnamed4013() { | 848 buildUnnamed3725() { |
826 var o = new core.Map<core.String, core.Object>(); | 849 var o = new core.Map<core.String, core.Object>(); |
827 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 850 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
828 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 851 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
829 return o; | 852 return o; |
830 } | 853 } |
831 | 854 |
832 checkUnnamed4013(core.Map<core.String, core.Object> o) { | 855 checkUnnamed3725(core.Map<core.String, core.Object> o) { |
833 unittest.expect(o, unittest.hasLength(2)); | 856 unittest.expect(o, unittest.hasLength(2)); |
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')); | 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')); |
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')); | 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')); |
836 } | 859 } |
837 | 860 |
838 core.int buildCounterOperation = 0; | 861 core.int buildCounterOperation = 0; |
839 buildOperation() { | 862 buildOperation() { |
840 var o = new api.Operation(); | 863 var o = new api.Operation(); |
841 buildCounterOperation++; | 864 buildCounterOperation++; |
842 if (buildCounterOperation < 3) { | 865 if (buildCounterOperation < 3) { |
843 o.done = true; | 866 o.done = true; |
844 o.error = buildStatus(); | 867 o.error = buildStatus(); |
845 o.metadata = buildUnnamed4012(); | 868 o.metadata = buildUnnamed3724(); |
846 o.name = "foo"; | 869 o.name = "foo"; |
847 o.response = buildUnnamed4013(); | 870 o.response = buildUnnamed3725(); |
848 } | 871 } |
849 buildCounterOperation--; | 872 buildCounterOperation--; |
850 return o; | 873 return o; |
851 } | 874 } |
852 | 875 |
853 checkOperation(api.Operation o) { | 876 checkOperation(api.Operation o) { |
854 buildCounterOperation++; | 877 buildCounterOperation++; |
855 if (buildCounterOperation < 3) { | 878 if (buildCounterOperation < 3) { |
856 unittest.expect(o.done, unittest.isTrue); | 879 unittest.expect(o.done, unittest.isTrue); |
857 checkStatus(o.error); | 880 checkStatus(o.error); |
858 checkUnnamed4012(o.metadata); | 881 checkUnnamed3724(o.metadata); |
859 unittest.expect(o.name, unittest.equals('foo')); | 882 unittest.expect(o.name, unittest.equals('foo')); |
860 checkUnnamed4013(o.response); | 883 checkUnnamed3725(o.response); |
861 } | 884 } |
862 buildCounterOperation--; | 885 buildCounterOperation--; |
863 } | 886 } |
864 | 887 |
865 core.int buildCounterOperationMetadata = 0; | 888 core.int buildCounterOperationMetadata = 0; |
866 buildOperationMetadata() { | 889 buildOperationMetadata() { |
867 var o = new api.OperationMetadata(); | 890 var o = new api.OperationMetadata(); |
868 buildCounterOperationMetadata++; | 891 buildCounterOperationMetadata++; |
869 if (buildCounterOperationMetadata < 3) { | 892 if (buildCounterOperationMetadata < 3) { |
870 o.endTime = "foo"; | 893 o.endTime = "foo"; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 if (buildCounterOperationMetadataExperimental < 3) { | 934 if (buildCounterOperationMetadataExperimental < 3) { |
912 unittest.expect(o.endTime, unittest.equals('foo')); | 935 unittest.expect(o.endTime, unittest.equals('foo')); |
913 unittest.expect(o.insertTime, unittest.equals('foo')); | 936 unittest.expect(o.insertTime, unittest.equals('foo')); |
914 unittest.expect(o.method, unittest.equals('foo')); | 937 unittest.expect(o.method, unittest.equals('foo')); |
915 unittest.expect(o.target, unittest.equals('foo')); | 938 unittest.expect(o.target, unittest.equals('foo')); |
916 unittest.expect(o.user, unittest.equals('foo')); | 939 unittest.expect(o.user, unittest.equals('foo')); |
917 } | 940 } |
918 buildCounterOperationMetadataExperimental--; | 941 buildCounterOperationMetadataExperimental--; |
919 } | 942 } |
920 | 943 |
| 944 buildUnnamed3726() { |
| 945 var o = new core.List<core.String>(); |
| 946 o.add("foo"); |
| 947 o.add("foo"); |
| 948 return o; |
| 949 } |
| 950 |
| 951 checkUnnamed3726(core.List<core.String> o) { |
| 952 unittest.expect(o, unittest.hasLength(2)); |
| 953 unittest.expect(o[0], unittest.equals('foo')); |
| 954 unittest.expect(o[1], unittest.equals('foo')); |
| 955 } |
| 956 |
921 core.int buildCounterOperationMetadataV1 = 0; | 957 core.int buildCounterOperationMetadataV1 = 0; |
922 buildOperationMetadataV1() { | 958 buildOperationMetadataV1() { |
923 var o = new api.OperationMetadataV1(); | 959 var o = new api.OperationMetadataV1(); |
924 buildCounterOperationMetadataV1++; | 960 buildCounterOperationMetadataV1++; |
925 if (buildCounterOperationMetadataV1 < 3) { | 961 if (buildCounterOperationMetadataV1 < 3) { |
926 o.endTime = "foo"; | 962 o.endTime = "foo"; |
| 963 o.ephemeralMessage = "foo"; |
927 o.insertTime = "foo"; | 964 o.insertTime = "foo"; |
928 o.method = "foo"; | 965 o.method = "foo"; |
929 o.target = "foo"; | 966 o.target = "foo"; |
930 o.user = "foo"; | 967 o.user = "foo"; |
| 968 o.warning = buildUnnamed3726(); |
931 } | 969 } |
932 buildCounterOperationMetadataV1--; | 970 buildCounterOperationMetadataV1--; |
933 return o; | 971 return o; |
934 } | 972 } |
935 | 973 |
936 checkOperationMetadataV1(api.OperationMetadataV1 o) { | 974 checkOperationMetadataV1(api.OperationMetadataV1 o) { |
937 buildCounterOperationMetadataV1++; | 975 buildCounterOperationMetadataV1++; |
938 if (buildCounterOperationMetadataV1 < 3) { | 976 if (buildCounterOperationMetadataV1 < 3) { |
939 unittest.expect(o.endTime, unittest.equals('foo')); | 977 unittest.expect(o.endTime, unittest.equals('foo')); |
| 978 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
940 unittest.expect(o.insertTime, unittest.equals('foo')); | 979 unittest.expect(o.insertTime, unittest.equals('foo')); |
941 unittest.expect(o.method, unittest.equals('foo')); | 980 unittest.expect(o.method, unittest.equals('foo')); |
942 unittest.expect(o.target, unittest.equals('foo')); | 981 unittest.expect(o.target, unittest.equals('foo')); |
943 unittest.expect(o.user, unittest.equals('foo')); | 982 unittest.expect(o.user, unittest.equals('foo')); |
| 983 checkUnnamed3726(o.warning); |
944 } | 984 } |
945 buildCounterOperationMetadataV1--; | 985 buildCounterOperationMetadataV1--; |
946 } | 986 } |
947 | 987 |
948 core.int buildCounterOperationMetadataV1Beta5 = 0; | 988 core.int buildCounterOperationMetadataV1Beta5 = 0; |
949 buildOperationMetadataV1Beta5() { | 989 buildOperationMetadataV1Beta5() { |
950 var o = new api.OperationMetadataV1Beta5(); | 990 var o = new api.OperationMetadataV1Beta5(); |
951 buildCounterOperationMetadataV1Beta5++; | 991 buildCounterOperationMetadataV1Beta5++; |
952 if (buildCounterOperationMetadataV1Beta5 < 3) { | 992 if (buildCounterOperationMetadataV1Beta5 < 3) { |
953 o.endTime = "foo"; | 993 o.endTime = "foo"; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 | 1026 |
987 checkRequestUtilization(api.RequestUtilization o) { | 1027 checkRequestUtilization(api.RequestUtilization o) { |
988 buildCounterRequestUtilization++; | 1028 buildCounterRequestUtilization++; |
989 if (buildCounterRequestUtilization < 3) { | 1029 if (buildCounterRequestUtilization < 3) { |
990 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); | 1030 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); |
991 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); | 1031 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); |
992 } | 1032 } |
993 buildCounterRequestUtilization--; | 1033 buildCounterRequestUtilization--; |
994 } | 1034 } |
995 | 1035 |
| 1036 buildUnnamed3727() { |
| 1037 var o = new core.List<api.Volume>(); |
| 1038 o.add(buildVolume()); |
| 1039 o.add(buildVolume()); |
| 1040 return o; |
| 1041 } |
| 1042 |
| 1043 checkUnnamed3727(core.List<api.Volume> o) { |
| 1044 unittest.expect(o, unittest.hasLength(2)); |
| 1045 checkVolume(o[0]); |
| 1046 checkVolume(o[1]); |
| 1047 } |
| 1048 |
996 core.int buildCounterResources = 0; | 1049 core.int buildCounterResources = 0; |
997 buildResources() { | 1050 buildResources() { |
998 var o = new api.Resources(); | 1051 var o = new api.Resources(); |
999 buildCounterResources++; | 1052 buildCounterResources++; |
1000 if (buildCounterResources < 3) { | 1053 if (buildCounterResources < 3) { |
1001 o.cpu = 42.0; | 1054 o.cpu = 42.0; |
1002 o.diskGb = 42.0; | 1055 o.diskGb = 42.0; |
1003 o.memoryGb = 42.0; | 1056 o.memoryGb = 42.0; |
| 1057 o.volumes = buildUnnamed3727(); |
1004 } | 1058 } |
1005 buildCounterResources--; | 1059 buildCounterResources--; |
1006 return o; | 1060 return o; |
1007 } | 1061 } |
1008 | 1062 |
1009 checkResources(api.Resources o) { | 1063 checkResources(api.Resources o) { |
1010 buildCounterResources++; | 1064 buildCounterResources++; |
1011 if (buildCounterResources < 3) { | 1065 if (buildCounterResources < 3) { |
1012 unittest.expect(o.cpu, unittest.equals(42.0)); | 1066 unittest.expect(o.cpu, unittest.equals(42.0)); |
1013 unittest.expect(o.diskGb, unittest.equals(42.0)); | 1067 unittest.expect(o.diskGb, unittest.equals(42.0)); |
1014 unittest.expect(o.memoryGb, unittest.equals(42.0)); | 1068 unittest.expect(o.memoryGb, unittest.equals(42.0)); |
| 1069 checkUnnamed3727(o.volumes); |
1015 } | 1070 } |
1016 buildCounterResources--; | 1071 buildCounterResources--; |
1017 } | 1072 } |
1018 | 1073 |
1019 core.int buildCounterScriptHandler = 0; | 1074 core.int buildCounterScriptHandler = 0; |
1020 buildScriptHandler() { | 1075 buildScriptHandler() { |
1021 var o = new api.ScriptHandler(); | 1076 var o = new api.ScriptHandler(); |
1022 buildCounterScriptHandler++; | 1077 buildCounterScriptHandler++; |
1023 if (buildCounterScriptHandler < 3) { | 1078 if (buildCounterScriptHandler < 3) { |
1024 o.scriptPath = "foo"; | 1079 o.scriptPath = "foo"; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 | 1127 |
1073 checkSourceReference(api.SourceReference o) { | 1128 checkSourceReference(api.SourceReference o) { |
1074 buildCounterSourceReference++; | 1129 buildCounterSourceReference++; |
1075 if (buildCounterSourceReference < 3) { | 1130 if (buildCounterSourceReference < 3) { |
1076 unittest.expect(o.repository, unittest.equals('foo')); | 1131 unittest.expect(o.repository, unittest.equals('foo')); |
1077 unittest.expect(o.revisionId, unittest.equals('foo')); | 1132 unittest.expect(o.revisionId, unittest.equals('foo')); |
1078 } | 1133 } |
1079 buildCounterSourceReference--; | 1134 buildCounterSourceReference--; |
1080 } | 1135 } |
1081 | 1136 |
1082 buildUnnamed4014() { | 1137 buildUnnamed3728() { |
1083 var o = new core.Map<core.String, core.String>(); | 1138 var o = new core.Map<core.String, core.String>(); |
1084 o["x"] = "foo"; | 1139 o["x"] = "foo"; |
1085 o["y"] = "foo"; | 1140 o["y"] = "foo"; |
1086 return o; | 1141 return o; |
1087 } | 1142 } |
1088 | 1143 |
1089 checkUnnamed4014(core.Map<core.String, core.String> o) { | 1144 checkUnnamed3728(core.Map<core.String, core.String> o) { |
1090 unittest.expect(o, unittest.hasLength(2)); | 1145 unittest.expect(o, unittest.hasLength(2)); |
1091 unittest.expect(o["x"], unittest.equals('foo')); | 1146 unittest.expect(o["x"], unittest.equals('foo')); |
1092 unittest.expect(o["y"], unittest.equals('foo')); | 1147 unittest.expect(o["y"], unittest.equals('foo')); |
1093 } | 1148 } |
1094 | 1149 |
1095 core.int buildCounterStaticFilesHandler = 0; | 1150 core.int buildCounterStaticFilesHandler = 0; |
1096 buildStaticFilesHandler() { | 1151 buildStaticFilesHandler() { |
1097 var o = new api.StaticFilesHandler(); | 1152 var o = new api.StaticFilesHandler(); |
1098 buildCounterStaticFilesHandler++; | 1153 buildCounterStaticFilesHandler++; |
1099 if (buildCounterStaticFilesHandler < 3) { | 1154 if (buildCounterStaticFilesHandler < 3) { |
1100 o.applicationReadable = true; | 1155 o.applicationReadable = true; |
1101 o.expiration = "foo"; | 1156 o.expiration = "foo"; |
1102 o.httpHeaders = buildUnnamed4014(); | 1157 o.httpHeaders = buildUnnamed3728(); |
1103 o.mimeType = "foo"; | 1158 o.mimeType = "foo"; |
1104 o.path = "foo"; | 1159 o.path = "foo"; |
1105 o.requireMatchingFile = true; | 1160 o.requireMatchingFile = true; |
1106 o.uploadPathRegex = "foo"; | 1161 o.uploadPathRegex = "foo"; |
1107 } | 1162 } |
1108 buildCounterStaticFilesHandler--; | 1163 buildCounterStaticFilesHandler--; |
1109 return o; | 1164 return o; |
1110 } | 1165 } |
1111 | 1166 |
1112 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1167 checkStaticFilesHandler(api.StaticFilesHandler o) { |
1113 buildCounterStaticFilesHandler++; | 1168 buildCounterStaticFilesHandler++; |
1114 if (buildCounterStaticFilesHandler < 3) { | 1169 if (buildCounterStaticFilesHandler < 3) { |
1115 unittest.expect(o.applicationReadable, unittest.isTrue); | 1170 unittest.expect(o.applicationReadable, unittest.isTrue); |
1116 unittest.expect(o.expiration, unittest.equals('foo')); | 1171 unittest.expect(o.expiration, unittest.equals('foo')); |
1117 checkUnnamed4014(o.httpHeaders); | 1172 checkUnnamed3728(o.httpHeaders); |
1118 unittest.expect(o.mimeType, unittest.equals('foo')); | 1173 unittest.expect(o.mimeType, unittest.equals('foo')); |
1119 unittest.expect(o.path, unittest.equals('foo')); | 1174 unittest.expect(o.path, unittest.equals('foo')); |
1120 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1175 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1121 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1176 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
1122 } | 1177 } |
1123 buildCounterStaticFilesHandler--; | 1178 buildCounterStaticFilesHandler--; |
1124 } | 1179 } |
1125 | 1180 |
1126 buildUnnamed4015() { | 1181 buildUnnamed3729() { |
1127 var o = new core.Map<core.String, core.Object>(); | 1182 var o = new core.Map<core.String, core.Object>(); |
1128 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1183 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1129 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1184 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1130 return o; | 1185 return o; |
1131 } | 1186 } |
1132 | 1187 |
1133 checkUnnamed4015(core.Map<core.String, core.Object> o) { | 1188 checkUnnamed3729(core.Map<core.String, core.Object> o) { |
1134 unittest.expect(o, unittest.hasLength(2)); | 1189 unittest.expect(o, unittest.hasLength(2)); |
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')); | 1190 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
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')); | 1191 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
1137 } | 1192 } |
1138 | 1193 |
1139 buildUnnamed4016() { | 1194 buildUnnamed3730() { |
1140 var o = new core.List<core.Map<core.String, core.Object>>(); | 1195 var o = new core.List<core.Map<core.String, core.Object>>(); |
1141 o.add(buildUnnamed4015()); | 1196 o.add(buildUnnamed3729()); |
1142 o.add(buildUnnamed4015()); | 1197 o.add(buildUnnamed3729()); |
1143 return o; | 1198 return o; |
1144 } | 1199 } |
1145 | 1200 |
1146 checkUnnamed4016(core.List<core.Map<core.String, core.Object>> o) { | 1201 checkUnnamed3730(core.List<core.Map<core.String, core.Object>> o) { |
1147 unittest.expect(o, unittest.hasLength(2)); | 1202 unittest.expect(o, unittest.hasLength(2)); |
1148 checkUnnamed4015(o[0]); | 1203 checkUnnamed3729(o[0]); |
1149 checkUnnamed4015(o[1]); | 1204 checkUnnamed3729(o[1]); |
1150 } | 1205 } |
1151 | 1206 |
1152 core.int buildCounterStatus = 0; | 1207 core.int buildCounterStatus = 0; |
1153 buildStatus() { | 1208 buildStatus() { |
1154 var o = new api.Status(); | 1209 var o = new api.Status(); |
1155 buildCounterStatus++; | 1210 buildCounterStatus++; |
1156 if (buildCounterStatus < 3) { | 1211 if (buildCounterStatus < 3) { |
1157 o.code = 42; | 1212 o.code = 42; |
1158 o.details = buildUnnamed4016(); | 1213 o.details = buildUnnamed3730(); |
1159 o.message = "foo"; | 1214 o.message = "foo"; |
1160 } | 1215 } |
1161 buildCounterStatus--; | 1216 buildCounterStatus--; |
1162 return o; | 1217 return o; |
1163 } | 1218 } |
1164 | 1219 |
1165 checkStatus(api.Status o) { | 1220 checkStatus(api.Status o) { |
1166 buildCounterStatus++; | 1221 buildCounterStatus++; |
1167 if (buildCounterStatus < 3) { | 1222 if (buildCounterStatus < 3) { |
1168 unittest.expect(o.code, unittest.equals(42)); | 1223 unittest.expect(o.code, unittest.equals(42)); |
1169 checkUnnamed4016(o.details); | 1224 checkUnnamed3730(o.details); |
1170 unittest.expect(o.message, unittest.equals('foo')); | 1225 unittest.expect(o.message, unittest.equals('foo')); |
1171 } | 1226 } |
1172 buildCounterStatus--; | 1227 buildCounterStatus--; |
1173 } | 1228 } |
1174 | 1229 |
1175 buildUnnamed4017() { | 1230 buildUnnamed3731() { |
1176 var o = new core.Map<core.String, core.double>(); | 1231 var o = new core.Map<core.String, core.double>(); |
1177 o["x"] = 42.0; | 1232 o["x"] = 42.0; |
1178 o["y"] = 42.0; | 1233 o["y"] = 42.0; |
1179 return o; | 1234 return o; |
1180 } | 1235 } |
1181 | 1236 |
1182 checkUnnamed4017(core.Map<core.String, core.double> o) { | 1237 checkUnnamed3731(core.Map<core.String, core.double> o) { |
1183 unittest.expect(o, unittest.hasLength(2)); | 1238 unittest.expect(o, unittest.hasLength(2)); |
1184 unittest.expect(o["x"], unittest.equals(42.0)); | 1239 unittest.expect(o["x"], unittest.equals(42.0)); |
1185 unittest.expect(o["y"], unittest.equals(42.0)); | 1240 unittest.expect(o["y"], unittest.equals(42.0)); |
1186 } | 1241 } |
1187 | 1242 |
1188 core.int buildCounterTrafficSplit = 0; | 1243 core.int buildCounterTrafficSplit = 0; |
1189 buildTrafficSplit() { | 1244 buildTrafficSplit() { |
1190 var o = new api.TrafficSplit(); | 1245 var o = new api.TrafficSplit(); |
1191 buildCounterTrafficSplit++; | 1246 buildCounterTrafficSplit++; |
1192 if (buildCounterTrafficSplit < 3) { | 1247 if (buildCounterTrafficSplit < 3) { |
1193 o.allocations = buildUnnamed4017(); | 1248 o.allocations = buildUnnamed3731(); |
1194 o.shardBy = "foo"; | 1249 o.shardBy = "foo"; |
1195 } | 1250 } |
1196 buildCounterTrafficSplit--; | 1251 buildCounterTrafficSplit--; |
1197 return o; | 1252 return o; |
1198 } | 1253 } |
1199 | 1254 |
1200 checkTrafficSplit(api.TrafficSplit o) { | 1255 checkTrafficSplit(api.TrafficSplit o) { |
1201 buildCounterTrafficSplit++; | 1256 buildCounterTrafficSplit++; |
1202 if (buildCounterTrafficSplit < 3) { | 1257 if (buildCounterTrafficSplit < 3) { |
1203 checkUnnamed4017(o.allocations); | 1258 checkUnnamed3731(o.allocations); |
1204 unittest.expect(o.shardBy, unittest.equals('foo')); | 1259 unittest.expect(o.shardBy, unittest.equals('foo')); |
1205 } | 1260 } |
1206 buildCounterTrafficSplit--; | 1261 buildCounterTrafficSplit--; |
1207 } | 1262 } |
1208 | 1263 |
1209 core.int buildCounterUrlDispatchRule = 0; | 1264 core.int buildCounterUrlDispatchRule = 0; |
1210 buildUrlDispatchRule() { | 1265 buildUrlDispatchRule() { |
1211 var o = new api.UrlDispatchRule(); | 1266 var o = new api.UrlDispatchRule(); |
1212 buildCounterUrlDispatchRule++; | 1267 buildCounterUrlDispatchRule++; |
1213 if (buildCounterUrlDispatchRule < 3) { | 1268 if (buildCounterUrlDispatchRule < 3) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 unittest.expect(o.login, unittest.equals('foo')); | 1310 unittest.expect(o.login, unittest.equals('foo')); |
1256 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1311 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
1257 checkScriptHandler(o.script); | 1312 checkScriptHandler(o.script); |
1258 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1313 unittest.expect(o.securityLevel, unittest.equals('foo')); |
1259 checkStaticFilesHandler(o.staticFiles); | 1314 checkStaticFilesHandler(o.staticFiles); |
1260 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1315 unittest.expect(o.urlRegex, unittest.equals('foo')); |
1261 } | 1316 } |
1262 buildCounterUrlMap--; | 1317 buildCounterUrlMap--; |
1263 } | 1318 } |
1264 | 1319 |
1265 buildUnnamed4018() { | 1320 buildUnnamed3732() { |
1266 var o = new core.Map<core.String, core.String>(); | 1321 var o = new core.Map<core.String, core.String>(); |
1267 o["x"] = "foo"; | 1322 o["x"] = "foo"; |
1268 o["y"] = "foo"; | 1323 o["y"] = "foo"; |
1269 return o; | 1324 return o; |
1270 } | 1325 } |
1271 | 1326 |
1272 checkUnnamed4018(core.Map<core.String, core.String> o) { | 1327 checkUnnamed3732(core.Map<core.String, core.String> o) { |
1273 unittest.expect(o, unittest.hasLength(2)); | 1328 unittest.expect(o, unittest.hasLength(2)); |
1274 unittest.expect(o["x"], unittest.equals('foo')); | 1329 unittest.expect(o["x"], unittest.equals('foo')); |
1275 unittest.expect(o["y"], unittest.equals('foo')); | 1330 unittest.expect(o["y"], unittest.equals('foo')); |
1276 } | 1331 } |
1277 | 1332 |
1278 buildUnnamed4019() { | 1333 buildUnnamed3733() { |
1279 var o = new core.Map<core.String, core.String>(); | 1334 var o = new core.Map<core.String, core.String>(); |
1280 o["x"] = "foo"; | 1335 o["x"] = "foo"; |
1281 o["y"] = "foo"; | 1336 o["y"] = "foo"; |
1282 return o; | 1337 return o; |
1283 } | 1338 } |
1284 | 1339 |
1285 checkUnnamed4019(core.Map<core.String, core.String> o) { | 1340 checkUnnamed3733(core.Map<core.String, core.String> o) { |
1286 unittest.expect(o, unittest.hasLength(2)); | 1341 unittest.expect(o, unittest.hasLength(2)); |
1287 unittest.expect(o["x"], unittest.equals('foo')); | 1342 unittest.expect(o["x"], unittest.equals('foo')); |
1288 unittest.expect(o["y"], unittest.equals('foo')); | 1343 unittest.expect(o["y"], unittest.equals('foo')); |
1289 } | 1344 } |
1290 | 1345 |
1291 buildUnnamed4020() { | 1346 buildUnnamed3734() { |
1292 var o = new core.List<api.ErrorHandler>(); | 1347 var o = new core.List<api.ErrorHandler>(); |
1293 o.add(buildErrorHandler()); | 1348 o.add(buildErrorHandler()); |
1294 o.add(buildErrorHandler()); | 1349 o.add(buildErrorHandler()); |
1295 return o; | 1350 return o; |
1296 } | 1351 } |
1297 | 1352 |
1298 checkUnnamed4020(core.List<api.ErrorHandler> o) { | 1353 checkUnnamed3734(core.List<api.ErrorHandler> o) { |
1299 unittest.expect(o, unittest.hasLength(2)); | 1354 unittest.expect(o, unittest.hasLength(2)); |
1300 checkErrorHandler(o[0]); | 1355 checkErrorHandler(o[0]); |
1301 checkErrorHandler(o[1]); | 1356 checkErrorHandler(o[1]); |
1302 } | 1357 } |
1303 | 1358 |
1304 buildUnnamed4021() { | 1359 buildUnnamed3735() { |
1305 var o = new core.List<api.UrlMap>(); | 1360 var o = new core.List<api.UrlMap>(); |
1306 o.add(buildUrlMap()); | 1361 o.add(buildUrlMap()); |
1307 o.add(buildUrlMap()); | 1362 o.add(buildUrlMap()); |
1308 return o; | 1363 return o; |
1309 } | 1364 } |
1310 | 1365 |
1311 checkUnnamed4021(core.List<api.UrlMap> o) { | 1366 checkUnnamed3735(core.List<api.UrlMap> o) { |
1312 unittest.expect(o, unittest.hasLength(2)); | 1367 unittest.expect(o, unittest.hasLength(2)); |
1313 checkUrlMap(o[0]); | 1368 checkUrlMap(o[0]); |
1314 checkUrlMap(o[1]); | 1369 checkUrlMap(o[1]); |
1315 } | 1370 } |
1316 | 1371 |
1317 buildUnnamed4022() { | 1372 buildUnnamed3736() { |
1318 var o = new core.List<core.String>(); | 1373 var o = new core.List<core.String>(); |
1319 o.add("foo"); | 1374 o.add("foo"); |
1320 o.add("foo"); | 1375 o.add("foo"); |
1321 return o; | 1376 return o; |
1322 } | 1377 } |
1323 | 1378 |
1324 checkUnnamed4022(core.List<core.String> o) { | 1379 checkUnnamed3736(core.List<core.String> o) { |
1325 unittest.expect(o, unittest.hasLength(2)); | 1380 unittest.expect(o, unittest.hasLength(2)); |
1326 unittest.expect(o[0], unittest.equals('foo')); | 1381 unittest.expect(o[0], unittest.equals('foo')); |
1327 unittest.expect(o[1], unittest.equals('foo')); | 1382 unittest.expect(o[1], unittest.equals('foo')); |
1328 } | 1383 } |
1329 | 1384 |
1330 buildUnnamed4023() { | 1385 buildUnnamed3737() { |
1331 var o = new core.List<api.Library>(); | 1386 var o = new core.List<api.Library>(); |
1332 o.add(buildLibrary()); | 1387 o.add(buildLibrary()); |
1333 o.add(buildLibrary()); | 1388 o.add(buildLibrary()); |
1334 return o; | 1389 return o; |
1335 } | 1390 } |
1336 | 1391 |
1337 checkUnnamed4023(core.List<api.Library> o) { | 1392 checkUnnamed3737(core.List<api.Library> o) { |
1338 unittest.expect(o, unittest.hasLength(2)); | 1393 unittest.expect(o, unittest.hasLength(2)); |
1339 checkLibrary(o[0]); | 1394 checkLibrary(o[0]); |
1340 checkLibrary(o[1]); | 1395 checkLibrary(o[1]); |
1341 } | 1396 } |
1342 | 1397 |
1343 core.int buildCounterVersion = 0; | 1398 core.int buildCounterVersion = 0; |
1344 buildVersion() { | 1399 buildVersion() { |
1345 var o = new api.Version(); | 1400 var o = new api.Version(); |
1346 buildCounterVersion++; | 1401 buildCounterVersion++; |
1347 if (buildCounterVersion < 3) { | 1402 if (buildCounterVersion < 3) { |
1348 o.apiConfig = buildApiConfigHandler(); | 1403 o.apiConfig = buildApiConfigHandler(); |
1349 o.automaticScaling = buildAutomaticScaling(); | 1404 o.automaticScaling = buildAutomaticScaling(); |
1350 o.basicScaling = buildBasicScaling(); | 1405 o.basicScaling = buildBasicScaling(); |
1351 o.betaSettings = buildUnnamed4018(); | 1406 o.betaSettings = buildUnnamed3732(); |
1352 o.creationTime = "foo"; | 1407 o.creationTime = "foo"; |
1353 o.defaultExpiration = "foo"; | 1408 o.defaultExpiration = "foo"; |
1354 o.deployer = "foo"; | 1409 o.deployer = "foo"; |
1355 o.deployment = buildDeployment(); | 1410 o.deployment = buildDeployment(); |
1356 o.diskUsageBytes = "foo"; | 1411 o.diskUsageBytes = "foo"; |
| 1412 o.endpointsApiService = buildEndpointsApiService(); |
1357 o.env = "foo"; | 1413 o.env = "foo"; |
1358 o.envVariables = buildUnnamed4019(); | 1414 o.envVariables = buildUnnamed3733(); |
1359 o.errorHandlers = buildUnnamed4020(); | 1415 o.errorHandlers = buildUnnamed3734(); |
1360 o.handlers = buildUnnamed4021(); | 1416 o.handlers = buildUnnamed3735(); |
1361 o.healthCheck = buildHealthCheck(); | 1417 o.healthCheck = buildHealthCheck(); |
1362 o.id = "foo"; | 1418 o.id = "foo"; |
1363 o.inboundServices = buildUnnamed4022(); | 1419 o.inboundServices = buildUnnamed3736(); |
1364 o.instanceClass = "foo"; | 1420 o.instanceClass = "foo"; |
1365 o.libraries = buildUnnamed4023(); | 1421 o.libraries = buildUnnamed3737(); |
1366 o.manualScaling = buildManualScaling(); | 1422 o.manualScaling = buildManualScaling(); |
1367 o.name = "foo"; | 1423 o.name = "foo"; |
1368 o.network = buildNetwork(); | 1424 o.network = buildNetwork(); |
1369 o.nobuildFilesRegex = "foo"; | 1425 o.nobuildFilesRegex = "foo"; |
1370 o.resources = buildResources(); | 1426 o.resources = buildResources(); |
1371 o.runtime = "foo"; | 1427 o.runtime = "foo"; |
1372 o.servingStatus = "foo"; | 1428 o.servingStatus = "foo"; |
1373 o.threadsafe = true; | 1429 o.threadsafe = true; |
1374 o.vm = true; | 1430 o.vm = true; |
1375 } | 1431 } |
1376 buildCounterVersion--; | 1432 buildCounterVersion--; |
1377 return o; | 1433 return o; |
1378 } | 1434 } |
1379 | 1435 |
1380 checkVersion(api.Version o) { | 1436 checkVersion(api.Version o) { |
1381 buildCounterVersion++; | 1437 buildCounterVersion++; |
1382 if (buildCounterVersion < 3) { | 1438 if (buildCounterVersion < 3) { |
1383 checkApiConfigHandler(o.apiConfig); | 1439 checkApiConfigHandler(o.apiConfig); |
1384 checkAutomaticScaling(o.automaticScaling); | 1440 checkAutomaticScaling(o.automaticScaling); |
1385 checkBasicScaling(o.basicScaling); | 1441 checkBasicScaling(o.basicScaling); |
1386 checkUnnamed4018(o.betaSettings); | 1442 checkUnnamed3732(o.betaSettings); |
1387 unittest.expect(o.creationTime, unittest.equals('foo')); | 1443 unittest.expect(o.creationTime, unittest.equals('foo')); |
1388 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1444 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
1389 unittest.expect(o.deployer, unittest.equals('foo')); | 1445 unittest.expect(o.deployer, unittest.equals('foo')); |
1390 checkDeployment(o.deployment); | 1446 checkDeployment(o.deployment); |
1391 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); | 1447 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); |
| 1448 checkEndpointsApiService(o.endpointsApiService); |
1392 unittest.expect(o.env, unittest.equals('foo')); | 1449 unittest.expect(o.env, unittest.equals('foo')); |
1393 checkUnnamed4019(o.envVariables); | 1450 checkUnnamed3733(o.envVariables); |
1394 checkUnnamed4020(o.errorHandlers); | 1451 checkUnnamed3734(o.errorHandlers); |
1395 checkUnnamed4021(o.handlers); | 1452 checkUnnamed3735(o.handlers); |
1396 checkHealthCheck(o.healthCheck); | 1453 checkHealthCheck(o.healthCheck); |
1397 unittest.expect(o.id, unittest.equals('foo')); | 1454 unittest.expect(o.id, unittest.equals('foo')); |
1398 checkUnnamed4022(o.inboundServices); | 1455 checkUnnamed3736(o.inboundServices); |
1399 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1456 unittest.expect(o.instanceClass, unittest.equals('foo')); |
1400 checkUnnamed4023(o.libraries); | 1457 checkUnnamed3737(o.libraries); |
1401 checkManualScaling(o.manualScaling); | 1458 checkManualScaling(o.manualScaling); |
1402 unittest.expect(o.name, unittest.equals('foo')); | 1459 unittest.expect(o.name, unittest.equals('foo')); |
1403 checkNetwork(o.network); | 1460 checkNetwork(o.network); |
1404 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1461 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
1405 checkResources(o.resources); | 1462 checkResources(o.resources); |
1406 unittest.expect(o.runtime, unittest.equals('foo')); | 1463 unittest.expect(o.runtime, unittest.equals('foo')); |
1407 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1464 unittest.expect(o.servingStatus, unittest.equals('foo')); |
1408 unittest.expect(o.threadsafe, unittest.isTrue); | 1465 unittest.expect(o.threadsafe, unittest.isTrue); |
1409 unittest.expect(o.vm, unittest.isTrue); | 1466 unittest.expect(o.vm, unittest.isTrue); |
1410 } | 1467 } |
1411 buildCounterVersion--; | 1468 buildCounterVersion--; |
1412 } | 1469 } |
1413 | 1470 |
| 1471 core.int buildCounterVolume = 0; |
| 1472 buildVolume() { |
| 1473 var o = new api.Volume(); |
| 1474 buildCounterVolume++; |
| 1475 if (buildCounterVolume < 3) { |
| 1476 o.name = "foo"; |
| 1477 o.sizeGb = 42.0; |
| 1478 o.volumeType = "foo"; |
| 1479 } |
| 1480 buildCounterVolume--; |
| 1481 return o; |
| 1482 } |
| 1483 |
| 1484 checkVolume(api.Volume o) { |
| 1485 buildCounterVolume++; |
| 1486 if (buildCounterVolume < 3) { |
| 1487 unittest.expect(o.name, unittest.equals('foo')); |
| 1488 unittest.expect(o.sizeGb, unittest.equals(42.0)); |
| 1489 unittest.expect(o.volumeType, unittest.equals('foo')); |
| 1490 } |
| 1491 buildCounterVolume--; |
| 1492 } |
| 1493 |
1414 | 1494 |
1415 main() { | 1495 main() { |
1416 unittest.group("obj-schema-ApiConfigHandler", () { | 1496 unittest.group("obj-schema-ApiConfigHandler", () { |
1417 unittest.test("to-json--from-json", () { | 1497 unittest.test("to-json--from-json", () { |
1418 var o = buildApiConfigHandler(); | 1498 var o = buildApiConfigHandler(); |
1419 var od = new api.ApiConfigHandler.fromJson(o.toJson()); | 1499 var od = new api.ApiConfigHandler.fromJson(o.toJson()); |
1420 checkApiConfigHandler(od); | 1500 checkApiConfigHandler(od); |
1421 }); | 1501 }); |
1422 }); | 1502 }); |
1423 | 1503 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 | 1576 |
1497 unittest.group("obj-schema-DiskUtilization", () { | 1577 unittest.group("obj-schema-DiskUtilization", () { |
1498 unittest.test("to-json--from-json", () { | 1578 unittest.test("to-json--from-json", () { |
1499 var o = buildDiskUtilization(); | 1579 var o = buildDiskUtilization(); |
1500 var od = new api.DiskUtilization.fromJson(o.toJson()); | 1580 var od = new api.DiskUtilization.fromJson(o.toJson()); |
1501 checkDiskUtilization(od); | 1581 checkDiskUtilization(od); |
1502 }); | 1582 }); |
1503 }); | 1583 }); |
1504 | 1584 |
1505 | 1585 |
| 1586 unittest.group("obj-schema-EndpointsApiService", () { |
| 1587 unittest.test("to-json--from-json", () { |
| 1588 var o = buildEndpointsApiService(); |
| 1589 var od = new api.EndpointsApiService.fromJson(o.toJson()); |
| 1590 checkEndpointsApiService(od); |
| 1591 }); |
| 1592 }); |
| 1593 |
| 1594 |
1506 unittest.group("obj-schema-ErrorHandler", () { | 1595 unittest.group("obj-schema-ErrorHandler", () { |
1507 unittest.test("to-json--from-json", () { | 1596 unittest.test("to-json--from-json", () { |
1508 var o = buildErrorHandler(); | 1597 var o = buildErrorHandler(); |
1509 var od = new api.ErrorHandler.fromJson(o.toJson()); | 1598 var od = new api.ErrorHandler.fromJson(o.toJson()); |
1510 checkErrorHandler(od); | 1599 checkErrorHandler(od); |
1511 }); | 1600 }); |
1512 }); | 1601 }); |
1513 | 1602 |
1514 | 1603 |
1515 unittest.group("obj-schema-FileInfo", () { | 1604 unittest.group("obj-schema-FileInfo", () { |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1775 | 1864 |
1776 unittest.group("obj-schema-Version", () { | 1865 unittest.group("obj-schema-Version", () { |
1777 unittest.test("to-json--from-json", () { | 1866 unittest.test("to-json--from-json", () { |
1778 var o = buildVersion(); | 1867 var o = buildVersion(); |
1779 var od = new api.Version.fromJson(o.toJson()); | 1868 var od = new api.Version.fromJson(o.toJson()); |
1780 checkVersion(od); | 1869 checkVersion(od); |
1781 }); | 1870 }); |
1782 }); | 1871 }); |
1783 | 1872 |
1784 | 1873 |
| 1874 unittest.group("obj-schema-Volume", () { |
| 1875 unittest.test("to-json--from-json", () { |
| 1876 var o = buildVolume(); |
| 1877 var od = new api.Volume.fromJson(o.toJson()); |
| 1878 checkVolume(od); |
| 1879 }); |
| 1880 }); |
| 1881 |
| 1882 |
1785 unittest.group("resource-AppsResourceApi", () { | 1883 unittest.group("resource-AppsResourceApi", () { |
1786 unittest.test("method--create", () { | 1884 unittest.test("method--create", () { |
1787 | 1885 |
1788 var mock = new HttpServerMock(); | 1886 var mock = new HttpServerMock(); |
1789 api.AppsResourceApi res = new api.AppengineApi(mock).apps; | 1887 api.AppsResourceApi res = new api.AppengineApi(mock).apps; |
1790 var arg_request = buildApplication(); | 1888 var arg_request = buildApplication(); |
1791 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1889 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1792 var obj = new api.Application.fromJson(json); | 1890 var obj = new api.Application.fromJson(json); |
1793 checkApplication(obj); | 1891 checkApplication(obj); |
1794 | 1892 |
(...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3019 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { | 3117 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { |
3020 checkListInstancesResponse(response); | 3118 checkListInstancesResponse(response); |
3021 }))); | 3119 }))); |
3022 }); | 3120 }); |
3023 | 3121 |
3024 }); | 3122 }); |
3025 | 3123 |
3026 | 3124 |
3027 } | 3125 } |
3028 | 3126 |
OLD | NEW |