| OLD | NEW |
| 1 library googleapis_beta.replicapool.v1beta1.test; | 1 library googleapis_beta.replicapool.v1beta1.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 buildUnnamed1243() { | 42 buildUnnamed1150() { |
| 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 checkUnnamed1243(core.List<core.String> o) { | 49 checkUnnamed1150(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 buildUnnamed1244() { | 55 buildUnnamed1151() { |
| 56 var o = new core.List<api.EnvVariable>(); | 56 var o = new core.List<api.EnvVariable>(); |
| 57 o.add(buildEnvVariable()); | 57 o.add(buildEnvVariable()); |
| 58 o.add(buildEnvVariable()); | 58 o.add(buildEnvVariable()); |
| 59 return o; | 59 return o; |
| 60 } | 60 } |
| 61 | 61 |
| 62 checkUnnamed1244(core.List<api.EnvVariable> o) { | 62 checkUnnamed1151(core.List<api.EnvVariable> o) { |
| 63 unittest.expect(o, unittest.hasLength(2)); | 63 unittest.expect(o, unittest.hasLength(2)); |
| 64 checkEnvVariable(o[0]); | 64 checkEnvVariable(o[0]); |
| 65 checkEnvVariable(o[1]); | 65 checkEnvVariable(o[1]); |
| 66 } | 66 } |
| 67 | 67 |
| 68 core.int buildCounterAction = 0; | 68 core.int buildCounterAction = 0; |
| 69 buildAction() { | 69 buildAction() { |
| 70 var o = new api.Action(); | 70 var o = new api.Action(); |
| 71 buildCounterAction++; | 71 buildCounterAction++; |
| 72 if (buildCounterAction < 3) { | 72 if (buildCounterAction < 3) { |
| 73 o.commands = buildUnnamed1243(); | 73 o.commands = buildUnnamed1150(); |
| 74 o.envVariables = buildUnnamed1244(); | 74 o.envVariables = buildUnnamed1151(); |
| 75 o.timeoutMilliSeconds = 42; | 75 o.timeoutMilliSeconds = 42; |
| 76 } | 76 } |
| 77 buildCounterAction--; | 77 buildCounterAction--; |
| 78 return o; | 78 return o; |
| 79 } | 79 } |
| 80 | 80 |
| 81 checkAction(api.Action o) { | 81 checkAction(api.Action o) { |
| 82 buildCounterAction++; | 82 buildCounterAction++; |
| 83 if (buildCounterAction < 3) { | 83 if (buildCounterAction < 3) { |
| 84 checkUnnamed1243(o.commands); | 84 checkUnnamed1150(o.commands); |
| 85 checkUnnamed1244(o.envVariables); | 85 checkUnnamed1151(o.envVariables); |
| 86 unittest.expect(o.timeoutMilliSeconds, unittest.equals(42)); | 86 unittest.expect(o.timeoutMilliSeconds, unittest.equals(42)); |
| 87 } | 87 } |
| 88 buildCounterAction--; | 88 buildCounterAction--; |
| 89 } | 89 } |
| 90 | 90 |
| 91 core.int buildCounterDiskAttachment = 0; | 91 core.int buildCounterDiskAttachment = 0; |
| 92 buildDiskAttachment() { | 92 buildDiskAttachment() { |
| 93 var o = new api.DiskAttachment(); | 93 var o = new api.DiskAttachment(); |
| 94 buildCounterDiskAttachment++; | 94 buildCounterDiskAttachment++; |
| 95 if (buildCounterDiskAttachment < 3) { | 95 if (buildCounterDiskAttachment < 3) { |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 | 202 |
| 203 checkLabel(api.Label o) { | 203 checkLabel(api.Label o) { |
| 204 buildCounterLabel++; | 204 buildCounterLabel++; |
| 205 if (buildCounterLabel < 3) { | 205 if (buildCounterLabel < 3) { |
| 206 unittest.expect(o.key, unittest.equals('foo')); | 206 unittest.expect(o.key, unittest.equals('foo')); |
| 207 unittest.expect(o.value, unittest.equals('foo')); | 207 unittest.expect(o.value, unittest.equals('foo')); |
| 208 } | 208 } |
| 209 buildCounterLabel--; | 209 buildCounterLabel--; |
| 210 } | 210 } |
| 211 | 211 |
| 212 buildUnnamed1245() { | 212 buildUnnamed1152() { |
| 213 var o = new core.List<api.MetadataItem>(); | 213 var o = new core.List<api.MetadataItem>(); |
| 214 o.add(buildMetadataItem()); | 214 o.add(buildMetadataItem()); |
| 215 o.add(buildMetadataItem()); | 215 o.add(buildMetadataItem()); |
| 216 return o; | 216 return o; |
| 217 } | 217 } |
| 218 | 218 |
| 219 checkUnnamed1245(core.List<api.MetadataItem> o) { | 219 checkUnnamed1152(core.List<api.MetadataItem> o) { |
| 220 unittest.expect(o, unittest.hasLength(2)); | 220 unittest.expect(o, unittest.hasLength(2)); |
| 221 checkMetadataItem(o[0]); | 221 checkMetadataItem(o[0]); |
| 222 checkMetadataItem(o[1]); | 222 checkMetadataItem(o[1]); |
| 223 } | 223 } |
| 224 | 224 |
| 225 core.int buildCounterMetadata = 0; | 225 core.int buildCounterMetadata = 0; |
| 226 buildMetadata() { | 226 buildMetadata() { |
| 227 var o = new api.Metadata(); | 227 var o = new api.Metadata(); |
| 228 buildCounterMetadata++; | 228 buildCounterMetadata++; |
| 229 if (buildCounterMetadata < 3) { | 229 if (buildCounterMetadata < 3) { |
| 230 o.fingerPrint = "foo"; | 230 o.fingerPrint = "foo"; |
| 231 o.items = buildUnnamed1245(); | 231 o.items = buildUnnamed1152(); |
| 232 } | 232 } |
| 233 buildCounterMetadata--; | 233 buildCounterMetadata--; |
| 234 return o; | 234 return o; |
| 235 } | 235 } |
| 236 | 236 |
| 237 checkMetadata(api.Metadata o) { | 237 checkMetadata(api.Metadata o) { |
| 238 buildCounterMetadata++; | 238 buildCounterMetadata++; |
| 239 if (buildCounterMetadata < 3) { | 239 if (buildCounterMetadata < 3) { |
| 240 unittest.expect(o.fingerPrint, unittest.equals('foo')); | 240 unittest.expect(o.fingerPrint, unittest.equals('foo')); |
| 241 checkUnnamed1245(o.items); | 241 checkUnnamed1152(o.items); |
| 242 } | 242 } |
| 243 buildCounterMetadata--; | 243 buildCounterMetadata--; |
| 244 } | 244 } |
| 245 | 245 |
| 246 core.int buildCounterMetadataItem = 0; | 246 core.int buildCounterMetadataItem = 0; |
| 247 buildMetadataItem() { | 247 buildMetadataItem() { |
| 248 var o = new api.MetadataItem(); | 248 var o = new api.MetadataItem(); |
| 249 buildCounterMetadataItem++; | 249 buildCounterMetadataItem++; |
| 250 if (buildCounterMetadataItem < 3) { | 250 if (buildCounterMetadataItem < 3) { |
| 251 o.key = "foo"; | 251 o.key = "foo"; |
| 252 o.value = "foo"; | 252 o.value = "foo"; |
| 253 } | 253 } |
| 254 buildCounterMetadataItem--; | 254 buildCounterMetadataItem--; |
| 255 return o; | 255 return o; |
| 256 } | 256 } |
| 257 | 257 |
| 258 checkMetadataItem(api.MetadataItem o) { | 258 checkMetadataItem(api.MetadataItem o) { |
| 259 buildCounterMetadataItem++; | 259 buildCounterMetadataItem++; |
| 260 if (buildCounterMetadataItem < 3) { | 260 if (buildCounterMetadataItem < 3) { |
| 261 unittest.expect(o.key, unittest.equals('foo')); | 261 unittest.expect(o.key, unittest.equals('foo')); |
| 262 unittest.expect(o.value, unittest.equals('foo')); | 262 unittest.expect(o.value, unittest.equals('foo')); |
| 263 } | 263 } |
| 264 buildCounterMetadataItem--; | 264 buildCounterMetadataItem--; |
| 265 } | 265 } |
| 266 | 266 |
| 267 buildUnnamed1246() { | 267 buildUnnamed1153() { |
| 268 var o = new core.List<api.AccessConfig>(); | 268 var o = new core.List<api.AccessConfig>(); |
| 269 o.add(buildAccessConfig()); | 269 o.add(buildAccessConfig()); |
| 270 o.add(buildAccessConfig()); | 270 o.add(buildAccessConfig()); |
| 271 return o; | 271 return o; |
| 272 } | 272 } |
| 273 | 273 |
| 274 checkUnnamed1246(core.List<api.AccessConfig> o) { | 274 checkUnnamed1153(core.List<api.AccessConfig> o) { |
| 275 unittest.expect(o, unittest.hasLength(2)); | 275 unittest.expect(o, unittest.hasLength(2)); |
| 276 checkAccessConfig(o[0]); | 276 checkAccessConfig(o[0]); |
| 277 checkAccessConfig(o[1]); | 277 checkAccessConfig(o[1]); |
| 278 } | 278 } |
| 279 | 279 |
| 280 core.int buildCounterNetworkInterface = 0; | 280 core.int buildCounterNetworkInterface = 0; |
| 281 buildNetworkInterface() { | 281 buildNetworkInterface() { |
| 282 var o = new api.NetworkInterface(); | 282 var o = new api.NetworkInterface(); |
| 283 buildCounterNetworkInterface++; | 283 buildCounterNetworkInterface++; |
| 284 if (buildCounterNetworkInterface < 3) { | 284 if (buildCounterNetworkInterface < 3) { |
| 285 o.accessConfigs = buildUnnamed1246(); | 285 o.accessConfigs = buildUnnamed1153(); |
| 286 o.network = "foo"; | 286 o.network = "foo"; |
| 287 o.networkIp = "foo"; | 287 o.networkIp = "foo"; |
| 288 } | 288 } |
| 289 buildCounterNetworkInterface--; | 289 buildCounterNetworkInterface--; |
| 290 return o; | 290 return o; |
| 291 } | 291 } |
| 292 | 292 |
| 293 checkNetworkInterface(api.NetworkInterface o) { | 293 checkNetworkInterface(api.NetworkInterface o) { |
| 294 buildCounterNetworkInterface++; | 294 buildCounterNetworkInterface++; |
| 295 if (buildCounterNetworkInterface < 3) { | 295 if (buildCounterNetworkInterface < 3) { |
| 296 checkUnnamed1246(o.accessConfigs); | 296 checkUnnamed1153(o.accessConfigs); |
| 297 unittest.expect(o.network, unittest.equals('foo')); | 297 unittest.expect(o.network, unittest.equals('foo')); |
| 298 unittest.expect(o.networkIp, unittest.equals('foo')); | 298 unittest.expect(o.networkIp, unittest.equals('foo')); |
| 299 } | 299 } |
| 300 buildCounterNetworkInterface--; | 300 buildCounterNetworkInterface--; |
| 301 } | 301 } |
| 302 | 302 |
| 303 core.int buildCounterNewDisk = 0; | 303 core.int buildCounterNewDisk = 0; |
| 304 buildNewDisk() { | 304 buildNewDisk() { |
| 305 var o = new api.NewDisk(); | 305 var o = new api.NewDisk(); |
| 306 buildCounterNewDisk++; | 306 buildCounterNewDisk++; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 checkNewDiskInitializeParams(api.NewDiskInitializeParams o) { | 341 checkNewDiskInitializeParams(api.NewDiskInitializeParams o) { |
| 342 buildCounterNewDiskInitializeParams++; | 342 buildCounterNewDiskInitializeParams++; |
| 343 if (buildCounterNewDiskInitializeParams < 3) { | 343 if (buildCounterNewDiskInitializeParams < 3) { |
| 344 unittest.expect(o.diskSizeGb, unittest.equals('foo')); | 344 unittest.expect(o.diskSizeGb, unittest.equals('foo')); |
| 345 unittest.expect(o.diskType, unittest.equals('foo')); | 345 unittest.expect(o.diskType, unittest.equals('foo')); |
| 346 unittest.expect(o.sourceImage, unittest.equals('foo')); | 346 unittest.expect(o.sourceImage, unittest.equals('foo')); |
| 347 } | 347 } |
| 348 buildCounterNewDiskInitializeParams--; | 348 buildCounterNewDiskInitializeParams--; |
| 349 } | 349 } |
| 350 | 350 |
| 351 buildUnnamed1247() { | 351 buildUnnamed1154() { |
| 352 var o = new core.List<api.HealthCheck>(); | 352 var o = new core.List<api.HealthCheck>(); |
| 353 o.add(buildHealthCheck()); | 353 o.add(buildHealthCheck()); |
| 354 o.add(buildHealthCheck()); | 354 o.add(buildHealthCheck()); |
| 355 return o; | 355 return o; |
| 356 } | 356 } |
| 357 | 357 |
| 358 checkUnnamed1247(core.List<api.HealthCheck> o) { | 358 checkUnnamed1154(core.List<api.HealthCheck> o) { |
| 359 unittest.expect(o, unittest.hasLength(2)); | 359 unittest.expect(o, unittest.hasLength(2)); |
| 360 checkHealthCheck(o[0]); | 360 checkHealthCheck(o[0]); |
| 361 checkHealthCheck(o[1]); | 361 checkHealthCheck(o[1]); |
| 362 } | 362 } |
| 363 | 363 |
| 364 buildUnnamed1248() { | 364 buildUnnamed1155() { |
| 365 var o = new core.List<api.Label>(); | 365 var o = new core.List<api.Label>(); |
| 366 o.add(buildLabel()); | 366 o.add(buildLabel()); |
| 367 o.add(buildLabel()); | 367 o.add(buildLabel()); |
| 368 return o; | 368 return o; |
| 369 } | 369 } |
| 370 | 370 |
| 371 checkUnnamed1248(core.List<api.Label> o) { | 371 checkUnnamed1155(core.List<api.Label> o) { |
| 372 unittest.expect(o, unittest.hasLength(2)); | 372 unittest.expect(o, unittest.hasLength(2)); |
| 373 checkLabel(o[0]); | 373 checkLabel(o[0]); |
| 374 checkLabel(o[1]); | 374 checkLabel(o[1]); |
| 375 } | 375 } |
| 376 | 376 |
| 377 buildUnnamed1249() { | 377 buildUnnamed1156() { |
| 378 var o = new core.List<core.String>(); | 378 var o = new core.List<core.String>(); |
| 379 o.add("foo"); | 379 o.add("foo"); |
| 380 o.add("foo"); | 380 o.add("foo"); |
| 381 return o; | 381 return o; |
| 382 } | 382 } |
| 383 | 383 |
| 384 checkUnnamed1249(core.List<core.String> o) { | 384 checkUnnamed1156(core.List<core.String> o) { |
| 385 unittest.expect(o, unittest.hasLength(2)); | 385 unittest.expect(o, unittest.hasLength(2)); |
| 386 unittest.expect(o[0], unittest.equals('foo')); | 386 unittest.expect(o[0], unittest.equals('foo')); |
| 387 unittest.expect(o[1], unittest.equals('foo')); | 387 unittest.expect(o[1], unittest.equals('foo')); |
| 388 } | 388 } |
| 389 | 389 |
| 390 buildUnnamed1250() { | 390 buildUnnamed1157() { |
| 391 var o = new core.List<core.String>(); | 391 var o = new core.List<core.String>(); |
| 392 o.add("foo"); | 392 o.add("foo"); |
| 393 o.add("foo"); | 393 o.add("foo"); |
| 394 return o; | 394 return o; |
| 395 } | 395 } |
| 396 | 396 |
| 397 checkUnnamed1250(core.List<core.String> o) { | 397 checkUnnamed1157(core.List<core.String> o) { |
| 398 unittest.expect(o, unittest.hasLength(2)); | 398 unittest.expect(o, unittest.hasLength(2)); |
| 399 unittest.expect(o[0], unittest.equals('foo')); | 399 unittest.expect(o[0], unittest.equals('foo')); |
| 400 unittest.expect(o[1], unittest.equals('foo')); | 400 unittest.expect(o[1], unittest.equals('foo')); |
| 401 } | 401 } |
| 402 | 402 |
| 403 core.int buildCounterPool = 0; | 403 core.int buildCounterPool = 0; |
| 404 buildPool() { | 404 buildPool() { |
| 405 var o = new api.Pool(); | 405 var o = new api.Pool(); |
| 406 buildCounterPool++; | 406 buildCounterPool++; |
| 407 if (buildCounterPool < 3) { | 407 if (buildCounterPool < 3) { |
| 408 o.autoRestart = true; | 408 o.autoRestart = true; |
| 409 o.baseInstanceName = "foo"; | 409 o.baseInstanceName = "foo"; |
| 410 o.currentNumReplicas = 42; | 410 o.currentNumReplicas = 42; |
| 411 o.description = "foo"; | 411 o.description = "foo"; |
| 412 o.healthChecks = buildUnnamed1247(); | 412 o.healthChecks = buildUnnamed1154(); |
| 413 o.initialNumReplicas = 42; | 413 o.initialNumReplicas = 42; |
| 414 o.labels = buildUnnamed1248(); | 414 o.labels = buildUnnamed1155(); |
| 415 o.name = "foo"; | 415 o.name = "foo"; |
| 416 o.numReplicas = 42; | 416 o.numReplicas = 42; |
| 417 o.resourceViews = buildUnnamed1249(); | 417 o.resourceViews = buildUnnamed1156(); |
| 418 o.selfLink = "foo"; | 418 o.selfLink = "foo"; |
| 419 o.targetPool = "foo"; | 419 o.targetPool = "foo"; |
| 420 o.targetPools = buildUnnamed1250(); | 420 o.targetPools = buildUnnamed1157(); |
| 421 o.template = buildTemplate(); | 421 o.template = buildTemplate(); |
| 422 o.type = "foo"; | 422 o.type = "foo"; |
| 423 } | 423 } |
| 424 buildCounterPool--; | 424 buildCounterPool--; |
| 425 return o; | 425 return o; |
| 426 } | 426 } |
| 427 | 427 |
| 428 checkPool(api.Pool o) { | 428 checkPool(api.Pool o) { |
| 429 buildCounterPool++; | 429 buildCounterPool++; |
| 430 if (buildCounterPool < 3) { | 430 if (buildCounterPool < 3) { |
| 431 unittest.expect(o.autoRestart, unittest.isTrue); | 431 unittest.expect(o.autoRestart, unittest.isTrue); |
| 432 unittest.expect(o.baseInstanceName, unittest.equals('foo')); | 432 unittest.expect(o.baseInstanceName, unittest.equals('foo')); |
| 433 unittest.expect(o.currentNumReplicas, unittest.equals(42)); | 433 unittest.expect(o.currentNumReplicas, unittest.equals(42)); |
| 434 unittest.expect(o.description, unittest.equals('foo')); | 434 unittest.expect(o.description, unittest.equals('foo')); |
| 435 checkUnnamed1247(o.healthChecks); | 435 checkUnnamed1154(o.healthChecks); |
| 436 unittest.expect(o.initialNumReplicas, unittest.equals(42)); | 436 unittest.expect(o.initialNumReplicas, unittest.equals(42)); |
| 437 checkUnnamed1248(o.labels); | 437 checkUnnamed1155(o.labels); |
| 438 unittest.expect(o.name, unittest.equals('foo')); | 438 unittest.expect(o.name, unittest.equals('foo')); |
| 439 unittest.expect(o.numReplicas, unittest.equals(42)); | 439 unittest.expect(o.numReplicas, unittest.equals(42)); |
| 440 checkUnnamed1249(o.resourceViews); | 440 checkUnnamed1156(o.resourceViews); |
| 441 unittest.expect(o.selfLink, unittest.equals('foo')); | 441 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 442 unittest.expect(o.targetPool, unittest.equals('foo')); | 442 unittest.expect(o.targetPool, unittest.equals('foo')); |
| 443 checkUnnamed1250(o.targetPools); | 443 checkUnnamed1157(o.targetPools); |
| 444 checkTemplate(o.template); | 444 checkTemplate(o.template); |
| 445 unittest.expect(o.type, unittest.equals('foo')); | 445 unittest.expect(o.type, unittest.equals('foo')); |
| 446 } | 446 } |
| 447 buildCounterPool--; | 447 buildCounterPool--; |
| 448 } | 448 } |
| 449 | 449 |
| 450 buildUnnamed1251() { | 450 buildUnnamed1158() { |
| 451 var o = new core.List<core.String>(); | 451 var o = new core.List<core.String>(); |
| 452 o.add("foo"); | 452 o.add("foo"); |
| 453 o.add("foo"); | 453 o.add("foo"); |
| 454 return o; | 454 return o; |
| 455 } | 455 } |
| 456 | 456 |
| 457 checkUnnamed1251(core.List<core.String> o) { | 457 checkUnnamed1158(core.List<core.String> o) { |
| 458 unittest.expect(o, unittest.hasLength(2)); | 458 unittest.expect(o, unittest.hasLength(2)); |
| 459 unittest.expect(o[0], unittest.equals('foo')); | 459 unittest.expect(o[0], unittest.equals('foo')); |
| 460 unittest.expect(o[1], unittest.equals('foo')); | 460 unittest.expect(o[1], unittest.equals('foo')); |
| 461 } | 461 } |
| 462 | 462 |
| 463 core.int buildCounterPoolsDeleteRequest = 0; | 463 core.int buildCounterPoolsDeleteRequest = 0; |
| 464 buildPoolsDeleteRequest() { | 464 buildPoolsDeleteRequest() { |
| 465 var o = new api.PoolsDeleteRequest(); | 465 var o = new api.PoolsDeleteRequest(); |
| 466 buildCounterPoolsDeleteRequest++; | 466 buildCounterPoolsDeleteRequest++; |
| 467 if (buildCounterPoolsDeleteRequest < 3) { | 467 if (buildCounterPoolsDeleteRequest < 3) { |
| 468 o.abandonInstances = buildUnnamed1251(); | 468 o.abandonInstances = buildUnnamed1158(); |
| 469 } | 469 } |
| 470 buildCounterPoolsDeleteRequest--; | 470 buildCounterPoolsDeleteRequest--; |
| 471 return o; | 471 return o; |
| 472 } | 472 } |
| 473 | 473 |
| 474 checkPoolsDeleteRequest(api.PoolsDeleteRequest o) { | 474 checkPoolsDeleteRequest(api.PoolsDeleteRequest o) { |
| 475 buildCounterPoolsDeleteRequest++; | 475 buildCounterPoolsDeleteRequest++; |
| 476 if (buildCounterPoolsDeleteRequest < 3) { | 476 if (buildCounterPoolsDeleteRequest < 3) { |
| 477 checkUnnamed1251(o.abandonInstances); | 477 checkUnnamed1158(o.abandonInstances); |
| 478 } | 478 } |
| 479 buildCounterPoolsDeleteRequest--; | 479 buildCounterPoolsDeleteRequest--; |
| 480 } | 480 } |
| 481 | 481 |
| 482 buildUnnamed1252() { | 482 buildUnnamed1159() { |
| 483 var o = new core.List<api.Pool>(); | 483 var o = new core.List<api.Pool>(); |
| 484 o.add(buildPool()); | 484 o.add(buildPool()); |
| 485 o.add(buildPool()); | 485 o.add(buildPool()); |
| 486 return o; | 486 return o; |
| 487 } | 487 } |
| 488 | 488 |
| 489 checkUnnamed1252(core.List<api.Pool> o) { | 489 checkUnnamed1159(core.List<api.Pool> o) { |
| 490 unittest.expect(o, unittest.hasLength(2)); | 490 unittest.expect(o, unittest.hasLength(2)); |
| 491 checkPool(o[0]); | 491 checkPool(o[0]); |
| 492 checkPool(o[1]); | 492 checkPool(o[1]); |
| 493 } | 493 } |
| 494 | 494 |
| 495 core.int buildCounterPoolsListResponse = 0; | 495 core.int buildCounterPoolsListResponse = 0; |
| 496 buildPoolsListResponse() { | 496 buildPoolsListResponse() { |
| 497 var o = new api.PoolsListResponse(); | 497 var o = new api.PoolsListResponse(); |
| 498 buildCounterPoolsListResponse++; | 498 buildCounterPoolsListResponse++; |
| 499 if (buildCounterPoolsListResponse < 3) { | 499 if (buildCounterPoolsListResponse < 3) { |
| 500 o.nextPageToken = "foo"; | 500 o.nextPageToken = "foo"; |
| 501 o.resources = buildUnnamed1252(); | 501 o.resources = buildUnnamed1159(); |
| 502 } | 502 } |
| 503 buildCounterPoolsListResponse--; | 503 buildCounterPoolsListResponse--; |
| 504 return o; | 504 return o; |
| 505 } | 505 } |
| 506 | 506 |
| 507 checkPoolsListResponse(api.PoolsListResponse o) { | 507 checkPoolsListResponse(api.PoolsListResponse o) { |
| 508 buildCounterPoolsListResponse++; | 508 buildCounterPoolsListResponse++; |
| 509 if (buildCounterPoolsListResponse < 3) { | 509 if (buildCounterPoolsListResponse < 3) { |
| 510 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 510 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 511 checkUnnamed1252(o.resources); | 511 checkUnnamed1159(o.resources); |
| 512 } | 512 } |
| 513 buildCounterPoolsListResponse--; | 513 buildCounterPoolsListResponse--; |
| 514 } | 514 } |
| 515 | 515 |
| 516 core.int buildCounterReplica = 0; | 516 core.int buildCounterReplica = 0; |
| 517 buildReplica() { | 517 buildReplica() { |
| 518 var o = new api.Replica(); | 518 var o = new api.Replica(); |
| 519 buildCounterReplica++; | 519 buildCounterReplica++; |
| 520 if (buildCounterReplica < 3) { | 520 if (buildCounterReplica < 3) { |
| 521 o.name = "foo"; | 521 o.name = "foo"; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 } | 575 } |
| 576 | 576 |
| 577 checkReplicasDeleteRequest(api.ReplicasDeleteRequest o) { | 577 checkReplicasDeleteRequest(api.ReplicasDeleteRequest o) { |
| 578 buildCounterReplicasDeleteRequest++; | 578 buildCounterReplicasDeleteRequest++; |
| 579 if (buildCounterReplicasDeleteRequest < 3) { | 579 if (buildCounterReplicasDeleteRequest < 3) { |
| 580 unittest.expect(o.abandonInstance, unittest.isTrue); | 580 unittest.expect(o.abandonInstance, unittest.isTrue); |
| 581 } | 581 } |
| 582 buildCounterReplicasDeleteRequest--; | 582 buildCounterReplicasDeleteRequest--; |
| 583 } | 583 } |
| 584 | 584 |
| 585 buildUnnamed1253() { | 585 buildUnnamed1160() { |
| 586 var o = new core.List<api.Replica>(); | 586 var o = new core.List<api.Replica>(); |
| 587 o.add(buildReplica()); | 587 o.add(buildReplica()); |
| 588 o.add(buildReplica()); | 588 o.add(buildReplica()); |
| 589 return o; | 589 return o; |
| 590 } | 590 } |
| 591 | 591 |
| 592 checkUnnamed1253(core.List<api.Replica> o) { | 592 checkUnnamed1160(core.List<api.Replica> o) { |
| 593 unittest.expect(o, unittest.hasLength(2)); | 593 unittest.expect(o, unittest.hasLength(2)); |
| 594 checkReplica(o[0]); | 594 checkReplica(o[0]); |
| 595 checkReplica(o[1]); | 595 checkReplica(o[1]); |
| 596 } | 596 } |
| 597 | 597 |
| 598 core.int buildCounterReplicasListResponse = 0; | 598 core.int buildCounterReplicasListResponse = 0; |
| 599 buildReplicasListResponse() { | 599 buildReplicasListResponse() { |
| 600 var o = new api.ReplicasListResponse(); | 600 var o = new api.ReplicasListResponse(); |
| 601 buildCounterReplicasListResponse++; | 601 buildCounterReplicasListResponse++; |
| 602 if (buildCounterReplicasListResponse < 3) { | 602 if (buildCounterReplicasListResponse < 3) { |
| 603 o.nextPageToken = "foo"; | 603 o.nextPageToken = "foo"; |
| 604 o.resources = buildUnnamed1253(); | 604 o.resources = buildUnnamed1160(); |
| 605 } | 605 } |
| 606 buildCounterReplicasListResponse--; | 606 buildCounterReplicasListResponse--; |
| 607 return o; | 607 return o; |
| 608 } | 608 } |
| 609 | 609 |
| 610 checkReplicasListResponse(api.ReplicasListResponse o) { | 610 checkReplicasListResponse(api.ReplicasListResponse o) { |
| 611 buildCounterReplicasListResponse++; | 611 buildCounterReplicasListResponse++; |
| 612 if (buildCounterReplicasListResponse < 3) { | 612 if (buildCounterReplicasListResponse < 3) { |
| 613 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 613 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 614 checkUnnamed1253(o.resources); | 614 checkUnnamed1160(o.resources); |
| 615 } | 615 } |
| 616 buildCounterReplicasListResponse--; | 616 buildCounterReplicasListResponse--; |
| 617 } | 617 } |
| 618 | 618 |
| 619 buildUnnamed1254() { | 619 buildUnnamed1161() { |
| 620 var o = new core.List<core.String>(); | 620 var o = new core.List<core.String>(); |
| 621 o.add("foo"); | 621 o.add("foo"); |
| 622 o.add("foo"); | 622 o.add("foo"); |
| 623 return o; | 623 return o; |
| 624 } | 624 } |
| 625 | 625 |
| 626 checkUnnamed1254(core.List<core.String> o) { | 626 checkUnnamed1161(core.List<core.String> o) { |
| 627 unittest.expect(o, unittest.hasLength(2)); | 627 unittest.expect(o, unittest.hasLength(2)); |
| 628 unittest.expect(o[0], unittest.equals('foo')); | 628 unittest.expect(o[0], unittest.equals('foo')); |
| 629 unittest.expect(o[1], unittest.equals('foo')); | 629 unittest.expect(o[1], unittest.equals('foo')); |
| 630 } | 630 } |
| 631 | 631 |
| 632 core.int buildCounterServiceAccount = 0; | 632 core.int buildCounterServiceAccount = 0; |
| 633 buildServiceAccount() { | 633 buildServiceAccount() { |
| 634 var o = new api.ServiceAccount(); | 634 var o = new api.ServiceAccount(); |
| 635 buildCounterServiceAccount++; | 635 buildCounterServiceAccount++; |
| 636 if (buildCounterServiceAccount < 3) { | 636 if (buildCounterServiceAccount < 3) { |
| 637 o.email = "foo"; | 637 o.email = "foo"; |
| 638 o.scopes = buildUnnamed1254(); | 638 o.scopes = buildUnnamed1161(); |
| 639 } | 639 } |
| 640 buildCounterServiceAccount--; | 640 buildCounterServiceAccount--; |
| 641 return o; | 641 return o; |
| 642 } | 642 } |
| 643 | 643 |
| 644 checkServiceAccount(api.ServiceAccount o) { | 644 checkServiceAccount(api.ServiceAccount o) { |
| 645 buildCounterServiceAccount++; | 645 buildCounterServiceAccount++; |
| 646 if (buildCounterServiceAccount < 3) { | 646 if (buildCounterServiceAccount < 3) { |
| 647 unittest.expect(o.email, unittest.equals('foo')); | 647 unittest.expect(o.email, unittest.equals('foo')); |
| 648 checkUnnamed1254(o.scopes); | 648 checkUnnamed1161(o.scopes); |
| 649 } | 649 } |
| 650 buildCounterServiceAccount--; | 650 buildCounterServiceAccount--; |
| 651 } | 651 } |
| 652 | 652 |
| 653 buildUnnamed1255() { | 653 buildUnnamed1162() { |
| 654 var o = new core.List<core.String>(); | 654 var o = new core.List<core.String>(); |
| 655 o.add("foo"); | 655 o.add("foo"); |
| 656 o.add("foo"); | 656 o.add("foo"); |
| 657 return o; | 657 return o; |
| 658 } | 658 } |
| 659 | 659 |
| 660 checkUnnamed1255(core.List<core.String> o) { | 660 checkUnnamed1162(core.List<core.String> o) { |
| 661 unittest.expect(o, unittest.hasLength(2)); | 661 unittest.expect(o, unittest.hasLength(2)); |
| 662 unittest.expect(o[0], unittest.equals('foo')); | 662 unittest.expect(o[0], unittest.equals('foo')); |
| 663 unittest.expect(o[1], unittest.equals('foo')); | 663 unittest.expect(o[1], unittest.equals('foo')); |
| 664 } | 664 } |
| 665 | 665 |
| 666 core.int buildCounterTag = 0; | 666 core.int buildCounterTag = 0; |
| 667 buildTag() { | 667 buildTag() { |
| 668 var o = new api.Tag(); | 668 var o = new api.Tag(); |
| 669 buildCounterTag++; | 669 buildCounterTag++; |
| 670 if (buildCounterTag < 3) { | 670 if (buildCounterTag < 3) { |
| 671 o.fingerPrint = "foo"; | 671 o.fingerPrint = "foo"; |
| 672 o.items = buildUnnamed1255(); | 672 o.items = buildUnnamed1162(); |
| 673 } | 673 } |
| 674 buildCounterTag--; | 674 buildCounterTag--; |
| 675 return o; | 675 return o; |
| 676 } | 676 } |
| 677 | 677 |
| 678 checkTag(api.Tag o) { | 678 checkTag(api.Tag o) { |
| 679 buildCounterTag++; | 679 buildCounterTag++; |
| 680 if (buildCounterTag < 3) { | 680 if (buildCounterTag < 3) { |
| 681 unittest.expect(o.fingerPrint, unittest.equals('foo')); | 681 unittest.expect(o.fingerPrint, unittest.equals('foo')); |
| 682 checkUnnamed1255(o.items); | 682 checkUnnamed1162(o.items); |
| 683 } | 683 } |
| 684 buildCounterTag--; | 684 buildCounterTag--; |
| 685 } | 685 } |
| 686 | 686 |
| 687 buildUnnamed1256() { | 687 buildUnnamed1163() { |
| 688 var o = new core.List<api.HealthCheck>(); | 688 var o = new core.List<api.HealthCheck>(); |
| 689 o.add(buildHealthCheck()); | 689 o.add(buildHealthCheck()); |
| 690 o.add(buildHealthCheck()); | 690 o.add(buildHealthCheck()); |
| 691 return o; | 691 return o; |
| 692 } | 692 } |
| 693 | 693 |
| 694 checkUnnamed1256(core.List<api.HealthCheck> o) { | 694 checkUnnamed1163(core.List<api.HealthCheck> o) { |
| 695 unittest.expect(o, unittest.hasLength(2)); | 695 unittest.expect(o, unittest.hasLength(2)); |
| 696 checkHealthCheck(o[0]); | 696 checkHealthCheck(o[0]); |
| 697 checkHealthCheck(o[1]); | 697 checkHealthCheck(o[1]); |
| 698 } | 698 } |
| 699 | 699 |
| 700 core.int buildCounterTemplate = 0; | 700 core.int buildCounterTemplate = 0; |
| 701 buildTemplate() { | 701 buildTemplate() { |
| 702 var o = new api.Template(); | 702 var o = new api.Template(); |
| 703 buildCounterTemplate++; | 703 buildCounterTemplate++; |
| 704 if (buildCounterTemplate < 3) { | 704 if (buildCounterTemplate < 3) { |
| 705 o.action = buildAction(); | 705 o.action = buildAction(); |
| 706 o.healthChecks = buildUnnamed1256(); | 706 o.healthChecks = buildUnnamed1163(); |
| 707 o.version = "foo"; | 707 o.version = "foo"; |
| 708 o.vmParams = buildVmParams(); | 708 o.vmParams = buildVmParams(); |
| 709 } | 709 } |
| 710 buildCounterTemplate--; | 710 buildCounterTemplate--; |
| 711 return o; | 711 return o; |
| 712 } | 712 } |
| 713 | 713 |
| 714 checkTemplate(api.Template o) { | 714 checkTemplate(api.Template o) { |
| 715 buildCounterTemplate++; | 715 buildCounterTemplate++; |
| 716 if (buildCounterTemplate < 3) { | 716 if (buildCounterTemplate < 3) { |
| 717 checkAction(o.action); | 717 checkAction(o.action); |
| 718 checkUnnamed1256(o.healthChecks); | 718 checkUnnamed1163(o.healthChecks); |
| 719 unittest.expect(o.version, unittest.equals('foo')); | 719 unittest.expect(o.version, unittest.equals('foo')); |
| 720 checkVmParams(o.vmParams); | 720 checkVmParams(o.vmParams); |
| 721 } | 721 } |
| 722 buildCounterTemplate--; | 722 buildCounterTemplate--; |
| 723 } | 723 } |
| 724 | 724 |
| 725 buildUnnamed1257() { | 725 buildUnnamed1164() { |
| 726 var o = new core.List<api.ExistingDisk>(); | 726 var o = new core.List<api.ExistingDisk>(); |
| 727 o.add(buildExistingDisk()); | 727 o.add(buildExistingDisk()); |
| 728 o.add(buildExistingDisk()); | 728 o.add(buildExistingDisk()); |
| 729 return o; | 729 return o; |
| 730 } | 730 } |
| 731 | 731 |
| 732 checkUnnamed1257(core.List<api.ExistingDisk> o) { | 732 checkUnnamed1164(core.List<api.ExistingDisk> o) { |
| 733 unittest.expect(o, unittest.hasLength(2)); | 733 unittest.expect(o, unittest.hasLength(2)); |
| 734 checkExistingDisk(o[0]); | 734 checkExistingDisk(o[0]); |
| 735 checkExistingDisk(o[1]); | 735 checkExistingDisk(o[1]); |
| 736 } | 736 } |
| 737 | 737 |
| 738 buildUnnamed1258() { | 738 buildUnnamed1165() { |
| 739 var o = new core.List<api.NewDisk>(); | 739 var o = new core.List<api.NewDisk>(); |
| 740 o.add(buildNewDisk()); | 740 o.add(buildNewDisk()); |
| 741 o.add(buildNewDisk()); | 741 o.add(buildNewDisk()); |
| 742 return o; | 742 return o; |
| 743 } | 743 } |
| 744 | 744 |
| 745 checkUnnamed1258(core.List<api.NewDisk> o) { | 745 checkUnnamed1165(core.List<api.NewDisk> o) { |
| 746 unittest.expect(o, unittest.hasLength(2)); | 746 unittest.expect(o, unittest.hasLength(2)); |
| 747 checkNewDisk(o[0]); | 747 checkNewDisk(o[0]); |
| 748 checkNewDisk(o[1]); | 748 checkNewDisk(o[1]); |
| 749 } | 749 } |
| 750 | 750 |
| 751 buildUnnamed1259() { | 751 buildUnnamed1166() { |
| 752 var o = new core.List<api.NetworkInterface>(); | 752 var o = new core.List<api.NetworkInterface>(); |
| 753 o.add(buildNetworkInterface()); | 753 o.add(buildNetworkInterface()); |
| 754 o.add(buildNetworkInterface()); | 754 o.add(buildNetworkInterface()); |
| 755 return o; | 755 return o; |
| 756 } | 756 } |
| 757 | 757 |
| 758 checkUnnamed1259(core.List<api.NetworkInterface> o) { | 758 checkUnnamed1166(core.List<api.NetworkInterface> o) { |
| 759 unittest.expect(o, unittest.hasLength(2)); | 759 unittest.expect(o, unittest.hasLength(2)); |
| 760 checkNetworkInterface(o[0]); | 760 checkNetworkInterface(o[0]); |
| 761 checkNetworkInterface(o[1]); | 761 checkNetworkInterface(o[1]); |
| 762 } | 762 } |
| 763 | 763 |
| 764 buildUnnamed1260() { | 764 buildUnnamed1167() { |
| 765 var o = new core.List<api.ServiceAccount>(); | 765 var o = new core.List<api.ServiceAccount>(); |
| 766 o.add(buildServiceAccount()); | 766 o.add(buildServiceAccount()); |
| 767 o.add(buildServiceAccount()); | 767 o.add(buildServiceAccount()); |
| 768 return o; | 768 return o; |
| 769 } | 769 } |
| 770 | 770 |
| 771 checkUnnamed1260(core.List<api.ServiceAccount> o) { | 771 checkUnnamed1167(core.List<api.ServiceAccount> o) { |
| 772 unittest.expect(o, unittest.hasLength(2)); | 772 unittest.expect(o, unittest.hasLength(2)); |
| 773 checkServiceAccount(o[0]); | 773 checkServiceAccount(o[0]); |
| 774 checkServiceAccount(o[1]); | 774 checkServiceAccount(o[1]); |
| 775 } | 775 } |
| 776 | 776 |
| 777 core.int buildCounterVmParams = 0; | 777 core.int buildCounterVmParams = 0; |
| 778 buildVmParams() { | 778 buildVmParams() { |
| 779 var o = new api.VmParams(); | 779 var o = new api.VmParams(); |
| 780 buildCounterVmParams++; | 780 buildCounterVmParams++; |
| 781 if (buildCounterVmParams < 3) { | 781 if (buildCounterVmParams < 3) { |
| 782 o.baseInstanceName = "foo"; | 782 o.baseInstanceName = "foo"; |
| 783 o.canIpForward = true; | 783 o.canIpForward = true; |
| 784 o.description = "foo"; | 784 o.description = "foo"; |
| 785 o.disksToAttach = buildUnnamed1257(); | 785 o.disksToAttach = buildUnnamed1164(); |
| 786 o.disksToCreate = buildUnnamed1258(); | 786 o.disksToCreate = buildUnnamed1165(); |
| 787 o.machineType = "foo"; | 787 o.machineType = "foo"; |
| 788 o.metadata = buildMetadata(); | 788 o.metadata = buildMetadata(); |
| 789 o.networkInterfaces = buildUnnamed1259(); | 789 o.networkInterfaces = buildUnnamed1166(); |
| 790 o.onHostMaintenance = "foo"; | 790 o.onHostMaintenance = "foo"; |
| 791 o.serviceAccounts = buildUnnamed1260(); | 791 o.serviceAccounts = buildUnnamed1167(); |
| 792 o.tags = buildTag(); | 792 o.tags = buildTag(); |
| 793 } | 793 } |
| 794 buildCounterVmParams--; | 794 buildCounterVmParams--; |
| 795 return o; | 795 return o; |
| 796 } | 796 } |
| 797 | 797 |
| 798 checkVmParams(api.VmParams o) { | 798 checkVmParams(api.VmParams o) { |
| 799 buildCounterVmParams++; | 799 buildCounterVmParams++; |
| 800 if (buildCounterVmParams < 3) { | 800 if (buildCounterVmParams < 3) { |
| 801 unittest.expect(o.baseInstanceName, unittest.equals('foo')); | 801 unittest.expect(o.baseInstanceName, unittest.equals('foo')); |
| 802 unittest.expect(o.canIpForward, unittest.isTrue); | 802 unittest.expect(o.canIpForward, unittest.isTrue); |
| 803 unittest.expect(o.description, unittest.equals('foo')); | 803 unittest.expect(o.description, unittest.equals('foo')); |
| 804 checkUnnamed1257(o.disksToAttach); | 804 checkUnnamed1164(o.disksToAttach); |
| 805 checkUnnamed1258(o.disksToCreate); | 805 checkUnnamed1165(o.disksToCreate); |
| 806 unittest.expect(o.machineType, unittest.equals('foo')); | 806 unittest.expect(o.machineType, unittest.equals('foo')); |
| 807 checkMetadata(o.metadata); | 807 checkMetadata(o.metadata); |
| 808 checkUnnamed1259(o.networkInterfaces); | 808 checkUnnamed1166(o.networkInterfaces); |
| 809 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); | 809 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); |
| 810 checkUnnamed1260(o.serviceAccounts); | 810 checkUnnamed1167(o.serviceAccounts); |
| 811 checkTag(o.tags); | 811 checkTag(o.tags); |
| 812 } | 812 } |
| 813 buildCounterVmParams--; | 813 buildCounterVmParams--; |
| 814 } | 814 } |
| 815 | 815 |
| 816 | 816 |
| 817 main() { | 817 main() { |
| 818 unittest.group("obj-schema-AccessConfig", () { | 818 unittest.group("obj-schema-AccessConfig", () { |
| 819 unittest.test("to-json--from-json", () { | 819 unittest.test("to-json--from-json", () { |
| 820 var o = buildAccessConfig(); | 820 var o = buildAccessConfig(); |
| (...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1488 res.restart(arg_projectName, arg_zone, arg_poolName, arg_replicaName).then
(unittest.expectAsync(((api.Replica response) { | 1488 res.restart(arg_projectName, arg_zone, arg_poolName, arg_replicaName).then
(unittest.expectAsync(((api.Replica response) { |
| 1489 checkReplica(response); | 1489 checkReplica(response); |
| 1490 }))); | 1490 }))); |
| 1491 }); | 1491 }); |
| 1492 | 1492 |
| 1493 }); | 1493 }); |
| 1494 | 1494 |
| 1495 | 1495 |
| 1496 } | 1496 } |
| 1497 | 1497 |
| OLD | NEW |