OLD | NEW |
1 library googleapis.appengine.v1.test; | 1 library googleapis.appengine.v1.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 buildUnnamed3160() { | 100 buildUnnamed2948() { |
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 checkUnnamed3160(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed2948(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 = buildUnnamed3160(); | 123 o.dispatchRules = buildUnnamed2948(); |
124 o.id = "foo"; | 124 o.id = "foo"; |
125 o.locationId = "foo"; | 125 o.locationId = "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 checkUnnamed3160(o.dispatchRules); | 140 checkUnnamed2948(o.dispatchRules); |
141 unittest.expect(o.id, unittest.equals('foo')); | 141 unittest.expect(o.id, unittest.equals('foo')); |
142 unittest.expect(o.locationId, unittest.equals('foo')); | 142 unittest.expect(o.locationId, 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 buildUnnamed3161() { | 269 buildUnnamed2949() { |
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 checkUnnamed3161(core.Map<core.String, api.FileInfo> o) { | 276 checkUnnamed2949(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 core.int buildCounterDeployment = 0; | 282 core.int buildCounterDeployment = 0; |
283 buildDeployment() { | 283 buildDeployment() { |
284 var o = new api.Deployment(); | 284 var o = new api.Deployment(); |
285 buildCounterDeployment++; | 285 buildCounterDeployment++; |
286 if (buildCounterDeployment < 3) { | 286 if (buildCounterDeployment < 3) { |
287 o.container = buildContainerInfo(); | 287 o.container = buildContainerInfo(); |
288 o.files = buildUnnamed3161(); | 288 o.files = buildUnnamed2949(); |
289 o.zip = buildZipInfo(); | 289 o.zip = buildZipInfo(); |
290 } | 290 } |
291 buildCounterDeployment--; | 291 buildCounterDeployment--; |
292 return o; | 292 return o; |
293 } | 293 } |
294 | 294 |
295 checkDeployment(api.Deployment o) { | 295 checkDeployment(api.Deployment o) { |
296 buildCounterDeployment++; | 296 buildCounterDeployment++; |
297 if (buildCounterDeployment < 3) { | 297 if (buildCounterDeployment < 3) { |
298 checkContainerInfo(o.container); | 298 checkContainerInfo(o.container); |
299 checkUnnamed3161(o.files); | 299 checkUnnamed2949(o.files); |
300 checkZipInfo(o.zip); | 300 checkZipInfo(o.zip); |
301 } | 301 } |
302 buildCounterDeployment--; | 302 buildCounterDeployment--; |
303 } | 303 } |
304 | 304 |
305 core.int buildCounterDiskUtilization = 0; | 305 core.int buildCounterDiskUtilization = 0; |
306 buildDiskUtilization() { | 306 buildDiskUtilization() { |
307 var o = new api.DiskUtilization(); | 307 var o = new api.DiskUtilization(); |
308 buildCounterDiskUtilization++; | 308 buildCounterDiskUtilization++; |
309 if (buildCounterDiskUtilization < 3) { | 309 if (buildCounterDiskUtilization < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
320 buildCounterDiskUtilization++; | 320 buildCounterDiskUtilization++; |
321 if (buildCounterDiskUtilization < 3) { | 321 if (buildCounterDiskUtilization < 3) { |
322 unittest.expect(o.targetReadBytesPerSecond, unittest.equals(42)); | 322 unittest.expect(o.targetReadBytesPerSecond, unittest.equals(42)); |
323 unittest.expect(o.targetReadOpsPerSecond, unittest.equals(42)); | 323 unittest.expect(o.targetReadOpsPerSecond, unittest.equals(42)); |
324 unittest.expect(o.targetWriteBytesPerSecond, unittest.equals(42)); | 324 unittest.expect(o.targetWriteBytesPerSecond, unittest.equals(42)); |
325 unittest.expect(o.targetWriteOpsPerSecond, unittest.equals(42)); | 325 unittest.expect(o.targetWriteOpsPerSecond, unittest.equals(42)); |
326 } | 326 } |
327 buildCounterDiskUtilization--; | 327 buildCounterDiskUtilization--; |
328 } | 328 } |
329 | 329 |
| 330 core.int buildCounterEndpointsApiService = 0; |
| 331 buildEndpointsApiService() { |
| 332 var o = new api.EndpointsApiService(); |
| 333 buildCounterEndpointsApiService++; |
| 334 if (buildCounterEndpointsApiService < 3) { |
| 335 o.configId = "foo"; |
| 336 o.name = "foo"; |
| 337 } |
| 338 buildCounterEndpointsApiService--; |
| 339 return o; |
| 340 } |
| 341 |
| 342 checkEndpointsApiService(api.EndpointsApiService o) { |
| 343 buildCounterEndpointsApiService++; |
| 344 if (buildCounterEndpointsApiService < 3) { |
| 345 unittest.expect(o.configId, unittest.equals('foo')); |
| 346 unittest.expect(o.name, unittest.equals('foo')); |
| 347 } |
| 348 buildCounterEndpointsApiService--; |
| 349 } |
| 350 |
330 core.int buildCounterErrorHandler = 0; | 351 core.int buildCounterErrorHandler = 0; |
331 buildErrorHandler() { | 352 buildErrorHandler() { |
332 var o = new api.ErrorHandler(); | 353 var o = new api.ErrorHandler(); |
333 buildCounterErrorHandler++; | 354 buildCounterErrorHandler++; |
334 if (buildCounterErrorHandler < 3) { | 355 if (buildCounterErrorHandler < 3) { |
335 o.errorCode = "foo"; | 356 o.errorCode = "foo"; |
336 o.mimeType = "foo"; | 357 o.mimeType = "foo"; |
337 o.staticFile = "foo"; | 358 o.staticFile = "foo"; |
338 } | 359 } |
339 buildCounterErrorHandler--; | 360 buildCounterErrorHandler--; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 | 488 |
468 checkLibrary(api.Library o) { | 489 checkLibrary(api.Library o) { |
469 buildCounterLibrary++; | 490 buildCounterLibrary++; |
470 if (buildCounterLibrary < 3) { | 491 if (buildCounterLibrary < 3) { |
471 unittest.expect(o.name, unittest.equals('foo')); | 492 unittest.expect(o.name, unittest.equals('foo')); |
472 unittest.expect(o.version, unittest.equals('foo')); | 493 unittest.expect(o.version, unittest.equals('foo')); |
473 } | 494 } |
474 buildCounterLibrary--; | 495 buildCounterLibrary--; |
475 } | 496 } |
476 | 497 |
477 buildUnnamed3162() { | 498 buildUnnamed2950() { |
478 var o = new core.List<api.Instance>(); | 499 var o = new core.List<api.Instance>(); |
479 o.add(buildInstance()); | 500 o.add(buildInstance()); |
480 o.add(buildInstance()); | 501 o.add(buildInstance()); |
481 return o; | 502 return o; |
482 } | 503 } |
483 | 504 |
484 checkUnnamed3162(core.List<api.Instance> o) { | 505 checkUnnamed2950(core.List<api.Instance> o) { |
485 unittest.expect(o, unittest.hasLength(2)); | 506 unittest.expect(o, unittest.hasLength(2)); |
486 checkInstance(o[0]); | 507 checkInstance(o[0]); |
487 checkInstance(o[1]); | 508 checkInstance(o[1]); |
488 } | 509 } |
489 | 510 |
490 core.int buildCounterListInstancesResponse = 0; | 511 core.int buildCounterListInstancesResponse = 0; |
491 buildListInstancesResponse() { | 512 buildListInstancesResponse() { |
492 var o = new api.ListInstancesResponse(); | 513 var o = new api.ListInstancesResponse(); |
493 buildCounterListInstancesResponse++; | 514 buildCounterListInstancesResponse++; |
494 if (buildCounterListInstancesResponse < 3) { | 515 if (buildCounterListInstancesResponse < 3) { |
495 o.instances = buildUnnamed3162(); | 516 o.instances = buildUnnamed2950(); |
496 o.nextPageToken = "foo"; | 517 o.nextPageToken = "foo"; |
497 } | 518 } |
498 buildCounterListInstancesResponse--; | 519 buildCounterListInstancesResponse--; |
499 return o; | 520 return o; |
500 } | 521 } |
501 | 522 |
502 checkListInstancesResponse(api.ListInstancesResponse o) { | 523 checkListInstancesResponse(api.ListInstancesResponse o) { |
503 buildCounterListInstancesResponse++; | 524 buildCounterListInstancesResponse++; |
504 if (buildCounterListInstancesResponse < 3) { | 525 if (buildCounterListInstancesResponse < 3) { |
505 checkUnnamed3162(o.instances); | 526 checkUnnamed2950(o.instances); |
506 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 527 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
507 } | 528 } |
508 buildCounterListInstancesResponse--; | 529 buildCounterListInstancesResponse--; |
509 } | 530 } |
510 | 531 |
511 buildUnnamed3163() { | 532 buildUnnamed2951() { |
512 var o = new core.List<api.Location>(); | 533 var o = new core.List<api.Location>(); |
513 o.add(buildLocation()); | 534 o.add(buildLocation()); |
514 o.add(buildLocation()); | 535 o.add(buildLocation()); |
515 return o; | 536 return o; |
516 } | 537 } |
517 | 538 |
518 checkUnnamed3163(core.List<api.Location> o) { | 539 checkUnnamed2951(core.List<api.Location> o) { |
519 unittest.expect(o, unittest.hasLength(2)); | 540 unittest.expect(o, unittest.hasLength(2)); |
520 checkLocation(o[0]); | 541 checkLocation(o[0]); |
521 checkLocation(o[1]); | 542 checkLocation(o[1]); |
522 } | 543 } |
523 | 544 |
524 core.int buildCounterListLocationsResponse = 0; | 545 core.int buildCounterListLocationsResponse = 0; |
525 buildListLocationsResponse() { | 546 buildListLocationsResponse() { |
526 var o = new api.ListLocationsResponse(); | 547 var o = new api.ListLocationsResponse(); |
527 buildCounterListLocationsResponse++; | 548 buildCounterListLocationsResponse++; |
528 if (buildCounterListLocationsResponse < 3) { | 549 if (buildCounterListLocationsResponse < 3) { |
529 o.locations = buildUnnamed3163(); | 550 o.locations = buildUnnamed2951(); |
530 o.nextPageToken = "foo"; | 551 o.nextPageToken = "foo"; |
531 } | 552 } |
532 buildCounterListLocationsResponse--; | 553 buildCounterListLocationsResponse--; |
533 return o; | 554 return o; |
534 } | 555 } |
535 | 556 |
536 checkListLocationsResponse(api.ListLocationsResponse o) { | 557 checkListLocationsResponse(api.ListLocationsResponse o) { |
537 buildCounterListLocationsResponse++; | 558 buildCounterListLocationsResponse++; |
538 if (buildCounterListLocationsResponse < 3) { | 559 if (buildCounterListLocationsResponse < 3) { |
539 checkUnnamed3163(o.locations); | 560 checkUnnamed2951(o.locations); |
540 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 561 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
541 } | 562 } |
542 buildCounterListLocationsResponse--; | 563 buildCounterListLocationsResponse--; |
543 } | 564 } |
544 | 565 |
545 buildUnnamed3164() { | 566 buildUnnamed2952() { |
546 var o = new core.List<api.Operation>(); | 567 var o = new core.List<api.Operation>(); |
547 o.add(buildOperation()); | 568 o.add(buildOperation()); |
548 o.add(buildOperation()); | 569 o.add(buildOperation()); |
549 return o; | 570 return o; |
550 } | 571 } |
551 | 572 |
552 checkUnnamed3164(core.List<api.Operation> o) { | 573 checkUnnamed2952(core.List<api.Operation> o) { |
553 unittest.expect(o, unittest.hasLength(2)); | 574 unittest.expect(o, unittest.hasLength(2)); |
554 checkOperation(o[0]); | 575 checkOperation(o[0]); |
555 checkOperation(o[1]); | 576 checkOperation(o[1]); |
556 } | 577 } |
557 | 578 |
558 core.int buildCounterListOperationsResponse = 0; | 579 core.int buildCounterListOperationsResponse = 0; |
559 buildListOperationsResponse() { | 580 buildListOperationsResponse() { |
560 var o = new api.ListOperationsResponse(); | 581 var o = new api.ListOperationsResponse(); |
561 buildCounterListOperationsResponse++; | 582 buildCounterListOperationsResponse++; |
562 if (buildCounterListOperationsResponse < 3) { | 583 if (buildCounterListOperationsResponse < 3) { |
563 o.nextPageToken = "foo"; | 584 o.nextPageToken = "foo"; |
564 o.operations = buildUnnamed3164(); | 585 o.operations = buildUnnamed2952(); |
565 } | 586 } |
566 buildCounterListOperationsResponse--; | 587 buildCounterListOperationsResponse--; |
567 return o; | 588 return o; |
568 } | 589 } |
569 | 590 |
570 checkListOperationsResponse(api.ListOperationsResponse o) { | 591 checkListOperationsResponse(api.ListOperationsResponse o) { |
571 buildCounterListOperationsResponse++; | 592 buildCounterListOperationsResponse++; |
572 if (buildCounterListOperationsResponse < 3) { | 593 if (buildCounterListOperationsResponse < 3) { |
573 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 594 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
574 checkUnnamed3164(o.operations); | 595 checkUnnamed2952(o.operations); |
575 } | 596 } |
576 buildCounterListOperationsResponse--; | 597 buildCounterListOperationsResponse--; |
577 } | 598 } |
578 | 599 |
579 buildUnnamed3165() { | 600 buildUnnamed2953() { |
580 var o = new core.List<api.Service>(); | 601 var o = new core.List<api.Service>(); |
581 o.add(buildService()); | 602 o.add(buildService()); |
582 o.add(buildService()); | 603 o.add(buildService()); |
583 return o; | 604 return o; |
584 } | 605 } |
585 | 606 |
586 checkUnnamed3165(core.List<api.Service> o) { | 607 checkUnnamed2953(core.List<api.Service> o) { |
587 unittest.expect(o, unittest.hasLength(2)); | 608 unittest.expect(o, unittest.hasLength(2)); |
588 checkService(o[0]); | 609 checkService(o[0]); |
589 checkService(o[1]); | 610 checkService(o[1]); |
590 } | 611 } |
591 | 612 |
592 core.int buildCounterListServicesResponse = 0; | 613 core.int buildCounterListServicesResponse = 0; |
593 buildListServicesResponse() { | 614 buildListServicesResponse() { |
594 var o = new api.ListServicesResponse(); | 615 var o = new api.ListServicesResponse(); |
595 buildCounterListServicesResponse++; | 616 buildCounterListServicesResponse++; |
596 if (buildCounterListServicesResponse < 3) { | 617 if (buildCounterListServicesResponse < 3) { |
597 o.nextPageToken = "foo"; | 618 o.nextPageToken = "foo"; |
598 o.services = buildUnnamed3165(); | 619 o.services = buildUnnamed2953(); |
599 } | 620 } |
600 buildCounterListServicesResponse--; | 621 buildCounterListServicesResponse--; |
601 return o; | 622 return o; |
602 } | 623 } |
603 | 624 |
604 checkListServicesResponse(api.ListServicesResponse o) { | 625 checkListServicesResponse(api.ListServicesResponse o) { |
605 buildCounterListServicesResponse++; | 626 buildCounterListServicesResponse++; |
606 if (buildCounterListServicesResponse < 3) { | 627 if (buildCounterListServicesResponse < 3) { |
607 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 628 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
608 checkUnnamed3165(o.services); | 629 checkUnnamed2953(o.services); |
609 } | 630 } |
610 buildCounterListServicesResponse--; | 631 buildCounterListServicesResponse--; |
611 } | 632 } |
612 | 633 |
613 buildUnnamed3166() { | 634 buildUnnamed2954() { |
614 var o = new core.List<api.Version>(); | 635 var o = new core.List<api.Version>(); |
615 o.add(buildVersion()); | 636 o.add(buildVersion()); |
616 o.add(buildVersion()); | 637 o.add(buildVersion()); |
617 return o; | 638 return o; |
618 } | 639 } |
619 | 640 |
620 checkUnnamed3166(core.List<api.Version> o) { | 641 checkUnnamed2954(core.List<api.Version> o) { |
621 unittest.expect(o, unittest.hasLength(2)); | 642 unittest.expect(o, unittest.hasLength(2)); |
622 checkVersion(o[0]); | 643 checkVersion(o[0]); |
623 checkVersion(o[1]); | 644 checkVersion(o[1]); |
624 } | 645 } |
625 | 646 |
626 core.int buildCounterListVersionsResponse = 0; | 647 core.int buildCounterListVersionsResponse = 0; |
627 buildListVersionsResponse() { | 648 buildListVersionsResponse() { |
628 var o = new api.ListVersionsResponse(); | 649 var o = new api.ListVersionsResponse(); |
629 buildCounterListVersionsResponse++; | 650 buildCounterListVersionsResponse++; |
630 if (buildCounterListVersionsResponse < 3) { | 651 if (buildCounterListVersionsResponse < 3) { |
631 o.nextPageToken = "foo"; | 652 o.nextPageToken = "foo"; |
632 o.versions = buildUnnamed3166(); | 653 o.versions = buildUnnamed2954(); |
633 } | 654 } |
634 buildCounterListVersionsResponse--; | 655 buildCounterListVersionsResponse--; |
635 return o; | 656 return o; |
636 } | 657 } |
637 | 658 |
638 checkListVersionsResponse(api.ListVersionsResponse o) { | 659 checkListVersionsResponse(api.ListVersionsResponse o) { |
639 buildCounterListVersionsResponse++; | 660 buildCounterListVersionsResponse++; |
640 if (buildCounterListVersionsResponse < 3) { | 661 if (buildCounterListVersionsResponse < 3) { |
641 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 662 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
642 checkUnnamed3166(o.versions); | 663 checkUnnamed2954(o.versions); |
643 } | 664 } |
644 buildCounterListVersionsResponse--; | 665 buildCounterListVersionsResponse--; |
645 } | 666 } |
646 | 667 |
647 buildUnnamed3167() { | 668 buildUnnamed2955() { |
648 var o = new core.Map<core.String, core.String>(); | 669 var o = new core.Map<core.String, core.String>(); |
649 o["x"] = "foo"; | 670 o["x"] = "foo"; |
650 o["y"] = "foo"; | 671 o["y"] = "foo"; |
651 return o; | 672 return o; |
652 } | 673 } |
653 | 674 |
654 checkUnnamed3167(core.Map<core.String, core.String> o) { | 675 checkUnnamed2955(core.Map<core.String, core.String> o) { |
655 unittest.expect(o, unittest.hasLength(2)); | 676 unittest.expect(o, unittest.hasLength(2)); |
656 unittest.expect(o["x"], unittest.equals('foo')); | 677 unittest.expect(o["x"], unittest.equals('foo')); |
657 unittest.expect(o["y"], unittest.equals('foo')); | 678 unittest.expect(o["y"], unittest.equals('foo')); |
658 } | 679 } |
659 | 680 |
660 buildUnnamed3168() { | 681 buildUnnamed2956() { |
661 var o = new core.Map<core.String, core.Object>(); | 682 var o = new core.Map<core.String, core.Object>(); |
662 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 683 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
663 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 684 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
664 return o; | 685 return o; |
665 } | 686 } |
666 | 687 |
667 checkUnnamed3168(core.Map<core.String, core.Object> o) { | 688 checkUnnamed2956(core.Map<core.String, core.Object> o) { |
668 unittest.expect(o, unittest.hasLength(2)); | 689 unittest.expect(o, unittest.hasLength(2)); |
669 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')); | 690 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')); |
670 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')); | 691 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')); |
671 } | 692 } |
672 | 693 |
673 core.int buildCounterLocation = 0; | 694 core.int buildCounterLocation = 0; |
674 buildLocation() { | 695 buildLocation() { |
675 var o = new api.Location(); | 696 var o = new api.Location(); |
676 buildCounterLocation++; | 697 buildCounterLocation++; |
677 if (buildCounterLocation < 3) { | 698 if (buildCounterLocation < 3) { |
678 o.labels = buildUnnamed3167(); | 699 o.labels = buildUnnamed2955(); |
679 o.locationId = "foo"; | 700 o.locationId = "foo"; |
680 o.metadata = buildUnnamed3168(); | 701 o.metadata = buildUnnamed2956(); |
681 o.name = "foo"; | 702 o.name = "foo"; |
682 } | 703 } |
683 buildCounterLocation--; | 704 buildCounterLocation--; |
684 return o; | 705 return o; |
685 } | 706 } |
686 | 707 |
687 checkLocation(api.Location o) { | 708 checkLocation(api.Location o) { |
688 buildCounterLocation++; | 709 buildCounterLocation++; |
689 if (buildCounterLocation < 3) { | 710 if (buildCounterLocation < 3) { |
690 checkUnnamed3167(o.labels); | 711 checkUnnamed2955(o.labels); |
691 unittest.expect(o.locationId, unittest.equals('foo')); | 712 unittest.expect(o.locationId, unittest.equals('foo')); |
692 checkUnnamed3168(o.metadata); | 713 checkUnnamed2956(o.metadata); |
693 unittest.expect(o.name, unittest.equals('foo')); | 714 unittest.expect(o.name, unittest.equals('foo')); |
694 } | 715 } |
695 buildCounterLocation--; | 716 buildCounterLocation--; |
696 } | 717 } |
697 | 718 |
698 core.int buildCounterLocationMetadata = 0; | 719 core.int buildCounterLocationMetadata = 0; |
699 buildLocationMetadata() { | 720 buildLocationMetadata() { |
700 var o = new api.LocationMetadata(); | 721 var o = new api.LocationMetadata(); |
701 buildCounterLocationMetadata++; | 722 buildCounterLocationMetadata++; |
702 if (buildCounterLocationMetadata < 3) { | 723 if (buildCounterLocationMetadata < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
728 } | 749 } |
729 | 750 |
730 checkManualScaling(api.ManualScaling o) { | 751 checkManualScaling(api.ManualScaling o) { |
731 buildCounterManualScaling++; | 752 buildCounterManualScaling++; |
732 if (buildCounterManualScaling < 3) { | 753 if (buildCounterManualScaling < 3) { |
733 unittest.expect(o.instances, unittest.equals(42)); | 754 unittest.expect(o.instances, unittest.equals(42)); |
734 } | 755 } |
735 buildCounterManualScaling--; | 756 buildCounterManualScaling--; |
736 } | 757 } |
737 | 758 |
738 buildUnnamed3169() { | 759 buildUnnamed2957() { |
739 var o = new core.List<core.String>(); | 760 var o = new core.List<core.String>(); |
740 o.add("foo"); | 761 o.add("foo"); |
741 o.add("foo"); | 762 o.add("foo"); |
742 return o; | 763 return o; |
743 } | 764 } |
744 | 765 |
745 checkUnnamed3169(core.List<core.String> o) { | 766 checkUnnamed2957(core.List<core.String> o) { |
746 unittest.expect(o, unittest.hasLength(2)); | 767 unittest.expect(o, unittest.hasLength(2)); |
747 unittest.expect(o[0], unittest.equals('foo')); | 768 unittest.expect(o[0], unittest.equals('foo')); |
748 unittest.expect(o[1], unittest.equals('foo')); | 769 unittest.expect(o[1], unittest.equals('foo')); |
749 } | 770 } |
750 | 771 |
751 core.int buildCounterNetwork = 0; | 772 core.int buildCounterNetwork = 0; |
752 buildNetwork() { | 773 buildNetwork() { |
753 var o = new api.Network(); | 774 var o = new api.Network(); |
754 buildCounterNetwork++; | 775 buildCounterNetwork++; |
755 if (buildCounterNetwork < 3) { | 776 if (buildCounterNetwork < 3) { |
756 o.forwardedPorts = buildUnnamed3169(); | 777 o.forwardedPorts = buildUnnamed2957(); |
757 o.instanceTag = "foo"; | 778 o.instanceTag = "foo"; |
758 o.name = "foo"; | 779 o.name = "foo"; |
| 780 o.subnetworkName = "foo"; |
759 } | 781 } |
760 buildCounterNetwork--; | 782 buildCounterNetwork--; |
761 return o; | 783 return o; |
762 } | 784 } |
763 | 785 |
764 checkNetwork(api.Network o) { | 786 checkNetwork(api.Network o) { |
765 buildCounterNetwork++; | 787 buildCounterNetwork++; |
766 if (buildCounterNetwork < 3) { | 788 if (buildCounterNetwork < 3) { |
767 checkUnnamed3169(o.forwardedPorts); | 789 checkUnnamed2957(o.forwardedPorts); |
768 unittest.expect(o.instanceTag, unittest.equals('foo')); | 790 unittest.expect(o.instanceTag, unittest.equals('foo')); |
769 unittest.expect(o.name, unittest.equals('foo')); | 791 unittest.expect(o.name, unittest.equals('foo')); |
| 792 unittest.expect(o.subnetworkName, unittest.equals('foo')); |
770 } | 793 } |
771 buildCounterNetwork--; | 794 buildCounterNetwork--; |
772 } | 795 } |
773 | 796 |
774 core.int buildCounterNetworkUtilization = 0; | 797 core.int buildCounterNetworkUtilization = 0; |
775 buildNetworkUtilization() { | 798 buildNetworkUtilization() { |
776 var o = new api.NetworkUtilization(); | 799 var o = new api.NetworkUtilization(); |
777 buildCounterNetworkUtilization++; | 800 buildCounterNetworkUtilization++; |
778 if (buildCounterNetworkUtilization < 3) { | 801 if (buildCounterNetworkUtilization < 3) { |
779 o.targetReceivedBytesPerSecond = 42; | 802 o.targetReceivedBytesPerSecond = 42; |
780 o.targetReceivedPacketsPerSecond = 42; | 803 o.targetReceivedPacketsPerSecond = 42; |
781 o.targetSentBytesPerSecond = 42; | 804 o.targetSentBytesPerSecond = 42; |
782 o.targetSentPacketsPerSecond = 42; | 805 o.targetSentPacketsPerSecond = 42; |
783 } | 806 } |
784 buildCounterNetworkUtilization--; | 807 buildCounterNetworkUtilization--; |
785 return o; | 808 return o; |
786 } | 809 } |
787 | 810 |
788 checkNetworkUtilization(api.NetworkUtilization o) { | 811 checkNetworkUtilization(api.NetworkUtilization o) { |
789 buildCounterNetworkUtilization++; | 812 buildCounterNetworkUtilization++; |
790 if (buildCounterNetworkUtilization < 3) { | 813 if (buildCounterNetworkUtilization < 3) { |
791 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42)); | 814 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42)); |
792 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42)); | 815 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42)); |
793 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42)); | 816 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42)); |
794 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42)); | 817 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42)); |
795 } | 818 } |
796 buildCounterNetworkUtilization--; | 819 buildCounterNetworkUtilization--; |
797 } | 820 } |
798 | 821 |
799 buildUnnamed3170() { | 822 buildUnnamed2958() { |
800 var o = new core.Map<core.String, core.Object>(); | 823 var o = new core.Map<core.String, core.Object>(); |
801 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 824 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
802 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 825 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
803 return o; | 826 return o; |
804 } | 827 } |
805 | 828 |
806 checkUnnamed3170(core.Map<core.String, core.Object> o) { | 829 checkUnnamed2958(core.Map<core.String, core.Object> o) { |
807 unittest.expect(o, unittest.hasLength(2)); | 830 unittest.expect(o, unittest.hasLength(2)); |
808 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')); | 831 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')); |
809 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')); | 832 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')); |
810 } | 833 } |
811 | 834 |
812 buildUnnamed3171() { | 835 buildUnnamed2959() { |
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 checkUnnamed3171(core.Map<core.String, core.Object> o) { | 842 checkUnnamed2959(core.Map<core.String, core.Object> o) { |
820 unittest.expect(o, unittest.hasLength(2)); | 843 unittest.expect(o, unittest.hasLength(2)); |
821 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')); | 844 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')); |
822 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')); | 845 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')); |
823 } | 846 } |
824 | 847 |
825 core.int buildCounterOperation = 0; | 848 core.int buildCounterOperation = 0; |
826 buildOperation() { | 849 buildOperation() { |
827 var o = new api.Operation(); | 850 var o = new api.Operation(); |
828 buildCounterOperation++; | 851 buildCounterOperation++; |
829 if (buildCounterOperation < 3) { | 852 if (buildCounterOperation < 3) { |
830 o.done = true; | 853 o.done = true; |
831 o.error = buildStatus(); | 854 o.error = buildStatus(); |
832 o.metadata = buildUnnamed3170(); | 855 o.metadata = buildUnnamed2958(); |
833 o.name = "foo"; | 856 o.name = "foo"; |
834 o.response = buildUnnamed3171(); | 857 o.response = buildUnnamed2959(); |
835 } | 858 } |
836 buildCounterOperation--; | 859 buildCounterOperation--; |
837 return o; | 860 return o; |
838 } | 861 } |
839 | 862 |
840 checkOperation(api.Operation o) { | 863 checkOperation(api.Operation o) { |
841 buildCounterOperation++; | 864 buildCounterOperation++; |
842 if (buildCounterOperation < 3) { | 865 if (buildCounterOperation < 3) { |
843 unittest.expect(o.done, unittest.isTrue); | 866 unittest.expect(o.done, unittest.isTrue); |
844 checkStatus(o.error); | 867 checkStatus(o.error); |
845 checkUnnamed3170(o.metadata); | 868 checkUnnamed2958(o.metadata); |
846 unittest.expect(o.name, unittest.equals('foo')); | 869 unittest.expect(o.name, unittest.equals('foo')); |
847 checkUnnamed3171(o.response); | 870 checkUnnamed2959(o.response); |
848 } | 871 } |
849 buildCounterOperation--; | 872 buildCounterOperation--; |
850 } | 873 } |
851 | 874 |
852 core.int buildCounterOperationMetadata = 0; | 875 core.int buildCounterOperationMetadata = 0; |
853 buildOperationMetadata() { | 876 buildOperationMetadata() { |
854 var o = new api.OperationMetadata(); | 877 var o = new api.OperationMetadata(); |
855 buildCounterOperationMetadata++; | 878 buildCounterOperationMetadata++; |
856 if (buildCounterOperationMetadata < 3) { | 879 if (buildCounterOperationMetadata < 3) { |
857 o.endTime = "foo"; | 880 o.endTime = "foo"; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 if (buildCounterOperationMetadataExperimental < 3) { | 921 if (buildCounterOperationMetadataExperimental < 3) { |
899 unittest.expect(o.endTime, unittest.equals('foo')); | 922 unittest.expect(o.endTime, unittest.equals('foo')); |
900 unittest.expect(o.insertTime, unittest.equals('foo')); | 923 unittest.expect(o.insertTime, unittest.equals('foo')); |
901 unittest.expect(o.method, unittest.equals('foo')); | 924 unittest.expect(o.method, unittest.equals('foo')); |
902 unittest.expect(o.target, unittest.equals('foo')); | 925 unittest.expect(o.target, unittest.equals('foo')); |
903 unittest.expect(o.user, unittest.equals('foo')); | 926 unittest.expect(o.user, unittest.equals('foo')); |
904 } | 927 } |
905 buildCounterOperationMetadataExperimental--; | 928 buildCounterOperationMetadataExperimental--; |
906 } | 929 } |
907 | 930 |
| 931 buildUnnamed2960() { |
| 932 var o = new core.List<core.String>(); |
| 933 o.add("foo"); |
| 934 o.add("foo"); |
| 935 return o; |
| 936 } |
| 937 |
| 938 checkUnnamed2960(core.List<core.String> o) { |
| 939 unittest.expect(o, unittest.hasLength(2)); |
| 940 unittest.expect(o[0], unittest.equals('foo')); |
| 941 unittest.expect(o[1], unittest.equals('foo')); |
| 942 } |
| 943 |
908 core.int buildCounterOperationMetadataV1 = 0; | 944 core.int buildCounterOperationMetadataV1 = 0; |
909 buildOperationMetadataV1() { | 945 buildOperationMetadataV1() { |
910 var o = new api.OperationMetadataV1(); | 946 var o = new api.OperationMetadataV1(); |
911 buildCounterOperationMetadataV1++; | 947 buildCounterOperationMetadataV1++; |
912 if (buildCounterOperationMetadataV1 < 3) { | 948 if (buildCounterOperationMetadataV1 < 3) { |
913 o.endTime = "foo"; | 949 o.endTime = "foo"; |
| 950 o.ephemeralMessage = "foo"; |
914 o.insertTime = "foo"; | 951 o.insertTime = "foo"; |
915 o.method = "foo"; | 952 o.method = "foo"; |
916 o.target = "foo"; | 953 o.target = "foo"; |
917 o.user = "foo"; | 954 o.user = "foo"; |
| 955 o.warning = buildUnnamed2960(); |
918 } | 956 } |
919 buildCounterOperationMetadataV1--; | 957 buildCounterOperationMetadataV1--; |
920 return o; | 958 return o; |
921 } | 959 } |
922 | 960 |
923 checkOperationMetadataV1(api.OperationMetadataV1 o) { | 961 checkOperationMetadataV1(api.OperationMetadataV1 o) { |
924 buildCounterOperationMetadataV1++; | 962 buildCounterOperationMetadataV1++; |
925 if (buildCounterOperationMetadataV1 < 3) { | 963 if (buildCounterOperationMetadataV1 < 3) { |
926 unittest.expect(o.endTime, unittest.equals('foo')); | 964 unittest.expect(o.endTime, unittest.equals('foo')); |
| 965 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
927 unittest.expect(o.insertTime, unittest.equals('foo')); | 966 unittest.expect(o.insertTime, unittest.equals('foo')); |
928 unittest.expect(o.method, unittest.equals('foo')); | 967 unittest.expect(o.method, unittest.equals('foo')); |
929 unittest.expect(o.target, unittest.equals('foo')); | 968 unittest.expect(o.target, unittest.equals('foo')); |
930 unittest.expect(o.user, unittest.equals('foo')); | 969 unittest.expect(o.user, unittest.equals('foo')); |
| 970 checkUnnamed2960(o.warning); |
931 } | 971 } |
932 buildCounterOperationMetadataV1--; | 972 buildCounterOperationMetadataV1--; |
933 } | 973 } |
934 | 974 |
935 core.int buildCounterOperationMetadataV1Beta5 = 0; | 975 core.int buildCounterOperationMetadataV1Beta5 = 0; |
936 buildOperationMetadataV1Beta5() { | 976 buildOperationMetadataV1Beta5() { |
937 var o = new api.OperationMetadataV1Beta5(); | 977 var o = new api.OperationMetadataV1Beta5(); |
938 buildCounterOperationMetadataV1Beta5++; | 978 buildCounterOperationMetadataV1Beta5++; |
939 if (buildCounterOperationMetadataV1Beta5 < 3) { | 979 if (buildCounterOperationMetadataV1Beta5 < 3) { |
940 o.endTime = "foo"; | 980 o.endTime = "foo"; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 | 1030 |
991 checkRequestUtilization(api.RequestUtilization o) { | 1031 checkRequestUtilization(api.RequestUtilization o) { |
992 buildCounterRequestUtilization++; | 1032 buildCounterRequestUtilization++; |
993 if (buildCounterRequestUtilization < 3) { | 1033 if (buildCounterRequestUtilization < 3) { |
994 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); | 1034 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); |
995 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42)); | 1035 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42)); |
996 } | 1036 } |
997 buildCounterRequestUtilization--; | 1037 buildCounterRequestUtilization--; |
998 } | 1038 } |
999 | 1039 |
| 1040 buildUnnamed2961() { |
| 1041 var o = new core.List<api.Volume>(); |
| 1042 o.add(buildVolume()); |
| 1043 o.add(buildVolume()); |
| 1044 return o; |
| 1045 } |
| 1046 |
| 1047 checkUnnamed2961(core.List<api.Volume> o) { |
| 1048 unittest.expect(o, unittest.hasLength(2)); |
| 1049 checkVolume(o[0]); |
| 1050 checkVolume(o[1]); |
| 1051 } |
| 1052 |
1000 core.int buildCounterResources = 0; | 1053 core.int buildCounterResources = 0; |
1001 buildResources() { | 1054 buildResources() { |
1002 var o = new api.Resources(); | 1055 var o = new api.Resources(); |
1003 buildCounterResources++; | 1056 buildCounterResources++; |
1004 if (buildCounterResources < 3) { | 1057 if (buildCounterResources < 3) { |
1005 o.cpu = 42.0; | 1058 o.cpu = 42.0; |
1006 o.diskGb = 42.0; | 1059 o.diskGb = 42.0; |
1007 o.memoryGb = 42.0; | 1060 o.memoryGb = 42.0; |
| 1061 o.volumes = buildUnnamed2961(); |
1008 } | 1062 } |
1009 buildCounterResources--; | 1063 buildCounterResources--; |
1010 return o; | 1064 return o; |
1011 } | 1065 } |
1012 | 1066 |
1013 checkResources(api.Resources o) { | 1067 checkResources(api.Resources o) { |
1014 buildCounterResources++; | 1068 buildCounterResources++; |
1015 if (buildCounterResources < 3) { | 1069 if (buildCounterResources < 3) { |
1016 unittest.expect(o.cpu, unittest.equals(42.0)); | 1070 unittest.expect(o.cpu, unittest.equals(42.0)); |
1017 unittest.expect(o.diskGb, unittest.equals(42.0)); | 1071 unittest.expect(o.diskGb, unittest.equals(42.0)); |
1018 unittest.expect(o.memoryGb, unittest.equals(42.0)); | 1072 unittest.expect(o.memoryGb, unittest.equals(42.0)); |
| 1073 checkUnnamed2961(o.volumes); |
1019 } | 1074 } |
1020 buildCounterResources--; | 1075 buildCounterResources--; |
1021 } | 1076 } |
1022 | 1077 |
1023 core.int buildCounterScriptHandler = 0; | 1078 core.int buildCounterScriptHandler = 0; |
1024 buildScriptHandler() { | 1079 buildScriptHandler() { |
1025 var o = new api.ScriptHandler(); | 1080 var o = new api.ScriptHandler(); |
1026 buildCounterScriptHandler++; | 1081 buildCounterScriptHandler++; |
1027 if (buildCounterScriptHandler < 3) { | 1082 if (buildCounterScriptHandler < 3) { |
1028 o.scriptPath = "foo"; | 1083 o.scriptPath = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1055 checkService(api.Service o) { | 1110 checkService(api.Service o) { |
1056 buildCounterService++; | 1111 buildCounterService++; |
1057 if (buildCounterService < 3) { | 1112 if (buildCounterService < 3) { |
1058 unittest.expect(o.id, unittest.equals('foo')); | 1113 unittest.expect(o.id, unittest.equals('foo')); |
1059 unittest.expect(o.name, unittest.equals('foo')); | 1114 unittest.expect(o.name, unittest.equals('foo')); |
1060 checkTrafficSplit(o.split); | 1115 checkTrafficSplit(o.split); |
1061 } | 1116 } |
1062 buildCounterService--; | 1117 buildCounterService--; |
1063 } | 1118 } |
1064 | 1119 |
1065 buildUnnamed3172() { | 1120 buildUnnamed2962() { |
1066 var o = new core.Map<core.String, core.String>(); | 1121 var o = new core.Map<core.String, core.String>(); |
1067 o["x"] = "foo"; | 1122 o["x"] = "foo"; |
1068 o["y"] = "foo"; | 1123 o["y"] = "foo"; |
1069 return o; | 1124 return o; |
1070 } | 1125 } |
1071 | 1126 |
1072 checkUnnamed3172(core.Map<core.String, core.String> o) { | 1127 checkUnnamed2962(core.Map<core.String, core.String> o) { |
1073 unittest.expect(o, unittest.hasLength(2)); | 1128 unittest.expect(o, unittest.hasLength(2)); |
1074 unittest.expect(o["x"], unittest.equals('foo')); | 1129 unittest.expect(o["x"], unittest.equals('foo')); |
1075 unittest.expect(o["y"], unittest.equals('foo')); | 1130 unittest.expect(o["y"], unittest.equals('foo')); |
1076 } | 1131 } |
1077 | 1132 |
1078 core.int buildCounterStaticFilesHandler = 0; | 1133 core.int buildCounterStaticFilesHandler = 0; |
1079 buildStaticFilesHandler() { | 1134 buildStaticFilesHandler() { |
1080 var o = new api.StaticFilesHandler(); | 1135 var o = new api.StaticFilesHandler(); |
1081 buildCounterStaticFilesHandler++; | 1136 buildCounterStaticFilesHandler++; |
1082 if (buildCounterStaticFilesHandler < 3) { | 1137 if (buildCounterStaticFilesHandler < 3) { |
1083 o.applicationReadable = true; | 1138 o.applicationReadable = true; |
1084 o.expiration = "foo"; | 1139 o.expiration = "foo"; |
1085 o.httpHeaders = buildUnnamed3172(); | 1140 o.httpHeaders = buildUnnamed2962(); |
1086 o.mimeType = "foo"; | 1141 o.mimeType = "foo"; |
1087 o.path = "foo"; | 1142 o.path = "foo"; |
1088 o.requireMatchingFile = true; | 1143 o.requireMatchingFile = true; |
1089 o.uploadPathRegex = "foo"; | 1144 o.uploadPathRegex = "foo"; |
1090 } | 1145 } |
1091 buildCounterStaticFilesHandler--; | 1146 buildCounterStaticFilesHandler--; |
1092 return o; | 1147 return o; |
1093 } | 1148 } |
1094 | 1149 |
1095 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1150 checkStaticFilesHandler(api.StaticFilesHandler o) { |
1096 buildCounterStaticFilesHandler++; | 1151 buildCounterStaticFilesHandler++; |
1097 if (buildCounterStaticFilesHandler < 3) { | 1152 if (buildCounterStaticFilesHandler < 3) { |
1098 unittest.expect(o.applicationReadable, unittest.isTrue); | 1153 unittest.expect(o.applicationReadable, unittest.isTrue); |
1099 unittest.expect(o.expiration, unittest.equals('foo')); | 1154 unittest.expect(o.expiration, unittest.equals('foo')); |
1100 checkUnnamed3172(o.httpHeaders); | 1155 checkUnnamed2962(o.httpHeaders); |
1101 unittest.expect(o.mimeType, unittest.equals('foo')); | 1156 unittest.expect(o.mimeType, unittest.equals('foo')); |
1102 unittest.expect(o.path, unittest.equals('foo')); | 1157 unittest.expect(o.path, unittest.equals('foo')); |
1103 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1158 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1104 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1159 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
1105 } | 1160 } |
1106 buildCounterStaticFilesHandler--; | 1161 buildCounterStaticFilesHandler--; |
1107 } | 1162 } |
1108 | 1163 |
1109 buildUnnamed3173() { | 1164 buildUnnamed2963() { |
1110 var o = new core.Map<core.String, core.Object>(); | 1165 var o = new core.Map<core.String, core.Object>(); |
1111 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1166 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1112 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1167 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1113 return o; | 1168 return o; |
1114 } | 1169 } |
1115 | 1170 |
1116 checkUnnamed3173(core.Map<core.String, core.Object> o) { | 1171 checkUnnamed2963(core.Map<core.String, core.Object> o) { |
1117 unittest.expect(o, unittest.hasLength(2)); | 1172 unittest.expect(o, unittest.hasLength(2)); |
1118 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')); | 1173 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')); |
1119 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')); | 1174 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')); |
1120 } | 1175 } |
1121 | 1176 |
1122 buildUnnamed3174() { | 1177 buildUnnamed2964() { |
1123 var o = new core.List<core.Map<core.String, core.Object>>(); | 1178 var o = new core.List<core.Map<core.String, core.Object>>(); |
1124 o.add(buildUnnamed3173()); | 1179 o.add(buildUnnamed2963()); |
1125 o.add(buildUnnamed3173()); | 1180 o.add(buildUnnamed2963()); |
1126 return o; | 1181 return o; |
1127 } | 1182 } |
1128 | 1183 |
1129 checkUnnamed3174(core.List<core.Map<core.String, core.Object>> o) { | 1184 checkUnnamed2964(core.List<core.Map<core.String, core.Object>> o) { |
1130 unittest.expect(o, unittest.hasLength(2)); | 1185 unittest.expect(o, unittest.hasLength(2)); |
1131 checkUnnamed3173(o[0]); | 1186 checkUnnamed2963(o[0]); |
1132 checkUnnamed3173(o[1]); | 1187 checkUnnamed2963(o[1]); |
1133 } | 1188 } |
1134 | 1189 |
1135 core.int buildCounterStatus = 0; | 1190 core.int buildCounterStatus = 0; |
1136 buildStatus() { | 1191 buildStatus() { |
1137 var o = new api.Status(); | 1192 var o = new api.Status(); |
1138 buildCounterStatus++; | 1193 buildCounterStatus++; |
1139 if (buildCounterStatus < 3) { | 1194 if (buildCounterStatus < 3) { |
1140 o.code = 42; | 1195 o.code = 42; |
1141 o.details = buildUnnamed3174(); | 1196 o.details = buildUnnamed2964(); |
1142 o.message = "foo"; | 1197 o.message = "foo"; |
1143 } | 1198 } |
1144 buildCounterStatus--; | 1199 buildCounterStatus--; |
1145 return o; | 1200 return o; |
1146 } | 1201 } |
1147 | 1202 |
1148 checkStatus(api.Status o) { | 1203 checkStatus(api.Status o) { |
1149 buildCounterStatus++; | 1204 buildCounterStatus++; |
1150 if (buildCounterStatus < 3) { | 1205 if (buildCounterStatus < 3) { |
1151 unittest.expect(o.code, unittest.equals(42)); | 1206 unittest.expect(o.code, unittest.equals(42)); |
1152 checkUnnamed3174(o.details); | 1207 checkUnnamed2964(o.details); |
1153 unittest.expect(o.message, unittest.equals('foo')); | 1208 unittest.expect(o.message, unittest.equals('foo')); |
1154 } | 1209 } |
1155 buildCounterStatus--; | 1210 buildCounterStatus--; |
1156 } | 1211 } |
1157 | 1212 |
1158 buildUnnamed3175() { | 1213 buildUnnamed2965() { |
1159 var o = new core.Map<core.String, core.double>(); | 1214 var o = new core.Map<core.String, core.double>(); |
1160 o["x"] = 42.0; | 1215 o["x"] = 42.0; |
1161 o["y"] = 42.0; | 1216 o["y"] = 42.0; |
1162 return o; | 1217 return o; |
1163 } | 1218 } |
1164 | 1219 |
1165 checkUnnamed3175(core.Map<core.String, core.double> o) { | 1220 checkUnnamed2965(core.Map<core.String, core.double> o) { |
1166 unittest.expect(o, unittest.hasLength(2)); | 1221 unittest.expect(o, unittest.hasLength(2)); |
1167 unittest.expect(o["x"], unittest.equals(42.0)); | 1222 unittest.expect(o["x"], unittest.equals(42.0)); |
1168 unittest.expect(o["y"], unittest.equals(42.0)); | 1223 unittest.expect(o["y"], unittest.equals(42.0)); |
1169 } | 1224 } |
1170 | 1225 |
1171 core.int buildCounterTrafficSplit = 0; | 1226 core.int buildCounterTrafficSplit = 0; |
1172 buildTrafficSplit() { | 1227 buildTrafficSplit() { |
1173 var o = new api.TrafficSplit(); | 1228 var o = new api.TrafficSplit(); |
1174 buildCounterTrafficSplit++; | 1229 buildCounterTrafficSplit++; |
1175 if (buildCounterTrafficSplit < 3) { | 1230 if (buildCounterTrafficSplit < 3) { |
1176 o.allocations = buildUnnamed3175(); | 1231 o.allocations = buildUnnamed2965(); |
1177 o.shardBy = "foo"; | 1232 o.shardBy = "foo"; |
1178 } | 1233 } |
1179 buildCounterTrafficSplit--; | 1234 buildCounterTrafficSplit--; |
1180 return o; | 1235 return o; |
1181 } | 1236 } |
1182 | 1237 |
1183 checkTrafficSplit(api.TrafficSplit o) { | 1238 checkTrafficSplit(api.TrafficSplit o) { |
1184 buildCounterTrafficSplit++; | 1239 buildCounterTrafficSplit++; |
1185 if (buildCounterTrafficSplit < 3) { | 1240 if (buildCounterTrafficSplit < 3) { |
1186 checkUnnamed3175(o.allocations); | 1241 checkUnnamed2965(o.allocations); |
1187 unittest.expect(o.shardBy, unittest.equals('foo')); | 1242 unittest.expect(o.shardBy, unittest.equals('foo')); |
1188 } | 1243 } |
1189 buildCounterTrafficSplit--; | 1244 buildCounterTrafficSplit--; |
1190 } | 1245 } |
1191 | 1246 |
1192 core.int buildCounterUrlDispatchRule = 0; | 1247 core.int buildCounterUrlDispatchRule = 0; |
1193 buildUrlDispatchRule() { | 1248 buildUrlDispatchRule() { |
1194 var o = new api.UrlDispatchRule(); | 1249 var o = new api.UrlDispatchRule(); |
1195 buildCounterUrlDispatchRule++; | 1250 buildCounterUrlDispatchRule++; |
1196 if (buildCounterUrlDispatchRule < 3) { | 1251 if (buildCounterUrlDispatchRule < 3) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 unittest.expect(o.login, unittest.equals('foo')); | 1293 unittest.expect(o.login, unittest.equals('foo')); |
1239 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1294 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
1240 checkScriptHandler(o.script); | 1295 checkScriptHandler(o.script); |
1241 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1296 unittest.expect(o.securityLevel, unittest.equals('foo')); |
1242 checkStaticFilesHandler(o.staticFiles); | 1297 checkStaticFilesHandler(o.staticFiles); |
1243 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1298 unittest.expect(o.urlRegex, unittest.equals('foo')); |
1244 } | 1299 } |
1245 buildCounterUrlMap--; | 1300 buildCounterUrlMap--; |
1246 } | 1301 } |
1247 | 1302 |
1248 buildUnnamed3176() { | 1303 buildUnnamed2966() { |
1249 var o = new core.Map<core.String, core.String>(); | 1304 var o = new core.Map<core.String, core.String>(); |
1250 o["x"] = "foo"; | 1305 o["x"] = "foo"; |
1251 o["y"] = "foo"; | 1306 o["y"] = "foo"; |
1252 return o; | 1307 return o; |
1253 } | 1308 } |
1254 | 1309 |
1255 checkUnnamed3176(core.Map<core.String, core.String> o) { | 1310 checkUnnamed2966(core.Map<core.String, core.String> o) { |
1256 unittest.expect(o, unittest.hasLength(2)); | 1311 unittest.expect(o, unittest.hasLength(2)); |
1257 unittest.expect(o["x"], unittest.equals('foo')); | 1312 unittest.expect(o["x"], unittest.equals('foo')); |
1258 unittest.expect(o["y"], unittest.equals('foo')); | 1313 unittest.expect(o["y"], unittest.equals('foo')); |
1259 } | 1314 } |
1260 | 1315 |
1261 buildUnnamed3177() { | 1316 buildUnnamed2967() { |
1262 var o = new core.Map<core.String, core.String>(); | 1317 var o = new core.Map<core.String, core.String>(); |
1263 o["x"] = "foo"; | 1318 o["x"] = "foo"; |
1264 o["y"] = "foo"; | 1319 o["y"] = "foo"; |
1265 return o; | 1320 return o; |
1266 } | 1321 } |
1267 | 1322 |
1268 checkUnnamed3177(core.Map<core.String, core.String> o) { | 1323 checkUnnamed2967(core.Map<core.String, core.String> o) { |
1269 unittest.expect(o, unittest.hasLength(2)); | 1324 unittest.expect(o, unittest.hasLength(2)); |
1270 unittest.expect(o["x"], unittest.equals('foo')); | 1325 unittest.expect(o["x"], unittest.equals('foo')); |
1271 unittest.expect(o["y"], unittest.equals('foo')); | 1326 unittest.expect(o["y"], unittest.equals('foo')); |
1272 } | 1327 } |
1273 | 1328 |
1274 buildUnnamed3178() { | 1329 buildUnnamed2968() { |
1275 var o = new core.List<api.ErrorHandler>(); | 1330 var o = new core.List<api.ErrorHandler>(); |
1276 o.add(buildErrorHandler()); | 1331 o.add(buildErrorHandler()); |
1277 o.add(buildErrorHandler()); | 1332 o.add(buildErrorHandler()); |
1278 return o; | 1333 return o; |
1279 } | 1334 } |
1280 | 1335 |
1281 checkUnnamed3178(core.List<api.ErrorHandler> o) { | 1336 checkUnnamed2968(core.List<api.ErrorHandler> o) { |
1282 unittest.expect(o, unittest.hasLength(2)); | 1337 unittest.expect(o, unittest.hasLength(2)); |
1283 checkErrorHandler(o[0]); | 1338 checkErrorHandler(o[0]); |
1284 checkErrorHandler(o[1]); | 1339 checkErrorHandler(o[1]); |
1285 } | 1340 } |
1286 | 1341 |
1287 buildUnnamed3179() { | 1342 buildUnnamed2969() { |
1288 var o = new core.List<api.UrlMap>(); | 1343 var o = new core.List<api.UrlMap>(); |
1289 o.add(buildUrlMap()); | 1344 o.add(buildUrlMap()); |
1290 o.add(buildUrlMap()); | 1345 o.add(buildUrlMap()); |
1291 return o; | 1346 return o; |
1292 } | 1347 } |
1293 | 1348 |
1294 checkUnnamed3179(core.List<api.UrlMap> o) { | 1349 checkUnnamed2969(core.List<api.UrlMap> o) { |
1295 unittest.expect(o, unittest.hasLength(2)); | 1350 unittest.expect(o, unittest.hasLength(2)); |
1296 checkUrlMap(o[0]); | 1351 checkUrlMap(o[0]); |
1297 checkUrlMap(o[1]); | 1352 checkUrlMap(o[1]); |
1298 } | 1353 } |
1299 | 1354 |
1300 buildUnnamed3180() { | 1355 buildUnnamed2970() { |
1301 var o = new core.List<core.String>(); | 1356 var o = new core.List<core.String>(); |
1302 o.add("foo"); | 1357 o.add("foo"); |
1303 o.add("foo"); | 1358 o.add("foo"); |
1304 return o; | 1359 return o; |
1305 } | 1360 } |
1306 | 1361 |
1307 checkUnnamed3180(core.List<core.String> o) { | 1362 checkUnnamed2970(core.List<core.String> o) { |
1308 unittest.expect(o, unittest.hasLength(2)); | 1363 unittest.expect(o, unittest.hasLength(2)); |
1309 unittest.expect(o[0], unittest.equals('foo')); | 1364 unittest.expect(o[0], unittest.equals('foo')); |
1310 unittest.expect(o[1], unittest.equals('foo')); | 1365 unittest.expect(o[1], unittest.equals('foo')); |
1311 } | 1366 } |
1312 | 1367 |
1313 buildUnnamed3181() { | 1368 buildUnnamed2971() { |
1314 var o = new core.List<api.Library>(); | 1369 var o = new core.List<api.Library>(); |
1315 o.add(buildLibrary()); | 1370 o.add(buildLibrary()); |
1316 o.add(buildLibrary()); | 1371 o.add(buildLibrary()); |
1317 return o; | 1372 return o; |
1318 } | 1373 } |
1319 | 1374 |
1320 checkUnnamed3181(core.List<api.Library> o) { | 1375 checkUnnamed2971(core.List<api.Library> o) { |
1321 unittest.expect(o, unittest.hasLength(2)); | 1376 unittest.expect(o, unittest.hasLength(2)); |
1322 checkLibrary(o[0]); | 1377 checkLibrary(o[0]); |
1323 checkLibrary(o[1]); | 1378 checkLibrary(o[1]); |
1324 } | 1379 } |
1325 | 1380 |
1326 core.int buildCounterVersion = 0; | 1381 core.int buildCounterVersion = 0; |
1327 buildVersion() { | 1382 buildVersion() { |
1328 var o = new api.Version(); | 1383 var o = new api.Version(); |
1329 buildCounterVersion++; | 1384 buildCounterVersion++; |
1330 if (buildCounterVersion < 3) { | 1385 if (buildCounterVersion < 3) { |
1331 o.apiConfig = buildApiConfigHandler(); | 1386 o.apiConfig = buildApiConfigHandler(); |
1332 o.automaticScaling = buildAutomaticScaling(); | 1387 o.automaticScaling = buildAutomaticScaling(); |
1333 o.basicScaling = buildBasicScaling(); | 1388 o.basicScaling = buildBasicScaling(); |
1334 o.betaSettings = buildUnnamed3176(); | 1389 o.betaSettings = buildUnnamed2966(); |
1335 o.createTime = "foo"; | 1390 o.createTime = "foo"; |
1336 o.createdBy = "foo"; | 1391 o.createdBy = "foo"; |
1337 o.defaultExpiration = "foo"; | 1392 o.defaultExpiration = "foo"; |
1338 o.deployment = buildDeployment(); | 1393 o.deployment = buildDeployment(); |
1339 o.diskUsageBytes = "foo"; | 1394 o.diskUsageBytes = "foo"; |
| 1395 o.endpointsApiService = buildEndpointsApiService(); |
1340 o.env = "foo"; | 1396 o.env = "foo"; |
1341 o.envVariables = buildUnnamed3177(); | 1397 o.envVariables = buildUnnamed2967(); |
1342 o.errorHandlers = buildUnnamed3178(); | 1398 o.errorHandlers = buildUnnamed2968(); |
1343 o.handlers = buildUnnamed3179(); | 1399 o.handlers = buildUnnamed2969(); |
1344 o.healthCheck = buildHealthCheck(); | 1400 o.healthCheck = buildHealthCheck(); |
1345 o.id = "foo"; | 1401 o.id = "foo"; |
1346 o.inboundServices = buildUnnamed3180(); | 1402 o.inboundServices = buildUnnamed2970(); |
1347 o.instanceClass = "foo"; | 1403 o.instanceClass = "foo"; |
1348 o.libraries = buildUnnamed3181(); | 1404 o.libraries = buildUnnamed2971(); |
1349 o.manualScaling = buildManualScaling(); | 1405 o.manualScaling = buildManualScaling(); |
1350 o.name = "foo"; | 1406 o.name = "foo"; |
1351 o.network = buildNetwork(); | 1407 o.network = buildNetwork(); |
1352 o.nobuildFilesRegex = "foo"; | 1408 o.nobuildFilesRegex = "foo"; |
1353 o.resources = buildResources(); | 1409 o.resources = buildResources(); |
1354 o.runtime = "foo"; | 1410 o.runtime = "foo"; |
1355 o.servingStatus = "foo"; | 1411 o.servingStatus = "foo"; |
1356 o.threadsafe = true; | 1412 o.threadsafe = true; |
1357 o.versionUrl = "foo"; | 1413 o.versionUrl = "foo"; |
1358 o.vm = true; | 1414 o.vm = true; |
1359 } | 1415 } |
1360 buildCounterVersion--; | 1416 buildCounterVersion--; |
1361 return o; | 1417 return o; |
1362 } | 1418 } |
1363 | 1419 |
1364 checkVersion(api.Version o) { | 1420 checkVersion(api.Version o) { |
1365 buildCounterVersion++; | 1421 buildCounterVersion++; |
1366 if (buildCounterVersion < 3) { | 1422 if (buildCounterVersion < 3) { |
1367 checkApiConfigHandler(o.apiConfig); | 1423 checkApiConfigHandler(o.apiConfig); |
1368 checkAutomaticScaling(o.automaticScaling); | 1424 checkAutomaticScaling(o.automaticScaling); |
1369 checkBasicScaling(o.basicScaling); | 1425 checkBasicScaling(o.basicScaling); |
1370 checkUnnamed3176(o.betaSettings); | 1426 checkUnnamed2966(o.betaSettings); |
1371 unittest.expect(o.createTime, unittest.equals('foo')); | 1427 unittest.expect(o.createTime, unittest.equals('foo')); |
1372 unittest.expect(o.createdBy, unittest.equals('foo')); | 1428 unittest.expect(o.createdBy, unittest.equals('foo')); |
1373 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1429 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
1374 checkDeployment(o.deployment); | 1430 checkDeployment(o.deployment); |
1375 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); | 1431 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); |
| 1432 checkEndpointsApiService(o.endpointsApiService); |
1376 unittest.expect(o.env, unittest.equals('foo')); | 1433 unittest.expect(o.env, unittest.equals('foo')); |
1377 checkUnnamed3177(o.envVariables); | 1434 checkUnnamed2967(o.envVariables); |
1378 checkUnnamed3178(o.errorHandlers); | 1435 checkUnnamed2968(o.errorHandlers); |
1379 checkUnnamed3179(o.handlers); | 1436 checkUnnamed2969(o.handlers); |
1380 checkHealthCheck(o.healthCheck); | 1437 checkHealthCheck(o.healthCheck); |
1381 unittest.expect(o.id, unittest.equals('foo')); | 1438 unittest.expect(o.id, unittest.equals('foo')); |
1382 checkUnnamed3180(o.inboundServices); | 1439 checkUnnamed2970(o.inboundServices); |
1383 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1440 unittest.expect(o.instanceClass, unittest.equals('foo')); |
1384 checkUnnamed3181(o.libraries); | 1441 checkUnnamed2971(o.libraries); |
1385 checkManualScaling(o.manualScaling); | 1442 checkManualScaling(o.manualScaling); |
1386 unittest.expect(o.name, unittest.equals('foo')); | 1443 unittest.expect(o.name, unittest.equals('foo')); |
1387 checkNetwork(o.network); | 1444 checkNetwork(o.network); |
1388 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1445 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
1389 checkResources(o.resources); | 1446 checkResources(o.resources); |
1390 unittest.expect(o.runtime, unittest.equals('foo')); | 1447 unittest.expect(o.runtime, unittest.equals('foo')); |
1391 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1448 unittest.expect(o.servingStatus, unittest.equals('foo')); |
1392 unittest.expect(o.threadsafe, unittest.isTrue); | 1449 unittest.expect(o.threadsafe, unittest.isTrue); |
1393 unittest.expect(o.versionUrl, unittest.equals('foo')); | 1450 unittest.expect(o.versionUrl, unittest.equals('foo')); |
1394 unittest.expect(o.vm, unittest.isTrue); | 1451 unittest.expect(o.vm, unittest.isTrue); |
1395 } | 1452 } |
1396 buildCounterVersion--; | 1453 buildCounterVersion--; |
1397 } | 1454 } |
1398 | 1455 |
| 1456 core.int buildCounterVolume = 0; |
| 1457 buildVolume() { |
| 1458 var o = new api.Volume(); |
| 1459 buildCounterVolume++; |
| 1460 if (buildCounterVolume < 3) { |
| 1461 o.name = "foo"; |
| 1462 o.sizeGb = 42.0; |
| 1463 o.volumeType = "foo"; |
| 1464 } |
| 1465 buildCounterVolume--; |
| 1466 return o; |
| 1467 } |
| 1468 |
| 1469 checkVolume(api.Volume o) { |
| 1470 buildCounterVolume++; |
| 1471 if (buildCounterVolume < 3) { |
| 1472 unittest.expect(o.name, unittest.equals('foo')); |
| 1473 unittest.expect(o.sizeGb, unittest.equals(42.0)); |
| 1474 unittest.expect(o.volumeType, unittest.equals('foo')); |
| 1475 } |
| 1476 buildCounterVolume--; |
| 1477 } |
| 1478 |
1399 core.int buildCounterZipInfo = 0; | 1479 core.int buildCounterZipInfo = 0; |
1400 buildZipInfo() { | 1480 buildZipInfo() { |
1401 var o = new api.ZipInfo(); | 1481 var o = new api.ZipInfo(); |
1402 buildCounterZipInfo++; | 1482 buildCounterZipInfo++; |
1403 if (buildCounterZipInfo < 3) { | 1483 if (buildCounterZipInfo < 3) { |
1404 o.filesCount = 42; | 1484 o.filesCount = 42; |
1405 o.sourceUrl = "foo"; | 1485 o.sourceUrl = "foo"; |
1406 } | 1486 } |
1407 buildCounterZipInfo--; | 1487 buildCounterZipInfo--; |
1408 return o; | 1488 return o; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1502 | 1582 |
1503 unittest.group("obj-schema-DiskUtilization", () { | 1583 unittest.group("obj-schema-DiskUtilization", () { |
1504 unittest.test("to-json--from-json", () { | 1584 unittest.test("to-json--from-json", () { |
1505 var o = buildDiskUtilization(); | 1585 var o = buildDiskUtilization(); |
1506 var od = new api.DiskUtilization.fromJson(o.toJson()); | 1586 var od = new api.DiskUtilization.fromJson(o.toJson()); |
1507 checkDiskUtilization(od); | 1587 checkDiskUtilization(od); |
1508 }); | 1588 }); |
1509 }); | 1589 }); |
1510 | 1590 |
1511 | 1591 |
| 1592 unittest.group("obj-schema-EndpointsApiService", () { |
| 1593 unittest.test("to-json--from-json", () { |
| 1594 var o = buildEndpointsApiService(); |
| 1595 var od = new api.EndpointsApiService.fromJson(o.toJson()); |
| 1596 checkEndpointsApiService(od); |
| 1597 }); |
| 1598 }); |
| 1599 |
| 1600 |
1512 unittest.group("obj-schema-ErrorHandler", () { | 1601 unittest.group("obj-schema-ErrorHandler", () { |
1513 unittest.test("to-json--from-json", () { | 1602 unittest.test("to-json--from-json", () { |
1514 var o = buildErrorHandler(); | 1603 var o = buildErrorHandler(); |
1515 var od = new api.ErrorHandler.fromJson(o.toJson()); | 1604 var od = new api.ErrorHandler.fromJson(o.toJson()); |
1516 checkErrorHandler(od); | 1605 checkErrorHandler(od); |
1517 }); | 1606 }); |
1518 }); | 1607 }); |
1519 | 1608 |
1520 | 1609 |
1521 unittest.group("obj-schema-FileInfo", () { | 1610 unittest.group("obj-schema-FileInfo", () { |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1781 | 1870 |
1782 unittest.group("obj-schema-Version", () { | 1871 unittest.group("obj-schema-Version", () { |
1783 unittest.test("to-json--from-json", () { | 1872 unittest.test("to-json--from-json", () { |
1784 var o = buildVersion(); | 1873 var o = buildVersion(); |
1785 var od = new api.Version.fromJson(o.toJson()); | 1874 var od = new api.Version.fromJson(o.toJson()); |
1786 checkVersion(od); | 1875 checkVersion(od); |
1787 }); | 1876 }); |
1788 }); | 1877 }); |
1789 | 1878 |
1790 | 1879 |
| 1880 unittest.group("obj-schema-Volume", () { |
| 1881 unittest.test("to-json--from-json", () { |
| 1882 var o = buildVolume(); |
| 1883 var od = new api.Volume.fromJson(o.toJson()); |
| 1884 checkVolume(od); |
| 1885 }); |
| 1886 }); |
| 1887 |
| 1888 |
1791 unittest.group("obj-schema-ZipInfo", () { | 1889 unittest.group("obj-schema-ZipInfo", () { |
1792 unittest.test("to-json--from-json", () { | 1890 unittest.test("to-json--from-json", () { |
1793 var o = buildZipInfo(); | 1891 var o = buildZipInfo(); |
1794 var od = new api.ZipInfo.fromJson(o.toJson()); | 1892 var od = new api.ZipInfo.fromJson(o.toJson()); |
1795 checkZipInfo(od); | 1893 checkZipInfo(od); |
1796 }); | 1894 }); |
1797 }); | 1895 }); |
1798 | 1896 |
1799 | 1897 |
1800 unittest.group("resource-AppsResourceApi", () { | 1898 unittest.group("resource-AppsResourceApi", () { |
(...skipping 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3085 return new async.Future.value(stringResponse(200, h, resp)); | 3183 return new async.Future.value(stringResponse(200, h, resp)); |
3086 }), true); | 3184 }), true); |
3087 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { | 3185 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { |
3088 checkListInstancesResponse(response); | 3186 checkListInstancesResponse(response); |
3089 }))); | 3187 }))); |
3090 }); | 3188 }); |
3091 | 3189 |
3092 }); | 3190 }); |
3093 | 3191 |
3094 | 3192 |
3095 unittest.group("resource-ExperimentalAppsOperationsResourceApi", () { | |
3096 unittest.test("method--get", () { | |
3097 | |
3098 var mock = new HttpServerMock(); | |
3099 api.ExperimentalAppsOperationsResourceApi res = new api.AppengineApi(mock)
.experimental.apps.operations; | |
3100 var arg_appsId = "foo"; | |
3101 var arg_operationsId = "foo"; | |
3102 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
3103 var path = (req.url).path; | |
3104 var pathOffset = 0; | |
3105 var index; | |
3106 var subPart; | |
3107 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
3108 pathOffset += 1; | |
3109 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("experimental/apps/")); | |
3110 pathOffset += 18; | |
3111 index = path.indexOf("/operations/", pathOffset); | |
3112 unittest.expect(index >= 0, unittest.isTrue); | |
3113 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
3114 pathOffset = index; | |
3115 unittest.expect(subPart, unittest.equals("$arg_appsId")); | |
3116 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/operations/")); | |
3117 pathOffset += 12; | |
3118 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
3119 pathOffset = path.length; | |
3120 unittest.expect(subPart, unittest.equals("$arg_operationsId")); | |
3121 | |
3122 var query = (req.url).query; | |
3123 var queryOffset = 0; | |
3124 var queryMap = {}; | |
3125 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
3126 parseBool(n) { | |
3127 if (n == "true") return true; | |
3128 if (n == "false") return false; | |
3129 if (n == null) return null; | |
3130 throw new core.ArgumentError("Invalid boolean: $n"); | |
3131 } | |
3132 if (query.length > 0) { | |
3133 for (var part in query.split("&")) { | |
3134 var keyvalue = part.split("="); | |
3135 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
3136 } | |
3137 } | |
3138 | |
3139 | |
3140 var h = { | |
3141 "content-type" : "application/json; charset=utf-8", | |
3142 }; | |
3143 var resp = convert.JSON.encode(buildOperation()); | |
3144 return new async.Future.value(stringResponse(200, h, resp)); | |
3145 }), true); | |
3146 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Oper
ation response) { | |
3147 checkOperation(response); | |
3148 }))); | |
3149 }); | |
3150 | |
3151 unittest.test("method--list", () { | |
3152 | |
3153 var mock = new HttpServerMock(); | |
3154 api.ExperimentalAppsOperationsResourceApi res = new api.AppengineApi(mock)
.experimental.apps.operations; | |
3155 var arg_appsId = "foo"; | |
3156 var arg_filter = "foo"; | |
3157 var arg_pageSize = 42; | |
3158 var arg_pageToken = "foo"; | |
3159 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
3160 var path = (req.url).path; | |
3161 var pathOffset = 0; | |
3162 var index; | |
3163 var subPart; | |
3164 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
3165 pathOffset += 1; | |
3166 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("experimental/apps/")); | |
3167 pathOffset += 18; | |
3168 index = path.indexOf("/operations", pathOffset); | |
3169 unittest.expect(index >= 0, unittest.isTrue); | |
3170 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
3171 pathOffset = index; | |
3172 unittest.expect(subPart, unittest.equals("$arg_appsId")); | |
3173 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/operations")); | |
3174 pathOffset += 11; | |
3175 | |
3176 var query = (req.url).query; | |
3177 var queryOffset = 0; | |
3178 var queryMap = {}; | |
3179 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
3180 parseBool(n) { | |
3181 if (n == "true") return true; | |
3182 if (n == "false") return false; | |
3183 if (n == null) return null; | |
3184 throw new core.ArgumentError("Invalid boolean: $n"); | |
3185 } | |
3186 if (query.length > 0) { | |
3187 for (var part in query.split("&")) { | |
3188 var keyvalue = part.split("="); | |
3189 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
3190 } | |
3191 } | |
3192 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
3193 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
3194 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
3195 | |
3196 | |
3197 var h = { | |
3198 "content-type" : "application/json; charset=utf-8", | |
3199 }; | |
3200 var resp = convert.JSON.encode(buildListOperationsResponse()); | |
3201 return new async.Future.value(stringResponse(200, h, resp)); | |
3202 }), true); | |
3203 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { | |
3204 checkListOperationsResponse(response); | |
3205 }))); | |
3206 }); | |
3207 | |
3208 }); | |
3209 | |
3210 | |
3211 } | 3193 } |
3212 | 3194 |
OLD | NEW |