| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 unittest.expect(o.description, unittest.equals('foo')); | 77 unittest.expect(o.description, unittest.equals('foo')); |
| 78 unittest.expect(o.id, unittest.equals('foo')); | 78 unittest.expect(o.id, unittest.equals('foo')); |
| 79 unittest.expect(o.kind, unittest.equals('foo')); | 79 unittest.expect(o.kind, unittest.equals('foo')); |
| 80 unittest.expect(o.name, unittest.equals('foo')); | 80 unittest.expect(o.name, unittest.equals('foo')); |
| 81 unittest.expect(o.selfLink, unittest.equals('foo')); | 81 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 82 unittest.expect(o.target, unittest.equals('foo')); | 82 unittest.expect(o.target, unittest.equals('foo')); |
| 83 } | 83 } |
| 84 buildCounterAutoscaler--; | 84 buildCounterAutoscaler--; |
| 85 } | 85 } |
| 86 | 86 |
| 87 buildUnnamed1745() { | 87 buildUnnamed2282() { |
| 88 var o = new core.List<api.Autoscaler>(); | 88 var o = new core.List<api.Autoscaler>(); |
| 89 o.add(buildAutoscaler()); | 89 o.add(buildAutoscaler()); |
| 90 o.add(buildAutoscaler()); | 90 o.add(buildAutoscaler()); |
| 91 return o; | 91 return o; |
| 92 } | 92 } |
| 93 | 93 |
| 94 checkUnnamed1745(core.List<api.Autoscaler> o) { | 94 checkUnnamed2282(core.List<api.Autoscaler> o) { |
| 95 unittest.expect(o, unittest.hasLength(2)); | 95 unittest.expect(o, unittest.hasLength(2)); |
| 96 checkAutoscaler(o[0]); | 96 checkAutoscaler(o[0]); |
| 97 checkAutoscaler(o[1]); | 97 checkAutoscaler(o[1]); |
| 98 } | 98 } |
| 99 | 99 |
| 100 core.int buildCounterAutoscalerListResponse = 0; | 100 core.int buildCounterAutoscalerListResponse = 0; |
| 101 buildAutoscalerListResponse() { | 101 buildAutoscalerListResponse() { |
| 102 var o = new api.AutoscalerListResponse(); | 102 var o = new api.AutoscalerListResponse(); |
| 103 buildCounterAutoscalerListResponse++; | 103 buildCounterAutoscalerListResponse++; |
| 104 if (buildCounterAutoscalerListResponse < 3) { | 104 if (buildCounterAutoscalerListResponse < 3) { |
| 105 o.items = buildUnnamed1745(); | 105 o.items = buildUnnamed2282(); |
| 106 o.kind = "foo"; | 106 o.kind = "foo"; |
| 107 o.nextPageToken = "foo"; | 107 o.nextPageToken = "foo"; |
| 108 } | 108 } |
| 109 buildCounterAutoscalerListResponse--; | 109 buildCounterAutoscalerListResponse--; |
| 110 return o; | 110 return o; |
| 111 } | 111 } |
| 112 | 112 |
| 113 checkAutoscalerListResponse(api.AutoscalerListResponse o) { | 113 checkAutoscalerListResponse(api.AutoscalerListResponse o) { |
| 114 buildCounterAutoscalerListResponse++; | 114 buildCounterAutoscalerListResponse++; |
| 115 if (buildCounterAutoscalerListResponse < 3) { | 115 if (buildCounterAutoscalerListResponse < 3) { |
| 116 checkUnnamed1745(o.items); | 116 checkUnnamed2282(o.items); |
| 117 unittest.expect(o.kind, unittest.equals('foo')); | 117 unittest.expect(o.kind, unittest.equals('foo')); |
| 118 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 118 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 119 } | 119 } |
| 120 buildCounterAutoscalerListResponse--; | 120 buildCounterAutoscalerListResponse--; |
| 121 } | 121 } |
| 122 | 122 |
| 123 buildUnnamed1746() { | 123 buildUnnamed2283() { |
| 124 var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); | 124 var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); |
| 125 o.add(buildAutoscalingPolicyCustomMetricUtilization()); | 125 o.add(buildAutoscalingPolicyCustomMetricUtilization()); |
| 126 o.add(buildAutoscalingPolicyCustomMetricUtilization()); | 126 o.add(buildAutoscalingPolicyCustomMetricUtilization()); |
| 127 return o; | 127 return o; |
| 128 } | 128 } |
| 129 | 129 |
| 130 checkUnnamed1746(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { | 130 checkUnnamed2283(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { |
| 131 unittest.expect(o, unittest.hasLength(2)); | 131 unittest.expect(o, unittest.hasLength(2)); |
| 132 checkAutoscalingPolicyCustomMetricUtilization(o[0]); | 132 checkAutoscalingPolicyCustomMetricUtilization(o[0]); |
| 133 checkAutoscalingPolicyCustomMetricUtilization(o[1]); | 133 checkAutoscalingPolicyCustomMetricUtilization(o[1]); |
| 134 } | 134 } |
| 135 | 135 |
| 136 core.int buildCounterAutoscalingPolicy = 0; | 136 core.int buildCounterAutoscalingPolicy = 0; |
| 137 buildAutoscalingPolicy() { | 137 buildAutoscalingPolicy() { |
| 138 var o = new api.AutoscalingPolicy(); | 138 var o = new api.AutoscalingPolicy(); |
| 139 buildCounterAutoscalingPolicy++; | 139 buildCounterAutoscalingPolicy++; |
| 140 if (buildCounterAutoscalingPolicy < 3) { | 140 if (buildCounterAutoscalingPolicy < 3) { |
| 141 o.coolDownPeriodSec = 42; | 141 o.coolDownPeriodSec = 42; |
| 142 o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); | 142 o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); |
| 143 o.customMetricUtilizations = buildUnnamed1746(); | 143 o.customMetricUtilizations = buildUnnamed2283(); |
| 144 o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(
); | 144 o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(
); |
| 145 o.maxNumReplicas = 42; | 145 o.maxNumReplicas = 42; |
| 146 o.minNumReplicas = 42; | 146 o.minNumReplicas = 42; |
| 147 } | 147 } |
| 148 buildCounterAutoscalingPolicy--; | 148 buildCounterAutoscalingPolicy--; |
| 149 return o; | 149 return o; |
| 150 } | 150 } |
| 151 | 151 |
| 152 checkAutoscalingPolicy(api.AutoscalingPolicy o) { | 152 checkAutoscalingPolicy(api.AutoscalingPolicy o) { |
| 153 buildCounterAutoscalingPolicy++; | 153 buildCounterAutoscalingPolicy++; |
| 154 if (buildCounterAutoscalingPolicy < 3) { | 154 if (buildCounterAutoscalingPolicy < 3) { |
| 155 unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); | 155 unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); |
| 156 checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); | 156 checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); |
| 157 checkUnnamed1746(o.customMetricUtilizations); | 157 checkUnnamed2283(o.customMetricUtilizations); |
| 158 checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); | 158 checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); |
| 159 unittest.expect(o.maxNumReplicas, unittest.equals(42)); | 159 unittest.expect(o.maxNumReplicas, unittest.equals(42)); |
| 160 unittest.expect(o.minNumReplicas, unittest.equals(42)); | 160 unittest.expect(o.minNumReplicas, unittest.equals(42)); |
| 161 } | 161 } |
| 162 buildCounterAutoscalingPolicy--; | 162 buildCounterAutoscalingPolicy--; |
| 163 } | 163 } |
| 164 | 164 |
| 165 core.int buildCounterAutoscalingPolicyCpuUtilization = 0; | 165 core.int buildCounterAutoscalingPolicyCpuUtilization = 0; |
| 166 buildAutoscalingPolicyCpuUtilization() { | 166 buildAutoscalingPolicyCpuUtilization() { |
| 167 var o = new api.AutoscalingPolicyCpuUtilization(); | 167 var o = new api.AutoscalingPolicyCpuUtilization(); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 checkOperationErrorErrors(api.OperationErrorErrors o) { | 266 checkOperationErrorErrors(api.OperationErrorErrors o) { |
| 267 buildCounterOperationErrorErrors++; | 267 buildCounterOperationErrorErrors++; |
| 268 if (buildCounterOperationErrorErrors < 3) { | 268 if (buildCounterOperationErrorErrors < 3) { |
| 269 unittest.expect(o.code, unittest.equals('foo')); | 269 unittest.expect(o.code, unittest.equals('foo')); |
| 270 unittest.expect(o.location, unittest.equals('foo')); | 270 unittest.expect(o.location, unittest.equals('foo')); |
| 271 unittest.expect(o.message, unittest.equals('foo')); | 271 unittest.expect(o.message, unittest.equals('foo')); |
| 272 } | 272 } |
| 273 buildCounterOperationErrorErrors--; | 273 buildCounterOperationErrorErrors--; |
| 274 } | 274 } |
| 275 | 275 |
| 276 buildUnnamed1747() { | 276 buildUnnamed2284() { |
| 277 var o = new core.List<api.OperationErrorErrors>(); | 277 var o = new core.List<api.OperationErrorErrors>(); |
| 278 o.add(buildOperationErrorErrors()); | 278 o.add(buildOperationErrorErrors()); |
| 279 o.add(buildOperationErrorErrors()); | 279 o.add(buildOperationErrorErrors()); |
| 280 return o; | 280 return o; |
| 281 } | 281 } |
| 282 | 282 |
| 283 checkUnnamed1747(core.List<api.OperationErrorErrors> o) { | 283 checkUnnamed2284(core.List<api.OperationErrorErrors> o) { |
| 284 unittest.expect(o, unittest.hasLength(2)); | 284 unittest.expect(o, unittest.hasLength(2)); |
| 285 checkOperationErrorErrors(o[0]); | 285 checkOperationErrorErrors(o[0]); |
| 286 checkOperationErrorErrors(o[1]); | 286 checkOperationErrorErrors(o[1]); |
| 287 } | 287 } |
| 288 | 288 |
| 289 core.int buildCounterOperationError = 0; | 289 core.int buildCounterOperationError = 0; |
| 290 buildOperationError() { | 290 buildOperationError() { |
| 291 var o = new api.OperationError(); | 291 var o = new api.OperationError(); |
| 292 buildCounterOperationError++; | 292 buildCounterOperationError++; |
| 293 if (buildCounterOperationError < 3) { | 293 if (buildCounterOperationError < 3) { |
| 294 o.errors = buildUnnamed1747(); | 294 o.errors = buildUnnamed2284(); |
| 295 } | 295 } |
| 296 buildCounterOperationError--; | 296 buildCounterOperationError--; |
| 297 return o; | 297 return o; |
| 298 } | 298 } |
| 299 | 299 |
| 300 checkOperationError(api.OperationError o) { | 300 checkOperationError(api.OperationError o) { |
| 301 buildCounterOperationError++; | 301 buildCounterOperationError++; |
| 302 if (buildCounterOperationError < 3) { | 302 if (buildCounterOperationError < 3) { |
| 303 checkUnnamed1747(o.errors); | 303 checkUnnamed2284(o.errors); |
| 304 } | 304 } |
| 305 buildCounterOperationError--; | 305 buildCounterOperationError--; |
| 306 } | 306 } |
| 307 | 307 |
| 308 core.int buildCounterOperationWarningsData = 0; | 308 core.int buildCounterOperationWarningsData = 0; |
| 309 buildOperationWarningsData() { | 309 buildOperationWarningsData() { |
| 310 var o = new api.OperationWarningsData(); | 310 var o = new api.OperationWarningsData(); |
| 311 buildCounterOperationWarningsData++; | 311 buildCounterOperationWarningsData++; |
| 312 if (buildCounterOperationWarningsData < 3) { | 312 if (buildCounterOperationWarningsData < 3) { |
| 313 o.key = "foo"; | 313 o.key = "foo"; |
| 314 o.value = "foo"; | 314 o.value = "foo"; |
| 315 } | 315 } |
| 316 buildCounterOperationWarningsData--; | 316 buildCounterOperationWarningsData--; |
| 317 return o; | 317 return o; |
| 318 } | 318 } |
| 319 | 319 |
| 320 checkOperationWarningsData(api.OperationWarningsData o) { | 320 checkOperationWarningsData(api.OperationWarningsData o) { |
| 321 buildCounterOperationWarningsData++; | 321 buildCounterOperationWarningsData++; |
| 322 if (buildCounterOperationWarningsData < 3) { | 322 if (buildCounterOperationWarningsData < 3) { |
| 323 unittest.expect(o.key, unittest.equals('foo')); | 323 unittest.expect(o.key, unittest.equals('foo')); |
| 324 unittest.expect(o.value, unittest.equals('foo')); | 324 unittest.expect(o.value, unittest.equals('foo')); |
| 325 } | 325 } |
| 326 buildCounterOperationWarningsData--; | 326 buildCounterOperationWarningsData--; |
| 327 } | 327 } |
| 328 | 328 |
| 329 buildUnnamed1748() { | 329 buildUnnamed2285() { |
| 330 var o = new core.List<api.OperationWarningsData>(); | 330 var o = new core.List<api.OperationWarningsData>(); |
| 331 o.add(buildOperationWarningsData()); | 331 o.add(buildOperationWarningsData()); |
| 332 o.add(buildOperationWarningsData()); | 332 o.add(buildOperationWarningsData()); |
| 333 return o; | 333 return o; |
| 334 } | 334 } |
| 335 | 335 |
| 336 checkUnnamed1748(core.List<api.OperationWarningsData> o) { | 336 checkUnnamed2285(core.List<api.OperationWarningsData> o) { |
| 337 unittest.expect(o, unittest.hasLength(2)); | 337 unittest.expect(o, unittest.hasLength(2)); |
| 338 checkOperationWarningsData(o[0]); | 338 checkOperationWarningsData(o[0]); |
| 339 checkOperationWarningsData(o[1]); | 339 checkOperationWarningsData(o[1]); |
| 340 } | 340 } |
| 341 | 341 |
| 342 core.int buildCounterOperationWarnings = 0; | 342 core.int buildCounterOperationWarnings = 0; |
| 343 buildOperationWarnings() { | 343 buildOperationWarnings() { |
| 344 var o = new api.OperationWarnings(); | 344 var o = new api.OperationWarnings(); |
| 345 buildCounterOperationWarnings++; | 345 buildCounterOperationWarnings++; |
| 346 if (buildCounterOperationWarnings < 3) { | 346 if (buildCounterOperationWarnings < 3) { |
| 347 o.code = "foo"; | 347 o.code = "foo"; |
| 348 o.data = buildUnnamed1748(); | 348 o.data = buildUnnamed2285(); |
| 349 o.message = "foo"; | 349 o.message = "foo"; |
| 350 } | 350 } |
| 351 buildCounterOperationWarnings--; | 351 buildCounterOperationWarnings--; |
| 352 return o; | 352 return o; |
| 353 } | 353 } |
| 354 | 354 |
| 355 checkOperationWarnings(api.OperationWarnings o) { | 355 checkOperationWarnings(api.OperationWarnings o) { |
| 356 buildCounterOperationWarnings++; | 356 buildCounterOperationWarnings++; |
| 357 if (buildCounterOperationWarnings < 3) { | 357 if (buildCounterOperationWarnings < 3) { |
| 358 unittest.expect(o.code, unittest.equals('foo')); | 358 unittest.expect(o.code, unittest.equals('foo')); |
| 359 checkUnnamed1748(o.data); | 359 checkUnnamed2285(o.data); |
| 360 unittest.expect(o.message, unittest.equals('foo')); | 360 unittest.expect(o.message, unittest.equals('foo')); |
| 361 } | 361 } |
| 362 buildCounterOperationWarnings--; | 362 buildCounterOperationWarnings--; |
| 363 } | 363 } |
| 364 | 364 |
| 365 buildUnnamed1749() { | 365 buildUnnamed2286() { |
| 366 var o = new core.List<api.OperationWarnings>(); | 366 var o = new core.List<api.OperationWarnings>(); |
| 367 o.add(buildOperationWarnings()); | 367 o.add(buildOperationWarnings()); |
| 368 o.add(buildOperationWarnings()); | 368 o.add(buildOperationWarnings()); |
| 369 return o; | 369 return o; |
| 370 } | 370 } |
| 371 | 371 |
| 372 checkUnnamed1749(core.List<api.OperationWarnings> o) { | 372 checkUnnamed2286(core.List<api.OperationWarnings> o) { |
| 373 unittest.expect(o, unittest.hasLength(2)); | 373 unittest.expect(o, unittest.hasLength(2)); |
| 374 checkOperationWarnings(o[0]); | 374 checkOperationWarnings(o[0]); |
| 375 checkOperationWarnings(o[1]); | 375 checkOperationWarnings(o[1]); |
| 376 } | 376 } |
| 377 | 377 |
| 378 core.int buildCounterOperation = 0; | 378 core.int buildCounterOperation = 0; |
| 379 buildOperation() { | 379 buildOperation() { |
| 380 var o = new api.Operation(); | 380 var o = new api.Operation(); |
| 381 buildCounterOperation++; | 381 buildCounterOperation++; |
| 382 if (buildCounterOperation < 3) { | 382 if (buildCounterOperation < 3) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 393 o.operationType = "foo"; | 393 o.operationType = "foo"; |
| 394 o.progress = 42; | 394 o.progress = 42; |
| 395 o.region = "foo"; | 395 o.region = "foo"; |
| 396 o.selfLink = "foo"; | 396 o.selfLink = "foo"; |
| 397 o.startTime = "foo"; | 397 o.startTime = "foo"; |
| 398 o.status = "foo"; | 398 o.status = "foo"; |
| 399 o.statusMessage = "foo"; | 399 o.statusMessage = "foo"; |
| 400 o.targetId = "foo"; | 400 o.targetId = "foo"; |
| 401 o.targetLink = "foo"; | 401 o.targetLink = "foo"; |
| 402 o.user = "foo"; | 402 o.user = "foo"; |
| 403 o.warnings = buildUnnamed1749(); | 403 o.warnings = buildUnnamed2286(); |
| 404 o.zone = "foo"; | 404 o.zone = "foo"; |
| 405 } | 405 } |
| 406 buildCounterOperation--; | 406 buildCounterOperation--; |
| 407 return o; | 407 return o; |
| 408 } | 408 } |
| 409 | 409 |
| 410 checkOperation(api.Operation o) { | 410 checkOperation(api.Operation o) { |
| 411 buildCounterOperation++; | 411 buildCounterOperation++; |
| 412 if (buildCounterOperation < 3) { | 412 if (buildCounterOperation < 3) { |
| 413 unittest.expect(o.clientOperationId, unittest.equals('foo')); | 413 unittest.expect(o.clientOperationId, unittest.equals('foo')); |
| 414 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 414 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 415 unittest.expect(o.endTime, unittest.equals('foo')); | 415 unittest.expect(o.endTime, unittest.equals('foo')); |
| 416 checkOperationError(o.error); | 416 checkOperationError(o.error); |
| 417 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); | 417 unittest.expect(o.httpErrorMessage, unittest.equals('foo')); |
| 418 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); | 418 unittest.expect(o.httpErrorStatusCode, unittest.equals(42)); |
| 419 unittest.expect(o.id, unittest.equals('foo')); | 419 unittest.expect(o.id, unittest.equals('foo')); |
| 420 unittest.expect(o.insertTime, unittest.equals('foo')); | 420 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 421 unittest.expect(o.kind, unittest.equals('foo')); | 421 unittest.expect(o.kind, unittest.equals('foo')); |
| 422 unittest.expect(o.name, unittest.equals('foo')); | 422 unittest.expect(o.name, unittest.equals('foo')); |
| 423 unittest.expect(o.operationType, unittest.equals('foo')); | 423 unittest.expect(o.operationType, unittest.equals('foo')); |
| 424 unittest.expect(o.progress, unittest.equals(42)); | 424 unittest.expect(o.progress, unittest.equals(42)); |
| 425 unittest.expect(o.region, unittest.equals('foo')); | 425 unittest.expect(o.region, unittest.equals('foo')); |
| 426 unittest.expect(o.selfLink, unittest.equals('foo')); | 426 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 427 unittest.expect(o.startTime, unittest.equals('foo')); | 427 unittest.expect(o.startTime, unittest.equals('foo')); |
| 428 unittest.expect(o.status, unittest.equals('foo')); | 428 unittest.expect(o.status, unittest.equals('foo')); |
| 429 unittest.expect(o.statusMessage, unittest.equals('foo')); | 429 unittest.expect(o.statusMessage, unittest.equals('foo')); |
| 430 unittest.expect(o.targetId, unittest.equals('foo')); | 430 unittest.expect(o.targetId, unittest.equals('foo')); |
| 431 unittest.expect(o.targetLink, unittest.equals('foo')); | 431 unittest.expect(o.targetLink, unittest.equals('foo')); |
| 432 unittest.expect(o.user, unittest.equals('foo')); | 432 unittest.expect(o.user, unittest.equals('foo')); |
| 433 checkUnnamed1749(o.warnings); | 433 checkUnnamed2286(o.warnings); |
| 434 unittest.expect(o.zone, unittest.equals('foo')); | 434 unittest.expect(o.zone, unittest.equals('foo')); |
| 435 } | 435 } |
| 436 buildCounterOperation--; | 436 buildCounterOperation--; |
| 437 } | 437 } |
| 438 | 438 |
| 439 buildUnnamed1750() { | 439 buildUnnamed2287() { |
| 440 var o = new core.List<api.Operation>(); | 440 var o = new core.List<api.Operation>(); |
| 441 o.add(buildOperation()); | 441 o.add(buildOperation()); |
| 442 o.add(buildOperation()); | 442 o.add(buildOperation()); |
| 443 return o; | 443 return o; |
| 444 } | 444 } |
| 445 | 445 |
| 446 checkUnnamed1750(core.List<api.Operation> o) { | 446 checkUnnamed2287(core.List<api.Operation> o) { |
| 447 unittest.expect(o, unittest.hasLength(2)); | 447 unittest.expect(o, unittest.hasLength(2)); |
| 448 checkOperation(o[0]); | 448 checkOperation(o[0]); |
| 449 checkOperation(o[1]); | 449 checkOperation(o[1]); |
| 450 } | 450 } |
| 451 | 451 |
| 452 core.int buildCounterOperationList = 0; | 452 core.int buildCounterOperationList = 0; |
| 453 buildOperationList() { | 453 buildOperationList() { |
| 454 var o = new api.OperationList(); | 454 var o = new api.OperationList(); |
| 455 buildCounterOperationList++; | 455 buildCounterOperationList++; |
| 456 if (buildCounterOperationList < 3) { | 456 if (buildCounterOperationList < 3) { |
| 457 o.id = "foo"; | 457 o.id = "foo"; |
| 458 o.items = buildUnnamed1750(); | 458 o.items = buildUnnamed2287(); |
| 459 o.kind = "foo"; | 459 o.kind = "foo"; |
| 460 o.nextPageToken = "foo"; | 460 o.nextPageToken = "foo"; |
| 461 o.selfLink = "foo"; | 461 o.selfLink = "foo"; |
| 462 } | 462 } |
| 463 buildCounterOperationList--; | 463 buildCounterOperationList--; |
| 464 return o; | 464 return o; |
| 465 } | 465 } |
| 466 | 466 |
| 467 checkOperationList(api.OperationList o) { | 467 checkOperationList(api.OperationList o) { |
| 468 buildCounterOperationList++; | 468 buildCounterOperationList++; |
| 469 if (buildCounterOperationList < 3) { | 469 if (buildCounterOperationList < 3) { |
| 470 unittest.expect(o.id, unittest.equals('foo')); | 470 unittest.expect(o.id, unittest.equals('foo')); |
| 471 checkUnnamed1750(o.items); | 471 checkUnnamed2287(o.items); |
| 472 unittest.expect(o.kind, unittest.equals('foo')); | 472 unittest.expect(o.kind, unittest.equals('foo')); |
| 473 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 473 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 474 unittest.expect(o.selfLink, unittest.equals('foo')); | 474 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 475 } | 475 } |
| 476 buildCounterOperationList--; | 476 buildCounterOperationList--; |
| 477 } | 477 } |
| 478 | 478 |
| 479 core.int buildCounterZoneMaintenanceWindows = 0; | 479 core.int buildCounterZoneMaintenanceWindows = 0; |
| 480 buildZoneMaintenanceWindows() { | 480 buildZoneMaintenanceWindows() { |
| 481 var o = new api.ZoneMaintenanceWindows(); | 481 var o = new api.ZoneMaintenanceWindows(); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 494 buildCounterZoneMaintenanceWindows++; | 494 buildCounterZoneMaintenanceWindows++; |
| 495 if (buildCounterZoneMaintenanceWindows < 3) { | 495 if (buildCounterZoneMaintenanceWindows < 3) { |
| 496 unittest.expect(o.beginTime, unittest.equals('foo')); | 496 unittest.expect(o.beginTime, unittest.equals('foo')); |
| 497 unittest.expect(o.description, unittest.equals('foo')); | 497 unittest.expect(o.description, unittest.equals('foo')); |
| 498 unittest.expect(o.endTime, unittest.equals('foo')); | 498 unittest.expect(o.endTime, unittest.equals('foo')); |
| 499 unittest.expect(o.name, unittest.equals('foo')); | 499 unittest.expect(o.name, unittest.equals('foo')); |
| 500 } | 500 } |
| 501 buildCounterZoneMaintenanceWindows--; | 501 buildCounterZoneMaintenanceWindows--; |
| 502 } | 502 } |
| 503 | 503 |
| 504 buildUnnamed1751() { | 504 buildUnnamed2288() { |
| 505 var o = new core.List<api.ZoneMaintenanceWindows>(); | 505 var o = new core.List<api.ZoneMaintenanceWindows>(); |
| 506 o.add(buildZoneMaintenanceWindows()); | 506 o.add(buildZoneMaintenanceWindows()); |
| 507 o.add(buildZoneMaintenanceWindows()); | 507 o.add(buildZoneMaintenanceWindows()); |
| 508 return o; | 508 return o; |
| 509 } | 509 } |
| 510 | 510 |
| 511 checkUnnamed1751(core.List<api.ZoneMaintenanceWindows> o) { | 511 checkUnnamed2288(core.List<api.ZoneMaintenanceWindows> o) { |
| 512 unittest.expect(o, unittest.hasLength(2)); | 512 unittest.expect(o, unittest.hasLength(2)); |
| 513 checkZoneMaintenanceWindows(o[0]); | 513 checkZoneMaintenanceWindows(o[0]); |
| 514 checkZoneMaintenanceWindows(o[1]); | 514 checkZoneMaintenanceWindows(o[1]); |
| 515 } | 515 } |
| 516 | 516 |
| 517 core.int buildCounterZone = 0; | 517 core.int buildCounterZone = 0; |
| 518 buildZone() { | 518 buildZone() { |
| 519 var o = new api.Zone(); | 519 var o = new api.Zone(); |
| 520 buildCounterZone++; | 520 buildCounterZone++; |
| 521 if (buildCounterZone < 3) { | 521 if (buildCounterZone < 3) { |
| 522 o.creationTimestamp = "foo"; | 522 o.creationTimestamp = "foo"; |
| 523 o.deprecated = buildDeprecationStatus(); | 523 o.deprecated = buildDeprecationStatus(); |
| 524 o.description = "foo"; | 524 o.description = "foo"; |
| 525 o.id = "foo"; | 525 o.id = "foo"; |
| 526 o.kind = "foo"; | 526 o.kind = "foo"; |
| 527 o.maintenanceWindows = buildUnnamed1751(); | 527 o.maintenanceWindows = buildUnnamed2288(); |
| 528 o.name = "foo"; | 528 o.name = "foo"; |
| 529 o.region = "foo"; | 529 o.region = "foo"; |
| 530 o.selfLink = "foo"; | 530 o.selfLink = "foo"; |
| 531 o.status = "foo"; | 531 o.status = "foo"; |
| 532 } | 532 } |
| 533 buildCounterZone--; | 533 buildCounterZone--; |
| 534 return o; | 534 return o; |
| 535 } | 535 } |
| 536 | 536 |
| 537 checkZone(api.Zone o) { | 537 checkZone(api.Zone o) { |
| 538 buildCounterZone++; | 538 buildCounterZone++; |
| 539 if (buildCounterZone < 3) { | 539 if (buildCounterZone < 3) { |
| 540 unittest.expect(o.creationTimestamp, unittest.equals('foo')); | 540 unittest.expect(o.creationTimestamp, unittest.equals('foo')); |
| 541 checkDeprecationStatus(o.deprecated); | 541 checkDeprecationStatus(o.deprecated); |
| 542 unittest.expect(o.description, unittest.equals('foo')); | 542 unittest.expect(o.description, unittest.equals('foo')); |
| 543 unittest.expect(o.id, unittest.equals('foo')); | 543 unittest.expect(o.id, unittest.equals('foo')); |
| 544 unittest.expect(o.kind, unittest.equals('foo')); | 544 unittest.expect(o.kind, unittest.equals('foo')); |
| 545 checkUnnamed1751(o.maintenanceWindows); | 545 checkUnnamed2288(o.maintenanceWindows); |
| 546 unittest.expect(o.name, unittest.equals('foo')); | 546 unittest.expect(o.name, unittest.equals('foo')); |
| 547 unittest.expect(o.region, unittest.equals('foo')); | 547 unittest.expect(o.region, unittest.equals('foo')); |
| 548 unittest.expect(o.selfLink, unittest.equals('foo')); | 548 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 549 unittest.expect(o.status, unittest.equals('foo')); | 549 unittest.expect(o.status, unittest.equals('foo')); |
| 550 } | 550 } |
| 551 buildCounterZone--; | 551 buildCounterZone--; |
| 552 } | 552 } |
| 553 | 553 |
| 554 buildUnnamed1752() { | 554 buildUnnamed2289() { |
| 555 var o = new core.List<api.Zone>(); | 555 var o = new core.List<api.Zone>(); |
| 556 o.add(buildZone()); | 556 o.add(buildZone()); |
| 557 o.add(buildZone()); | 557 o.add(buildZone()); |
| 558 return o; | 558 return o; |
| 559 } | 559 } |
| 560 | 560 |
| 561 checkUnnamed1752(core.List<api.Zone> o) { | 561 checkUnnamed2289(core.List<api.Zone> o) { |
| 562 unittest.expect(o, unittest.hasLength(2)); | 562 unittest.expect(o, unittest.hasLength(2)); |
| 563 checkZone(o[0]); | 563 checkZone(o[0]); |
| 564 checkZone(o[1]); | 564 checkZone(o[1]); |
| 565 } | 565 } |
| 566 | 566 |
| 567 core.int buildCounterZoneList = 0; | 567 core.int buildCounterZoneList = 0; |
| 568 buildZoneList() { | 568 buildZoneList() { |
| 569 var o = new api.ZoneList(); | 569 var o = new api.ZoneList(); |
| 570 buildCounterZoneList++; | 570 buildCounterZoneList++; |
| 571 if (buildCounterZoneList < 3) { | 571 if (buildCounterZoneList < 3) { |
| 572 o.id = "foo"; | 572 o.id = "foo"; |
| 573 o.items = buildUnnamed1752(); | 573 o.items = buildUnnamed2289(); |
| 574 o.kind = "foo"; | 574 o.kind = "foo"; |
| 575 o.nextPageToken = "foo"; | 575 o.nextPageToken = "foo"; |
| 576 o.selfLink = "foo"; | 576 o.selfLink = "foo"; |
| 577 } | 577 } |
| 578 buildCounterZoneList--; | 578 buildCounterZoneList--; |
| 579 return o; | 579 return o; |
| 580 } | 580 } |
| 581 | 581 |
| 582 checkZoneList(api.ZoneList o) { | 582 checkZoneList(api.ZoneList o) { |
| 583 buildCounterZoneList++; | 583 buildCounterZoneList++; |
| 584 if (buildCounterZoneList < 3) { | 584 if (buildCounterZoneList < 3) { |
| 585 unittest.expect(o.id, unittest.equals('foo')); | 585 unittest.expect(o.id, unittest.equals('foo')); |
| 586 checkUnnamed1752(o.items); | 586 checkUnnamed2289(o.items); |
| 587 unittest.expect(o.kind, unittest.equals('foo')); | 587 unittest.expect(o.kind, unittest.equals('foo')); |
| 588 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 588 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 589 unittest.expect(o.selfLink, unittest.equals('foo')); | 589 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 590 } | 590 } |
| 591 buildCounterZoneList--; | 591 buildCounterZoneList--; |
| 592 } | 592 } |
| 593 | 593 |
| 594 | 594 |
| 595 main() { | 595 main() { |
| 596 unittest.group("obj-schema-Autoscaler", () { | 596 unittest.group("obj-schema-Autoscaler", () { |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1327 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.ZoneList response) { | 1327 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.ZoneList response) { |
| 1328 checkZoneList(response); | 1328 checkZoneList(response); |
| 1329 }))); | 1329 }))); |
| 1330 }); | 1330 }); |
| 1331 | 1331 |
| 1332 }); | 1332 }); |
| 1333 | 1333 |
| 1334 | 1334 |
| 1335 } | 1335 } |
| 1336 | 1336 |
| OLD | NEW |