OLD | NEW |
1 library googleapis_beta.manager.v1beta2.test; | 1 library googleapis_beta.manager.v1beta2.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 checkAccessConfig(api.AccessConfig o) { | 67 checkAccessConfig(api.AccessConfig o) { |
68 buildCounterAccessConfig++; | 68 buildCounterAccessConfig++; |
69 if (buildCounterAccessConfig < 3) { | 69 if (buildCounterAccessConfig < 3) { |
70 unittest.expect(o.name, unittest.equals('foo')); | 70 unittest.expect(o.name, unittest.equals('foo')); |
71 unittest.expect(o.natIp, unittest.equals('foo')); | 71 unittest.expect(o.natIp, unittest.equals('foo')); |
72 unittest.expect(o.type, unittest.equals('foo')); | 72 unittest.expect(o.type, unittest.equals('foo')); |
73 } | 73 } |
74 buildCounterAccessConfig--; | 74 buildCounterAccessConfig--; |
75 } | 75 } |
76 | 76 |
77 buildUnnamed1721() { | 77 buildUnnamed2486() { |
78 var o = new core.List<core.String>(); | 78 var o = new core.List<core.String>(); |
79 o.add("foo"); | 79 o.add("foo"); |
80 o.add("foo"); | 80 o.add("foo"); |
81 return o; | 81 return o; |
82 } | 82 } |
83 | 83 |
84 checkUnnamed1721(core.List<core.String> o) { | 84 checkUnnamed2486(core.List<core.String> o) { |
85 unittest.expect(o, unittest.hasLength(2)); | 85 unittest.expect(o, unittest.hasLength(2)); |
86 unittest.expect(o[0], unittest.equals('foo')); | 86 unittest.expect(o[0], unittest.equals('foo')); |
87 unittest.expect(o[1], unittest.equals('foo')); | 87 unittest.expect(o[1], unittest.equals('foo')); |
88 } | 88 } |
89 | 89 |
90 core.int buildCounterAction = 0; | 90 core.int buildCounterAction = 0; |
91 buildAction() { | 91 buildAction() { |
92 var o = new api.Action(); | 92 var o = new api.Action(); |
93 buildCounterAction++; | 93 buildCounterAction++; |
94 if (buildCounterAction < 3) { | 94 if (buildCounterAction < 3) { |
95 o.commands = buildUnnamed1721(); | 95 o.commands = buildUnnamed2486(); |
96 o.timeoutMs = 42; | 96 o.timeoutMs = 42; |
97 } | 97 } |
98 buildCounterAction--; | 98 buildCounterAction--; |
99 return o; | 99 return o; |
100 } | 100 } |
101 | 101 |
102 checkAction(api.Action o) { | 102 checkAction(api.Action o) { |
103 buildCounterAction++; | 103 buildCounterAction++; |
104 if (buildCounterAction < 3) { | 104 if (buildCounterAction < 3) { |
105 checkUnnamed1721(o.commands); | 105 checkUnnamed2486(o.commands); |
106 unittest.expect(o.timeoutMs, unittest.equals(42)); | 106 unittest.expect(o.timeoutMs, unittest.equals(42)); |
107 } | 107 } |
108 buildCounterAction--; | 108 buildCounterAction--; |
109 } | 109 } |
110 | 110 |
111 buildUnnamed1722() { | 111 buildUnnamed2487() { |
112 var o = new core.List<core.String>(); | 112 var o = new core.List<core.String>(); |
113 o.add("foo"); | 113 o.add("foo"); |
114 o.add("foo"); | 114 o.add("foo"); |
115 return o; | 115 return o; |
116 } | 116 } |
117 | 117 |
118 checkUnnamed1722(core.List<core.String> o) { | 118 checkUnnamed2487(core.List<core.String> o) { |
119 unittest.expect(o, unittest.hasLength(2)); | 119 unittest.expect(o, unittest.hasLength(2)); |
120 unittest.expect(o[0], unittest.equals('foo')); | 120 unittest.expect(o[0], unittest.equals('foo')); |
121 unittest.expect(o[1], unittest.equals('foo')); | 121 unittest.expect(o[1], unittest.equals('foo')); |
122 } | 122 } |
123 | 123 |
124 core.int buildCounterAllowedRule = 0; | 124 core.int buildCounterAllowedRule = 0; |
125 buildAllowedRule() { | 125 buildAllowedRule() { |
126 var o = new api.AllowedRule(); | 126 var o = new api.AllowedRule(); |
127 buildCounterAllowedRule++; | 127 buildCounterAllowedRule++; |
128 if (buildCounterAllowedRule < 3) { | 128 if (buildCounterAllowedRule < 3) { |
129 o.IPProtocol = "foo"; | 129 o.IPProtocol = "foo"; |
130 o.ports = buildUnnamed1722(); | 130 o.ports = buildUnnamed2487(); |
131 } | 131 } |
132 buildCounterAllowedRule--; | 132 buildCounterAllowedRule--; |
133 return o; | 133 return o; |
134 } | 134 } |
135 | 135 |
136 checkAllowedRule(api.AllowedRule o) { | 136 checkAllowedRule(api.AllowedRule o) { |
137 buildCounterAllowedRule++; | 137 buildCounterAllowedRule++; |
138 if (buildCounterAllowedRule < 3) { | 138 if (buildCounterAllowedRule < 3) { |
139 unittest.expect(o.IPProtocol, unittest.equals('foo')); | 139 unittest.expect(o.IPProtocol, unittest.equals('foo')); |
140 checkUnnamed1722(o.ports); | 140 checkUnnamed2487(o.ports); |
141 } | 141 } |
142 buildCounterAllowedRule--; | 142 buildCounterAllowedRule--; |
143 } | 143 } |
144 | 144 |
145 core.int buildCounterAutoscalingModule = 0; | 145 core.int buildCounterAutoscalingModule = 0; |
146 buildAutoscalingModule() { | 146 buildAutoscalingModule() { |
147 var o = new api.AutoscalingModule(); | 147 var o = new api.AutoscalingModule(); |
148 buildCounterAutoscalingModule++; | 148 buildCounterAutoscalingModule++; |
149 if (buildCounterAutoscalingModule < 3) { | 149 if (buildCounterAutoscalingModule < 3) { |
150 o.coolDownPeriodSec = 42; | 150 o.coolDownPeriodSec = 42; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 checkDeployState(api.DeployState o) { | 207 checkDeployState(api.DeployState o) { |
208 buildCounterDeployState++; | 208 buildCounterDeployState++; |
209 if (buildCounterDeployState < 3) { | 209 if (buildCounterDeployState < 3) { |
210 unittest.expect(o.details, unittest.equals('foo')); | 210 unittest.expect(o.details, unittest.equals('foo')); |
211 unittest.expect(o.status, unittest.equals('foo')); | 211 unittest.expect(o.status, unittest.equals('foo')); |
212 } | 212 } |
213 buildCounterDeployState--; | 213 buildCounterDeployState--; |
214 } | 214 } |
215 | 215 |
216 buildUnnamed1723() { | 216 buildUnnamed2488() { |
217 var o = new core.Map<core.String, api.ModuleStatus>(); | 217 var o = new core.Map<core.String, api.ModuleStatus>(); |
218 o["x"] = buildModuleStatus(); | 218 o["x"] = buildModuleStatus(); |
219 o["y"] = buildModuleStatus(); | 219 o["y"] = buildModuleStatus(); |
220 return o; | 220 return o; |
221 } | 221 } |
222 | 222 |
223 checkUnnamed1723(core.Map<core.String, api.ModuleStatus> o) { | 223 checkUnnamed2488(core.Map<core.String, api.ModuleStatus> o) { |
224 unittest.expect(o, unittest.hasLength(2)); | 224 unittest.expect(o, unittest.hasLength(2)); |
225 checkModuleStatus(o["x"]); | 225 checkModuleStatus(o["x"]); |
226 checkModuleStatus(o["y"]); | 226 checkModuleStatus(o["y"]); |
227 } | 227 } |
228 | 228 |
229 buildUnnamed1724() { | 229 buildUnnamed2489() { |
230 var o = new core.List<api.ParamOverride>(); | 230 var o = new core.List<api.ParamOverride>(); |
231 o.add(buildParamOverride()); | 231 o.add(buildParamOverride()); |
232 o.add(buildParamOverride()); | 232 o.add(buildParamOverride()); |
233 return o; | 233 return o; |
234 } | 234 } |
235 | 235 |
236 checkUnnamed1724(core.List<api.ParamOverride> o) { | 236 checkUnnamed2489(core.List<api.ParamOverride> o) { |
237 unittest.expect(o, unittest.hasLength(2)); | 237 unittest.expect(o, unittest.hasLength(2)); |
238 checkParamOverride(o[0]); | 238 checkParamOverride(o[0]); |
239 checkParamOverride(o[1]); | 239 checkParamOverride(o[1]); |
240 } | 240 } |
241 | 241 |
242 core.int buildCounterDeployment = 0; | 242 core.int buildCounterDeployment = 0; |
243 buildDeployment() { | 243 buildDeployment() { |
244 var o = new api.Deployment(); | 244 var o = new api.Deployment(); |
245 buildCounterDeployment++; | 245 buildCounterDeployment++; |
246 if (buildCounterDeployment < 3) { | 246 if (buildCounterDeployment < 3) { |
247 o.creationDate = "foo"; | 247 o.creationDate = "foo"; |
248 o.description = "foo"; | 248 o.description = "foo"; |
249 o.modules = buildUnnamed1723(); | 249 o.modules = buildUnnamed2488(); |
250 o.name = "foo"; | 250 o.name = "foo"; |
251 o.overrides = buildUnnamed1724(); | 251 o.overrides = buildUnnamed2489(); |
252 o.state = buildDeployState(); | 252 o.state = buildDeployState(); |
253 o.templateName = "foo"; | 253 o.templateName = "foo"; |
254 } | 254 } |
255 buildCounterDeployment--; | 255 buildCounterDeployment--; |
256 return o; | 256 return o; |
257 } | 257 } |
258 | 258 |
259 checkDeployment(api.Deployment o) { | 259 checkDeployment(api.Deployment o) { |
260 buildCounterDeployment++; | 260 buildCounterDeployment++; |
261 if (buildCounterDeployment < 3) { | 261 if (buildCounterDeployment < 3) { |
262 unittest.expect(o.creationDate, unittest.equals('foo')); | 262 unittest.expect(o.creationDate, unittest.equals('foo')); |
263 unittest.expect(o.description, unittest.equals('foo')); | 263 unittest.expect(o.description, unittest.equals('foo')); |
264 checkUnnamed1723(o.modules); | 264 checkUnnamed2488(o.modules); |
265 unittest.expect(o.name, unittest.equals('foo')); | 265 unittest.expect(o.name, unittest.equals('foo')); |
266 checkUnnamed1724(o.overrides); | 266 checkUnnamed2489(o.overrides); |
267 checkDeployState(o.state); | 267 checkDeployState(o.state); |
268 unittest.expect(o.templateName, unittest.equals('foo')); | 268 unittest.expect(o.templateName, unittest.equals('foo')); |
269 } | 269 } |
270 buildCounterDeployment--; | 270 buildCounterDeployment--; |
271 } | 271 } |
272 | 272 |
273 buildUnnamed1725() { | 273 buildUnnamed2490() { |
274 var o = new core.List<api.Deployment>(); | 274 var o = new core.List<api.Deployment>(); |
275 o.add(buildDeployment()); | 275 o.add(buildDeployment()); |
276 o.add(buildDeployment()); | 276 o.add(buildDeployment()); |
277 return o; | 277 return o; |
278 } | 278 } |
279 | 279 |
280 checkUnnamed1725(core.List<api.Deployment> o) { | 280 checkUnnamed2490(core.List<api.Deployment> o) { |
281 unittest.expect(o, unittest.hasLength(2)); | 281 unittest.expect(o, unittest.hasLength(2)); |
282 checkDeployment(o[0]); | 282 checkDeployment(o[0]); |
283 checkDeployment(o[1]); | 283 checkDeployment(o[1]); |
284 } | 284 } |
285 | 285 |
286 core.int buildCounterDeploymentsListResponse = 0; | 286 core.int buildCounterDeploymentsListResponse = 0; |
287 buildDeploymentsListResponse() { | 287 buildDeploymentsListResponse() { |
288 var o = new api.DeploymentsListResponse(); | 288 var o = new api.DeploymentsListResponse(); |
289 buildCounterDeploymentsListResponse++; | 289 buildCounterDeploymentsListResponse++; |
290 if (buildCounterDeploymentsListResponse < 3) { | 290 if (buildCounterDeploymentsListResponse < 3) { |
291 o.nextPageToken = "foo"; | 291 o.nextPageToken = "foo"; |
292 o.resources = buildUnnamed1725(); | 292 o.resources = buildUnnamed2490(); |
293 } | 293 } |
294 buildCounterDeploymentsListResponse--; | 294 buildCounterDeploymentsListResponse--; |
295 return o; | 295 return o; |
296 } | 296 } |
297 | 297 |
298 checkDeploymentsListResponse(api.DeploymentsListResponse o) { | 298 checkDeploymentsListResponse(api.DeploymentsListResponse o) { |
299 buildCounterDeploymentsListResponse++; | 299 buildCounterDeploymentsListResponse++; |
300 if (buildCounterDeploymentsListResponse < 3) { | 300 if (buildCounterDeploymentsListResponse < 3) { |
301 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 301 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
302 checkUnnamed1725(o.resources); | 302 checkUnnamed2490(o.resources); |
303 } | 303 } |
304 buildCounterDeploymentsListResponse--; | 304 buildCounterDeploymentsListResponse--; |
305 } | 305 } |
306 | 306 |
307 core.int buildCounterDiskAttachment = 0; | 307 core.int buildCounterDiskAttachment = 0; |
308 buildDiskAttachment() { | 308 buildDiskAttachment() { |
309 var o = new api.DiskAttachment(); | 309 var o = new api.DiskAttachment(); |
310 buildCounterDiskAttachment++; | 310 buildCounterDiskAttachment++; |
311 if (buildCounterDiskAttachment < 3) { | 311 if (buildCounterDiskAttachment < 3) { |
312 o.deviceName = "foo"; | 312 o.deviceName = "foo"; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 | 360 |
361 checkExistingDisk(api.ExistingDisk o) { | 361 checkExistingDisk(api.ExistingDisk o) { |
362 buildCounterExistingDisk++; | 362 buildCounterExistingDisk++; |
363 if (buildCounterExistingDisk < 3) { | 363 if (buildCounterExistingDisk < 3) { |
364 checkDiskAttachment(o.attachment); | 364 checkDiskAttachment(o.attachment); |
365 unittest.expect(o.source, unittest.equals('foo')); | 365 unittest.expect(o.source, unittest.equals('foo')); |
366 } | 366 } |
367 buildCounterExistingDisk--; | 367 buildCounterExistingDisk--; |
368 } | 368 } |
369 | 369 |
370 buildUnnamed1726() { | 370 buildUnnamed2491() { |
371 var o = new core.List<api.AllowedRule>(); | 371 var o = new core.List<api.AllowedRule>(); |
372 o.add(buildAllowedRule()); | 372 o.add(buildAllowedRule()); |
373 o.add(buildAllowedRule()); | 373 o.add(buildAllowedRule()); |
374 return o; | 374 return o; |
375 } | 375 } |
376 | 376 |
377 checkUnnamed1726(core.List<api.AllowedRule> o) { | 377 checkUnnamed2491(core.List<api.AllowedRule> o) { |
378 unittest.expect(o, unittest.hasLength(2)); | 378 unittest.expect(o, unittest.hasLength(2)); |
379 checkAllowedRule(o[0]); | 379 checkAllowedRule(o[0]); |
380 checkAllowedRule(o[1]); | 380 checkAllowedRule(o[1]); |
381 } | 381 } |
382 | 382 |
383 buildUnnamed1727() { | 383 buildUnnamed2492() { |
384 var o = new core.List<core.String>(); | 384 var o = new core.List<core.String>(); |
385 o.add("foo"); | 385 o.add("foo"); |
386 o.add("foo"); | 386 o.add("foo"); |
387 return o; | 387 return o; |
388 } | 388 } |
389 | 389 |
390 checkUnnamed1727(core.List<core.String> o) { | 390 checkUnnamed2492(core.List<core.String> o) { |
391 unittest.expect(o, unittest.hasLength(2)); | 391 unittest.expect(o, unittest.hasLength(2)); |
392 unittest.expect(o[0], unittest.equals('foo')); | 392 unittest.expect(o[0], unittest.equals('foo')); |
393 unittest.expect(o[1], unittest.equals('foo')); | 393 unittest.expect(o[1], unittest.equals('foo')); |
394 } | 394 } |
395 | 395 |
396 buildUnnamed1728() { | 396 buildUnnamed2493() { |
397 var o = new core.List<core.String>(); | 397 var o = new core.List<core.String>(); |
398 o.add("foo"); | 398 o.add("foo"); |
399 o.add("foo"); | 399 o.add("foo"); |
400 return o; | 400 return o; |
401 } | 401 } |
402 | 402 |
403 checkUnnamed1728(core.List<core.String> o) { | 403 checkUnnamed2493(core.List<core.String> o) { |
404 unittest.expect(o, unittest.hasLength(2)); | 404 unittest.expect(o, unittest.hasLength(2)); |
405 unittest.expect(o[0], unittest.equals('foo')); | 405 unittest.expect(o[0], unittest.equals('foo')); |
406 unittest.expect(o[1], unittest.equals('foo')); | 406 unittest.expect(o[1], unittest.equals('foo')); |
407 } | 407 } |
408 | 408 |
409 buildUnnamed1729() { | 409 buildUnnamed2494() { |
410 var o = new core.List<core.String>(); | 410 var o = new core.List<core.String>(); |
411 o.add("foo"); | 411 o.add("foo"); |
412 o.add("foo"); | 412 o.add("foo"); |
413 return o; | 413 return o; |
414 } | 414 } |
415 | 415 |
416 checkUnnamed1729(core.List<core.String> o) { | 416 checkUnnamed2494(core.List<core.String> o) { |
417 unittest.expect(o, unittest.hasLength(2)); | 417 unittest.expect(o, unittest.hasLength(2)); |
418 unittest.expect(o[0], unittest.equals('foo')); | 418 unittest.expect(o[0], unittest.equals('foo')); |
419 unittest.expect(o[1], unittest.equals('foo')); | 419 unittest.expect(o[1], unittest.equals('foo')); |
420 } | 420 } |
421 | 421 |
422 core.int buildCounterFirewallModule = 0; | 422 core.int buildCounterFirewallModule = 0; |
423 buildFirewallModule() { | 423 buildFirewallModule() { |
424 var o = new api.FirewallModule(); | 424 var o = new api.FirewallModule(); |
425 buildCounterFirewallModule++; | 425 buildCounterFirewallModule++; |
426 if (buildCounterFirewallModule < 3) { | 426 if (buildCounterFirewallModule < 3) { |
427 o.allowed = buildUnnamed1726(); | 427 o.allowed = buildUnnamed2491(); |
428 o.description = "foo"; | 428 o.description = "foo"; |
429 o.network = "foo"; | 429 o.network = "foo"; |
430 o.sourceRanges = buildUnnamed1727(); | 430 o.sourceRanges = buildUnnamed2492(); |
431 o.sourceTags = buildUnnamed1728(); | 431 o.sourceTags = buildUnnamed2493(); |
432 o.targetTags = buildUnnamed1729(); | 432 o.targetTags = buildUnnamed2494(); |
433 } | 433 } |
434 buildCounterFirewallModule--; | 434 buildCounterFirewallModule--; |
435 return o; | 435 return o; |
436 } | 436 } |
437 | 437 |
438 checkFirewallModule(api.FirewallModule o) { | 438 checkFirewallModule(api.FirewallModule o) { |
439 buildCounterFirewallModule++; | 439 buildCounterFirewallModule++; |
440 if (buildCounterFirewallModule < 3) { | 440 if (buildCounterFirewallModule < 3) { |
441 checkUnnamed1726(o.allowed); | 441 checkUnnamed2491(o.allowed); |
442 unittest.expect(o.description, unittest.equals('foo')); | 442 unittest.expect(o.description, unittest.equals('foo')); |
443 unittest.expect(o.network, unittest.equals('foo')); | 443 unittest.expect(o.network, unittest.equals('foo')); |
444 checkUnnamed1727(o.sourceRanges); | 444 checkUnnamed2492(o.sourceRanges); |
445 checkUnnamed1728(o.sourceTags); | 445 checkUnnamed2493(o.sourceTags); |
446 checkUnnamed1729(o.targetTags); | 446 checkUnnamed2494(o.targetTags); |
447 } | 447 } |
448 buildCounterFirewallModule--; | 448 buildCounterFirewallModule--; |
449 } | 449 } |
450 | 450 |
451 core.int buildCounterFirewallModuleStatus = 0; | 451 core.int buildCounterFirewallModuleStatus = 0; |
452 buildFirewallModuleStatus() { | 452 buildFirewallModuleStatus() { |
453 var o = new api.FirewallModuleStatus(); | 453 var o = new api.FirewallModuleStatus(); |
454 buildCounterFirewallModuleStatus++; | 454 buildCounterFirewallModuleStatus++; |
455 if (buildCounterFirewallModuleStatus < 3) { | 455 if (buildCounterFirewallModuleStatus < 3) { |
456 o.firewallUrl = "foo"; | 456 o.firewallUrl = "foo"; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 } | 512 } |
513 | 513 |
514 checkHealthCheckModuleStatus(api.HealthCheckModuleStatus o) { | 514 checkHealthCheckModuleStatus(api.HealthCheckModuleStatus o) { |
515 buildCounterHealthCheckModuleStatus++; | 515 buildCounterHealthCheckModuleStatus++; |
516 if (buildCounterHealthCheckModuleStatus < 3) { | 516 if (buildCounterHealthCheckModuleStatus < 3) { |
517 unittest.expect(o.healthCheckUrl, unittest.equals('foo')); | 517 unittest.expect(o.healthCheckUrl, unittest.equals('foo')); |
518 } | 518 } |
519 buildCounterHealthCheckModuleStatus--; | 519 buildCounterHealthCheckModuleStatus--; |
520 } | 520 } |
521 | 521 |
522 buildUnnamed1730() { | 522 buildUnnamed2495() { |
523 var o = new core.List<core.String>(); | 523 var o = new core.List<core.String>(); |
524 o.add("foo"); | 524 o.add("foo"); |
525 o.add("foo"); | 525 o.add("foo"); |
526 return o; | 526 return o; |
527 } | 527 } |
528 | 528 |
529 checkUnnamed1730(core.List<core.String> o) { | 529 checkUnnamed2495(core.List<core.String> o) { |
530 unittest.expect(o, unittest.hasLength(2)); | 530 unittest.expect(o, unittest.hasLength(2)); |
531 unittest.expect(o[0], unittest.equals('foo')); | 531 unittest.expect(o[0], unittest.equals('foo')); |
532 unittest.expect(o[1], unittest.equals('foo')); | 532 unittest.expect(o[1], unittest.equals('foo')); |
533 } | 533 } |
534 | 534 |
535 buildUnnamed1731() { | 535 buildUnnamed2496() { |
536 var o = new core.List<core.String>(); | 536 var o = new core.List<core.String>(); |
537 o.add("foo"); | 537 o.add("foo"); |
538 o.add("foo"); | 538 o.add("foo"); |
539 return o; | 539 return o; |
540 } | 540 } |
541 | 541 |
542 checkUnnamed1731(core.List<core.String> o) { | 542 checkUnnamed2496(core.List<core.String> o) { |
543 unittest.expect(o, unittest.hasLength(2)); | 543 unittest.expect(o, unittest.hasLength(2)); |
544 unittest.expect(o[0], unittest.equals('foo')); | 544 unittest.expect(o[0], unittest.equals('foo')); |
545 unittest.expect(o[1], unittest.equals('foo')); | 545 unittest.expect(o[1], unittest.equals('foo')); |
546 } | 546 } |
547 | 547 |
548 core.int buildCounterLbModule = 0; | 548 core.int buildCounterLbModule = 0; |
549 buildLbModule() { | 549 buildLbModule() { |
550 var o = new api.LbModule(); | 550 var o = new api.LbModule(); |
551 buildCounterLbModule++; | 551 buildCounterLbModule++; |
552 if (buildCounterLbModule < 3) { | 552 if (buildCounterLbModule < 3) { |
553 o.description = "foo"; | 553 o.description = "foo"; |
554 o.healthChecks = buildUnnamed1730(); | 554 o.healthChecks = buildUnnamed2495(); |
555 o.ipAddress = "foo"; | 555 o.ipAddress = "foo"; |
556 o.ipProtocol = "foo"; | 556 o.ipProtocol = "foo"; |
557 o.portRange = "foo"; | 557 o.portRange = "foo"; |
558 o.sessionAffinity = "foo"; | 558 o.sessionAffinity = "foo"; |
559 o.targetModules = buildUnnamed1731(); | 559 o.targetModules = buildUnnamed2496(); |
560 } | 560 } |
561 buildCounterLbModule--; | 561 buildCounterLbModule--; |
562 return o; | 562 return o; |
563 } | 563 } |
564 | 564 |
565 checkLbModule(api.LbModule o) { | 565 checkLbModule(api.LbModule o) { |
566 buildCounterLbModule++; | 566 buildCounterLbModule++; |
567 if (buildCounterLbModule < 3) { | 567 if (buildCounterLbModule < 3) { |
568 unittest.expect(o.description, unittest.equals('foo')); | 568 unittest.expect(o.description, unittest.equals('foo')); |
569 checkUnnamed1730(o.healthChecks); | 569 checkUnnamed2495(o.healthChecks); |
570 unittest.expect(o.ipAddress, unittest.equals('foo')); | 570 unittest.expect(o.ipAddress, unittest.equals('foo')); |
571 unittest.expect(o.ipProtocol, unittest.equals('foo')); | 571 unittest.expect(o.ipProtocol, unittest.equals('foo')); |
572 unittest.expect(o.portRange, unittest.equals('foo')); | 572 unittest.expect(o.portRange, unittest.equals('foo')); |
573 unittest.expect(o.sessionAffinity, unittest.equals('foo')); | 573 unittest.expect(o.sessionAffinity, unittest.equals('foo')); |
574 checkUnnamed1731(o.targetModules); | 574 checkUnnamed2496(o.targetModules); |
575 } | 575 } |
576 buildCounterLbModule--; | 576 buildCounterLbModule--; |
577 } | 577 } |
578 | 578 |
579 core.int buildCounterLbModuleStatus = 0; | 579 core.int buildCounterLbModuleStatus = 0; |
580 buildLbModuleStatus() { | 580 buildLbModuleStatus() { |
581 var o = new api.LbModuleStatus(); | 581 var o = new api.LbModuleStatus(); |
582 buildCounterLbModuleStatus++; | 582 buildCounterLbModuleStatus++; |
583 if (buildCounterLbModuleStatus < 3) { | 583 if (buildCounterLbModuleStatus < 3) { |
584 o.forwardingRuleUrl = "foo"; | 584 o.forwardingRuleUrl = "foo"; |
585 o.targetPoolUrl = "foo"; | 585 o.targetPoolUrl = "foo"; |
586 } | 586 } |
587 buildCounterLbModuleStatus--; | 587 buildCounterLbModuleStatus--; |
588 return o; | 588 return o; |
589 } | 589 } |
590 | 590 |
591 checkLbModuleStatus(api.LbModuleStatus o) { | 591 checkLbModuleStatus(api.LbModuleStatus o) { |
592 buildCounterLbModuleStatus++; | 592 buildCounterLbModuleStatus++; |
593 if (buildCounterLbModuleStatus < 3) { | 593 if (buildCounterLbModuleStatus < 3) { |
594 unittest.expect(o.forwardingRuleUrl, unittest.equals('foo')); | 594 unittest.expect(o.forwardingRuleUrl, unittest.equals('foo')); |
595 unittest.expect(o.targetPoolUrl, unittest.equals('foo')); | 595 unittest.expect(o.targetPoolUrl, unittest.equals('foo')); |
596 } | 596 } |
597 buildCounterLbModuleStatus--; | 597 buildCounterLbModuleStatus--; |
598 } | 598 } |
599 | 599 |
600 buildUnnamed1732() { | 600 buildUnnamed2497() { |
601 var o = new core.List<api.MetadataItem>(); | 601 var o = new core.List<api.MetadataItem>(); |
602 o.add(buildMetadataItem()); | 602 o.add(buildMetadataItem()); |
603 o.add(buildMetadataItem()); | 603 o.add(buildMetadataItem()); |
604 return o; | 604 return o; |
605 } | 605 } |
606 | 606 |
607 checkUnnamed1732(core.List<api.MetadataItem> o) { | 607 checkUnnamed2497(core.List<api.MetadataItem> o) { |
608 unittest.expect(o, unittest.hasLength(2)); | 608 unittest.expect(o, unittest.hasLength(2)); |
609 checkMetadataItem(o[0]); | 609 checkMetadataItem(o[0]); |
610 checkMetadataItem(o[1]); | 610 checkMetadataItem(o[1]); |
611 } | 611 } |
612 | 612 |
613 core.int buildCounterMetadata = 0; | 613 core.int buildCounterMetadata = 0; |
614 buildMetadata() { | 614 buildMetadata() { |
615 var o = new api.Metadata(); | 615 var o = new api.Metadata(); |
616 buildCounterMetadata++; | 616 buildCounterMetadata++; |
617 if (buildCounterMetadata < 3) { | 617 if (buildCounterMetadata < 3) { |
618 o.fingerPrint = "foo"; | 618 o.fingerPrint = "foo"; |
619 o.items = buildUnnamed1732(); | 619 o.items = buildUnnamed2497(); |
620 } | 620 } |
621 buildCounterMetadata--; | 621 buildCounterMetadata--; |
622 return o; | 622 return o; |
623 } | 623 } |
624 | 624 |
625 checkMetadata(api.Metadata o) { | 625 checkMetadata(api.Metadata o) { |
626 buildCounterMetadata++; | 626 buildCounterMetadata++; |
627 if (buildCounterMetadata < 3) { | 627 if (buildCounterMetadata < 3) { |
628 unittest.expect(o.fingerPrint, unittest.equals('foo')); | 628 unittest.expect(o.fingerPrint, unittest.equals('foo')); |
629 checkUnnamed1732(o.items); | 629 checkUnnamed2497(o.items); |
630 } | 630 } |
631 buildCounterMetadata--; | 631 buildCounterMetadata--; |
632 } | 632 } |
633 | 633 |
634 core.int buildCounterMetadataItem = 0; | 634 core.int buildCounterMetadataItem = 0; |
635 buildMetadataItem() { | 635 buildMetadataItem() { |
636 var o = new api.MetadataItem(); | 636 var o = new api.MetadataItem(); |
637 buildCounterMetadataItem++; | 637 buildCounterMetadataItem++; |
638 if (buildCounterMetadataItem < 3) { | 638 if (buildCounterMetadataItem < 3) { |
639 o.key = "foo"; | 639 o.key = "foo"; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 checkHealthCheckModuleStatus(o.healthCheckModuleStatus); | 709 checkHealthCheckModuleStatus(o.healthCheckModuleStatus); |
710 checkLbModuleStatus(o.lbModuleStatus); | 710 checkLbModuleStatus(o.lbModuleStatus); |
711 checkNetworkModuleStatus(o.networkModuleStatus); | 711 checkNetworkModuleStatus(o.networkModuleStatus); |
712 checkReplicaPoolModuleStatus(o.replicaPoolModuleStatus); | 712 checkReplicaPoolModuleStatus(o.replicaPoolModuleStatus); |
713 checkDeployState(o.state); | 713 checkDeployState(o.state); |
714 unittest.expect(o.type, unittest.equals('foo')); | 714 unittest.expect(o.type, unittest.equals('foo')); |
715 } | 715 } |
716 buildCounterModuleStatus--; | 716 buildCounterModuleStatus--; |
717 } | 717 } |
718 | 718 |
719 buildUnnamed1733() { | 719 buildUnnamed2498() { |
720 var o = new core.List<api.AccessConfig>(); | 720 var o = new core.List<api.AccessConfig>(); |
721 o.add(buildAccessConfig()); | 721 o.add(buildAccessConfig()); |
722 o.add(buildAccessConfig()); | 722 o.add(buildAccessConfig()); |
723 return o; | 723 return o; |
724 } | 724 } |
725 | 725 |
726 checkUnnamed1733(core.List<api.AccessConfig> o) { | 726 checkUnnamed2498(core.List<api.AccessConfig> o) { |
727 unittest.expect(o, unittest.hasLength(2)); | 727 unittest.expect(o, unittest.hasLength(2)); |
728 checkAccessConfig(o[0]); | 728 checkAccessConfig(o[0]); |
729 checkAccessConfig(o[1]); | 729 checkAccessConfig(o[1]); |
730 } | 730 } |
731 | 731 |
732 core.int buildCounterNetworkInterface = 0; | 732 core.int buildCounterNetworkInterface = 0; |
733 buildNetworkInterface() { | 733 buildNetworkInterface() { |
734 var o = new api.NetworkInterface(); | 734 var o = new api.NetworkInterface(); |
735 buildCounterNetworkInterface++; | 735 buildCounterNetworkInterface++; |
736 if (buildCounterNetworkInterface < 3) { | 736 if (buildCounterNetworkInterface < 3) { |
737 o.accessConfigs = buildUnnamed1733(); | 737 o.accessConfigs = buildUnnamed2498(); |
738 o.name = "foo"; | 738 o.name = "foo"; |
739 o.network = "foo"; | 739 o.network = "foo"; |
740 o.networkIp = "foo"; | 740 o.networkIp = "foo"; |
741 } | 741 } |
742 buildCounterNetworkInterface--; | 742 buildCounterNetworkInterface--; |
743 return o; | 743 return o; |
744 } | 744 } |
745 | 745 |
746 checkNetworkInterface(api.NetworkInterface o) { | 746 checkNetworkInterface(api.NetworkInterface o) { |
747 buildCounterNetworkInterface++; | 747 buildCounterNetworkInterface++; |
748 if (buildCounterNetworkInterface < 3) { | 748 if (buildCounterNetworkInterface < 3) { |
749 checkUnnamed1733(o.accessConfigs); | 749 checkUnnamed2498(o.accessConfigs); |
750 unittest.expect(o.name, unittest.equals('foo')); | 750 unittest.expect(o.name, unittest.equals('foo')); |
751 unittest.expect(o.network, unittest.equals('foo')); | 751 unittest.expect(o.network, unittest.equals('foo')); |
752 unittest.expect(o.networkIp, unittest.equals('foo')); | 752 unittest.expect(o.networkIp, unittest.equals('foo')); |
753 } | 753 } |
754 buildCounterNetworkInterface--; | 754 buildCounterNetworkInterface--; |
755 } | 755 } |
756 | 756 |
757 core.int buildCounterNetworkModule = 0; | 757 core.int buildCounterNetworkModule = 0; |
758 buildNetworkModule() { | 758 buildNetworkModule() { |
759 var o = new api.NetworkModule(); | 759 var o = new api.NetworkModule(); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 | 858 |
859 checkParamOverride(api.ParamOverride o) { | 859 checkParamOverride(api.ParamOverride o) { |
860 buildCounterParamOverride++; | 860 buildCounterParamOverride++; |
861 if (buildCounterParamOverride < 3) { | 861 if (buildCounterParamOverride < 3) { |
862 unittest.expect(o.path, unittest.equals('foo')); | 862 unittest.expect(o.path, unittest.equals('foo')); |
863 unittest.expect(o.value, unittest.equals('foo')); | 863 unittest.expect(o.value, unittest.equals('foo')); |
864 } | 864 } |
865 buildCounterParamOverride--; | 865 buildCounterParamOverride--; |
866 } | 866 } |
867 | 867 |
868 buildUnnamed1734() { | 868 buildUnnamed2499() { |
869 var o = new core.Map<core.String, api.EnvVariable>(); | 869 var o = new core.Map<core.String, api.EnvVariable>(); |
870 o["x"] = buildEnvVariable(); | 870 o["x"] = buildEnvVariable(); |
871 o["y"] = buildEnvVariable(); | 871 o["y"] = buildEnvVariable(); |
872 return o; | 872 return o; |
873 } | 873 } |
874 | 874 |
875 checkUnnamed1734(core.Map<core.String, api.EnvVariable> o) { | 875 checkUnnamed2499(core.Map<core.String, api.EnvVariable> o) { |
876 unittest.expect(o, unittest.hasLength(2)); | 876 unittest.expect(o, unittest.hasLength(2)); |
877 checkEnvVariable(o["x"]); | 877 checkEnvVariable(o["x"]); |
878 checkEnvVariable(o["y"]); | 878 checkEnvVariable(o["y"]); |
879 } | 879 } |
880 | 880 |
881 buildUnnamed1735() { | 881 buildUnnamed2500() { |
882 var o = new core.List<core.String>(); | 882 var o = new core.List<core.String>(); |
883 o.add("foo"); | 883 o.add("foo"); |
884 o.add("foo"); | 884 o.add("foo"); |
885 return o; | 885 return o; |
886 } | 886 } |
887 | 887 |
888 checkUnnamed1735(core.List<core.String> o) { | 888 checkUnnamed2500(core.List<core.String> o) { |
889 unittest.expect(o, unittest.hasLength(2)); | 889 unittest.expect(o, unittest.hasLength(2)); |
890 unittest.expect(o[0], unittest.equals('foo')); | 890 unittest.expect(o[0], unittest.equals('foo')); |
891 unittest.expect(o[1], unittest.equals('foo')); | 891 unittest.expect(o[1], unittest.equals('foo')); |
892 } | 892 } |
893 | 893 |
894 core.int buildCounterReplicaPoolModule = 0; | 894 core.int buildCounterReplicaPoolModule = 0; |
895 buildReplicaPoolModule() { | 895 buildReplicaPoolModule() { |
896 var o = new api.ReplicaPoolModule(); | 896 var o = new api.ReplicaPoolModule(); |
897 buildCounterReplicaPoolModule++; | 897 buildCounterReplicaPoolModule++; |
898 if (buildCounterReplicaPoolModule < 3) { | 898 if (buildCounterReplicaPoolModule < 3) { |
899 o.envVariables = buildUnnamed1734(); | 899 o.envVariables = buildUnnamed2499(); |
900 o.healthChecks = buildUnnamed1735(); | 900 o.healthChecks = buildUnnamed2500(); |
901 o.numReplicas = 42; | 901 o.numReplicas = 42; |
902 o.replicaPoolParams = buildReplicaPoolParams(); | 902 o.replicaPoolParams = buildReplicaPoolParams(); |
903 o.resourceView = "foo"; | 903 o.resourceView = "foo"; |
904 } | 904 } |
905 buildCounterReplicaPoolModule--; | 905 buildCounterReplicaPoolModule--; |
906 return o; | 906 return o; |
907 } | 907 } |
908 | 908 |
909 checkReplicaPoolModule(api.ReplicaPoolModule o) { | 909 checkReplicaPoolModule(api.ReplicaPoolModule o) { |
910 buildCounterReplicaPoolModule++; | 910 buildCounterReplicaPoolModule++; |
911 if (buildCounterReplicaPoolModule < 3) { | 911 if (buildCounterReplicaPoolModule < 3) { |
912 checkUnnamed1734(o.envVariables); | 912 checkUnnamed2499(o.envVariables); |
913 checkUnnamed1735(o.healthChecks); | 913 checkUnnamed2500(o.healthChecks); |
914 unittest.expect(o.numReplicas, unittest.equals(42)); | 914 unittest.expect(o.numReplicas, unittest.equals(42)); |
915 checkReplicaPoolParams(o.replicaPoolParams); | 915 checkReplicaPoolParams(o.replicaPoolParams); |
916 unittest.expect(o.resourceView, unittest.equals('foo')); | 916 unittest.expect(o.resourceView, unittest.equals('foo')); |
917 } | 917 } |
918 buildCounterReplicaPoolModule--; | 918 buildCounterReplicaPoolModule--; |
919 } | 919 } |
920 | 920 |
921 core.int buildCounterReplicaPoolModuleStatus = 0; | 921 core.int buildCounterReplicaPoolModuleStatus = 0; |
922 buildReplicaPoolModuleStatus() { | 922 buildReplicaPoolModuleStatus() { |
923 var o = new api.ReplicaPoolModuleStatus(); | 923 var o = new api.ReplicaPoolModuleStatus(); |
(...skipping 27 matching lines...) Expand all Loading... |
951 } | 951 } |
952 | 952 |
953 checkReplicaPoolParams(api.ReplicaPoolParams o) { | 953 checkReplicaPoolParams(api.ReplicaPoolParams o) { |
954 buildCounterReplicaPoolParams++; | 954 buildCounterReplicaPoolParams++; |
955 if (buildCounterReplicaPoolParams < 3) { | 955 if (buildCounterReplicaPoolParams < 3) { |
956 checkReplicaPoolParamsV1Beta1(o.v1beta1); | 956 checkReplicaPoolParamsV1Beta1(o.v1beta1); |
957 } | 957 } |
958 buildCounterReplicaPoolParams--; | 958 buildCounterReplicaPoolParams--; |
959 } | 959 } |
960 | 960 |
961 buildUnnamed1736() { | 961 buildUnnamed2501() { |
962 var o = new core.List<api.ExistingDisk>(); | 962 var o = new core.List<api.ExistingDisk>(); |
963 o.add(buildExistingDisk()); | 963 o.add(buildExistingDisk()); |
964 o.add(buildExistingDisk()); | 964 o.add(buildExistingDisk()); |
965 return o; | 965 return o; |
966 } | 966 } |
967 | 967 |
968 checkUnnamed1736(core.List<api.ExistingDisk> o) { | 968 checkUnnamed2501(core.List<api.ExistingDisk> o) { |
969 unittest.expect(o, unittest.hasLength(2)); | 969 unittest.expect(o, unittest.hasLength(2)); |
970 checkExistingDisk(o[0]); | 970 checkExistingDisk(o[0]); |
971 checkExistingDisk(o[1]); | 971 checkExistingDisk(o[1]); |
972 } | 972 } |
973 | 973 |
974 buildUnnamed1737() { | 974 buildUnnamed2502() { |
975 var o = new core.List<api.NewDisk>(); | 975 var o = new core.List<api.NewDisk>(); |
976 o.add(buildNewDisk()); | 976 o.add(buildNewDisk()); |
977 o.add(buildNewDisk()); | 977 o.add(buildNewDisk()); |
978 return o; | 978 return o; |
979 } | 979 } |
980 | 980 |
981 checkUnnamed1737(core.List<api.NewDisk> o) { | 981 checkUnnamed2502(core.List<api.NewDisk> o) { |
982 unittest.expect(o, unittest.hasLength(2)); | 982 unittest.expect(o, unittest.hasLength(2)); |
983 checkNewDisk(o[0]); | 983 checkNewDisk(o[0]); |
984 checkNewDisk(o[1]); | 984 checkNewDisk(o[1]); |
985 } | 985 } |
986 | 986 |
987 buildUnnamed1738() { | 987 buildUnnamed2503() { |
988 var o = new core.List<api.NetworkInterface>(); | 988 var o = new core.List<api.NetworkInterface>(); |
989 o.add(buildNetworkInterface()); | 989 o.add(buildNetworkInterface()); |
990 o.add(buildNetworkInterface()); | 990 o.add(buildNetworkInterface()); |
991 return o; | 991 return o; |
992 } | 992 } |
993 | 993 |
994 checkUnnamed1738(core.List<api.NetworkInterface> o) { | 994 checkUnnamed2503(core.List<api.NetworkInterface> o) { |
995 unittest.expect(o, unittest.hasLength(2)); | 995 unittest.expect(o, unittest.hasLength(2)); |
996 checkNetworkInterface(o[0]); | 996 checkNetworkInterface(o[0]); |
997 checkNetworkInterface(o[1]); | 997 checkNetworkInterface(o[1]); |
998 } | 998 } |
999 | 999 |
1000 buildUnnamed1739() { | 1000 buildUnnamed2504() { |
1001 var o = new core.List<api.ServiceAccount>(); | 1001 var o = new core.List<api.ServiceAccount>(); |
1002 o.add(buildServiceAccount()); | 1002 o.add(buildServiceAccount()); |
1003 o.add(buildServiceAccount()); | 1003 o.add(buildServiceAccount()); |
1004 return o; | 1004 return o; |
1005 } | 1005 } |
1006 | 1006 |
1007 checkUnnamed1739(core.List<api.ServiceAccount> o) { | 1007 checkUnnamed2504(core.List<api.ServiceAccount> o) { |
1008 unittest.expect(o, unittest.hasLength(2)); | 1008 unittest.expect(o, unittest.hasLength(2)); |
1009 checkServiceAccount(o[0]); | 1009 checkServiceAccount(o[0]); |
1010 checkServiceAccount(o[1]); | 1010 checkServiceAccount(o[1]); |
1011 } | 1011 } |
1012 | 1012 |
1013 core.int buildCounterReplicaPoolParamsV1Beta1 = 0; | 1013 core.int buildCounterReplicaPoolParamsV1Beta1 = 0; |
1014 buildReplicaPoolParamsV1Beta1() { | 1014 buildReplicaPoolParamsV1Beta1() { |
1015 var o = new api.ReplicaPoolParamsV1Beta1(); | 1015 var o = new api.ReplicaPoolParamsV1Beta1(); |
1016 buildCounterReplicaPoolParamsV1Beta1++; | 1016 buildCounterReplicaPoolParamsV1Beta1++; |
1017 if (buildCounterReplicaPoolParamsV1Beta1 < 3) { | 1017 if (buildCounterReplicaPoolParamsV1Beta1 < 3) { |
1018 o.autoRestart = true; | 1018 o.autoRestart = true; |
1019 o.baseInstanceName = "foo"; | 1019 o.baseInstanceName = "foo"; |
1020 o.canIpForward = true; | 1020 o.canIpForward = true; |
1021 o.description = "foo"; | 1021 o.description = "foo"; |
1022 o.disksToAttach = buildUnnamed1736(); | 1022 o.disksToAttach = buildUnnamed2501(); |
1023 o.disksToCreate = buildUnnamed1737(); | 1023 o.disksToCreate = buildUnnamed2502(); |
1024 o.initAction = "foo"; | 1024 o.initAction = "foo"; |
1025 o.machineType = "foo"; | 1025 o.machineType = "foo"; |
1026 o.metadata = buildMetadata(); | 1026 o.metadata = buildMetadata(); |
1027 o.networkInterfaces = buildUnnamed1738(); | 1027 o.networkInterfaces = buildUnnamed2503(); |
1028 o.onHostMaintenance = "foo"; | 1028 o.onHostMaintenance = "foo"; |
1029 o.serviceAccounts = buildUnnamed1739(); | 1029 o.serviceAccounts = buildUnnamed2504(); |
1030 o.tags = buildTag(); | 1030 o.tags = buildTag(); |
1031 o.zone = "foo"; | 1031 o.zone = "foo"; |
1032 } | 1032 } |
1033 buildCounterReplicaPoolParamsV1Beta1--; | 1033 buildCounterReplicaPoolParamsV1Beta1--; |
1034 return o; | 1034 return o; |
1035 } | 1035 } |
1036 | 1036 |
1037 checkReplicaPoolParamsV1Beta1(api.ReplicaPoolParamsV1Beta1 o) { | 1037 checkReplicaPoolParamsV1Beta1(api.ReplicaPoolParamsV1Beta1 o) { |
1038 buildCounterReplicaPoolParamsV1Beta1++; | 1038 buildCounterReplicaPoolParamsV1Beta1++; |
1039 if (buildCounterReplicaPoolParamsV1Beta1 < 3) { | 1039 if (buildCounterReplicaPoolParamsV1Beta1 < 3) { |
1040 unittest.expect(o.autoRestart, unittest.isTrue); | 1040 unittest.expect(o.autoRestart, unittest.isTrue); |
1041 unittest.expect(o.baseInstanceName, unittest.equals('foo')); | 1041 unittest.expect(o.baseInstanceName, unittest.equals('foo')); |
1042 unittest.expect(o.canIpForward, unittest.isTrue); | 1042 unittest.expect(o.canIpForward, unittest.isTrue); |
1043 unittest.expect(o.description, unittest.equals('foo')); | 1043 unittest.expect(o.description, unittest.equals('foo')); |
1044 checkUnnamed1736(o.disksToAttach); | 1044 checkUnnamed2501(o.disksToAttach); |
1045 checkUnnamed1737(o.disksToCreate); | 1045 checkUnnamed2502(o.disksToCreate); |
1046 unittest.expect(o.initAction, unittest.equals('foo')); | 1046 unittest.expect(o.initAction, unittest.equals('foo')); |
1047 unittest.expect(o.machineType, unittest.equals('foo')); | 1047 unittest.expect(o.machineType, unittest.equals('foo')); |
1048 checkMetadata(o.metadata); | 1048 checkMetadata(o.metadata); |
1049 checkUnnamed1738(o.networkInterfaces); | 1049 checkUnnamed2503(o.networkInterfaces); |
1050 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); | 1050 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); |
1051 checkUnnamed1739(o.serviceAccounts); | 1051 checkUnnamed2504(o.serviceAccounts); |
1052 checkTag(o.tags); | 1052 checkTag(o.tags); |
1053 unittest.expect(o.zone, unittest.equals('foo')); | 1053 unittest.expect(o.zone, unittest.equals('foo')); |
1054 } | 1054 } |
1055 buildCounterReplicaPoolParamsV1Beta1--; | 1055 buildCounterReplicaPoolParamsV1Beta1--; |
1056 } | 1056 } |
1057 | 1057 |
1058 buildUnnamed1740() { | 1058 buildUnnamed2505() { |
1059 var o = new core.List<core.String>(); | 1059 var o = new core.List<core.String>(); |
1060 o.add("foo"); | 1060 o.add("foo"); |
1061 o.add("foo"); | 1061 o.add("foo"); |
1062 return o; | 1062 return o; |
1063 } | 1063 } |
1064 | 1064 |
1065 checkUnnamed1740(core.List<core.String> o) { | 1065 checkUnnamed2505(core.List<core.String> o) { |
1066 unittest.expect(o, unittest.hasLength(2)); | 1066 unittest.expect(o, unittest.hasLength(2)); |
1067 unittest.expect(o[0], unittest.equals('foo')); | 1067 unittest.expect(o[0], unittest.equals('foo')); |
1068 unittest.expect(o[1], unittest.equals('foo')); | 1068 unittest.expect(o[1], unittest.equals('foo')); |
1069 } | 1069 } |
1070 | 1070 |
1071 core.int buildCounterServiceAccount = 0; | 1071 core.int buildCounterServiceAccount = 0; |
1072 buildServiceAccount() { | 1072 buildServiceAccount() { |
1073 var o = new api.ServiceAccount(); | 1073 var o = new api.ServiceAccount(); |
1074 buildCounterServiceAccount++; | 1074 buildCounterServiceAccount++; |
1075 if (buildCounterServiceAccount < 3) { | 1075 if (buildCounterServiceAccount < 3) { |
1076 o.email = "foo"; | 1076 o.email = "foo"; |
1077 o.scopes = buildUnnamed1740(); | 1077 o.scopes = buildUnnamed2505(); |
1078 } | 1078 } |
1079 buildCounterServiceAccount--; | 1079 buildCounterServiceAccount--; |
1080 return o; | 1080 return o; |
1081 } | 1081 } |
1082 | 1082 |
1083 checkServiceAccount(api.ServiceAccount o) { | 1083 checkServiceAccount(api.ServiceAccount o) { |
1084 buildCounterServiceAccount++; | 1084 buildCounterServiceAccount++; |
1085 if (buildCounterServiceAccount < 3) { | 1085 if (buildCounterServiceAccount < 3) { |
1086 unittest.expect(o.email, unittest.equals('foo')); | 1086 unittest.expect(o.email, unittest.equals('foo')); |
1087 checkUnnamed1740(o.scopes); | 1087 checkUnnamed2505(o.scopes); |
1088 } | 1088 } |
1089 buildCounterServiceAccount--; | 1089 buildCounterServiceAccount--; |
1090 } | 1090 } |
1091 | 1091 |
1092 buildUnnamed1741() { | 1092 buildUnnamed2506() { |
1093 var o = new core.List<core.String>(); | 1093 var o = new core.List<core.String>(); |
1094 o.add("foo"); | 1094 o.add("foo"); |
1095 o.add("foo"); | 1095 o.add("foo"); |
1096 return o; | 1096 return o; |
1097 } | 1097 } |
1098 | 1098 |
1099 checkUnnamed1741(core.List<core.String> o) { | 1099 checkUnnamed2506(core.List<core.String> o) { |
1100 unittest.expect(o, unittest.hasLength(2)); | 1100 unittest.expect(o, unittest.hasLength(2)); |
1101 unittest.expect(o[0], unittest.equals('foo')); | 1101 unittest.expect(o[0], unittest.equals('foo')); |
1102 unittest.expect(o[1], unittest.equals('foo')); | 1102 unittest.expect(o[1], unittest.equals('foo')); |
1103 } | 1103 } |
1104 | 1104 |
1105 core.int buildCounterTag = 0; | 1105 core.int buildCounterTag = 0; |
1106 buildTag() { | 1106 buildTag() { |
1107 var o = new api.Tag(); | 1107 var o = new api.Tag(); |
1108 buildCounterTag++; | 1108 buildCounterTag++; |
1109 if (buildCounterTag < 3) { | 1109 if (buildCounterTag < 3) { |
1110 o.fingerPrint = "foo"; | 1110 o.fingerPrint = "foo"; |
1111 o.items = buildUnnamed1741(); | 1111 o.items = buildUnnamed2506(); |
1112 } | 1112 } |
1113 buildCounterTag--; | 1113 buildCounterTag--; |
1114 return o; | 1114 return o; |
1115 } | 1115 } |
1116 | 1116 |
1117 checkTag(api.Tag o) { | 1117 checkTag(api.Tag o) { |
1118 buildCounterTag++; | 1118 buildCounterTag++; |
1119 if (buildCounterTag < 3) { | 1119 if (buildCounterTag < 3) { |
1120 unittest.expect(o.fingerPrint, unittest.equals('foo')); | 1120 unittest.expect(o.fingerPrint, unittest.equals('foo')); |
1121 checkUnnamed1741(o.items); | 1121 checkUnnamed2506(o.items); |
1122 } | 1122 } |
1123 buildCounterTag--; | 1123 buildCounterTag--; |
1124 } | 1124 } |
1125 | 1125 |
1126 buildUnnamed1742() { | 1126 buildUnnamed2507() { |
1127 var o = new core.Map<core.String, api.Action>(); | 1127 var o = new core.Map<core.String, api.Action>(); |
1128 o["x"] = buildAction(); | 1128 o["x"] = buildAction(); |
1129 o["y"] = buildAction(); | 1129 o["y"] = buildAction(); |
1130 return o; | 1130 return o; |
1131 } | 1131 } |
1132 | 1132 |
1133 checkUnnamed1742(core.Map<core.String, api.Action> o) { | 1133 checkUnnamed2507(core.Map<core.String, api.Action> o) { |
1134 unittest.expect(o, unittest.hasLength(2)); | 1134 unittest.expect(o, unittest.hasLength(2)); |
1135 checkAction(o["x"]); | 1135 checkAction(o["x"]); |
1136 checkAction(o["y"]); | 1136 checkAction(o["y"]); |
1137 } | 1137 } |
1138 | 1138 |
1139 buildUnnamed1743() { | 1139 buildUnnamed2508() { |
1140 var o = new core.Map<core.String, api.Module>(); | 1140 var o = new core.Map<core.String, api.Module>(); |
1141 o["x"] = buildModule(); | 1141 o["x"] = buildModule(); |
1142 o["y"] = buildModule(); | 1142 o["y"] = buildModule(); |
1143 return o; | 1143 return o; |
1144 } | 1144 } |
1145 | 1145 |
1146 checkUnnamed1743(core.Map<core.String, api.Module> o) { | 1146 checkUnnamed2508(core.Map<core.String, api.Module> o) { |
1147 unittest.expect(o, unittest.hasLength(2)); | 1147 unittest.expect(o, unittest.hasLength(2)); |
1148 checkModule(o["x"]); | 1148 checkModule(o["x"]); |
1149 checkModule(o["y"]); | 1149 checkModule(o["y"]); |
1150 } | 1150 } |
1151 | 1151 |
1152 core.int buildCounterTemplate = 0; | 1152 core.int buildCounterTemplate = 0; |
1153 buildTemplate() { | 1153 buildTemplate() { |
1154 var o = new api.Template(); | 1154 var o = new api.Template(); |
1155 buildCounterTemplate++; | 1155 buildCounterTemplate++; |
1156 if (buildCounterTemplate < 3) { | 1156 if (buildCounterTemplate < 3) { |
1157 o.actions = buildUnnamed1742(); | 1157 o.actions = buildUnnamed2507(); |
1158 o.description = "foo"; | 1158 o.description = "foo"; |
1159 o.modules = buildUnnamed1743(); | 1159 o.modules = buildUnnamed2508(); |
1160 o.name = "foo"; | 1160 o.name = "foo"; |
1161 } | 1161 } |
1162 buildCounterTemplate--; | 1162 buildCounterTemplate--; |
1163 return o; | 1163 return o; |
1164 } | 1164 } |
1165 | 1165 |
1166 checkTemplate(api.Template o) { | 1166 checkTemplate(api.Template o) { |
1167 buildCounterTemplate++; | 1167 buildCounterTemplate++; |
1168 if (buildCounterTemplate < 3) { | 1168 if (buildCounterTemplate < 3) { |
1169 checkUnnamed1742(o.actions); | 1169 checkUnnamed2507(o.actions); |
1170 unittest.expect(o.description, unittest.equals('foo')); | 1170 unittest.expect(o.description, unittest.equals('foo')); |
1171 checkUnnamed1743(o.modules); | 1171 checkUnnamed2508(o.modules); |
1172 unittest.expect(o.name, unittest.equals('foo')); | 1172 unittest.expect(o.name, unittest.equals('foo')); |
1173 } | 1173 } |
1174 buildCounterTemplate--; | 1174 buildCounterTemplate--; |
1175 } | 1175 } |
1176 | 1176 |
1177 buildUnnamed1744() { | 1177 buildUnnamed2509() { |
1178 var o = new core.List<api.Template>(); | 1178 var o = new core.List<api.Template>(); |
1179 o.add(buildTemplate()); | 1179 o.add(buildTemplate()); |
1180 o.add(buildTemplate()); | 1180 o.add(buildTemplate()); |
1181 return o; | 1181 return o; |
1182 } | 1182 } |
1183 | 1183 |
1184 checkUnnamed1744(core.List<api.Template> o) { | 1184 checkUnnamed2509(core.List<api.Template> o) { |
1185 unittest.expect(o, unittest.hasLength(2)); | 1185 unittest.expect(o, unittest.hasLength(2)); |
1186 checkTemplate(o[0]); | 1186 checkTemplate(o[0]); |
1187 checkTemplate(o[1]); | 1187 checkTemplate(o[1]); |
1188 } | 1188 } |
1189 | 1189 |
1190 core.int buildCounterTemplatesListResponse = 0; | 1190 core.int buildCounterTemplatesListResponse = 0; |
1191 buildTemplatesListResponse() { | 1191 buildTemplatesListResponse() { |
1192 var o = new api.TemplatesListResponse(); | 1192 var o = new api.TemplatesListResponse(); |
1193 buildCounterTemplatesListResponse++; | 1193 buildCounterTemplatesListResponse++; |
1194 if (buildCounterTemplatesListResponse < 3) { | 1194 if (buildCounterTemplatesListResponse < 3) { |
1195 o.nextPageToken = "foo"; | 1195 o.nextPageToken = "foo"; |
1196 o.resources = buildUnnamed1744(); | 1196 o.resources = buildUnnamed2509(); |
1197 } | 1197 } |
1198 buildCounterTemplatesListResponse--; | 1198 buildCounterTemplatesListResponse--; |
1199 return o; | 1199 return o; |
1200 } | 1200 } |
1201 | 1201 |
1202 checkTemplatesListResponse(api.TemplatesListResponse o) { | 1202 checkTemplatesListResponse(api.TemplatesListResponse o) { |
1203 buildCounterTemplatesListResponse++; | 1203 buildCounterTemplatesListResponse++; |
1204 if (buildCounterTemplatesListResponse < 3) { | 1204 if (buildCounterTemplatesListResponse < 3) { |
1205 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1205 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1206 checkUnnamed1744(o.resources); | 1206 checkUnnamed2509(o.resources); |
1207 } | 1207 } |
1208 buildCounterTemplatesListResponse--; | 1208 buildCounterTemplatesListResponse--; |
1209 } | 1209 } |
1210 | 1210 |
1211 | 1211 |
1212 main() { | 1212 main() { |
1213 unittest.group("obj-schema-AccessConfig", () { | 1213 unittest.group("obj-schema-AccessConfig", () { |
1214 unittest.test("to-json--from-json", () { | 1214 unittest.test("to-json--from-json", () { |
1215 var o = buildAccessConfig(); | 1215 var o = buildAccessConfig(); |
1216 var od = new api.AccessConfig.fromJson(o.toJson()); | 1216 var od = new api.AccessConfig.fromJson(o.toJson()); |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1884 res.list(arg_projectId, maxResults: arg_maxResults, pageToken: arg_pageTok
en).then(unittest.expectAsync(((api.TemplatesListResponse response) { | 1884 res.list(arg_projectId, maxResults: arg_maxResults, pageToken: arg_pageTok
en).then(unittest.expectAsync(((api.TemplatesListResponse response) { |
1885 checkTemplatesListResponse(response); | 1885 checkTemplatesListResponse(response); |
1886 }))); | 1886 }))); |
1887 }); | 1887 }); |
1888 | 1888 |
1889 }); | 1889 }); |
1890 | 1890 |
1891 | 1891 |
1892 } | 1892 } |
1893 | 1893 |
OLD | NEW |