OLD | NEW |
1 library googleapis_beta.appengine.v1beta.test; | 1 library googleapis_beta.appengine.v1beta.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 buildUnnamed3519() { | 100 buildUnnamed3617() { |
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 checkUnnamed3519(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed3617(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 = buildUnnamed3519(); | 123 o.dispatchRules = buildUnnamed3617(); |
| 124 o.gcrDomain = "foo"; |
124 o.iap = buildIdentityAwareProxy(); | 125 o.iap = buildIdentityAwareProxy(); |
125 o.id = "foo"; | 126 o.id = "foo"; |
126 o.locationId = "foo"; | 127 o.locationId = "foo"; |
127 o.name = "foo"; | 128 o.name = "foo"; |
| 129 o.servingStatus = "foo"; |
128 } | 130 } |
129 buildCounterApplication--; | 131 buildCounterApplication--; |
130 return o; | 132 return o; |
131 } | 133 } |
132 | 134 |
133 checkApplication(api.Application o) { | 135 checkApplication(api.Application o) { |
134 buildCounterApplication++; | 136 buildCounterApplication++; |
135 if (buildCounterApplication < 3) { | 137 if (buildCounterApplication < 3) { |
136 unittest.expect(o.authDomain, unittest.equals('foo')); | 138 unittest.expect(o.authDomain, unittest.equals('foo')); |
137 unittest.expect(o.codeBucket, unittest.equals('foo')); | 139 unittest.expect(o.codeBucket, unittest.equals('foo')); |
138 unittest.expect(o.defaultBucket, unittest.equals('foo')); | 140 unittest.expect(o.defaultBucket, unittest.equals('foo')); |
139 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); | 141 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); |
140 unittest.expect(o.defaultHostname, unittest.equals('foo')); | 142 unittest.expect(o.defaultHostname, unittest.equals('foo')); |
141 checkUnnamed3519(o.dispatchRules); | 143 checkUnnamed3617(o.dispatchRules); |
| 144 unittest.expect(o.gcrDomain, unittest.equals('foo')); |
142 checkIdentityAwareProxy(o.iap); | 145 checkIdentityAwareProxy(o.iap); |
143 unittest.expect(o.id, unittest.equals('foo')); | 146 unittest.expect(o.id, unittest.equals('foo')); |
144 unittest.expect(o.locationId, unittest.equals('foo')); | 147 unittest.expect(o.locationId, unittest.equals('foo')); |
145 unittest.expect(o.name, unittest.equals('foo')); | 148 unittest.expect(o.name, unittest.equals('foo')); |
| 149 unittest.expect(o.servingStatus, unittest.equals('foo')); |
146 } | 150 } |
147 buildCounterApplication--; | 151 buildCounterApplication--; |
148 } | 152 } |
149 | 153 |
| 154 buildUnnamed3618() { |
| 155 var o = new core.List<core.String>(); |
| 156 o.add("foo"); |
| 157 o.add("foo"); |
| 158 return o; |
| 159 } |
| 160 |
| 161 checkUnnamed3618(core.List<core.String> o) { |
| 162 unittest.expect(o, unittest.hasLength(2)); |
| 163 unittest.expect(o[0], unittest.equals('foo')); |
| 164 unittest.expect(o[1], unittest.equals('foo')); |
| 165 } |
| 166 |
| 167 buildUnnamed3619() { |
| 168 var o = new core.List<core.String>(); |
| 169 o.add("foo"); |
| 170 o.add("foo"); |
| 171 return o; |
| 172 } |
| 173 |
| 174 checkUnnamed3619(core.List<core.String> o) { |
| 175 unittest.expect(o, unittest.hasLength(2)); |
| 176 unittest.expect(o[0], unittest.equals('foo')); |
| 177 unittest.expect(o[1], unittest.equals('foo')); |
| 178 } |
| 179 |
| 180 core.int buildCounterAuthorizedCertificate = 0; |
| 181 buildAuthorizedCertificate() { |
| 182 var o = new api.AuthorizedCertificate(); |
| 183 buildCounterAuthorizedCertificate++; |
| 184 if (buildCounterAuthorizedCertificate < 3) { |
| 185 o.certificateRawData = buildCertificateRawData(); |
| 186 o.displayName = "foo"; |
| 187 o.domainMappingsCount = 42; |
| 188 o.domainNames = buildUnnamed3618(); |
| 189 o.expireTime = "foo"; |
| 190 o.id = "foo"; |
| 191 o.name = "foo"; |
| 192 o.visibleDomainMappings = buildUnnamed3619(); |
| 193 } |
| 194 buildCounterAuthorizedCertificate--; |
| 195 return o; |
| 196 } |
| 197 |
| 198 checkAuthorizedCertificate(api.AuthorizedCertificate o) { |
| 199 buildCounterAuthorizedCertificate++; |
| 200 if (buildCounterAuthorizedCertificate < 3) { |
| 201 checkCertificateRawData(o.certificateRawData); |
| 202 unittest.expect(o.displayName, unittest.equals('foo')); |
| 203 unittest.expect(o.domainMappingsCount, unittest.equals(42)); |
| 204 checkUnnamed3618(o.domainNames); |
| 205 unittest.expect(o.expireTime, unittest.equals('foo')); |
| 206 unittest.expect(o.id, unittest.equals('foo')); |
| 207 unittest.expect(o.name, unittest.equals('foo')); |
| 208 checkUnnamed3619(o.visibleDomainMappings); |
| 209 } |
| 210 buildCounterAuthorizedCertificate--; |
| 211 } |
| 212 |
| 213 core.int buildCounterAuthorizedDomain = 0; |
| 214 buildAuthorizedDomain() { |
| 215 var o = new api.AuthorizedDomain(); |
| 216 buildCounterAuthorizedDomain++; |
| 217 if (buildCounterAuthorizedDomain < 3) { |
| 218 o.id = "foo"; |
| 219 o.name = "foo"; |
| 220 } |
| 221 buildCounterAuthorizedDomain--; |
| 222 return o; |
| 223 } |
| 224 |
| 225 checkAuthorizedDomain(api.AuthorizedDomain o) { |
| 226 buildCounterAuthorizedDomain++; |
| 227 if (buildCounterAuthorizedDomain < 3) { |
| 228 unittest.expect(o.id, unittest.equals('foo')); |
| 229 unittest.expect(o.name, unittest.equals('foo')); |
| 230 } |
| 231 buildCounterAuthorizedDomain--; |
| 232 } |
| 233 |
150 core.int buildCounterAutomaticScaling = 0; | 234 core.int buildCounterAutomaticScaling = 0; |
151 buildAutomaticScaling() { | 235 buildAutomaticScaling() { |
152 var o = new api.AutomaticScaling(); | 236 var o = new api.AutomaticScaling(); |
153 buildCounterAutomaticScaling++; | 237 buildCounterAutomaticScaling++; |
154 if (buildCounterAutomaticScaling < 3) { | 238 if (buildCounterAutomaticScaling < 3) { |
155 o.coolDownPeriod = "foo"; | 239 o.coolDownPeriod = "foo"; |
156 o.cpuUtilization = buildCpuUtilization(); | 240 o.cpuUtilization = buildCpuUtilization(); |
157 o.diskUtilization = buildDiskUtilization(); | 241 o.diskUtilization = buildDiskUtilization(); |
158 o.maxConcurrentRequests = 42; | 242 o.maxConcurrentRequests = 42; |
159 o.maxIdleInstances = 42; | 243 o.maxIdleInstances = 42; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 | 286 |
203 checkBasicScaling(api.BasicScaling o) { | 287 checkBasicScaling(api.BasicScaling o) { |
204 buildCounterBasicScaling++; | 288 buildCounterBasicScaling++; |
205 if (buildCounterBasicScaling < 3) { | 289 if (buildCounterBasicScaling < 3) { |
206 unittest.expect(o.idleTimeout, unittest.equals('foo')); | 290 unittest.expect(o.idleTimeout, unittest.equals('foo')); |
207 unittest.expect(o.maxInstances, unittest.equals(42)); | 291 unittest.expect(o.maxInstances, unittest.equals(42)); |
208 } | 292 } |
209 buildCounterBasicScaling--; | 293 buildCounterBasicScaling--; |
210 } | 294 } |
211 | 295 |
| 296 core.int buildCounterCertificateRawData = 0; |
| 297 buildCertificateRawData() { |
| 298 var o = new api.CertificateRawData(); |
| 299 buildCounterCertificateRawData++; |
| 300 if (buildCounterCertificateRawData < 3) { |
| 301 o.privateKey = "foo"; |
| 302 o.publicCertificate = "foo"; |
| 303 } |
| 304 buildCounterCertificateRawData--; |
| 305 return o; |
| 306 } |
| 307 |
| 308 checkCertificateRawData(api.CertificateRawData o) { |
| 309 buildCounterCertificateRawData++; |
| 310 if (buildCounterCertificateRawData < 3) { |
| 311 unittest.expect(o.privateKey, unittest.equals('foo')); |
| 312 unittest.expect(o.publicCertificate, unittest.equals('foo')); |
| 313 } |
| 314 buildCounterCertificateRawData--; |
| 315 } |
| 316 |
212 core.int buildCounterContainerInfo = 0; | 317 core.int buildCounterContainerInfo = 0; |
213 buildContainerInfo() { | 318 buildContainerInfo() { |
214 var o = new api.ContainerInfo(); | 319 var o = new api.ContainerInfo(); |
215 buildCounterContainerInfo++; | 320 buildCounterContainerInfo++; |
216 if (buildCounterContainerInfo < 3) { | 321 if (buildCounterContainerInfo < 3) { |
217 o.image = "foo"; | 322 o.image = "foo"; |
218 } | 323 } |
219 buildCounterContainerInfo--; | 324 buildCounterContainerInfo--; |
220 return o; | 325 return o; |
221 } | 326 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 } | 366 } |
262 | 367 |
263 checkDebugInstanceRequest(api.DebugInstanceRequest o) { | 368 checkDebugInstanceRequest(api.DebugInstanceRequest o) { |
264 buildCounterDebugInstanceRequest++; | 369 buildCounterDebugInstanceRequest++; |
265 if (buildCounterDebugInstanceRequest < 3) { | 370 if (buildCounterDebugInstanceRequest < 3) { |
266 unittest.expect(o.sshKey, unittest.equals('foo')); | 371 unittest.expect(o.sshKey, unittest.equals('foo')); |
267 } | 372 } |
268 buildCounterDebugInstanceRequest--; | 373 buildCounterDebugInstanceRequest--; |
269 } | 374 } |
270 | 375 |
271 buildUnnamed3520() { | 376 buildUnnamed3620() { |
272 var o = new core.Map<core.String, api.FileInfo>(); | 377 var o = new core.Map<core.String, api.FileInfo>(); |
273 o["x"] = buildFileInfo(); | 378 o["x"] = buildFileInfo(); |
274 o["y"] = buildFileInfo(); | 379 o["y"] = buildFileInfo(); |
275 return o; | 380 return o; |
276 } | 381 } |
277 | 382 |
278 checkUnnamed3520(core.Map<core.String, api.FileInfo> o) { | 383 checkUnnamed3620(core.Map<core.String, api.FileInfo> o) { |
279 unittest.expect(o, unittest.hasLength(2)); | 384 unittest.expect(o, unittest.hasLength(2)); |
280 checkFileInfo(o["x"]); | 385 checkFileInfo(o["x"]); |
281 checkFileInfo(o["y"]); | 386 checkFileInfo(o["y"]); |
282 } | 387 } |
283 | 388 |
284 core.int buildCounterDeployment = 0; | 389 core.int buildCounterDeployment = 0; |
285 buildDeployment() { | 390 buildDeployment() { |
286 var o = new api.Deployment(); | 391 var o = new api.Deployment(); |
287 buildCounterDeployment++; | 392 buildCounterDeployment++; |
288 if (buildCounterDeployment < 3) { | 393 if (buildCounterDeployment < 3) { |
289 o.container = buildContainerInfo(); | 394 o.container = buildContainerInfo(); |
290 o.files = buildUnnamed3520(); | 395 o.files = buildUnnamed3620(); |
291 o.zip = buildZipInfo(); | 396 o.zip = buildZipInfo(); |
292 } | 397 } |
293 buildCounterDeployment--; | 398 buildCounterDeployment--; |
294 return o; | 399 return o; |
295 } | 400 } |
296 | 401 |
297 checkDeployment(api.Deployment o) { | 402 checkDeployment(api.Deployment o) { |
298 buildCounterDeployment++; | 403 buildCounterDeployment++; |
299 if (buildCounterDeployment < 3) { | 404 if (buildCounterDeployment < 3) { |
300 checkContainerInfo(o.container); | 405 checkContainerInfo(o.container); |
301 checkUnnamed3520(o.files); | 406 checkUnnamed3620(o.files); |
302 checkZipInfo(o.zip); | 407 checkZipInfo(o.zip); |
303 } | 408 } |
304 buildCounterDeployment--; | 409 buildCounterDeployment--; |
305 } | 410 } |
306 | 411 |
307 core.int buildCounterDiskUtilization = 0; | 412 core.int buildCounterDiskUtilization = 0; |
308 buildDiskUtilization() { | 413 buildDiskUtilization() { |
309 var o = new api.DiskUtilization(); | 414 var o = new api.DiskUtilization(); |
310 buildCounterDiskUtilization++; | 415 buildCounterDiskUtilization++; |
311 if (buildCounterDiskUtilization < 3) { | 416 if (buildCounterDiskUtilization < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
322 buildCounterDiskUtilization++; | 427 buildCounterDiskUtilization++; |
323 if (buildCounterDiskUtilization < 3) { | 428 if (buildCounterDiskUtilization < 3) { |
324 unittest.expect(o.targetReadBytesPerSecond, unittest.equals(42)); | 429 unittest.expect(o.targetReadBytesPerSecond, unittest.equals(42)); |
325 unittest.expect(o.targetReadOpsPerSecond, unittest.equals(42)); | 430 unittest.expect(o.targetReadOpsPerSecond, unittest.equals(42)); |
326 unittest.expect(o.targetWriteBytesPerSecond, unittest.equals(42)); | 431 unittest.expect(o.targetWriteBytesPerSecond, unittest.equals(42)); |
327 unittest.expect(o.targetWriteOpsPerSecond, unittest.equals(42)); | 432 unittest.expect(o.targetWriteOpsPerSecond, unittest.equals(42)); |
328 } | 433 } |
329 buildCounterDiskUtilization--; | 434 buildCounterDiskUtilization--; |
330 } | 435 } |
331 | 436 |
| 437 buildUnnamed3621() { |
| 438 var o = new core.List<api.ResourceRecord>(); |
| 439 o.add(buildResourceRecord()); |
| 440 o.add(buildResourceRecord()); |
| 441 return o; |
| 442 } |
| 443 |
| 444 checkUnnamed3621(core.List<api.ResourceRecord> o) { |
| 445 unittest.expect(o, unittest.hasLength(2)); |
| 446 checkResourceRecord(o[0]); |
| 447 checkResourceRecord(o[1]); |
| 448 } |
| 449 |
| 450 core.int buildCounterDomainMapping = 0; |
| 451 buildDomainMapping() { |
| 452 var o = new api.DomainMapping(); |
| 453 buildCounterDomainMapping++; |
| 454 if (buildCounterDomainMapping < 3) { |
| 455 o.id = "foo"; |
| 456 o.name = "foo"; |
| 457 o.resourceRecords = buildUnnamed3621(); |
| 458 o.sslSettings = buildSslSettings(); |
| 459 } |
| 460 buildCounterDomainMapping--; |
| 461 return o; |
| 462 } |
| 463 |
| 464 checkDomainMapping(api.DomainMapping o) { |
| 465 buildCounterDomainMapping++; |
| 466 if (buildCounterDomainMapping < 3) { |
| 467 unittest.expect(o.id, unittest.equals('foo')); |
| 468 unittest.expect(o.name, unittest.equals('foo')); |
| 469 checkUnnamed3621(o.resourceRecords); |
| 470 checkSslSettings(o.sslSettings); |
| 471 } |
| 472 buildCounterDomainMapping--; |
| 473 } |
| 474 |
| 475 core.int buildCounterEmpty = 0; |
| 476 buildEmpty() { |
| 477 var o = new api.Empty(); |
| 478 buildCounterEmpty++; |
| 479 if (buildCounterEmpty < 3) { |
| 480 } |
| 481 buildCounterEmpty--; |
| 482 return o; |
| 483 } |
| 484 |
| 485 checkEmpty(api.Empty o) { |
| 486 buildCounterEmpty++; |
| 487 if (buildCounterEmpty < 3) { |
| 488 } |
| 489 buildCounterEmpty--; |
| 490 } |
| 491 |
332 core.int buildCounterEndpointsApiService = 0; | 492 core.int buildCounterEndpointsApiService = 0; |
333 buildEndpointsApiService() { | 493 buildEndpointsApiService() { |
334 var o = new api.EndpointsApiService(); | 494 var o = new api.EndpointsApiService(); |
335 buildCounterEndpointsApiService++; | 495 buildCounterEndpointsApiService++; |
336 if (buildCounterEndpointsApiService < 3) { | 496 if (buildCounterEndpointsApiService < 3) { |
337 o.configId = "foo"; | 497 o.configId = "foo"; |
338 o.name = "foo"; | 498 o.name = "foo"; |
339 } | 499 } |
340 buildCounterEndpointsApiService--; | 500 buildCounterEndpointsApiService--; |
341 return o; | 501 return o; |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 | 675 |
516 checkLibrary(api.Library o) { | 676 checkLibrary(api.Library o) { |
517 buildCounterLibrary++; | 677 buildCounterLibrary++; |
518 if (buildCounterLibrary < 3) { | 678 if (buildCounterLibrary < 3) { |
519 unittest.expect(o.name, unittest.equals('foo')); | 679 unittest.expect(o.name, unittest.equals('foo')); |
520 unittest.expect(o.version, unittest.equals('foo')); | 680 unittest.expect(o.version, unittest.equals('foo')); |
521 } | 681 } |
522 buildCounterLibrary--; | 682 buildCounterLibrary--; |
523 } | 683 } |
524 | 684 |
525 buildUnnamed3521() { | 685 buildUnnamed3622() { |
| 686 var o = new core.List<api.AuthorizedCertificate>(); |
| 687 o.add(buildAuthorizedCertificate()); |
| 688 o.add(buildAuthorizedCertificate()); |
| 689 return o; |
| 690 } |
| 691 |
| 692 checkUnnamed3622(core.List<api.AuthorizedCertificate> o) { |
| 693 unittest.expect(o, unittest.hasLength(2)); |
| 694 checkAuthorizedCertificate(o[0]); |
| 695 checkAuthorizedCertificate(o[1]); |
| 696 } |
| 697 |
| 698 core.int buildCounterListAuthorizedCertificatesResponse = 0; |
| 699 buildListAuthorizedCertificatesResponse() { |
| 700 var o = new api.ListAuthorizedCertificatesResponse(); |
| 701 buildCounterListAuthorizedCertificatesResponse++; |
| 702 if (buildCounterListAuthorizedCertificatesResponse < 3) { |
| 703 o.certificates = buildUnnamed3622(); |
| 704 o.nextPageToken = "foo"; |
| 705 } |
| 706 buildCounterListAuthorizedCertificatesResponse--; |
| 707 return o; |
| 708 } |
| 709 |
| 710 checkListAuthorizedCertificatesResponse(api.ListAuthorizedCertificatesResponse o
) { |
| 711 buildCounterListAuthorizedCertificatesResponse++; |
| 712 if (buildCounterListAuthorizedCertificatesResponse < 3) { |
| 713 checkUnnamed3622(o.certificates); |
| 714 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 715 } |
| 716 buildCounterListAuthorizedCertificatesResponse--; |
| 717 } |
| 718 |
| 719 buildUnnamed3623() { |
| 720 var o = new core.List<api.AuthorizedDomain>(); |
| 721 o.add(buildAuthorizedDomain()); |
| 722 o.add(buildAuthorizedDomain()); |
| 723 return o; |
| 724 } |
| 725 |
| 726 checkUnnamed3623(core.List<api.AuthorizedDomain> o) { |
| 727 unittest.expect(o, unittest.hasLength(2)); |
| 728 checkAuthorizedDomain(o[0]); |
| 729 checkAuthorizedDomain(o[1]); |
| 730 } |
| 731 |
| 732 core.int buildCounterListAuthorizedDomainsResponse = 0; |
| 733 buildListAuthorizedDomainsResponse() { |
| 734 var o = new api.ListAuthorizedDomainsResponse(); |
| 735 buildCounterListAuthorizedDomainsResponse++; |
| 736 if (buildCounterListAuthorizedDomainsResponse < 3) { |
| 737 o.domains = buildUnnamed3623(); |
| 738 o.nextPageToken = "foo"; |
| 739 } |
| 740 buildCounterListAuthorizedDomainsResponse--; |
| 741 return o; |
| 742 } |
| 743 |
| 744 checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) { |
| 745 buildCounterListAuthorizedDomainsResponse++; |
| 746 if (buildCounterListAuthorizedDomainsResponse < 3) { |
| 747 checkUnnamed3623(o.domains); |
| 748 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 749 } |
| 750 buildCounterListAuthorizedDomainsResponse--; |
| 751 } |
| 752 |
| 753 buildUnnamed3624() { |
| 754 var o = new core.List<api.DomainMapping>(); |
| 755 o.add(buildDomainMapping()); |
| 756 o.add(buildDomainMapping()); |
| 757 return o; |
| 758 } |
| 759 |
| 760 checkUnnamed3624(core.List<api.DomainMapping> o) { |
| 761 unittest.expect(o, unittest.hasLength(2)); |
| 762 checkDomainMapping(o[0]); |
| 763 checkDomainMapping(o[1]); |
| 764 } |
| 765 |
| 766 core.int buildCounterListDomainMappingsResponse = 0; |
| 767 buildListDomainMappingsResponse() { |
| 768 var o = new api.ListDomainMappingsResponse(); |
| 769 buildCounterListDomainMappingsResponse++; |
| 770 if (buildCounterListDomainMappingsResponse < 3) { |
| 771 o.domainMappings = buildUnnamed3624(); |
| 772 o.nextPageToken = "foo"; |
| 773 } |
| 774 buildCounterListDomainMappingsResponse--; |
| 775 return o; |
| 776 } |
| 777 |
| 778 checkListDomainMappingsResponse(api.ListDomainMappingsResponse o) { |
| 779 buildCounterListDomainMappingsResponse++; |
| 780 if (buildCounterListDomainMappingsResponse < 3) { |
| 781 checkUnnamed3624(o.domainMappings); |
| 782 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 783 } |
| 784 buildCounterListDomainMappingsResponse--; |
| 785 } |
| 786 |
| 787 buildUnnamed3625() { |
526 var o = new core.List<api.Instance>(); | 788 var o = new core.List<api.Instance>(); |
527 o.add(buildInstance()); | 789 o.add(buildInstance()); |
528 o.add(buildInstance()); | 790 o.add(buildInstance()); |
529 return o; | 791 return o; |
530 } | 792 } |
531 | 793 |
532 checkUnnamed3521(core.List<api.Instance> o) { | 794 checkUnnamed3625(core.List<api.Instance> o) { |
533 unittest.expect(o, unittest.hasLength(2)); | 795 unittest.expect(o, unittest.hasLength(2)); |
534 checkInstance(o[0]); | 796 checkInstance(o[0]); |
535 checkInstance(o[1]); | 797 checkInstance(o[1]); |
536 } | 798 } |
537 | 799 |
538 core.int buildCounterListInstancesResponse = 0; | 800 core.int buildCounterListInstancesResponse = 0; |
539 buildListInstancesResponse() { | 801 buildListInstancesResponse() { |
540 var o = new api.ListInstancesResponse(); | 802 var o = new api.ListInstancesResponse(); |
541 buildCounterListInstancesResponse++; | 803 buildCounterListInstancesResponse++; |
542 if (buildCounterListInstancesResponse < 3) { | 804 if (buildCounterListInstancesResponse < 3) { |
543 o.instances = buildUnnamed3521(); | 805 o.instances = buildUnnamed3625(); |
544 o.nextPageToken = "foo"; | 806 o.nextPageToken = "foo"; |
545 } | 807 } |
546 buildCounterListInstancesResponse--; | 808 buildCounterListInstancesResponse--; |
547 return o; | 809 return o; |
548 } | 810 } |
549 | 811 |
550 checkListInstancesResponse(api.ListInstancesResponse o) { | 812 checkListInstancesResponse(api.ListInstancesResponse o) { |
551 buildCounterListInstancesResponse++; | 813 buildCounterListInstancesResponse++; |
552 if (buildCounterListInstancesResponse < 3) { | 814 if (buildCounterListInstancesResponse < 3) { |
553 checkUnnamed3521(o.instances); | 815 checkUnnamed3625(o.instances); |
554 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 816 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
555 } | 817 } |
556 buildCounterListInstancesResponse--; | 818 buildCounterListInstancesResponse--; |
557 } | 819 } |
558 | 820 |
559 buildUnnamed3522() { | 821 buildUnnamed3626() { |
560 var o = new core.List<api.Location>(); | 822 var o = new core.List<api.Location>(); |
561 o.add(buildLocation()); | 823 o.add(buildLocation()); |
562 o.add(buildLocation()); | 824 o.add(buildLocation()); |
563 return o; | 825 return o; |
564 } | 826 } |
565 | 827 |
566 checkUnnamed3522(core.List<api.Location> o) { | 828 checkUnnamed3626(core.List<api.Location> o) { |
567 unittest.expect(o, unittest.hasLength(2)); | 829 unittest.expect(o, unittest.hasLength(2)); |
568 checkLocation(o[0]); | 830 checkLocation(o[0]); |
569 checkLocation(o[1]); | 831 checkLocation(o[1]); |
570 } | 832 } |
571 | 833 |
572 core.int buildCounterListLocationsResponse = 0; | 834 core.int buildCounterListLocationsResponse = 0; |
573 buildListLocationsResponse() { | 835 buildListLocationsResponse() { |
574 var o = new api.ListLocationsResponse(); | 836 var o = new api.ListLocationsResponse(); |
575 buildCounterListLocationsResponse++; | 837 buildCounterListLocationsResponse++; |
576 if (buildCounterListLocationsResponse < 3) { | 838 if (buildCounterListLocationsResponse < 3) { |
577 o.locations = buildUnnamed3522(); | 839 o.locations = buildUnnamed3626(); |
578 o.nextPageToken = "foo"; | 840 o.nextPageToken = "foo"; |
579 } | 841 } |
580 buildCounterListLocationsResponse--; | 842 buildCounterListLocationsResponse--; |
581 return o; | 843 return o; |
582 } | 844 } |
583 | 845 |
584 checkListLocationsResponse(api.ListLocationsResponse o) { | 846 checkListLocationsResponse(api.ListLocationsResponse o) { |
585 buildCounterListLocationsResponse++; | 847 buildCounterListLocationsResponse++; |
586 if (buildCounterListLocationsResponse < 3) { | 848 if (buildCounterListLocationsResponse < 3) { |
587 checkUnnamed3522(o.locations); | 849 checkUnnamed3626(o.locations); |
588 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 850 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
589 } | 851 } |
590 buildCounterListLocationsResponse--; | 852 buildCounterListLocationsResponse--; |
591 } | 853 } |
592 | 854 |
593 buildUnnamed3523() { | 855 buildUnnamed3627() { |
594 var o = new core.List<api.Operation>(); | 856 var o = new core.List<api.Operation>(); |
595 o.add(buildOperation()); | 857 o.add(buildOperation()); |
596 o.add(buildOperation()); | 858 o.add(buildOperation()); |
597 return o; | 859 return o; |
598 } | 860 } |
599 | 861 |
600 checkUnnamed3523(core.List<api.Operation> o) { | 862 checkUnnamed3627(core.List<api.Operation> o) { |
601 unittest.expect(o, unittest.hasLength(2)); | 863 unittest.expect(o, unittest.hasLength(2)); |
602 checkOperation(o[0]); | 864 checkOperation(o[0]); |
603 checkOperation(o[1]); | 865 checkOperation(o[1]); |
604 } | 866 } |
605 | 867 |
606 core.int buildCounterListOperationsResponse = 0; | 868 core.int buildCounterListOperationsResponse = 0; |
607 buildListOperationsResponse() { | 869 buildListOperationsResponse() { |
608 var o = new api.ListOperationsResponse(); | 870 var o = new api.ListOperationsResponse(); |
609 buildCounterListOperationsResponse++; | 871 buildCounterListOperationsResponse++; |
610 if (buildCounterListOperationsResponse < 3) { | 872 if (buildCounterListOperationsResponse < 3) { |
611 o.nextPageToken = "foo"; | 873 o.nextPageToken = "foo"; |
612 o.operations = buildUnnamed3523(); | 874 o.operations = buildUnnamed3627(); |
613 } | 875 } |
614 buildCounterListOperationsResponse--; | 876 buildCounterListOperationsResponse--; |
615 return o; | 877 return o; |
616 } | 878 } |
617 | 879 |
618 checkListOperationsResponse(api.ListOperationsResponse o) { | 880 checkListOperationsResponse(api.ListOperationsResponse o) { |
619 buildCounterListOperationsResponse++; | 881 buildCounterListOperationsResponse++; |
620 if (buildCounterListOperationsResponse < 3) { | 882 if (buildCounterListOperationsResponse < 3) { |
621 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 883 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
622 checkUnnamed3523(o.operations); | 884 checkUnnamed3627(o.operations); |
623 } | 885 } |
624 buildCounterListOperationsResponse--; | 886 buildCounterListOperationsResponse--; |
625 } | 887 } |
626 | 888 |
627 buildUnnamed3524() { | 889 buildUnnamed3628() { |
628 var o = new core.List<api.Service>(); | 890 var o = new core.List<api.Service>(); |
629 o.add(buildService()); | 891 o.add(buildService()); |
630 o.add(buildService()); | 892 o.add(buildService()); |
631 return o; | 893 return o; |
632 } | 894 } |
633 | 895 |
634 checkUnnamed3524(core.List<api.Service> o) { | 896 checkUnnamed3628(core.List<api.Service> o) { |
635 unittest.expect(o, unittest.hasLength(2)); | 897 unittest.expect(o, unittest.hasLength(2)); |
636 checkService(o[0]); | 898 checkService(o[0]); |
637 checkService(o[1]); | 899 checkService(o[1]); |
638 } | 900 } |
639 | 901 |
640 core.int buildCounterListServicesResponse = 0; | 902 core.int buildCounterListServicesResponse = 0; |
641 buildListServicesResponse() { | 903 buildListServicesResponse() { |
642 var o = new api.ListServicesResponse(); | 904 var o = new api.ListServicesResponse(); |
643 buildCounterListServicesResponse++; | 905 buildCounterListServicesResponse++; |
644 if (buildCounterListServicesResponse < 3) { | 906 if (buildCounterListServicesResponse < 3) { |
645 o.nextPageToken = "foo"; | 907 o.nextPageToken = "foo"; |
646 o.services = buildUnnamed3524(); | 908 o.services = buildUnnamed3628(); |
647 } | 909 } |
648 buildCounterListServicesResponse--; | 910 buildCounterListServicesResponse--; |
649 return o; | 911 return o; |
650 } | 912 } |
651 | 913 |
652 checkListServicesResponse(api.ListServicesResponse o) { | 914 checkListServicesResponse(api.ListServicesResponse o) { |
653 buildCounterListServicesResponse++; | 915 buildCounterListServicesResponse++; |
654 if (buildCounterListServicesResponse < 3) { | 916 if (buildCounterListServicesResponse < 3) { |
655 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 917 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
656 checkUnnamed3524(o.services); | 918 checkUnnamed3628(o.services); |
657 } | 919 } |
658 buildCounterListServicesResponse--; | 920 buildCounterListServicesResponse--; |
659 } | 921 } |
660 | 922 |
661 buildUnnamed3525() { | 923 buildUnnamed3629() { |
662 var o = new core.List<api.Version>(); | 924 var o = new core.List<api.Version>(); |
663 o.add(buildVersion()); | 925 o.add(buildVersion()); |
664 o.add(buildVersion()); | 926 o.add(buildVersion()); |
665 return o; | 927 return o; |
666 } | 928 } |
667 | 929 |
668 checkUnnamed3525(core.List<api.Version> o) { | 930 checkUnnamed3629(core.List<api.Version> o) { |
669 unittest.expect(o, unittest.hasLength(2)); | 931 unittest.expect(o, unittest.hasLength(2)); |
670 checkVersion(o[0]); | 932 checkVersion(o[0]); |
671 checkVersion(o[1]); | 933 checkVersion(o[1]); |
672 } | 934 } |
673 | 935 |
674 core.int buildCounterListVersionsResponse = 0; | 936 core.int buildCounterListVersionsResponse = 0; |
675 buildListVersionsResponse() { | 937 buildListVersionsResponse() { |
676 var o = new api.ListVersionsResponse(); | 938 var o = new api.ListVersionsResponse(); |
677 buildCounterListVersionsResponse++; | 939 buildCounterListVersionsResponse++; |
678 if (buildCounterListVersionsResponse < 3) { | 940 if (buildCounterListVersionsResponse < 3) { |
679 o.nextPageToken = "foo"; | 941 o.nextPageToken = "foo"; |
680 o.versions = buildUnnamed3525(); | 942 o.versions = buildUnnamed3629(); |
681 } | 943 } |
682 buildCounterListVersionsResponse--; | 944 buildCounterListVersionsResponse--; |
683 return o; | 945 return o; |
684 } | 946 } |
685 | 947 |
686 checkListVersionsResponse(api.ListVersionsResponse o) { | 948 checkListVersionsResponse(api.ListVersionsResponse o) { |
687 buildCounterListVersionsResponse++; | 949 buildCounterListVersionsResponse++; |
688 if (buildCounterListVersionsResponse < 3) { | 950 if (buildCounterListVersionsResponse < 3) { |
689 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 951 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
690 checkUnnamed3525(o.versions); | 952 checkUnnamed3629(o.versions); |
691 } | 953 } |
692 buildCounterListVersionsResponse--; | 954 buildCounterListVersionsResponse--; |
693 } | 955 } |
694 | 956 |
695 core.int buildCounterLivenessCheck = 0; | 957 core.int buildCounterLivenessCheck = 0; |
696 buildLivenessCheck() { | 958 buildLivenessCheck() { |
697 var o = new api.LivenessCheck(); | 959 var o = new api.LivenessCheck(); |
698 buildCounterLivenessCheck++; | 960 buildCounterLivenessCheck++; |
699 if (buildCounterLivenessCheck < 3) { | 961 if (buildCounterLivenessCheck < 3) { |
700 o.checkInterval = "foo"; | 962 o.checkInterval = "foo"; |
701 o.healthyThreshold = 42; | 963 o.failureThreshold = 42; |
702 o.host = "foo"; | 964 o.host = "foo"; |
703 o.initialDelay = "foo"; | 965 o.initialDelay = "foo"; |
704 o.path = "foo"; | 966 o.path = "foo"; |
| 967 o.successThreshold = 42; |
705 o.timeout = "foo"; | 968 o.timeout = "foo"; |
706 o.unhealthyThreshold = 42; | |
707 } | 969 } |
708 buildCounterLivenessCheck--; | 970 buildCounterLivenessCheck--; |
709 return o; | 971 return o; |
710 } | 972 } |
711 | 973 |
712 checkLivenessCheck(api.LivenessCheck o) { | 974 checkLivenessCheck(api.LivenessCheck o) { |
713 buildCounterLivenessCheck++; | 975 buildCounterLivenessCheck++; |
714 if (buildCounterLivenessCheck < 3) { | 976 if (buildCounterLivenessCheck < 3) { |
715 unittest.expect(o.checkInterval, unittest.equals('foo')); | 977 unittest.expect(o.checkInterval, unittest.equals('foo')); |
716 unittest.expect(o.healthyThreshold, unittest.equals(42)); | 978 unittest.expect(o.failureThreshold, unittest.equals(42)); |
717 unittest.expect(o.host, unittest.equals('foo')); | 979 unittest.expect(o.host, unittest.equals('foo')); |
718 unittest.expect(o.initialDelay, unittest.equals('foo')); | 980 unittest.expect(o.initialDelay, unittest.equals('foo')); |
719 unittest.expect(o.path, unittest.equals('foo')); | 981 unittest.expect(o.path, unittest.equals('foo')); |
| 982 unittest.expect(o.successThreshold, unittest.equals(42)); |
720 unittest.expect(o.timeout, unittest.equals('foo')); | 983 unittest.expect(o.timeout, unittest.equals('foo')); |
721 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); | |
722 } | 984 } |
723 buildCounterLivenessCheck--; | 985 buildCounterLivenessCheck--; |
724 } | 986 } |
725 | 987 |
726 buildUnnamed3526() { | 988 buildUnnamed3630() { |
727 var o = new core.Map<core.String, core.String>(); | 989 var o = new core.Map<core.String, core.String>(); |
728 o["x"] = "foo"; | 990 o["x"] = "foo"; |
729 o["y"] = "foo"; | 991 o["y"] = "foo"; |
730 return o; | 992 return o; |
731 } | 993 } |
732 | 994 |
733 checkUnnamed3526(core.Map<core.String, core.String> o) { | 995 checkUnnamed3630(core.Map<core.String, core.String> o) { |
734 unittest.expect(o, unittest.hasLength(2)); | 996 unittest.expect(o, unittest.hasLength(2)); |
735 unittest.expect(o["x"], unittest.equals('foo')); | 997 unittest.expect(o["x"], unittest.equals('foo')); |
736 unittest.expect(o["y"], unittest.equals('foo')); | 998 unittest.expect(o["y"], unittest.equals('foo')); |
737 } | 999 } |
738 | 1000 |
739 buildUnnamed3527() { | 1001 buildUnnamed3631() { |
740 var o = new core.Map<core.String, core.Object>(); | 1002 var o = new core.Map<core.String, core.Object>(); |
741 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1003 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
742 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1004 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
743 return o; | 1005 return o; |
744 } | 1006 } |
745 | 1007 |
746 checkUnnamed3527(core.Map<core.String, core.Object> o) { | 1008 checkUnnamed3631(core.Map<core.String, core.Object> o) { |
747 unittest.expect(o, unittest.hasLength(2)); | 1009 unittest.expect(o, unittest.hasLength(2)); |
748 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')); | 1010 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')); |
749 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')); | 1011 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')); |
750 } | 1012 } |
751 | 1013 |
752 core.int buildCounterLocation = 0; | 1014 core.int buildCounterLocation = 0; |
753 buildLocation() { | 1015 buildLocation() { |
754 var o = new api.Location(); | 1016 var o = new api.Location(); |
755 buildCounterLocation++; | 1017 buildCounterLocation++; |
756 if (buildCounterLocation < 3) { | 1018 if (buildCounterLocation < 3) { |
757 o.labels = buildUnnamed3526(); | 1019 o.labels = buildUnnamed3630(); |
758 o.locationId = "foo"; | 1020 o.locationId = "foo"; |
759 o.metadata = buildUnnamed3527(); | 1021 o.metadata = buildUnnamed3631(); |
760 o.name = "foo"; | 1022 o.name = "foo"; |
761 } | 1023 } |
762 buildCounterLocation--; | 1024 buildCounterLocation--; |
763 return o; | 1025 return o; |
764 } | 1026 } |
765 | 1027 |
766 checkLocation(api.Location o) { | 1028 checkLocation(api.Location o) { |
767 buildCounterLocation++; | 1029 buildCounterLocation++; |
768 if (buildCounterLocation < 3) { | 1030 if (buildCounterLocation < 3) { |
769 checkUnnamed3526(o.labels); | 1031 checkUnnamed3630(o.labels); |
770 unittest.expect(o.locationId, unittest.equals('foo')); | 1032 unittest.expect(o.locationId, unittest.equals('foo')); |
771 checkUnnamed3527(o.metadata); | 1033 checkUnnamed3631(o.metadata); |
772 unittest.expect(o.name, unittest.equals('foo')); | 1034 unittest.expect(o.name, unittest.equals('foo')); |
773 } | 1035 } |
774 buildCounterLocation--; | 1036 buildCounterLocation--; |
775 } | 1037 } |
776 | 1038 |
777 core.int buildCounterLocationMetadata = 0; | 1039 core.int buildCounterLocationMetadata = 0; |
778 buildLocationMetadata() { | 1040 buildLocationMetadata() { |
779 var o = new api.LocationMetadata(); | 1041 var o = new api.LocationMetadata(); |
780 buildCounterLocationMetadata++; | 1042 buildCounterLocationMetadata++; |
781 if (buildCounterLocationMetadata < 3) { | 1043 if (buildCounterLocationMetadata < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
807 } | 1069 } |
808 | 1070 |
809 checkManualScaling(api.ManualScaling o) { | 1071 checkManualScaling(api.ManualScaling o) { |
810 buildCounterManualScaling++; | 1072 buildCounterManualScaling++; |
811 if (buildCounterManualScaling < 3) { | 1073 if (buildCounterManualScaling < 3) { |
812 unittest.expect(o.instances, unittest.equals(42)); | 1074 unittest.expect(o.instances, unittest.equals(42)); |
813 } | 1075 } |
814 buildCounterManualScaling--; | 1076 buildCounterManualScaling--; |
815 } | 1077 } |
816 | 1078 |
817 buildUnnamed3528() { | 1079 buildUnnamed3632() { |
818 var o = new core.List<core.String>(); | 1080 var o = new core.List<core.String>(); |
819 o.add("foo"); | 1081 o.add("foo"); |
820 o.add("foo"); | 1082 o.add("foo"); |
821 return o; | 1083 return o; |
822 } | 1084 } |
823 | 1085 |
824 checkUnnamed3528(core.List<core.String> o) { | 1086 checkUnnamed3632(core.List<core.String> o) { |
825 unittest.expect(o, unittest.hasLength(2)); | 1087 unittest.expect(o, unittest.hasLength(2)); |
826 unittest.expect(o[0], unittest.equals('foo')); | 1088 unittest.expect(o[0], unittest.equals('foo')); |
827 unittest.expect(o[1], unittest.equals('foo')); | 1089 unittest.expect(o[1], unittest.equals('foo')); |
828 } | 1090 } |
829 | 1091 |
830 core.int buildCounterNetwork = 0; | 1092 core.int buildCounterNetwork = 0; |
831 buildNetwork() { | 1093 buildNetwork() { |
832 var o = new api.Network(); | 1094 var o = new api.Network(); |
833 buildCounterNetwork++; | 1095 buildCounterNetwork++; |
834 if (buildCounterNetwork < 3) { | 1096 if (buildCounterNetwork < 3) { |
835 o.forwardedPorts = buildUnnamed3528(); | 1097 o.forwardedPorts = buildUnnamed3632(); |
836 o.instanceTag = "foo"; | 1098 o.instanceTag = "foo"; |
837 o.name = "foo"; | 1099 o.name = "foo"; |
838 o.subnetworkName = "foo"; | 1100 o.subnetworkName = "foo"; |
839 } | 1101 } |
840 buildCounterNetwork--; | 1102 buildCounterNetwork--; |
841 return o; | 1103 return o; |
842 } | 1104 } |
843 | 1105 |
844 checkNetwork(api.Network o) { | 1106 checkNetwork(api.Network o) { |
845 buildCounterNetwork++; | 1107 buildCounterNetwork++; |
846 if (buildCounterNetwork < 3) { | 1108 if (buildCounterNetwork < 3) { |
847 checkUnnamed3528(o.forwardedPorts); | 1109 checkUnnamed3632(o.forwardedPorts); |
848 unittest.expect(o.instanceTag, unittest.equals('foo')); | 1110 unittest.expect(o.instanceTag, unittest.equals('foo')); |
849 unittest.expect(o.name, unittest.equals('foo')); | 1111 unittest.expect(o.name, unittest.equals('foo')); |
850 unittest.expect(o.subnetworkName, unittest.equals('foo')); | 1112 unittest.expect(o.subnetworkName, unittest.equals('foo')); |
851 } | 1113 } |
852 buildCounterNetwork--; | 1114 buildCounterNetwork--; |
853 } | 1115 } |
854 | 1116 |
855 core.int buildCounterNetworkUtilization = 0; | 1117 core.int buildCounterNetworkUtilization = 0; |
856 buildNetworkUtilization() { | 1118 buildNetworkUtilization() { |
857 var o = new api.NetworkUtilization(); | 1119 var o = new api.NetworkUtilization(); |
(...skipping 12 matching lines...) Expand all Loading... |
870 buildCounterNetworkUtilization++; | 1132 buildCounterNetworkUtilization++; |
871 if (buildCounterNetworkUtilization < 3) { | 1133 if (buildCounterNetworkUtilization < 3) { |
872 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42)); | 1134 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42)); |
873 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42)); | 1135 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42)); |
874 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42)); | 1136 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42)); |
875 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42)); | 1137 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42)); |
876 } | 1138 } |
877 buildCounterNetworkUtilization--; | 1139 buildCounterNetworkUtilization--; |
878 } | 1140 } |
879 | 1141 |
880 buildUnnamed3529() { | 1142 buildUnnamed3633() { |
881 var o = new core.Map<core.String, core.Object>(); | 1143 var o = new core.Map<core.String, core.Object>(); |
882 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1144 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
883 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1145 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
884 return o; | 1146 return o; |
885 } | 1147 } |
886 | 1148 |
887 checkUnnamed3529(core.Map<core.String, core.Object> o) { | 1149 checkUnnamed3633(core.Map<core.String, core.Object> o) { |
888 unittest.expect(o, unittest.hasLength(2)); | 1150 unittest.expect(o, unittest.hasLength(2)); |
889 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')); | 1151 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')); |
890 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')); | 1152 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')); |
891 } | 1153 } |
892 | 1154 |
893 buildUnnamed3530() { | 1155 buildUnnamed3634() { |
894 var o = new core.Map<core.String, core.Object>(); | 1156 var o = new core.Map<core.String, core.Object>(); |
895 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1157 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
896 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1158 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
897 return o; | 1159 return o; |
898 } | 1160 } |
899 | 1161 |
900 checkUnnamed3530(core.Map<core.String, core.Object> o) { | 1162 checkUnnamed3634(core.Map<core.String, core.Object> o) { |
901 unittest.expect(o, unittest.hasLength(2)); | 1163 unittest.expect(o, unittest.hasLength(2)); |
902 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')); | 1164 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')); |
903 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')); | 1165 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')); |
904 } | 1166 } |
905 | 1167 |
906 core.int buildCounterOperation = 0; | 1168 core.int buildCounterOperation = 0; |
907 buildOperation() { | 1169 buildOperation() { |
908 var o = new api.Operation(); | 1170 var o = new api.Operation(); |
909 buildCounterOperation++; | 1171 buildCounterOperation++; |
910 if (buildCounterOperation < 3) { | 1172 if (buildCounterOperation < 3) { |
911 o.done = true; | 1173 o.done = true; |
912 o.error = buildStatus(); | 1174 o.error = buildStatus(); |
913 o.metadata = buildUnnamed3529(); | 1175 o.metadata = buildUnnamed3633(); |
914 o.name = "foo"; | 1176 o.name = "foo"; |
915 o.response = buildUnnamed3530(); | 1177 o.response = buildUnnamed3634(); |
916 } | 1178 } |
917 buildCounterOperation--; | 1179 buildCounterOperation--; |
918 return o; | 1180 return o; |
919 } | 1181 } |
920 | 1182 |
921 checkOperation(api.Operation o) { | 1183 checkOperation(api.Operation o) { |
922 buildCounterOperation++; | 1184 buildCounterOperation++; |
923 if (buildCounterOperation < 3) { | 1185 if (buildCounterOperation < 3) { |
924 unittest.expect(o.done, unittest.isTrue); | 1186 unittest.expect(o.done, unittest.isTrue); |
925 checkStatus(o.error); | 1187 checkStatus(o.error); |
926 checkUnnamed3529(o.metadata); | 1188 checkUnnamed3633(o.metadata); |
927 unittest.expect(o.name, unittest.equals('foo')); | 1189 unittest.expect(o.name, unittest.equals('foo')); |
928 checkUnnamed3530(o.response); | 1190 checkUnnamed3634(o.response); |
929 } | 1191 } |
930 buildCounterOperation--; | 1192 buildCounterOperation--; |
931 } | 1193 } |
932 | 1194 |
933 core.int buildCounterOperationMetadata = 0; | 1195 core.int buildCounterOperationMetadata = 0; |
934 buildOperationMetadata() { | 1196 buildOperationMetadata() { |
935 var o = new api.OperationMetadata(); | 1197 var o = new api.OperationMetadata(); |
936 buildCounterOperationMetadata++; | 1198 buildCounterOperationMetadata++; |
937 if (buildCounterOperationMetadata < 3) { | 1199 if (buildCounterOperationMetadata < 3) { |
938 o.endTime = "foo"; | 1200 o.endTime = "foo"; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 if (buildCounterOperationMetadataExperimental < 3) { | 1241 if (buildCounterOperationMetadataExperimental < 3) { |
980 unittest.expect(o.endTime, unittest.equals('foo')); | 1242 unittest.expect(o.endTime, unittest.equals('foo')); |
981 unittest.expect(o.insertTime, unittest.equals('foo')); | 1243 unittest.expect(o.insertTime, unittest.equals('foo')); |
982 unittest.expect(o.method, unittest.equals('foo')); | 1244 unittest.expect(o.method, unittest.equals('foo')); |
983 unittest.expect(o.target, unittest.equals('foo')); | 1245 unittest.expect(o.target, unittest.equals('foo')); |
984 unittest.expect(o.user, unittest.equals('foo')); | 1246 unittest.expect(o.user, unittest.equals('foo')); |
985 } | 1247 } |
986 buildCounterOperationMetadataExperimental--; | 1248 buildCounterOperationMetadataExperimental--; |
987 } | 1249 } |
988 | 1250 |
989 buildUnnamed3531() { | 1251 buildUnnamed3635() { |
990 var o = new core.List<core.String>(); | 1252 var o = new core.List<core.String>(); |
991 o.add("foo"); | 1253 o.add("foo"); |
992 o.add("foo"); | 1254 o.add("foo"); |
993 return o; | 1255 return o; |
994 } | 1256 } |
995 | 1257 |
996 checkUnnamed3531(core.List<core.String> o) { | 1258 checkUnnamed3635(core.List<core.String> o) { |
997 unittest.expect(o, unittest.hasLength(2)); | 1259 unittest.expect(o, unittest.hasLength(2)); |
998 unittest.expect(o[0], unittest.equals('foo')); | 1260 unittest.expect(o[0], unittest.equals('foo')); |
999 unittest.expect(o[1], unittest.equals('foo')); | 1261 unittest.expect(o[1], unittest.equals('foo')); |
1000 } | 1262 } |
1001 | 1263 |
1002 core.int buildCounterOperationMetadataV1 = 0; | 1264 core.int buildCounterOperationMetadataV1 = 0; |
1003 buildOperationMetadataV1() { | 1265 buildOperationMetadataV1() { |
1004 var o = new api.OperationMetadataV1(); | 1266 var o = new api.OperationMetadataV1(); |
1005 buildCounterOperationMetadataV1++; | 1267 buildCounterOperationMetadataV1++; |
1006 if (buildCounterOperationMetadataV1 < 3) { | 1268 if (buildCounterOperationMetadataV1 < 3) { |
1007 o.endTime = "foo"; | 1269 o.endTime = "foo"; |
1008 o.ephemeralMessage = "foo"; | 1270 o.ephemeralMessage = "foo"; |
1009 o.insertTime = "foo"; | 1271 o.insertTime = "foo"; |
1010 o.method = "foo"; | 1272 o.method = "foo"; |
1011 o.target = "foo"; | 1273 o.target = "foo"; |
1012 o.user = "foo"; | 1274 o.user = "foo"; |
1013 o.warning = buildUnnamed3531(); | 1275 o.warning = buildUnnamed3635(); |
1014 } | 1276 } |
1015 buildCounterOperationMetadataV1--; | 1277 buildCounterOperationMetadataV1--; |
1016 return o; | 1278 return o; |
1017 } | 1279 } |
1018 | 1280 |
1019 checkOperationMetadataV1(api.OperationMetadataV1 o) { | 1281 checkOperationMetadataV1(api.OperationMetadataV1 o) { |
1020 buildCounterOperationMetadataV1++; | 1282 buildCounterOperationMetadataV1++; |
1021 if (buildCounterOperationMetadataV1 < 3) { | 1283 if (buildCounterOperationMetadataV1 < 3) { |
1022 unittest.expect(o.endTime, unittest.equals('foo')); | 1284 unittest.expect(o.endTime, unittest.equals('foo')); |
1023 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); | 1285 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
1024 unittest.expect(o.insertTime, unittest.equals('foo')); | 1286 unittest.expect(o.insertTime, unittest.equals('foo')); |
1025 unittest.expect(o.method, unittest.equals('foo')); | 1287 unittest.expect(o.method, unittest.equals('foo')); |
1026 unittest.expect(o.target, unittest.equals('foo')); | 1288 unittest.expect(o.target, unittest.equals('foo')); |
1027 unittest.expect(o.user, unittest.equals('foo')); | 1289 unittest.expect(o.user, unittest.equals('foo')); |
1028 checkUnnamed3531(o.warning); | 1290 checkUnnamed3635(o.warning); |
1029 } | 1291 } |
1030 buildCounterOperationMetadataV1--; | 1292 buildCounterOperationMetadataV1--; |
1031 } | 1293 } |
1032 | 1294 |
1033 buildUnnamed3532() { | 1295 buildUnnamed3636() { |
1034 var o = new core.List<core.String>(); | 1296 var o = new core.List<core.String>(); |
1035 o.add("foo"); | 1297 o.add("foo"); |
1036 o.add("foo"); | 1298 o.add("foo"); |
1037 return o; | 1299 return o; |
1038 } | 1300 } |
1039 | 1301 |
1040 checkUnnamed3532(core.List<core.String> o) { | 1302 checkUnnamed3636(core.List<core.String> o) { |
1041 unittest.expect(o, unittest.hasLength(2)); | 1303 unittest.expect(o, unittest.hasLength(2)); |
1042 unittest.expect(o[0], unittest.equals('foo')); | 1304 unittest.expect(o[0], unittest.equals('foo')); |
1043 unittest.expect(o[1], unittest.equals('foo')); | 1305 unittest.expect(o[1], unittest.equals('foo')); |
1044 } | |
1045 | |
1046 core.int buildCounterOperationMetadataV1Alpha = 0; | |
1047 buildOperationMetadataV1Alpha() { | |
1048 var o = new api.OperationMetadataV1Alpha(); | |
1049 buildCounterOperationMetadataV1Alpha++; | |
1050 if (buildCounterOperationMetadataV1Alpha < 3) { | |
1051 o.endTime = "foo"; | |
1052 o.ephemeralMessage = "foo"; | |
1053 o.insertTime = "foo"; | |
1054 o.method = "foo"; | |
1055 o.target = "foo"; | |
1056 o.user = "foo"; | |
1057 o.warning = buildUnnamed3532(); | |
1058 } | |
1059 buildCounterOperationMetadataV1Alpha--; | |
1060 return o; | |
1061 } | |
1062 | |
1063 checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) { | |
1064 buildCounterOperationMetadataV1Alpha++; | |
1065 if (buildCounterOperationMetadataV1Alpha < 3) { | |
1066 unittest.expect(o.endTime, unittest.equals('foo')); | |
1067 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); | |
1068 unittest.expect(o.insertTime, unittest.equals('foo')); | |
1069 unittest.expect(o.method, unittest.equals('foo')); | |
1070 unittest.expect(o.target, unittest.equals('foo')); | |
1071 unittest.expect(o.user, unittest.equals('foo')); | |
1072 checkUnnamed3532(o.warning); | |
1073 } | |
1074 buildCounterOperationMetadataV1Alpha--; | |
1075 } | |
1076 | |
1077 buildUnnamed3533() { | |
1078 var o = new core.List<core.String>(); | |
1079 o.add("foo"); | |
1080 o.add("foo"); | |
1081 return o; | |
1082 } | |
1083 | |
1084 checkUnnamed3533(core.List<core.String> o) { | |
1085 unittest.expect(o, unittest.hasLength(2)); | |
1086 unittest.expect(o[0], unittest.equals('foo')); | |
1087 unittest.expect(o[1], unittest.equals('foo')); | |
1088 } | 1306 } |
1089 | 1307 |
1090 core.int buildCounterOperationMetadataV1Beta = 0; | 1308 core.int buildCounterOperationMetadataV1Beta = 0; |
1091 buildOperationMetadataV1Beta() { | 1309 buildOperationMetadataV1Beta() { |
1092 var o = new api.OperationMetadataV1Beta(); | 1310 var o = new api.OperationMetadataV1Beta(); |
1093 buildCounterOperationMetadataV1Beta++; | 1311 buildCounterOperationMetadataV1Beta++; |
1094 if (buildCounterOperationMetadataV1Beta < 3) { | 1312 if (buildCounterOperationMetadataV1Beta < 3) { |
1095 o.endTime = "foo"; | 1313 o.endTime = "foo"; |
1096 o.ephemeralMessage = "foo"; | 1314 o.ephemeralMessage = "foo"; |
1097 o.insertTime = "foo"; | 1315 o.insertTime = "foo"; |
1098 o.method = "foo"; | 1316 o.method = "foo"; |
1099 o.target = "foo"; | 1317 o.target = "foo"; |
1100 o.user = "foo"; | 1318 o.user = "foo"; |
1101 o.warning = buildUnnamed3533(); | 1319 o.warning = buildUnnamed3636(); |
1102 } | 1320 } |
1103 buildCounterOperationMetadataV1Beta--; | 1321 buildCounterOperationMetadataV1Beta--; |
1104 return o; | 1322 return o; |
1105 } | 1323 } |
1106 | 1324 |
1107 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { | 1325 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { |
1108 buildCounterOperationMetadataV1Beta++; | 1326 buildCounterOperationMetadataV1Beta++; |
1109 if (buildCounterOperationMetadataV1Beta < 3) { | 1327 if (buildCounterOperationMetadataV1Beta < 3) { |
1110 unittest.expect(o.endTime, unittest.equals('foo')); | 1328 unittest.expect(o.endTime, unittest.equals('foo')); |
1111 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); | 1329 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
1112 unittest.expect(o.insertTime, unittest.equals('foo')); | 1330 unittest.expect(o.insertTime, unittest.equals('foo')); |
1113 unittest.expect(o.method, unittest.equals('foo')); | 1331 unittest.expect(o.method, unittest.equals('foo')); |
1114 unittest.expect(o.target, unittest.equals('foo')); | 1332 unittest.expect(o.target, unittest.equals('foo')); |
1115 unittest.expect(o.user, unittest.equals('foo')); | 1333 unittest.expect(o.user, unittest.equals('foo')); |
1116 checkUnnamed3533(o.warning); | 1334 checkUnnamed3636(o.warning); |
1117 } | 1335 } |
1118 buildCounterOperationMetadataV1Beta--; | 1336 buildCounterOperationMetadataV1Beta--; |
1119 } | 1337 } |
1120 | 1338 |
1121 core.int buildCounterOperationMetadataV1Beta5 = 0; | 1339 core.int buildCounterOperationMetadataV1Beta5 = 0; |
1122 buildOperationMetadataV1Beta5() { | 1340 buildOperationMetadataV1Beta5() { |
1123 var o = new api.OperationMetadataV1Beta5(); | 1341 var o = new api.OperationMetadataV1Beta5(); |
1124 buildCounterOperationMetadataV1Beta5++; | 1342 buildCounterOperationMetadataV1Beta5++; |
1125 if (buildCounterOperationMetadataV1Beta5 < 3) { | 1343 if (buildCounterOperationMetadataV1Beta5 < 3) { |
1126 o.endTime = "foo"; | 1344 o.endTime = "foo"; |
(...skipping 17 matching lines...) Expand all Loading... |
1144 } | 1362 } |
1145 buildCounterOperationMetadataV1Beta5--; | 1363 buildCounterOperationMetadataV1Beta5--; |
1146 } | 1364 } |
1147 | 1365 |
1148 core.int buildCounterReadinessCheck = 0; | 1366 core.int buildCounterReadinessCheck = 0; |
1149 buildReadinessCheck() { | 1367 buildReadinessCheck() { |
1150 var o = new api.ReadinessCheck(); | 1368 var o = new api.ReadinessCheck(); |
1151 buildCounterReadinessCheck++; | 1369 buildCounterReadinessCheck++; |
1152 if (buildCounterReadinessCheck < 3) { | 1370 if (buildCounterReadinessCheck < 3) { |
1153 o.checkInterval = "foo"; | 1371 o.checkInterval = "foo"; |
1154 o.healthyThreshold = 42; | 1372 o.failureThreshold = 42; |
1155 o.host = "foo"; | 1373 o.host = "foo"; |
1156 o.path = "foo"; | 1374 o.path = "foo"; |
| 1375 o.successThreshold = 42; |
1157 o.timeout = "foo"; | 1376 o.timeout = "foo"; |
1158 o.unhealthyThreshold = 42; | |
1159 } | 1377 } |
1160 buildCounterReadinessCheck--; | 1378 buildCounterReadinessCheck--; |
1161 return o; | 1379 return o; |
1162 } | 1380 } |
1163 | 1381 |
1164 checkReadinessCheck(api.ReadinessCheck o) { | 1382 checkReadinessCheck(api.ReadinessCheck o) { |
1165 buildCounterReadinessCheck++; | 1383 buildCounterReadinessCheck++; |
1166 if (buildCounterReadinessCheck < 3) { | 1384 if (buildCounterReadinessCheck < 3) { |
1167 unittest.expect(o.checkInterval, unittest.equals('foo')); | 1385 unittest.expect(o.checkInterval, unittest.equals('foo')); |
1168 unittest.expect(o.healthyThreshold, unittest.equals(42)); | 1386 unittest.expect(o.failureThreshold, unittest.equals(42)); |
1169 unittest.expect(o.host, unittest.equals('foo')); | 1387 unittest.expect(o.host, unittest.equals('foo')); |
1170 unittest.expect(o.path, unittest.equals('foo')); | 1388 unittest.expect(o.path, unittest.equals('foo')); |
| 1389 unittest.expect(o.successThreshold, unittest.equals(42)); |
1171 unittest.expect(o.timeout, unittest.equals('foo')); | 1390 unittest.expect(o.timeout, unittest.equals('foo')); |
1172 unittest.expect(o.unhealthyThreshold, unittest.equals(42)); | |
1173 } | 1391 } |
1174 buildCounterReadinessCheck--; | 1392 buildCounterReadinessCheck--; |
1175 } | 1393 } |
1176 | 1394 |
1177 core.int buildCounterRepairApplicationRequest = 0; | 1395 core.int buildCounterRepairApplicationRequest = 0; |
1178 buildRepairApplicationRequest() { | 1396 buildRepairApplicationRequest() { |
1179 var o = new api.RepairApplicationRequest(); | 1397 var o = new api.RepairApplicationRequest(); |
1180 buildCounterRepairApplicationRequest++; | 1398 buildCounterRepairApplicationRequest++; |
1181 if (buildCounterRepairApplicationRequest < 3) { | 1399 if (buildCounterRepairApplicationRequest < 3) { |
1182 } | 1400 } |
(...skipping 22 matching lines...) Expand all Loading... |
1205 | 1423 |
1206 checkRequestUtilization(api.RequestUtilization o) { | 1424 checkRequestUtilization(api.RequestUtilization o) { |
1207 buildCounterRequestUtilization++; | 1425 buildCounterRequestUtilization++; |
1208 if (buildCounterRequestUtilization < 3) { | 1426 if (buildCounterRequestUtilization < 3) { |
1209 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); | 1427 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); |
1210 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42)); | 1428 unittest.expect(o.targetRequestCountPerSecond, unittest.equals(42)); |
1211 } | 1429 } |
1212 buildCounterRequestUtilization--; | 1430 buildCounterRequestUtilization--; |
1213 } | 1431 } |
1214 | 1432 |
1215 buildUnnamed3534() { | 1433 core.int buildCounterResourceRecord = 0; |
| 1434 buildResourceRecord() { |
| 1435 var o = new api.ResourceRecord(); |
| 1436 buildCounterResourceRecord++; |
| 1437 if (buildCounterResourceRecord < 3) { |
| 1438 o.name = "foo"; |
| 1439 o.rrdata = "foo"; |
| 1440 o.type = "foo"; |
| 1441 } |
| 1442 buildCounterResourceRecord--; |
| 1443 return o; |
| 1444 } |
| 1445 |
| 1446 checkResourceRecord(api.ResourceRecord o) { |
| 1447 buildCounterResourceRecord++; |
| 1448 if (buildCounterResourceRecord < 3) { |
| 1449 unittest.expect(o.name, unittest.equals('foo')); |
| 1450 unittest.expect(o.rrdata, unittest.equals('foo')); |
| 1451 unittest.expect(o.type, unittest.equals('foo')); |
| 1452 } |
| 1453 buildCounterResourceRecord--; |
| 1454 } |
| 1455 |
| 1456 buildUnnamed3637() { |
1216 var o = new core.List<api.Volume>(); | 1457 var o = new core.List<api.Volume>(); |
1217 o.add(buildVolume()); | 1458 o.add(buildVolume()); |
1218 o.add(buildVolume()); | 1459 o.add(buildVolume()); |
1219 return o; | 1460 return o; |
1220 } | 1461 } |
1221 | 1462 |
1222 checkUnnamed3534(core.List<api.Volume> o) { | 1463 checkUnnamed3637(core.List<api.Volume> o) { |
1223 unittest.expect(o, unittest.hasLength(2)); | 1464 unittest.expect(o, unittest.hasLength(2)); |
1224 checkVolume(o[0]); | 1465 checkVolume(o[0]); |
1225 checkVolume(o[1]); | 1466 checkVolume(o[1]); |
1226 } | 1467 } |
1227 | 1468 |
1228 core.int buildCounterResources = 0; | 1469 core.int buildCounterResources = 0; |
1229 buildResources() { | 1470 buildResources() { |
1230 var o = new api.Resources(); | 1471 var o = new api.Resources(); |
1231 buildCounterResources++; | 1472 buildCounterResources++; |
1232 if (buildCounterResources < 3) { | 1473 if (buildCounterResources < 3) { |
1233 o.cpu = 42.0; | 1474 o.cpu = 42.0; |
1234 o.diskGb = 42.0; | 1475 o.diskGb = 42.0; |
1235 o.memoryGb = 42.0; | 1476 o.memoryGb = 42.0; |
1236 o.volumes = buildUnnamed3534(); | 1477 o.volumes = buildUnnamed3637(); |
1237 } | 1478 } |
1238 buildCounterResources--; | 1479 buildCounterResources--; |
1239 return o; | 1480 return o; |
1240 } | 1481 } |
1241 | 1482 |
1242 checkResources(api.Resources o) { | 1483 checkResources(api.Resources o) { |
1243 buildCounterResources++; | 1484 buildCounterResources++; |
1244 if (buildCounterResources < 3) { | 1485 if (buildCounterResources < 3) { |
1245 unittest.expect(o.cpu, unittest.equals(42.0)); | 1486 unittest.expect(o.cpu, unittest.equals(42.0)); |
1246 unittest.expect(o.diskGb, unittest.equals(42.0)); | 1487 unittest.expect(o.diskGb, unittest.equals(42.0)); |
1247 unittest.expect(o.memoryGb, unittest.equals(42.0)); | 1488 unittest.expect(o.memoryGb, unittest.equals(42.0)); |
1248 checkUnnamed3534(o.volumes); | 1489 checkUnnamed3637(o.volumes); |
1249 } | 1490 } |
1250 buildCounterResources--; | 1491 buildCounterResources--; |
1251 } | 1492 } |
1252 | 1493 |
1253 core.int buildCounterScriptHandler = 0; | 1494 core.int buildCounterScriptHandler = 0; |
1254 buildScriptHandler() { | 1495 buildScriptHandler() { |
1255 var o = new api.ScriptHandler(); | 1496 var o = new api.ScriptHandler(); |
1256 buildCounterScriptHandler++; | 1497 buildCounterScriptHandler++; |
1257 if (buildCounterScriptHandler < 3) { | 1498 if (buildCounterScriptHandler < 3) { |
1258 o.scriptPath = "foo"; | 1499 o.scriptPath = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
1285 checkService(api.Service o) { | 1526 checkService(api.Service o) { |
1286 buildCounterService++; | 1527 buildCounterService++; |
1287 if (buildCounterService < 3) { | 1528 if (buildCounterService < 3) { |
1288 unittest.expect(o.id, unittest.equals('foo')); | 1529 unittest.expect(o.id, unittest.equals('foo')); |
1289 unittest.expect(o.name, unittest.equals('foo')); | 1530 unittest.expect(o.name, unittest.equals('foo')); |
1290 checkTrafficSplit(o.split); | 1531 checkTrafficSplit(o.split); |
1291 } | 1532 } |
1292 buildCounterService--; | 1533 buildCounterService--; |
1293 } | 1534 } |
1294 | 1535 |
1295 buildUnnamed3535() { | 1536 core.int buildCounterSslSettings = 0; |
| 1537 buildSslSettings() { |
| 1538 var o = new api.SslSettings(); |
| 1539 buildCounterSslSettings++; |
| 1540 if (buildCounterSslSettings < 3) { |
| 1541 o.certificateId = "foo"; |
| 1542 } |
| 1543 buildCounterSslSettings--; |
| 1544 return o; |
| 1545 } |
| 1546 |
| 1547 checkSslSettings(api.SslSettings o) { |
| 1548 buildCounterSslSettings++; |
| 1549 if (buildCounterSslSettings < 3) { |
| 1550 unittest.expect(o.certificateId, unittest.equals('foo')); |
| 1551 } |
| 1552 buildCounterSslSettings--; |
| 1553 } |
| 1554 |
| 1555 buildUnnamed3638() { |
1296 var o = new core.Map<core.String, core.String>(); | 1556 var o = new core.Map<core.String, core.String>(); |
1297 o["x"] = "foo"; | 1557 o["x"] = "foo"; |
1298 o["y"] = "foo"; | 1558 o["y"] = "foo"; |
1299 return o; | 1559 return o; |
1300 } | 1560 } |
1301 | 1561 |
1302 checkUnnamed3535(core.Map<core.String, core.String> o) { | 1562 checkUnnamed3638(core.Map<core.String, core.String> o) { |
1303 unittest.expect(o, unittest.hasLength(2)); | 1563 unittest.expect(o, unittest.hasLength(2)); |
1304 unittest.expect(o["x"], unittest.equals('foo')); | 1564 unittest.expect(o["x"], unittest.equals('foo')); |
1305 unittest.expect(o["y"], unittest.equals('foo')); | 1565 unittest.expect(o["y"], unittest.equals('foo')); |
1306 } | 1566 } |
1307 | 1567 |
1308 core.int buildCounterStaticFilesHandler = 0; | 1568 core.int buildCounterStaticFilesHandler = 0; |
1309 buildStaticFilesHandler() { | 1569 buildStaticFilesHandler() { |
1310 var o = new api.StaticFilesHandler(); | 1570 var o = new api.StaticFilesHandler(); |
1311 buildCounterStaticFilesHandler++; | 1571 buildCounterStaticFilesHandler++; |
1312 if (buildCounterStaticFilesHandler < 3) { | 1572 if (buildCounterStaticFilesHandler < 3) { |
1313 o.applicationReadable = true; | 1573 o.applicationReadable = true; |
1314 o.expiration = "foo"; | 1574 o.expiration = "foo"; |
1315 o.httpHeaders = buildUnnamed3535(); | 1575 o.httpHeaders = buildUnnamed3638(); |
1316 o.mimeType = "foo"; | 1576 o.mimeType = "foo"; |
1317 o.path = "foo"; | 1577 o.path = "foo"; |
1318 o.requireMatchingFile = true; | 1578 o.requireMatchingFile = true; |
1319 o.uploadPathRegex = "foo"; | 1579 o.uploadPathRegex = "foo"; |
1320 } | 1580 } |
1321 buildCounterStaticFilesHandler--; | 1581 buildCounterStaticFilesHandler--; |
1322 return o; | 1582 return o; |
1323 } | 1583 } |
1324 | 1584 |
1325 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1585 checkStaticFilesHandler(api.StaticFilesHandler o) { |
1326 buildCounterStaticFilesHandler++; | 1586 buildCounterStaticFilesHandler++; |
1327 if (buildCounterStaticFilesHandler < 3) { | 1587 if (buildCounterStaticFilesHandler < 3) { |
1328 unittest.expect(o.applicationReadable, unittest.isTrue); | 1588 unittest.expect(o.applicationReadable, unittest.isTrue); |
1329 unittest.expect(o.expiration, unittest.equals('foo')); | 1589 unittest.expect(o.expiration, unittest.equals('foo')); |
1330 checkUnnamed3535(o.httpHeaders); | 1590 checkUnnamed3638(o.httpHeaders); |
1331 unittest.expect(o.mimeType, unittest.equals('foo')); | 1591 unittest.expect(o.mimeType, unittest.equals('foo')); |
1332 unittest.expect(o.path, unittest.equals('foo')); | 1592 unittest.expect(o.path, unittest.equals('foo')); |
1333 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1593 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
1334 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1594 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
1335 } | 1595 } |
1336 buildCounterStaticFilesHandler--; | 1596 buildCounterStaticFilesHandler--; |
1337 } | 1597 } |
1338 | 1598 |
1339 buildUnnamed3536() { | 1599 buildUnnamed3639() { |
1340 var o = new core.Map<core.String, core.Object>(); | 1600 var o = new core.Map<core.String, core.Object>(); |
1341 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1601 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1342 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1602 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1343 return o; | 1603 return o; |
1344 } | 1604 } |
1345 | 1605 |
1346 checkUnnamed3536(core.Map<core.String, core.Object> o) { | 1606 checkUnnamed3639(core.Map<core.String, core.Object> o) { |
1347 unittest.expect(o, unittest.hasLength(2)); | 1607 unittest.expect(o, unittest.hasLength(2)); |
1348 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')); | 1608 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')); |
1349 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')); | 1609 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')); |
1350 } | 1610 } |
1351 | 1611 |
1352 buildUnnamed3537() { | 1612 buildUnnamed3640() { |
1353 var o = new core.List<core.Map<core.String, core.Object>>(); | 1613 var o = new core.List<core.Map<core.String, core.Object>>(); |
1354 o.add(buildUnnamed3536()); | 1614 o.add(buildUnnamed3639()); |
1355 o.add(buildUnnamed3536()); | 1615 o.add(buildUnnamed3639()); |
1356 return o; | 1616 return o; |
1357 } | 1617 } |
1358 | 1618 |
1359 checkUnnamed3537(core.List<core.Map<core.String, core.Object>> o) { | 1619 checkUnnamed3640(core.List<core.Map<core.String, core.Object>> o) { |
1360 unittest.expect(o, unittest.hasLength(2)); | 1620 unittest.expect(o, unittest.hasLength(2)); |
1361 checkUnnamed3536(o[0]); | 1621 checkUnnamed3639(o[0]); |
1362 checkUnnamed3536(o[1]); | 1622 checkUnnamed3639(o[1]); |
1363 } | 1623 } |
1364 | 1624 |
1365 core.int buildCounterStatus = 0; | 1625 core.int buildCounterStatus = 0; |
1366 buildStatus() { | 1626 buildStatus() { |
1367 var o = new api.Status(); | 1627 var o = new api.Status(); |
1368 buildCounterStatus++; | 1628 buildCounterStatus++; |
1369 if (buildCounterStatus < 3) { | 1629 if (buildCounterStatus < 3) { |
1370 o.code = 42; | 1630 o.code = 42; |
1371 o.details = buildUnnamed3537(); | 1631 o.details = buildUnnamed3640(); |
1372 o.message = "foo"; | 1632 o.message = "foo"; |
1373 } | 1633 } |
1374 buildCounterStatus--; | 1634 buildCounterStatus--; |
1375 return o; | 1635 return o; |
1376 } | 1636 } |
1377 | 1637 |
1378 checkStatus(api.Status o) { | 1638 checkStatus(api.Status o) { |
1379 buildCounterStatus++; | 1639 buildCounterStatus++; |
1380 if (buildCounterStatus < 3) { | 1640 if (buildCounterStatus < 3) { |
1381 unittest.expect(o.code, unittest.equals(42)); | 1641 unittest.expect(o.code, unittest.equals(42)); |
1382 checkUnnamed3537(o.details); | 1642 checkUnnamed3640(o.details); |
1383 unittest.expect(o.message, unittest.equals('foo')); | 1643 unittest.expect(o.message, unittest.equals('foo')); |
1384 } | 1644 } |
1385 buildCounterStatus--; | 1645 buildCounterStatus--; |
1386 } | 1646 } |
1387 | 1647 |
1388 buildUnnamed3538() { | 1648 buildUnnamed3641() { |
1389 var o = new core.Map<core.String, core.double>(); | 1649 var o = new core.Map<core.String, core.double>(); |
1390 o["x"] = 42.0; | 1650 o["x"] = 42.0; |
1391 o["y"] = 42.0; | 1651 o["y"] = 42.0; |
1392 return o; | 1652 return o; |
1393 } | 1653 } |
1394 | 1654 |
1395 checkUnnamed3538(core.Map<core.String, core.double> o) { | 1655 checkUnnamed3641(core.Map<core.String, core.double> o) { |
1396 unittest.expect(o, unittest.hasLength(2)); | 1656 unittest.expect(o, unittest.hasLength(2)); |
1397 unittest.expect(o["x"], unittest.equals(42.0)); | 1657 unittest.expect(o["x"], unittest.equals(42.0)); |
1398 unittest.expect(o["y"], unittest.equals(42.0)); | 1658 unittest.expect(o["y"], unittest.equals(42.0)); |
1399 } | 1659 } |
1400 | 1660 |
1401 core.int buildCounterTrafficSplit = 0; | 1661 core.int buildCounterTrafficSplit = 0; |
1402 buildTrafficSplit() { | 1662 buildTrafficSplit() { |
1403 var o = new api.TrafficSplit(); | 1663 var o = new api.TrafficSplit(); |
1404 buildCounterTrafficSplit++; | 1664 buildCounterTrafficSplit++; |
1405 if (buildCounterTrafficSplit < 3) { | 1665 if (buildCounterTrafficSplit < 3) { |
1406 o.allocations = buildUnnamed3538(); | 1666 o.allocations = buildUnnamed3641(); |
1407 o.shardBy = "foo"; | 1667 o.shardBy = "foo"; |
1408 } | 1668 } |
1409 buildCounterTrafficSplit--; | 1669 buildCounterTrafficSplit--; |
1410 return o; | 1670 return o; |
1411 } | 1671 } |
1412 | 1672 |
1413 checkTrafficSplit(api.TrafficSplit o) { | 1673 checkTrafficSplit(api.TrafficSplit o) { |
1414 buildCounterTrafficSplit++; | 1674 buildCounterTrafficSplit++; |
1415 if (buildCounterTrafficSplit < 3) { | 1675 if (buildCounterTrafficSplit < 3) { |
1416 checkUnnamed3538(o.allocations); | 1676 checkUnnamed3641(o.allocations); |
1417 unittest.expect(o.shardBy, unittest.equals('foo')); | 1677 unittest.expect(o.shardBy, unittest.equals('foo')); |
1418 } | 1678 } |
1419 buildCounterTrafficSplit--; | 1679 buildCounterTrafficSplit--; |
1420 } | 1680 } |
1421 | 1681 |
1422 core.int buildCounterUrlDispatchRule = 0; | 1682 core.int buildCounterUrlDispatchRule = 0; |
1423 buildUrlDispatchRule() { | 1683 buildUrlDispatchRule() { |
1424 var o = new api.UrlDispatchRule(); | 1684 var o = new api.UrlDispatchRule(); |
1425 buildCounterUrlDispatchRule++; | 1685 buildCounterUrlDispatchRule++; |
1426 if (buildCounterUrlDispatchRule < 3) { | 1686 if (buildCounterUrlDispatchRule < 3) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1468 unittest.expect(o.login, unittest.equals('foo')); | 1728 unittest.expect(o.login, unittest.equals('foo')); |
1469 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1729 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
1470 checkScriptHandler(o.script); | 1730 checkScriptHandler(o.script); |
1471 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1731 unittest.expect(o.securityLevel, unittest.equals('foo')); |
1472 checkStaticFilesHandler(o.staticFiles); | 1732 checkStaticFilesHandler(o.staticFiles); |
1473 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1733 unittest.expect(o.urlRegex, unittest.equals('foo')); |
1474 } | 1734 } |
1475 buildCounterUrlMap--; | 1735 buildCounterUrlMap--; |
1476 } | 1736 } |
1477 | 1737 |
1478 buildUnnamed3539() { | 1738 buildUnnamed3642() { |
1479 var o = new core.Map<core.String, core.String>(); | 1739 var o = new core.Map<core.String, core.String>(); |
1480 o["x"] = "foo"; | 1740 o["x"] = "foo"; |
1481 o["y"] = "foo"; | 1741 o["y"] = "foo"; |
1482 return o; | 1742 return o; |
1483 } | 1743 } |
1484 | 1744 |
1485 checkUnnamed3539(core.Map<core.String, core.String> o) { | 1745 checkUnnamed3642(core.Map<core.String, core.String> o) { |
1486 unittest.expect(o, unittest.hasLength(2)); | 1746 unittest.expect(o, unittest.hasLength(2)); |
1487 unittest.expect(o["x"], unittest.equals('foo')); | 1747 unittest.expect(o["x"], unittest.equals('foo')); |
1488 unittest.expect(o["y"], unittest.equals('foo')); | 1748 unittest.expect(o["y"], unittest.equals('foo')); |
1489 } | 1749 } |
1490 | 1750 |
1491 buildUnnamed3540() { | 1751 buildUnnamed3643() { |
1492 var o = new core.Map<core.String, core.String>(); | 1752 var o = new core.Map<core.String, core.String>(); |
1493 o["x"] = "foo"; | 1753 o["x"] = "foo"; |
1494 o["y"] = "foo"; | 1754 o["y"] = "foo"; |
1495 return o; | 1755 return o; |
1496 } | 1756 } |
1497 | 1757 |
1498 checkUnnamed3540(core.Map<core.String, core.String> o) { | 1758 checkUnnamed3643(core.Map<core.String, core.String> o) { |
1499 unittest.expect(o, unittest.hasLength(2)); | 1759 unittest.expect(o, unittest.hasLength(2)); |
1500 unittest.expect(o["x"], unittest.equals('foo')); | 1760 unittest.expect(o["x"], unittest.equals('foo')); |
1501 unittest.expect(o["y"], unittest.equals('foo')); | 1761 unittest.expect(o["y"], unittest.equals('foo')); |
1502 } | 1762 } |
1503 | 1763 |
1504 buildUnnamed3541() { | 1764 buildUnnamed3644() { |
1505 var o = new core.List<api.ErrorHandler>(); | 1765 var o = new core.List<api.ErrorHandler>(); |
1506 o.add(buildErrorHandler()); | 1766 o.add(buildErrorHandler()); |
1507 o.add(buildErrorHandler()); | 1767 o.add(buildErrorHandler()); |
1508 return o; | 1768 return o; |
1509 } | 1769 } |
1510 | 1770 |
1511 checkUnnamed3541(core.List<api.ErrorHandler> o) { | 1771 checkUnnamed3644(core.List<api.ErrorHandler> o) { |
1512 unittest.expect(o, unittest.hasLength(2)); | 1772 unittest.expect(o, unittest.hasLength(2)); |
1513 checkErrorHandler(o[0]); | 1773 checkErrorHandler(o[0]); |
1514 checkErrorHandler(o[1]); | 1774 checkErrorHandler(o[1]); |
1515 } | 1775 } |
1516 | 1776 |
1517 buildUnnamed3542() { | 1777 buildUnnamed3645() { |
1518 var o = new core.List<api.UrlMap>(); | 1778 var o = new core.List<api.UrlMap>(); |
1519 o.add(buildUrlMap()); | 1779 o.add(buildUrlMap()); |
1520 o.add(buildUrlMap()); | 1780 o.add(buildUrlMap()); |
1521 return o; | 1781 return o; |
1522 } | 1782 } |
1523 | 1783 |
1524 checkUnnamed3542(core.List<api.UrlMap> o) { | 1784 checkUnnamed3645(core.List<api.UrlMap> o) { |
1525 unittest.expect(o, unittest.hasLength(2)); | 1785 unittest.expect(o, unittest.hasLength(2)); |
1526 checkUrlMap(o[0]); | 1786 checkUrlMap(o[0]); |
1527 checkUrlMap(o[1]); | 1787 checkUrlMap(o[1]); |
1528 } | 1788 } |
1529 | 1789 |
1530 buildUnnamed3543() { | 1790 buildUnnamed3646() { |
1531 var o = new core.List<core.String>(); | 1791 var o = new core.List<core.String>(); |
1532 o.add("foo"); | 1792 o.add("foo"); |
1533 o.add("foo"); | 1793 o.add("foo"); |
1534 return o; | 1794 return o; |
1535 } | 1795 } |
1536 | 1796 |
1537 checkUnnamed3543(core.List<core.String> o) { | 1797 checkUnnamed3646(core.List<core.String> o) { |
1538 unittest.expect(o, unittest.hasLength(2)); | 1798 unittest.expect(o, unittest.hasLength(2)); |
1539 unittest.expect(o[0], unittest.equals('foo')); | 1799 unittest.expect(o[0], unittest.equals('foo')); |
1540 unittest.expect(o[1], unittest.equals('foo')); | 1800 unittest.expect(o[1], unittest.equals('foo')); |
1541 } | 1801 } |
1542 | 1802 |
1543 buildUnnamed3544() { | 1803 buildUnnamed3647() { |
1544 var o = new core.List<api.Library>(); | 1804 var o = new core.List<api.Library>(); |
1545 o.add(buildLibrary()); | 1805 o.add(buildLibrary()); |
1546 o.add(buildLibrary()); | 1806 o.add(buildLibrary()); |
1547 return o; | 1807 return o; |
1548 } | 1808 } |
1549 | 1809 |
1550 checkUnnamed3544(core.List<api.Library> o) { | 1810 checkUnnamed3647(core.List<api.Library> o) { |
1551 unittest.expect(o, unittest.hasLength(2)); | 1811 unittest.expect(o, unittest.hasLength(2)); |
1552 checkLibrary(o[0]); | 1812 checkLibrary(o[0]); |
1553 checkLibrary(o[1]); | 1813 checkLibrary(o[1]); |
1554 } | 1814 } |
1555 | 1815 |
1556 core.int buildCounterVersion = 0; | 1816 core.int buildCounterVersion = 0; |
1557 buildVersion() { | 1817 buildVersion() { |
1558 var o = new api.Version(); | 1818 var o = new api.Version(); |
1559 buildCounterVersion++; | 1819 buildCounterVersion++; |
1560 if (buildCounterVersion < 3) { | 1820 if (buildCounterVersion < 3) { |
1561 o.apiConfig = buildApiConfigHandler(); | 1821 o.apiConfig = buildApiConfigHandler(); |
1562 o.automaticScaling = buildAutomaticScaling(); | 1822 o.automaticScaling = buildAutomaticScaling(); |
1563 o.basicScaling = buildBasicScaling(); | 1823 o.basicScaling = buildBasicScaling(); |
1564 o.betaSettings = buildUnnamed3539(); | 1824 o.betaSettings = buildUnnamed3642(); |
1565 o.createTime = "foo"; | 1825 o.createTime = "foo"; |
1566 o.createdBy = "foo"; | 1826 o.createdBy = "foo"; |
1567 o.defaultExpiration = "foo"; | 1827 o.defaultExpiration = "foo"; |
1568 o.deployment = buildDeployment(); | 1828 o.deployment = buildDeployment(); |
1569 o.diskUsageBytes = "foo"; | 1829 o.diskUsageBytes = "foo"; |
1570 o.endpointsApiService = buildEndpointsApiService(); | 1830 o.endpointsApiService = buildEndpointsApiService(); |
1571 o.env = "foo"; | 1831 o.env = "foo"; |
1572 o.envVariables = buildUnnamed3540(); | 1832 o.envVariables = buildUnnamed3643(); |
1573 o.errorHandlers = buildUnnamed3541(); | 1833 o.errorHandlers = buildUnnamed3644(); |
1574 o.handlers = buildUnnamed3542(); | 1834 o.handlers = buildUnnamed3645(); |
1575 o.healthCheck = buildHealthCheck(); | 1835 o.healthCheck = buildHealthCheck(); |
1576 o.id = "foo"; | 1836 o.id = "foo"; |
1577 o.inboundServices = buildUnnamed3543(); | 1837 o.inboundServices = buildUnnamed3646(); |
1578 o.instanceClass = "foo"; | 1838 o.instanceClass = "foo"; |
1579 o.libraries = buildUnnamed3544(); | 1839 o.libraries = buildUnnamed3647(); |
1580 o.livenessCheck = buildLivenessCheck(); | 1840 o.livenessCheck = buildLivenessCheck(); |
1581 o.manualScaling = buildManualScaling(); | 1841 o.manualScaling = buildManualScaling(); |
1582 o.name = "foo"; | 1842 o.name = "foo"; |
1583 o.network = buildNetwork(); | 1843 o.network = buildNetwork(); |
1584 o.nobuildFilesRegex = "foo"; | 1844 o.nobuildFilesRegex = "foo"; |
1585 o.readinessCheck = buildReadinessCheck(); | 1845 o.readinessCheck = buildReadinessCheck(); |
1586 o.resources = buildResources(); | 1846 o.resources = buildResources(); |
1587 o.runtime = "foo"; | 1847 o.runtime = "foo"; |
1588 o.servingStatus = "foo"; | 1848 o.servingStatus = "foo"; |
1589 o.threadsafe = true; | 1849 o.threadsafe = true; |
1590 o.versionUrl = "foo"; | 1850 o.versionUrl = "foo"; |
1591 o.vm = true; | 1851 o.vm = true; |
1592 } | 1852 } |
1593 buildCounterVersion--; | 1853 buildCounterVersion--; |
1594 return o; | 1854 return o; |
1595 } | 1855 } |
1596 | 1856 |
1597 checkVersion(api.Version o) { | 1857 checkVersion(api.Version o) { |
1598 buildCounterVersion++; | 1858 buildCounterVersion++; |
1599 if (buildCounterVersion < 3) { | 1859 if (buildCounterVersion < 3) { |
1600 checkApiConfigHandler(o.apiConfig); | 1860 checkApiConfigHandler(o.apiConfig); |
1601 checkAutomaticScaling(o.automaticScaling); | 1861 checkAutomaticScaling(o.automaticScaling); |
1602 checkBasicScaling(o.basicScaling); | 1862 checkBasicScaling(o.basicScaling); |
1603 checkUnnamed3539(o.betaSettings); | 1863 checkUnnamed3642(o.betaSettings); |
1604 unittest.expect(o.createTime, unittest.equals('foo')); | 1864 unittest.expect(o.createTime, unittest.equals('foo')); |
1605 unittest.expect(o.createdBy, unittest.equals('foo')); | 1865 unittest.expect(o.createdBy, unittest.equals('foo')); |
1606 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1866 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
1607 checkDeployment(o.deployment); | 1867 checkDeployment(o.deployment); |
1608 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); | 1868 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); |
1609 checkEndpointsApiService(o.endpointsApiService); | 1869 checkEndpointsApiService(o.endpointsApiService); |
1610 unittest.expect(o.env, unittest.equals('foo')); | 1870 unittest.expect(o.env, unittest.equals('foo')); |
1611 checkUnnamed3540(o.envVariables); | 1871 checkUnnamed3643(o.envVariables); |
1612 checkUnnamed3541(o.errorHandlers); | 1872 checkUnnamed3644(o.errorHandlers); |
1613 checkUnnamed3542(o.handlers); | 1873 checkUnnamed3645(o.handlers); |
1614 checkHealthCheck(o.healthCheck); | 1874 checkHealthCheck(o.healthCheck); |
1615 unittest.expect(o.id, unittest.equals('foo')); | 1875 unittest.expect(o.id, unittest.equals('foo')); |
1616 checkUnnamed3543(o.inboundServices); | 1876 checkUnnamed3646(o.inboundServices); |
1617 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1877 unittest.expect(o.instanceClass, unittest.equals('foo')); |
1618 checkUnnamed3544(o.libraries); | 1878 checkUnnamed3647(o.libraries); |
1619 checkLivenessCheck(o.livenessCheck); | 1879 checkLivenessCheck(o.livenessCheck); |
1620 checkManualScaling(o.manualScaling); | 1880 checkManualScaling(o.manualScaling); |
1621 unittest.expect(o.name, unittest.equals('foo')); | 1881 unittest.expect(o.name, unittest.equals('foo')); |
1622 checkNetwork(o.network); | 1882 checkNetwork(o.network); |
1623 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1883 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
1624 checkReadinessCheck(o.readinessCheck); | 1884 checkReadinessCheck(o.readinessCheck); |
1625 checkResources(o.resources); | 1885 checkResources(o.resources); |
1626 unittest.expect(o.runtime, unittest.equals('foo')); | 1886 unittest.expect(o.runtime, unittest.equals('foo')); |
1627 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1887 unittest.expect(o.servingStatus, unittest.equals('foo')); |
1628 unittest.expect(o.threadsafe, unittest.isTrue); | 1888 unittest.expect(o.threadsafe, unittest.isTrue); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1698 | 1958 |
1699 unittest.group("obj-schema-Application", () { | 1959 unittest.group("obj-schema-Application", () { |
1700 unittest.test("to-json--from-json", () { | 1960 unittest.test("to-json--from-json", () { |
1701 var o = buildApplication(); | 1961 var o = buildApplication(); |
1702 var od = new api.Application.fromJson(o.toJson()); | 1962 var od = new api.Application.fromJson(o.toJson()); |
1703 checkApplication(od); | 1963 checkApplication(od); |
1704 }); | 1964 }); |
1705 }); | 1965 }); |
1706 | 1966 |
1707 | 1967 |
| 1968 unittest.group("obj-schema-AuthorizedCertificate", () { |
| 1969 unittest.test("to-json--from-json", () { |
| 1970 var o = buildAuthorizedCertificate(); |
| 1971 var od = new api.AuthorizedCertificate.fromJson(o.toJson()); |
| 1972 checkAuthorizedCertificate(od); |
| 1973 }); |
| 1974 }); |
| 1975 |
| 1976 |
| 1977 unittest.group("obj-schema-AuthorizedDomain", () { |
| 1978 unittest.test("to-json--from-json", () { |
| 1979 var o = buildAuthorizedDomain(); |
| 1980 var od = new api.AuthorizedDomain.fromJson(o.toJson()); |
| 1981 checkAuthorizedDomain(od); |
| 1982 }); |
| 1983 }); |
| 1984 |
| 1985 |
1708 unittest.group("obj-schema-AutomaticScaling", () { | 1986 unittest.group("obj-schema-AutomaticScaling", () { |
1709 unittest.test("to-json--from-json", () { | 1987 unittest.test("to-json--from-json", () { |
1710 var o = buildAutomaticScaling(); | 1988 var o = buildAutomaticScaling(); |
1711 var od = new api.AutomaticScaling.fromJson(o.toJson()); | 1989 var od = new api.AutomaticScaling.fromJson(o.toJson()); |
1712 checkAutomaticScaling(od); | 1990 checkAutomaticScaling(od); |
1713 }); | 1991 }); |
1714 }); | 1992 }); |
1715 | 1993 |
1716 | 1994 |
1717 unittest.group("obj-schema-BasicScaling", () { | 1995 unittest.group("obj-schema-BasicScaling", () { |
1718 unittest.test("to-json--from-json", () { | 1996 unittest.test("to-json--from-json", () { |
1719 var o = buildBasicScaling(); | 1997 var o = buildBasicScaling(); |
1720 var od = new api.BasicScaling.fromJson(o.toJson()); | 1998 var od = new api.BasicScaling.fromJson(o.toJson()); |
1721 checkBasicScaling(od); | 1999 checkBasicScaling(od); |
1722 }); | 2000 }); |
1723 }); | 2001 }); |
1724 | 2002 |
1725 | 2003 |
| 2004 unittest.group("obj-schema-CertificateRawData", () { |
| 2005 unittest.test("to-json--from-json", () { |
| 2006 var o = buildCertificateRawData(); |
| 2007 var od = new api.CertificateRawData.fromJson(o.toJson()); |
| 2008 checkCertificateRawData(od); |
| 2009 }); |
| 2010 }); |
| 2011 |
| 2012 |
1726 unittest.group("obj-schema-ContainerInfo", () { | 2013 unittest.group("obj-schema-ContainerInfo", () { |
1727 unittest.test("to-json--from-json", () { | 2014 unittest.test("to-json--from-json", () { |
1728 var o = buildContainerInfo(); | 2015 var o = buildContainerInfo(); |
1729 var od = new api.ContainerInfo.fromJson(o.toJson()); | 2016 var od = new api.ContainerInfo.fromJson(o.toJson()); |
1730 checkContainerInfo(od); | 2017 checkContainerInfo(od); |
1731 }); | 2018 }); |
1732 }); | 2019 }); |
1733 | 2020 |
1734 | 2021 |
1735 unittest.group("obj-schema-CpuUtilization", () { | 2022 unittest.group("obj-schema-CpuUtilization", () { |
(...skipping 25 matching lines...) Expand all Loading... |
1761 | 2048 |
1762 unittest.group("obj-schema-DiskUtilization", () { | 2049 unittest.group("obj-schema-DiskUtilization", () { |
1763 unittest.test("to-json--from-json", () { | 2050 unittest.test("to-json--from-json", () { |
1764 var o = buildDiskUtilization(); | 2051 var o = buildDiskUtilization(); |
1765 var od = new api.DiskUtilization.fromJson(o.toJson()); | 2052 var od = new api.DiskUtilization.fromJson(o.toJson()); |
1766 checkDiskUtilization(od); | 2053 checkDiskUtilization(od); |
1767 }); | 2054 }); |
1768 }); | 2055 }); |
1769 | 2056 |
1770 | 2057 |
| 2058 unittest.group("obj-schema-DomainMapping", () { |
| 2059 unittest.test("to-json--from-json", () { |
| 2060 var o = buildDomainMapping(); |
| 2061 var od = new api.DomainMapping.fromJson(o.toJson()); |
| 2062 checkDomainMapping(od); |
| 2063 }); |
| 2064 }); |
| 2065 |
| 2066 |
| 2067 unittest.group("obj-schema-Empty", () { |
| 2068 unittest.test("to-json--from-json", () { |
| 2069 var o = buildEmpty(); |
| 2070 var od = new api.Empty.fromJson(o.toJson()); |
| 2071 checkEmpty(od); |
| 2072 }); |
| 2073 }); |
| 2074 |
| 2075 |
1771 unittest.group("obj-schema-EndpointsApiService", () { | 2076 unittest.group("obj-schema-EndpointsApiService", () { |
1772 unittest.test("to-json--from-json", () { | 2077 unittest.test("to-json--from-json", () { |
1773 var o = buildEndpointsApiService(); | 2078 var o = buildEndpointsApiService(); |
1774 var od = new api.EndpointsApiService.fromJson(o.toJson()); | 2079 var od = new api.EndpointsApiService.fromJson(o.toJson()); |
1775 checkEndpointsApiService(od); | 2080 checkEndpointsApiService(od); |
1776 }); | 2081 }); |
1777 }); | 2082 }); |
1778 | 2083 |
1779 | 2084 |
1780 unittest.group("obj-schema-ErrorHandler", () { | 2085 unittest.group("obj-schema-ErrorHandler", () { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1824 | 2129 |
1825 unittest.group("obj-schema-Library", () { | 2130 unittest.group("obj-schema-Library", () { |
1826 unittest.test("to-json--from-json", () { | 2131 unittest.test("to-json--from-json", () { |
1827 var o = buildLibrary(); | 2132 var o = buildLibrary(); |
1828 var od = new api.Library.fromJson(o.toJson()); | 2133 var od = new api.Library.fromJson(o.toJson()); |
1829 checkLibrary(od); | 2134 checkLibrary(od); |
1830 }); | 2135 }); |
1831 }); | 2136 }); |
1832 | 2137 |
1833 | 2138 |
| 2139 unittest.group("obj-schema-ListAuthorizedCertificatesResponse", () { |
| 2140 unittest.test("to-json--from-json", () { |
| 2141 var o = buildListAuthorizedCertificatesResponse(); |
| 2142 var od = new api.ListAuthorizedCertificatesResponse.fromJson(o.toJson()); |
| 2143 checkListAuthorizedCertificatesResponse(od); |
| 2144 }); |
| 2145 }); |
| 2146 |
| 2147 |
| 2148 unittest.group("obj-schema-ListAuthorizedDomainsResponse", () { |
| 2149 unittest.test("to-json--from-json", () { |
| 2150 var o = buildListAuthorizedDomainsResponse(); |
| 2151 var od = new api.ListAuthorizedDomainsResponse.fromJson(o.toJson()); |
| 2152 checkListAuthorizedDomainsResponse(od); |
| 2153 }); |
| 2154 }); |
| 2155 |
| 2156 |
| 2157 unittest.group("obj-schema-ListDomainMappingsResponse", () { |
| 2158 unittest.test("to-json--from-json", () { |
| 2159 var o = buildListDomainMappingsResponse(); |
| 2160 var od = new api.ListDomainMappingsResponse.fromJson(o.toJson()); |
| 2161 checkListDomainMappingsResponse(od); |
| 2162 }); |
| 2163 }); |
| 2164 |
| 2165 |
1834 unittest.group("obj-schema-ListInstancesResponse", () { | 2166 unittest.group("obj-schema-ListInstancesResponse", () { |
1835 unittest.test("to-json--from-json", () { | 2167 unittest.test("to-json--from-json", () { |
1836 var o = buildListInstancesResponse(); | 2168 var o = buildListInstancesResponse(); |
1837 var od = new api.ListInstancesResponse.fromJson(o.toJson()); | 2169 var od = new api.ListInstancesResponse.fromJson(o.toJson()); |
1838 checkListInstancesResponse(od); | 2170 checkListInstancesResponse(od); |
1839 }); | 2171 }); |
1840 }); | 2172 }); |
1841 | 2173 |
1842 | 2174 |
1843 unittest.group("obj-schema-ListLocationsResponse", () { | 2175 unittest.group("obj-schema-ListLocationsResponse", () { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1959 | 2291 |
1960 unittest.group("obj-schema-OperationMetadataV1", () { | 2292 unittest.group("obj-schema-OperationMetadataV1", () { |
1961 unittest.test("to-json--from-json", () { | 2293 unittest.test("to-json--from-json", () { |
1962 var o = buildOperationMetadataV1(); | 2294 var o = buildOperationMetadataV1(); |
1963 var od = new api.OperationMetadataV1.fromJson(o.toJson()); | 2295 var od = new api.OperationMetadataV1.fromJson(o.toJson()); |
1964 checkOperationMetadataV1(od); | 2296 checkOperationMetadataV1(od); |
1965 }); | 2297 }); |
1966 }); | 2298 }); |
1967 | 2299 |
1968 | 2300 |
1969 unittest.group("obj-schema-OperationMetadataV1Alpha", () { | |
1970 unittest.test("to-json--from-json", () { | |
1971 var o = buildOperationMetadataV1Alpha(); | |
1972 var od = new api.OperationMetadataV1Alpha.fromJson(o.toJson()); | |
1973 checkOperationMetadataV1Alpha(od); | |
1974 }); | |
1975 }); | |
1976 | |
1977 | |
1978 unittest.group("obj-schema-OperationMetadataV1Beta", () { | 2301 unittest.group("obj-schema-OperationMetadataV1Beta", () { |
1979 unittest.test("to-json--from-json", () { | 2302 unittest.test("to-json--from-json", () { |
1980 var o = buildOperationMetadataV1Beta(); | 2303 var o = buildOperationMetadataV1Beta(); |
1981 var od = new api.OperationMetadataV1Beta.fromJson(o.toJson()); | 2304 var od = new api.OperationMetadataV1Beta.fromJson(o.toJson()); |
1982 checkOperationMetadataV1Beta(od); | 2305 checkOperationMetadataV1Beta(od); |
1983 }); | 2306 }); |
1984 }); | 2307 }); |
1985 | 2308 |
1986 | 2309 |
1987 unittest.group("obj-schema-OperationMetadataV1Beta5", () { | 2310 unittest.group("obj-schema-OperationMetadataV1Beta5", () { |
(...skipping 25 matching lines...) Expand all Loading... |
2013 | 2336 |
2014 unittest.group("obj-schema-RequestUtilization", () { | 2337 unittest.group("obj-schema-RequestUtilization", () { |
2015 unittest.test("to-json--from-json", () { | 2338 unittest.test("to-json--from-json", () { |
2016 var o = buildRequestUtilization(); | 2339 var o = buildRequestUtilization(); |
2017 var od = new api.RequestUtilization.fromJson(o.toJson()); | 2340 var od = new api.RequestUtilization.fromJson(o.toJson()); |
2018 checkRequestUtilization(od); | 2341 checkRequestUtilization(od); |
2019 }); | 2342 }); |
2020 }); | 2343 }); |
2021 | 2344 |
2022 | 2345 |
| 2346 unittest.group("obj-schema-ResourceRecord", () { |
| 2347 unittest.test("to-json--from-json", () { |
| 2348 var o = buildResourceRecord(); |
| 2349 var od = new api.ResourceRecord.fromJson(o.toJson()); |
| 2350 checkResourceRecord(od); |
| 2351 }); |
| 2352 }); |
| 2353 |
| 2354 |
2023 unittest.group("obj-schema-Resources", () { | 2355 unittest.group("obj-schema-Resources", () { |
2024 unittest.test("to-json--from-json", () { | 2356 unittest.test("to-json--from-json", () { |
2025 var o = buildResources(); | 2357 var o = buildResources(); |
2026 var od = new api.Resources.fromJson(o.toJson()); | 2358 var od = new api.Resources.fromJson(o.toJson()); |
2027 checkResources(od); | 2359 checkResources(od); |
2028 }); | 2360 }); |
2029 }); | 2361 }); |
2030 | 2362 |
2031 | 2363 |
2032 unittest.group("obj-schema-ScriptHandler", () { | 2364 unittest.group("obj-schema-ScriptHandler", () { |
2033 unittest.test("to-json--from-json", () { | 2365 unittest.test("to-json--from-json", () { |
2034 var o = buildScriptHandler(); | 2366 var o = buildScriptHandler(); |
2035 var od = new api.ScriptHandler.fromJson(o.toJson()); | 2367 var od = new api.ScriptHandler.fromJson(o.toJson()); |
2036 checkScriptHandler(od); | 2368 checkScriptHandler(od); |
2037 }); | 2369 }); |
2038 }); | 2370 }); |
2039 | 2371 |
2040 | 2372 |
2041 unittest.group("obj-schema-Service", () { | 2373 unittest.group("obj-schema-Service", () { |
2042 unittest.test("to-json--from-json", () { | 2374 unittest.test("to-json--from-json", () { |
2043 var o = buildService(); | 2375 var o = buildService(); |
2044 var od = new api.Service.fromJson(o.toJson()); | 2376 var od = new api.Service.fromJson(o.toJson()); |
2045 checkService(od); | 2377 checkService(od); |
2046 }); | 2378 }); |
2047 }); | 2379 }); |
2048 | 2380 |
2049 | 2381 |
| 2382 unittest.group("obj-schema-SslSettings", () { |
| 2383 unittest.test("to-json--from-json", () { |
| 2384 var o = buildSslSettings(); |
| 2385 var od = new api.SslSettings.fromJson(o.toJson()); |
| 2386 checkSslSettings(od); |
| 2387 }); |
| 2388 }); |
| 2389 |
| 2390 |
2050 unittest.group("obj-schema-StaticFilesHandler", () { | 2391 unittest.group("obj-schema-StaticFilesHandler", () { |
2051 unittest.test("to-json--from-json", () { | 2392 unittest.test("to-json--from-json", () { |
2052 var o = buildStaticFilesHandler(); | 2393 var o = buildStaticFilesHandler(); |
2053 var od = new api.StaticFilesHandler.fromJson(o.toJson()); | 2394 var od = new api.StaticFilesHandler.fromJson(o.toJson()); |
2054 checkStaticFilesHandler(od); | 2395 checkStaticFilesHandler(od); |
2055 }); | 2396 }); |
2056 }); | 2397 }); |
2057 | 2398 |
2058 | 2399 |
2059 unittest.group("obj-schema-Status", () { | 2400 unittest.group("obj-schema-Status", () { |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2318 return new async.Future.value(stringResponse(200, h, resp)); | 2659 return new async.Future.value(stringResponse(200, h, resp)); |
2319 }), true); | 2660 }), true); |
2320 res.repair(arg_request, arg_appsId).then(unittest.expectAsync(((api.Operat
ion response) { | 2661 res.repair(arg_request, arg_appsId).then(unittest.expectAsync(((api.Operat
ion response) { |
2321 checkOperation(response); | 2662 checkOperation(response); |
2322 }))); | 2663 }))); |
2323 }); | 2664 }); |
2324 | 2665 |
2325 }); | 2666 }); |
2326 | 2667 |
2327 | 2668 |
2328 unittest.group("resource-AppsLocationsResourceApi", () { | 2669 unittest.group("resource-AppsAuthorizedCertificatesResourceApi", () { |
2329 unittest.test("method--get", () { | 2670 unittest.test("method--create", () { |
2330 | 2671 |
2331 var mock = new HttpServerMock(); | 2672 var mock = new HttpServerMock(); |
2332 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; | 2673 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock)
.apps.authorizedCertificates; |
| 2674 var arg_request = buildAuthorizedCertificate(); |
2333 var arg_appsId = "foo"; | 2675 var arg_appsId = "foo"; |
2334 var arg_locationsId = "foo"; | |
2335 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2676 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2677 var obj = new api.AuthorizedCertificate.fromJson(json); |
| 2678 checkAuthorizedCertificate(obj); |
| 2679 |
2336 var path = (req.url).path; | 2680 var path = (req.url).path; |
2337 var pathOffset = 0; | 2681 var pathOffset = 0; |
2338 var index; | 2682 var index; |
2339 var subPart; | 2683 var subPart; |
2340 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2684 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2341 pathOffset += 1; | 2685 pathOffset += 1; |
2342 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); | 2686 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
2343 pathOffset += 12; | 2687 pathOffset += 12; |
2344 index = path.indexOf("/locations/", pathOffset); | 2688 index = path.indexOf("/authorizedCertificates", pathOffset); |
2345 unittest.expect(index >= 0, unittest.isTrue); | 2689 unittest.expect(index >= 0, unittest.isTrue); |
2346 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2690 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2347 pathOffset = index; | 2691 pathOffset = index; |
2348 unittest.expect(subPart, unittest.equals("$arg_appsId")); | 2692 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
2349 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 2693 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("/authorizedCertificates")); |
2350 pathOffset += 11; | 2694 pathOffset += 23; |
2351 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
2352 pathOffset = path.length; | |
2353 unittest.expect(subPart, unittest.equals("$arg_locationsId")); | |
2354 | 2695 |
2355 var query = (req.url).query; | 2696 var query = (req.url).query; |
2356 var queryOffset = 0; | 2697 var queryOffset = 0; |
2357 var queryMap = {}; | 2698 var queryMap = {}; |
2358 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2699 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2359 parseBool(n) { | 2700 parseBool(n) { |
2360 if (n == "true") return true; | 2701 if (n == "true") return true; |
2361 if (n == "false") return false; | 2702 if (n == "false") return false; |
2362 if (n == null) return null; | 2703 if (n == null) return null; |
2363 throw new core.ArgumentError("Invalid boolean: $n"); | 2704 throw new core.ArgumentError("Invalid boolean: $n"); |
2364 } | 2705 } |
2365 if (query.length > 0) { | 2706 if (query.length > 0) { |
2366 for (var part in query.split("&")) { | 2707 for (var part in query.split("&")) { |
2367 var keyvalue = part.split("="); | 2708 var keyvalue = part.split("="); |
2368 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2709 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2369 } | 2710 } |
2370 } | 2711 } |
2371 | 2712 |
2372 | 2713 |
2373 var h = { | 2714 var h = { |
2374 "content-type" : "application/json; charset=utf-8", | 2715 "content-type" : "application/json; charset=utf-8", |
2375 }; | 2716 }; |
2376 var resp = convert.JSON.encode(buildLocation()); | 2717 var resp = convert.JSON.encode(buildAuthorizedCertificate()); |
2377 return new async.Future.value(stringResponse(200, h, resp)); | 2718 return new async.Future.value(stringResponse(200, h, resp)); |
2378 }), true); | 2719 }), true); |
2379 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Locat
ion response) { | 2720 res.create(arg_request, arg_appsId).then(unittest.expectAsync(((api.Author
izedCertificate response) { |
2380 checkLocation(response); | 2721 checkAuthorizedCertificate(response); |
2381 }))); | 2722 }))); |
2382 }); | 2723 }); |
2383 | 2724 |
2384 unittest.test("method--list", () { | 2725 unittest.test("method--delete", () { |
2385 | 2726 |
2386 var mock = new HttpServerMock(); | 2727 var mock = new HttpServerMock(); |
2387 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; | 2728 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock)
.apps.authorizedCertificates; |
2388 var arg_appsId = "foo"; | 2729 var arg_appsId = "foo"; |
2389 var arg_pageToken = "foo"; | 2730 var arg_authorizedCertificatesId = "foo"; |
2390 var arg_pageSize = 42; | |
2391 var arg_filter = "foo"; | |
2392 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2731 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2393 var path = (req.url).path; | 2732 var path = (req.url).path; |
2394 var pathOffset = 0; | 2733 var pathOffset = 0; |
2395 var index; | 2734 var index; |
2396 var subPart; | 2735 var subPart; |
2397 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2736 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2398 pathOffset += 1; | 2737 pathOffset += 1; |
2399 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); | 2738 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
2400 pathOffset += 12; | 2739 pathOffset += 12; |
2401 index = path.indexOf("/locations", pathOffset); | 2740 index = path.indexOf("/authorizedCertificates/", pathOffset); |
2402 unittest.expect(index >= 0, unittest.isTrue); | 2741 unittest.expect(index >= 0, unittest.isTrue); |
2403 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2742 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2404 pathOffset = index; | 2743 pathOffset = index; |
2405 unittest.expect(subPart, unittest.equals("$arg_appsId")); | 2744 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
2406 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/locations")); | 2745 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/authorizedCertificates/")); |
2407 pathOffset += 10; | 2746 pathOffset += 24; |
2408 | 2747 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
2409 var query = (req.url).query; | 2748 pathOffset = path.length; |
2410 var queryOffset = 0; | 2749 unittest.expect(subPart, unittest.equals("$arg_authorizedCertificatesId"
)); |
2411 var queryMap = {}; | 2750 |
| 2751 var query = (req.url).query; |
| 2752 var queryOffset = 0; |
| 2753 var queryMap = {}; |
| 2754 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2755 parseBool(n) { |
| 2756 if (n == "true") return true; |
| 2757 if (n == "false") return false; |
| 2758 if (n == null) return null; |
| 2759 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2760 } |
| 2761 if (query.length > 0) { |
| 2762 for (var part in query.split("&")) { |
| 2763 var keyvalue = part.split("="); |
| 2764 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2765 } |
| 2766 } |
| 2767 |
| 2768 |
| 2769 var h = { |
| 2770 "content-type" : "application/json; charset=utf-8", |
| 2771 }; |
| 2772 var resp = convert.JSON.encode(buildEmpty()); |
| 2773 return new async.Future.value(stringResponse(200, h, resp)); |
| 2774 }), true); |
| 2775 res.delete(arg_appsId, arg_authorizedCertificatesId).then(unittest.expectA
sync(((api.Empty response) { |
| 2776 checkEmpty(response); |
| 2777 }))); |
| 2778 }); |
| 2779 |
| 2780 unittest.test("method--get", () { |
| 2781 |
| 2782 var mock = new HttpServerMock(); |
| 2783 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock)
.apps.authorizedCertificates; |
| 2784 var arg_appsId = "foo"; |
| 2785 var arg_authorizedCertificatesId = "foo"; |
| 2786 var arg_view = "foo"; |
| 2787 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2788 var path = (req.url).path; |
| 2789 var pathOffset = 0; |
| 2790 var index; |
| 2791 var subPart; |
| 2792 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2793 pathOffset += 1; |
| 2794 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
| 2795 pathOffset += 12; |
| 2796 index = path.indexOf("/authorizedCertificates/", pathOffset); |
| 2797 unittest.expect(index >= 0, unittest.isTrue); |
| 2798 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2799 pathOffset = index; |
| 2800 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 2801 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/authorizedCertificates/")); |
| 2802 pathOffset += 24; |
| 2803 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2804 pathOffset = path.length; |
| 2805 unittest.expect(subPart, unittest.equals("$arg_authorizedCertificatesId"
)); |
| 2806 |
| 2807 var query = (req.url).query; |
| 2808 var queryOffset = 0; |
| 2809 var queryMap = {}; |
| 2810 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2811 parseBool(n) { |
| 2812 if (n == "true") return true; |
| 2813 if (n == "false") return false; |
| 2814 if (n == null) return null; |
| 2815 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2816 } |
| 2817 if (query.length > 0) { |
| 2818 for (var part in query.split("&")) { |
| 2819 var keyvalue = part.split("="); |
| 2820 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2821 } |
| 2822 } |
| 2823 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
| 2824 |
| 2825 |
| 2826 var h = { |
| 2827 "content-type" : "application/json; charset=utf-8", |
| 2828 }; |
| 2829 var resp = convert.JSON.encode(buildAuthorizedCertificate()); |
| 2830 return new async.Future.value(stringResponse(200, h, resp)); |
| 2831 }), true); |
| 2832 res.get(arg_appsId, arg_authorizedCertificatesId, view: arg_view).then(uni
ttest.expectAsync(((api.AuthorizedCertificate response) { |
| 2833 checkAuthorizedCertificate(response); |
| 2834 }))); |
| 2835 }); |
| 2836 |
| 2837 unittest.test("method--list", () { |
| 2838 |
| 2839 var mock = new HttpServerMock(); |
| 2840 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock)
.apps.authorizedCertificates; |
| 2841 var arg_appsId = "foo"; |
| 2842 var arg_pageSize = 42; |
| 2843 var arg_pageToken = "foo"; |
| 2844 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2845 var path = (req.url).path; |
| 2846 var pathOffset = 0; |
| 2847 var index; |
| 2848 var subPart; |
| 2849 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2850 pathOffset += 1; |
| 2851 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
| 2852 pathOffset += 12; |
| 2853 index = path.indexOf("/authorizedCertificates", pathOffset); |
| 2854 unittest.expect(index >= 0, unittest.isTrue); |
| 2855 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2856 pathOffset = index; |
| 2857 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 2858 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("/authorizedCertificates")); |
| 2859 pathOffset += 23; |
| 2860 |
| 2861 var query = (req.url).query; |
| 2862 var queryOffset = 0; |
| 2863 var queryMap = {}; |
| 2864 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2865 parseBool(n) { |
| 2866 if (n == "true") return true; |
| 2867 if (n == "false") return false; |
| 2868 if (n == null) return null; |
| 2869 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2870 } |
| 2871 if (query.length > 0) { |
| 2872 for (var part in query.split("&")) { |
| 2873 var keyvalue = part.split("="); |
| 2874 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2875 } |
| 2876 } |
| 2877 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2878 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2879 |
| 2880 |
| 2881 var h = { |
| 2882 "content-type" : "application/json; charset=utf-8", |
| 2883 }; |
| 2884 var resp = convert.JSON.encode(buildListAuthorizedCertificatesResponse()
); |
| 2885 return new async.Future.value(stringResponse(200, h, resp)); |
| 2886 }), true); |
| 2887 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ListAuthorizedCertificatesResponse response) { |
| 2888 checkListAuthorizedCertificatesResponse(response); |
| 2889 }))); |
| 2890 }); |
| 2891 |
| 2892 unittest.test("method--patch", () { |
| 2893 |
| 2894 var mock = new HttpServerMock(); |
| 2895 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock)
.apps.authorizedCertificates; |
| 2896 var arg_request = buildAuthorizedCertificate(); |
| 2897 var arg_appsId = "foo"; |
| 2898 var arg_authorizedCertificatesId = "foo"; |
| 2899 var arg_updateMask = "foo"; |
| 2900 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2901 var obj = new api.AuthorizedCertificate.fromJson(json); |
| 2902 checkAuthorizedCertificate(obj); |
| 2903 |
| 2904 var path = (req.url).path; |
| 2905 var pathOffset = 0; |
| 2906 var index; |
| 2907 var subPart; |
| 2908 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2909 pathOffset += 1; |
| 2910 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
| 2911 pathOffset += 12; |
| 2912 index = path.indexOf("/authorizedCertificates/", pathOffset); |
| 2913 unittest.expect(index >= 0, unittest.isTrue); |
| 2914 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2915 pathOffset = index; |
| 2916 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 2917 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("/authorizedCertificates/")); |
| 2918 pathOffset += 24; |
| 2919 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 2920 pathOffset = path.length; |
| 2921 unittest.expect(subPart, unittest.equals("$arg_authorizedCertificatesId"
)); |
| 2922 |
| 2923 var query = (req.url).query; |
| 2924 var queryOffset = 0; |
| 2925 var queryMap = {}; |
| 2926 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2927 parseBool(n) { |
| 2928 if (n == "true") return true; |
| 2929 if (n == "false") return false; |
| 2930 if (n == null) return null; |
| 2931 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2932 } |
| 2933 if (query.length > 0) { |
| 2934 for (var part in query.split("&")) { |
| 2935 var keyvalue = part.split("="); |
| 2936 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2937 } |
| 2938 } |
| 2939 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
| 2940 |
| 2941 |
| 2942 var h = { |
| 2943 "content-type" : "application/json; charset=utf-8", |
| 2944 }; |
| 2945 var resp = convert.JSON.encode(buildAuthorizedCertificate()); |
| 2946 return new async.Future.value(stringResponse(200, h, resp)); |
| 2947 }), true); |
| 2948 res.patch(arg_request, arg_appsId, arg_authorizedCertificatesId, updateMas
k: arg_updateMask).then(unittest.expectAsync(((api.AuthorizedCertificate respons
e) { |
| 2949 checkAuthorizedCertificate(response); |
| 2950 }))); |
| 2951 }); |
| 2952 |
| 2953 }); |
| 2954 |
| 2955 |
| 2956 unittest.group("resource-AppsAuthorizedDomainsResourceApi", () { |
| 2957 unittest.test("method--list", () { |
| 2958 |
| 2959 var mock = new HttpServerMock(); |
| 2960 api.AppsAuthorizedDomainsResourceApi res = new api.AppengineApi(mock).apps
.authorizedDomains; |
| 2961 var arg_appsId = "foo"; |
| 2962 var arg_pageSize = 42; |
| 2963 var arg_pageToken = "foo"; |
| 2964 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2965 var path = (req.url).path; |
| 2966 var pathOffset = 0; |
| 2967 var index; |
| 2968 var subPart; |
| 2969 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2970 pathOffset += 1; |
| 2971 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
| 2972 pathOffset += 12; |
| 2973 index = path.indexOf("/authorizedDomains", pathOffset); |
| 2974 unittest.expect(index >= 0, unittest.isTrue); |
| 2975 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2976 pathOffset = index; |
| 2977 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 2978 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/authorizedDomains")); |
| 2979 pathOffset += 18; |
| 2980 |
| 2981 var query = (req.url).query; |
| 2982 var queryOffset = 0; |
| 2983 var queryMap = {}; |
| 2984 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2985 parseBool(n) { |
| 2986 if (n == "true") return true; |
| 2987 if (n == "false") return false; |
| 2988 if (n == null) return null; |
| 2989 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2990 } |
| 2991 if (query.length > 0) { |
| 2992 for (var part in query.split("&")) { |
| 2993 var keyvalue = part.split("="); |
| 2994 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2995 } |
| 2996 } |
| 2997 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2998 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2999 |
| 3000 |
| 3001 var h = { |
| 3002 "content-type" : "application/json; charset=utf-8", |
| 3003 }; |
| 3004 var resp = convert.JSON.encode(buildListAuthorizedDomainsResponse()); |
| 3005 return new async.Future.value(stringResponse(200, h, resp)); |
| 3006 }), true); |
| 3007 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ListAuthorizedDomainsResponse response) { |
| 3008 checkListAuthorizedDomainsResponse(response); |
| 3009 }))); |
| 3010 }); |
| 3011 |
| 3012 }); |
| 3013 |
| 3014 |
| 3015 unittest.group("resource-AppsDomainMappingsResourceApi", () { |
| 3016 unittest.test("method--create", () { |
| 3017 |
| 3018 var mock = new HttpServerMock(); |
| 3019 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do
mainMappings; |
| 3020 var arg_request = buildDomainMapping(); |
| 3021 var arg_appsId = "foo"; |
| 3022 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3023 var obj = new api.DomainMapping.fromJson(json); |
| 3024 checkDomainMapping(obj); |
| 3025 |
| 3026 var path = (req.url).path; |
| 3027 var pathOffset = 0; |
| 3028 var index; |
| 3029 var subPart; |
| 3030 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3031 pathOffset += 1; |
| 3032 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
| 3033 pathOffset += 12; |
| 3034 index = path.indexOf("/domainMappings", pathOffset); |
| 3035 unittest.expect(index >= 0, unittest.isTrue); |
| 3036 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3037 pathOffset = index; |
| 3038 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 3039 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/domainMappings")); |
| 3040 pathOffset += 15; |
| 3041 |
| 3042 var query = (req.url).query; |
| 3043 var queryOffset = 0; |
| 3044 var queryMap = {}; |
| 3045 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3046 parseBool(n) { |
| 3047 if (n == "true") return true; |
| 3048 if (n == "false") return false; |
| 3049 if (n == null) return null; |
| 3050 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3051 } |
| 3052 if (query.length > 0) { |
| 3053 for (var part in query.split("&")) { |
| 3054 var keyvalue = part.split("="); |
| 3055 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3056 } |
| 3057 } |
| 3058 |
| 3059 |
| 3060 var h = { |
| 3061 "content-type" : "application/json; charset=utf-8", |
| 3062 }; |
| 3063 var resp = convert.JSON.encode(buildOperation()); |
| 3064 return new async.Future.value(stringResponse(200, h, resp)); |
| 3065 }), true); |
| 3066 res.create(arg_request, arg_appsId).then(unittest.expectAsync(((api.Operat
ion response) { |
| 3067 checkOperation(response); |
| 3068 }))); |
| 3069 }); |
| 3070 |
| 3071 unittest.test("method--delete", () { |
| 3072 |
| 3073 var mock = new HttpServerMock(); |
| 3074 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do
mainMappings; |
| 3075 var arg_appsId = "foo"; |
| 3076 var arg_domainMappingsId = "foo"; |
| 3077 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3078 var path = (req.url).path; |
| 3079 var pathOffset = 0; |
| 3080 var index; |
| 3081 var subPart; |
| 3082 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3083 pathOffset += 1; |
| 3084 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
| 3085 pathOffset += 12; |
| 3086 index = path.indexOf("/domainMappings/", pathOffset); |
| 3087 unittest.expect(index >= 0, unittest.isTrue); |
| 3088 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3089 pathOffset = index; |
| 3090 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 3091 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/domainMappings/")); |
| 3092 pathOffset += 16; |
| 3093 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 3094 pathOffset = path.length; |
| 3095 unittest.expect(subPart, unittest.equals("$arg_domainMappingsId")); |
| 3096 |
| 3097 var query = (req.url).query; |
| 3098 var queryOffset = 0; |
| 3099 var queryMap = {}; |
| 3100 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3101 parseBool(n) { |
| 3102 if (n == "true") return true; |
| 3103 if (n == "false") return false; |
| 3104 if (n == null) return null; |
| 3105 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3106 } |
| 3107 if (query.length > 0) { |
| 3108 for (var part in query.split("&")) { |
| 3109 var keyvalue = part.split("="); |
| 3110 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3111 } |
| 3112 } |
| 3113 |
| 3114 |
| 3115 var h = { |
| 3116 "content-type" : "application/json; charset=utf-8", |
| 3117 }; |
| 3118 var resp = convert.JSON.encode(buildOperation()); |
| 3119 return new async.Future.value(stringResponse(200, h, resp)); |
| 3120 }), true); |
| 3121 res.delete(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync(((a
pi.Operation response) { |
| 3122 checkOperation(response); |
| 3123 }))); |
| 3124 }); |
| 3125 |
| 3126 unittest.test("method--get", () { |
| 3127 |
| 3128 var mock = new HttpServerMock(); |
| 3129 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do
mainMappings; |
| 3130 var arg_appsId = "foo"; |
| 3131 var arg_domainMappingsId = "foo"; |
| 3132 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3133 var path = (req.url).path; |
| 3134 var pathOffset = 0; |
| 3135 var index; |
| 3136 var subPart; |
| 3137 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3138 pathOffset += 1; |
| 3139 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
| 3140 pathOffset += 12; |
| 3141 index = path.indexOf("/domainMappings/", pathOffset); |
| 3142 unittest.expect(index >= 0, unittest.isTrue); |
| 3143 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3144 pathOffset = index; |
| 3145 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 3146 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/domainMappings/")); |
| 3147 pathOffset += 16; |
| 3148 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 3149 pathOffset = path.length; |
| 3150 unittest.expect(subPart, unittest.equals("$arg_domainMappingsId")); |
| 3151 |
| 3152 var query = (req.url).query; |
| 3153 var queryOffset = 0; |
| 3154 var queryMap = {}; |
| 3155 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3156 parseBool(n) { |
| 3157 if (n == "true") return true; |
| 3158 if (n == "false") return false; |
| 3159 if (n == null) return null; |
| 3160 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3161 } |
| 3162 if (query.length > 0) { |
| 3163 for (var part in query.split("&")) { |
| 3164 var keyvalue = part.split("="); |
| 3165 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3166 } |
| 3167 } |
| 3168 |
| 3169 |
| 3170 var h = { |
| 3171 "content-type" : "application/json; charset=utf-8", |
| 3172 }; |
| 3173 var resp = convert.JSON.encode(buildDomainMapping()); |
| 3174 return new async.Future.value(stringResponse(200, h, resp)); |
| 3175 }), true); |
| 3176 res.get(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync(((api.
DomainMapping response) { |
| 3177 checkDomainMapping(response); |
| 3178 }))); |
| 3179 }); |
| 3180 |
| 3181 unittest.test("method--list", () { |
| 3182 |
| 3183 var mock = new HttpServerMock(); |
| 3184 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do
mainMappings; |
| 3185 var arg_appsId = "foo"; |
| 3186 var arg_pageSize = 42; |
| 3187 var arg_pageToken = "foo"; |
| 3188 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3189 var path = (req.url).path; |
| 3190 var pathOffset = 0; |
| 3191 var index; |
| 3192 var subPart; |
| 3193 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3194 pathOffset += 1; |
| 3195 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
| 3196 pathOffset += 12; |
| 3197 index = path.indexOf("/domainMappings", pathOffset); |
| 3198 unittest.expect(index >= 0, unittest.isTrue); |
| 3199 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3200 pathOffset = index; |
| 3201 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 3202 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/domainMappings")); |
| 3203 pathOffset += 15; |
| 3204 |
| 3205 var query = (req.url).query; |
| 3206 var queryOffset = 0; |
| 3207 var queryMap = {}; |
2412 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3208 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2413 parseBool(n) { | 3209 parseBool(n) { |
2414 if (n == "true") return true; | 3210 if (n == "true") return true; |
2415 if (n == "false") return false; | 3211 if (n == "false") return false; |
2416 if (n == null) return null; | 3212 if (n == null) return null; |
2417 throw new core.ArgumentError("Invalid boolean: $n"); | 3213 throw new core.ArgumentError("Invalid boolean: $n"); |
2418 } | 3214 } |
2419 if (query.length > 0) { | 3215 if (query.length > 0) { |
2420 for (var part in query.split("&")) { | 3216 for (var part in query.split("&")) { |
2421 var keyvalue = part.split("="); | 3217 var keyvalue = part.split("="); |
2422 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3218 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2423 } | 3219 } |
2424 } | 3220 } |
| 3221 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2425 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3222 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2426 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2427 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
2428 | 3223 |
2429 | 3224 |
2430 var h = { | 3225 var h = { |
| 3226 "content-type" : "application/json; charset=utf-8", |
| 3227 }; |
| 3228 var resp = convert.JSON.encode(buildListDomainMappingsResponse()); |
| 3229 return new async.Future.value(stringResponse(200, h, resp)); |
| 3230 }), true); |
| 3231 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ListDomainMappingsResponse response) { |
| 3232 checkListDomainMappingsResponse(response); |
| 3233 }))); |
| 3234 }); |
| 3235 |
| 3236 unittest.test("method--patch", () { |
| 3237 |
| 3238 var mock = new HttpServerMock(); |
| 3239 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do
mainMappings; |
| 3240 var arg_request = buildDomainMapping(); |
| 3241 var arg_appsId = "foo"; |
| 3242 var arg_domainMappingsId = "foo"; |
| 3243 var arg_updateMask = "foo"; |
| 3244 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3245 var obj = new api.DomainMapping.fromJson(json); |
| 3246 checkDomainMapping(obj); |
| 3247 |
| 3248 var path = (req.url).path; |
| 3249 var pathOffset = 0; |
| 3250 var index; |
| 3251 var subPart; |
| 3252 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3253 pathOffset += 1; |
| 3254 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
| 3255 pathOffset += 12; |
| 3256 index = path.indexOf("/domainMappings/", pathOffset); |
| 3257 unittest.expect(index >= 0, unittest.isTrue); |
| 3258 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3259 pathOffset = index; |
| 3260 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 3261 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/domainMappings/")); |
| 3262 pathOffset += 16; |
| 3263 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 3264 pathOffset = path.length; |
| 3265 unittest.expect(subPart, unittest.equals("$arg_domainMappingsId")); |
| 3266 |
| 3267 var query = (req.url).query; |
| 3268 var queryOffset = 0; |
| 3269 var queryMap = {}; |
| 3270 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3271 parseBool(n) { |
| 3272 if (n == "true") return true; |
| 3273 if (n == "false") return false; |
| 3274 if (n == null) return null; |
| 3275 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3276 } |
| 3277 if (query.length > 0) { |
| 3278 for (var part in query.split("&")) { |
| 3279 var keyvalue = part.split("="); |
| 3280 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3281 } |
| 3282 } |
| 3283 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
| 3284 |
| 3285 |
| 3286 var h = { |
| 3287 "content-type" : "application/json; charset=utf-8", |
| 3288 }; |
| 3289 var resp = convert.JSON.encode(buildOperation()); |
| 3290 return new async.Future.value(stringResponse(200, h, resp)); |
| 3291 }), true); |
| 3292 res.patch(arg_request, arg_appsId, arg_domainMappingsId, updateMask: arg_u
pdateMask).then(unittest.expectAsync(((api.Operation response) { |
| 3293 checkOperation(response); |
| 3294 }))); |
| 3295 }); |
| 3296 |
| 3297 }); |
| 3298 |
| 3299 |
| 3300 unittest.group("resource-AppsLocationsResourceApi", () { |
| 3301 unittest.test("method--get", () { |
| 3302 |
| 3303 var mock = new HttpServerMock(); |
| 3304 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; |
| 3305 var arg_appsId = "foo"; |
| 3306 var arg_locationsId = "foo"; |
| 3307 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3308 var path = (req.url).path; |
| 3309 var pathOffset = 0; |
| 3310 var index; |
| 3311 var subPart; |
| 3312 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3313 pathOffset += 1; |
| 3314 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
| 3315 pathOffset += 12; |
| 3316 index = path.indexOf("/locations/", pathOffset); |
| 3317 unittest.expect(index >= 0, unittest.isTrue); |
| 3318 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3319 pathOffset = index; |
| 3320 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 3321 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); |
| 3322 pathOffset += 11; |
| 3323 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 3324 pathOffset = path.length; |
| 3325 unittest.expect(subPart, unittest.equals("$arg_locationsId")); |
| 3326 |
| 3327 var query = (req.url).query; |
| 3328 var queryOffset = 0; |
| 3329 var queryMap = {}; |
| 3330 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3331 parseBool(n) { |
| 3332 if (n == "true") return true; |
| 3333 if (n == "false") return false; |
| 3334 if (n == null) return null; |
| 3335 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3336 } |
| 3337 if (query.length > 0) { |
| 3338 for (var part in query.split("&")) { |
| 3339 var keyvalue = part.split("="); |
| 3340 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3341 } |
| 3342 } |
| 3343 |
| 3344 |
| 3345 var h = { |
| 3346 "content-type" : "application/json; charset=utf-8", |
| 3347 }; |
| 3348 var resp = convert.JSON.encode(buildLocation()); |
| 3349 return new async.Future.value(stringResponse(200, h, resp)); |
| 3350 }), true); |
| 3351 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Locat
ion response) { |
| 3352 checkLocation(response); |
| 3353 }))); |
| 3354 }); |
| 3355 |
| 3356 unittest.test("method--list", () { |
| 3357 |
| 3358 var mock = new HttpServerMock(); |
| 3359 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio
ns; |
| 3360 var arg_appsId = "foo"; |
| 3361 var arg_filter = "foo"; |
| 3362 var arg_pageSize = 42; |
| 3363 var arg_pageToken = "foo"; |
| 3364 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3365 var path = (req.url).path; |
| 3366 var pathOffset = 0; |
| 3367 var index; |
| 3368 var subPart; |
| 3369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3370 pathOffset += 1; |
| 3371 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
| 3372 pathOffset += 12; |
| 3373 index = path.indexOf("/locations", pathOffset); |
| 3374 unittest.expect(index >= 0, unittest.isTrue); |
| 3375 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3376 pathOffset = index; |
| 3377 unittest.expect(subPart, unittest.equals("$arg_appsId")); |
| 3378 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/locations")); |
| 3379 pathOffset += 10; |
| 3380 |
| 3381 var query = (req.url).query; |
| 3382 var queryOffset = 0; |
| 3383 var queryMap = {}; |
| 3384 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3385 parseBool(n) { |
| 3386 if (n == "true") return true; |
| 3387 if (n == "false") return false; |
| 3388 if (n == null) return null; |
| 3389 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3390 } |
| 3391 if (query.length > 0) { |
| 3392 for (var part in query.split("&")) { |
| 3393 var keyvalue = part.split("="); |
| 3394 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3395 } |
| 3396 } |
| 3397 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 3398 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 3399 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 3400 |
| 3401 |
| 3402 var h = { |
2431 "content-type" : "application/json; charset=utf-8", | 3403 "content-type" : "application/json; charset=utf-8", |
2432 }; | 3404 }; |
2433 var resp = convert.JSON.encode(buildListLocationsResponse()); | 3405 var resp = convert.JSON.encode(buildListLocationsResponse()); |
2434 return new async.Future.value(stringResponse(200, h, resp)); | 3406 return new async.Future.value(stringResponse(200, h, resp)); |
2435 }), true); | 3407 }), true); |
2436 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize, fil
ter: arg_filter).then(unittest.expectAsync(((api.ListLocationsResponse response)
{ | 3408 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListLocationsResponse response)
{ |
2437 checkListLocationsResponse(response); | 3409 checkListLocationsResponse(response); |
2438 }))); | 3410 }))); |
2439 }); | 3411 }); |
2440 | 3412 |
2441 }); | 3413 }); |
2442 | 3414 |
2443 | 3415 |
2444 unittest.group("resource-AppsOperationsResourceApi", () { | 3416 unittest.group("resource-AppsOperationsResourceApi", () { |
2445 unittest.test("method--get", () { | 3417 unittest.test("method--get", () { |
2446 | 3418 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2496 checkOperation(response); | 3468 checkOperation(response); |
2497 }))); | 3469 }))); |
2498 }); | 3470 }); |
2499 | 3471 |
2500 unittest.test("method--list", () { | 3472 unittest.test("method--list", () { |
2501 | 3473 |
2502 var mock = new HttpServerMock(); | 3474 var mock = new HttpServerMock(); |
2503 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat
ions; | 3475 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat
ions; |
2504 var arg_appsId = "foo"; | 3476 var arg_appsId = "foo"; |
2505 var arg_filter = "foo"; | 3477 var arg_filter = "foo"; |
| 3478 var arg_pageSize = 42; |
2506 var arg_pageToken = "foo"; | 3479 var arg_pageToken = "foo"; |
2507 var arg_pageSize = 42; | |
2508 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2509 var path = (req.url).path; | 3481 var path = (req.url).path; |
2510 var pathOffset = 0; | 3482 var pathOffset = 0; |
2511 var index; | 3483 var index; |
2512 var subPart; | 3484 var subPart; |
2513 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2514 pathOffset += 1; | 3486 pathOffset += 1; |
2515 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); | 3487 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
2516 pathOffset += 12; | 3488 pathOffset += 12; |
2517 index = path.indexOf("/operations", pathOffset); | 3489 index = path.indexOf("/operations", pathOffset); |
(...skipping 14 matching lines...) Expand all Loading... |
2532 if (n == null) return null; | 3504 if (n == null) return null; |
2533 throw new core.ArgumentError("Invalid boolean: $n"); | 3505 throw new core.ArgumentError("Invalid boolean: $n"); |
2534 } | 3506 } |
2535 if (query.length > 0) { | 3507 if (query.length > 0) { |
2536 for (var part in query.split("&")) { | 3508 for (var part in query.split("&")) { |
2537 var keyvalue = part.split("="); | 3509 var keyvalue = part.split("="); |
2538 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3510 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2539 } | 3511 } |
2540 } | 3512 } |
2541 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 3513 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 3514 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2542 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3515 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2543 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2544 | 3516 |
2545 | 3517 |
2546 var h = { | 3518 var h = { |
2547 "content-type" : "application/json; charset=utf-8", | 3519 "content-type" : "application/json; charset=utf-8", |
2548 }; | 3520 }; |
2549 var resp = convert.JSON.encode(buildListOperationsResponse()); | 3521 var resp = convert.JSON.encode(buildListOperationsResponse()); |
2550 return new async.Future.value(stringResponse(200, h, resp)); | 3522 return new async.Future.value(stringResponse(200, h, resp)); |
2551 }), true); | 3523 }), true); |
2552 res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSiz
e: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response
) { | 3524 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { |
2553 checkListOperationsResponse(response); | 3525 checkListOperationsResponse(response); |
2554 }))); | 3526 }))); |
2555 }); | 3527 }); |
2556 | 3528 |
2557 }); | 3529 }); |
2558 | 3530 |
2559 | 3531 |
2560 unittest.group("resource-AppsServicesResourceApi", () { | 3532 unittest.group("resource-AppsServicesResourceApi", () { |
2561 unittest.test("method--delete", () { | 3533 unittest.test("method--delete", () { |
2562 | 3534 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2666 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Servic
e response) { | 3638 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Servic
e response) { |
2667 checkService(response); | 3639 checkService(response); |
2668 }))); | 3640 }))); |
2669 }); | 3641 }); |
2670 | 3642 |
2671 unittest.test("method--list", () { | 3643 unittest.test("method--list", () { |
2672 | 3644 |
2673 var mock = new HttpServerMock(); | 3645 var mock = new HttpServerMock(); |
2674 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; | 3646 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; |
2675 var arg_appsId = "foo"; | 3647 var arg_appsId = "foo"; |
| 3648 var arg_pageSize = 42; |
2676 var arg_pageToken = "foo"; | 3649 var arg_pageToken = "foo"; |
2677 var arg_pageSize = 42; | |
2678 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3650 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2679 var path = (req.url).path; | 3651 var path = (req.url).path; |
2680 var pathOffset = 0; | 3652 var pathOffset = 0; |
2681 var index; | 3653 var index; |
2682 var subPart; | 3654 var subPart; |
2683 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3655 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2684 pathOffset += 1; | 3656 pathOffset += 1; |
2685 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); | 3657 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
2686 pathOffset += 12; | 3658 pathOffset += 12; |
2687 index = path.indexOf("/services", pathOffset); | 3659 index = path.indexOf("/services", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
2701 if (n == "false") return false; | 3673 if (n == "false") return false; |
2702 if (n == null) return null; | 3674 if (n == null) return null; |
2703 throw new core.ArgumentError("Invalid boolean: $n"); | 3675 throw new core.ArgumentError("Invalid boolean: $n"); |
2704 } | 3676 } |
2705 if (query.length > 0) { | 3677 if (query.length > 0) { |
2706 for (var part in query.split("&")) { | 3678 for (var part in query.split("&")) { |
2707 var keyvalue = part.split("="); | 3679 var keyvalue = part.split("="); |
2708 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3680 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2709 } | 3681 } |
2710 } | 3682 } |
| 3683 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2711 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3684 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2712 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2713 | 3685 |
2714 | 3686 |
2715 var h = { | 3687 var h = { |
2716 "content-type" : "application/json; charset=utf-8", | 3688 "content-type" : "application/json; charset=utf-8", |
2717 }; | 3689 }; |
2718 var resp = convert.JSON.encode(buildListServicesResponse()); | 3690 var resp = convert.JSON.encode(buildListServicesResponse()); |
2719 return new async.Future.value(stringResponse(200, h, resp)); | 3691 return new async.Future.value(stringResponse(200, h, resp)); |
2720 }), true); | 3692 }), true); |
2721 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the
n(unittest.expectAsync(((api.ListServicesResponse response) { | 3693 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ListServicesResponse response) { |
2722 checkListServicesResponse(response); | 3694 checkListServicesResponse(response); |
2723 }))); | 3695 }))); |
2724 }); | 3696 }); |
2725 | 3697 |
2726 unittest.test("method--patch", () { | 3698 unittest.test("method--patch", () { |
2727 | 3699 |
2728 var mock = new HttpServerMock(); | 3700 var mock = new HttpServerMock(); |
2729 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; | 3701 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services
; |
2730 var arg_request = buildService(); | 3702 var arg_request = buildService(); |
2731 var arg_appsId = "foo"; | 3703 var arg_appsId = "foo"; |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2980 checkVersion(response); | 3952 checkVersion(response); |
2981 }))); | 3953 }))); |
2982 }); | 3954 }); |
2983 | 3955 |
2984 unittest.test("method--list", () { | 3956 unittest.test("method--list", () { |
2985 | 3957 |
2986 var mock = new HttpServerMock(); | 3958 var mock = new HttpServerMock(); |
2987 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.
services.versions; | 3959 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.
services.versions; |
2988 var arg_appsId = "foo"; | 3960 var arg_appsId = "foo"; |
2989 var arg_servicesId = "foo"; | 3961 var arg_servicesId = "foo"; |
| 3962 var arg_view = "foo"; |
| 3963 var arg_pageSize = 42; |
2990 var arg_pageToken = "foo"; | 3964 var arg_pageToken = "foo"; |
2991 var arg_pageSize = 42; | |
2992 var arg_view = "foo"; | |
2993 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3965 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2994 var path = (req.url).path; | 3966 var path = (req.url).path; |
2995 var pathOffset = 0; | 3967 var pathOffset = 0; |
2996 var index; | 3968 var index; |
2997 var subPart; | 3969 var subPart; |
2998 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3970 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2999 pathOffset += 1; | 3971 pathOffset += 1; |
3000 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); | 3972 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
3001 pathOffset += 12; | 3973 pathOffset += 12; |
3002 index = path.indexOf("/services/", pathOffset); | 3974 index = path.indexOf("/services/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
3023 if (n == "false") return false; | 3995 if (n == "false") return false; |
3024 if (n == null) return null; | 3996 if (n == null) return null; |
3025 throw new core.ArgumentError("Invalid boolean: $n"); | 3997 throw new core.ArgumentError("Invalid boolean: $n"); |
3026 } | 3998 } |
3027 if (query.length > 0) { | 3999 if (query.length > 0) { |
3028 for (var part in query.split("&")) { | 4000 for (var part in query.split("&")) { |
3029 var keyvalue = part.split("="); | 4001 var keyvalue = part.split("="); |
3030 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4002 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3031 } | 4003 } |
3032 } | 4004 } |
| 4005 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
| 4006 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3033 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4007 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3034 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
3035 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | |
3036 | 4008 |
3037 | 4009 |
3038 var h = { | 4010 var h = { |
3039 "content-type" : "application/json; charset=utf-8", | 4011 "content-type" : "application/json; charset=utf-8", |
3040 }; | 4012 }; |
3041 var resp = convert.JSON.encode(buildListVersionsResponse()); | 4013 var resp = convert.JSON.encode(buildListVersionsResponse()); |
3042 return new async.Future.value(stringResponse(200, h, resp)); | 4014 return new async.Future.value(stringResponse(200, h, resp)); |
3043 }), true); | 4015 }), true); |
3044 res.list(arg_appsId, arg_servicesId, pageToken: arg_pageToken, pageSize: a
rg_pageSize, view: arg_view).then(unittest.expectAsync(((api.ListVersionsRespons
e response) { | 4016 res.list(arg_appsId, arg_servicesId, view: arg_view, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListVersionsRespons
e response) { |
3045 checkListVersionsResponse(response); | 4017 checkListVersionsResponse(response); |
3046 }))); | 4018 }))); |
3047 }); | 4019 }); |
3048 | 4020 |
3049 unittest.test("method--patch", () { | 4021 unittest.test("method--patch", () { |
3050 | 4022 |
3051 var mock = new HttpServerMock(); | 4023 var mock = new HttpServerMock(); |
3052 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.
services.versions; | 4024 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps.
services.versions; |
3053 var arg_request = buildVersion(); | 4025 var arg_request = buildVersion(); |
3054 var arg_appsId = "foo"; | 4026 var arg_appsId = "foo"; |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3340 }))); | 4312 }))); |
3341 }); | 4313 }); |
3342 | 4314 |
3343 unittest.test("method--list", () { | 4315 unittest.test("method--list", () { |
3344 | 4316 |
3345 var mock = new HttpServerMock(); | 4317 var mock = new HttpServerMock(); |
3346 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo
ck).apps.services.versions.instances; | 4318 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo
ck).apps.services.versions.instances; |
3347 var arg_appsId = "foo"; | 4319 var arg_appsId = "foo"; |
3348 var arg_servicesId = "foo"; | 4320 var arg_servicesId = "foo"; |
3349 var arg_versionsId = "foo"; | 4321 var arg_versionsId = "foo"; |
| 4322 var arg_pageSize = 42; |
3350 var arg_pageToken = "foo"; | 4323 var arg_pageToken = "foo"; |
3351 var arg_pageSize = 42; | |
3352 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4324 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3353 var path = (req.url).path; | 4325 var path = (req.url).path; |
3354 var pathOffset = 0; | 4326 var pathOffset = 0; |
3355 var index; | 4327 var index; |
3356 var subPart; | 4328 var subPart; |
3357 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4329 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3358 pathOffset += 1; | 4330 pathOffset += 1; |
3359 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); | 4331 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1beta/apps/")); |
3360 pathOffset += 12; | 4332 pathOffset += 12; |
3361 index = path.indexOf("/services/", pathOffset); | 4333 index = path.indexOf("/services/", pathOffset); |
(...skipping 27 matching lines...) Expand all Loading... |
3389 if (n == "false") return false; | 4361 if (n == "false") return false; |
3390 if (n == null) return null; | 4362 if (n == null) return null; |
3391 throw new core.ArgumentError("Invalid boolean: $n"); | 4363 throw new core.ArgumentError("Invalid boolean: $n"); |
3392 } | 4364 } |
3393 if (query.length > 0) { | 4365 if (query.length > 0) { |
3394 for (var part in query.split("&")) { | 4366 for (var part in query.split("&")) { |
3395 var keyvalue = part.split("="); | 4367 var keyvalue = part.split("="); |
3396 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4368 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3397 } | 4369 } |
3398 } | 4370 } |
| 4371 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
3399 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4372 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3400 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
3401 | 4373 |
3402 | 4374 |
3403 var h = { | 4375 var h = { |
3404 "content-type" : "application/json; charset=utf-8", | 4376 "content-type" : "application/json; charset=utf-8", |
3405 }; | 4377 }; |
3406 var resp = convert.JSON.encode(buildListInstancesResponse()); | 4378 var resp = convert.JSON.encode(buildListInstancesResponse()); |
3407 return new async.Future.value(stringResponse(200, h, resp)); | 4379 return new async.Future.value(stringResponse(200, h, resp)); |
3408 }), true); | 4380 }), true); |
3409 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageTo
ken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { | 4381 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { |
3410 checkListInstancesResponse(response); | 4382 checkListInstancesResponse(response); |
3411 }))); | 4383 }))); |
3412 }); | 4384 }); |
3413 | 4385 |
3414 }); | 4386 }); |
3415 | 4387 |
3416 | 4388 |
3417 } | 4389 } |
3418 | 4390 |
OLD | NEW |