| OLD | NEW |
| 1 library googleapis_beta.sqladmin.v1beta4.test; | 1 library googleapis_beta.sqladmin.v1beta4.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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 unittest.expect(o.instance, unittest.equals('foo')); | 131 unittest.expect(o.instance, unittest.equals('foo')); |
| 132 unittest.expect(o.kind, unittest.equals('foo')); | 132 unittest.expect(o.kind, unittest.equals('foo')); |
| 133 unittest.expect(o.selfLink, unittest.equals('foo')); | 133 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 134 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 134 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 135 unittest.expect(o.status, unittest.equals('foo')); | 135 unittest.expect(o.status, unittest.equals('foo')); |
| 136 unittest.expect(o.windowStartTime, unittest.equals(core.DateTime.parse("2002
-02-27T14:01:02"))); | 136 unittest.expect(o.windowStartTime, unittest.equals(core.DateTime.parse("2002
-02-27T14:01:02"))); |
| 137 } | 137 } |
| 138 buildCounterBackupRun--; | 138 buildCounterBackupRun--; |
| 139 } | 139 } |
| 140 | 140 |
| 141 buildUnnamed3680() { | 141 buildUnnamed3545() { |
| 142 var o = new core.List<api.BackupRun>(); | 142 var o = new core.List<api.BackupRun>(); |
| 143 o.add(buildBackupRun()); | 143 o.add(buildBackupRun()); |
| 144 o.add(buildBackupRun()); | 144 o.add(buildBackupRun()); |
| 145 return o; | 145 return o; |
| 146 } | 146 } |
| 147 | 147 |
| 148 checkUnnamed3680(core.List<api.BackupRun> o) { | 148 checkUnnamed3545(core.List<api.BackupRun> o) { |
| 149 unittest.expect(o, unittest.hasLength(2)); | 149 unittest.expect(o, unittest.hasLength(2)); |
| 150 checkBackupRun(o[0]); | 150 checkBackupRun(o[0]); |
| 151 checkBackupRun(o[1]); | 151 checkBackupRun(o[1]); |
| 152 } | 152 } |
| 153 | 153 |
| 154 core.int buildCounterBackupRunsListResponse = 0; | 154 core.int buildCounterBackupRunsListResponse = 0; |
| 155 buildBackupRunsListResponse() { | 155 buildBackupRunsListResponse() { |
| 156 var o = new api.BackupRunsListResponse(); | 156 var o = new api.BackupRunsListResponse(); |
| 157 buildCounterBackupRunsListResponse++; | 157 buildCounterBackupRunsListResponse++; |
| 158 if (buildCounterBackupRunsListResponse < 3) { | 158 if (buildCounterBackupRunsListResponse < 3) { |
| 159 o.items = buildUnnamed3680(); | 159 o.items = buildUnnamed3545(); |
| 160 o.kind = "foo"; | 160 o.kind = "foo"; |
| 161 o.nextPageToken = "foo"; | 161 o.nextPageToken = "foo"; |
| 162 } | 162 } |
| 163 buildCounterBackupRunsListResponse--; | 163 buildCounterBackupRunsListResponse--; |
| 164 return o; | 164 return o; |
| 165 } | 165 } |
| 166 | 166 |
| 167 checkBackupRunsListResponse(api.BackupRunsListResponse o) { | 167 checkBackupRunsListResponse(api.BackupRunsListResponse o) { |
| 168 buildCounterBackupRunsListResponse++; | 168 buildCounterBackupRunsListResponse++; |
| 169 if (buildCounterBackupRunsListResponse < 3) { | 169 if (buildCounterBackupRunsListResponse < 3) { |
| 170 checkUnnamed3680(o.items); | 170 checkUnnamed3545(o.items); |
| 171 unittest.expect(o.kind, unittest.equals('foo')); | 171 unittest.expect(o.kind, unittest.equals('foo')); |
| 172 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 172 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 173 } | 173 } |
| 174 buildCounterBackupRunsListResponse--; | 174 buildCounterBackupRunsListResponse--; |
| 175 } | 175 } |
| 176 | 176 |
| 177 core.int buildCounterBinLogCoordinates = 0; | 177 core.int buildCounterBinLogCoordinates = 0; |
| 178 buildBinLogCoordinates() { | 178 buildBinLogCoordinates() { |
| 179 var o = new api.BinLogCoordinates(); | 179 var o = new api.BinLogCoordinates(); |
| 180 buildCounterBinLogCoordinates++; | 180 buildCounterBinLogCoordinates++; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 288 |
| 289 checkDatabaseInstanceFailoverReplica(api.DatabaseInstanceFailoverReplica o) { | 289 checkDatabaseInstanceFailoverReplica(api.DatabaseInstanceFailoverReplica o) { |
| 290 buildCounterDatabaseInstanceFailoverReplica++; | 290 buildCounterDatabaseInstanceFailoverReplica++; |
| 291 if (buildCounterDatabaseInstanceFailoverReplica < 3) { | 291 if (buildCounterDatabaseInstanceFailoverReplica < 3) { |
| 292 unittest.expect(o.available, unittest.isTrue); | 292 unittest.expect(o.available, unittest.isTrue); |
| 293 unittest.expect(o.name, unittest.equals('foo')); | 293 unittest.expect(o.name, unittest.equals('foo')); |
| 294 } | 294 } |
| 295 buildCounterDatabaseInstanceFailoverReplica--; | 295 buildCounterDatabaseInstanceFailoverReplica--; |
| 296 } | 296 } |
| 297 | 297 |
| 298 buildUnnamed3681() { | 298 buildUnnamed3546() { |
| 299 var o = new core.List<api.IpMapping>(); | 299 var o = new core.List<api.IpMapping>(); |
| 300 o.add(buildIpMapping()); | 300 o.add(buildIpMapping()); |
| 301 o.add(buildIpMapping()); | 301 o.add(buildIpMapping()); |
| 302 return o; | 302 return o; |
| 303 } | 303 } |
| 304 | 304 |
| 305 checkUnnamed3681(core.List<api.IpMapping> o) { | 305 checkUnnamed3546(core.List<api.IpMapping> o) { |
| 306 unittest.expect(o, unittest.hasLength(2)); | 306 unittest.expect(o, unittest.hasLength(2)); |
| 307 checkIpMapping(o[0]); | 307 checkIpMapping(o[0]); |
| 308 checkIpMapping(o[1]); | 308 checkIpMapping(o[1]); |
| 309 } | 309 } |
| 310 | 310 |
| 311 buildUnnamed3682() { | 311 buildUnnamed3547() { |
| 312 var o = new core.List<core.String>(); | 312 var o = new core.List<core.String>(); |
| 313 o.add("foo"); | 313 o.add("foo"); |
| 314 o.add("foo"); | 314 o.add("foo"); |
| 315 return o; | 315 return o; |
| 316 } | 316 } |
| 317 | 317 |
| 318 checkUnnamed3682(core.List<core.String> o) { | 318 checkUnnamed3547(core.List<core.String> o) { |
| 319 unittest.expect(o, unittest.hasLength(2)); | 319 unittest.expect(o, unittest.hasLength(2)); |
| 320 unittest.expect(o[0], unittest.equals('foo')); | 320 unittest.expect(o[0], unittest.equals('foo')); |
| 321 unittest.expect(o[1], unittest.equals('foo')); | 321 unittest.expect(o[1], unittest.equals('foo')); |
| 322 } | 322 } |
| 323 | 323 |
| 324 buildUnnamed3683() { | 324 buildUnnamed3548() { |
| 325 var o = new core.List<core.String>(); | 325 var o = new core.List<core.String>(); |
| 326 o.add("foo"); | 326 o.add("foo"); |
| 327 o.add("foo"); | 327 o.add("foo"); |
| 328 return o; | 328 return o; |
| 329 } | 329 } |
| 330 | 330 |
| 331 checkUnnamed3683(core.List<core.String> o) { | 331 checkUnnamed3548(core.List<core.String> o) { |
| 332 unittest.expect(o, unittest.hasLength(2)); | 332 unittest.expect(o, unittest.hasLength(2)); |
| 333 unittest.expect(o[0], unittest.equals('foo')); | 333 unittest.expect(o[0], unittest.equals('foo')); |
| 334 unittest.expect(o[1], unittest.equals('foo')); | 334 unittest.expect(o[1], unittest.equals('foo')); |
| 335 } | 335 } |
| 336 | 336 |
| 337 core.int buildCounterDatabaseInstance = 0; | 337 core.int buildCounterDatabaseInstance = 0; |
| 338 buildDatabaseInstance() { | 338 buildDatabaseInstance() { |
| 339 var o = new api.DatabaseInstance(); | 339 var o = new api.DatabaseInstance(); |
| 340 buildCounterDatabaseInstance++; | 340 buildCounterDatabaseInstance++; |
| 341 if (buildCounterDatabaseInstance < 3) { | 341 if (buildCounterDatabaseInstance < 3) { |
| 342 o.backendType = "foo"; | 342 o.backendType = "foo"; |
| 343 o.currentDiskSize = "foo"; | 343 o.currentDiskSize = "foo"; |
| 344 o.databaseVersion = "foo"; | 344 o.databaseVersion = "foo"; |
| 345 o.etag = "foo"; | 345 o.etag = "foo"; |
| 346 o.failoverReplica = buildDatabaseInstanceFailoverReplica(); | 346 o.failoverReplica = buildDatabaseInstanceFailoverReplica(); |
| 347 o.instanceType = "foo"; | 347 o.instanceType = "foo"; |
| 348 o.ipAddresses = buildUnnamed3681(); | 348 o.ipAddresses = buildUnnamed3546(); |
| 349 o.ipv6Address = "foo"; | 349 o.ipv6Address = "foo"; |
| 350 o.kind = "foo"; | 350 o.kind = "foo"; |
| 351 o.masterInstanceName = "foo"; | 351 o.masterInstanceName = "foo"; |
| 352 o.maxDiskSize = "foo"; | 352 o.maxDiskSize = "foo"; |
| 353 o.name = "foo"; | 353 o.name = "foo"; |
| 354 o.onPremisesConfiguration = buildOnPremisesConfiguration(); | 354 o.onPremisesConfiguration = buildOnPremisesConfiguration(); |
| 355 o.project = "foo"; | 355 o.project = "foo"; |
| 356 o.region = "foo"; | 356 o.region = "foo"; |
| 357 o.replicaConfiguration = buildReplicaConfiguration(); | 357 o.replicaConfiguration = buildReplicaConfiguration(); |
| 358 o.replicaNames = buildUnnamed3682(); | 358 o.replicaNames = buildUnnamed3547(); |
| 359 o.selfLink = "foo"; | 359 o.selfLink = "foo"; |
| 360 o.serverCaCert = buildSslCert(); | 360 o.serverCaCert = buildSslCert(); |
| 361 o.serviceAccountEmailAddress = "foo"; | 361 o.serviceAccountEmailAddress = "foo"; |
| 362 o.settings = buildSettings(); | 362 o.settings = buildSettings(); |
| 363 o.state = "foo"; | 363 o.state = "foo"; |
| 364 o.suspensionReason = buildUnnamed3683(); | 364 o.suspensionReason = buildUnnamed3548(); |
| 365 } | 365 } |
| 366 buildCounterDatabaseInstance--; | 366 buildCounterDatabaseInstance--; |
| 367 return o; | 367 return o; |
| 368 } | 368 } |
| 369 | 369 |
| 370 checkDatabaseInstance(api.DatabaseInstance o) { | 370 checkDatabaseInstance(api.DatabaseInstance o) { |
| 371 buildCounterDatabaseInstance++; | 371 buildCounterDatabaseInstance++; |
| 372 if (buildCounterDatabaseInstance < 3) { | 372 if (buildCounterDatabaseInstance < 3) { |
| 373 unittest.expect(o.backendType, unittest.equals('foo')); | 373 unittest.expect(o.backendType, unittest.equals('foo')); |
| 374 unittest.expect(o.currentDiskSize, unittest.equals('foo')); | 374 unittest.expect(o.currentDiskSize, unittest.equals('foo')); |
| 375 unittest.expect(o.databaseVersion, unittest.equals('foo')); | 375 unittest.expect(o.databaseVersion, unittest.equals('foo')); |
| 376 unittest.expect(o.etag, unittest.equals('foo')); | 376 unittest.expect(o.etag, unittest.equals('foo')); |
| 377 checkDatabaseInstanceFailoverReplica(o.failoverReplica); | 377 checkDatabaseInstanceFailoverReplica(o.failoverReplica); |
| 378 unittest.expect(o.instanceType, unittest.equals('foo')); | 378 unittest.expect(o.instanceType, unittest.equals('foo')); |
| 379 checkUnnamed3681(o.ipAddresses); | 379 checkUnnamed3546(o.ipAddresses); |
| 380 unittest.expect(o.ipv6Address, unittest.equals('foo')); | 380 unittest.expect(o.ipv6Address, unittest.equals('foo')); |
| 381 unittest.expect(o.kind, unittest.equals('foo')); | 381 unittest.expect(o.kind, unittest.equals('foo')); |
| 382 unittest.expect(o.masterInstanceName, unittest.equals('foo')); | 382 unittest.expect(o.masterInstanceName, unittest.equals('foo')); |
| 383 unittest.expect(o.maxDiskSize, unittest.equals('foo')); | 383 unittest.expect(o.maxDiskSize, unittest.equals('foo')); |
| 384 unittest.expect(o.name, unittest.equals('foo')); | 384 unittest.expect(o.name, unittest.equals('foo')); |
| 385 checkOnPremisesConfiguration(o.onPremisesConfiguration); | 385 checkOnPremisesConfiguration(o.onPremisesConfiguration); |
| 386 unittest.expect(o.project, unittest.equals('foo')); | 386 unittest.expect(o.project, unittest.equals('foo')); |
| 387 unittest.expect(o.region, unittest.equals('foo')); | 387 unittest.expect(o.region, unittest.equals('foo')); |
| 388 checkReplicaConfiguration(o.replicaConfiguration); | 388 checkReplicaConfiguration(o.replicaConfiguration); |
| 389 checkUnnamed3682(o.replicaNames); | 389 checkUnnamed3547(o.replicaNames); |
| 390 unittest.expect(o.selfLink, unittest.equals('foo')); | 390 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 391 checkSslCert(o.serverCaCert); | 391 checkSslCert(o.serverCaCert); |
| 392 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); | 392 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); |
| 393 checkSettings(o.settings); | 393 checkSettings(o.settings); |
| 394 unittest.expect(o.state, unittest.equals('foo')); | 394 unittest.expect(o.state, unittest.equals('foo')); |
| 395 checkUnnamed3683(o.suspensionReason); | 395 checkUnnamed3548(o.suspensionReason); |
| 396 } | 396 } |
| 397 buildCounterDatabaseInstance--; | 397 buildCounterDatabaseInstance--; |
| 398 } | 398 } |
| 399 | 399 |
| 400 buildUnnamed3684() { | 400 buildUnnamed3549() { |
| 401 var o = new core.List<api.Database>(); | 401 var o = new core.List<api.Database>(); |
| 402 o.add(buildDatabase()); | 402 o.add(buildDatabase()); |
| 403 o.add(buildDatabase()); | 403 o.add(buildDatabase()); |
| 404 return o; | 404 return o; |
| 405 } | 405 } |
| 406 | 406 |
| 407 checkUnnamed3684(core.List<api.Database> o) { | 407 checkUnnamed3549(core.List<api.Database> o) { |
| 408 unittest.expect(o, unittest.hasLength(2)); | 408 unittest.expect(o, unittest.hasLength(2)); |
| 409 checkDatabase(o[0]); | 409 checkDatabase(o[0]); |
| 410 checkDatabase(o[1]); | 410 checkDatabase(o[1]); |
| 411 } | 411 } |
| 412 | 412 |
| 413 core.int buildCounterDatabasesListResponse = 0; | 413 core.int buildCounterDatabasesListResponse = 0; |
| 414 buildDatabasesListResponse() { | 414 buildDatabasesListResponse() { |
| 415 var o = new api.DatabasesListResponse(); | 415 var o = new api.DatabasesListResponse(); |
| 416 buildCounterDatabasesListResponse++; | 416 buildCounterDatabasesListResponse++; |
| 417 if (buildCounterDatabasesListResponse < 3) { | 417 if (buildCounterDatabasesListResponse < 3) { |
| 418 o.items = buildUnnamed3684(); | 418 o.items = buildUnnamed3549(); |
| 419 o.kind = "foo"; | 419 o.kind = "foo"; |
| 420 } | 420 } |
| 421 buildCounterDatabasesListResponse--; | 421 buildCounterDatabasesListResponse--; |
| 422 return o; | 422 return o; |
| 423 } | 423 } |
| 424 | 424 |
| 425 checkDatabasesListResponse(api.DatabasesListResponse o) { | 425 checkDatabasesListResponse(api.DatabasesListResponse o) { |
| 426 buildCounterDatabasesListResponse++; | 426 buildCounterDatabasesListResponse++; |
| 427 if (buildCounterDatabasesListResponse < 3) { | 427 if (buildCounterDatabasesListResponse < 3) { |
| 428 checkUnnamed3684(o.items); | 428 checkUnnamed3549(o.items); |
| 429 unittest.expect(o.kind, unittest.equals('foo')); | 429 unittest.expect(o.kind, unittest.equals('foo')); |
| 430 } | 430 } |
| 431 buildCounterDatabasesListResponse--; | 431 buildCounterDatabasesListResponse--; |
| 432 } | 432 } |
| 433 | 433 |
| 434 core.int buildCounterExportContextCsvExportOptions = 0; | 434 core.int buildCounterExportContextCsvExportOptions = 0; |
| 435 buildExportContextCsvExportOptions() { | 435 buildExportContextCsvExportOptions() { |
| 436 var o = new api.ExportContextCsvExportOptions(); | 436 var o = new api.ExportContextCsvExportOptions(); |
| 437 buildCounterExportContextCsvExportOptions++; | 437 buildCounterExportContextCsvExportOptions++; |
| 438 if (buildCounterExportContextCsvExportOptions < 3) { | 438 if (buildCounterExportContextCsvExportOptions < 3) { |
| 439 o.selectQuery = "foo"; | 439 o.selectQuery = "foo"; |
| 440 } | 440 } |
| 441 buildCounterExportContextCsvExportOptions--; | 441 buildCounterExportContextCsvExportOptions--; |
| 442 return o; | 442 return o; |
| 443 } | 443 } |
| 444 | 444 |
| 445 checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { | 445 checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { |
| 446 buildCounterExportContextCsvExportOptions++; | 446 buildCounterExportContextCsvExportOptions++; |
| 447 if (buildCounterExportContextCsvExportOptions < 3) { | 447 if (buildCounterExportContextCsvExportOptions < 3) { |
| 448 unittest.expect(o.selectQuery, unittest.equals('foo')); | 448 unittest.expect(o.selectQuery, unittest.equals('foo')); |
| 449 } | 449 } |
| 450 buildCounterExportContextCsvExportOptions--; | 450 buildCounterExportContextCsvExportOptions--; |
| 451 } | 451 } |
| 452 | 452 |
| 453 buildUnnamed3685() { | 453 buildUnnamed3550() { |
| 454 var o = new core.List<core.String>(); | 454 var o = new core.List<core.String>(); |
| 455 o.add("foo"); | 455 o.add("foo"); |
| 456 o.add("foo"); | 456 o.add("foo"); |
| 457 return o; | 457 return o; |
| 458 } | 458 } |
| 459 | 459 |
| 460 checkUnnamed3685(core.List<core.String> o) { | 460 checkUnnamed3550(core.List<core.String> o) { |
| 461 unittest.expect(o, unittest.hasLength(2)); | 461 unittest.expect(o, unittest.hasLength(2)); |
| 462 unittest.expect(o[0], unittest.equals('foo')); | 462 unittest.expect(o[0], unittest.equals('foo')); |
| 463 unittest.expect(o[1], unittest.equals('foo')); | 463 unittest.expect(o[1], unittest.equals('foo')); |
| 464 } | 464 } |
| 465 | 465 |
| 466 buildUnnamed3686() { | 466 buildUnnamed3551() { |
| 467 var o = new core.List<core.String>(); | 467 var o = new core.List<core.String>(); |
| 468 o.add("foo"); | 468 o.add("foo"); |
| 469 o.add("foo"); | 469 o.add("foo"); |
| 470 return o; | 470 return o; |
| 471 } | 471 } |
| 472 | 472 |
| 473 checkUnnamed3686(core.List<core.String> o) { | 473 checkUnnamed3551(core.List<core.String> o) { |
| 474 unittest.expect(o, unittest.hasLength(2)); | 474 unittest.expect(o, unittest.hasLength(2)); |
| 475 unittest.expect(o[0], unittest.equals('foo')); | 475 unittest.expect(o[0], unittest.equals('foo')); |
| 476 unittest.expect(o[1], unittest.equals('foo')); | 476 unittest.expect(o[1], unittest.equals('foo')); |
| 477 } | 477 } |
| 478 | 478 |
| 479 core.int buildCounterExportContextSqlExportOptions = 0; | 479 core.int buildCounterExportContextSqlExportOptions = 0; |
| 480 buildExportContextSqlExportOptions() { | 480 buildExportContextSqlExportOptions() { |
| 481 var o = new api.ExportContextSqlExportOptions(); | 481 var o = new api.ExportContextSqlExportOptions(); |
| 482 buildCounterExportContextSqlExportOptions++; | 482 buildCounterExportContextSqlExportOptions++; |
| 483 if (buildCounterExportContextSqlExportOptions < 3) { | 483 if (buildCounterExportContextSqlExportOptions < 3) { |
| 484 o.schemaOnly = true; | 484 o.schemaOnly = true; |
| 485 o.tables = buildUnnamed3686(); | 485 o.tables = buildUnnamed3551(); |
| 486 } | 486 } |
| 487 buildCounterExportContextSqlExportOptions--; | 487 buildCounterExportContextSqlExportOptions--; |
| 488 return o; | 488 return o; |
| 489 } | 489 } |
| 490 | 490 |
| 491 checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) { | 491 checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) { |
| 492 buildCounterExportContextSqlExportOptions++; | 492 buildCounterExportContextSqlExportOptions++; |
| 493 if (buildCounterExportContextSqlExportOptions < 3) { | 493 if (buildCounterExportContextSqlExportOptions < 3) { |
| 494 unittest.expect(o.schemaOnly, unittest.isTrue); | 494 unittest.expect(o.schemaOnly, unittest.isTrue); |
| 495 checkUnnamed3686(o.tables); | 495 checkUnnamed3551(o.tables); |
| 496 } | 496 } |
| 497 buildCounterExportContextSqlExportOptions--; | 497 buildCounterExportContextSqlExportOptions--; |
| 498 } | 498 } |
| 499 | 499 |
| 500 core.int buildCounterExportContext = 0; | 500 core.int buildCounterExportContext = 0; |
| 501 buildExportContext() { | 501 buildExportContext() { |
| 502 var o = new api.ExportContext(); | 502 var o = new api.ExportContext(); |
| 503 buildCounterExportContext++; | 503 buildCounterExportContext++; |
| 504 if (buildCounterExportContext < 3) { | 504 if (buildCounterExportContext < 3) { |
| 505 o.csvExportOptions = buildExportContextCsvExportOptions(); | 505 o.csvExportOptions = buildExportContextCsvExportOptions(); |
| 506 o.databases = buildUnnamed3685(); | 506 o.databases = buildUnnamed3550(); |
| 507 o.fileType = "foo"; | 507 o.fileType = "foo"; |
| 508 o.kind = "foo"; | 508 o.kind = "foo"; |
| 509 o.sqlExportOptions = buildExportContextSqlExportOptions(); | 509 o.sqlExportOptions = buildExportContextSqlExportOptions(); |
| 510 o.uri = "foo"; | 510 o.uri = "foo"; |
| 511 } | 511 } |
| 512 buildCounterExportContext--; | 512 buildCounterExportContext--; |
| 513 return o; | 513 return o; |
| 514 } | 514 } |
| 515 | 515 |
| 516 checkExportContext(api.ExportContext o) { | 516 checkExportContext(api.ExportContext o) { |
| 517 buildCounterExportContext++; | 517 buildCounterExportContext++; |
| 518 if (buildCounterExportContext < 3) { | 518 if (buildCounterExportContext < 3) { |
| 519 checkExportContextCsvExportOptions(o.csvExportOptions); | 519 checkExportContextCsvExportOptions(o.csvExportOptions); |
| 520 checkUnnamed3685(o.databases); | 520 checkUnnamed3550(o.databases); |
| 521 unittest.expect(o.fileType, unittest.equals('foo')); | 521 unittest.expect(o.fileType, unittest.equals('foo')); |
| 522 unittest.expect(o.kind, unittest.equals('foo')); | 522 unittest.expect(o.kind, unittest.equals('foo')); |
| 523 checkExportContextSqlExportOptions(o.sqlExportOptions); | 523 checkExportContextSqlExportOptions(o.sqlExportOptions); |
| 524 unittest.expect(o.uri, unittest.equals('foo')); | 524 unittest.expect(o.uri, unittest.equals('foo')); |
| 525 } | 525 } |
| 526 buildCounterExportContext--; | 526 buildCounterExportContext--; |
| 527 } | 527 } |
| 528 | 528 |
| 529 core.int buildCounterFailoverContext = 0; | 529 core.int buildCounterFailoverContext = 0; |
| 530 buildFailoverContext() { | 530 buildFailoverContext() { |
| 531 var o = new api.FailoverContext(); | 531 var o = new api.FailoverContext(); |
| 532 buildCounterFailoverContext++; | 532 buildCounterFailoverContext++; |
| 533 if (buildCounterFailoverContext < 3) { | 533 if (buildCounterFailoverContext < 3) { |
| 534 o.kind = "foo"; | 534 o.kind = "foo"; |
| 535 o.settingsVersion = "foo"; | 535 o.settingsVersion = "foo"; |
| 536 } | 536 } |
| 537 buildCounterFailoverContext--; | 537 buildCounterFailoverContext--; |
| 538 return o; | 538 return o; |
| 539 } | 539 } |
| 540 | 540 |
| 541 checkFailoverContext(api.FailoverContext o) { | 541 checkFailoverContext(api.FailoverContext o) { |
| 542 buildCounterFailoverContext++; | 542 buildCounterFailoverContext++; |
| 543 if (buildCounterFailoverContext < 3) { | 543 if (buildCounterFailoverContext < 3) { |
| 544 unittest.expect(o.kind, unittest.equals('foo')); | 544 unittest.expect(o.kind, unittest.equals('foo')); |
| 545 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 545 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
| 546 } | 546 } |
| 547 buildCounterFailoverContext--; | 547 buildCounterFailoverContext--; |
| 548 } | 548 } |
| 549 | 549 |
| 550 buildUnnamed3687() { | 550 buildUnnamed3552() { |
| 551 var o = new core.List<core.String>(); | 551 var o = new core.List<core.String>(); |
| 552 o.add("foo"); | 552 o.add("foo"); |
| 553 o.add("foo"); | 553 o.add("foo"); |
| 554 return o; | 554 return o; |
| 555 } | 555 } |
| 556 | 556 |
| 557 checkUnnamed3687(core.List<core.String> o) { | 557 checkUnnamed3552(core.List<core.String> o) { |
| 558 unittest.expect(o, unittest.hasLength(2)); | 558 unittest.expect(o, unittest.hasLength(2)); |
| 559 unittest.expect(o[0], unittest.equals('foo')); | 559 unittest.expect(o[0], unittest.equals('foo')); |
| 560 unittest.expect(o[1], unittest.equals('foo')); | 560 unittest.expect(o[1], unittest.equals('foo')); |
| 561 } | 561 } |
| 562 | 562 |
| 563 buildUnnamed3688() { | 563 buildUnnamed3553() { |
| 564 var o = new core.List<core.String>(); | 564 var o = new core.List<core.String>(); |
| 565 o.add("foo"); | 565 o.add("foo"); |
| 566 o.add("foo"); | 566 o.add("foo"); |
| 567 return o; | 567 return o; |
| 568 } | 568 } |
| 569 | 569 |
| 570 checkUnnamed3688(core.List<core.String> o) { | 570 checkUnnamed3553(core.List<core.String> o) { |
| 571 unittest.expect(o, unittest.hasLength(2)); | 571 unittest.expect(o, unittest.hasLength(2)); |
| 572 unittest.expect(o[0], unittest.equals('foo')); | 572 unittest.expect(o[0], unittest.equals('foo')); |
| 573 unittest.expect(o[1], unittest.equals('foo')); | 573 unittest.expect(o[1], unittest.equals('foo')); |
| 574 } | 574 } |
| 575 | 575 |
| 576 core.int buildCounterFlag = 0; | 576 core.int buildCounterFlag = 0; |
| 577 buildFlag() { | 577 buildFlag() { |
| 578 var o = new api.Flag(); | 578 var o = new api.Flag(); |
| 579 buildCounterFlag++; | 579 buildCounterFlag++; |
| 580 if (buildCounterFlag < 3) { | 580 if (buildCounterFlag < 3) { |
| 581 o.allowedStringValues = buildUnnamed3687(); | 581 o.allowedStringValues = buildUnnamed3552(); |
| 582 o.appliesTo = buildUnnamed3688(); | 582 o.appliesTo = buildUnnamed3553(); |
| 583 o.kind = "foo"; | 583 o.kind = "foo"; |
| 584 o.maxValue = "foo"; | 584 o.maxValue = "foo"; |
| 585 o.minValue = "foo"; | 585 o.minValue = "foo"; |
| 586 o.name = "foo"; | 586 o.name = "foo"; |
| 587 o.requiresRestart = true; | 587 o.requiresRestart = true; |
| 588 o.type = "foo"; | 588 o.type = "foo"; |
| 589 } | 589 } |
| 590 buildCounterFlag--; | 590 buildCounterFlag--; |
| 591 return o; | 591 return o; |
| 592 } | 592 } |
| 593 | 593 |
| 594 checkFlag(api.Flag o) { | 594 checkFlag(api.Flag o) { |
| 595 buildCounterFlag++; | 595 buildCounterFlag++; |
| 596 if (buildCounterFlag < 3) { | 596 if (buildCounterFlag < 3) { |
| 597 checkUnnamed3687(o.allowedStringValues); | 597 checkUnnamed3552(o.allowedStringValues); |
| 598 checkUnnamed3688(o.appliesTo); | 598 checkUnnamed3553(o.appliesTo); |
| 599 unittest.expect(o.kind, unittest.equals('foo')); | 599 unittest.expect(o.kind, unittest.equals('foo')); |
| 600 unittest.expect(o.maxValue, unittest.equals('foo')); | 600 unittest.expect(o.maxValue, unittest.equals('foo')); |
| 601 unittest.expect(o.minValue, unittest.equals('foo')); | 601 unittest.expect(o.minValue, unittest.equals('foo')); |
| 602 unittest.expect(o.name, unittest.equals('foo')); | 602 unittest.expect(o.name, unittest.equals('foo')); |
| 603 unittest.expect(o.requiresRestart, unittest.isTrue); | 603 unittest.expect(o.requiresRestart, unittest.isTrue); |
| 604 unittest.expect(o.type, unittest.equals('foo')); | 604 unittest.expect(o.type, unittest.equals('foo')); |
| 605 } | 605 } |
| 606 buildCounterFlag--; | 606 buildCounterFlag--; |
| 607 } | 607 } |
| 608 | 608 |
| 609 buildUnnamed3689() { | 609 buildUnnamed3554() { |
| 610 var o = new core.List<api.Flag>(); | 610 var o = new core.List<api.Flag>(); |
| 611 o.add(buildFlag()); | 611 o.add(buildFlag()); |
| 612 o.add(buildFlag()); | 612 o.add(buildFlag()); |
| 613 return o; | 613 return o; |
| 614 } | 614 } |
| 615 | 615 |
| 616 checkUnnamed3689(core.List<api.Flag> o) { | 616 checkUnnamed3554(core.List<api.Flag> o) { |
| 617 unittest.expect(o, unittest.hasLength(2)); | 617 unittest.expect(o, unittest.hasLength(2)); |
| 618 checkFlag(o[0]); | 618 checkFlag(o[0]); |
| 619 checkFlag(o[1]); | 619 checkFlag(o[1]); |
| 620 } | 620 } |
| 621 | 621 |
| 622 core.int buildCounterFlagsListResponse = 0; | 622 core.int buildCounterFlagsListResponse = 0; |
| 623 buildFlagsListResponse() { | 623 buildFlagsListResponse() { |
| 624 var o = new api.FlagsListResponse(); | 624 var o = new api.FlagsListResponse(); |
| 625 buildCounterFlagsListResponse++; | 625 buildCounterFlagsListResponse++; |
| 626 if (buildCounterFlagsListResponse < 3) { | 626 if (buildCounterFlagsListResponse < 3) { |
| 627 o.items = buildUnnamed3689(); | 627 o.items = buildUnnamed3554(); |
| 628 o.kind = "foo"; | 628 o.kind = "foo"; |
| 629 } | 629 } |
| 630 buildCounterFlagsListResponse--; | 630 buildCounterFlagsListResponse--; |
| 631 return o; | 631 return o; |
| 632 } | 632 } |
| 633 | 633 |
| 634 checkFlagsListResponse(api.FlagsListResponse o) { | 634 checkFlagsListResponse(api.FlagsListResponse o) { |
| 635 buildCounterFlagsListResponse++; | 635 buildCounterFlagsListResponse++; |
| 636 if (buildCounterFlagsListResponse < 3) { | 636 if (buildCounterFlagsListResponse < 3) { |
| 637 checkUnnamed3689(o.items); | 637 checkUnnamed3554(o.items); |
| 638 unittest.expect(o.kind, unittest.equals('foo')); | 638 unittest.expect(o.kind, unittest.equals('foo')); |
| 639 } | 639 } |
| 640 buildCounterFlagsListResponse--; | 640 buildCounterFlagsListResponse--; |
| 641 } | 641 } |
| 642 | 642 |
| 643 buildUnnamed3690() { | 643 buildUnnamed3555() { |
| 644 var o = new core.List<core.String>(); | 644 var o = new core.List<core.String>(); |
| 645 o.add("foo"); | 645 o.add("foo"); |
| 646 o.add("foo"); | 646 o.add("foo"); |
| 647 return o; | 647 return o; |
| 648 } | 648 } |
| 649 | 649 |
| 650 checkUnnamed3690(core.List<core.String> o) { | 650 checkUnnamed3555(core.List<core.String> o) { |
| 651 unittest.expect(o, unittest.hasLength(2)); | 651 unittest.expect(o, unittest.hasLength(2)); |
| 652 unittest.expect(o[0], unittest.equals('foo')); | 652 unittest.expect(o[0], unittest.equals('foo')); |
| 653 unittest.expect(o[1], unittest.equals('foo')); | 653 unittest.expect(o[1], unittest.equals('foo')); |
| 654 } | 654 } |
| 655 | 655 |
| 656 core.int buildCounterImportContextCsvImportOptions = 0; | 656 core.int buildCounterImportContextCsvImportOptions = 0; |
| 657 buildImportContextCsvImportOptions() { | 657 buildImportContextCsvImportOptions() { |
| 658 var o = new api.ImportContextCsvImportOptions(); | 658 var o = new api.ImportContextCsvImportOptions(); |
| 659 buildCounterImportContextCsvImportOptions++; | 659 buildCounterImportContextCsvImportOptions++; |
| 660 if (buildCounterImportContextCsvImportOptions < 3) { | 660 if (buildCounterImportContextCsvImportOptions < 3) { |
| 661 o.columns = buildUnnamed3690(); | 661 o.columns = buildUnnamed3555(); |
| 662 o.table = "foo"; | 662 o.table = "foo"; |
| 663 } | 663 } |
| 664 buildCounterImportContextCsvImportOptions--; | 664 buildCounterImportContextCsvImportOptions--; |
| 665 return o; | 665 return o; |
| 666 } | 666 } |
| 667 | 667 |
| 668 checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { | 668 checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { |
| 669 buildCounterImportContextCsvImportOptions++; | 669 buildCounterImportContextCsvImportOptions++; |
| 670 if (buildCounterImportContextCsvImportOptions < 3) { | 670 if (buildCounterImportContextCsvImportOptions < 3) { |
| 671 checkUnnamed3690(o.columns); | 671 checkUnnamed3555(o.columns); |
| 672 unittest.expect(o.table, unittest.equals('foo')); | 672 unittest.expect(o.table, unittest.equals('foo')); |
| 673 } | 673 } |
| 674 buildCounterImportContextCsvImportOptions--; | 674 buildCounterImportContextCsvImportOptions--; |
| 675 } | 675 } |
| 676 | 676 |
| 677 core.int buildCounterImportContext = 0; | 677 core.int buildCounterImportContext = 0; |
| 678 buildImportContext() { | 678 buildImportContext() { |
| 679 var o = new api.ImportContext(); | 679 var o = new api.ImportContext(); |
| 680 buildCounterImportContext++; | 680 buildCounterImportContext++; |
| 681 if (buildCounterImportContext < 3) { | 681 if (buildCounterImportContext < 3) { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 } | 770 } |
| 771 | 771 |
| 772 checkInstancesImportRequest(api.InstancesImportRequest o) { | 772 checkInstancesImportRequest(api.InstancesImportRequest o) { |
| 773 buildCounterInstancesImportRequest++; | 773 buildCounterInstancesImportRequest++; |
| 774 if (buildCounterInstancesImportRequest < 3) { | 774 if (buildCounterInstancesImportRequest < 3) { |
| 775 checkImportContext(o.importContext); | 775 checkImportContext(o.importContext); |
| 776 } | 776 } |
| 777 buildCounterInstancesImportRequest--; | 777 buildCounterInstancesImportRequest--; |
| 778 } | 778 } |
| 779 | 779 |
| 780 buildUnnamed3691() { | 780 buildUnnamed3556() { |
| 781 var o = new core.List<api.DatabaseInstance>(); | 781 var o = new core.List<api.DatabaseInstance>(); |
| 782 o.add(buildDatabaseInstance()); | 782 o.add(buildDatabaseInstance()); |
| 783 o.add(buildDatabaseInstance()); | 783 o.add(buildDatabaseInstance()); |
| 784 return o; | 784 return o; |
| 785 } | 785 } |
| 786 | 786 |
| 787 checkUnnamed3691(core.List<api.DatabaseInstance> o) { | 787 checkUnnamed3556(core.List<api.DatabaseInstance> o) { |
| 788 unittest.expect(o, unittest.hasLength(2)); | 788 unittest.expect(o, unittest.hasLength(2)); |
| 789 checkDatabaseInstance(o[0]); | 789 checkDatabaseInstance(o[0]); |
| 790 checkDatabaseInstance(o[1]); | 790 checkDatabaseInstance(o[1]); |
| 791 } | 791 } |
| 792 | 792 |
| 793 core.int buildCounterInstancesListResponse = 0; | 793 core.int buildCounterInstancesListResponse = 0; |
| 794 buildInstancesListResponse() { | 794 buildInstancesListResponse() { |
| 795 var o = new api.InstancesListResponse(); | 795 var o = new api.InstancesListResponse(); |
| 796 buildCounterInstancesListResponse++; | 796 buildCounterInstancesListResponse++; |
| 797 if (buildCounterInstancesListResponse < 3) { | 797 if (buildCounterInstancesListResponse < 3) { |
| 798 o.items = buildUnnamed3691(); | 798 o.items = buildUnnamed3556(); |
| 799 o.kind = "foo"; | 799 o.kind = "foo"; |
| 800 o.nextPageToken = "foo"; | 800 o.nextPageToken = "foo"; |
| 801 } | 801 } |
| 802 buildCounterInstancesListResponse--; | 802 buildCounterInstancesListResponse--; |
| 803 return o; | 803 return o; |
| 804 } | 804 } |
| 805 | 805 |
| 806 checkInstancesListResponse(api.InstancesListResponse o) { | 806 checkInstancesListResponse(api.InstancesListResponse o) { |
| 807 buildCounterInstancesListResponse++; | 807 buildCounterInstancesListResponse++; |
| 808 if (buildCounterInstancesListResponse < 3) { | 808 if (buildCounterInstancesListResponse < 3) { |
| 809 checkUnnamed3691(o.items); | 809 checkUnnamed3556(o.items); |
| 810 unittest.expect(o.kind, unittest.equals('foo')); | 810 unittest.expect(o.kind, unittest.equals('foo')); |
| 811 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 811 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 812 } | 812 } |
| 813 buildCounterInstancesListResponse--; | 813 buildCounterInstancesListResponse--; |
| 814 } | 814 } |
| 815 | 815 |
| 816 core.int buildCounterInstancesRestoreBackupRequest = 0; | 816 core.int buildCounterInstancesRestoreBackupRequest = 0; |
| 817 buildInstancesRestoreBackupRequest() { | 817 buildInstancesRestoreBackupRequest() { |
| 818 var o = new api.InstancesRestoreBackupRequest(); | 818 var o = new api.InstancesRestoreBackupRequest(); |
| 819 buildCounterInstancesRestoreBackupRequest++; | 819 buildCounterInstancesRestoreBackupRequest++; |
| 820 if (buildCounterInstancesRestoreBackupRequest < 3) { | 820 if (buildCounterInstancesRestoreBackupRequest < 3) { |
| 821 o.restoreBackupContext = buildRestoreBackupContext(); | 821 o.restoreBackupContext = buildRestoreBackupContext(); |
| 822 } | 822 } |
| 823 buildCounterInstancesRestoreBackupRequest--; | 823 buildCounterInstancesRestoreBackupRequest--; |
| 824 return o; | 824 return o; |
| 825 } | 825 } |
| 826 | 826 |
| 827 checkInstancesRestoreBackupRequest(api.InstancesRestoreBackupRequest o) { | 827 checkInstancesRestoreBackupRequest(api.InstancesRestoreBackupRequest o) { |
| 828 buildCounterInstancesRestoreBackupRequest++; | 828 buildCounterInstancesRestoreBackupRequest++; |
| 829 if (buildCounterInstancesRestoreBackupRequest < 3) { | 829 if (buildCounterInstancesRestoreBackupRequest < 3) { |
| 830 checkRestoreBackupContext(o.restoreBackupContext); | 830 checkRestoreBackupContext(o.restoreBackupContext); |
| 831 } | 831 } |
| 832 buildCounterInstancesRestoreBackupRequest--; | 832 buildCounterInstancesRestoreBackupRequest--; |
| 833 } | 833 } |
| 834 | 834 |
| 835 buildUnnamed3692() { | 835 buildUnnamed3557() { |
| 836 var o = new core.List<api.AclEntry>(); | 836 var o = new core.List<api.AclEntry>(); |
| 837 o.add(buildAclEntry()); | 837 o.add(buildAclEntry()); |
| 838 o.add(buildAclEntry()); | 838 o.add(buildAclEntry()); |
| 839 return o; | 839 return o; |
| 840 } | 840 } |
| 841 | 841 |
| 842 checkUnnamed3692(core.List<api.AclEntry> o) { | 842 checkUnnamed3557(core.List<api.AclEntry> o) { |
| 843 unittest.expect(o, unittest.hasLength(2)); | 843 unittest.expect(o, unittest.hasLength(2)); |
| 844 checkAclEntry(o[0]); | 844 checkAclEntry(o[0]); |
| 845 checkAclEntry(o[1]); | 845 checkAclEntry(o[1]); |
| 846 } | 846 } |
| 847 | 847 |
| 848 core.int buildCounterIpConfiguration = 0; | 848 core.int buildCounterIpConfiguration = 0; |
| 849 buildIpConfiguration() { | 849 buildIpConfiguration() { |
| 850 var o = new api.IpConfiguration(); | 850 var o = new api.IpConfiguration(); |
| 851 buildCounterIpConfiguration++; | 851 buildCounterIpConfiguration++; |
| 852 if (buildCounterIpConfiguration < 3) { | 852 if (buildCounterIpConfiguration < 3) { |
| 853 o.authorizedNetworks = buildUnnamed3692(); | 853 o.authorizedNetworks = buildUnnamed3557(); |
| 854 o.ipv4Enabled = true; | 854 o.ipv4Enabled = true; |
| 855 o.requireSsl = true; | 855 o.requireSsl = true; |
| 856 } | 856 } |
| 857 buildCounterIpConfiguration--; | 857 buildCounterIpConfiguration--; |
| 858 return o; | 858 return o; |
| 859 } | 859 } |
| 860 | 860 |
| 861 checkIpConfiguration(api.IpConfiguration o) { | 861 checkIpConfiguration(api.IpConfiguration o) { |
| 862 buildCounterIpConfiguration++; | 862 buildCounterIpConfiguration++; |
| 863 if (buildCounterIpConfiguration < 3) { | 863 if (buildCounterIpConfiguration < 3) { |
| 864 checkUnnamed3692(o.authorizedNetworks); | 864 checkUnnamed3557(o.authorizedNetworks); |
| 865 unittest.expect(o.ipv4Enabled, unittest.isTrue); | 865 unittest.expect(o.ipv4Enabled, unittest.isTrue); |
| 866 unittest.expect(o.requireSsl, unittest.isTrue); | 866 unittest.expect(o.requireSsl, unittest.isTrue); |
| 867 } | 867 } |
| 868 buildCounterIpConfiguration--; | 868 buildCounterIpConfiguration--; |
| 869 } | 869 } |
| 870 | 870 |
| 871 core.int buildCounterIpMapping = 0; | 871 core.int buildCounterIpMapping = 0; |
| 872 buildIpMapping() { | 872 buildIpMapping() { |
| 873 var o = new api.IpMapping(); | 873 var o = new api.IpMapping(); |
| 874 buildCounterIpMapping++; | 874 buildCounterIpMapping++; |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 checkOperationError(api.OperationError o) { | 1060 checkOperationError(api.OperationError o) { |
| 1061 buildCounterOperationError++; | 1061 buildCounterOperationError++; |
| 1062 if (buildCounterOperationError < 3) { | 1062 if (buildCounterOperationError < 3) { |
| 1063 unittest.expect(o.code, unittest.equals('foo')); | 1063 unittest.expect(o.code, unittest.equals('foo')); |
| 1064 unittest.expect(o.kind, unittest.equals('foo')); | 1064 unittest.expect(o.kind, unittest.equals('foo')); |
| 1065 unittest.expect(o.message, unittest.equals('foo')); | 1065 unittest.expect(o.message, unittest.equals('foo')); |
| 1066 } | 1066 } |
| 1067 buildCounterOperationError--; | 1067 buildCounterOperationError--; |
| 1068 } | 1068 } |
| 1069 | 1069 |
| 1070 buildUnnamed3693() { | 1070 buildUnnamed3558() { |
| 1071 var o = new core.List<api.OperationError>(); | 1071 var o = new core.List<api.OperationError>(); |
| 1072 o.add(buildOperationError()); | 1072 o.add(buildOperationError()); |
| 1073 o.add(buildOperationError()); | 1073 o.add(buildOperationError()); |
| 1074 return o; | 1074 return o; |
| 1075 } | 1075 } |
| 1076 | 1076 |
| 1077 checkUnnamed3693(core.List<api.OperationError> o) { | 1077 checkUnnamed3558(core.List<api.OperationError> o) { |
| 1078 unittest.expect(o, unittest.hasLength(2)); | 1078 unittest.expect(o, unittest.hasLength(2)); |
| 1079 checkOperationError(o[0]); | 1079 checkOperationError(o[0]); |
| 1080 checkOperationError(o[1]); | 1080 checkOperationError(o[1]); |
| 1081 } | 1081 } |
| 1082 | 1082 |
| 1083 core.int buildCounterOperationErrors = 0; | 1083 core.int buildCounterOperationErrors = 0; |
| 1084 buildOperationErrors() { | 1084 buildOperationErrors() { |
| 1085 var o = new api.OperationErrors(); | 1085 var o = new api.OperationErrors(); |
| 1086 buildCounterOperationErrors++; | 1086 buildCounterOperationErrors++; |
| 1087 if (buildCounterOperationErrors < 3) { | 1087 if (buildCounterOperationErrors < 3) { |
| 1088 o.errors = buildUnnamed3693(); | 1088 o.errors = buildUnnamed3558(); |
| 1089 o.kind = "foo"; | 1089 o.kind = "foo"; |
| 1090 } | 1090 } |
| 1091 buildCounterOperationErrors--; | 1091 buildCounterOperationErrors--; |
| 1092 return o; | 1092 return o; |
| 1093 } | 1093 } |
| 1094 | 1094 |
| 1095 checkOperationErrors(api.OperationErrors o) { | 1095 checkOperationErrors(api.OperationErrors o) { |
| 1096 buildCounterOperationErrors++; | 1096 buildCounterOperationErrors++; |
| 1097 if (buildCounterOperationErrors < 3) { | 1097 if (buildCounterOperationErrors < 3) { |
| 1098 checkUnnamed3693(o.errors); | 1098 checkUnnamed3558(o.errors); |
| 1099 unittest.expect(o.kind, unittest.equals('foo')); | 1099 unittest.expect(o.kind, unittest.equals('foo')); |
| 1100 } | 1100 } |
| 1101 buildCounterOperationErrors--; | 1101 buildCounterOperationErrors--; |
| 1102 } | 1102 } |
| 1103 | 1103 |
| 1104 buildUnnamed3694() { | 1104 buildUnnamed3559() { |
| 1105 var o = new core.List<api.Operation>(); | 1105 var o = new core.List<api.Operation>(); |
| 1106 o.add(buildOperation()); | 1106 o.add(buildOperation()); |
| 1107 o.add(buildOperation()); | 1107 o.add(buildOperation()); |
| 1108 return o; | 1108 return o; |
| 1109 } | 1109 } |
| 1110 | 1110 |
| 1111 checkUnnamed3694(core.List<api.Operation> o) { | 1111 checkUnnamed3559(core.List<api.Operation> o) { |
| 1112 unittest.expect(o, unittest.hasLength(2)); | 1112 unittest.expect(o, unittest.hasLength(2)); |
| 1113 checkOperation(o[0]); | 1113 checkOperation(o[0]); |
| 1114 checkOperation(o[1]); | 1114 checkOperation(o[1]); |
| 1115 } | 1115 } |
| 1116 | 1116 |
| 1117 core.int buildCounterOperationsListResponse = 0; | 1117 core.int buildCounterOperationsListResponse = 0; |
| 1118 buildOperationsListResponse() { | 1118 buildOperationsListResponse() { |
| 1119 var o = new api.OperationsListResponse(); | 1119 var o = new api.OperationsListResponse(); |
| 1120 buildCounterOperationsListResponse++; | 1120 buildCounterOperationsListResponse++; |
| 1121 if (buildCounterOperationsListResponse < 3) { | 1121 if (buildCounterOperationsListResponse < 3) { |
| 1122 o.items = buildUnnamed3694(); | 1122 o.items = buildUnnamed3559(); |
| 1123 o.kind = "foo"; | 1123 o.kind = "foo"; |
| 1124 o.nextPageToken = "foo"; | 1124 o.nextPageToken = "foo"; |
| 1125 } | 1125 } |
| 1126 buildCounterOperationsListResponse--; | 1126 buildCounterOperationsListResponse--; |
| 1127 return o; | 1127 return o; |
| 1128 } | 1128 } |
| 1129 | 1129 |
| 1130 checkOperationsListResponse(api.OperationsListResponse o) { | 1130 checkOperationsListResponse(api.OperationsListResponse o) { |
| 1131 buildCounterOperationsListResponse++; | 1131 buildCounterOperationsListResponse++; |
| 1132 if (buildCounterOperationsListResponse < 3) { | 1132 if (buildCounterOperationsListResponse < 3) { |
| 1133 checkUnnamed3694(o.items); | 1133 checkUnnamed3559(o.items); |
| 1134 unittest.expect(o.kind, unittest.equals('foo')); | 1134 unittest.expect(o.kind, unittest.equals('foo')); |
| 1135 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1135 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1136 } | 1136 } |
| 1137 buildCounterOperationsListResponse--; | 1137 buildCounterOperationsListResponse--; |
| 1138 } | 1138 } |
| 1139 | 1139 |
| 1140 core.int buildCounterReplicaConfiguration = 0; | 1140 core.int buildCounterReplicaConfiguration = 0; |
| 1141 buildReplicaConfiguration() { | 1141 buildReplicaConfiguration() { |
| 1142 var o = new api.ReplicaConfiguration(); | 1142 var o = new api.ReplicaConfiguration(); |
| 1143 buildCounterReplicaConfiguration++; | 1143 buildCounterReplicaConfiguration++; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 checkRestoreBackupContext(api.RestoreBackupContext o) { | 1176 checkRestoreBackupContext(api.RestoreBackupContext o) { |
| 1177 buildCounterRestoreBackupContext++; | 1177 buildCounterRestoreBackupContext++; |
| 1178 if (buildCounterRestoreBackupContext < 3) { | 1178 if (buildCounterRestoreBackupContext < 3) { |
| 1179 unittest.expect(o.backupRunId, unittest.equals('foo')); | 1179 unittest.expect(o.backupRunId, unittest.equals('foo')); |
| 1180 unittest.expect(o.instanceId, unittest.equals('foo')); | 1180 unittest.expect(o.instanceId, unittest.equals('foo')); |
| 1181 unittest.expect(o.kind, unittest.equals('foo')); | 1181 unittest.expect(o.kind, unittest.equals('foo')); |
| 1182 } | 1182 } |
| 1183 buildCounterRestoreBackupContext--; | 1183 buildCounterRestoreBackupContext--; |
| 1184 } | 1184 } |
| 1185 | 1185 |
| 1186 buildUnnamed3695() { | 1186 buildUnnamed3560() { |
| 1187 var o = new core.List<core.String>(); | 1187 var o = new core.List<core.String>(); |
| 1188 o.add("foo"); | 1188 o.add("foo"); |
| 1189 o.add("foo"); | 1189 o.add("foo"); |
| 1190 return o; | 1190 return o; |
| 1191 } | 1191 } |
| 1192 | 1192 |
| 1193 checkUnnamed3695(core.List<core.String> o) { | 1193 checkUnnamed3560(core.List<core.String> o) { |
| 1194 unittest.expect(o, unittest.hasLength(2)); | 1194 unittest.expect(o, unittest.hasLength(2)); |
| 1195 unittest.expect(o[0], unittest.equals('foo')); | 1195 unittest.expect(o[0], unittest.equals('foo')); |
| 1196 unittest.expect(o[1], unittest.equals('foo')); | 1196 unittest.expect(o[1], unittest.equals('foo')); |
| 1197 } | 1197 } |
| 1198 | 1198 |
| 1199 buildUnnamed3696() { | 1199 buildUnnamed3561() { |
| 1200 var o = new core.List<api.DatabaseFlags>(); | 1200 var o = new core.List<api.DatabaseFlags>(); |
| 1201 o.add(buildDatabaseFlags()); | 1201 o.add(buildDatabaseFlags()); |
| 1202 o.add(buildDatabaseFlags()); | 1202 o.add(buildDatabaseFlags()); |
| 1203 return o; | 1203 return o; |
| 1204 } | 1204 } |
| 1205 | 1205 |
| 1206 checkUnnamed3696(core.List<api.DatabaseFlags> o) { | 1206 checkUnnamed3561(core.List<api.DatabaseFlags> o) { |
| 1207 unittest.expect(o, unittest.hasLength(2)); | 1207 unittest.expect(o, unittest.hasLength(2)); |
| 1208 checkDatabaseFlags(o[0]); | 1208 checkDatabaseFlags(o[0]); |
| 1209 checkDatabaseFlags(o[1]); | 1209 checkDatabaseFlags(o[1]); |
| 1210 } | 1210 } |
| 1211 | 1211 |
| 1212 core.int buildCounterSettings = 0; | 1212 core.int buildCounterSettings = 0; |
| 1213 buildSettings() { | 1213 buildSettings() { |
| 1214 var o = new api.Settings(); | 1214 var o = new api.Settings(); |
| 1215 buildCounterSettings++; | 1215 buildCounterSettings++; |
| 1216 if (buildCounterSettings < 3) { | 1216 if (buildCounterSettings < 3) { |
| 1217 o.activationPolicy = "foo"; | 1217 o.activationPolicy = "foo"; |
| 1218 o.authorizedGaeApplications = buildUnnamed3695(); | 1218 o.authorizedGaeApplications = buildUnnamed3560(); |
| 1219 o.backupConfiguration = buildBackupConfiguration(); | 1219 o.backupConfiguration = buildBackupConfiguration(); |
| 1220 o.crashSafeReplicationEnabled = true; | 1220 o.crashSafeReplicationEnabled = true; |
| 1221 o.dataDiskSizeGb = "foo"; | 1221 o.dataDiskSizeGb = "foo"; |
| 1222 o.dataDiskType = "foo"; | 1222 o.dataDiskType = "foo"; |
| 1223 o.databaseFlags = buildUnnamed3696(); | 1223 o.databaseFlags = buildUnnamed3561(); |
| 1224 o.databaseReplicationEnabled = true; | 1224 o.databaseReplicationEnabled = true; |
| 1225 o.ipConfiguration = buildIpConfiguration(); | 1225 o.ipConfiguration = buildIpConfiguration(); |
| 1226 o.kind = "foo"; | 1226 o.kind = "foo"; |
| 1227 o.locationPreference = buildLocationPreference(); | 1227 o.locationPreference = buildLocationPreference(); |
| 1228 o.maintenanceWindow = buildMaintenanceWindow(); | 1228 o.maintenanceWindow = buildMaintenanceWindow(); |
| 1229 o.pricingPlan = "foo"; | 1229 o.pricingPlan = "foo"; |
| 1230 o.replicationType = "foo"; | 1230 o.replicationType = "foo"; |
| 1231 o.settingsVersion = "foo"; | 1231 o.settingsVersion = "foo"; |
| 1232 o.storageAutoResize = true; | 1232 o.storageAutoResize = true; |
| 1233 o.tier = "foo"; | 1233 o.tier = "foo"; |
| 1234 } | 1234 } |
| 1235 buildCounterSettings--; | 1235 buildCounterSettings--; |
| 1236 return o; | 1236 return o; |
| 1237 } | 1237 } |
| 1238 | 1238 |
| 1239 checkSettings(api.Settings o) { | 1239 checkSettings(api.Settings o) { |
| 1240 buildCounterSettings++; | 1240 buildCounterSettings++; |
| 1241 if (buildCounterSettings < 3) { | 1241 if (buildCounterSettings < 3) { |
| 1242 unittest.expect(o.activationPolicy, unittest.equals('foo')); | 1242 unittest.expect(o.activationPolicy, unittest.equals('foo')); |
| 1243 checkUnnamed3695(o.authorizedGaeApplications); | 1243 checkUnnamed3560(o.authorizedGaeApplications); |
| 1244 checkBackupConfiguration(o.backupConfiguration); | 1244 checkBackupConfiguration(o.backupConfiguration); |
| 1245 unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); | 1245 unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); |
| 1246 unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); | 1246 unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); |
| 1247 unittest.expect(o.dataDiskType, unittest.equals('foo')); | 1247 unittest.expect(o.dataDiskType, unittest.equals('foo')); |
| 1248 checkUnnamed3696(o.databaseFlags); | 1248 checkUnnamed3561(o.databaseFlags); |
| 1249 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); | 1249 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); |
| 1250 checkIpConfiguration(o.ipConfiguration); | 1250 checkIpConfiguration(o.ipConfiguration); |
| 1251 unittest.expect(o.kind, unittest.equals('foo')); | 1251 unittest.expect(o.kind, unittest.equals('foo')); |
| 1252 checkLocationPreference(o.locationPreference); | 1252 checkLocationPreference(o.locationPreference); |
| 1253 checkMaintenanceWindow(o.maintenanceWindow); | 1253 checkMaintenanceWindow(o.maintenanceWindow); |
| 1254 unittest.expect(o.pricingPlan, unittest.equals('foo')); | 1254 unittest.expect(o.pricingPlan, unittest.equals('foo')); |
| 1255 unittest.expect(o.replicationType, unittest.equals('foo')); | 1255 unittest.expect(o.replicationType, unittest.equals('foo')); |
| 1256 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 1256 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
| 1257 unittest.expect(o.storageAutoResize, unittest.isTrue); | 1257 unittest.expect(o.storageAutoResize, unittest.isTrue); |
| 1258 unittest.expect(o.tier, unittest.equals('foo')); | 1258 unittest.expect(o.tier, unittest.equals('foo')); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1372 buildCounterSslCertsInsertResponse++; | 1372 buildCounterSslCertsInsertResponse++; |
| 1373 if (buildCounterSslCertsInsertResponse < 3) { | 1373 if (buildCounterSslCertsInsertResponse < 3) { |
| 1374 checkSslCertDetail(o.clientCert); | 1374 checkSslCertDetail(o.clientCert); |
| 1375 unittest.expect(o.kind, unittest.equals('foo')); | 1375 unittest.expect(o.kind, unittest.equals('foo')); |
| 1376 checkOperation(o.operation); | 1376 checkOperation(o.operation); |
| 1377 checkSslCert(o.serverCaCert); | 1377 checkSslCert(o.serverCaCert); |
| 1378 } | 1378 } |
| 1379 buildCounterSslCertsInsertResponse--; | 1379 buildCounterSslCertsInsertResponse--; |
| 1380 } | 1380 } |
| 1381 | 1381 |
| 1382 buildUnnamed3697() { | 1382 buildUnnamed3562() { |
| 1383 var o = new core.List<api.SslCert>(); | 1383 var o = new core.List<api.SslCert>(); |
| 1384 o.add(buildSslCert()); | 1384 o.add(buildSslCert()); |
| 1385 o.add(buildSslCert()); | 1385 o.add(buildSslCert()); |
| 1386 return o; | 1386 return o; |
| 1387 } | 1387 } |
| 1388 | 1388 |
| 1389 checkUnnamed3697(core.List<api.SslCert> o) { | 1389 checkUnnamed3562(core.List<api.SslCert> o) { |
| 1390 unittest.expect(o, unittest.hasLength(2)); | 1390 unittest.expect(o, unittest.hasLength(2)); |
| 1391 checkSslCert(o[0]); | 1391 checkSslCert(o[0]); |
| 1392 checkSslCert(o[1]); | 1392 checkSslCert(o[1]); |
| 1393 } | 1393 } |
| 1394 | 1394 |
| 1395 core.int buildCounterSslCertsListResponse = 0; | 1395 core.int buildCounterSslCertsListResponse = 0; |
| 1396 buildSslCertsListResponse() { | 1396 buildSslCertsListResponse() { |
| 1397 var o = new api.SslCertsListResponse(); | 1397 var o = new api.SslCertsListResponse(); |
| 1398 buildCounterSslCertsListResponse++; | 1398 buildCounterSslCertsListResponse++; |
| 1399 if (buildCounterSslCertsListResponse < 3) { | 1399 if (buildCounterSslCertsListResponse < 3) { |
| 1400 o.items = buildUnnamed3697(); | 1400 o.items = buildUnnamed3562(); |
| 1401 o.kind = "foo"; | 1401 o.kind = "foo"; |
| 1402 } | 1402 } |
| 1403 buildCounterSslCertsListResponse--; | 1403 buildCounterSslCertsListResponse--; |
| 1404 return o; | 1404 return o; |
| 1405 } | 1405 } |
| 1406 | 1406 |
| 1407 checkSslCertsListResponse(api.SslCertsListResponse o) { | 1407 checkSslCertsListResponse(api.SslCertsListResponse o) { |
| 1408 buildCounterSslCertsListResponse++; | 1408 buildCounterSslCertsListResponse++; |
| 1409 if (buildCounterSslCertsListResponse < 3) { | 1409 if (buildCounterSslCertsListResponse < 3) { |
| 1410 checkUnnamed3697(o.items); | 1410 checkUnnamed3562(o.items); |
| 1411 unittest.expect(o.kind, unittest.equals('foo')); | 1411 unittest.expect(o.kind, unittest.equals('foo')); |
| 1412 } | 1412 } |
| 1413 buildCounterSslCertsListResponse--; | 1413 buildCounterSslCertsListResponse--; |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 buildUnnamed3698() { | 1416 buildUnnamed3563() { |
| 1417 var o = new core.List<core.String>(); | 1417 var o = new core.List<core.String>(); |
| 1418 o.add("foo"); | 1418 o.add("foo"); |
| 1419 o.add("foo"); | 1419 o.add("foo"); |
| 1420 return o; | 1420 return o; |
| 1421 } | 1421 } |
| 1422 | 1422 |
| 1423 checkUnnamed3698(core.List<core.String> o) { | 1423 checkUnnamed3563(core.List<core.String> o) { |
| 1424 unittest.expect(o, unittest.hasLength(2)); | 1424 unittest.expect(o, unittest.hasLength(2)); |
| 1425 unittest.expect(o[0], unittest.equals('foo')); | 1425 unittest.expect(o[0], unittest.equals('foo')); |
| 1426 unittest.expect(o[1], unittest.equals('foo')); | 1426 unittest.expect(o[1], unittest.equals('foo')); |
| 1427 } | 1427 } |
| 1428 | 1428 |
| 1429 core.int buildCounterTier = 0; | 1429 core.int buildCounterTier = 0; |
| 1430 buildTier() { | 1430 buildTier() { |
| 1431 var o = new api.Tier(); | 1431 var o = new api.Tier(); |
| 1432 buildCounterTier++; | 1432 buildCounterTier++; |
| 1433 if (buildCounterTier < 3) { | 1433 if (buildCounterTier < 3) { |
| 1434 o.DiskQuota = "foo"; | 1434 o.DiskQuota = "foo"; |
| 1435 o.RAM = "foo"; | 1435 o.RAM = "foo"; |
| 1436 o.kind = "foo"; | 1436 o.kind = "foo"; |
| 1437 o.region = buildUnnamed3698(); | 1437 o.region = buildUnnamed3563(); |
| 1438 o.tier = "foo"; | 1438 o.tier = "foo"; |
| 1439 } | 1439 } |
| 1440 buildCounterTier--; | 1440 buildCounterTier--; |
| 1441 return o; | 1441 return o; |
| 1442 } | 1442 } |
| 1443 | 1443 |
| 1444 checkTier(api.Tier o) { | 1444 checkTier(api.Tier o) { |
| 1445 buildCounterTier++; | 1445 buildCounterTier++; |
| 1446 if (buildCounterTier < 3) { | 1446 if (buildCounterTier < 3) { |
| 1447 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1447 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
| 1448 unittest.expect(o.RAM, unittest.equals('foo')); | 1448 unittest.expect(o.RAM, unittest.equals('foo')); |
| 1449 unittest.expect(o.kind, unittest.equals('foo')); | 1449 unittest.expect(o.kind, unittest.equals('foo')); |
| 1450 checkUnnamed3698(o.region); | 1450 checkUnnamed3563(o.region); |
| 1451 unittest.expect(o.tier, unittest.equals('foo')); | 1451 unittest.expect(o.tier, unittest.equals('foo')); |
| 1452 } | 1452 } |
| 1453 buildCounterTier--; | 1453 buildCounterTier--; |
| 1454 } | 1454 } |
| 1455 | 1455 |
| 1456 buildUnnamed3699() { | 1456 buildUnnamed3564() { |
| 1457 var o = new core.List<api.Tier>(); | 1457 var o = new core.List<api.Tier>(); |
| 1458 o.add(buildTier()); | 1458 o.add(buildTier()); |
| 1459 o.add(buildTier()); | 1459 o.add(buildTier()); |
| 1460 return o; | 1460 return o; |
| 1461 } | 1461 } |
| 1462 | 1462 |
| 1463 checkUnnamed3699(core.List<api.Tier> o) { | 1463 checkUnnamed3564(core.List<api.Tier> o) { |
| 1464 unittest.expect(o, unittest.hasLength(2)); | 1464 unittest.expect(o, unittest.hasLength(2)); |
| 1465 checkTier(o[0]); | 1465 checkTier(o[0]); |
| 1466 checkTier(o[1]); | 1466 checkTier(o[1]); |
| 1467 } | 1467 } |
| 1468 | 1468 |
| 1469 core.int buildCounterTiersListResponse = 0; | 1469 core.int buildCounterTiersListResponse = 0; |
| 1470 buildTiersListResponse() { | 1470 buildTiersListResponse() { |
| 1471 var o = new api.TiersListResponse(); | 1471 var o = new api.TiersListResponse(); |
| 1472 buildCounterTiersListResponse++; | 1472 buildCounterTiersListResponse++; |
| 1473 if (buildCounterTiersListResponse < 3) { | 1473 if (buildCounterTiersListResponse < 3) { |
| 1474 o.items = buildUnnamed3699(); | 1474 o.items = buildUnnamed3564(); |
| 1475 o.kind = "foo"; | 1475 o.kind = "foo"; |
| 1476 } | 1476 } |
| 1477 buildCounterTiersListResponse--; | 1477 buildCounterTiersListResponse--; |
| 1478 return o; | 1478 return o; |
| 1479 } | 1479 } |
| 1480 | 1480 |
| 1481 checkTiersListResponse(api.TiersListResponse o) { | 1481 checkTiersListResponse(api.TiersListResponse o) { |
| 1482 buildCounterTiersListResponse++; | 1482 buildCounterTiersListResponse++; |
| 1483 if (buildCounterTiersListResponse < 3) { | 1483 if (buildCounterTiersListResponse < 3) { |
| 1484 checkUnnamed3699(o.items); | 1484 checkUnnamed3564(o.items); |
| 1485 unittest.expect(o.kind, unittest.equals('foo')); | 1485 unittest.expect(o.kind, unittest.equals('foo')); |
| 1486 } | 1486 } |
| 1487 buildCounterTiersListResponse--; | 1487 buildCounterTiersListResponse--; |
| 1488 } | 1488 } |
| 1489 | 1489 |
| 1490 core.int buildCounterUser = 0; | 1490 core.int buildCounterUser = 0; |
| 1491 buildUser() { | 1491 buildUser() { |
| 1492 var o = new api.User(); | 1492 var o = new api.User(); |
| 1493 buildCounterUser++; | 1493 buildCounterUser++; |
| 1494 if (buildCounterUser < 3) { | 1494 if (buildCounterUser < 3) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1511 unittest.expect(o.host, unittest.equals('foo')); | 1511 unittest.expect(o.host, unittest.equals('foo')); |
| 1512 unittest.expect(o.instance, unittest.equals('foo')); | 1512 unittest.expect(o.instance, unittest.equals('foo')); |
| 1513 unittest.expect(o.kind, unittest.equals('foo')); | 1513 unittest.expect(o.kind, unittest.equals('foo')); |
| 1514 unittest.expect(o.name, unittest.equals('foo')); | 1514 unittest.expect(o.name, unittest.equals('foo')); |
| 1515 unittest.expect(o.password, unittest.equals('foo')); | 1515 unittest.expect(o.password, unittest.equals('foo')); |
| 1516 unittest.expect(o.project, unittest.equals('foo')); | 1516 unittest.expect(o.project, unittest.equals('foo')); |
| 1517 } | 1517 } |
| 1518 buildCounterUser--; | 1518 buildCounterUser--; |
| 1519 } | 1519 } |
| 1520 | 1520 |
| 1521 buildUnnamed3700() { | 1521 buildUnnamed3565() { |
| 1522 var o = new core.List<api.User>(); | 1522 var o = new core.List<api.User>(); |
| 1523 o.add(buildUser()); | 1523 o.add(buildUser()); |
| 1524 o.add(buildUser()); | 1524 o.add(buildUser()); |
| 1525 return o; | 1525 return o; |
| 1526 } | 1526 } |
| 1527 | 1527 |
| 1528 checkUnnamed3700(core.List<api.User> o) { | 1528 checkUnnamed3565(core.List<api.User> o) { |
| 1529 unittest.expect(o, unittest.hasLength(2)); | 1529 unittest.expect(o, unittest.hasLength(2)); |
| 1530 checkUser(o[0]); | 1530 checkUser(o[0]); |
| 1531 checkUser(o[1]); | 1531 checkUser(o[1]); |
| 1532 } | 1532 } |
| 1533 | 1533 |
| 1534 core.int buildCounterUsersListResponse = 0; | 1534 core.int buildCounterUsersListResponse = 0; |
| 1535 buildUsersListResponse() { | 1535 buildUsersListResponse() { |
| 1536 var o = new api.UsersListResponse(); | 1536 var o = new api.UsersListResponse(); |
| 1537 buildCounterUsersListResponse++; | 1537 buildCounterUsersListResponse++; |
| 1538 if (buildCounterUsersListResponse < 3) { | 1538 if (buildCounterUsersListResponse < 3) { |
| 1539 o.items = buildUnnamed3700(); | 1539 o.items = buildUnnamed3565(); |
| 1540 o.kind = "foo"; | 1540 o.kind = "foo"; |
| 1541 o.nextPageToken = "foo"; | 1541 o.nextPageToken = "foo"; |
| 1542 } | 1542 } |
| 1543 buildCounterUsersListResponse--; | 1543 buildCounterUsersListResponse--; |
| 1544 return o; | 1544 return o; |
| 1545 } | 1545 } |
| 1546 | 1546 |
| 1547 checkUsersListResponse(api.UsersListResponse o) { | 1547 checkUsersListResponse(api.UsersListResponse o) { |
| 1548 buildCounterUsersListResponse++; | 1548 buildCounterUsersListResponse++; |
| 1549 if (buildCounterUsersListResponse < 3) { | 1549 if (buildCounterUsersListResponse < 3) { |
| 1550 checkUnnamed3700(o.items); | 1550 checkUnnamed3565(o.items); |
| 1551 unittest.expect(o.kind, unittest.equals('foo')); | 1551 unittest.expect(o.kind, unittest.equals('foo')); |
| 1552 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1552 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1553 } | 1553 } |
| 1554 buildCounterUsersListResponse--; | 1554 buildCounterUsersListResponse--; |
| 1555 } | 1555 } |
| 1556 | 1556 |
| 1557 | 1557 |
| 1558 main() { | 1558 main() { |
| 1559 unittest.group("obj-schema-AclEntry", () { | 1559 unittest.group("obj-schema-AclEntry", () { |
| 1560 unittest.test("to-json--from-json", () { | 1560 unittest.test("to-json--from-json", () { |
| (...skipping 2818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4379 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { | 4379 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { |
| 4380 checkOperation(response); | 4380 checkOperation(response); |
| 4381 }))); | 4381 }))); |
| 4382 }); | 4382 }); |
| 4383 | 4383 |
| 4384 }); | 4384 }); |
| 4385 | 4385 |
| 4386 | 4386 |
| 4387 } | 4387 } |
| 4388 | 4388 |
| OLD | NEW |