OLD | NEW |
1 library googleapis_beta.autoscaler.v1beta2.test; | 1 library googleapis_beta.autoscaler.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 unittest.expect(o.description, unittest.equals('foo')); | 42 unittest.expect(o.description, unittest.equals('foo')); |
43 unittest.expect(o.id, unittest.equals('foo')); | 43 unittest.expect(o.id, unittest.equals('foo')); |
44 unittest.expect(o.kind, unittest.equals('foo')); | 44 unittest.expect(o.kind, unittest.equals('foo')); |
45 unittest.expect(o.name, unittest.equals('foo')); | 45 unittest.expect(o.name, unittest.equals('foo')); |
46 unittest.expect(o.selfLink, unittest.equals('foo')); | 46 unittest.expect(o.selfLink, unittest.equals('foo')); |
47 unittest.expect(o.target, unittest.equals('foo')); | 47 unittest.expect(o.target, unittest.equals('foo')); |
48 } | 48 } |
49 buildCounterAutoscaler--; | 49 buildCounterAutoscaler--; |
50 } | 50 } |
51 | 51 |
52 buildUnnamed1319() { | 52 buildUnnamed1186() { |
53 var o = new core.List<api.Autoscaler>(); | 53 var o = new core.List<api.Autoscaler>(); |
54 o.add(buildAutoscaler()); | 54 o.add(buildAutoscaler()); |
55 o.add(buildAutoscaler()); | 55 o.add(buildAutoscaler()); |
56 return o; | 56 return o; |
57 } | 57 } |
58 | 58 |
59 checkUnnamed1319(core.List<api.Autoscaler> o) { | 59 checkUnnamed1186(core.List<api.Autoscaler> o) { |
60 unittest.expect(o, unittest.hasLength(2)); | 60 unittest.expect(o, unittest.hasLength(2)); |
61 checkAutoscaler(o[0]); | 61 checkAutoscaler(o[0]); |
62 checkAutoscaler(o[1]); | 62 checkAutoscaler(o[1]); |
63 } | 63 } |
64 | 64 |
65 core.int buildCounterAutoscalerListResponse = 0; | 65 core.int buildCounterAutoscalerListResponse = 0; |
66 buildAutoscalerListResponse() { | 66 buildAutoscalerListResponse() { |
67 var o = new api.AutoscalerListResponse(); | 67 var o = new api.AutoscalerListResponse(); |
68 buildCounterAutoscalerListResponse++; | 68 buildCounterAutoscalerListResponse++; |
69 if (buildCounterAutoscalerListResponse < 3) { | 69 if (buildCounterAutoscalerListResponse < 3) { |
70 o.items = buildUnnamed1319(); | 70 o.items = buildUnnamed1186(); |
71 o.kind = "foo"; | 71 o.kind = "foo"; |
72 o.nextPageToken = "foo"; | 72 o.nextPageToken = "foo"; |
73 } | 73 } |
74 buildCounterAutoscalerListResponse--; | 74 buildCounterAutoscalerListResponse--; |
75 return o; | 75 return o; |
76 } | 76 } |
77 | 77 |
78 checkAutoscalerListResponse(api.AutoscalerListResponse o) { | 78 checkAutoscalerListResponse(api.AutoscalerListResponse o) { |
79 buildCounterAutoscalerListResponse++; | 79 buildCounterAutoscalerListResponse++; |
80 if (buildCounterAutoscalerListResponse < 3) { | 80 if (buildCounterAutoscalerListResponse < 3) { |
81 checkUnnamed1319(o.items); | 81 checkUnnamed1186(o.items); |
82 unittest.expect(o.kind, unittest.equals('foo')); | 82 unittest.expect(o.kind, unittest.equals('foo')); |
83 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 83 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
84 } | 84 } |
85 buildCounterAutoscalerListResponse--; | 85 buildCounterAutoscalerListResponse--; |
86 } | 86 } |
87 | 87 |
88 buildUnnamed1320() { | 88 buildUnnamed1187() { |
89 var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); | 89 var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); |
90 o.add(buildAutoscalingPolicyCustomMetricUtilization()); | 90 o.add(buildAutoscalingPolicyCustomMetricUtilization()); |
91 o.add(buildAutoscalingPolicyCustomMetricUtilization()); | 91 o.add(buildAutoscalingPolicyCustomMetricUtilization()); |
92 return o; | 92 return o; |
93 } | 93 } |
94 | 94 |
95 checkUnnamed1320(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { | 95 checkUnnamed1187(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { |
96 unittest.expect(o, unittest.hasLength(2)); | 96 unittest.expect(o, unittest.hasLength(2)); |
97 checkAutoscalingPolicyCustomMetricUtilization(o[0]); | 97 checkAutoscalingPolicyCustomMetricUtilization(o[0]); |
98 checkAutoscalingPolicyCustomMetricUtilization(o[1]); | 98 checkAutoscalingPolicyCustomMetricUtilization(o[1]); |
99 } | 99 } |
100 | 100 |
101 core.int buildCounterAutoscalingPolicy = 0; | 101 core.int buildCounterAutoscalingPolicy = 0; |
102 buildAutoscalingPolicy() { | 102 buildAutoscalingPolicy() { |
103 var o = new api.AutoscalingPolicy(); | 103 var o = new api.AutoscalingPolicy(); |
104 buildCounterAutoscalingPolicy++; | 104 buildCounterAutoscalingPolicy++; |
105 if (buildCounterAutoscalingPolicy < 3) { | 105 if (buildCounterAutoscalingPolicy < 3) { |
106 o.coolDownPeriodSec = 42; | 106 o.coolDownPeriodSec = 42; |
107 o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); | 107 o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); |
108 o.customMetricUtilizations = buildUnnamed1320(); | 108 o.customMetricUtilizations = buildUnnamed1187(); |
109 o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(
); | 109 o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(
); |
110 o.maxNumReplicas = 42; | 110 o.maxNumReplicas = 42; |
111 o.minNumReplicas = 42; | 111 o.minNumReplicas = 42; |
112 } | 112 } |
113 buildCounterAutoscalingPolicy--; | 113 buildCounterAutoscalingPolicy--; |
114 return o; | 114 return o; |
115 } | 115 } |
116 | 116 |
117 checkAutoscalingPolicy(api.AutoscalingPolicy o) { | 117 checkAutoscalingPolicy(api.AutoscalingPolicy o) { |
118 buildCounterAutoscalingPolicy++; | 118 buildCounterAutoscalingPolicy++; |
119 if (buildCounterAutoscalingPolicy < 3) { | 119 if (buildCounterAutoscalingPolicy < 3) { |
120 unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); | 120 unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); |
121 checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); | 121 checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); |
122 checkUnnamed1320(o.customMetricUtilizations); | 122 checkUnnamed1187(o.customMetricUtilizations); |
123 checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); | 123 checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); |
124 unittest.expect(o.maxNumReplicas, unittest.equals(42)); | 124 unittest.expect(o.maxNumReplicas, unittest.equals(42)); |
125 unittest.expect(o.minNumReplicas, unittest.equals(42)); | 125 unittest.expect(o.minNumReplicas, unittest.equals(42)); |
126 } | 126 } |
127 buildCounterAutoscalingPolicy--; | 127 buildCounterAutoscalingPolicy--; |
128 } | 128 } |
129 | 129 |
130 core.int buildCounterAutoscalingPolicyCpuUtilization = 0; | 130 core.int buildCounterAutoscalingPolicyCpuUtilization = 0; |
131 buildAutoscalingPolicyCpuUtilization() { | 131 buildAutoscalingPolicyCpuUtilization() { |
132 var o = new api.AutoscalingPolicyCpuUtilization(); | 132 var o = new api.AutoscalingPolicyCpuUtilization(); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 checkOperationErrorErrors(api.OperationErrorErrors o) { | 231 checkOperationErrorErrors(api.OperationErrorErrors o) { |
232 buildCounterOperationErrorErrors++; | 232 buildCounterOperationErrorErrors++; |
233 if (buildCounterOperationErrorErrors < 3) { | 233 if (buildCounterOperationErrorErrors < 3) { |
234 unittest.expect(o.code, unittest.equals('foo')); | 234 unittest.expect(o.code, unittest.equals('foo')); |
235 unittest.expect(o.location, unittest.equals('foo')); | 235 unittest.expect(o.location, unittest.equals('foo')); |
236 unittest.expect(o.message, unittest.equals('foo')); | 236 unittest.expect(o.message, unittest.equals('foo')); |
237 } | 237 } |
238 buildCounterOperationErrorErrors--; | 238 buildCounterOperationErrorErrors--; |
239 } | 239 } |
240 | 240 |
241 buildUnnamed1321() { | 241 buildUnnamed1188() { |
242 var o = new core.List<api.OperationErrorErrors>(); | 242 var o = new core.List<api.OperationErrorErrors>(); |
243 o.add(buildOperationErrorErrors()); | 243 o.add(buildOperationErrorErrors()); |
244 o.add(buildOperationErrorErrors()); | 244 o.add(buildOperationErrorErrors()); |
245 return o; | 245 return o; |
246 } | 246 } |
247 | 247 |
248 checkUnnamed1321(core.List<api.OperationErrorErrors> o) { | 248 checkUnnamed1188(core.List<api.OperationErrorErrors> o) { |
249 unittest.expect(o, unittest.hasLength(2)); | 249 unittest.expect(o, unittest.hasLength(2)); |
250 checkOperationErrorErrors(o[0]); | 250 checkOperationErrorErrors(o[0]); |
251 checkOperationErrorErrors(o[1]); | 251 checkOperationErrorErrors(o[1]); |
252 } | 252 } |
253 | 253 |
254 core.int buildCounterOperationError = 0; | 254 core.int buildCounterOperationError = 0; |
255 buildOperationError() { | 255 buildOperationError() { |
256 var o = new api.OperationError(); | 256 var o = new api.OperationError(); |
257 buildCounterOperationError++; | 257 buildCounterOperationError++; |
258 if (buildCounterOperationError < 3) { | 258 if (buildCounterOperationError < 3) { |
259 o.errors = buildUnnamed1321(); | 259 o.errors = buildUnnamed1188(); |
260 } | 260 } |
261 buildCounterOperationError--; | 261 buildCounterOperationError--; |
262 return o; | 262 return o; |
263 } | 263 } |
264 | 264 |
265 checkOperationError(api.OperationError o) { | 265 checkOperationError(api.OperationError o) { |
266 buildCounterOperationError++; | 266 buildCounterOperationError++; |
267 if (buildCounterOperationError < 3) { | 267 if (buildCounterOperationError < 3) { |
268 checkUnnamed1321(o.errors); | 268 checkUnnamed1188(o.errors); |
269 } | 269 } |
270 buildCounterOperationError--; | 270 buildCounterOperationError--; |
271 } | 271 } |
272 | 272 |
273 core.int buildCounterOperationWarningsData = 0; | 273 core.int buildCounterOperationWarningsData = 0; |
274 buildOperationWarningsData() { | 274 buildOperationWarningsData() { |
275 var o = new api.OperationWarningsData(); | 275 var o = new api.OperationWarningsData(); |
276 buildCounterOperationWarningsData++; | 276 buildCounterOperationWarningsData++; |
277 if (buildCounterOperationWarningsData < 3) { | 277 if (buildCounterOperationWarningsData < 3) { |
278 o.key = "foo"; | 278 o.key = "foo"; |
279 o.value = "foo"; | 279 o.value = "foo"; |
280 } | 280 } |
281 buildCounterOperationWarningsData--; | 281 buildCounterOperationWarningsData--; |
282 return o; | 282 return o; |
283 } | 283 } |
284 | 284 |
285 checkOperationWarningsData(api.OperationWarningsData o) { | 285 checkOperationWarningsData(api.OperationWarningsData o) { |
286 buildCounterOperationWarningsData++; | 286 buildCounterOperationWarningsData++; |
287 if (buildCounterOperationWarningsData < 3) { | 287 if (buildCounterOperationWarningsData < 3) { |
288 unittest.expect(o.key, unittest.equals('foo')); | 288 unittest.expect(o.key, unittest.equals('foo')); |
289 unittest.expect(o.value, unittest.equals('foo')); | 289 unittest.expect(o.value, unittest.equals('foo')); |
290 } | 290 } |
291 buildCounterOperationWarningsData--; | 291 buildCounterOperationWarningsData--; |
292 } | 292 } |
293 | 293 |
294 buildUnnamed1322() { | 294 buildUnnamed1189() { |
295 var o = new core.List<api.OperationWarningsData>(); | 295 var o = new core.List<api.OperationWarningsData>(); |
296 o.add(buildOperationWarningsData()); | 296 o.add(buildOperationWarningsData()); |
297 o.add(buildOperationWarningsData()); | 297 o.add(buildOperationWarningsData()); |
298 return o; | 298 return o; |
299 } | 299 } |
300 | 300 |
301 checkUnnamed1322(core.List<api.OperationWarningsData> o) { | 301 checkUnnamed1189(core.List<api.OperationWarningsData> o) { |
302 unittest.expect(o, unittest.hasLength(2)); | 302 unittest.expect(o, unittest.hasLength(2)); |
303 checkOperationWarningsData(o[0]); | 303 checkOperationWarningsData(o[0]); |
304 checkOperationWarningsData(o[1]); | 304 checkOperationWarningsData(o[1]); |
305 } | 305 } |
306 | 306 |
307 core.int buildCounterOperationWarnings = 0; | 307 core.int buildCounterOperationWarnings = 0; |
308 buildOperationWarnings() { | 308 buildOperationWarnings() { |
309 var o = new api.OperationWarnings(); | 309 var o = new api.OperationWarnings(); |
310 buildCounterOperationWarnings++; | 310 buildCounterOperationWarnings++; |
311 if (buildCounterOperationWarnings < 3) { | 311 if (buildCounterOperationWarnings < 3) { |
312 o.code = "foo"; | 312 o.code = "foo"; |
313 o.data = buildUnnamed1322(); | 313 o.data = buildUnnamed1189(); |
314 o.message = "foo"; | 314 o.message = "foo"; |
315 } | 315 } |
316 buildCounterOperationWarnings--; | 316 buildCounterOperationWarnings--; |
317 return o; | 317 return o; |
318 } | 318 } |
319 | 319 |
320 checkOperationWarnings(api.OperationWarnings o) { | 320 checkOperationWarnings(api.OperationWarnings o) { |
321 buildCounterOperationWarnings++; | 321 buildCounterOperationWarnings++; |
322 if (buildCounterOperationWarnings < 3) { | 322 if (buildCounterOperationWarnings < 3) { |
323 unittest.expect(o.code, unittest.equals('foo')); | 323 unittest.expect(o.code, unittest.equals('foo')); |
324 checkUnnamed1322(o.data); | 324 checkUnnamed1189(o.data); |
325 unittest.expect(o.message, unittest.equals('foo')); | 325 unittest.expect(o.message, unittest.equals('foo')); |
326 } | 326 } |
327 buildCounterOperationWarnings--; | 327 buildCounterOperationWarnings--; |
328 } | 328 } |
329 | 329 |
330 buildUnnamed1323() { | 330 buildUnnamed1190() { |
331 var o = new core.List<api.OperationWarnings>(); | 331 var o = new core.List<api.OperationWarnings>(); |
332 o.add(buildOperationWarnings()); | 332 o.add(buildOperationWarnings()); |
333 o.add(buildOperationWarnings()); | 333 o.add(buildOperationWarnings()); |
334 return o; | 334 return o; |
335 } | 335 } |
336 | 336 |
337 checkUnnamed1323(core.List<api.OperationWarnings> o) { | 337 checkUnnamed1190(core.List<api.OperationWarnings> o) { |
338 unittest.expect(o, unittest.hasLength(2)); | 338 unittest.expect(o, unittest.hasLength(2)); |
339 checkOperationWarnings(o[0]); | 339 checkOperationWarnings(o[0]); |
340 checkOperationWarnings(o[1]); | 340 checkOperationWarnings(o[1]); |
341 } | 341 } |
342 | 342 |
343 core.int buildCounterOperation = 0; | 343 core.int buildCounterOperation = 0; |
344 buildOperation() { | 344 buildOperation() { |
345 var o = new api.Operation(); | 345 var o = new api.Operation(); |
346 buildCounterOperation++; | 346 buildCounterOperation++; |
347 if (buildCounterOperation < 3) { | 347 if (buildCounterOperation < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
358 o.operationType = "foo"; | 358 o.operationType = "foo"; |
359 o.progress = 42; | 359 o.progress = 42; |
360 o.region = "foo"; | 360 o.region = "foo"; |
361 o.selfLink = "foo"; | 361 o.selfLink = "foo"; |
362 o.startTime = "foo"; | 362 o.startTime = "foo"; |
363 o.status = "foo"; | 363 o.status = "foo"; |
364 o.statusMessage = "foo"; | 364 o.statusMessage = "foo"; |
365 o.targetId = "foo"; | 365 o.targetId = "foo"; |
366 o.targetLink = "foo"; | 366 o.targetLink = "foo"; |
367 o.user = "foo"; | 367 o.user = "foo"; |
368 o.warnings = buildUnnamed1323(); | 368 o.warnings = buildUnnamed1190(); |
369 o.zone = "foo"; | 369 o.zone = "foo"; |
370 } | 370 } |
371 buildCounterOperation--; | 371 buildCounterOperation--; |
372 return o; | 372 return o; |
373 } | 373 } |
374 | 374 |
375 checkOperation(api.Operation o) { | 375 checkOperation(api.Operation o) { |
376 buildCounterOperation++; | 376 buildCounterOperation++; |
377 if (buildCounterOperation < 3) { | 377 if (buildCounterOperation < 3) { |
378 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 378 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
379 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 379 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
380 unittest.expect(o.endTime, unittest.equals('foo')); | 380 unittest.expect(o.endTime, unittest.equals('foo')); |
381 checkOperationError(o.error); | 381 checkOperationError(o.error); |
382 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); | 382 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); |
383 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); | 383 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); |
384 unittest.expect(o.id, unittest.equals('foo')); | 384 unittest.expect(o.id, unittest.equals('foo')); |
385 unittest.expect(o.insertTime, unittest.equals('foo')); | 385 unittest.expect(o.insertTime, unittest.equals('foo')); |
386 unittest.expect(o.kind, unittest.equals('foo')); | 386 unittest.expect(o.kind, unittest.equals('foo')); |
387 unittest.expect(o.name, unittest.equals('foo')); | 387 unittest.expect(o.name, unittest.equals('foo')); |
388 unittest.expect(o.operationType, unittest.equals('foo')); | 388 unittest.expect(o.operationType, unittest.equals('foo')); |
389 unittest.expect(o.progress, unittest.equals(42)); | 389 unittest.expect(o.progress, unittest.equals(42)); |
390 unittest.expect(o.region, unittest.equals('foo')); | 390 unittest.expect(o.region, unittest.equals('foo')); |
391 unittest.expect(o.selfLink, unittest.equals('foo')); | 391 unittest.expect(o.selfLink, unittest.equals('foo')); |
392 unittest.expect(o.startTime, unittest.equals('foo')); | 392 unittest.expect(o.startTime, unittest.equals('foo')); |
393 unittest.expect(o.status, unittest.equals('foo')); | 393 unittest.expect(o.status, unittest.equals('foo')); |
394 unittest.expect(o.statusMessage, unittest.equals('foo')); | 394 unittest.expect(o.statusMessage, unittest.equals('foo')); |
395 unittest.expect(o.targetId, unittest.equals('foo')); | 395 unittest.expect(o.targetId, unittest.equals('foo')); |
396 unittest.expect(o.targetLink, unittest.equals('foo')); | 396 unittest.expect(o.targetLink, unittest.equals('foo')); |
397 unittest.expect(o.user, unittest.equals('foo')); | 397 unittest.expect(o.user, unittest.equals('foo')); |
398 checkUnnamed1323(o.warnings); | 398 checkUnnamed1190(o.warnings); |
399 unittest.expect(o.zone, unittest.equals('foo')); | 399 unittest.expect(o.zone, unittest.equals('foo')); |
400 } | 400 } |
401 buildCounterOperation--; | 401 buildCounterOperation--; |
402 } | 402 } |
403 | 403 |
404 buildUnnamed1324() { | 404 buildUnnamed1191() { |
405 var o = new core.List<api.Operation>(); | 405 var o = new core.List<api.Operation>(); |
406 o.add(buildOperation()); | 406 o.add(buildOperation()); |
407 o.add(buildOperation()); | 407 o.add(buildOperation()); |
408 return o; | 408 return o; |
409 } | 409 } |
410 | 410 |
411 checkUnnamed1324(core.List<api.Operation> o) { | 411 checkUnnamed1191(core.List<api.Operation> o) { |
412 unittest.expect(o, unittest.hasLength(2)); | 412 unittest.expect(o, unittest.hasLength(2)); |
413 checkOperation(o[0]); | 413 checkOperation(o[0]); |
414 checkOperation(o[1]); | 414 checkOperation(o[1]); |
415 } | 415 } |
416 | 416 |
417 core.int buildCounterOperationList = 0; | 417 core.int buildCounterOperationList = 0; |
418 buildOperationList() { | 418 buildOperationList() { |
419 var o = new api.OperationList(); | 419 var o = new api.OperationList(); |
420 buildCounterOperationList++; | 420 buildCounterOperationList++; |
421 if (buildCounterOperationList < 3) { | 421 if (buildCounterOperationList < 3) { |
422 o.id = "foo"; | 422 o.id = "foo"; |
423 o.items = buildUnnamed1324(); | 423 o.items = buildUnnamed1191(); |
424 o.kind = "foo"; | 424 o.kind = "foo"; |
425 o.nextPageToken = "foo"; | 425 o.nextPageToken = "foo"; |
426 o.selfLink = "foo"; | 426 o.selfLink = "foo"; |
427 } | 427 } |
428 buildCounterOperationList--; | 428 buildCounterOperationList--; |
429 return o; | 429 return o; |
430 } | 430 } |
431 | 431 |
432 checkOperationList(api.OperationList o) { | 432 checkOperationList(api.OperationList o) { |
433 buildCounterOperationList++; | 433 buildCounterOperationList++; |
434 if (buildCounterOperationList < 3) { | 434 if (buildCounterOperationList < 3) { |
435 unittest.expect(o.id, unittest.equals('foo')); | 435 unittest.expect(o.id, unittest.equals('foo')); |
436 checkUnnamed1324(o.items); | 436 checkUnnamed1191(o.items); |
437 unittest.expect(o.kind, unittest.equals('foo')); | 437 unittest.expect(o.kind, unittest.equals('foo')); |
438 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 438 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
439 unittest.expect(o.selfLink, unittest.equals('foo')); | 439 unittest.expect(o.selfLink, unittest.equals('foo')); |
440 } | 440 } |
441 buildCounterOperationList--; | 441 buildCounterOperationList--; |
442 } | 442 } |
443 | 443 |
444 core.int buildCounterZoneMaintenanceWindows = 0; | 444 core.int buildCounterZoneMaintenanceWindows = 0; |
445 buildZoneMaintenanceWindows() { | 445 buildZoneMaintenanceWindows() { |
446 var o = new api.ZoneMaintenanceWindows(); | 446 var o = new api.ZoneMaintenanceWindows(); |
(...skipping 12 matching lines...) Expand all Loading... |
459 buildCounterZoneMaintenanceWindows++; | 459 buildCounterZoneMaintenanceWindows++; |
460 if (buildCounterZoneMaintenanceWindows < 3) { | 460 if (buildCounterZoneMaintenanceWindows < 3) { |
461 unittest.expect(o.beginTime, unittest.equals('foo')); | 461 unittest.expect(o.beginTime, unittest.equals('foo')); |
462 unittest.expect(o.description, unittest.equals('foo')); | 462 unittest.expect(o.description, unittest.equals('foo')); |
463 unittest.expect(o.endTime, unittest.equals('foo')); | 463 unittest.expect(o.endTime, unittest.equals('foo')); |
464 unittest.expect(o.name, unittest.equals('foo')); | 464 unittest.expect(o.name, unittest.equals('foo')); |
465 } | 465 } |
466 buildCounterZoneMaintenanceWindows--; | 466 buildCounterZoneMaintenanceWindows--; |
467 } | 467 } |
468 | 468 |
469 buildUnnamed1325() { | 469 buildUnnamed1192() { |
470 var o = new core.List<api.ZoneMaintenanceWindows>(); | 470 var o = new core.List<api.ZoneMaintenanceWindows>(); |
471 o.add(buildZoneMaintenanceWindows()); | 471 o.add(buildZoneMaintenanceWindows()); |
472 o.add(buildZoneMaintenanceWindows()); | 472 o.add(buildZoneMaintenanceWindows()); |
473 return o; | 473 return o; |
474 } | 474 } |
475 | 475 |
476 checkUnnamed1325(core.List<api.ZoneMaintenanceWindows> o) { | 476 checkUnnamed1192(core.List<api.ZoneMaintenanceWindows> o) { |
477 unittest.expect(o, unittest.hasLength(2)); | 477 unittest.expect(o, unittest.hasLength(2)); |
478 checkZoneMaintenanceWindows(o[0]); | 478 checkZoneMaintenanceWindows(o[0]); |
479 checkZoneMaintenanceWindows(o[1]); | 479 checkZoneMaintenanceWindows(o[1]); |
480 } | 480 } |
481 | 481 |
482 core.int buildCounterZone = 0; | 482 core.int buildCounterZone = 0; |
483 buildZone() { | 483 buildZone() { |
484 var o = new api.Zone(); | 484 var o = new api.Zone(); |
485 buildCounterZone++; | 485 buildCounterZone++; |
486 if (buildCounterZone < 3) { | 486 if (buildCounterZone < 3) { |
487 o.creationTimestamp = "foo"; | 487 o.creationTimestamp = "foo"; |
488 o.deprecated = buildDeprecationStatus(); | 488 o.deprecated = buildDeprecationStatus(); |
489 o.description = "foo"; | 489 o.description = "foo"; |
490 o.id = "foo"; | 490 o.id = "foo"; |
491 o.kind = "foo"; | 491 o.kind = "foo"; |
492 o.maintenanceWindows = buildUnnamed1325(); | 492 o.maintenanceWindows = buildUnnamed1192(); |
493 o.name = "foo"; | 493 o.name = "foo"; |
494 o.region = "foo"; | 494 o.region = "foo"; |
495 o.selfLink = "foo"; | 495 o.selfLink = "foo"; |
496 o.status = "foo"; | 496 o.status = "foo"; |
497 } | 497 } |
498 buildCounterZone--; | 498 buildCounterZone--; |
499 return o; | 499 return o; |
500 } | 500 } |
501 | 501 |
502 checkZone(api.Zone o) { | 502 checkZone(api.Zone o) { |
503 buildCounterZone++; | 503 buildCounterZone++; |
504 if (buildCounterZone < 3) { | 504 if (buildCounterZone < 3) { |
505 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 505 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
506 checkDeprecationStatus(o.deprecated); | 506 checkDeprecationStatus(o.deprecated); |
507 unittest.expect(o.description, unittest.equals('foo')); | 507 unittest.expect(o.description, unittest.equals('foo')); |
508 unittest.expect(o.id, unittest.equals('foo')); | 508 unittest.expect(o.id, unittest.equals('foo')); |
509 unittest.expect(o.kind, unittest.equals('foo')); | 509 unittest.expect(o.kind, unittest.equals('foo')); |
510 checkUnnamed1325(o.maintenanceWindows); | 510 checkUnnamed1192(o.maintenanceWindows); |
511 unittest.expect(o.name, unittest.equals('foo')); | 511 unittest.expect(o.name, unittest.equals('foo')); |
512 unittest.expect(o.region, unittest.equals('foo')); | 512 unittest.expect(o.region, unittest.equals('foo')); |
513 unittest.expect(o.selfLink, unittest.equals('foo')); | 513 unittest.expect(o.selfLink, unittest.equals('foo')); |
514 unittest.expect(o.status, unittest.equals('foo')); | 514 unittest.expect(o.status, unittest.equals('foo')); |
515 } | 515 } |
516 buildCounterZone--; | 516 buildCounterZone--; |
517 } | 517 } |
518 | 518 |
519 buildUnnamed1326() { | 519 buildUnnamed1193() { |
520 var o = new core.List<api.Zone>(); | 520 var o = new core.List<api.Zone>(); |
521 o.add(buildZone()); | 521 o.add(buildZone()); |
522 o.add(buildZone()); | 522 o.add(buildZone()); |
523 return o; | 523 return o; |
524 } | 524 } |
525 | 525 |
526 checkUnnamed1326(core.List<api.Zone> o) { | 526 checkUnnamed1193(core.List<api.Zone> o) { |
527 unittest.expect(o, unittest.hasLength(2)); | 527 unittest.expect(o, unittest.hasLength(2)); |
528 checkZone(o[0]); | 528 checkZone(o[0]); |
529 checkZone(o[1]); | 529 checkZone(o[1]); |
530 } | 530 } |
531 | 531 |
532 core.int buildCounterZoneList = 0; | 532 core.int buildCounterZoneList = 0; |
533 buildZoneList() { | 533 buildZoneList() { |
534 var o = new api.ZoneList(); | 534 var o = new api.ZoneList(); |
535 buildCounterZoneList++; | 535 buildCounterZoneList++; |
536 if (buildCounterZoneList < 3) { | 536 if (buildCounterZoneList < 3) { |
537 o.id = "foo"; | 537 o.id = "foo"; |
538 o.items = buildUnnamed1326(); | 538 o.items = buildUnnamed1193(); |
539 o.kind = "foo"; | 539 o.kind = "foo"; |
540 o.nextPageToken = "foo"; | 540 o.nextPageToken = "foo"; |
541 o.selfLink = "foo"; | 541 o.selfLink = "foo"; |
542 } | 542 } |
543 buildCounterZoneList--; | 543 buildCounterZoneList--; |
544 return o; | 544 return o; |
545 } | 545 } |
546 | 546 |
547 checkZoneList(api.ZoneList o) { | 547 checkZoneList(api.ZoneList o) { |
548 buildCounterZoneList++; | 548 buildCounterZoneList++; |
549 if (buildCounterZoneList < 3) { | 549 if (buildCounterZoneList < 3) { |
550 unittest.expect(o.id, unittest.equals('foo')); | 550 unittest.expect(o.id, unittest.equals('foo')); |
551 checkUnnamed1326(o.items); | 551 checkUnnamed1193(o.items); |
552 unittest.expect(o.kind, unittest.equals('foo')); | 552 unittest.expect(o.kind, unittest.equals('foo')); |
553 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 553 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
554 unittest.expect(o.selfLink, unittest.equals('foo')); | 554 unittest.expect(o.selfLink, unittest.equals('foo')); |
555 } | 555 } |
556 buildCounterZoneList--; | 556 buildCounterZoneList--; |
557 } | 557 } |
558 | 558 |
559 | 559 |
560 main() { | 560 main() { |
561 unittest.group("obj-schema-Autoscaler", () { | 561 unittest.group("obj-schema-Autoscaler", () { |
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1292 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.ZoneList response) { | 1292 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.ZoneList response) { |
1293 checkZoneList(response); | 1293 checkZoneList(response); |
1294 }))); | 1294 }))); |
1295 }); | 1295 }); |
1296 | 1296 |
1297 }); | 1297 }); |
1298 | 1298 |
1299 | 1299 |
1300 } | 1300 } |
1301 | 1301 |
OLD | NEW |