| 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 buildUnnamed3596() { | 145 buildUnnamed3590() { |
| 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 checkUnnamed3596(core.List<api.BackupRun> o) { | 152 checkUnnamed3590(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 = buildUnnamed3596(); | 163 o.items = buildUnnamed3590(); |
| 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 checkUnnamed3596(o.items); | 174 checkUnnamed3590(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 buildUnnamed3597() { | 302 buildUnnamed3591() { |
| 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 checkUnnamed3597(core.List<api.IpMapping> o) { | 309 checkUnnamed3591(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 buildUnnamed3598() { | 315 buildUnnamed3592() { |
| 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 checkUnnamed3598(core.List<core.String> o) { | 322 checkUnnamed3592(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 buildUnnamed3599() { | 328 buildUnnamed3593() { |
| 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 checkUnnamed3599(core.List<core.String> o) { | 335 checkUnnamed3593(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 = buildUnnamed3597(); | 353 o.ipAddresses = buildUnnamed3591(); |
| 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 = buildUnnamed3598(); | 363 o.replicaNames = buildUnnamed3592(); |
| 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 = buildUnnamed3599(); | 369 o.suspensionReason = buildUnnamed3593(); |
| 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 checkUnnamed3597(o.ipAddresses); | 385 checkUnnamed3591(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 checkUnnamed3598(o.replicaNames); | 395 checkUnnamed3592(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 checkUnnamed3599(o.suspensionReason); | 401 checkUnnamed3593(o.suspensionReason); |
| 402 } | 402 } |
| 403 buildCounterDatabaseInstance--; | 403 buildCounterDatabaseInstance--; |
| 404 } | 404 } |
| 405 | 405 |
| 406 buildUnnamed3600() { | 406 buildUnnamed3594() { |
| 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 checkUnnamed3600(core.List<api.Database> o) { | 413 checkUnnamed3594(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 = buildUnnamed3600(); | 424 o.items = buildUnnamed3594(); |
| 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 checkUnnamed3600(o.items); | 434 checkUnnamed3594(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 buildUnnamed3601() { | 459 buildUnnamed3595() { |
| 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 checkUnnamed3601(core.List<core.String> o) { | 466 checkUnnamed3595(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 buildUnnamed3602() { | 472 buildUnnamed3596() { |
| 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 checkUnnamed3602(core.List<core.String> o) { | 479 checkUnnamed3596(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 = buildUnnamed3602(); | 491 o.tables = buildUnnamed3596(); |
| 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 checkUnnamed3602(o.tables); | 501 checkUnnamed3596(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 = buildUnnamed3601(); | 512 o.databases = buildUnnamed3595(); |
| 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 checkUnnamed3601(o.databases); | 526 checkUnnamed3595(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 buildUnnamed3603() { | 556 buildUnnamed3597() { |
| 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 checkUnnamed3603(core.List<core.String> o) { | 563 checkUnnamed3597(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 buildUnnamed3604() { | 569 buildUnnamed3598() { |
| 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 checkUnnamed3604(core.List<core.String> o) { | 576 checkUnnamed3598(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 = buildUnnamed3603(); | 587 o.allowedStringValues = buildUnnamed3597(); |
| 588 o.appliesTo = buildUnnamed3604(); | 588 o.appliesTo = buildUnnamed3598(); |
| 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 checkUnnamed3603(o.allowedStringValues); | 603 checkUnnamed3597(o.allowedStringValues); |
| 604 checkUnnamed3604(o.appliesTo); | 604 checkUnnamed3598(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 buildUnnamed3605() { | 615 buildUnnamed3599() { |
| 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 checkUnnamed3605(core.List<api.Flag> o) { | 622 checkUnnamed3599(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 = buildUnnamed3605(); | 633 o.items = buildUnnamed3599(); |
| 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 checkUnnamed3605(o.items); | 643 checkUnnamed3599(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 buildUnnamed3606() { | 649 buildUnnamed3600() { |
| 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 checkUnnamed3606(core.List<core.String> o) { | 656 checkUnnamed3600(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 = buildUnnamed3606(); | 667 o.columns = buildUnnamed3600(); |
| 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 checkUnnamed3606(o.columns); | 677 checkUnnamed3600(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 buildUnnamed3607() { | 786 buildUnnamed3601() { |
| 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 checkUnnamed3607(core.List<api.DatabaseInstance> o) { | 793 checkUnnamed3601(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 = buildUnnamed3607(); | 804 o.items = buildUnnamed3601(); |
| 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 checkUnnamed3607(o.items); | 815 checkUnnamed3601(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 buildUnnamed3608() { | 841 core.int buildCounterInstancesTruncateLogRequest = 0; |
| 842 buildInstancesTruncateLogRequest() { |
| 843 var o = new api.InstancesTruncateLogRequest(); |
| 844 buildCounterInstancesTruncateLogRequest++; |
| 845 if (buildCounterInstancesTruncateLogRequest < 3) { |
| 846 o.truncateLogContext = buildTruncateLogContext(); |
| 847 } |
| 848 buildCounterInstancesTruncateLogRequest--; |
| 849 return o; |
| 850 } |
| 851 |
| 852 checkInstancesTruncateLogRequest(api.InstancesTruncateLogRequest o) { |
| 853 buildCounterInstancesTruncateLogRequest++; |
| 854 if (buildCounterInstancesTruncateLogRequest < 3) { |
| 855 checkTruncateLogContext(o.truncateLogContext); |
| 856 } |
| 857 buildCounterInstancesTruncateLogRequest--; |
| 858 } |
| 859 |
| 860 buildUnnamed3602() { |
| 842 var o = new core.List<api.AclEntry>(); | 861 var o = new core.List<api.AclEntry>(); |
| 843 o.add(buildAclEntry()); | 862 o.add(buildAclEntry()); |
| 844 o.add(buildAclEntry()); | 863 o.add(buildAclEntry()); |
| 845 return o; | 864 return o; |
| 846 } | 865 } |
| 847 | 866 |
| 848 checkUnnamed3608(core.List<api.AclEntry> o) { | 867 checkUnnamed3602(core.List<api.AclEntry> o) { |
| 849 unittest.expect(o, unittest.hasLength(2)); | 868 unittest.expect(o, unittest.hasLength(2)); |
| 850 checkAclEntry(o[0]); | 869 checkAclEntry(o[0]); |
| 851 checkAclEntry(o[1]); | 870 checkAclEntry(o[1]); |
| 852 } | 871 } |
| 853 | 872 |
| 854 core.int buildCounterIpConfiguration = 0; | 873 core.int buildCounterIpConfiguration = 0; |
| 855 buildIpConfiguration() { | 874 buildIpConfiguration() { |
| 856 var o = new api.IpConfiguration(); | 875 var o = new api.IpConfiguration(); |
| 857 buildCounterIpConfiguration++; | 876 buildCounterIpConfiguration++; |
| 858 if (buildCounterIpConfiguration < 3) { | 877 if (buildCounterIpConfiguration < 3) { |
| 859 o.authorizedNetworks = buildUnnamed3608(); | 878 o.authorizedNetworks = buildUnnamed3602(); |
| 860 o.ipv4Enabled = true; | 879 o.ipv4Enabled = true; |
| 861 o.requireSsl = true; | 880 o.requireSsl = true; |
| 862 } | 881 } |
| 863 buildCounterIpConfiguration--; | 882 buildCounterIpConfiguration--; |
| 864 return o; | 883 return o; |
| 865 } | 884 } |
| 866 | 885 |
| 867 checkIpConfiguration(api.IpConfiguration o) { | 886 checkIpConfiguration(api.IpConfiguration o) { |
| 868 buildCounterIpConfiguration++; | 887 buildCounterIpConfiguration++; |
| 869 if (buildCounterIpConfiguration < 3) { | 888 if (buildCounterIpConfiguration < 3) { |
| 870 checkUnnamed3608(o.authorizedNetworks); | 889 checkUnnamed3602(o.authorizedNetworks); |
| 871 unittest.expect(o.ipv4Enabled, unittest.isTrue); | 890 unittest.expect(o.ipv4Enabled, unittest.isTrue); |
| 872 unittest.expect(o.requireSsl, unittest.isTrue); | 891 unittest.expect(o.requireSsl, unittest.isTrue); |
| 873 } | 892 } |
| 874 buildCounterIpConfiguration--; | 893 buildCounterIpConfiguration--; |
| 875 } | 894 } |
| 876 | 895 |
| 877 core.int buildCounterIpMapping = 0; | 896 core.int buildCounterIpMapping = 0; |
| 878 buildIpMapping() { | 897 buildIpMapping() { |
| 879 var o = new api.IpMapping(); | 898 var o = new api.IpMapping(); |
| 880 buildCounterIpMapping++; | 899 buildCounterIpMapping++; |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 checkOperationError(api.OperationError o) { | 1087 checkOperationError(api.OperationError o) { |
| 1069 buildCounterOperationError++; | 1088 buildCounterOperationError++; |
| 1070 if (buildCounterOperationError < 3) { | 1089 if (buildCounterOperationError < 3) { |
| 1071 unittest.expect(o.code, unittest.equals('foo')); | 1090 unittest.expect(o.code, unittest.equals('foo')); |
| 1072 unittest.expect(o.kind, unittest.equals('foo')); | 1091 unittest.expect(o.kind, unittest.equals('foo')); |
| 1073 unittest.expect(o.message, unittest.equals('foo')); | 1092 unittest.expect(o.message, unittest.equals('foo')); |
| 1074 } | 1093 } |
| 1075 buildCounterOperationError--; | 1094 buildCounterOperationError--; |
| 1076 } | 1095 } |
| 1077 | 1096 |
| 1078 buildUnnamed3609() { | 1097 buildUnnamed3603() { |
| 1079 var o = new core.List<api.OperationError>(); | 1098 var o = new core.List<api.OperationError>(); |
| 1080 o.add(buildOperationError()); | 1099 o.add(buildOperationError()); |
| 1081 o.add(buildOperationError()); | 1100 o.add(buildOperationError()); |
| 1082 return o; | 1101 return o; |
| 1083 } | 1102 } |
| 1084 | 1103 |
| 1085 checkUnnamed3609(core.List<api.OperationError> o) { | 1104 checkUnnamed3603(core.List<api.OperationError> o) { |
| 1086 unittest.expect(o, unittest.hasLength(2)); | 1105 unittest.expect(o, unittest.hasLength(2)); |
| 1087 checkOperationError(o[0]); | 1106 checkOperationError(o[0]); |
| 1088 checkOperationError(o[1]); | 1107 checkOperationError(o[1]); |
| 1089 } | 1108 } |
| 1090 | 1109 |
| 1091 core.int buildCounterOperationErrors = 0; | 1110 core.int buildCounterOperationErrors = 0; |
| 1092 buildOperationErrors() { | 1111 buildOperationErrors() { |
| 1093 var o = new api.OperationErrors(); | 1112 var o = new api.OperationErrors(); |
| 1094 buildCounterOperationErrors++; | 1113 buildCounterOperationErrors++; |
| 1095 if (buildCounterOperationErrors < 3) { | 1114 if (buildCounterOperationErrors < 3) { |
| 1096 o.errors = buildUnnamed3609(); | 1115 o.errors = buildUnnamed3603(); |
| 1097 o.kind = "foo"; | 1116 o.kind = "foo"; |
| 1098 } | 1117 } |
| 1099 buildCounterOperationErrors--; | 1118 buildCounterOperationErrors--; |
| 1100 return o; | 1119 return o; |
| 1101 } | 1120 } |
| 1102 | 1121 |
| 1103 checkOperationErrors(api.OperationErrors o) { | 1122 checkOperationErrors(api.OperationErrors o) { |
| 1104 buildCounterOperationErrors++; | 1123 buildCounterOperationErrors++; |
| 1105 if (buildCounterOperationErrors < 3) { | 1124 if (buildCounterOperationErrors < 3) { |
| 1106 checkUnnamed3609(o.errors); | 1125 checkUnnamed3603(o.errors); |
| 1107 unittest.expect(o.kind, unittest.equals('foo')); | 1126 unittest.expect(o.kind, unittest.equals('foo')); |
| 1108 } | 1127 } |
| 1109 buildCounterOperationErrors--; | 1128 buildCounterOperationErrors--; |
| 1110 } | 1129 } |
| 1111 | 1130 |
| 1112 buildUnnamed3610() { | 1131 buildUnnamed3604() { |
| 1113 var o = new core.List<api.Operation>(); | 1132 var o = new core.List<api.Operation>(); |
| 1114 o.add(buildOperation()); | 1133 o.add(buildOperation()); |
| 1115 o.add(buildOperation()); | 1134 o.add(buildOperation()); |
| 1116 return o; | 1135 return o; |
| 1117 } | 1136 } |
| 1118 | 1137 |
| 1119 checkUnnamed3610(core.List<api.Operation> o) { | 1138 checkUnnamed3604(core.List<api.Operation> o) { |
| 1120 unittest.expect(o, unittest.hasLength(2)); | 1139 unittest.expect(o, unittest.hasLength(2)); |
| 1121 checkOperation(o[0]); | 1140 checkOperation(o[0]); |
| 1122 checkOperation(o[1]); | 1141 checkOperation(o[1]); |
| 1123 } | 1142 } |
| 1124 | 1143 |
| 1125 core.int buildCounterOperationsListResponse = 0; | 1144 core.int buildCounterOperationsListResponse = 0; |
| 1126 buildOperationsListResponse() { | 1145 buildOperationsListResponse() { |
| 1127 var o = new api.OperationsListResponse(); | 1146 var o = new api.OperationsListResponse(); |
| 1128 buildCounterOperationsListResponse++; | 1147 buildCounterOperationsListResponse++; |
| 1129 if (buildCounterOperationsListResponse < 3) { | 1148 if (buildCounterOperationsListResponse < 3) { |
| 1130 o.items = buildUnnamed3610(); | 1149 o.items = buildUnnamed3604(); |
| 1131 o.kind = "foo"; | 1150 o.kind = "foo"; |
| 1132 o.nextPageToken = "foo"; | 1151 o.nextPageToken = "foo"; |
| 1133 } | 1152 } |
| 1134 buildCounterOperationsListResponse--; | 1153 buildCounterOperationsListResponse--; |
| 1135 return o; | 1154 return o; |
| 1136 } | 1155 } |
| 1137 | 1156 |
| 1138 checkOperationsListResponse(api.OperationsListResponse o) { | 1157 checkOperationsListResponse(api.OperationsListResponse o) { |
| 1139 buildCounterOperationsListResponse++; | 1158 buildCounterOperationsListResponse++; |
| 1140 if (buildCounterOperationsListResponse < 3) { | 1159 if (buildCounterOperationsListResponse < 3) { |
| 1141 checkUnnamed3610(o.items); | 1160 checkUnnamed3604(o.items); |
| 1142 unittest.expect(o.kind, unittest.equals('foo')); | 1161 unittest.expect(o.kind, unittest.equals('foo')); |
| 1143 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1162 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1144 } | 1163 } |
| 1145 buildCounterOperationsListResponse--; | 1164 buildCounterOperationsListResponse--; |
| 1146 } | 1165 } |
| 1147 | 1166 |
| 1148 core.int buildCounterReplicaConfiguration = 0; | 1167 core.int buildCounterReplicaConfiguration = 0; |
| 1149 buildReplicaConfiguration() { | 1168 buildReplicaConfiguration() { |
| 1150 var o = new api.ReplicaConfiguration(); | 1169 var o = new api.ReplicaConfiguration(); |
| 1151 buildCounterReplicaConfiguration++; | 1170 buildCounterReplicaConfiguration++; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 checkRestoreBackupContext(api.RestoreBackupContext o) { | 1203 checkRestoreBackupContext(api.RestoreBackupContext o) { |
| 1185 buildCounterRestoreBackupContext++; | 1204 buildCounterRestoreBackupContext++; |
| 1186 if (buildCounterRestoreBackupContext < 3) { | 1205 if (buildCounterRestoreBackupContext < 3) { |
| 1187 unittest.expect(o.backupRunId, unittest.equals('foo')); | 1206 unittest.expect(o.backupRunId, unittest.equals('foo')); |
| 1188 unittest.expect(o.instanceId, unittest.equals('foo')); | 1207 unittest.expect(o.instanceId, unittest.equals('foo')); |
| 1189 unittest.expect(o.kind, unittest.equals('foo')); | 1208 unittest.expect(o.kind, unittest.equals('foo')); |
| 1190 } | 1209 } |
| 1191 buildCounterRestoreBackupContext--; | 1210 buildCounterRestoreBackupContext--; |
| 1192 } | 1211 } |
| 1193 | 1212 |
| 1194 buildUnnamed3611() { | 1213 buildUnnamed3605() { |
| 1195 var o = new core.List<core.String>(); | 1214 var o = new core.List<core.String>(); |
| 1196 o.add("foo"); | 1215 o.add("foo"); |
| 1197 o.add("foo"); | 1216 o.add("foo"); |
| 1198 return o; | 1217 return o; |
| 1199 } | 1218 } |
| 1200 | 1219 |
| 1201 checkUnnamed3611(core.List<core.String> o) { | 1220 checkUnnamed3605(core.List<core.String> o) { |
| 1202 unittest.expect(o, unittest.hasLength(2)); | 1221 unittest.expect(o, unittest.hasLength(2)); |
| 1203 unittest.expect(o[0], unittest.equals('foo')); | 1222 unittest.expect(o[0], unittest.equals('foo')); |
| 1204 unittest.expect(o[1], unittest.equals('foo')); | 1223 unittest.expect(o[1], unittest.equals('foo')); |
| 1205 } | 1224 } |
| 1206 | 1225 |
| 1207 buildUnnamed3612() { | 1226 buildUnnamed3606() { |
| 1208 var o = new core.List<api.DatabaseFlags>(); | 1227 var o = new core.List<api.DatabaseFlags>(); |
| 1209 o.add(buildDatabaseFlags()); | 1228 o.add(buildDatabaseFlags()); |
| 1210 o.add(buildDatabaseFlags()); | 1229 o.add(buildDatabaseFlags()); |
| 1211 return o; | 1230 return o; |
| 1212 } | 1231 } |
| 1213 | 1232 |
| 1214 checkUnnamed3612(core.List<api.DatabaseFlags> o) { | 1233 checkUnnamed3606(core.List<api.DatabaseFlags> o) { |
| 1215 unittest.expect(o, unittest.hasLength(2)); | 1234 unittest.expect(o, unittest.hasLength(2)); |
| 1216 checkDatabaseFlags(o[0]); | 1235 checkDatabaseFlags(o[0]); |
| 1217 checkDatabaseFlags(o[1]); | 1236 checkDatabaseFlags(o[1]); |
| 1218 } | 1237 } |
| 1219 | 1238 |
| 1220 core.int buildCounterSettings = 0; | 1239 core.int buildCounterSettings = 0; |
| 1221 buildSettings() { | 1240 buildSettings() { |
| 1222 var o = new api.Settings(); | 1241 var o = new api.Settings(); |
| 1223 buildCounterSettings++; | 1242 buildCounterSettings++; |
| 1224 if (buildCounterSettings < 3) { | 1243 if (buildCounterSettings < 3) { |
| 1225 o.activationPolicy = "foo"; | 1244 o.activationPolicy = "foo"; |
| 1226 o.authorizedGaeApplications = buildUnnamed3611(); | 1245 o.authorizedGaeApplications = buildUnnamed3605(); |
| 1227 o.backupConfiguration = buildBackupConfiguration(); | 1246 o.backupConfiguration = buildBackupConfiguration(); |
| 1228 o.crashSafeReplicationEnabled = true; | 1247 o.crashSafeReplicationEnabled = true; |
| 1229 o.dataDiskSizeGb = "foo"; | 1248 o.dataDiskSizeGb = "foo"; |
| 1230 o.dataDiskType = "foo"; | 1249 o.dataDiskType = "foo"; |
| 1231 o.databaseFlags = buildUnnamed3612(); | 1250 o.databaseFlags = buildUnnamed3606(); |
| 1232 o.databaseReplicationEnabled = true; | 1251 o.databaseReplicationEnabled = true; |
| 1233 o.ipConfiguration = buildIpConfiguration(); | 1252 o.ipConfiguration = buildIpConfiguration(); |
| 1234 o.kind = "foo"; | 1253 o.kind = "foo"; |
| 1235 o.locationPreference = buildLocationPreference(); | 1254 o.locationPreference = buildLocationPreference(); |
| 1236 o.maintenanceWindow = buildMaintenanceWindow(); | 1255 o.maintenanceWindow = buildMaintenanceWindow(); |
| 1237 o.pricingPlan = "foo"; | 1256 o.pricingPlan = "foo"; |
| 1238 o.replicationType = "foo"; | 1257 o.replicationType = "foo"; |
| 1239 o.settingsVersion = "foo"; | 1258 o.settingsVersion = "foo"; |
| 1240 o.storageAutoResize = true; | 1259 o.storageAutoResize = true; |
| 1241 o.tier = "foo"; | 1260 o.tier = "foo"; |
| 1242 } | 1261 } |
| 1243 buildCounterSettings--; | 1262 buildCounterSettings--; |
| 1244 return o; | 1263 return o; |
| 1245 } | 1264 } |
| 1246 | 1265 |
| 1247 checkSettings(api.Settings o) { | 1266 checkSettings(api.Settings o) { |
| 1248 buildCounterSettings++; | 1267 buildCounterSettings++; |
| 1249 if (buildCounterSettings < 3) { | 1268 if (buildCounterSettings < 3) { |
| 1250 unittest.expect(o.activationPolicy, unittest.equals('foo')); | 1269 unittest.expect(o.activationPolicy, unittest.equals('foo')); |
| 1251 checkUnnamed3611(o.authorizedGaeApplications); | 1270 checkUnnamed3605(o.authorizedGaeApplications); |
| 1252 checkBackupConfiguration(o.backupConfiguration); | 1271 checkBackupConfiguration(o.backupConfiguration); |
| 1253 unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); | 1272 unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); |
| 1254 unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); | 1273 unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); |
| 1255 unittest.expect(o.dataDiskType, unittest.equals('foo')); | 1274 unittest.expect(o.dataDiskType, unittest.equals('foo')); |
| 1256 checkUnnamed3612(o.databaseFlags); | 1275 checkUnnamed3606(o.databaseFlags); |
| 1257 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); | 1276 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); |
| 1258 checkIpConfiguration(o.ipConfiguration); | 1277 checkIpConfiguration(o.ipConfiguration); |
| 1259 unittest.expect(o.kind, unittest.equals('foo')); | 1278 unittest.expect(o.kind, unittest.equals('foo')); |
| 1260 checkLocationPreference(o.locationPreference); | 1279 checkLocationPreference(o.locationPreference); |
| 1261 checkMaintenanceWindow(o.maintenanceWindow); | 1280 checkMaintenanceWindow(o.maintenanceWindow); |
| 1262 unittest.expect(o.pricingPlan, unittest.equals('foo')); | 1281 unittest.expect(o.pricingPlan, unittest.equals('foo')); |
| 1263 unittest.expect(o.replicationType, unittest.equals('foo')); | 1282 unittest.expect(o.replicationType, unittest.equals('foo')); |
| 1264 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 1283 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
| 1265 unittest.expect(o.storageAutoResize, unittest.isTrue); | 1284 unittest.expect(o.storageAutoResize, unittest.isTrue); |
| 1266 unittest.expect(o.tier, unittest.equals('foo')); | 1285 unittest.expect(o.tier, unittest.equals('foo')); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1380 buildCounterSslCertsInsertResponse++; | 1399 buildCounterSslCertsInsertResponse++; |
| 1381 if (buildCounterSslCertsInsertResponse < 3) { | 1400 if (buildCounterSslCertsInsertResponse < 3) { |
| 1382 checkSslCertDetail(o.clientCert); | 1401 checkSslCertDetail(o.clientCert); |
| 1383 unittest.expect(o.kind, unittest.equals('foo')); | 1402 unittest.expect(o.kind, unittest.equals('foo')); |
| 1384 checkOperation(o.operation); | 1403 checkOperation(o.operation); |
| 1385 checkSslCert(o.serverCaCert); | 1404 checkSslCert(o.serverCaCert); |
| 1386 } | 1405 } |
| 1387 buildCounterSslCertsInsertResponse--; | 1406 buildCounterSslCertsInsertResponse--; |
| 1388 } | 1407 } |
| 1389 | 1408 |
| 1390 buildUnnamed3613() { | 1409 buildUnnamed3607() { |
| 1391 var o = new core.List<api.SslCert>(); | 1410 var o = new core.List<api.SslCert>(); |
| 1392 o.add(buildSslCert()); | 1411 o.add(buildSslCert()); |
| 1393 o.add(buildSslCert()); | 1412 o.add(buildSslCert()); |
| 1394 return o; | 1413 return o; |
| 1395 } | 1414 } |
| 1396 | 1415 |
| 1397 checkUnnamed3613(core.List<api.SslCert> o) { | 1416 checkUnnamed3607(core.List<api.SslCert> o) { |
| 1398 unittest.expect(o, unittest.hasLength(2)); | 1417 unittest.expect(o, unittest.hasLength(2)); |
| 1399 checkSslCert(o[0]); | 1418 checkSslCert(o[0]); |
| 1400 checkSslCert(o[1]); | 1419 checkSslCert(o[1]); |
| 1401 } | 1420 } |
| 1402 | 1421 |
| 1403 core.int buildCounterSslCertsListResponse = 0; | 1422 core.int buildCounterSslCertsListResponse = 0; |
| 1404 buildSslCertsListResponse() { | 1423 buildSslCertsListResponse() { |
| 1405 var o = new api.SslCertsListResponse(); | 1424 var o = new api.SslCertsListResponse(); |
| 1406 buildCounterSslCertsListResponse++; | 1425 buildCounterSslCertsListResponse++; |
| 1407 if (buildCounterSslCertsListResponse < 3) { | 1426 if (buildCounterSslCertsListResponse < 3) { |
| 1408 o.items = buildUnnamed3613(); | 1427 o.items = buildUnnamed3607(); |
| 1409 o.kind = "foo"; | 1428 o.kind = "foo"; |
| 1410 } | 1429 } |
| 1411 buildCounterSslCertsListResponse--; | 1430 buildCounterSslCertsListResponse--; |
| 1412 return o; | 1431 return o; |
| 1413 } | 1432 } |
| 1414 | 1433 |
| 1415 checkSslCertsListResponse(api.SslCertsListResponse o) { | 1434 checkSslCertsListResponse(api.SslCertsListResponse o) { |
| 1416 buildCounterSslCertsListResponse++; | 1435 buildCounterSslCertsListResponse++; |
| 1417 if (buildCounterSslCertsListResponse < 3) { | 1436 if (buildCounterSslCertsListResponse < 3) { |
| 1418 checkUnnamed3613(o.items); | 1437 checkUnnamed3607(o.items); |
| 1419 unittest.expect(o.kind, unittest.equals('foo')); | 1438 unittest.expect(o.kind, unittest.equals('foo')); |
| 1420 } | 1439 } |
| 1421 buildCounterSslCertsListResponse--; | 1440 buildCounterSslCertsListResponse--; |
| 1422 } | 1441 } |
| 1423 | 1442 |
| 1424 buildUnnamed3614() { | 1443 buildUnnamed3608() { |
| 1425 var o = new core.List<core.String>(); | 1444 var o = new core.List<core.String>(); |
| 1426 o.add("foo"); | 1445 o.add("foo"); |
| 1427 o.add("foo"); | 1446 o.add("foo"); |
| 1428 return o; | 1447 return o; |
| 1429 } | 1448 } |
| 1430 | 1449 |
| 1431 checkUnnamed3614(core.List<core.String> o) { | 1450 checkUnnamed3608(core.List<core.String> o) { |
| 1432 unittest.expect(o, unittest.hasLength(2)); | 1451 unittest.expect(o, unittest.hasLength(2)); |
| 1433 unittest.expect(o[0], unittest.equals('foo')); | 1452 unittest.expect(o[0], unittest.equals('foo')); |
| 1434 unittest.expect(o[1], unittest.equals('foo')); | 1453 unittest.expect(o[1], unittest.equals('foo')); |
| 1435 } | 1454 } |
| 1436 | 1455 |
| 1437 core.int buildCounterTier = 0; | 1456 core.int buildCounterTier = 0; |
| 1438 buildTier() { | 1457 buildTier() { |
| 1439 var o = new api.Tier(); | 1458 var o = new api.Tier(); |
| 1440 buildCounterTier++; | 1459 buildCounterTier++; |
| 1441 if (buildCounterTier < 3) { | 1460 if (buildCounterTier < 3) { |
| 1442 o.DiskQuota = "foo"; | 1461 o.DiskQuota = "foo"; |
| 1443 o.RAM = "foo"; | 1462 o.RAM = "foo"; |
| 1444 o.kind = "foo"; | 1463 o.kind = "foo"; |
| 1445 o.region = buildUnnamed3614(); | 1464 o.region = buildUnnamed3608(); |
| 1446 o.tier = "foo"; | 1465 o.tier = "foo"; |
| 1447 } | 1466 } |
| 1448 buildCounterTier--; | 1467 buildCounterTier--; |
| 1449 return o; | 1468 return o; |
| 1450 } | 1469 } |
| 1451 | 1470 |
| 1452 checkTier(api.Tier o) { | 1471 checkTier(api.Tier o) { |
| 1453 buildCounterTier++; | 1472 buildCounterTier++; |
| 1454 if (buildCounterTier < 3) { | 1473 if (buildCounterTier < 3) { |
| 1455 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1474 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
| 1456 unittest.expect(o.RAM, unittest.equals('foo')); | 1475 unittest.expect(o.RAM, unittest.equals('foo')); |
| 1457 unittest.expect(o.kind, unittest.equals('foo')); | 1476 unittest.expect(o.kind, unittest.equals('foo')); |
| 1458 checkUnnamed3614(o.region); | 1477 checkUnnamed3608(o.region); |
| 1459 unittest.expect(o.tier, unittest.equals('foo')); | 1478 unittest.expect(o.tier, unittest.equals('foo')); |
| 1460 } | 1479 } |
| 1461 buildCounterTier--; | 1480 buildCounterTier--; |
| 1462 } | 1481 } |
| 1463 | 1482 |
| 1464 buildUnnamed3615() { | 1483 buildUnnamed3609() { |
| 1465 var o = new core.List<api.Tier>(); | 1484 var o = new core.List<api.Tier>(); |
| 1466 o.add(buildTier()); | 1485 o.add(buildTier()); |
| 1467 o.add(buildTier()); | 1486 o.add(buildTier()); |
| 1468 return o; | 1487 return o; |
| 1469 } | 1488 } |
| 1470 | 1489 |
| 1471 checkUnnamed3615(core.List<api.Tier> o) { | 1490 checkUnnamed3609(core.List<api.Tier> o) { |
| 1472 unittest.expect(o, unittest.hasLength(2)); | 1491 unittest.expect(o, unittest.hasLength(2)); |
| 1473 checkTier(o[0]); | 1492 checkTier(o[0]); |
| 1474 checkTier(o[1]); | 1493 checkTier(o[1]); |
| 1475 } | 1494 } |
| 1476 | 1495 |
| 1477 core.int buildCounterTiersListResponse = 0; | 1496 core.int buildCounterTiersListResponse = 0; |
| 1478 buildTiersListResponse() { | 1497 buildTiersListResponse() { |
| 1479 var o = new api.TiersListResponse(); | 1498 var o = new api.TiersListResponse(); |
| 1480 buildCounterTiersListResponse++; | 1499 buildCounterTiersListResponse++; |
| 1481 if (buildCounterTiersListResponse < 3) { | 1500 if (buildCounterTiersListResponse < 3) { |
| 1482 o.items = buildUnnamed3615(); | 1501 o.items = buildUnnamed3609(); |
| 1483 o.kind = "foo"; | 1502 o.kind = "foo"; |
| 1484 } | 1503 } |
| 1485 buildCounterTiersListResponse--; | 1504 buildCounterTiersListResponse--; |
| 1486 return o; | 1505 return o; |
| 1487 } | 1506 } |
| 1488 | 1507 |
| 1489 checkTiersListResponse(api.TiersListResponse o) { | 1508 checkTiersListResponse(api.TiersListResponse o) { |
| 1490 buildCounterTiersListResponse++; | 1509 buildCounterTiersListResponse++; |
| 1491 if (buildCounterTiersListResponse < 3) { | 1510 if (buildCounterTiersListResponse < 3) { |
| 1492 checkUnnamed3615(o.items); | 1511 checkUnnamed3609(o.items); |
| 1493 unittest.expect(o.kind, unittest.equals('foo')); | 1512 unittest.expect(o.kind, unittest.equals('foo')); |
| 1494 } | 1513 } |
| 1495 buildCounterTiersListResponse--; | 1514 buildCounterTiersListResponse--; |
| 1496 } | 1515 } |
| 1497 | 1516 |
| 1517 core.int buildCounterTruncateLogContext = 0; |
| 1518 buildTruncateLogContext() { |
| 1519 var o = new api.TruncateLogContext(); |
| 1520 buildCounterTruncateLogContext++; |
| 1521 if (buildCounterTruncateLogContext < 3) { |
| 1522 o.kind = "foo"; |
| 1523 o.logType = "foo"; |
| 1524 } |
| 1525 buildCounterTruncateLogContext--; |
| 1526 return o; |
| 1527 } |
| 1528 |
| 1529 checkTruncateLogContext(api.TruncateLogContext o) { |
| 1530 buildCounterTruncateLogContext++; |
| 1531 if (buildCounterTruncateLogContext < 3) { |
| 1532 unittest.expect(o.kind, unittest.equals('foo')); |
| 1533 unittest.expect(o.logType, unittest.equals('foo')); |
| 1534 } |
| 1535 buildCounterTruncateLogContext--; |
| 1536 } |
| 1537 |
| 1498 core.int buildCounterUser = 0; | 1538 core.int buildCounterUser = 0; |
| 1499 buildUser() { | 1539 buildUser() { |
| 1500 var o = new api.User(); | 1540 var o = new api.User(); |
| 1501 buildCounterUser++; | 1541 buildCounterUser++; |
| 1502 if (buildCounterUser < 3) { | 1542 if (buildCounterUser < 3) { |
| 1503 o.etag = "foo"; | 1543 o.etag = "foo"; |
| 1504 o.host = "foo"; | 1544 o.host = "foo"; |
| 1505 o.instance = "foo"; | 1545 o.instance = "foo"; |
| 1506 o.kind = "foo"; | 1546 o.kind = "foo"; |
| 1507 o.name = "foo"; | 1547 o.name = "foo"; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1519 unittest.expect(o.host, unittest.equals('foo')); | 1559 unittest.expect(o.host, unittest.equals('foo')); |
| 1520 unittest.expect(o.instance, unittest.equals('foo')); | 1560 unittest.expect(o.instance, unittest.equals('foo')); |
| 1521 unittest.expect(o.kind, unittest.equals('foo')); | 1561 unittest.expect(o.kind, unittest.equals('foo')); |
| 1522 unittest.expect(o.name, unittest.equals('foo')); | 1562 unittest.expect(o.name, unittest.equals('foo')); |
| 1523 unittest.expect(o.password, unittest.equals('foo')); | 1563 unittest.expect(o.password, unittest.equals('foo')); |
| 1524 unittest.expect(o.project, unittest.equals('foo')); | 1564 unittest.expect(o.project, unittest.equals('foo')); |
| 1525 } | 1565 } |
| 1526 buildCounterUser--; | 1566 buildCounterUser--; |
| 1527 } | 1567 } |
| 1528 | 1568 |
| 1529 buildUnnamed3616() { | 1569 buildUnnamed3610() { |
| 1530 var o = new core.List<api.User>(); | 1570 var o = new core.List<api.User>(); |
| 1531 o.add(buildUser()); | 1571 o.add(buildUser()); |
| 1532 o.add(buildUser()); | 1572 o.add(buildUser()); |
| 1533 return o; | 1573 return o; |
| 1534 } | 1574 } |
| 1535 | 1575 |
| 1536 checkUnnamed3616(core.List<api.User> o) { | 1576 checkUnnamed3610(core.List<api.User> o) { |
| 1537 unittest.expect(o, unittest.hasLength(2)); | 1577 unittest.expect(o, unittest.hasLength(2)); |
| 1538 checkUser(o[0]); | 1578 checkUser(o[0]); |
| 1539 checkUser(o[1]); | 1579 checkUser(o[1]); |
| 1540 } | 1580 } |
| 1541 | 1581 |
| 1542 core.int buildCounterUsersListResponse = 0; | 1582 core.int buildCounterUsersListResponse = 0; |
| 1543 buildUsersListResponse() { | 1583 buildUsersListResponse() { |
| 1544 var o = new api.UsersListResponse(); | 1584 var o = new api.UsersListResponse(); |
| 1545 buildCounterUsersListResponse++; | 1585 buildCounterUsersListResponse++; |
| 1546 if (buildCounterUsersListResponse < 3) { | 1586 if (buildCounterUsersListResponse < 3) { |
| 1547 o.items = buildUnnamed3616(); | 1587 o.items = buildUnnamed3610(); |
| 1548 o.kind = "foo"; | 1588 o.kind = "foo"; |
| 1549 o.nextPageToken = "foo"; | 1589 o.nextPageToken = "foo"; |
| 1550 } | 1590 } |
| 1551 buildCounterUsersListResponse--; | 1591 buildCounterUsersListResponse--; |
| 1552 return o; | 1592 return o; |
| 1553 } | 1593 } |
| 1554 | 1594 |
| 1555 checkUsersListResponse(api.UsersListResponse o) { | 1595 checkUsersListResponse(api.UsersListResponse o) { |
| 1556 buildCounterUsersListResponse++; | 1596 buildCounterUsersListResponse++; |
| 1557 if (buildCounterUsersListResponse < 3) { | 1597 if (buildCounterUsersListResponse < 3) { |
| 1558 checkUnnamed3616(o.items); | 1598 checkUnnamed3610(o.items); |
| 1559 unittest.expect(o.kind, unittest.equals('foo')); | 1599 unittest.expect(o.kind, unittest.equals('foo')); |
| 1560 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1600 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1561 } | 1601 } |
| 1562 buildCounterUsersListResponse--; | 1602 buildCounterUsersListResponse--; |
| 1563 } | 1603 } |
| 1564 | 1604 |
| 1565 | 1605 |
| 1566 main() { | 1606 main() { |
| 1567 unittest.group("obj-schema-AclEntry", () { | 1607 unittest.group("obj-schema-AclEntry", () { |
| 1568 unittest.test("to-json--from-json", () { | 1608 unittest.test("to-json--from-json", () { |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1782 | 1822 |
| 1783 unittest.group("obj-schema-InstancesRestoreBackupRequest", () { | 1823 unittest.group("obj-schema-InstancesRestoreBackupRequest", () { |
| 1784 unittest.test("to-json--from-json", () { | 1824 unittest.test("to-json--from-json", () { |
| 1785 var o = buildInstancesRestoreBackupRequest(); | 1825 var o = buildInstancesRestoreBackupRequest(); |
| 1786 var od = new api.InstancesRestoreBackupRequest.fromJson(o.toJson()); | 1826 var od = new api.InstancesRestoreBackupRequest.fromJson(o.toJson()); |
| 1787 checkInstancesRestoreBackupRequest(od); | 1827 checkInstancesRestoreBackupRequest(od); |
| 1788 }); | 1828 }); |
| 1789 }); | 1829 }); |
| 1790 | 1830 |
| 1791 | 1831 |
| 1832 unittest.group("obj-schema-InstancesTruncateLogRequest", () { |
| 1833 unittest.test("to-json--from-json", () { |
| 1834 var o = buildInstancesTruncateLogRequest(); |
| 1835 var od = new api.InstancesTruncateLogRequest.fromJson(o.toJson()); |
| 1836 checkInstancesTruncateLogRequest(od); |
| 1837 }); |
| 1838 }); |
| 1839 |
| 1840 |
| 1792 unittest.group("obj-schema-IpConfiguration", () { | 1841 unittest.group("obj-schema-IpConfiguration", () { |
| 1793 unittest.test("to-json--from-json", () { | 1842 unittest.test("to-json--from-json", () { |
| 1794 var o = buildIpConfiguration(); | 1843 var o = buildIpConfiguration(); |
| 1795 var od = new api.IpConfiguration.fromJson(o.toJson()); | 1844 var od = new api.IpConfiguration.fromJson(o.toJson()); |
| 1796 checkIpConfiguration(od); | 1845 checkIpConfiguration(od); |
| 1797 }); | 1846 }); |
| 1798 }); | 1847 }); |
| 1799 | 1848 |
| 1800 | 1849 |
| 1801 unittest.group("obj-schema-IpMapping", () { | 1850 unittest.group("obj-schema-IpMapping", () { |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1971 | 2020 |
| 1972 unittest.group("obj-schema-TiersListResponse", () { | 2021 unittest.group("obj-schema-TiersListResponse", () { |
| 1973 unittest.test("to-json--from-json", () { | 2022 unittest.test("to-json--from-json", () { |
| 1974 var o = buildTiersListResponse(); | 2023 var o = buildTiersListResponse(); |
| 1975 var od = new api.TiersListResponse.fromJson(o.toJson()); | 2024 var od = new api.TiersListResponse.fromJson(o.toJson()); |
| 1976 checkTiersListResponse(od); | 2025 checkTiersListResponse(od); |
| 1977 }); | 2026 }); |
| 1978 }); | 2027 }); |
| 1979 | 2028 |
| 1980 | 2029 |
| 2030 unittest.group("obj-schema-TruncateLogContext", () { |
| 2031 unittest.test("to-json--from-json", () { |
| 2032 var o = buildTruncateLogContext(); |
| 2033 var od = new api.TruncateLogContext.fromJson(o.toJson()); |
| 2034 checkTruncateLogContext(od); |
| 2035 }); |
| 2036 }); |
| 2037 |
| 2038 |
| 1981 unittest.group("obj-schema-User", () { | 2039 unittest.group("obj-schema-User", () { |
| 1982 unittest.test("to-json--from-json", () { | 2040 unittest.test("to-json--from-json", () { |
| 1983 var o = buildUser(); | 2041 var o = buildUser(); |
| 1984 var od = new api.User.fromJson(o.toJson()); | 2042 var od = new api.User.fromJson(o.toJson()); |
| 1985 checkUser(od); | 2043 checkUser(od); |
| 1986 }); | 2044 }); |
| 1987 }); | 2045 }); |
| 1988 | 2046 |
| 1989 | 2047 |
| 1990 unittest.group("obj-schema-UsersListResponse", () { | 2048 unittest.group("obj-schema-UsersListResponse", () { |
| (...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3620 "content-type" : "application/json; charset=utf-8", | 3678 "content-type" : "application/json; charset=utf-8", |
| 3621 }; | 3679 }; |
| 3622 var resp = convert.JSON.encode(buildOperation()); | 3680 var resp = convert.JSON.encode(buildOperation()); |
| 3623 return new async.Future.value(stringResponse(200, h, resp)); | 3681 return new async.Future.value(stringResponse(200, h, resp)); |
| 3624 }), true); | 3682 }), true); |
| 3625 res.stopReplica(arg_project, arg_instance).then(unittest.expectAsync(((api
.Operation response) { | 3683 res.stopReplica(arg_project, arg_instance).then(unittest.expectAsync(((api
.Operation response) { |
| 3626 checkOperation(response); | 3684 checkOperation(response); |
| 3627 }))); | 3685 }))); |
| 3628 }); | 3686 }); |
| 3629 | 3687 |
| 3688 unittest.test("method--truncateLog", () { |
| 3689 |
| 3690 var mock = new HttpServerMock(); |
| 3691 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; |
| 3692 var arg_request = buildInstancesTruncateLogRequest(); |
| 3693 var arg_project = "foo"; |
| 3694 var arg_instance = "foo"; |
| 3695 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3696 var obj = new api.InstancesTruncateLogRequest.fromJson(json); |
| 3697 checkInstancesTruncateLogRequest(obj); |
| 3698 |
| 3699 var path = (req.url).path; |
| 3700 var pathOffset = 0; |
| 3701 var index; |
| 3702 var subPart; |
| 3703 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3704 pathOffset += 1; |
| 3705 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta4/")); |
| 3706 pathOffset += 12; |
| 3707 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
| 3708 pathOffset += 9; |
| 3709 index = path.indexOf("/instances/", pathOffset); |
| 3710 unittest.expect(index >= 0, unittest.isTrue); |
| 3711 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3712 pathOffset = index; |
| 3713 unittest.expect(subPart, unittest.equals("$arg_project")); |
| 3714 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
| 3715 pathOffset += 11; |
| 3716 index = path.indexOf("/truncateLog", pathOffset); |
| 3717 unittest.expect(index >= 0, unittest.isTrue); |
| 3718 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3719 pathOffset = index; |
| 3720 unittest.expect(subPart, unittest.equals("$arg_instance")); |
| 3721 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/truncateLog")); |
| 3722 pathOffset += 12; |
| 3723 |
| 3724 var query = (req.url).query; |
| 3725 var queryOffset = 0; |
| 3726 var queryMap = {}; |
| 3727 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3728 parseBool(n) { |
| 3729 if (n == "true") return true; |
| 3730 if (n == "false") return false; |
| 3731 if (n == null) return null; |
| 3732 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3733 } |
| 3734 if (query.length > 0) { |
| 3735 for (var part in query.split("&")) { |
| 3736 var keyvalue = part.split("="); |
| 3737 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3738 } |
| 3739 } |
| 3740 |
| 3741 |
| 3742 var h = { |
| 3743 "content-type" : "application/json; charset=utf-8", |
| 3744 }; |
| 3745 var resp = convert.JSON.encode(buildOperation()); |
| 3746 return new async.Future.value(stringResponse(200, h, resp)); |
| 3747 }), true); |
| 3748 res.truncateLog(arg_request, arg_project, arg_instance).then(unittest.expe
ctAsync(((api.Operation response) { |
| 3749 checkOperation(response); |
| 3750 }))); |
| 3751 }); |
| 3752 |
| 3630 unittest.test("method--update", () { | 3753 unittest.test("method--update", () { |
| 3631 | 3754 |
| 3632 var mock = new HttpServerMock(); | 3755 var mock = new HttpServerMock(); |
| 3633 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; | 3756 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; |
| 3634 var arg_request = buildDatabaseInstance(); | 3757 var arg_request = buildDatabaseInstance(); |
| 3635 var arg_project = "foo"; | 3758 var arg_project = "foo"; |
| 3636 var arg_instance = "foo"; | 3759 var arg_instance = "foo"; |
| 3637 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3760 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3638 var obj = new api.DatabaseInstance.fromJson(json); | 3761 var obj = new api.DatabaseInstance.fromJson(json); |
| 3639 checkDatabaseInstance(obj); | 3762 checkDatabaseInstance(obj); |
| (...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4452 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { | 4575 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { |
| 4453 checkOperation(response); | 4576 checkOperation(response); |
| 4454 }))); | 4577 }))); |
| 4455 }); | 4578 }); |
| 4456 | 4579 |
| 4457 }); | 4580 }); |
| 4458 | 4581 |
| 4459 | 4582 |
| 4460 } | 4583 } |
| 4461 | 4584 |
| OLD | NEW |