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 21 matching lines...) Expand all Loading... |
32 checkAccessConfig(api.AccessConfig o) { | 32 checkAccessConfig(api.AccessConfig o) { |
33 buildCounterAccessConfig++; | 33 buildCounterAccessConfig++; |
34 if (buildCounterAccessConfig < 3) { | 34 if (buildCounterAccessConfig < 3) { |
35 unittest.expect(o.name, unittest.equals('foo')); | 35 unittest.expect(o.name, unittest.equals('foo')); |
36 unittest.expect(o.natIp, unittest.equals('foo')); | 36 unittest.expect(o.natIp, unittest.equals('foo')); |
37 unittest.expect(o.type, unittest.equals('foo')); | 37 unittest.expect(o.type, unittest.equals('foo')); |
38 } | 38 } |
39 buildCounterAccessConfig--; | 39 buildCounterAccessConfig--; |
40 } | 40 } |
41 | 41 |
42 buildUnnamed1117() { | 42 buildUnnamed1183() { |
43 var o = new core.List<core.String>(); | 43 var o = new core.List<core.String>(); |
44 o.add("foo"); | 44 o.add("foo"); |
45 o.add("foo"); | 45 o.add("foo"); |
46 return o; | 46 return o; |
47 } | 47 } |
48 | 48 |
49 checkUnnamed1117(core.List<core.String> o) { | 49 checkUnnamed1183(core.List<core.String> o) { |
50 unittest.expect(o, unittest.hasLength(2)); | 50 unittest.expect(o, unittest.hasLength(2)); |
51 unittest.expect(o[0], unittest.equals('foo')); | 51 unittest.expect(o[0], unittest.equals('foo')); |
52 unittest.expect(o[1], unittest.equals('foo')); | 52 unittest.expect(o[1], unittest.equals('foo')); |
53 } | 53 } |
54 | 54 |
55 core.int buildCounterAction = 0; | 55 core.int buildCounterAction = 0; |
56 buildAction() { | 56 buildAction() { |
57 var o = new api.Action(); | 57 var o = new api.Action(); |
58 buildCounterAction++; | 58 buildCounterAction++; |
59 if (buildCounterAction < 3) { | 59 if (buildCounterAction < 3) { |
60 o.commands = buildUnnamed1117(); | 60 o.commands = buildUnnamed1183(); |
61 o.timeoutMs = 42; | 61 o.timeoutMs = 42; |
62 } | 62 } |
63 buildCounterAction--; | 63 buildCounterAction--; |
64 return o; | 64 return o; |
65 } | 65 } |
66 | 66 |
67 checkAction(api.Action o) { | 67 checkAction(api.Action o) { |
68 buildCounterAction++; | 68 buildCounterAction++; |
69 if (buildCounterAction < 3) { | 69 if (buildCounterAction < 3) { |
70 checkUnnamed1117(o.commands); | 70 checkUnnamed1183(o.commands); |
71 unittest.expect(o.timeoutMs, unittest.equals(42)); | 71 unittest.expect(o.timeoutMs, unittest.equals(42)); |
72 } | 72 } |
73 buildCounterAction--; | 73 buildCounterAction--; |
74 } | 74 } |
75 | 75 |
76 buildUnnamed1118() { | 76 buildUnnamed1184() { |
77 var o = new core.List<core.String>(); | 77 var o = new core.List<core.String>(); |
78 o.add("foo"); | 78 o.add("foo"); |
79 o.add("foo"); | 79 o.add("foo"); |
80 return o; | 80 return o; |
81 } | 81 } |
82 | 82 |
83 checkUnnamed1118(core.List<core.String> o) { | 83 checkUnnamed1184(core.List<core.String> o) { |
84 unittest.expect(o, unittest.hasLength(2)); | 84 unittest.expect(o, unittest.hasLength(2)); |
85 unittest.expect(o[0], unittest.equals('foo')); | 85 unittest.expect(o[0], unittest.equals('foo')); |
86 unittest.expect(o[1], unittest.equals('foo')); | 86 unittest.expect(o[1], unittest.equals('foo')); |
87 } | 87 } |
88 | 88 |
89 core.int buildCounterAllowedRule = 0; | 89 core.int buildCounterAllowedRule = 0; |
90 buildAllowedRule() { | 90 buildAllowedRule() { |
91 var o = new api.AllowedRule(); | 91 var o = new api.AllowedRule(); |
92 buildCounterAllowedRule++; | 92 buildCounterAllowedRule++; |
93 if (buildCounterAllowedRule < 3) { | 93 if (buildCounterAllowedRule < 3) { |
94 o.IPProtocol = "foo"; | 94 o.IPProtocol = "foo"; |
95 o.ports = buildUnnamed1118(); | 95 o.ports = buildUnnamed1184(); |
96 } | 96 } |
97 buildCounterAllowedRule--; | 97 buildCounterAllowedRule--; |
98 return o; | 98 return o; |
99 } | 99 } |
100 | 100 |
101 checkAllowedRule(api.AllowedRule o) { | 101 checkAllowedRule(api.AllowedRule o) { |
102 buildCounterAllowedRule++; | 102 buildCounterAllowedRule++; |
103 if (buildCounterAllowedRule < 3) { | 103 if (buildCounterAllowedRule < 3) { |
104 unittest.expect(o.IPProtocol, unittest.equals('foo')); | 104 unittest.expect(o.IPProtocol, unittest.equals('foo')); |
105 checkUnnamed1118(o.ports); | 105 checkUnnamed1184(o.ports); |
106 } | 106 } |
107 buildCounterAllowedRule--; | 107 buildCounterAllowedRule--; |
108 } | 108 } |
109 | 109 |
110 core.int buildCounterAutoscalingModule = 0; | 110 core.int buildCounterAutoscalingModule = 0; |
111 buildAutoscalingModule() { | 111 buildAutoscalingModule() { |
112 var o = new api.AutoscalingModule(); | 112 var o = new api.AutoscalingModule(); |
113 buildCounterAutoscalingModule++; | 113 buildCounterAutoscalingModule++; |
114 if (buildCounterAutoscalingModule < 3) { | 114 if (buildCounterAutoscalingModule < 3) { |
115 o.coolDownPeriodSec = 42; | 115 o.coolDownPeriodSec = 42; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 171 |
172 checkDeployState(api.DeployState o) { | 172 checkDeployState(api.DeployState o) { |
173 buildCounterDeployState++; | 173 buildCounterDeployState++; |
174 if (buildCounterDeployState < 3) { | 174 if (buildCounterDeployState < 3) { |
175 unittest.expect(o.details, unittest.equals('foo')); | 175 unittest.expect(o.details, unittest.equals('foo')); |
176 unittest.expect(o.status, unittest.equals('foo')); | 176 unittest.expect(o.status, unittest.equals('foo')); |
177 } | 177 } |
178 buildCounterDeployState--; | 178 buildCounterDeployState--; |
179 } | 179 } |
180 | 180 |
181 buildUnnamed1119() { | 181 buildUnnamed1185() { |
182 var o = new core.Map<core.String, api.ModuleStatus>(); | 182 var o = new core.Map<core.String, api.ModuleStatus>(); |
183 o["x"] = buildModuleStatus(); | 183 o["x"] = buildModuleStatus(); |
184 o["y"] = buildModuleStatus(); | 184 o["y"] = buildModuleStatus(); |
185 return o; | 185 return o; |
186 } | 186 } |
187 | 187 |
188 checkUnnamed1119(core.Map<core.String, api.ModuleStatus> o) { | 188 checkUnnamed1185(core.Map<core.String, api.ModuleStatus> o) { |
189 unittest.expect(o, unittest.hasLength(2)); | 189 unittest.expect(o, unittest.hasLength(2)); |
190 checkModuleStatus(o["x"]); | 190 checkModuleStatus(o["x"]); |
191 checkModuleStatus(o["y"]); | 191 checkModuleStatus(o["y"]); |
192 } | 192 } |
193 | 193 |
194 buildUnnamed1120() { | 194 buildUnnamed1186() { |
195 var o = new core.List<api.ParamOverride>(); | 195 var o = new core.List<api.ParamOverride>(); |
196 o.add(buildParamOverride()); | 196 o.add(buildParamOverride()); |
197 o.add(buildParamOverride()); | 197 o.add(buildParamOverride()); |
198 return o; | 198 return o; |
199 } | 199 } |
200 | 200 |
201 checkUnnamed1120(core.List<api.ParamOverride> o) { | 201 checkUnnamed1186(core.List<api.ParamOverride> o) { |
202 unittest.expect(o, unittest.hasLength(2)); | 202 unittest.expect(o, unittest.hasLength(2)); |
203 checkParamOverride(o[0]); | 203 checkParamOverride(o[0]); |
204 checkParamOverride(o[1]); | 204 checkParamOverride(o[1]); |
205 } | 205 } |
206 | 206 |
207 core.int buildCounterDeployment = 0; | 207 core.int buildCounterDeployment = 0; |
208 buildDeployment() { | 208 buildDeployment() { |
209 var o = new api.Deployment(); | 209 var o = new api.Deployment(); |
210 buildCounterDeployment++; | 210 buildCounterDeployment++; |
211 if (buildCounterDeployment < 3) { | 211 if (buildCounterDeployment < 3) { |
212 o.creationDate = "foo"; | 212 o.creationDate = "foo"; |
213 o.description = "foo"; | 213 o.description = "foo"; |
214 o.modules = buildUnnamed1119(); | 214 o.modules = buildUnnamed1185(); |
215 o.name = "foo"; | 215 o.name = "foo"; |
216 o.overrides = buildUnnamed1120(); | 216 o.overrides = buildUnnamed1186(); |
217 o.state = buildDeployState(); | 217 o.state = buildDeployState(); |
218 o.templateName = "foo"; | 218 o.templateName = "foo"; |
219 } | 219 } |
220 buildCounterDeployment--; | 220 buildCounterDeployment--; |
221 return o; | 221 return o; |
222 } | 222 } |
223 | 223 |
224 checkDeployment(api.Deployment o) { | 224 checkDeployment(api.Deployment o) { |
225 buildCounterDeployment++; | 225 buildCounterDeployment++; |
226 if (buildCounterDeployment < 3) { | 226 if (buildCounterDeployment < 3) { |
227 unittest.expect(o.creationDate, unittest.equals('foo')); | 227 unittest.expect(o.creationDate, unittest.equals('foo')); |
228 unittest.expect(o.description, unittest.equals('foo')); | 228 unittest.expect(o.description, unittest.equals('foo')); |
229 checkUnnamed1119(o.modules); | 229 checkUnnamed1185(o.modules); |
230 unittest.expect(o.name, unittest.equals('foo')); | 230 unittest.expect(o.name, unittest.equals('foo')); |
231 checkUnnamed1120(o.overrides); | 231 checkUnnamed1186(o.overrides); |
232 checkDeployState(o.state); | 232 checkDeployState(o.state); |
233 unittest.expect(o.templateName, unittest.equals('foo')); | 233 unittest.expect(o.templateName, unittest.equals('foo')); |
234 } | 234 } |
235 buildCounterDeployment--; | 235 buildCounterDeployment--; |
236 } | 236 } |
237 | 237 |
238 buildUnnamed1121() { | 238 buildUnnamed1187() { |
239 var o = new core.List<api.Deployment>(); | 239 var o = new core.List<api.Deployment>(); |
240 o.add(buildDeployment()); | 240 o.add(buildDeployment()); |
241 o.add(buildDeployment()); | 241 o.add(buildDeployment()); |
242 return o; | 242 return o; |
243 } | 243 } |
244 | 244 |
245 checkUnnamed1121(core.List<api.Deployment> o) { | 245 checkUnnamed1187(core.List<api.Deployment> o) { |
246 unittest.expect(o, unittest.hasLength(2)); | 246 unittest.expect(o, unittest.hasLength(2)); |
247 checkDeployment(o[0]); | 247 checkDeployment(o[0]); |
248 checkDeployment(o[1]); | 248 checkDeployment(o[1]); |
249 } | 249 } |
250 | 250 |
251 core.int buildCounterDeploymentsListResponse = 0; | 251 core.int buildCounterDeploymentsListResponse = 0; |
252 buildDeploymentsListResponse() { | 252 buildDeploymentsListResponse() { |
253 var o = new api.DeploymentsListResponse(); | 253 var o = new api.DeploymentsListResponse(); |
254 buildCounterDeploymentsListResponse++; | 254 buildCounterDeploymentsListResponse++; |
255 if (buildCounterDeploymentsListResponse < 3) { | 255 if (buildCounterDeploymentsListResponse < 3) { |
256 o.nextPageToken = "foo"; | 256 o.nextPageToken = "foo"; |
257 o.resources = buildUnnamed1121(); | 257 o.resources = buildUnnamed1187(); |
258 } | 258 } |
259 buildCounterDeploymentsListResponse--; | 259 buildCounterDeploymentsListResponse--; |
260 return o; | 260 return o; |
261 } | 261 } |
262 | 262 |
263 checkDeploymentsListResponse(api.DeploymentsListResponse o) { | 263 checkDeploymentsListResponse(api.DeploymentsListResponse o) { |
264 buildCounterDeploymentsListResponse++; | 264 buildCounterDeploymentsListResponse++; |
265 if (buildCounterDeploymentsListResponse < 3) { | 265 if (buildCounterDeploymentsListResponse < 3) { |
266 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 266 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
267 checkUnnamed1121(o.resources); | 267 checkUnnamed1187(o.resources); |
268 } | 268 } |
269 buildCounterDeploymentsListResponse--; | 269 buildCounterDeploymentsListResponse--; |
270 } | 270 } |
271 | 271 |
272 core.int buildCounterDiskAttachment = 0; | 272 core.int buildCounterDiskAttachment = 0; |
273 buildDiskAttachment() { | 273 buildDiskAttachment() { |
274 var o = new api.DiskAttachment(); | 274 var o = new api.DiskAttachment(); |
275 buildCounterDiskAttachment++; | 275 buildCounterDiskAttachment++; |
276 if (buildCounterDiskAttachment < 3) { | 276 if (buildCounterDiskAttachment < 3) { |
277 o.deviceName = "foo"; | 277 o.deviceName = "foo"; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 | 325 |
326 checkExistingDisk(api.ExistingDisk o) { | 326 checkExistingDisk(api.ExistingDisk o) { |
327 buildCounterExistingDisk++; | 327 buildCounterExistingDisk++; |
328 if (buildCounterExistingDisk < 3) { | 328 if (buildCounterExistingDisk < 3) { |
329 checkDiskAttachment(o.attachment); | 329 checkDiskAttachment(o.attachment); |
330 unittest.expect(o.source, unittest.equals('foo')); | 330 unittest.expect(o.source, unittest.equals('foo')); |
331 } | 331 } |
332 buildCounterExistingDisk--; | 332 buildCounterExistingDisk--; |
333 } | 333 } |
334 | 334 |
335 buildUnnamed1122() { | 335 buildUnnamed1188() { |
336 var o = new core.List<api.AllowedRule>(); | 336 var o = new core.List<api.AllowedRule>(); |
337 o.add(buildAllowedRule()); | 337 o.add(buildAllowedRule()); |
338 o.add(buildAllowedRule()); | 338 o.add(buildAllowedRule()); |
339 return o; | 339 return o; |
340 } | 340 } |
341 | 341 |
342 checkUnnamed1122(core.List<api.AllowedRule> o) { | 342 checkUnnamed1188(core.List<api.AllowedRule> o) { |
343 unittest.expect(o, unittest.hasLength(2)); | 343 unittest.expect(o, unittest.hasLength(2)); |
344 checkAllowedRule(o[0]); | 344 checkAllowedRule(o[0]); |
345 checkAllowedRule(o[1]); | 345 checkAllowedRule(o[1]); |
346 } | 346 } |
347 | 347 |
348 buildUnnamed1123() { | 348 buildUnnamed1189() { |
349 var o = new core.List<core.String>(); | 349 var o = new core.List<core.String>(); |
350 o.add("foo"); | 350 o.add("foo"); |
351 o.add("foo"); | 351 o.add("foo"); |
352 return o; | 352 return o; |
353 } | 353 } |
354 | 354 |
355 checkUnnamed1123(core.List<core.String> o) { | 355 checkUnnamed1189(core.List<core.String> o) { |
356 unittest.expect(o, unittest.hasLength(2)); | 356 unittest.expect(o, unittest.hasLength(2)); |
357 unittest.expect(o[0], unittest.equals('foo')); | 357 unittest.expect(o[0], unittest.equals('foo')); |
358 unittest.expect(o[1], unittest.equals('foo')); | 358 unittest.expect(o[1], unittest.equals('foo')); |
359 } | 359 } |
360 | 360 |
361 buildUnnamed1124() { | 361 buildUnnamed1190() { |
362 var o = new core.List<core.String>(); | 362 var o = new core.List<core.String>(); |
363 o.add("foo"); | 363 o.add("foo"); |
364 o.add("foo"); | 364 o.add("foo"); |
365 return o; | 365 return o; |
366 } | 366 } |
367 | 367 |
368 checkUnnamed1124(core.List<core.String> o) { | 368 checkUnnamed1190(core.List<core.String> o) { |
369 unittest.expect(o, unittest.hasLength(2)); | 369 unittest.expect(o, unittest.hasLength(2)); |
370 unittest.expect(o[0], unittest.equals('foo')); | 370 unittest.expect(o[0], unittest.equals('foo')); |
371 unittest.expect(o[1], unittest.equals('foo')); | 371 unittest.expect(o[1], unittest.equals('foo')); |
372 } | 372 } |
373 | 373 |
374 buildUnnamed1125() { | 374 buildUnnamed1191() { |
375 var o = new core.List<core.String>(); | 375 var o = new core.List<core.String>(); |
376 o.add("foo"); | 376 o.add("foo"); |
377 o.add("foo"); | 377 o.add("foo"); |
378 return o; | 378 return o; |
379 } | 379 } |
380 | 380 |
381 checkUnnamed1125(core.List<core.String> o) { | 381 checkUnnamed1191(core.List<core.String> o) { |
382 unittest.expect(o, unittest.hasLength(2)); | 382 unittest.expect(o, unittest.hasLength(2)); |
383 unittest.expect(o[0], unittest.equals('foo')); | 383 unittest.expect(o[0], unittest.equals('foo')); |
384 unittest.expect(o[1], unittest.equals('foo')); | 384 unittest.expect(o[1], unittest.equals('foo')); |
385 } | 385 } |
386 | 386 |
387 core.int buildCounterFirewallModule = 0; | 387 core.int buildCounterFirewallModule = 0; |
388 buildFirewallModule() { | 388 buildFirewallModule() { |
389 var o = new api.FirewallModule(); | 389 var o = new api.FirewallModule(); |
390 buildCounterFirewallModule++; | 390 buildCounterFirewallModule++; |
391 if (buildCounterFirewallModule < 3) { | 391 if (buildCounterFirewallModule < 3) { |
392 o.allowed = buildUnnamed1122(); | 392 o.allowed = buildUnnamed1188(); |
393 o.description = "foo"; | 393 o.description = "foo"; |
394 o.network = "foo"; | 394 o.network = "foo"; |
395 o.sourceRanges = buildUnnamed1123(); | 395 o.sourceRanges = buildUnnamed1189(); |
396 o.sourceTags = buildUnnamed1124(); | 396 o.sourceTags = buildUnnamed1190(); |
397 o.targetTags = buildUnnamed1125(); | 397 o.targetTags = buildUnnamed1191(); |
398 } | 398 } |
399 buildCounterFirewallModule--; | 399 buildCounterFirewallModule--; |
400 return o; | 400 return o; |
401 } | 401 } |
402 | 402 |
403 checkFirewallModule(api.FirewallModule o) { | 403 checkFirewallModule(api.FirewallModule o) { |
404 buildCounterFirewallModule++; | 404 buildCounterFirewallModule++; |
405 if (buildCounterFirewallModule < 3) { | 405 if (buildCounterFirewallModule < 3) { |
406 checkUnnamed1122(o.allowed); | 406 checkUnnamed1188(o.allowed); |
407 unittest.expect(o.description, unittest.equals('foo')); | 407 unittest.expect(o.description, unittest.equals('foo')); |
408 unittest.expect(o.network, unittest.equals('foo')); | 408 unittest.expect(o.network, unittest.equals('foo')); |
409 checkUnnamed1123(o.sourceRanges); | 409 checkUnnamed1189(o.sourceRanges); |
410 checkUnnamed1124(o.sourceTags); | 410 checkUnnamed1190(o.sourceTags); |
411 checkUnnamed1125(o.targetTags); | 411 checkUnnamed1191(o.targetTags); |
412 } | 412 } |
413 buildCounterFirewallModule--; | 413 buildCounterFirewallModule--; |
414 } | 414 } |
415 | 415 |
416 core.int buildCounterFirewallModuleStatus = 0; | 416 core.int buildCounterFirewallModuleStatus = 0; |
417 buildFirewallModuleStatus() { | 417 buildFirewallModuleStatus() { |
418 var o = new api.FirewallModuleStatus(); | 418 var o = new api.FirewallModuleStatus(); |
419 buildCounterFirewallModuleStatus++; | 419 buildCounterFirewallModuleStatus++; |
420 if (buildCounterFirewallModuleStatus < 3) { | 420 if (buildCounterFirewallModuleStatus < 3) { |
421 o.firewallUrl = "foo"; | 421 o.firewallUrl = "foo"; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 } | 477 } |
478 | 478 |
479 checkHealthCheckModuleStatus(api.HealthCheckModuleStatus o) { | 479 checkHealthCheckModuleStatus(api.HealthCheckModuleStatus o) { |
480 buildCounterHealthCheckModuleStatus++; | 480 buildCounterHealthCheckModuleStatus++; |
481 if (buildCounterHealthCheckModuleStatus < 3) { | 481 if (buildCounterHealthCheckModuleStatus < 3) { |
482 unittest.expect(o.healthCheckUrl, unittest.equals('foo')); | 482 unittest.expect(o.healthCheckUrl, unittest.equals('foo')); |
483 } | 483 } |
484 buildCounterHealthCheckModuleStatus--; | 484 buildCounterHealthCheckModuleStatus--; |
485 } | 485 } |
486 | 486 |
487 buildUnnamed1126() { | 487 buildUnnamed1192() { |
488 var o = new core.List<core.String>(); | 488 var o = new core.List<core.String>(); |
489 o.add("foo"); | 489 o.add("foo"); |
490 o.add("foo"); | 490 o.add("foo"); |
491 return o; | 491 return o; |
492 } | 492 } |
493 | 493 |
494 checkUnnamed1126(core.List<core.String> o) { | 494 checkUnnamed1192(core.List<core.String> o) { |
495 unittest.expect(o, unittest.hasLength(2)); | 495 unittest.expect(o, unittest.hasLength(2)); |
496 unittest.expect(o[0], unittest.equals('foo')); | 496 unittest.expect(o[0], unittest.equals('foo')); |
497 unittest.expect(o[1], unittest.equals('foo')); | 497 unittest.expect(o[1], unittest.equals('foo')); |
498 } | 498 } |
499 | 499 |
500 buildUnnamed1127() { | 500 buildUnnamed1193() { |
501 var o = new core.List<core.String>(); | 501 var o = new core.List<core.String>(); |
502 o.add("foo"); | 502 o.add("foo"); |
503 o.add("foo"); | 503 o.add("foo"); |
504 return o; | 504 return o; |
505 } | 505 } |
506 | 506 |
507 checkUnnamed1127(core.List<core.String> o) { | 507 checkUnnamed1193(core.List<core.String> o) { |
508 unittest.expect(o, unittest.hasLength(2)); | 508 unittest.expect(o, unittest.hasLength(2)); |
509 unittest.expect(o[0], unittest.equals('foo')); | 509 unittest.expect(o[0], unittest.equals('foo')); |
510 unittest.expect(o[1], unittest.equals('foo')); | 510 unittest.expect(o[1], unittest.equals('foo')); |
511 } | 511 } |
512 | 512 |
513 core.int buildCounterLbModule = 0; | 513 core.int buildCounterLbModule = 0; |
514 buildLbModule() { | 514 buildLbModule() { |
515 var o = new api.LbModule(); | 515 var o = new api.LbModule(); |
516 buildCounterLbModule++; | 516 buildCounterLbModule++; |
517 if (buildCounterLbModule < 3) { | 517 if (buildCounterLbModule < 3) { |
518 o.description = "foo"; | 518 o.description = "foo"; |
519 o.healthChecks = buildUnnamed1126(); | 519 o.healthChecks = buildUnnamed1192(); |
520 o.ipAddress = "foo"; | 520 o.ipAddress = "foo"; |
521 o.ipProtocol = "foo"; | 521 o.ipProtocol = "foo"; |
522 o.portRange = "foo"; | 522 o.portRange = "foo"; |
523 o.sessionAffinity = "foo"; | 523 o.sessionAffinity = "foo"; |
524 o.targetModules = buildUnnamed1127(); | 524 o.targetModules = buildUnnamed1193(); |
525 } | 525 } |
526 buildCounterLbModule--; | 526 buildCounterLbModule--; |
527 return o; | 527 return o; |
528 } | 528 } |
529 | 529 |
530 checkLbModule(api.LbModule o) { | 530 checkLbModule(api.LbModule o) { |
531 buildCounterLbModule++; | 531 buildCounterLbModule++; |
532 if (buildCounterLbModule < 3) { | 532 if (buildCounterLbModule < 3) { |
533 unittest.expect(o.description, unittest.equals('foo')); | 533 unittest.expect(o.description, unittest.equals('foo')); |
534 checkUnnamed1126(o.healthChecks); | 534 checkUnnamed1192(o.healthChecks); |
535 unittest.expect(o.ipAddress, unittest.equals('foo')); | 535 unittest.expect(o.ipAddress, unittest.equals('foo')); |
536 unittest.expect(o.ipProtocol, unittest.equals('foo')); | 536 unittest.expect(o.ipProtocol, unittest.equals('foo')); |
537 unittest.expect(o.portRange, unittest.equals('foo')); | 537 unittest.expect(o.portRange, unittest.equals('foo')); |
538 unittest.expect(o.sessionAffinity, unittest.equals('foo')); | 538 unittest.expect(o.sessionAffinity, unittest.equals('foo')); |
539 checkUnnamed1127(o.targetModules); | 539 checkUnnamed1193(o.targetModules); |
540 } | 540 } |
541 buildCounterLbModule--; | 541 buildCounterLbModule--; |
542 } | 542 } |
543 | 543 |
544 core.int buildCounterLbModuleStatus = 0; | 544 core.int buildCounterLbModuleStatus = 0; |
545 buildLbModuleStatus() { | 545 buildLbModuleStatus() { |
546 var o = new api.LbModuleStatus(); | 546 var o = new api.LbModuleStatus(); |
547 buildCounterLbModuleStatus++; | 547 buildCounterLbModuleStatus++; |
548 if (buildCounterLbModuleStatus < 3) { | 548 if (buildCounterLbModuleStatus < 3) { |
549 o.forwardingRuleUrl = "foo"; | 549 o.forwardingRuleUrl = "foo"; |
550 o.targetPoolUrl = "foo"; | 550 o.targetPoolUrl = "foo"; |
551 } | 551 } |
552 buildCounterLbModuleStatus--; | 552 buildCounterLbModuleStatus--; |
553 return o; | 553 return o; |
554 } | 554 } |
555 | 555 |
556 checkLbModuleStatus(api.LbModuleStatus o) { | 556 checkLbModuleStatus(api.LbModuleStatus o) { |
557 buildCounterLbModuleStatus++; | 557 buildCounterLbModuleStatus++; |
558 if (buildCounterLbModuleStatus < 3) { | 558 if (buildCounterLbModuleStatus < 3) { |
559 unittest.expect(o.forwardingRuleUrl, unittest.equals('foo')); | 559 unittest.expect(o.forwardingRuleUrl, unittest.equals('foo')); |
560 unittest.expect(o.targetPoolUrl, unittest.equals('foo')); | 560 unittest.expect(o.targetPoolUrl, unittest.equals('foo')); |
561 } | 561 } |
562 buildCounterLbModuleStatus--; | 562 buildCounterLbModuleStatus--; |
563 } | 563 } |
564 | 564 |
565 buildUnnamed1128() { | 565 buildUnnamed1194() { |
566 var o = new core.List<api.MetadataItem>(); | 566 var o = new core.List<api.MetadataItem>(); |
567 o.add(buildMetadataItem()); | 567 o.add(buildMetadataItem()); |
568 o.add(buildMetadataItem()); | 568 o.add(buildMetadataItem()); |
569 return o; | 569 return o; |
570 } | 570 } |
571 | 571 |
572 checkUnnamed1128(core.List<api.MetadataItem> o) { | 572 checkUnnamed1194(core.List<api.MetadataItem> o) { |
573 unittest.expect(o, unittest.hasLength(2)); | 573 unittest.expect(o, unittest.hasLength(2)); |
574 checkMetadataItem(o[0]); | 574 checkMetadataItem(o[0]); |
575 checkMetadataItem(o[1]); | 575 checkMetadataItem(o[1]); |
576 } | 576 } |
577 | 577 |
578 core.int buildCounterMetadata = 0; | 578 core.int buildCounterMetadata = 0; |
579 buildMetadata() { | 579 buildMetadata() { |
580 var o = new api.Metadata(); | 580 var o = new api.Metadata(); |
581 buildCounterMetadata++; | 581 buildCounterMetadata++; |
582 if (buildCounterMetadata < 3) { | 582 if (buildCounterMetadata < 3) { |
583 o.fingerPrint = "foo"; | 583 o.fingerPrint = "foo"; |
584 o.items = buildUnnamed1128(); | 584 o.items = buildUnnamed1194(); |
585 } | 585 } |
586 buildCounterMetadata--; | 586 buildCounterMetadata--; |
587 return o; | 587 return o; |
588 } | 588 } |
589 | 589 |
590 checkMetadata(api.Metadata o) { | 590 checkMetadata(api.Metadata o) { |
591 buildCounterMetadata++; | 591 buildCounterMetadata++; |
592 if (buildCounterMetadata < 3) { | 592 if (buildCounterMetadata < 3) { |
593 unittest.expect(o.fingerPrint, unittest.equals('foo')); | 593 unittest.expect(o.fingerPrint, unittest.equals('foo')); |
594 checkUnnamed1128(o.items); | 594 checkUnnamed1194(o.items); |
595 } | 595 } |
596 buildCounterMetadata--; | 596 buildCounterMetadata--; |
597 } | 597 } |
598 | 598 |
599 core.int buildCounterMetadataItem = 0; | 599 core.int buildCounterMetadataItem = 0; |
600 buildMetadataItem() { | 600 buildMetadataItem() { |
601 var o = new api.MetadataItem(); | 601 var o = new api.MetadataItem(); |
602 buildCounterMetadataItem++; | 602 buildCounterMetadataItem++; |
603 if (buildCounterMetadataItem < 3) { | 603 if (buildCounterMetadataItem < 3) { |
604 o.key = "foo"; | 604 o.key = "foo"; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 checkHealthCheckModuleStatus(o.healthCheckModuleStatus); | 674 checkHealthCheckModuleStatus(o.healthCheckModuleStatus); |
675 checkLbModuleStatus(o.lbModuleStatus); | 675 checkLbModuleStatus(o.lbModuleStatus); |
676 checkNetworkModuleStatus(o.networkModuleStatus); | 676 checkNetworkModuleStatus(o.networkModuleStatus); |
677 checkReplicaPoolModuleStatus(o.replicaPoolModuleStatus); | 677 checkReplicaPoolModuleStatus(o.replicaPoolModuleStatus); |
678 checkDeployState(o.state); | 678 checkDeployState(o.state); |
679 unittest.expect(o.type, unittest.equals('foo')); | 679 unittest.expect(o.type, unittest.equals('foo')); |
680 } | 680 } |
681 buildCounterModuleStatus--; | 681 buildCounterModuleStatus--; |
682 } | 682 } |
683 | 683 |
684 buildUnnamed1129() { | 684 buildUnnamed1195() { |
685 var o = new core.List<api.AccessConfig>(); | 685 var o = new core.List<api.AccessConfig>(); |
686 o.add(buildAccessConfig()); | 686 o.add(buildAccessConfig()); |
687 o.add(buildAccessConfig()); | 687 o.add(buildAccessConfig()); |
688 return o; | 688 return o; |
689 } | 689 } |
690 | 690 |
691 checkUnnamed1129(core.List<api.AccessConfig> o) { | 691 checkUnnamed1195(core.List<api.AccessConfig> o) { |
692 unittest.expect(o, unittest.hasLength(2)); | 692 unittest.expect(o, unittest.hasLength(2)); |
693 checkAccessConfig(o[0]); | 693 checkAccessConfig(o[0]); |
694 checkAccessConfig(o[1]); | 694 checkAccessConfig(o[1]); |
695 } | 695 } |
696 | 696 |
697 core.int buildCounterNetworkInterface = 0; | 697 core.int buildCounterNetworkInterface = 0; |
698 buildNetworkInterface() { | 698 buildNetworkInterface() { |
699 var o = new api.NetworkInterface(); | 699 var o = new api.NetworkInterface(); |
700 buildCounterNetworkInterface++; | 700 buildCounterNetworkInterface++; |
701 if (buildCounterNetworkInterface < 3) { | 701 if (buildCounterNetworkInterface < 3) { |
702 o.accessConfigs = buildUnnamed1129(); | 702 o.accessConfigs = buildUnnamed1195(); |
703 o.name = "foo"; | 703 o.name = "foo"; |
704 o.network = "foo"; | 704 o.network = "foo"; |
705 o.networkIp = "foo"; | 705 o.networkIp = "foo"; |
706 } | 706 } |
707 buildCounterNetworkInterface--; | 707 buildCounterNetworkInterface--; |
708 return o; | 708 return o; |
709 } | 709 } |
710 | 710 |
711 checkNetworkInterface(api.NetworkInterface o) { | 711 checkNetworkInterface(api.NetworkInterface o) { |
712 buildCounterNetworkInterface++; | 712 buildCounterNetworkInterface++; |
713 if (buildCounterNetworkInterface < 3) { | 713 if (buildCounterNetworkInterface < 3) { |
714 checkUnnamed1129(o.accessConfigs); | 714 checkUnnamed1195(o.accessConfigs); |
715 unittest.expect(o.name, unittest.equals('foo')); | 715 unittest.expect(o.name, unittest.equals('foo')); |
716 unittest.expect(o.network, unittest.equals('foo')); | 716 unittest.expect(o.network, unittest.equals('foo')); |
717 unittest.expect(o.networkIp, unittest.equals('foo')); | 717 unittest.expect(o.networkIp, unittest.equals('foo')); |
718 } | 718 } |
719 buildCounterNetworkInterface--; | 719 buildCounterNetworkInterface--; |
720 } | 720 } |
721 | 721 |
722 core.int buildCounterNetworkModule = 0; | 722 core.int buildCounterNetworkModule = 0; |
723 buildNetworkModule() { | 723 buildNetworkModule() { |
724 var o = new api.NetworkModule(); | 724 var o = new api.NetworkModule(); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 | 823 |
824 checkParamOverride(api.ParamOverride o) { | 824 checkParamOverride(api.ParamOverride o) { |
825 buildCounterParamOverride++; | 825 buildCounterParamOverride++; |
826 if (buildCounterParamOverride < 3) { | 826 if (buildCounterParamOverride < 3) { |
827 unittest.expect(o.path, unittest.equals('foo')); | 827 unittest.expect(o.path, unittest.equals('foo')); |
828 unittest.expect(o.value, unittest.equals('foo')); | 828 unittest.expect(o.value, unittest.equals('foo')); |
829 } | 829 } |
830 buildCounterParamOverride--; | 830 buildCounterParamOverride--; |
831 } | 831 } |
832 | 832 |
833 buildUnnamed1130() { | 833 buildUnnamed1196() { |
834 var o = new core.Map<core.String, api.EnvVariable>(); | 834 var o = new core.Map<core.String, api.EnvVariable>(); |
835 o["x"] = buildEnvVariable(); | 835 o["x"] = buildEnvVariable(); |
836 o["y"] = buildEnvVariable(); | 836 o["y"] = buildEnvVariable(); |
837 return o; | 837 return o; |
838 } | 838 } |
839 | 839 |
840 checkUnnamed1130(core.Map<core.String, api.EnvVariable> o) { | 840 checkUnnamed1196(core.Map<core.String, api.EnvVariable> o) { |
841 unittest.expect(o, unittest.hasLength(2)); | 841 unittest.expect(o, unittest.hasLength(2)); |
842 checkEnvVariable(o["x"]); | 842 checkEnvVariable(o["x"]); |
843 checkEnvVariable(o["y"]); | 843 checkEnvVariable(o["y"]); |
844 } | 844 } |
845 | 845 |
846 buildUnnamed1131() { | 846 buildUnnamed1197() { |
847 var o = new core.List<core.String>(); | 847 var o = new core.List<core.String>(); |
848 o.add("foo"); | 848 o.add("foo"); |
849 o.add("foo"); | 849 o.add("foo"); |
850 return o; | 850 return o; |
851 } | 851 } |
852 | 852 |
853 checkUnnamed1131(core.List<core.String> o) { | 853 checkUnnamed1197(core.List<core.String> o) { |
854 unittest.expect(o, unittest.hasLength(2)); | 854 unittest.expect(o, unittest.hasLength(2)); |
855 unittest.expect(o[0], unittest.equals('foo')); | 855 unittest.expect(o[0], unittest.equals('foo')); |
856 unittest.expect(o[1], unittest.equals('foo')); | 856 unittest.expect(o[1], unittest.equals('foo')); |
857 } | 857 } |
858 | 858 |
859 core.int buildCounterReplicaPoolModule = 0; | 859 core.int buildCounterReplicaPoolModule = 0; |
860 buildReplicaPoolModule() { | 860 buildReplicaPoolModule() { |
861 var o = new api.ReplicaPoolModule(); | 861 var o = new api.ReplicaPoolModule(); |
862 buildCounterReplicaPoolModule++; | 862 buildCounterReplicaPoolModule++; |
863 if (buildCounterReplicaPoolModule < 3) { | 863 if (buildCounterReplicaPoolModule < 3) { |
864 o.envVariables = buildUnnamed1130(); | 864 o.envVariables = buildUnnamed1196(); |
865 o.healthChecks = buildUnnamed1131(); | 865 o.healthChecks = buildUnnamed1197(); |
866 o.numReplicas = 42; | 866 o.numReplicas = 42; |
867 o.replicaPoolParams = buildReplicaPoolParams(); | 867 o.replicaPoolParams = buildReplicaPoolParams(); |
868 o.resourceView = "foo"; | 868 o.resourceView = "foo"; |
869 } | 869 } |
870 buildCounterReplicaPoolModule--; | 870 buildCounterReplicaPoolModule--; |
871 return o; | 871 return o; |
872 } | 872 } |
873 | 873 |
874 checkReplicaPoolModule(api.ReplicaPoolModule o) { | 874 checkReplicaPoolModule(api.ReplicaPoolModule o) { |
875 buildCounterReplicaPoolModule++; | 875 buildCounterReplicaPoolModule++; |
876 if (buildCounterReplicaPoolModule < 3) { | 876 if (buildCounterReplicaPoolModule < 3) { |
877 checkUnnamed1130(o.envVariables); | 877 checkUnnamed1196(o.envVariables); |
878 checkUnnamed1131(o.healthChecks); | 878 checkUnnamed1197(o.healthChecks); |
879 unittest.expect(o.numReplicas, unittest.equals(42)); | 879 unittest.expect(o.numReplicas, unittest.equals(42)); |
880 checkReplicaPoolParams(o.replicaPoolParams); | 880 checkReplicaPoolParams(o.replicaPoolParams); |
881 unittest.expect(o.resourceView, unittest.equals('foo')); | 881 unittest.expect(o.resourceView, unittest.equals('foo')); |
882 } | 882 } |
883 buildCounterReplicaPoolModule--; | 883 buildCounterReplicaPoolModule--; |
884 } | 884 } |
885 | 885 |
886 core.int buildCounterReplicaPoolModuleStatus = 0; | 886 core.int buildCounterReplicaPoolModuleStatus = 0; |
887 buildReplicaPoolModuleStatus() { | 887 buildReplicaPoolModuleStatus() { |
888 var o = new api.ReplicaPoolModuleStatus(); | 888 var o = new api.ReplicaPoolModuleStatus(); |
(...skipping 27 matching lines...) Expand all Loading... |
916 } | 916 } |
917 | 917 |
918 checkReplicaPoolParams(api.ReplicaPoolParams o) { | 918 checkReplicaPoolParams(api.ReplicaPoolParams o) { |
919 buildCounterReplicaPoolParams++; | 919 buildCounterReplicaPoolParams++; |
920 if (buildCounterReplicaPoolParams < 3) { | 920 if (buildCounterReplicaPoolParams < 3) { |
921 checkReplicaPoolParamsV1Beta1(o.v1beta1); | 921 checkReplicaPoolParamsV1Beta1(o.v1beta1); |
922 } | 922 } |
923 buildCounterReplicaPoolParams--; | 923 buildCounterReplicaPoolParams--; |
924 } | 924 } |
925 | 925 |
926 buildUnnamed1132() { | 926 buildUnnamed1198() { |
927 var o = new core.List<api.ExistingDisk>(); | 927 var o = new core.List<api.ExistingDisk>(); |
928 o.add(buildExistingDisk()); | 928 o.add(buildExistingDisk()); |
929 o.add(buildExistingDisk()); | 929 o.add(buildExistingDisk()); |
930 return o; | 930 return o; |
931 } | 931 } |
932 | 932 |
933 checkUnnamed1132(core.List<api.ExistingDisk> o) { | 933 checkUnnamed1198(core.List<api.ExistingDisk> o) { |
934 unittest.expect(o, unittest.hasLength(2)); | 934 unittest.expect(o, unittest.hasLength(2)); |
935 checkExistingDisk(o[0]); | 935 checkExistingDisk(o[0]); |
936 checkExistingDisk(o[1]); | 936 checkExistingDisk(o[1]); |
937 } | 937 } |
938 | 938 |
939 buildUnnamed1133() { | 939 buildUnnamed1199() { |
940 var o = new core.List<api.NewDisk>(); | 940 var o = new core.List<api.NewDisk>(); |
941 o.add(buildNewDisk()); | 941 o.add(buildNewDisk()); |
942 o.add(buildNewDisk()); | 942 o.add(buildNewDisk()); |
943 return o; | 943 return o; |
944 } | 944 } |
945 | 945 |
946 checkUnnamed1133(core.List<api.NewDisk> o) { | 946 checkUnnamed1199(core.List<api.NewDisk> o) { |
947 unittest.expect(o, unittest.hasLength(2)); | 947 unittest.expect(o, unittest.hasLength(2)); |
948 checkNewDisk(o[0]); | 948 checkNewDisk(o[0]); |
949 checkNewDisk(o[1]); | 949 checkNewDisk(o[1]); |
950 } | 950 } |
951 | 951 |
952 buildUnnamed1134() { | 952 buildUnnamed1200() { |
953 var o = new core.List<api.NetworkInterface>(); | 953 var o = new core.List<api.NetworkInterface>(); |
954 o.add(buildNetworkInterface()); | 954 o.add(buildNetworkInterface()); |
955 o.add(buildNetworkInterface()); | 955 o.add(buildNetworkInterface()); |
956 return o; | 956 return o; |
957 } | 957 } |
958 | 958 |
959 checkUnnamed1134(core.List<api.NetworkInterface> o) { | 959 checkUnnamed1200(core.List<api.NetworkInterface> o) { |
960 unittest.expect(o, unittest.hasLength(2)); | 960 unittest.expect(o, unittest.hasLength(2)); |
961 checkNetworkInterface(o[0]); | 961 checkNetworkInterface(o[0]); |
962 checkNetworkInterface(o[1]); | 962 checkNetworkInterface(o[1]); |
963 } | 963 } |
964 | 964 |
965 buildUnnamed1135() { | 965 buildUnnamed1201() { |
966 var o = new core.List<api.ServiceAccount>(); | 966 var o = new core.List<api.ServiceAccount>(); |
967 o.add(buildServiceAccount()); | 967 o.add(buildServiceAccount()); |
968 o.add(buildServiceAccount()); | 968 o.add(buildServiceAccount()); |
969 return o; | 969 return o; |
970 } | 970 } |
971 | 971 |
972 checkUnnamed1135(core.List<api.ServiceAccount> o) { | 972 checkUnnamed1201(core.List<api.ServiceAccount> o) { |
973 unittest.expect(o, unittest.hasLength(2)); | 973 unittest.expect(o, unittest.hasLength(2)); |
974 checkServiceAccount(o[0]); | 974 checkServiceAccount(o[0]); |
975 checkServiceAccount(o[1]); | 975 checkServiceAccount(o[1]); |
976 } | 976 } |
977 | 977 |
978 core.int buildCounterReplicaPoolParamsV1Beta1 = 0; | 978 core.int buildCounterReplicaPoolParamsV1Beta1 = 0; |
979 buildReplicaPoolParamsV1Beta1() { | 979 buildReplicaPoolParamsV1Beta1() { |
980 var o = new api.ReplicaPoolParamsV1Beta1(); | 980 var o = new api.ReplicaPoolParamsV1Beta1(); |
981 buildCounterReplicaPoolParamsV1Beta1++; | 981 buildCounterReplicaPoolParamsV1Beta1++; |
982 if (buildCounterReplicaPoolParamsV1Beta1 < 3) { | 982 if (buildCounterReplicaPoolParamsV1Beta1 < 3) { |
983 o.autoRestart = true; | 983 o.autoRestart = true; |
984 o.baseInstanceName = "foo"; | 984 o.baseInstanceName = "foo"; |
985 o.canIpForward = true; | 985 o.canIpForward = true; |
986 o.description = "foo"; | 986 o.description = "foo"; |
987 o.disksToAttach = buildUnnamed1132(); | 987 o.disksToAttach = buildUnnamed1198(); |
988 o.disksToCreate = buildUnnamed1133(); | 988 o.disksToCreate = buildUnnamed1199(); |
989 o.initAction = "foo"; | 989 o.initAction = "foo"; |
990 o.machineType = "foo"; | 990 o.machineType = "foo"; |
991 o.metadata = buildMetadata(); | 991 o.metadata = buildMetadata(); |
992 o.networkInterfaces = buildUnnamed1134(); | 992 o.networkInterfaces = buildUnnamed1200(); |
993 o.onHostMaintenance = "foo"; | 993 o.onHostMaintenance = "foo"; |
994 o.serviceAccounts = buildUnnamed1135(); | 994 o.serviceAccounts = buildUnnamed1201(); |
995 o.tags = buildTag(); | 995 o.tags = buildTag(); |
996 o.zone = "foo"; | 996 o.zone = "foo"; |
997 } | 997 } |
998 buildCounterReplicaPoolParamsV1Beta1--; | 998 buildCounterReplicaPoolParamsV1Beta1--; |
999 return o; | 999 return o; |
1000 } | 1000 } |
1001 | 1001 |
1002 checkReplicaPoolParamsV1Beta1(api.ReplicaPoolParamsV1Beta1 o) { | 1002 checkReplicaPoolParamsV1Beta1(api.ReplicaPoolParamsV1Beta1 o) { |
1003 buildCounterReplicaPoolParamsV1Beta1++; | 1003 buildCounterReplicaPoolParamsV1Beta1++; |
1004 if (buildCounterReplicaPoolParamsV1Beta1 < 3) { | 1004 if (buildCounterReplicaPoolParamsV1Beta1 < 3) { |
1005 unittest.expect(o.autoRestart, unittest.isTrue); | 1005 unittest.expect(o.autoRestart, unittest.isTrue); |
1006 unittest.expect(o.baseInstanceName, unittest.equals('foo')); | 1006 unittest.expect(o.baseInstanceName, unittest.equals('foo')); |
1007 unittest.expect(o.canIpForward, unittest.isTrue); | 1007 unittest.expect(o.canIpForward, unittest.isTrue); |
1008 unittest.expect(o.description, unittest.equals('foo')); | 1008 unittest.expect(o.description, unittest.equals('foo')); |
1009 checkUnnamed1132(o.disksToAttach); | 1009 checkUnnamed1198(o.disksToAttach); |
1010 checkUnnamed1133(o.disksToCreate); | 1010 checkUnnamed1199(o.disksToCreate); |
1011 unittest.expect(o.initAction, unittest.equals('foo')); | 1011 unittest.expect(o.initAction, unittest.equals('foo')); |
1012 unittest.expect(o.machineType, unittest.equals('foo')); | 1012 unittest.expect(o.machineType, unittest.equals('foo')); |
1013 checkMetadata(o.metadata); | 1013 checkMetadata(o.metadata); |
1014 checkUnnamed1134(o.networkInterfaces); | 1014 checkUnnamed1200(o.networkInterfaces); |
1015 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); | 1015 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); |
1016 checkUnnamed1135(o.serviceAccounts); | 1016 checkUnnamed1201(o.serviceAccounts); |
1017 checkTag(o.tags); | 1017 checkTag(o.tags); |
1018 unittest.expect(o.zone, unittest.equals('foo')); | 1018 unittest.expect(o.zone, unittest.equals('foo')); |
1019 } | 1019 } |
1020 buildCounterReplicaPoolParamsV1Beta1--; | 1020 buildCounterReplicaPoolParamsV1Beta1--; |
1021 } | 1021 } |
1022 | 1022 |
1023 buildUnnamed1136() { | 1023 buildUnnamed1202() { |
1024 var o = new core.List<core.String>(); | 1024 var o = new core.List<core.String>(); |
1025 o.add("foo"); | 1025 o.add("foo"); |
1026 o.add("foo"); | 1026 o.add("foo"); |
1027 return o; | 1027 return o; |
1028 } | 1028 } |
1029 | 1029 |
1030 checkUnnamed1136(core.List<core.String> o) { | 1030 checkUnnamed1202(core.List<core.String> o) { |
1031 unittest.expect(o, unittest.hasLength(2)); | 1031 unittest.expect(o, unittest.hasLength(2)); |
1032 unittest.expect(o[0], unittest.equals('foo')); | 1032 unittest.expect(o[0], unittest.equals('foo')); |
1033 unittest.expect(o[1], unittest.equals('foo')); | 1033 unittest.expect(o[1], unittest.equals('foo')); |
1034 } | 1034 } |
1035 | 1035 |
1036 core.int buildCounterServiceAccount = 0; | 1036 core.int buildCounterServiceAccount = 0; |
1037 buildServiceAccount() { | 1037 buildServiceAccount() { |
1038 var o = new api.ServiceAccount(); | 1038 var o = new api.ServiceAccount(); |
1039 buildCounterServiceAccount++; | 1039 buildCounterServiceAccount++; |
1040 if (buildCounterServiceAccount < 3) { | 1040 if (buildCounterServiceAccount < 3) { |
1041 o.email = "foo"; | 1041 o.email = "foo"; |
1042 o.scopes = buildUnnamed1136(); | 1042 o.scopes = buildUnnamed1202(); |
1043 } | 1043 } |
1044 buildCounterServiceAccount--; | 1044 buildCounterServiceAccount--; |
1045 return o; | 1045 return o; |
1046 } | 1046 } |
1047 | 1047 |
1048 checkServiceAccount(api.ServiceAccount o) { | 1048 checkServiceAccount(api.ServiceAccount o) { |
1049 buildCounterServiceAccount++; | 1049 buildCounterServiceAccount++; |
1050 if (buildCounterServiceAccount < 3) { | 1050 if (buildCounterServiceAccount < 3) { |
1051 unittest.expect(o.email, unittest.equals('foo')); | 1051 unittest.expect(o.email, unittest.equals('foo')); |
1052 checkUnnamed1136(o.scopes); | 1052 checkUnnamed1202(o.scopes); |
1053 } | 1053 } |
1054 buildCounterServiceAccount--; | 1054 buildCounterServiceAccount--; |
1055 } | 1055 } |
1056 | 1056 |
1057 buildUnnamed1137() { | 1057 buildUnnamed1203() { |
1058 var o = new core.List<core.String>(); | 1058 var o = new core.List<core.String>(); |
1059 o.add("foo"); | 1059 o.add("foo"); |
1060 o.add("foo"); | 1060 o.add("foo"); |
1061 return o; | 1061 return o; |
1062 } | 1062 } |
1063 | 1063 |
1064 checkUnnamed1137(core.List<core.String> o) { | 1064 checkUnnamed1203(core.List<core.String> o) { |
1065 unittest.expect(o, unittest.hasLength(2)); | 1065 unittest.expect(o, unittest.hasLength(2)); |
1066 unittest.expect(o[0], unittest.equals('foo')); | 1066 unittest.expect(o[0], unittest.equals('foo')); |
1067 unittest.expect(o[1], unittest.equals('foo')); | 1067 unittest.expect(o[1], unittest.equals('foo')); |
1068 } | 1068 } |
1069 | 1069 |
1070 core.int buildCounterTag = 0; | 1070 core.int buildCounterTag = 0; |
1071 buildTag() { | 1071 buildTag() { |
1072 var o = new api.Tag(); | 1072 var o = new api.Tag(); |
1073 buildCounterTag++; | 1073 buildCounterTag++; |
1074 if (buildCounterTag < 3) { | 1074 if (buildCounterTag < 3) { |
1075 o.fingerPrint = "foo"; | 1075 o.fingerPrint = "foo"; |
1076 o.items = buildUnnamed1137(); | 1076 o.items = buildUnnamed1203(); |
1077 } | 1077 } |
1078 buildCounterTag--; | 1078 buildCounterTag--; |
1079 return o; | 1079 return o; |
1080 } | 1080 } |
1081 | 1081 |
1082 checkTag(api.Tag o) { | 1082 checkTag(api.Tag o) { |
1083 buildCounterTag++; | 1083 buildCounterTag++; |
1084 if (buildCounterTag < 3) { | 1084 if (buildCounterTag < 3) { |
1085 unittest.expect(o.fingerPrint, unittest.equals('foo')); | 1085 unittest.expect(o.fingerPrint, unittest.equals('foo')); |
1086 checkUnnamed1137(o.items); | 1086 checkUnnamed1203(o.items); |
1087 } | 1087 } |
1088 buildCounterTag--; | 1088 buildCounterTag--; |
1089 } | 1089 } |
1090 | 1090 |
1091 buildUnnamed1138() { | 1091 buildUnnamed1204() { |
1092 var o = new core.Map<core.String, api.Action>(); | 1092 var o = new core.Map<core.String, api.Action>(); |
1093 o["x"] = buildAction(); | 1093 o["x"] = buildAction(); |
1094 o["y"] = buildAction(); | 1094 o["y"] = buildAction(); |
1095 return o; | 1095 return o; |
1096 } | 1096 } |
1097 | 1097 |
1098 checkUnnamed1138(core.Map<core.String, api.Action> o) { | 1098 checkUnnamed1204(core.Map<core.String, api.Action> o) { |
1099 unittest.expect(o, unittest.hasLength(2)); | 1099 unittest.expect(o, unittest.hasLength(2)); |
1100 checkAction(o["x"]); | 1100 checkAction(o["x"]); |
1101 checkAction(o["y"]); | 1101 checkAction(o["y"]); |
1102 } | 1102 } |
1103 | 1103 |
1104 buildUnnamed1139() { | 1104 buildUnnamed1205() { |
1105 var o = new core.Map<core.String, api.Module>(); | 1105 var o = new core.Map<core.String, api.Module>(); |
1106 o["x"] = buildModule(); | 1106 o["x"] = buildModule(); |
1107 o["y"] = buildModule(); | 1107 o["y"] = buildModule(); |
1108 return o; | 1108 return o; |
1109 } | 1109 } |
1110 | 1110 |
1111 checkUnnamed1139(core.Map<core.String, api.Module> o) { | 1111 checkUnnamed1205(core.Map<core.String, api.Module> o) { |
1112 unittest.expect(o, unittest.hasLength(2)); | 1112 unittest.expect(o, unittest.hasLength(2)); |
1113 checkModule(o["x"]); | 1113 checkModule(o["x"]); |
1114 checkModule(o["y"]); | 1114 checkModule(o["y"]); |
1115 } | 1115 } |
1116 | 1116 |
1117 core.int buildCounterTemplate = 0; | 1117 core.int buildCounterTemplate = 0; |
1118 buildTemplate() { | 1118 buildTemplate() { |
1119 var o = new api.Template(); | 1119 var o = new api.Template(); |
1120 buildCounterTemplate++; | 1120 buildCounterTemplate++; |
1121 if (buildCounterTemplate < 3) { | 1121 if (buildCounterTemplate < 3) { |
1122 o.actions = buildUnnamed1138(); | 1122 o.actions = buildUnnamed1204(); |
1123 o.description = "foo"; | 1123 o.description = "foo"; |
1124 o.modules = buildUnnamed1139(); | 1124 o.modules = buildUnnamed1205(); |
1125 o.name = "foo"; | 1125 o.name = "foo"; |
1126 } | 1126 } |
1127 buildCounterTemplate--; | 1127 buildCounterTemplate--; |
1128 return o; | 1128 return o; |
1129 } | 1129 } |
1130 | 1130 |
1131 checkTemplate(api.Template o) { | 1131 checkTemplate(api.Template o) { |
1132 buildCounterTemplate++; | 1132 buildCounterTemplate++; |
1133 if (buildCounterTemplate < 3) { | 1133 if (buildCounterTemplate < 3) { |
1134 checkUnnamed1138(o.actions); | 1134 checkUnnamed1204(o.actions); |
1135 unittest.expect(o.description, unittest.equals('foo')); | 1135 unittest.expect(o.description, unittest.equals('foo')); |
1136 checkUnnamed1139(o.modules); | 1136 checkUnnamed1205(o.modules); |
1137 unittest.expect(o.name, unittest.equals('foo')); | 1137 unittest.expect(o.name, unittest.equals('foo')); |
1138 } | 1138 } |
1139 buildCounterTemplate--; | 1139 buildCounterTemplate--; |
1140 } | 1140 } |
1141 | 1141 |
1142 buildUnnamed1140() { | 1142 buildUnnamed1206() { |
1143 var o = new core.List<api.Template>(); | 1143 var o = new core.List<api.Template>(); |
1144 o.add(buildTemplate()); | 1144 o.add(buildTemplate()); |
1145 o.add(buildTemplate()); | 1145 o.add(buildTemplate()); |
1146 return o; | 1146 return o; |
1147 } | 1147 } |
1148 | 1148 |
1149 checkUnnamed1140(core.List<api.Template> o) { | 1149 checkUnnamed1206(core.List<api.Template> o) { |
1150 unittest.expect(o, unittest.hasLength(2)); | 1150 unittest.expect(o, unittest.hasLength(2)); |
1151 checkTemplate(o[0]); | 1151 checkTemplate(o[0]); |
1152 checkTemplate(o[1]); | 1152 checkTemplate(o[1]); |
1153 } | 1153 } |
1154 | 1154 |
1155 core.int buildCounterTemplatesListResponse = 0; | 1155 core.int buildCounterTemplatesListResponse = 0; |
1156 buildTemplatesListResponse() { | 1156 buildTemplatesListResponse() { |
1157 var o = new api.TemplatesListResponse(); | 1157 var o = new api.TemplatesListResponse(); |
1158 buildCounterTemplatesListResponse++; | 1158 buildCounterTemplatesListResponse++; |
1159 if (buildCounterTemplatesListResponse < 3) { | 1159 if (buildCounterTemplatesListResponse < 3) { |
1160 o.nextPageToken = "foo"; | 1160 o.nextPageToken = "foo"; |
1161 o.resources = buildUnnamed1140(); | 1161 o.resources = buildUnnamed1206(); |
1162 } | 1162 } |
1163 buildCounterTemplatesListResponse--; | 1163 buildCounterTemplatesListResponse--; |
1164 return o; | 1164 return o; |
1165 } | 1165 } |
1166 | 1166 |
1167 checkTemplatesListResponse(api.TemplatesListResponse o) { | 1167 checkTemplatesListResponse(api.TemplatesListResponse o) { |
1168 buildCounterTemplatesListResponse++; | 1168 buildCounterTemplatesListResponse++; |
1169 if (buildCounterTemplatesListResponse < 3) { | 1169 if (buildCounterTemplatesListResponse < 3) { |
1170 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1170 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1171 checkUnnamed1140(o.resources); | 1171 checkUnnamed1206(o.resources); |
1172 } | 1172 } |
1173 buildCounterTemplatesListResponse--; | 1173 buildCounterTemplatesListResponse--; |
1174 } | 1174 } |
1175 | 1175 |
1176 | 1176 |
1177 main() { | 1177 main() { |
1178 unittest.group("obj-schema-AccessConfig", () { | 1178 unittest.group("obj-schema-AccessConfig", () { |
1179 unittest.test("to-json--from-json", () { | 1179 unittest.test("to-json--from-json", () { |
1180 var o = buildAccessConfig(); | 1180 var o = buildAccessConfig(); |
1181 var od = new api.AccessConfig.fromJson(o.toJson()); | 1181 var od = new api.AccessConfig.fromJson(o.toJson()); |
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1849 res.list(arg_projectId, maxResults: arg_maxResults, pageToken: arg_pageTok
en).then(unittest.expectAsync(((api.TemplatesListResponse response) { | 1849 res.list(arg_projectId, maxResults: arg_maxResults, pageToken: arg_pageTok
en).then(unittest.expectAsync(((api.TemplatesListResponse response) { |
1850 checkTemplatesListResponse(response); | 1850 checkTemplatesListResponse(response); |
1851 }))); | 1851 }))); |
1852 }); | 1852 }); |
1853 | 1853 |
1854 }); | 1854 }); |
1855 | 1855 |
1856 | 1856 |
1857 } | 1857 } |
1858 | 1858 |
OLD | NEW |