| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 unittest.expect(o.kind, unittest.equals('foo')); | 135 unittest.expect(o.kind, unittest.equals('foo')); |
| 136 unittest.expect(o.selfLink, unittest.equals('foo')); | 136 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 137 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 137 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 138 unittest.expect(o.status, unittest.equals('foo')); | 138 unittest.expect(o.status, unittest.equals('foo')); |
| 139 unittest.expect(o.type, unittest.equals('foo')); | 139 unittest.expect(o.type, unittest.equals('foo')); |
| 140 unittest.expect(o.windowStartTime, unittest.equals(core.DateTime.parse("2002
-02-27T14:01:02"))); | 140 unittest.expect(o.windowStartTime, unittest.equals(core.DateTime.parse("2002
-02-27T14:01:02"))); |
| 141 } | 141 } |
| 142 buildCounterBackupRun--; | 142 buildCounterBackupRun--; |
| 143 } | 143 } |
| 144 | 144 |
| 145 buildUnnamed3885() { | 145 buildUnnamed3596() { |
| 146 var o = new core.List<api.BackupRun>(); | 146 var o = new core.List<api.BackupRun>(); |
| 147 o.add(buildBackupRun()); | 147 o.add(buildBackupRun()); |
| 148 o.add(buildBackupRun()); | 148 o.add(buildBackupRun()); |
| 149 return o; | 149 return o; |
| 150 } | 150 } |
| 151 | 151 |
| 152 checkUnnamed3885(core.List<api.BackupRun> o) { | 152 checkUnnamed3596(core.List<api.BackupRun> o) { |
| 153 unittest.expect(o, unittest.hasLength(2)); | 153 unittest.expect(o, unittest.hasLength(2)); |
| 154 checkBackupRun(o[0]); | 154 checkBackupRun(o[0]); |
| 155 checkBackupRun(o[1]); | 155 checkBackupRun(o[1]); |
| 156 } | 156 } |
| 157 | 157 |
| 158 core.int buildCounterBackupRunsListResponse = 0; | 158 core.int buildCounterBackupRunsListResponse = 0; |
| 159 buildBackupRunsListResponse() { | 159 buildBackupRunsListResponse() { |
| 160 var o = new api.BackupRunsListResponse(); | 160 var o = new api.BackupRunsListResponse(); |
| 161 buildCounterBackupRunsListResponse++; | 161 buildCounterBackupRunsListResponse++; |
| 162 if (buildCounterBackupRunsListResponse < 3) { | 162 if (buildCounterBackupRunsListResponse < 3) { |
| 163 o.items = buildUnnamed3885(); | 163 o.items = buildUnnamed3596(); |
| 164 o.kind = "foo"; | 164 o.kind = "foo"; |
| 165 o.nextPageToken = "foo"; | 165 o.nextPageToken = "foo"; |
| 166 } | 166 } |
| 167 buildCounterBackupRunsListResponse--; | 167 buildCounterBackupRunsListResponse--; |
| 168 return o; | 168 return o; |
| 169 } | 169 } |
| 170 | 170 |
| 171 checkBackupRunsListResponse(api.BackupRunsListResponse o) { | 171 checkBackupRunsListResponse(api.BackupRunsListResponse o) { |
| 172 buildCounterBackupRunsListResponse++; | 172 buildCounterBackupRunsListResponse++; |
| 173 if (buildCounterBackupRunsListResponse < 3) { | 173 if (buildCounterBackupRunsListResponse < 3) { |
| 174 checkUnnamed3885(o.items); | 174 checkUnnamed3596(o.items); |
| 175 unittest.expect(o.kind, unittest.equals('foo')); | 175 unittest.expect(o.kind, unittest.equals('foo')); |
| 176 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 176 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 177 } | 177 } |
| 178 buildCounterBackupRunsListResponse--; | 178 buildCounterBackupRunsListResponse--; |
| 179 } | 179 } |
| 180 | 180 |
| 181 core.int buildCounterBinLogCoordinates = 0; | 181 core.int buildCounterBinLogCoordinates = 0; |
| 182 buildBinLogCoordinates() { | 182 buildBinLogCoordinates() { |
| 183 var o = new api.BinLogCoordinates(); | 183 var o = new api.BinLogCoordinates(); |
| 184 buildCounterBinLogCoordinates++; | 184 buildCounterBinLogCoordinates++; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 | 292 |
| 293 checkDatabaseInstanceFailoverReplica(api.DatabaseInstanceFailoverReplica o) { | 293 checkDatabaseInstanceFailoverReplica(api.DatabaseInstanceFailoverReplica o) { |
| 294 buildCounterDatabaseInstanceFailoverReplica++; | 294 buildCounterDatabaseInstanceFailoverReplica++; |
| 295 if (buildCounterDatabaseInstanceFailoverReplica < 3) { | 295 if (buildCounterDatabaseInstanceFailoverReplica < 3) { |
| 296 unittest.expect(o.available, unittest.isTrue); | 296 unittest.expect(o.available, unittest.isTrue); |
| 297 unittest.expect(o.name, unittest.equals('foo')); | 297 unittest.expect(o.name, unittest.equals('foo')); |
| 298 } | 298 } |
| 299 buildCounterDatabaseInstanceFailoverReplica--; | 299 buildCounterDatabaseInstanceFailoverReplica--; |
| 300 } | 300 } |
| 301 | 301 |
| 302 buildUnnamed3886() { | 302 buildUnnamed3597() { |
| 303 var o = new core.List<api.IpMapping>(); | 303 var o = new core.List<api.IpMapping>(); |
| 304 o.add(buildIpMapping()); | 304 o.add(buildIpMapping()); |
| 305 o.add(buildIpMapping()); | 305 o.add(buildIpMapping()); |
| 306 return o; | 306 return o; |
| 307 } | 307 } |
| 308 | 308 |
| 309 checkUnnamed3886(core.List<api.IpMapping> o) { | 309 checkUnnamed3597(core.List<api.IpMapping> o) { |
| 310 unittest.expect(o, unittest.hasLength(2)); | 310 unittest.expect(o, unittest.hasLength(2)); |
| 311 checkIpMapping(o[0]); | 311 checkIpMapping(o[0]); |
| 312 checkIpMapping(o[1]); | 312 checkIpMapping(o[1]); |
| 313 } | 313 } |
| 314 | 314 |
| 315 buildUnnamed3887() { | 315 buildUnnamed3598() { |
| 316 var o = new core.List<core.String>(); | 316 var o = new core.List<core.String>(); |
| 317 o.add("foo"); | 317 o.add("foo"); |
| 318 o.add("foo"); | 318 o.add("foo"); |
| 319 return o; | 319 return o; |
| 320 } | 320 } |
| 321 | 321 |
| 322 checkUnnamed3887(core.List<core.String> o) { | 322 checkUnnamed3598(core.List<core.String> o) { |
| 323 unittest.expect(o, unittest.hasLength(2)); | 323 unittest.expect(o, unittest.hasLength(2)); |
| 324 unittest.expect(o[0], unittest.equals('foo')); | 324 unittest.expect(o[0], unittest.equals('foo')); |
| 325 unittest.expect(o[1], unittest.equals('foo')); | 325 unittest.expect(o[1], unittest.equals('foo')); |
| 326 } | 326 } |
| 327 | 327 |
| 328 buildUnnamed3888() { | 328 buildUnnamed3599() { |
| 329 var o = new core.List<core.String>(); | 329 var o = new core.List<core.String>(); |
| 330 o.add("foo"); | 330 o.add("foo"); |
| 331 o.add("foo"); | 331 o.add("foo"); |
| 332 return o; | 332 return o; |
| 333 } | 333 } |
| 334 | 334 |
| 335 checkUnnamed3888(core.List<core.String> o) { | 335 checkUnnamed3599(core.List<core.String> o) { |
| 336 unittest.expect(o, unittest.hasLength(2)); | 336 unittest.expect(o, unittest.hasLength(2)); |
| 337 unittest.expect(o[0], unittest.equals('foo')); | 337 unittest.expect(o[0], unittest.equals('foo')); |
| 338 unittest.expect(o[1], unittest.equals('foo')); | 338 unittest.expect(o[1], unittest.equals('foo')); |
| 339 } | 339 } |
| 340 | 340 |
| 341 core.int buildCounterDatabaseInstance = 0; | 341 core.int buildCounterDatabaseInstance = 0; |
| 342 buildDatabaseInstance() { | 342 buildDatabaseInstance() { |
| 343 var o = new api.DatabaseInstance(); | 343 var o = new api.DatabaseInstance(); |
| 344 buildCounterDatabaseInstance++; | 344 buildCounterDatabaseInstance++; |
| 345 if (buildCounterDatabaseInstance < 3) { | 345 if (buildCounterDatabaseInstance < 3) { |
| 346 o.backendType = "foo"; | 346 o.backendType = "foo"; |
| 347 o.connectionName = "foo"; | 347 o.connectionName = "foo"; |
| 348 o.currentDiskSize = "foo"; | 348 o.currentDiskSize = "foo"; |
| 349 o.databaseVersion = "foo"; | 349 o.databaseVersion = "foo"; |
| 350 o.etag = "foo"; | 350 o.etag = "foo"; |
| 351 o.failoverReplica = buildDatabaseInstanceFailoverReplica(); | 351 o.failoverReplica = buildDatabaseInstanceFailoverReplica(); |
| 352 o.instanceType = "foo"; | 352 o.instanceType = "foo"; |
| 353 o.ipAddresses = buildUnnamed3886(); | 353 o.ipAddresses = buildUnnamed3597(); |
| 354 o.ipv6Address = "foo"; | 354 o.ipv6Address = "foo"; |
| 355 o.kind = "foo"; | 355 o.kind = "foo"; |
| 356 o.masterInstanceName = "foo"; | 356 o.masterInstanceName = "foo"; |
| 357 o.maxDiskSize = "foo"; | 357 o.maxDiskSize = "foo"; |
| 358 o.name = "foo"; | 358 o.name = "foo"; |
| 359 o.onPremisesConfiguration = buildOnPremisesConfiguration(); | 359 o.onPremisesConfiguration = buildOnPremisesConfiguration(); |
| 360 o.project = "foo"; | 360 o.project = "foo"; |
| 361 o.region = "foo"; | 361 o.region = "foo"; |
| 362 o.replicaConfiguration = buildReplicaConfiguration(); | 362 o.replicaConfiguration = buildReplicaConfiguration(); |
| 363 o.replicaNames = buildUnnamed3887(); | 363 o.replicaNames = buildUnnamed3598(); |
| 364 o.selfLink = "foo"; | 364 o.selfLink = "foo"; |
| 365 o.serverCaCert = buildSslCert(); | 365 o.serverCaCert = buildSslCert(); |
| 366 o.serviceAccountEmailAddress = "foo"; | 366 o.serviceAccountEmailAddress = "foo"; |
| 367 o.settings = buildSettings(); | 367 o.settings = buildSettings(); |
| 368 o.state = "foo"; | 368 o.state = "foo"; |
| 369 o.suspensionReason = buildUnnamed3888(); | 369 o.suspensionReason = buildUnnamed3599(); |
| 370 } | 370 } |
| 371 buildCounterDatabaseInstance--; | 371 buildCounterDatabaseInstance--; |
| 372 return o; | 372 return o; |
| 373 } | 373 } |
| 374 | 374 |
| 375 checkDatabaseInstance(api.DatabaseInstance o) { | 375 checkDatabaseInstance(api.DatabaseInstance o) { |
| 376 buildCounterDatabaseInstance++; | 376 buildCounterDatabaseInstance++; |
| 377 if (buildCounterDatabaseInstance < 3) { | 377 if (buildCounterDatabaseInstance < 3) { |
| 378 unittest.expect(o.backendType, unittest.equals('foo')); | 378 unittest.expect(o.backendType, unittest.equals('foo')); |
| 379 unittest.expect(o.connectionName, unittest.equals('foo')); | 379 unittest.expect(o.connectionName, unittest.equals('foo')); |
| 380 unittest.expect(o.currentDiskSize, unittest.equals('foo')); | 380 unittest.expect(o.currentDiskSize, unittest.equals('foo')); |
| 381 unittest.expect(o.databaseVersion, unittest.equals('foo')); | 381 unittest.expect(o.databaseVersion, unittest.equals('foo')); |
| 382 unittest.expect(o.etag, unittest.equals('foo')); | 382 unittest.expect(o.etag, unittest.equals('foo')); |
| 383 checkDatabaseInstanceFailoverReplica(o.failoverReplica); | 383 checkDatabaseInstanceFailoverReplica(o.failoverReplica); |
| 384 unittest.expect(o.instanceType, unittest.equals('foo')); | 384 unittest.expect(o.instanceType, unittest.equals('foo')); |
| 385 checkUnnamed3886(o.ipAddresses); | 385 checkUnnamed3597(o.ipAddresses); |
| 386 unittest.expect(o.ipv6Address, unittest.equals('foo')); | 386 unittest.expect(o.ipv6Address, unittest.equals('foo')); |
| 387 unittest.expect(o.kind, unittest.equals('foo')); | 387 unittest.expect(o.kind, unittest.equals('foo')); |
| 388 unittest.expect(o.masterInstanceName, unittest.equals('foo')); | 388 unittest.expect(o.masterInstanceName, unittest.equals('foo')); |
| 389 unittest.expect(o.maxDiskSize, unittest.equals('foo')); | 389 unittest.expect(o.maxDiskSize, unittest.equals('foo')); |
| 390 unittest.expect(o.name, unittest.equals('foo')); | 390 unittest.expect(o.name, unittest.equals('foo')); |
| 391 checkOnPremisesConfiguration(o.onPremisesConfiguration); | 391 checkOnPremisesConfiguration(o.onPremisesConfiguration); |
| 392 unittest.expect(o.project, unittest.equals('foo')); | 392 unittest.expect(o.project, unittest.equals('foo')); |
| 393 unittest.expect(o.region, unittest.equals('foo')); | 393 unittest.expect(o.region, unittest.equals('foo')); |
| 394 checkReplicaConfiguration(o.replicaConfiguration); | 394 checkReplicaConfiguration(o.replicaConfiguration); |
| 395 checkUnnamed3887(o.replicaNames); | 395 checkUnnamed3598(o.replicaNames); |
| 396 unittest.expect(o.selfLink, unittest.equals('foo')); | 396 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 397 checkSslCert(o.serverCaCert); | 397 checkSslCert(o.serverCaCert); |
| 398 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); | 398 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); |
| 399 checkSettings(o.settings); | 399 checkSettings(o.settings); |
| 400 unittest.expect(o.state, unittest.equals('foo')); | 400 unittest.expect(o.state, unittest.equals('foo')); |
| 401 checkUnnamed3888(o.suspensionReason); | 401 checkUnnamed3599(o.suspensionReason); |
| 402 } | 402 } |
| 403 buildCounterDatabaseInstance--; | 403 buildCounterDatabaseInstance--; |
| 404 } | 404 } |
| 405 | 405 |
| 406 buildUnnamed3889() { | 406 buildUnnamed3600() { |
| 407 var o = new core.List<api.Database>(); | 407 var o = new core.List<api.Database>(); |
| 408 o.add(buildDatabase()); | 408 o.add(buildDatabase()); |
| 409 o.add(buildDatabase()); | 409 o.add(buildDatabase()); |
| 410 return o; | 410 return o; |
| 411 } | 411 } |
| 412 | 412 |
| 413 checkUnnamed3889(core.List<api.Database> o) { | 413 checkUnnamed3600(core.List<api.Database> o) { |
| 414 unittest.expect(o, unittest.hasLength(2)); | 414 unittest.expect(o, unittest.hasLength(2)); |
| 415 checkDatabase(o[0]); | 415 checkDatabase(o[0]); |
| 416 checkDatabase(o[1]); | 416 checkDatabase(o[1]); |
| 417 } | 417 } |
| 418 | 418 |
| 419 core.int buildCounterDatabasesListResponse = 0; | 419 core.int buildCounterDatabasesListResponse = 0; |
| 420 buildDatabasesListResponse() { | 420 buildDatabasesListResponse() { |
| 421 var o = new api.DatabasesListResponse(); | 421 var o = new api.DatabasesListResponse(); |
| 422 buildCounterDatabasesListResponse++; | 422 buildCounterDatabasesListResponse++; |
| 423 if (buildCounterDatabasesListResponse < 3) { | 423 if (buildCounterDatabasesListResponse < 3) { |
| 424 o.items = buildUnnamed3889(); | 424 o.items = buildUnnamed3600(); |
| 425 o.kind = "foo"; | 425 o.kind = "foo"; |
| 426 } | 426 } |
| 427 buildCounterDatabasesListResponse--; | 427 buildCounterDatabasesListResponse--; |
| 428 return o; | 428 return o; |
| 429 } | 429 } |
| 430 | 430 |
| 431 checkDatabasesListResponse(api.DatabasesListResponse o) { | 431 checkDatabasesListResponse(api.DatabasesListResponse o) { |
| 432 buildCounterDatabasesListResponse++; | 432 buildCounterDatabasesListResponse++; |
| 433 if (buildCounterDatabasesListResponse < 3) { | 433 if (buildCounterDatabasesListResponse < 3) { |
| 434 checkUnnamed3889(o.items); | 434 checkUnnamed3600(o.items); |
| 435 unittest.expect(o.kind, unittest.equals('foo')); | 435 unittest.expect(o.kind, unittest.equals('foo')); |
| 436 } | 436 } |
| 437 buildCounterDatabasesListResponse--; | 437 buildCounterDatabasesListResponse--; |
| 438 } | 438 } |
| 439 | 439 |
| 440 core.int buildCounterExportContextCsvExportOptions = 0; | 440 core.int buildCounterExportContextCsvExportOptions = 0; |
| 441 buildExportContextCsvExportOptions() { | 441 buildExportContextCsvExportOptions() { |
| 442 var o = new api.ExportContextCsvExportOptions(); | 442 var o = new api.ExportContextCsvExportOptions(); |
| 443 buildCounterExportContextCsvExportOptions++; | 443 buildCounterExportContextCsvExportOptions++; |
| 444 if (buildCounterExportContextCsvExportOptions < 3) { | 444 if (buildCounterExportContextCsvExportOptions < 3) { |
| 445 o.selectQuery = "foo"; | 445 o.selectQuery = "foo"; |
| 446 } | 446 } |
| 447 buildCounterExportContextCsvExportOptions--; | 447 buildCounterExportContextCsvExportOptions--; |
| 448 return o; | 448 return o; |
| 449 } | 449 } |
| 450 | 450 |
| 451 checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { | 451 checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { |
| 452 buildCounterExportContextCsvExportOptions++; | 452 buildCounterExportContextCsvExportOptions++; |
| 453 if (buildCounterExportContextCsvExportOptions < 3) { | 453 if (buildCounterExportContextCsvExportOptions < 3) { |
| 454 unittest.expect(o.selectQuery, unittest.equals('foo')); | 454 unittest.expect(o.selectQuery, unittest.equals('foo')); |
| 455 } | 455 } |
| 456 buildCounterExportContextCsvExportOptions--; | 456 buildCounterExportContextCsvExportOptions--; |
| 457 } | 457 } |
| 458 | 458 |
| 459 buildUnnamed3890() { | 459 buildUnnamed3601() { |
| 460 var o = new core.List<core.String>(); | 460 var o = new core.List<core.String>(); |
| 461 o.add("foo"); | 461 o.add("foo"); |
| 462 o.add("foo"); | 462 o.add("foo"); |
| 463 return o; | 463 return o; |
| 464 } | 464 } |
| 465 | 465 |
| 466 checkUnnamed3890(core.List<core.String> o) { | 466 checkUnnamed3601(core.List<core.String> o) { |
| 467 unittest.expect(o, unittest.hasLength(2)); | 467 unittest.expect(o, unittest.hasLength(2)); |
| 468 unittest.expect(o[0], unittest.equals('foo')); | 468 unittest.expect(o[0], unittest.equals('foo')); |
| 469 unittest.expect(o[1], unittest.equals('foo')); | 469 unittest.expect(o[1], unittest.equals('foo')); |
| 470 } | 470 } |
| 471 | 471 |
| 472 buildUnnamed3891() { | 472 buildUnnamed3602() { |
| 473 var o = new core.List<core.String>(); | 473 var o = new core.List<core.String>(); |
| 474 o.add("foo"); | 474 o.add("foo"); |
| 475 o.add("foo"); | 475 o.add("foo"); |
| 476 return o; | 476 return o; |
| 477 } | 477 } |
| 478 | 478 |
| 479 checkUnnamed3891(core.List<core.String> o) { | 479 checkUnnamed3602(core.List<core.String> o) { |
| 480 unittest.expect(o, unittest.hasLength(2)); | 480 unittest.expect(o, unittest.hasLength(2)); |
| 481 unittest.expect(o[0], unittest.equals('foo')); | 481 unittest.expect(o[0], unittest.equals('foo')); |
| 482 unittest.expect(o[1], unittest.equals('foo')); | 482 unittest.expect(o[1], unittest.equals('foo')); |
| 483 } | 483 } |
| 484 | 484 |
| 485 core.int buildCounterExportContextSqlExportOptions = 0; | 485 core.int buildCounterExportContextSqlExportOptions = 0; |
| 486 buildExportContextSqlExportOptions() { | 486 buildExportContextSqlExportOptions() { |
| 487 var o = new api.ExportContextSqlExportOptions(); | 487 var o = new api.ExportContextSqlExportOptions(); |
| 488 buildCounterExportContextSqlExportOptions++; | 488 buildCounterExportContextSqlExportOptions++; |
| 489 if (buildCounterExportContextSqlExportOptions < 3) { | 489 if (buildCounterExportContextSqlExportOptions < 3) { |
| 490 o.schemaOnly = true; | 490 o.schemaOnly = true; |
| 491 o.tables = buildUnnamed3891(); | 491 o.tables = buildUnnamed3602(); |
| 492 } | 492 } |
| 493 buildCounterExportContextSqlExportOptions--; | 493 buildCounterExportContextSqlExportOptions--; |
| 494 return o; | 494 return o; |
| 495 } | 495 } |
| 496 | 496 |
| 497 checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) { | 497 checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) { |
| 498 buildCounterExportContextSqlExportOptions++; | 498 buildCounterExportContextSqlExportOptions++; |
| 499 if (buildCounterExportContextSqlExportOptions < 3) { | 499 if (buildCounterExportContextSqlExportOptions < 3) { |
| 500 unittest.expect(o.schemaOnly, unittest.isTrue); | 500 unittest.expect(o.schemaOnly, unittest.isTrue); |
| 501 checkUnnamed3891(o.tables); | 501 checkUnnamed3602(o.tables); |
| 502 } | 502 } |
| 503 buildCounterExportContextSqlExportOptions--; | 503 buildCounterExportContextSqlExportOptions--; |
| 504 } | 504 } |
| 505 | 505 |
| 506 core.int buildCounterExportContext = 0; | 506 core.int buildCounterExportContext = 0; |
| 507 buildExportContext() { | 507 buildExportContext() { |
| 508 var o = new api.ExportContext(); | 508 var o = new api.ExportContext(); |
| 509 buildCounterExportContext++; | 509 buildCounterExportContext++; |
| 510 if (buildCounterExportContext < 3) { | 510 if (buildCounterExportContext < 3) { |
| 511 o.csvExportOptions = buildExportContextCsvExportOptions(); | 511 o.csvExportOptions = buildExportContextCsvExportOptions(); |
| 512 o.databases = buildUnnamed3890(); | 512 o.databases = buildUnnamed3601(); |
| 513 o.fileType = "foo"; | 513 o.fileType = "foo"; |
| 514 o.kind = "foo"; | 514 o.kind = "foo"; |
| 515 o.sqlExportOptions = buildExportContextSqlExportOptions(); | 515 o.sqlExportOptions = buildExportContextSqlExportOptions(); |
| 516 o.uri = "foo"; | 516 o.uri = "foo"; |
| 517 } | 517 } |
| 518 buildCounterExportContext--; | 518 buildCounterExportContext--; |
| 519 return o; | 519 return o; |
| 520 } | 520 } |
| 521 | 521 |
| 522 checkExportContext(api.ExportContext o) { | 522 checkExportContext(api.ExportContext o) { |
| 523 buildCounterExportContext++; | 523 buildCounterExportContext++; |
| 524 if (buildCounterExportContext < 3) { | 524 if (buildCounterExportContext < 3) { |
| 525 checkExportContextCsvExportOptions(o.csvExportOptions); | 525 checkExportContextCsvExportOptions(o.csvExportOptions); |
| 526 checkUnnamed3890(o.databases); | 526 checkUnnamed3601(o.databases); |
| 527 unittest.expect(o.fileType, unittest.equals('foo')); | 527 unittest.expect(o.fileType, unittest.equals('foo')); |
| 528 unittest.expect(o.kind, unittest.equals('foo')); | 528 unittest.expect(o.kind, unittest.equals('foo')); |
| 529 checkExportContextSqlExportOptions(o.sqlExportOptions); | 529 checkExportContextSqlExportOptions(o.sqlExportOptions); |
| 530 unittest.expect(o.uri, unittest.equals('foo')); | 530 unittest.expect(o.uri, unittest.equals('foo')); |
| 531 } | 531 } |
| 532 buildCounterExportContext--; | 532 buildCounterExportContext--; |
| 533 } | 533 } |
| 534 | 534 |
| 535 core.int buildCounterFailoverContext = 0; | 535 core.int buildCounterFailoverContext = 0; |
| 536 buildFailoverContext() { | 536 buildFailoverContext() { |
| 537 var o = new api.FailoverContext(); | 537 var o = new api.FailoverContext(); |
| 538 buildCounterFailoverContext++; | 538 buildCounterFailoverContext++; |
| 539 if (buildCounterFailoverContext < 3) { | 539 if (buildCounterFailoverContext < 3) { |
| 540 o.kind = "foo"; | 540 o.kind = "foo"; |
| 541 o.settingsVersion = "foo"; | 541 o.settingsVersion = "foo"; |
| 542 } | 542 } |
| 543 buildCounterFailoverContext--; | 543 buildCounterFailoverContext--; |
| 544 return o; | 544 return o; |
| 545 } | 545 } |
| 546 | 546 |
| 547 checkFailoverContext(api.FailoverContext o) { | 547 checkFailoverContext(api.FailoverContext o) { |
| 548 buildCounterFailoverContext++; | 548 buildCounterFailoverContext++; |
| 549 if (buildCounterFailoverContext < 3) { | 549 if (buildCounterFailoverContext < 3) { |
| 550 unittest.expect(o.kind, unittest.equals('foo')); | 550 unittest.expect(o.kind, unittest.equals('foo')); |
| 551 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 551 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
| 552 } | 552 } |
| 553 buildCounterFailoverContext--; | 553 buildCounterFailoverContext--; |
| 554 } | 554 } |
| 555 | 555 |
| 556 buildUnnamed3892() { | 556 buildUnnamed3603() { |
| 557 var o = new core.List<core.String>(); | 557 var o = new core.List<core.String>(); |
| 558 o.add("foo"); | 558 o.add("foo"); |
| 559 o.add("foo"); | 559 o.add("foo"); |
| 560 return o; | 560 return o; |
| 561 } | 561 } |
| 562 | 562 |
| 563 checkUnnamed3892(core.List<core.String> o) { | 563 checkUnnamed3603(core.List<core.String> o) { |
| 564 unittest.expect(o, unittest.hasLength(2)); | 564 unittest.expect(o, unittest.hasLength(2)); |
| 565 unittest.expect(o[0], unittest.equals('foo')); | 565 unittest.expect(o[0], unittest.equals('foo')); |
| 566 unittest.expect(o[1], unittest.equals('foo')); | 566 unittest.expect(o[1], unittest.equals('foo')); |
| 567 } | 567 } |
| 568 | 568 |
| 569 buildUnnamed3893() { | 569 buildUnnamed3604() { |
| 570 var o = new core.List<core.String>(); | 570 var o = new core.List<core.String>(); |
| 571 o.add("foo"); | 571 o.add("foo"); |
| 572 o.add("foo"); | 572 o.add("foo"); |
| 573 return o; | 573 return o; |
| 574 } | 574 } |
| 575 | 575 |
| 576 checkUnnamed3893(core.List<core.String> o) { | 576 checkUnnamed3604(core.List<core.String> o) { |
| 577 unittest.expect(o, unittest.hasLength(2)); | 577 unittest.expect(o, unittest.hasLength(2)); |
| 578 unittest.expect(o[0], unittest.equals('foo')); | 578 unittest.expect(o[0], unittest.equals('foo')); |
| 579 unittest.expect(o[1], unittest.equals('foo')); | 579 unittest.expect(o[1], unittest.equals('foo')); |
| 580 } | 580 } |
| 581 | 581 |
| 582 core.int buildCounterFlag = 0; | 582 core.int buildCounterFlag = 0; |
| 583 buildFlag() { | 583 buildFlag() { |
| 584 var o = new api.Flag(); | 584 var o = new api.Flag(); |
| 585 buildCounterFlag++; | 585 buildCounterFlag++; |
| 586 if (buildCounterFlag < 3) { | 586 if (buildCounterFlag < 3) { |
| 587 o.allowedStringValues = buildUnnamed3892(); | 587 o.allowedStringValues = buildUnnamed3603(); |
| 588 o.appliesTo = buildUnnamed3893(); | 588 o.appliesTo = buildUnnamed3604(); |
| 589 o.kind = "foo"; | 589 o.kind = "foo"; |
| 590 o.maxValue = "foo"; | 590 o.maxValue = "foo"; |
| 591 o.minValue = "foo"; | 591 o.minValue = "foo"; |
| 592 o.name = "foo"; | 592 o.name = "foo"; |
| 593 o.requiresRestart = true; | 593 o.requiresRestart = true; |
| 594 o.type = "foo"; | 594 o.type = "foo"; |
| 595 } | 595 } |
| 596 buildCounterFlag--; | 596 buildCounterFlag--; |
| 597 return o; | 597 return o; |
| 598 } | 598 } |
| 599 | 599 |
| 600 checkFlag(api.Flag o) { | 600 checkFlag(api.Flag o) { |
| 601 buildCounterFlag++; | 601 buildCounterFlag++; |
| 602 if (buildCounterFlag < 3) { | 602 if (buildCounterFlag < 3) { |
| 603 checkUnnamed3892(o.allowedStringValues); | 603 checkUnnamed3603(o.allowedStringValues); |
| 604 checkUnnamed3893(o.appliesTo); | 604 checkUnnamed3604(o.appliesTo); |
| 605 unittest.expect(o.kind, unittest.equals('foo')); | 605 unittest.expect(o.kind, unittest.equals('foo')); |
| 606 unittest.expect(o.maxValue, unittest.equals('foo')); | 606 unittest.expect(o.maxValue, unittest.equals('foo')); |
| 607 unittest.expect(o.minValue, unittest.equals('foo')); | 607 unittest.expect(o.minValue, unittest.equals('foo')); |
| 608 unittest.expect(o.name, unittest.equals('foo')); | 608 unittest.expect(o.name, unittest.equals('foo')); |
| 609 unittest.expect(o.requiresRestart, unittest.isTrue); | 609 unittest.expect(o.requiresRestart, unittest.isTrue); |
| 610 unittest.expect(o.type, unittest.equals('foo')); | 610 unittest.expect(o.type, unittest.equals('foo')); |
| 611 } | 611 } |
| 612 buildCounterFlag--; | 612 buildCounterFlag--; |
| 613 } | 613 } |
| 614 | 614 |
| 615 buildUnnamed3894() { | 615 buildUnnamed3605() { |
| 616 var o = new core.List<api.Flag>(); | 616 var o = new core.List<api.Flag>(); |
| 617 o.add(buildFlag()); | 617 o.add(buildFlag()); |
| 618 o.add(buildFlag()); | 618 o.add(buildFlag()); |
| 619 return o; | 619 return o; |
| 620 } | 620 } |
| 621 | 621 |
| 622 checkUnnamed3894(core.List<api.Flag> o) { | 622 checkUnnamed3605(core.List<api.Flag> o) { |
| 623 unittest.expect(o, unittest.hasLength(2)); | 623 unittest.expect(o, unittest.hasLength(2)); |
| 624 checkFlag(o[0]); | 624 checkFlag(o[0]); |
| 625 checkFlag(o[1]); | 625 checkFlag(o[1]); |
| 626 } | 626 } |
| 627 | 627 |
| 628 core.int buildCounterFlagsListResponse = 0; | 628 core.int buildCounterFlagsListResponse = 0; |
| 629 buildFlagsListResponse() { | 629 buildFlagsListResponse() { |
| 630 var o = new api.FlagsListResponse(); | 630 var o = new api.FlagsListResponse(); |
| 631 buildCounterFlagsListResponse++; | 631 buildCounterFlagsListResponse++; |
| 632 if (buildCounterFlagsListResponse < 3) { | 632 if (buildCounterFlagsListResponse < 3) { |
| 633 o.items = buildUnnamed3894(); | 633 o.items = buildUnnamed3605(); |
| 634 o.kind = "foo"; | 634 o.kind = "foo"; |
| 635 } | 635 } |
| 636 buildCounterFlagsListResponse--; | 636 buildCounterFlagsListResponse--; |
| 637 return o; | 637 return o; |
| 638 } | 638 } |
| 639 | 639 |
| 640 checkFlagsListResponse(api.FlagsListResponse o) { | 640 checkFlagsListResponse(api.FlagsListResponse o) { |
| 641 buildCounterFlagsListResponse++; | 641 buildCounterFlagsListResponse++; |
| 642 if (buildCounterFlagsListResponse < 3) { | 642 if (buildCounterFlagsListResponse < 3) { |
| 643 checkUnnamed3894(o.items); | 643 checkUnnamed3605(o.items); |
| 644 unittest.expect(o.kind, unittest.equals('foo')); | 644 unittest.expect(o.kind, unittest.equals('foo')); |
| 645 } | 645 } |
| 646 buildCounterFlagsListResponse--; | 646 buildCounterFlagsListResponse--; |
| 647 } | 647 } |
| 648 | 648 |
| 649 buildUnnamed3895() { | 649 buildUnnamed3606() { |
| 650 var o = new core.List<core.String>(); | 650 var o = new core.List<core.String>(); |
| 651 o.add("foo"); | 651 o.add("foo"); |
| 652 o.add("foo"); | 652 o.add("foo"); |
| 653 return o; | 653 return o; |
| 654 } | 654 } |
| 655 | 655 |
| 656 checkUnnamed3895(core.List<core.String> o) { | 656 checkUnnamed3606(core.List<core.String> o) { |
| 657 unittest.expect(o, unittest.hasLength(2)); | 657 unittest.expect(o, unittest.hasLength(2)); |
| 658 unittest.expect(o[0], unittest.equals('foo')); | 658 unittest.expect(o[0], unittest.equals('foo')); |
| 659 unittest.expect(o[1], unittest.equals('foo')); | 659 unittest.expect(o[1], unittest.equals('foo')); |
| 660 } | 660 } |
| 661 | 661 |
| 662 core.int buildCounterImportContextCsvImportOptions = 0; | 662 core.int buildCounterImportContextCsvImportOptions = 0; |
| 663 buildImportContextCsvImportOptions() { | 663 buildImportContextCsvImportOptions() { |
| 664 var o = new api.ImportContextCsvImportOptions(); | 664 var o = new api.ImportContextCsvImportOptions(); |
| 665 buildCounterImportContextCsvImportOptions++; | 665 buildCounterImportContextCsvImportOptions++; |
| 666 if (buildCounterImportContextCsvImportOptions < 3) { | 666 if (buildCounterImportContextCsvImportOptions < 3) { |
| 667 o.columns = buildUnnamed3895(); | 667 o.columns = buildUnnamed3606(); |
| 668 o.table = "foo"; | 668 o.table = "foo"; |
| 669 } | 669 } |
| 670 buildCounterImportContextCsvImportOptions--; | 670 buildCounterImportContextCsvImportOptions--; |
| 671 return o; | 671 return o; |
| 672 } | 672 } |
| 673 | 673 |
| 674 checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { | 674 checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { |
| 675 buildCounterImportContextCsvImportOptions++; | 675 buildCounterImportContextCsvImportOptions++; |
| 676 if (buildCounterImportContextCsvImportOptions < 3) { | 676 if (buildCounterImportContextCsvImportOptions < 3) { |
| 677 checkUnnamed3895(o.columns); | 677 checkUnnamed3606(o.columns); |
| 678 unittest.expect(o.table, unittest.equals('foo')); | 678 unittest.expect(o.table, unittest.equals('foo')); |
| 679 } | 679 } |
| 680 buildCounterImportContextCsvImportOptions--; | 680 buildCounterImportContextCsvImportOptions--; |
| 681 } | 681 } |
| 682 | 682 |
| 683 core.int buildCounterImportContext = 0; | 683 core.int buildCounterImportContext = 0; |
| 684 buildImportContext() { | 684 buildImportContext() { |
| 685 var o = new api.ImportContext(); | 685 var o = new api.ImportContext(); |
| 686 buildCounterImportContext++; | 686 buildCounterImportContext++; |
| 687 if (buildCounterImportContext < 3) { | 687 if (buildCounterImportContext < 3) { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 } | 776 } |
| 777 | 777 |
| 778 checkInstancesImportRequest(api.InstancesImportRequest o) { | 778 checkInstancesImportRequest(api.InstancesImportRequest o) { |
| 779 buildCounterInstancesImportRequest++; | 779 buildCounterInstancesImportRequest++; |
| 780 if (buildCounterInstancesImportRequest < 3) { | 780 if (buildCounterInstancesImportRequest < 3) { |
| 781 checkImportContext(o.importContext); | 781 checkImportContext(o.importContext); |
| 782 } | 782 } |
| 783 buildCounterInstancesImportRequest--; | 783 buildCounterInstancesImportRequest--; |
| 784 } | 784 } |
| 785 | 785 |
| 786 buildUnnamed3896() { | 786 buildUnnamed3607() { |
| 787 var o = new core.List<api.DatabaseInstance>(); | 787 var o = new core.List<api.DatabaseInstance>(); |
| 788 o.add(buildDatabaseInstance()); | 788 o.add(buildDatabaseInstance()); |
| 789 o.add(buildDatabaseInstance()); | 789 o.add(buildDatabaseInstance()); |
| 790 return o; | 790 return o; |
| 791 } | 791 } |
| 792 | 792 |
| 793 checkUnnamed3896(core.List<api.DatabaseInstance> o) { | 793 checkUnnamed3607(core.List<api.DatabaseInstance> o) { |
| 794 unittest.expect(o, unittest.hasLength(2)); | 794 unittest.expect(o, unittest.hasLength(2)); |
| 795 checkDatabaseInstance(o[0]); | 795 checkDatabaseInstance(o[0]); |
| 796 checkDatabaseInstance(o[1]); | 796 checkDatabaseInstance(o[1]); |
| 797 } | 797 } |
| 798 | 798 |
| 799 core.int buildCounterInstancesListResponse = 0; | 799 core.int buildCounterInstancesListResponse = 0; |
| 800 buildInstancesListResponse() { | 800 buildInstancesListResponse() { |
| 801 var o = new api.InstancesListResponse(); | 801 var o = new api.InstancesListResponse(); |
| 802 buildCounterInstancesListResponse++; | 802 buildCounterInstancesListResponse++; |
| 803 if (buildCounterInstancesListResponse < 3) { | 803 if (buildCounterInstancesListResponse < 3) { |
| 804 o.items = buildUnnamed3896(); | 804 o.items = buildUnnamed3607(); |
| 805 o.kind = "foo"; | 805 o.kind = "foo"; |
| 806 o.nextPageToken = "foo"; | 806 o.nextPageToken = "foo"; |
| 807 } | 807 } |
| 808 buildCounterInstancesListResponse--; | 808 buildCounterInstancesListResponse--; |
| 809 return o; | 809 return o; |
| 810 } | 810 } |
| 811 | 811 |
| 812 checkInstancesListResponse(api.InstancesListResponse o) { | 812 checkInstancesListResponse(api.InstancesListResponse o) { |
| 813 buildCounterInstancesListResponse++; | 813 buildCounterInstancesListResponse++; |
| 814 if (buildCounterInstancesListResponse < 3) { | 814 if (buildCounterInstancesListResponse < 3) { |
| 815 checkUnnamed3896(o.items); | 815 checkUnnamed3607(o.items); |
| 816 unittest.expect(o.kind, unittest.equals('foo')); | 816 unittest.expect(o.kind, unittest.equals('foo')); |
| 817 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 817 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 818 } | 818 } |
| 819 buildCounterInstancesListResponse--; | 819 buildCounterInstancesListResponse--; |
| 820 } | 820 } |
| 821 | 821 |
| 822 core.int buildCounterInstancesRestoreBackupRequest = 0; | 822 core.int buildCounterInstancesRestoreBackupRequest = 0; |
| 823 buildInstancesRestoreBackupRequest() { | 823 buildInstancesRestoreBackupRequest() { |
| 824 var o = new api.InstancesRestoreBackupRequest(); | 824 var o = new api.InstancesRestoreBackupRequest(); |
| 825 buildCounterInstancesRestoreBackupRequest++; | 825 buildCounterInstancesRestoreBackupRequest++; |
| 826 if (buildCounterInstancesRestoreBackupRequest < 3) { | 826 if (buildCounterInstancesRestoreBackupRequest < 3) { |
| 827 o.restoreBackupContext = buildRestoreBackupContext(); | 827 o.restoreBackupContext = buildRestoreBackupContext(); |
| 828 } | 828 } |
| 829 buildCounterInstancesRestoreBackupRequest--; | 829 buildCounterInstancesRestoreBackupRequest--; |
| 830 return o; | 830 return o; |
| 831 } | 831 } |
| 832 | 832 |
| 833 checkInstancesRestoreBackupRequest(api.InstancesRestoreBackupRequest o) { | 833 checkInstancesRestoreBackupRequest(api.InstancesRestoreBackupRequest o) { |
| 834 buildCounterInstancesRestoreBackupRequest++; | 834 buildCounterInstancesRestoreBackupRequest++; |
| 835 if (buildCounterInstancesRestoreBackupRequest < 3) { | 835 if (buildCounterInstancesRestoreBackupRequest < 3) { |
| 836 checkRestoreBackupContext(o.restoreBackupContext); | 836 checkRestoreBackupContext(o.restoreBackupContext); |
| 837 } | 837 } |
| 838 buildCounterInstancesRestoreBackupRequest--; | 838 buildCounterInstancesRestoreBackupRequest--; |
| 839 } | 839 } |
| 840 | 840 |
| 841 buildUnnamed3897() { | 841 buildUnnamed3608() { |
| 842 var o = new core.List<api.AclEntry>(); | 842 var o = new core.List<api.AclEntry>(); |
| 843 o.add(buildAclEntry()); | 843 o.add(buildAclEntry()); |
| 844 o.add(buildAclEntry()); | 844 o.add(buildAclEntry()); |
| 845 return o; | 845 return o; |
| 846 } | 846 } |
| 847 | 847 |
| 848 checkUnnamed3897(core.List<api.AclEntry> o) { | 848 checkUnnamed3608(core.List<api.AclEntry> o) { |
| 849 unittest.expect(o, unittest.hasLength(2)); | 849 unittest.expect(o, unittest.hasLength(2)); |
| 850 checkAclEntry(o[0]); | 850 checkAclEntry(o[0]); |
| 851 checkAclEntry(o[1]); | 851 checkAclEntry(o[1]); |
| 852 } | 852 } |
| 853 | 853 |
| 854 core.int buildCounterIpConfiguration = 0; | 854 core.int buildCounterIpConfiguration = 0; |
| 855 buildIpConfiguration() { | 855 buildIpConfiguration() { |
| 856 var o = new api.IpConfiguration(); | 856 var o = new api.IpConfiguration(); |
| 857 buildCounterIpConfiguration++; | 857 buildCounterIpConfiguration++; |
| 858 if (buildCounterIpConfiguration < 3) { | 858 if (buildCounterIpConfiguration < 3) { |
| 859 o.authorizedNetworks = buildUnnamed3897(); | 859 o.authorizedNetworks = buildUnnamed3608(); |
| 860 o.ipv4Enabled = true; | 860 o.ipv4Enabled = true; |
| 861 o.requireSsl = true; | 861 o.requireSsl = true; |
| 862 } | 862 } |
| 863 buildCounterIpConfiguration--; | 863 buildCounterIpConfiguration--; |
| 864 return o; | 864 return o; |
| 865 } | 865 } |
| 866 | 866 |
| 867 checkIpConfiguration(api.IpConfiguration o) { | 867 checkIpConfiguration(api.IpConfiguration o) { |
| 868 buildCounterIpConfiguration++; | 868 buildCounterIpConfiguration++; |
| 869 if (buildCounterIpConfiguration < 3) { | 869 if (buildCounterIpConfiguration < 3) { |
| 870 checkUnnamed3897(o.authorizedNetworks); | 870 checkUnnamed3608(o.authorizedNetworks); |
| 871 unittest.expect(o.ipv4Enabled, unittest.isTrue); | 871 unittest.expect(o.ipv4Enabled, unittest.isTrue); |
| 872 unittest.expect(o.requireSsl, unittest.isTrue); | 872 unittest.expect(o.requireSsl, unittest.isTrue); |
| 873 } | 873 } |
| 874 buildCounterIpConfiguration--; | 874 buildCounterIpConfiguration--; |
| 875 } | 875 } |
| 876 | 876 |
| 877 core.int buildCounterIpMapping = 0; | 877 core.int buildCounterIpMapping = 0; |
| 878 buildIpMapping() { | 878 buildIpMapping() { |
| 879 var o = new api.IpMapping(); | 879 var o = new api.IpMapping(); |
| 880 buildCounterIpMapping++; | 880 buildCounterIpMapping++; |
| 881 if (buildCounterIpMapping < 3) { | 881 if (buildCounterIpMapping < 3) { |
| 882 o.ipAddress = "foo"; | 882 o.ipAddress = "foo"; |
| 883 o.timeToRetire = core.DateTime.parse("2002-02-27T14:01:02"); | 883 o.timeToRetire = core.DateTime.parse("2002-02-27T14:01:02"); |
| 884 o.type = "foo"; |
| 884 } | 885 } |
| 885 buildCounterIpMapping--; | 886 buildCounterIpMapping--; |
| 886 return o; | 887 return o; |
| 887 } | 888 } |
| 888 | 889 |
| 889 checkIpMapping(api.IpMapping o) { | 890 checkIpMapping(api.IpMapping o) { |
| 890 buildCounterIpMapping++; | 891 buildCounterIpMapping++; |
| 891 if (buildCounterIpMapping < 3) { | 892 if (buildCounterIpMapping < 3) { |
| 892 unittest.expect(o.ipAddress, unittest.equals('foo')); | 893 unittest.expect(o.ipAddress, unittest.equals('foo')); |
| 893 unittest.expect(o.timeToRetire, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 894 unittest.expect(o.timeToRetire, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 895 unittest.expect(o.type, unittest.equals('foo')); |
| 894 } | 896 } |
| 895 buildCounterIpMapping--; | 897 buildCounterIpMapping--; |
| 896 } | 898 } |
| 897 | 899 |
| 898 core.int buildCounterLocationPreference = 0; | 900 core.int buildCounterLocationPreference = 0; |
| 899 buildLocationPreference() { | 901 buildLocationPreference() { |
| 900 var o = new api.LocationPreference(); | 902 var o = new api.LocationPreference(); |
| 901 buildCounterLocationPreference++; | 903 buildCounterLocationPreference++; |
| 902 if (buildCounterLocationPreference < 3) { | 904 if (buildCounterLocationPreference < 3) { |
| 903 o.followGaeApplication = "foo"; | 905 o.followGaeApplication = "foo"; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 checkOperationError(api.OperationError o) { | 1068 checkOperationError(api.OperationError o) { |
| 1067 buildCounterOperationError++; | 1069 buildCounterOperationError++; |
| 1068 if (buildCounterOperationError < 3) { | 1070 if (buildCounterOperationError < 3) { |
| 1069 unittest.expect(o.code, unittest.equals('foo')); | 1071 unittest.expect(o.code, unittest.equals('foo')); |
| 1070 unittest.expect(o.kind, unittest.equals('foo')); | 1072 unittest.expect(o.kind, unittest.equals('foo')); |
| 1071 unittest.expect(o.message, unittest.equals('foo')); | 1073 unittest.expect(o.message, unittest.equals('foo')); |
| 1072 } | 1074 } |
| 1073 buildCounterOperationError--; | 1075 buildCounterOperationError--; |
| 1074 } | 1076 } |
| 1075 | 1077 |
| 1076 buildUnnamed3898() { | 1078 buildUnnamed3609() { |
| 1077 var o = new core.List<api.OperationError>(); | 1079 var o = new core.List<api.OperationError>(); |
| 1078 o.add(buildOperationError()); | 1080 o.add(buildOperationError()); |
| 1079 o.add(buildOperationError()); | 1081 o.add(buildOperationError()); |
| 1080 return o; | 1082 return o; |
| 1081 } | 1083 } |
| 1082 | 1084 |
| 1083 checkUnnamed3898(core.List<api.OperationError> o) { | 1085 checkUnnamed3609(core.List<api.OperationError> o) { |
| 1084 unittest.expect(o, unittest.hasLength(2)); | 1086 unittest.expect(o, unittest.hasLength(2)); |
| 1085 checkOperationError(o[0]); | 1087 checkOperationError(o[0]); |
| 1086 checkOperationError(o[1]); | 1088 checkOperationError(o[1]); |
| 1087 } | 1089 } |
| 1088 | 1090 |
| 1089 core.int buildCounterOperationErrors = 0; | 1091 core.int buildCounterOperationErrors = 0; |
| 1090 buildOperationErrors() { | 1092 buildOperationErrors() { |
| 1091 var o = new api.OperationErrors(); | 1093 var o = new api.OperationErrors(); |
| 1092 buildCounterOperationErrors++; | 1094 buildCounterOperationErrors++; |
| 1093 if (buildCounterOperationErrors < 3) { | 1095 if (buildCounterOperationErrors < 3) { |
| 1094 o.errors = buildUnnamed3898(); | 1096 o.errors = buildUnnamed3609(); |
| 1095 o.kind = "foo"; | 1097 o.kind = "foo"; |
| 1096 } | 1098 } |
| 1097 buildCounterOperationErrors--; | 1099 buildCounterOperationErrors--; |
| 1098 return o; | 1100 return o; |
| 1099 } | 1101 } |
| 1100 | 1102 |
| 1101 checkOperationErrors(api.OperationErrors o) { | 1103 checkOperationErrors(api.OperationErrors o) { |
| 1102 buildCounterOperationErrors++; | 1104 buildCounterOperationErrors++; |
| 1103 if (buildCounterOperationErrors < 3) { | 1105 if (buildCounterOperationErrors < 3) { |
| 1104 checkUnnamed3898(o.errors); | 1106 checkUnnamed3609(o.errors); |
| 1105 unittest.expect(o.kind, unittest.equals('foo')); | 1107 unittest.expect(o.kind, unittest.equals('foo')); |
| 1106 } | 1108 } |
| 1107 buildCounterOperationErrors--; | 1109 buildCounterOperationErrors--; |
| 1108 } | 1110 } |
| 1109 | 1111 |
| 1110 buildUnnamed3899() { | 1112 buildUnnamed3610() { |
| 1111 var o = new core.List<api.Operation>(); | 1113 var o = new core.List<api.Operation>(); |
| 1112 o.add(buildOperation()); | 1114 o.add(buildOperation()); |
| 1113 o.add(buildOperation()); | 1115 o.add(buildOperation()); |
| 1114 return o; | 1116 return o; |
| 1115 } | 1117 } |
| 1116 | 1118 |
| 1117 checkUnnamed3899(core.List<api.Operation> o) { | 1119 checkUnnamed3610(core.List<api.Operation> o) { |
| 1118 unittest.expect(o, unittest.hasLength(2)); | 1120 unittest.expect(o, unittest.hasLength(2)); |
| 1119 checkOperation(o[0]); | 1121 checkOperation(o[0]); |
| 1120 checkOperation(o[1]); | 1122 checkOperation(o[1]); |
| 1121 } | 1123 } |
| 1122 | 1124 |
| 1123 core.int buildCounterOperationsListResponse = 0; | 1125 core.int buildCounterOperationsListResponse = 0; |
| 1124 buildOperationsListResponse() { | 1126 buildOperationsListResponse() { |
| 1125 var o = new api.OperationsListResponse(); | 1127 var o = new api.OperationsListResponse(); |
| 1126 buildCounterOperationsListResponse++; | 1128 buildCounterOperationsListResponse++; |
| 1127 if (buildCounterOperationsListResponse < 3) { | 1129 if (buildCounterOperationsListResponse < 3) { |
| 1128 o.items = buildUnnamed3899(); | 1130 o.items = buildUnnamed3610(); |
| 1129 o.kind = "foo"; | 1131 o.kind = "foo"; |
| 1130 o.nextPageToken = "foo"; | 1132 o.nextPageToken = "foo"; |
| 1131 } | 1133 } |
| 1132 buildCounterOperationsListResponse--; | 1134 buildCounterOperationsListResponse--; |
| 1133 return o; | 1135 return o; |
| 1134 } | 1136 } |
| 1135 | 1137 |
| 1136 checkOperationsListResponse(api.OperationsListResponse o) { | 1138 checkOperationsListResponse(api.OperationsListResponse o) { |
| 1137 buildCounterOperationsListResponse++; | 1139 buildCounterOperationsListResponse++; |
| 1138 if (buildCounterOperationsListResponse < 3) { | 1140 if (buildCounterOperationsListResponse < 3) { |
| 1139 checkUnnamed3899(o.items); | 1141 checkUnnamed3610(o.items); |
| 1140 unittest.expect(o.kind, unittest.equals('foo')); | 1142 unittest.expect(o.kind, unittest.equals('foo')); |
| 1141 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1143 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1142 } | 1144 } |
| 1143 buildCounterOperationsListResponse--; | 1145 buildCounterOperationsListResponse--; |
| 1144 } | 1146 } |
| 1145 | 1147 |
| 1146 core.int buildCounterReplicaConfiguration = 0; | 1148 core.int buildCounterReplicaConfiguration = 0; |
| 1147 buildReplicaConfiguration() { | 1149 buildReplicaConfiguration() { |
| 1148 var o = new api.ReplicaConfiguration(); | 1150 var o = new api.ReplicaConfiguration(); |
| 1149 buildCounterReplicaConfiguration++; | 1151 buildCounterReplicaConfiguration++; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1182 checkRestoreBackupContext(api.RestoreBackupContext o) { | 1184 checkRestoreBackupContext(api.RestoreBackupContext o) { |
| 1183 buildCounterRestoreBackupContext++; | 1185 buildCounterRestoreBackupContext++; |
| 1184 if (buildCounterRestoreBackupContext < 3) { | 1186 if (buildCounterRestoreBackupContext < 3) { |
| 1185 unittest.expect(o.backupRunId, unittest.equals('foo')); | 1187 unittest.expect(o.backupRunId, unittest.equals('foo')); |
| 1186 unittest.expect(o.instanceId, unittest.equals('foo')); | 1188 unittest.expect(o.instanceId, unittest.equals('foo')); |
| 1187 unittest.expect(o.kind, unittest.equals('foo')); | 1189 unittest.expect(o.kind, unittest.equals('foo')); |
| 1188 } | 1190 } |
| 1189 buildCounterRestoreBackupContext--; | 1191 buildCounterRestoreBackupContext--; |
| 1190 } | 1192 } |
| 1191 | 1193 |
| 1192 buildUnnamed3900() { | 1194 buildUnnamed3611() { |
| 1193 var o = new core.List<core.String>(); | 1195 var o = new core.List<core.String>(); |
| 1194 o.add("foo"); | 1196 o.add("foo"); |
| 1195 o.add("foo"); | 1197 o.add("foo"); |
| 1196 return o; | 1198 return o; |
| 1197 } | 1199 } |
| 1198 | 1200 |
| 1199 checkUnnamed3900(core.List<core.String> o) { | 1201 checkUnnamed3611(core.List<core.String> o) { |
| 1200 unittest.expect(o, unittest.hasLength(2)); | 1202 unittest.expect(o, unittest.hasLength(2)); |
| 1201 unittest.expect(o[0], unittest.equals('foo')); | 1203 unittest.expect(o[0], unittest.equals('foo')); |
| 1202 unittest.expect(o[1], unittest.equals('foo')); | 1204 unittest.expect(o[1], unittest.equals('foo')); |
| 1203 } | 1205 } |
| 1204 | 1206 |
| 1205 buildUnnamed3901() { | 1207 buildUnnamed3612() { |
| 1206 var o = new core.List<api.DatabaseFlags>(); | 1208 var o = new core.List<api.DatabaseFlags>(); |
| 1207 o.add(buildDatabaseFlags()); | 1209 o.add(buildDatabaseFlags()); |
| 1208 o.add(buildDatabaseFlags()); | 1210 o.add(buildDatabaseFlags()); |
| 1209 return o; | 1211 return o; |
| 1210 } | 1212 } |
| 1211 | 1213 |
| 1212 checkUnnamed3901(core.List<api.DatabaseFlags> o) { | 1214 checkUnnamed3612(core.List<api.DatabaseFlags> o) { |
| 1213 unittest.expect(o, unittest.hasLength(2)); | 1215 unittest.expect(o, unittest.hasLength(2)); |
| 1214 checkDatabaseFlags(o[0]); | 1216 checkDatabaseFlags(o[0]); |
| 1215 checkDatabaseFlags(o[1]); | 1217 checkDatabaseFlags(o[1]); |
| 1216 } | 1218 } |
| 1217 | 1219 |
| 1218 core.int buildCounterSettings = 0; | 1220 core.int buildCounterSettings = 0; |
| 1219 buildSettings() { | 1221 buildSettings() { |
| 1220 var o = new api.Settings(); | 1222 var o = new api.Settings(); |
| 1221 buildCounterSettings++; | 1223 buildCounterSettings++; |
| 1222 if (buildCounterSettings < 3) { | 1224 if (buildCounterSettings < 3) { |
| 1223 o.activationPolicy = "foo"; | 1225 o.activationPolicy = "foo"; |
| 1224 o.authorizedGaeApplications = buildUnnamed3900(); | 1226 o.authorizedGaeApplications = buildUnnamed3611(); |
| 1225 o.backupConfiguration = buildBackupConfiguration(); | 1227 o.backupConfiguration = buildBackupConfiguration(); |
| 1226 o.crashSafeReplicationEnabled = true; | 1228 o.crashSafeReplicationEnabled = true; |
| 1227 o.dataDiskSizeGb = "foo"; | 1229 o.dataDiskSizeGb = "foo"; |
| 1228 o.dataDiskType = "foo"; | 1230 o.dataDiskType = "foo"; |
| 1229 o.databaseFlags = buildUnnamed3901(); | 1231 o.databaseFlags = buildUnnamed3612(); |
| 1230 o.databaseReplicationEnabled = true; | 1232 o.databaseReplicationEnabled = true; |
| 1231 o.ipConfiguration = buildIpConfiguration(); | 1233 o.ipConfiguration = buildIpConfiguration(); |
| 1232 o.kind = "foo"; | 1234 o.kind = "foo"; |
| 1233 o.locationPreference = buildLocationPreference(); | 1235 o.locationPreference = buildLocationPreference(); |
| 1234 o.maintenanceWindow = buildMaintenanceWindow(); | 1236 o.maintenanceWindow = buildMaintenanceWindow(); |
| 1235 o.pricingPlan = "foo"; | 1237 o.pricingPlan = "foo"; |
| 1236 o.replicationType = "foo"; | 1238 o.replicationType = "foo"; |
| 1237 o.settingsVersion = "foo"; | 1239 o.settingsVersion = "foo"; |
| 1238 o.storageAutoResize = true; | 1240 o.storageAutoResize = true; |
| 1239 o.tier = "foo"; | 1241 o.tier = "foo"; |
| 1240 } | 1242 } |
| 1241 buildCounterSettings--; | 1243 buildCounterSettings--; |
| 1242 return o; | 1244 return o; |
| 1243 } | 1245 } |
| 1244 | 1246 |
| 1245 checkSettings(api.Settings o) { | 1247 checkSettings(api.Settings o) { |
| 1246 buildCounterSettings++; | 1248 buildCounterSettings++; |
| 1247 if (buildCounterSettings < 3) { | 1249 if (buildCounterSettings < 3) { |
| 1248 unittest.expect(o.activationPolicy, unittest.equals('foo')); | 1250 unittest.expect(o.activationPolicy, unittest.equals('foo')); |
| 1249 checkUnnamed3900(o.authorizedGaeApplications); | 1251 checkUnnamed3611(o.authorizedGaeApplications); |
| 1250 checkBackupConfiguration(o.backupConfiguration); | 1252 checkBackupConfiguration(o.backupConfiguration); |
| 1251 unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); | 1253 unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); |
| 1252 unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); | 1254 unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); |
| 1253 unittest.expect(o.dataDiskType, unittest.equals('foo')); | 1255 unittest.expect(o.dataDiskType, unittest.equals('foo')); |
| 1254 checkUnnamed3901(o.databaseFlags); | 1256 checkUnnamed3612(o.databaseFlags); |
| 1255 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); | 1257 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); |
| 1256 checkIpConfiguration(o.ipConfiguration); | 1258 checkIpConfiguration(o.ipConfiguration); |
| 1257 unittest.expect(o.kind, unittest.equals('foo')); | 1259 unittest.expect(o.kind, unittest.equals('foo')); |
| 1258 checkLocationPreference(o.locationPreference); | 1260 checkLocationPreference(o.locationPreference); |
| 1259 checkMaintenanceWindow(o.maintenanceWindow); | 1261 checkMaintenanceWindow(o.maintenanceWindow); |
| 1260 unittest.expect(o.pricingPlan, unittest.equals('foo')); | 1262 unittest.expect(o.pricingPlan, unittest.equals('foo')); |
| 1261 unittest.expect(o.replicationType, unittest.equals('foo')); | 1263 unittest.expect(o.replicationType, unittest.equals('foo')); |
| 1262 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 1264 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
| 1263 unittest.expect(o.storageAutoResize, unittest.isTrue); | 1265 unittest.expect(o.storageAutoResize, unittest.isTrue); |
| 1264 unittest.expect(o.tier, unittest.equals('foo')); | 1266 unittest.expect(o.tier, unittest.equals('foo')); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1378 buildCounterSslCertsInsertResponse++; | 1380 buildCounterSslCertsInsertResponse++; |
| 1379 if (buildCounterSslCertsInsertResponse < 3) { | 1381 if (buildCounterSslCertsInsertResponse < 3) { |
| 1380 checkSslCertDetail(o.clientCert); | 1382 checkSslCertDetail(o.clientCert); |
| 1381 unittest.expect(o.kind, unittest.equals('foo')); | 1383 unittest.expect(o.kind, unittest.equals('foo')); |
| 1382 checkOperation(o.operation); | 1384 checkOperation(o.operation); |
| 1383 checkSslCert(o.serverCaCert); | 1385 checkSslCert(o.serverCaCert); |
| 1384 } | 1386 } |
| 1385 buildCounterSslCertsInsertResponse--; | 1387 buildCounterSslCertsInsertResponse--; |
| 1386 } | 1388 } |
| 1387 | 1389 |
| 1388 buildUnnamed3902() { | 1390 buildUnnamed3613() { |
| 1389 var o = new core.List<api.SslCert>(); | 1391 var o = new core.List<api.SslCert>(); |
| 1390 o.add(buildSslCert()); | 1392 o.add(buildSslCert()); |
| 1391 o.add(buildSslCert()); | 1393 o.add(buildSslCert()); |
| 1392 return o; | 1394 return o; |
| 1393 } | 1395 } |
| 1394 | 1396 |
| 1395 checkUnnamed3902(core.List<api.SslCert> o) { | 1397 checkUnnamed3613(core.List<api.SslCert> o) { |
| 1396 unittest.expect(o, unittest.hasLength(2)); | 1398 unittest.expect(o, unittest.hasLength(2)); |
| 1397 checkSslCert(o[0]); | 1399 checkSslCert(o[0]); |
| 1398 checkSslCert(o[1]); | 1400 checkSslCert(o[1]); |
| 1399 } | 1401 } |
| 1400 | 1402 |
| 1401 core.int buildCounterSslCertsListResponse = 0; | 1403 core.int buildCounterSslCertsListResponse = 0; |
| 1402 buildSslCertsListResponse() { | 1404 buildSslCertsListResponse() { |
| 1403 var o = new api.SslCertsListResponse(); | 1405 var o = new api.SslCertsListResponse(); |
| 1404 buildCounterSslCertsListResponse++; | 1406 buildCounterSslCertsListResponse++; |
| 1405 if (buildCounterSslCertsListResponse < 3) { | 1407 if (buildCounterSslCertsListResponse < 3) { |
| 1406 o.items = buildUnnamed3902(); | 1408 o.items = buildUnnamed3613(); |
| 1407 o.kind = "foo"; | 1409 o.kind = "foo"; |
| 1408 } | 1410 } |
| 1409 buildCounterSslCertsListResponse--; | 1411 buildCounterSslCertsListResponse--; |
| 1410 return o; | 1412 return o; |
| 1411 } | 1413 } |
| 1412 | 1414 |
| 1413 checkSslCertsListResponse(api.SslCertsListResponse o) { | 1415 checkSslCertsListResponse(api.SslCertsListResponse o) { |
| 1414 buildCounterSslCertsListResponse++; | 1416 buildCounterSslCertsListResponse++; |
| 1415 if (buildCounterSslCertsListResponse < 3) { | 1417 if (buildCounterSslCertsListResponse < 3) { |
| 1416 checkUnnamed3902(o.items); | 1418 checkUnnamed3613(o.items); |
| 1417 unittest.expect(o.kind, unittest.equals('foo')); | 1419 unittest.expect(o.kind, unittest.equals('foo')); |
| 1418 } | 1420 } |
| 1419 buildCounterSslCertsListResponse--; | 1421 buildCounterSslCertsListResponse--; |
| 1420 } | 1422 } |
| 1421 | 1423 |
| 1422 buildUnnamed3903() { | 1424 buildUnnamed3614() { |
| 1423 var o = new core.List<core.String>(); | 1425 var o = new core.List<core.String>(); |
| 1424 o.add("foo"); | 1426 o.add("foo"); |
| 1425 o.add("foo"); | 1427 o.add("foo"); |
| 1426 return o; | 1428 return o; |
| 1427 } | 1429 } |
| 1428 | 1430 |
| 1429 checkUnnamed3903(core.List<core.String> o) { | 1431 checkUnnamed3614(core.List<core.String> o) { |
| 1430 unittest.expect(o, unittest.hasLength(2)); | 1432 unittest.expect(o, unittest.hasLength(2)); |
| 1431 unittest.expect(o[0], unittest.equals('foo')); | 1433 unittest.expect(o[0], unittest.equals('foo')); |
| 1432 unittest.expect(o[1], unittest.equals('foo')); | 1434 unittest.expect(o[1], unittest.equals('foo')); |
| 1433 } | 1435 } |
| 1434 | 1436 |
| 1435 core.int buildCounterTier = 0; | 1437 core.int buildCounterTier = 0; |
| 1436 buildTier() { | 1438 buildTier() { |
| 1437 var o = new api.Tier(); | 1439 var o = new api.Tier(); |
| 1438 buildCounterTier++; | 1440 buildCounterTier++; |
| 1439 if (buildCounterTier < 3) { | 1441 if (buildCounterTier < 3) { |
| 1440 o.DiskQuota = "foo"; | 1442 o.DiskQuota = "foo"; |
| 1441 o.RAM = "foo"; | 1443 o.RAM = "foo"; |
| 1442 o.kind = "foo"; | 1444 o.kind = "foo"; |
| 1443 o.region = buildUnnamed3903(); | 1445 o.region = buildUnnamed3614(); |
| 1444 o.tier = "foo"; | 1446 o.tier = "foo"; |
| 1445 } | 1447 } |
| 1446 buildCounterTier--; | 1448 buildCounterTier--; |
| 1447 return o; | 1449 return o; |
| 1448 } | 1450 } |
| 1449 | 1451 |
| 1450 checkTier(api.Tier o) { | 1452 checkTier(api.Tier o) { |
| 1451 buildCounterTier++; | 1453 buildCounterTier++; |
| 1452 if (buildCounterTier < 3) { | 1454 if (buildCounterTier < 3) { |
| 1453 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1455 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
| 1454 unittest.expect(o.RAM, unittest.equals('foo')); | 1456 unittest.expect(o.RAM, unittest.equals('foo')); |
| 1455 unittest.expect(o.kind, unittest.equals('foo')); | 1457 unittest.expect(o.kind, unittest.equals('foo')); |
| 1456 checkUnnamed3903(o.region); | 1458 checkUnnamed3614(o.region); |
| 1457 unittest.expect(o.tier, unittest.equals('foo')); | 1459 unittest.expect(o.tier, unittest.equals('foo')); |
| 1458 } | 1460 } |
| 1459 buildCounterTier--; | 1461 buildCounterTier--; |
| 1460 } | 1462 } |
| 1461 | 1463 |
| 1462 buildUnnamed3904() { | 1464 buildUnnamed3615() { |
| 1463 var o = new core.List<api.Tier>(); | 1465 var o = new core.List<api.Tier>(); |
| 1464 o.add(buildTier()); | 1466 o.add(buildTier()); |
| 1465 o.add(buildTier()); | 1467 o.add(buildTier()); |
| 1466 return o; | 1468 return o; |
| 1467 } | 1469 } |
| 1468 | 1470 |
| 1469 checkUnnamed3904(core.List<api.Tier> o) { | 1471 checkUnnamed3615(core.List<api.Tier> o) { |
| 1470 unittest.expect(o, unittest.hasLength(2)); | 1472 unittest.expect(o, unittest.hasLength(2)); |
| 1471 checkTier(o[0]); | 1473 checkTier(o[0]); |
| 1472 checkTier(o[1]); | 1474 checkTier(o[1]); |
| 1473 } | 1475 } |
| 1474 | 1476 |
| 1475 core.int buildCounterTiersListResponse = 0; | 1477 core.int buildCounterTiersListResponse = 0; |
| 1476 buildTiersListResponse() { | 1478 buildTiersListResponse() { |
| 1477 var o = new api.TiersListResponse(); | 1479 var o = new api.TiersListResponse(); |
| 1478 buildCounterTiersListResponse++; | 1480 buildCounterTiersListResponse++; |
| 1479 if (buildCounterTiersListResponse < 3) { | 1481 if (buildCounterTiersListResponse < 3) { |
| 1480 o.items = buildUnnamed3904(); | 1482 o.items = buildUnnamed3615(); |
| 1481 o.kind = "foo"; | 1483 o.kind = "foo"; |
| 1482 } | 1484 } |
| 1483 buildCounterTiersListResponse--; | 1485 buildCounterTiersListResponse--; |
| 1484 return o; | 1486 return o; |
| 1485 } | 1487 } |
| 1486 | 1488 |
| 1487 checkTiersListResponse(api.TiersListResponse o) { | 1489 checkTiersListResponse(api.TiersListResponse o) { |
| 1488 buildCounterTiersListResponse++; | 1490 buildCounterTiersListResponse++; |
| 1489 if (buildCounterTiersListResponse < 3) { | 1491 if (buildCounterTiersListResponse < 3) { |
| 1490 checkUnnamed3904(o.items); | 1492 checkUnnamed3615(o.items); |
| 1491 unittest.expect(o.kind, unittest.equals('foo')); | 1493 unittest.expect(o.kind, unittest.equals('foo')); |
| 1492 } | 1494 } |
| 1493 buildCounterTiersListResponse--; | 1495 buildCounterTiersListResponse--; |
| 1494 } | 1496 } |
| 1495 | 1497 |
| 1496 core.int buildCounterUser = 0; | 1498 core.int buildCounterUser = 0; |
| 1497 buildUser() { | 1499 buildUser() { |
| 1498 var o = new api.User(); | 1500 var o = new api.User(); |
| 1499 buildCounterUser++; | 1501 buildCounterUser++; |
| 1500 if (buildCounterUser < 3) { | 1502 if (buildCounterUser < 3) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1517 unittest.expect(o.host, unittest.equals('foo')); | 1519 unittest.expect(o.host, unittest.equals('foo')); |
| 1518 unittest.expect(o.instance, unittest.equals('foo')); | 1520 unittest.expect(o.instance, unittest.equals('foo')); |
| 1519 unittest.expect(o.kind, unittest.equals('foo')); | 1521 unittest.expect(o.kind, unittest.equals('foo')); |
| 1520 unittest.expect(o.name, unittest.equals('foo')); | 1522 unittest.expect(o.name, unittest.equals('foo')); |
| 1521 unittest.expect(o.password, unittest.equals('foo')); | 1523 unittest.expect(o.password, unittest.equals('foo')); |
| 1522 unittest.expect(o.project, unittest.equals('foo')); | 1524 unittest.expect(o.project, unittest.equals('foo')); |
| 1523 } | 1525 } |
| 1524 buildCounterUser--; | 1526 buildCounterUser--; |
| 1525 } | 1527 } |
| 1526 | 1528 |
| 1527 buildUnnamed3905() { | 1529 buildUnnamed3616() { |
| 1528 var o = new core.List<api.User>(); | 1530 var o = new core.List<api.User>(); |
| 1529 o.add(buildUser()); | 1531 o.add(buildUser()); |
| 1530 o.add(buildUser()); | 1532 o.add(buildUser()); |
| 1531 return o; | 1533 return o; |
| 1532 } | 1534 } |
| 1533 | 1535 |
| 1534 checkUnnamed3905(core.List<api.User> o) { | 1536 checkUnnamed3616(core.List<api.User> o) { |
| 1535 unittest.expect(o, unittest.hasLength(2)); | 1537 unittest.expect(o, unittest.hasLength(2)); |
| 1536 checkUser(o[0]); | 1538 checkUser(o[0]); |
| 1537 checkUser(o[1]); | 1539 checkUser(o[1]); |
| 1538 } | 1540 } |
| 1539 | 1541 |
| 1540 core.int buildCounterUsersListResponse = 0; | 1542 core.int buildCounterUsersListResponse = 0; |
| 1541 buildUsersListResponse() { | 1543 buildUsersListResponse() { |
| 1542 var o = new api.UsersListResponse(); | 1544 var o = new api.UsersListResponse(); |
| 1543 buildCounterUsersListResponse++; | 1545 buildCounterUsersListResponse++; |
| 1544 if (buildCounterUsersListResponse < 3) { | 1546 if (buildCounterUsersListResponse < 3) { |
| 1545 o.items = buildUnnamed3905(); | 1547 o.items = buildUnnamed3616(); |
| 1546 o.kind = "foo"; | 1548 o.kind = "foo"; |
| 1547 o.nextPageToken = "foo"; | 1549 o.nextPageToken = "foo"; |
| 1548 } | 1550 } |
| 1549 buildCounterUsersListResponse--; | 1551 buildCounterUsersListResponse--; |
| 1550 return o; | 1552 return o; |
| 1551 } | 1553 } |
| 1552 | 1554 |
| 1553 checkUsersListResponse(api.UsersListResponse o) { | 1555 checkUsersListResponse(api.UsersListResponse o) { |
| 1554 buildCounterUsersListResponse++; | 1556 buildCounterUsersListResponse++; |
| 1555 if (buildCounterUsersListResponse < 3) { | 1557 if (buildCounterUsersListResponse < 3) { |
| 1556 checkUnnamed3905(o.items); | 1558 checkUnnamed3616(o.items); |
| 1557 unittest.expect(o.kind, unittest.equals('foo')); | 1559 unittest.expect(o.kind, unittest.equals('foo')); |
| 1558 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1560 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1559 } | 1561 } |
| 1560 buildCounterUsersListResponse--; | 1562 buildCounterUsersListResponse--; |
| 1561 } | 1563 } |
| 1562 | 1564 |
| 1563 | 1565 |
| 1564 main() { | 1566 main() { |
| 1565 unittest.group("obj-schema-AclEntry", () { | 1567 unittest.group("obj-schema-AclEntry", () { |
| 1566 unittest.test("to-json--from-json", () { | 1568 unittest.test("to-json--from-json", () { |
| (...skipping 2883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4450 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { | 4452 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { |
| 4451 checkOperation(response); | 4453 checkOperation(response); |
| 4452 }))); | 4454 }))); |
| 4453 }); | 4455 }); |
| 4454 | 4456 |
| 4455 }); | 4457 }); |
| 4456 | 4458 |
| 4457 | 4459 |
| 4458 } | 4460 } |
| 4459 | 4461 |
| OLD | NEW |