| OLD | NEW |
| 1 library googleapis_beta.sqladmin.v1beta4.test; | 1 library googleapis_beta.sqladmin.v1beta4.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 unittest.expect(o.instance, unittest.equals('foo')); | 131 unittest.expect(o.instance, unittest.equals('foo')); |
| 132 unittest.expect(o.kind, unittest.equals('foo')); | 132 unittest.expect(o.kind, unittest.equals('foo')); |
| 133 unittest.expect(o.selfLink, unittest.equals('foo')); | 133 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 134 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 134 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 135 unittest.expect(o.status, unittest.equals('foo')); | 135 unittest.expect(o.status, unittest.equals('foo')); |
| 136 unittest.expect(o.windowStartTime, unittest.equals(core.DateTime.parse("2002
-02-27T14:01:02"))); | 136 unittest.expect(o.windowStartTime, unittest.equals(core.DateTime.parse("2002
-02-27T14:01:02"))); |
| 137 } | 137 } |
| 138 buildCounterBackupRun--; | 138 buildCounterBackupRun--; |
| 139 } | 139 } |
| 140 | 140 |
| 141 buildUnnamed1701() { | 141 buildUnnamed2601() { |
| 142 var o = new core.List<api.BackupRun>(); | 142 var o = new core.List<api.BackupRun>(); |
| 143 o.add(buildBackupRun()); | 143 o.add(buildBackupRun()); |
| 144 o.add(buildBackupRun()); | 144 o.add(buildBackupRun()); |
| 145 return o; | 145 return o; |
| 146 } | 146 } |
| 147 | 147 |
| 148 checkUnnamed1701(core.List<api.BackupRun> o) { | 148 checkUnnamed2601(core.List<api.BackupRun> o) { |
| 149 unittest.expect(o, unittest.hasLength(2)); | 149 unittest.expect(o, unittest.hasLength(2)); |
| 150 checkBackupRun(o[0]); | 150 checkBackupRun(o[0]); |
| 151 checkBackupRun(o[1]); | 151 checkBackupRun(o[1]); |
| 152 } | 152 } |
| 153 | 153 |
| 154 core.int buildCounterBackupRunsListResponse = 0; | 154 core.int buildCounterBackupRunsListResponse = 0; |
| 155 buildBackupRunsListResponse() { | 155 buildBackupRunsListResponse() { |
| 156 var o = new api.BackupRunsListResponse(); | 156 var o = new api.BackupRunsListResponse(); |
| 157 buildCounterBackupRunsListResponse++; | 157 buildCounterBackupRunsListResponse++; |
| 158 if (buildCounterBackupRunsListResponse < 3) { | 158 if (buildCounterBackupRunsListResponse < 3) { |
| 159 o.items = buildUnnamed1701(); | 159 o.items = buildUnnamed2601(); |
| 160 o.kind = "foo"; | 160 o.kind = "foo"; |
| 161 o.nextPageToken = "foo"; | 161 o.nextPageToken = "foo"; |
| 162 } | 162 } |
| 163 buildCounterBackupRunsListResponse--; | 163 buildCounterBackupRunsListResponse--; |
| 164 return o; | 164 return o; |
| 165 } | 165 } |
| 166 | 166 |
| 167 checkBackupRunsListResponse(api.BackupRunsListResponse o) { | 167 checkBackupRunsListResponse(api.BackupRunsListResponse o) { |
| 168 buildCounterBackupRunsListResponse++; | 168 buildCounterBackupRunsListResponse++; |
| 169 if (buildCounterBackupRunsListResponse < 3) { | 169 if (buildCounterBackupRunsListResponse < 3) { |
| 170 checkUnnamed1701(o.items); | 170 checkUnnamed2601(o.items); |
| 171 unittest.expect(o.kind, unittest.equals('foo')); | 171 unittest.expect(o.kind, unittest.equals('foo')); |
| 172 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 172 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 173 } | 173 } |
| 174 buildCounterBackupRunsListResponse--; | 174 buildCounterBackupRunsListResponse--; |
| 175 } | 175 } |
| 176 | 176 |
| 177 core.int buildCounterBinLogCoordinates = 0; | 177 core.int buildCounterBinLogCoordinates = 0; |
| 178 buildBinLogCoordinates() { | 178 buildBinLogCoordinates() { |
| 179 var o = new api.BinLogCoordinates(); | 179 var o = new api.BinLogCoordinates(); |
| 180 buildCounterBinLogCoordinates++; | 180 buildCounterBinLogCoordinates++; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 267 |
| 268 checkDatabaseFlags(api.DatabaseFlags o) { | 268 checkDatabaseFlags(api.DatabaseFlags o) { |
| 269 buildCounterDatabaseFlags++; | 269 buildCounterDatabaseFlags++; |
| 270 if (buildCounterDatabaseFlags < 3) { | 270 if (buildCounterDatabaseFlags < 3) { |
| 271 unittest.expect(o.name, unittest.equals('foo')); | 271 unittest.expect(o.name, unittest.equals('foo')); |
| 272 unittest.expect(o.value, unittest.equals('foo')); | 272 unittest.expect(o.value, unittest.equals('foo')); |
| 273 } | 273 } |
| 274 buildCounterDatabaseFlags--; | 274 buildCounterDatabaseFlags--; |
| 275 } | 275 } |
| 276 | 276 |
| 277 buildUnnamed1702() { | 277 buildUnnamed2602() { |
| 278 var o = new core.List<api.IpMapping>(); | 278 var o = new core.List<api.IpMapping>(); |
| 279 o.add(buildIpMapping()); | 279 o.add(buildIpMapping()); |
| 280 o.add(buildIpMapping()); | 280 o.add(buildIpMapping()); |
| 281 return o; | 281 return o; |
| 282 } | 282 } |
| 283 | 283 |
| 284 checkUnnamed1702(core.List<api.IpMapping> o) { | 284 checkUnnamed2602(core.List<api.IpMapping> o) { |
| 285 unittest.expect(o, unittest.hasLength(2)); | 285 unittest.expect(o, unittest.hasLength(2)); |
| 286 checkIpMapping(o[0]); | 286 checkIpMapping(o[0]); |
| 287 checkIpMapping(o[1]); | 287 checkIpMapping(o[1]); |
| 288 } | 288 } |
| 289 | 289 |
| 290 buildUnnamed1703() { | 290 buildUnnamed2603() { |
| 291 var o = new core.List<core.String>(); | 291 var o = new core.List<core.String>(); |
| 292 o.add("foo"); | 292 o.add("foo"); |
| 293 o.add("foo"); | 293 o.add("foo"); |
| 294 return o; | 294 return o; |
| 295 } | 295 } |
| 296 | 296 |
| 297 checkUnnamed1703(core.List<core.String> o) { | 297 checkUnnamed2603(core.List<core.String> o) { |
| 298 unittest.expect(o, unittest.hasLength(2)); | 298 unittest.expect(o, unittest.hasLength(2)); |
| 299 unittest.expect(o[0], unittest.equals('foo')); | 299 unittest.expect(o[0], unittest.equals('foo')); |
| 300 unittest.expect(o[1], unittest.equals('foo')); | 300 unittest.expect(o[1], unittest.equals('foo')); |
| 301 } | 301 } |
| 302 | 302 |
| 303 core.int buildCounterDatabaseInstance = 0; | 303 core.int buildCounterDatabaseInstance = 0; |
| 304 buildDatabaseInstance() { | 304 buildDatabaseInstance() { |
| 305 var o = new api.DatabaseInstance(); | 305 var o = new api.DatabaseInstance(); |
| 306 buildCounterDatabaseInstance++; | 306 buildCounterDatabaseInstance++; |
| 307 if (buildCounterDatabaseInstance < 3) { | 307 if (buildCounterDatabaseInstance < 3) { |
| 308 o.currentDiskSize = "foo"; | 308 o.currentDiskSize = "foo"; |
| 309 o.databaseVersion = "foo"; | 309 o.databaseVersion = "foo"; |
| 310 o.etag = "foo"; | 310 o.etag = "foo"; |
| 311 o.instanceType = "foo"; | 311 o.instanceType = "foo"; |
| 312 o.ipAddresses = buildUnnamed1702(); | 312 o.ipAddresses = buildUnnamed2602(); |
| 313 o.ipv6Address = "foo"; | 313 o.ipv6Address = "foo"; |
| 314 o.kind = "foo"; | 314 o.kind = "foo"; |
| 315 o.masterInstanceName = "foo"; | 315 o.masterInstanceName = "foo"; |
| 316 o.maxDiskSize = "foo"; | 316 o.maxDiskSize = "foo"; |
| 317 o.name = "foo"; | 317 o.name = "foo"; |
| 318 o.onPremisesConfiguration = buildOnPremisesConfiguration(); | 318 o.onPremisesConfiguration = buildOnPremisesConfiguration(); |
| 319 o.project = "foo"; | 319 o.project = "foo"; |
| 320 o.region = "foo"; | 320 o.region = "foo"; |
| 321 o.replicaConfiguration = buildReplicaConfiguration(); | 321 o.replicaConfiguration = buildReplicaConfiguration(); |
| 322 o.replicaNames = buildUnnamed1703(); | 322 o.replicaNames = buildUnnamed2603(); |
| 323 o.selfLink = "foo"; | 323 o.selfLink = "foo"; |
| 324 o.serverCaCert = buildSslCert(); | 324 o.serverCaCert = buildSslCert(); |
| 325 o.serviceAccountEmailAddress = "foo"; | 325 o.serviceAccountEmailAddress = "foo"; |
| 326 o.settings = buildSettings(); | 326 o.settings = buildSettings(); |
| 327 o.state = "foo"; | 327 o.state = "foo"; |
| 328 } | 328 } |
| 329 buildCounterDatabaseInstance--; | 329 buildCounterDatabaseInstance--; |
| 330 return o; | 330 return o; |
| 331 } | 331 } |
| 332 | 332 |
| 333 checkDatabaseInstance(api.DatabaseInstance o) { | 333 checkDatabaseInstance(api.DatabaseInstance o) { |
| 334 buildCounterDatabaseInstance++; | 334 buildCounterDatabaseInstance++; |
| 335 if (buildCounterDatabaseInstance < 3) { | 335 if (buildCounterDatabaseInstance < 3) { |
| 336 unittest.expect(o.currentDiskSize, unittest.equals('foo')); | 336 unittest.expect(o.currentDiskSize, unittest.equals('foo')); |
| 337 unittest.expect(o.databaseVersion, unittest.equals('foo')); | 337 unittest.expect(o.databaseVersion, unittest.equals('foo')); |
| 338 unittest.expect(o.etag, unittest.equals('foo')); | 338 unittest.expect(o.etag, unittest.equals('foo')); |
| 339 unittest.expect(o.instanceType, unittest.equals('foo')); | 339 unittest.expect(o.instanceType, unittest.equals('foo')); |
| 340 checkUnnamed1702(o.ipAddresses); | 340 checkUnnamed2602(o.ipAddresses); |
| 341 unittest.expect(o.ipv6Address, unittest.equals('foo')); | 341 unittest.expect(o.ipv6Address, unittest.equals('foo')); |
| 342 unittest.expect(o.kind, unittest.equals('foo')); | 342 unittest.expect(o.kind, unittest.equals('foo')); |
| 343 unittest.expect(o.masterInstanceName, unittest.equals('foo')); | 343 unittest.expect(o.masterInstanceName, unittest.equals('foo')); |
| 344 unittest.expect(o.maxDiskSize, unittest.equals('foo')); | 344 unittest.expect(o.maxDiskSize, unittest.equals('foo')); |
| 345 unittest.expect(o.name, unittest.equals('foo')); | 345 unittest.expect(o.name, unittest.equals('foo')); |
| 346 checkOnPremisesConfiguration(o.onPremisesConfiguration); | 346 checkOnPremisesConfiguration(o.onPremisesConfiguration); |
| 347 unittest.expect(o.project, unittest.equals('foo')); | 347 unittest.expect(o.project, unittest.equals('foo')); |
| 348 unittest.expect(o.region, unittest.equals('foo')); | 348 unittest.expect(o.region, unittest.equals('foo')); |
| 349 checkReplicaConfiguration(o.replicaConfiguration); | 349 checkReplicaConfiguration(o.replicaConfiguration); |
| 350 checkUnnamed1703(o.replicaNames); | 350 checkUnnamed2603(o.replicaNames); |
| 351 unittest.expect(o.selfLink, unittest.equals('foo')); | 351 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 352 checkSslCert(o.serverCaCert); | 352 checkSslCert(o.serverCaCert); |
| 353 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); | 353 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); |
| 354 checkSettings(o.settings); | 354 checkSettings(o.settings); |
| 355 unittest.expect(o.state, unittest.equals('foo')); | 355 unittest.expect(o.state, unittest.equals('foo')); |
| 356 } | 356 } |
| 357 buildCounterDatabaseInstance--; | 357 buildCounterDatabaseInstance--; |
| 358 } | 358 } |
| 359 | 359 |
| 360 buildUnnamed1704() { | 360 buildUnnamed2604() { |
| 361 var o = new core.List<api.Database>(); | 361 var o = new core.List<api.Database>(); |
| 362 o.add(buildDatabase()); | 362 o.add(buildDatabase()); |
| 363 o.add(buildDatabase()); | 363 o.add(buildDatabase()); |
| 364 return o; | 364 return o; |
| 365 } | 365 } |
| 366 | 366 |
| 367 checkUnnamed1704(core.List<api.Database> o) { | 367 checkUnnamed2604(core.List<api.Database> o) { |
| 368 unittest.expect(o, unittest.hasLength(2)); | 368 unittest.expect(o, unittest.hasLength(2)); |
| 369 checkDatabase(o[0]); | 369 checkDatabase(o[0]); |
| 370 checkDatabase(o[1]); | 370 checkDatabase(o[1]); |
| 371 } | 371 } |
| 372 | 372 |
| 373 core.int buildCounterDatabasesListResponse = 0; | 373 core.int buildCounterDatabasesListResponse = 0; |
| 374 buildDatabasesListResponse() { | 374 buildDatabasesListResponse() { |
| 375 var o = new api.DatabasesListResponse(); | 375 var o = new api.DatabasesListResponse(); |
| 376 buildCounterDatabasesListResponse++; | 376 buildCounterDatabasesListResponse++; |
| 377 if (buildCounterDatabasesListResponse < 3) { | 377 if (buildCounterDatabasesListResponse < 3) { |
| 378 o.items = buildUnnamed1704(); | 378 o.items = buildUnnamed2604(); |
| 379 o.kind = "foo"; | 379 o.kind = "foo"; |
| 380 } | 380 } |
| 381 buildCounterDatabasesListResponse--; | 381 buildCounterDatabasesListResponse--; |
| 382 return o; | 382 return o; |
| 383 } | 383 } |
| 384 | 384 |
| 385 checkDatabasesListResponse(api.DatabasesListResponse o) { | 385 checkDatabasesListResponse(api.DatabasesListResponse o) { |
| 386 buildCounterDatabasesListResponse++; | 386 buildCounterDatabasesListResponse++; |
| 387 if (buildCounterDatabasesListResponse < 3) { | 387 if (buildCounterDatabasesListResponse < 3) { |
| 388 checkUnnamed1704(o.items); | 388 checkUnnamed2604(o.items); |
| 389 unittest.expect(o.kind, unittest.equals('foo')); | 389 unittest.expect(o.kind, unittest.equals('foo')); |
| 390 } | 390 } |
| 391 buildCounterDatabasesListResponse--; | 391 buildCounterDatabasesListResponse--; |
| 392 } | 392 } |
| 393 | 393 |
| 394 core.int buildCounterExportContextCsvExportOptions = 0; | 394 core.int buildCounterExportContextCsvExportOptions = 0; |
| 395 buildExportContextCsvExportOptions() { | 395 buildExportContextCsvExportOptions() { |
| 396 var o = new api.ExportContextCsvExportOptions(); | 396 var o = new api.ExportContextCsvExportOptions(); |
| 397 buildCounterExportContextCsvExportOptions++; | 397 buildCounterExportContextCsvExportOptions++; |
| 398 if (buildCounterExportContextCsvExportOptions < 3) { | 398 if (buildCounterExportContextCsvExportOptions < 3) { |
| 399 o.selectQuery = "foo"; | 399 o.selectQuery = "foo"; |
| 400 } | 400 } |
| 401 buildCounterExportContextCsvExportOptions--; | 401 buildCounterExportContextCsvExportOptions--; |
| 402 return o; | 402 return o; |
| 403 } | 403 } |
| 404 | 404 |
| 405 checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { | 405 checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { |
| 406 buildCounterExportContextCsvExportOptions++; | 406 buildCounterExportContextCsvExportOptions++; |
| 407 if (buildCounterExportContextCsvExportOptions < 3) { | 407 if (buildCounterExportContextCsvExportOptions < 3) { |
| 408 unittest.expect(o.selectQuery, unittest.equals('foo')); | 408 unittest.expect(o.selectQuery, unittest.equals('foo')); |
| 409 } | 409 } |
| 410 buildCounterExportContextCsvExportOptions--; | 410 buildCounterExportContextCsvExportOptions--; |
| 411 } | 411 } |
| 412 | 412 |
| 413 buildUnnamed1705() { | 413 buildUnnamed2605() { |
| 414 var o = new core.List<core.String>(); | 414 var o = new core.List<core.String>(); |
| 415 o.add("foo"); | 415 o.add("foo"); |
| 416 o.add("foo"); | 416 o.add("foo"); |
| 417 return o; | 417 return o; |
| 418 } | 418 } |
| 419 | 419 |
| 420 checkUnnamed1705(core.List<core.String> o) { | 420 checkUnnamed2605(core.List<core.String> o) { |
| 421 unittest.expect(o, unittest.hasLength(2)); | 421 unittest.expect(o, unittest.hasLength(2)); |
| 422 unittest.expect(o[0], unittest.equals('foo')); | 422 unittest.expect(o[0], unittest.equals('foo')); |
| 423 unittest.expect(o[1], unittest.equals('foo')); | 423 unittest.expect(o[1], unittest.equals('foo')); |
| 424 } | 424 } |
| 425 | 425 |
| 426 buildUnnamed1706() { | 426 buildUnnamed2606() { |
| 427 var o = new core.List<core.String>(); | 427 var o = new core.List<core.String>(); |
| 428 o.add("foo"); | 428 o.add("foo"); |
| 429 o.add("foo"); | 429 o.add("foo"); |
| 430 return o; | 430 return o; |
| 431 } | 431 } |
| 432 | 432 |
| 433 checkUnnamed1706(core.List<core.String> o) { | 433 checkUnnamed2606(core.List<core.String> o) { |
| 434 unittest.expect(o, unittest.hasLength(2)); | 434 unittest.expect(o, unittest.hasLength(2)); |
| 435 unittest.expect(o[0], unittest.equals('foo')); | 435 unittest.expect(o[0], unittest.equals('foo')); |
| 436 unittest.expect(o[1], unittest.equals('foo')); | 436 unittest.expect(o[1], unittest.equals('foo')); |
| 437 } | 437 } |
| 438 | 438 |
| 439 core.int buildCounterExportContextSqlExportOptions = 0; | 439 core.int buildCounterExportContextSqlExportOptions = 0; |
| 440 buildExportContextSqlExportOptions() { | 440 buildExportContextSqlExportOptions() { |
| 441 var o = new api.ExportContextSqlExportOptions(); | 441 var o = new api.ExportContextSqlExportOptions(); |
| 442 buildCounterExportContextSqlExportOptions++; | 442 buildCounterExportContextSqlExportOptions++; |
| 443 if (buildCounterExportContextSqlExportOptions < 3) { | 443 if (buildCounterExportContextSqlExportOptions < 3) { |
| 444 o.tables = buildUnnamed1706(); | 444 o.tables = buildUnnamed2606(); |
| 445 } | 445 } |
| 446 buildCounterExportContextSqlExportOptions--; | 446 buildCounterExportContextSqlExportOptions--; |
| 447 return o; | 447 return o; |
| 448 } | 448 } |
| 449 | 449 |
| 450 checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) { | 450 checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) { |
| 451 buildCounterExportContextSqlExportOptions++; | 451 buildCounterExportContextSqlExportOptions++; |
| 452 if (buildCounterExportContextSqlExportOptions < 3) { | 452 if (buildCounterExportContextSqlExportOptions < 3) { |
| 453 checkUnnamed1706(o.tables); | 453 checkUnnamed2606(o.tables); |
| 454 } | 454 } |
| 455 buildCounterExportContextSqlExportOptions--; | 455 buildCounterExportContextSqlExportOptions--; |
| 456 } | 456 } |
| 457 | 457 |
| 458 core.int buildCounterExportContext = 0; | 458 core.int buildCounterExportContext = 0; |
| 459 buildExportContext() { | 459 buildExportContext() { |
| 460 var o = new api.ExportContext(); | 460 var o = new api.ExportContext(); |
| 461 buildCounterExportContext++; | 461 buildCounterExportContext++; |
| 462 if (buildCounterExportContext < 3) { | 462 if (buildCounterExportContext < 3) { |
| 463 o.csvExportOptions = buildExportContextCsvExportOptions(); | 463 o.csvExportOptions = buildExportContextCsvExportOptions(); |
| 464 o.databases = buildUnnamed1705(); | 464 o.databases = buildUnnamed2605(); |
| 465 o.fileType = "foo"; | 465 o.fileType = "foo"; |
| 466 o.kind = "foo"; | 466 o.kind = "foo"; |
| 467 o.sqlExportOptions = buildExportContextSqlExportOptions(); | 467 o.sqlExportOptions = buildExportContextSqlExportOptions(); |
| 468 o.uri = "foo"; | 468 o.uri = "foo"; |
| 469 } | 469 } |
| 470 buildCounterExportContext--; | 470 buildCounterExportContext--; |
| 471 return o; | 471 return o; |
| 472 } | 472 } |
| 473 | 473 |
| 474 checkExportContext(api.ExportContext o) { | 474 checkExportContext(api.ExportContext o) { |
| 475 buildCounterExportContext++; | 475 buildCounterExportContext++; |
| 476 if (buildCounterExportContext < 3) { | 476 if (buildCounterExportContext < 3) { |
| 477 checkExportContextCsvExportOptions(o.csvExportOptions); | 477 checkExportContextCsvExportOptions(o.csvExportOptions); |
| 478 checkUnnamed1705(o.databases); | 478 checkUnnamed2605(o.databases); |
| 479 unittest.expect(o.fileType, unittest.equals('foo')); | 479 unittest.expect(o.fileType, unittest.equals('foo')); |
| 480 unittest.expect(o.kind, unittest.equals('foo')); | 480 unittest.expect(o.kind, unittest.equals('foo')); |
| 481 checkExportContextSqlExportOptions(o.sqlExportOptions); | 481 checkExportContextSqlExportOptions(o.sqlExportOptions); |
| 482 unittest.expect(o.uri, unittest.equals('foo')); | 482 unittest.expect(o.uri, unittest.equals('foo')); |
| 483 } | 483 } |
| 484 buildCounterExportContext--; | 484 buildCounterExportContext--; |
| 485 } | 485 } |
| 486 | 486 |
| 487 buildUnnamed1707() { | 487 buildUnnamed2607() { |
| 488 var o = new core.List<core.String>(); | 488 var o = new core.List<core.String>(); |
| 489 o.add("foo"); | 489 o.add("foo"); |
| 490 o.add("foo"); | 490 o.add("foo"); |
| 491 return o; | 491 return o; |
| 492 } | 492 } |
| 493 | 493 |
| 494 checkUnnamed1707(core.List<core.String> o) { | 494 checkUnnamed2607(core.List<core.String> o) { |
| 495 unittest.expect(o, unittest.hasLength(2)); | 495 unittest.expect(o, unittest.hasLength(2)); |
| 496 unittest.expect(o[0], unittest.equals('foo')); | 496 unittest.expect(o[0], unittest.equals('foo')); |
| 497 unittest.expect(o[1], unittest.equals('foo')); | 497 unittest.expect(o[1], unittest.equals('foo')); |
| 498 } | 498 } |
| 499 | 499 |
| 500 buildUnnamed1708() { | 500 buildUnnamed2608() { |
| 501 var o = new core.List<core.String>(); | 501 var o = new core.List<core.String>(); |
| 502 o.add("foo"); | 502 o.add("foo"); |
| 503 o.add("foo"); | 503 o.add("foo"); |
| 504 return o; | 504 return o; |
| 505 } | 505 } |
| 506 | 506 |
| 507 checkUnnamed1708(core.List<core.String> o) { | 507 checkUnnamed2608(core.List<core.String> o) { |
| 508 unittest.expect(o, unittest.hasLength(2)); | 508 unittest.expect(o, unittest.hasLength(2)); |
| 509 unittest.expect(o[0], unittest.equals('foo')); | 509 unittest.expect(o[0], unittest.equals('foo')); |
| 510 unittest.expect(o[1], unittest.equals('foo')); | 510 unittest.expect(o[1], unittest.equals('foo')); |
| 511 } | 511 } |
| 512 | 512 |
| 513 core.int buildCounterFlag = 0; | 513 core.int buildCounterFlag = 0; |
| 514 buildFlag() { | 514 buildFlag() { |
| 515 var o = new api.Flag(); | 515 var o = new api.Flag(); |
| 516 buildCounterFlag++; | 516 buildCounterFlag++; |
| 517 if (buildCounterFlag < 3) { | 517 if (buildCounterFlag < 3) { |
| 518 o.allowedStringValues = buildUnnamed1707(); | 518 o.allowedStringValues = buildUnnamed2607(); |
| 519 o.appliesTo = buildUnnamed1708(); | 519 o.appliesTo = buildUnnamed2608(); |
| 520 o.kind = "foo"; | 520 o.kind = "foo"; |
| 521 o.maxValue = "foo"; | 521 o.maxValue = "foo"; |
| 522 o.minValue = "foo"; | 522 o.minValue = "foo"; |
| 523 o.name = "foo"; | 523 o.name = "foo"; |
| 524 o.type = "foo"; | 524 o.type = "foo"; |
| 525 } | 525 } |
| 526 buildCounterFlag--; | 526 buildCounterFlag--; |
| 527 return o; | 527 return o; |
| 528 } | 528 } |
| 529 | 529 |
| 530 checkFlag(api.Flag o) { | 530 checkFlag(api.Flag o) { |
| 531 buildCounterFlag++; | 531 buildCounterFlag++; |
| 532 if (buildCounterFlag < 3) { | 532 if (buildCounterFlag < 3) { |
| 533 checkUnnamed1707(o.allowedStringValues); | 533 checkUnnamed2607(o.allowedStringValues); |
| 534 checkUnnamed1708(o.appliesTo); | 534 checkUnnamed2608(o.appliesTo); |
| 535 unittest.expect(o.kind, unittest.equals('foo')); | 535 unittest.expect(o.kind, unittest.equals('foo')); |
| 536 unittest.expect(o.maxValue, unittest.equals('foo')); | 536 unittest.expect(o.maxValue, unittest.equals('foo')); |
| 537 unittest.expect(o.minValue, unittest.equals('foo')); | 537 unittest.expect(o.minValue, unittest.equals('foo')); |
| 538 unittest.expect(o.name, unittest.equals('foo')); | 538 unittest.expect(o.name, unittest.equals('foo')); |
| 539 unittest.expect(o.type, unittest.equals('foo')); | 539 unittest.expect(o.type, unittest.equals('foo')); |
| 540 } | 540 } |
| 541 buildCounterFlag--; | 541 buildCounterFlag--; |
| 542 } | 542 } |
| 543 | 543 |
| 544 buildUnnamed1709() { | 544 buildUnnamed2609() { |
| 545 var o = new core.List<api.Flag>(); | 545 var o = new core.List<api.Flag>(); |
| 546 o.add(buildFlag()); | 546 o.add(buildFlag()); |
| 547 o.add(buildFlag()); | 547 o.add(buildFlag()); |
| 548 return o; | 548 return o; |
| 549 } | 549 } |
| 550 | 550 |
| 551 checkUnnamed1709(core.List<api.Flag> o) { | 551 checkUnnamed2609(core.List<api.Flag> o) { |
| 552 unittest.expect(o, unittest.hasLength(2)); | 552 unittest.expect(o, unittest.hasLength(2)); |
| 553 checkFlag(o[0]); | 553 checkFlag(o[0]); |
| 554 checkFlag(o[1]); | 554 checkFlag(o[1]); |
| 555 } | 555 } |
| 556 | 556 |
| 557 core.int buildCounterFlagsListResponse = 0; | 557 core.int buildCounterFlagsListResponse = 0; |
| 558 buildFlagsListResponse() { | 558 buildFlagsListResponse() { |
| 559 var o = new api.FlagsListResponse(); | 559 var o = new api.FlagsListResponse(); |
| 560 buildCounterFlagsListResponse++; | 560 buildCounterFlagsListResponse++; |
| 561 if (buildCounterFlagsListResponse < 3) { | 561 if (buildCounterFlagsListResponse < 3) { |
| 562 o.items = buildUnnamed1709(); | 562 o.items = buildUnnamed2609(); |
| 563 o.kind = "foo"; | 563 o.kind = "foo"; |
| 564 } | 564 } |
| 565 buildCounterFlagsListResponse--; | 565 buildCounterFlagsListResponse--; |
| 566 return o; | 566 return o; |
| 567 } | 567 } |
| 568 | 568 |
| 569 checkFlagsListResponse(api.FlagsListResponse o) { | 569 checkFlagsListResponse(api.FlagsListResponse o) { |
| 570 buildCounterFlagsListResponse++; | 570 buildCounterFlagsListResponse++; |
| 571 if (buildCounterFlagsListResponse < 3) { | 571 if (buildCounterFlagsListResponse < 3) { |
| 572 checkUnnamed1709(o.items); | 572 checkUnnamed2609(o.items); |
| 573 unittest.expect(o.kind, unittest.equals('foo')); | 573 unittest.expect(o.kind, unittest.equals('foo')); |
| 574 } | 574 } |
| 575 buildCounterFlagsListResponse--; | 575 buildCounterFlagsListResponse--; |
| 576 } | 576 } |
| 577 | 577 |
| 578 buildUnnamed1710() { | 578 buildUnnamed2610() { |
| 579 var o = new core.List<core.String>(); | 579 var o = new core.List<core.String>(); |
| 580 o.add("foo"); | 580 o.add("foo"); |
| 581 o.add("foo"); | 581 o.add("foo"); |
| 582 return o; | 582 return o; |
| 583 } | 583 } |
| 584 | 584 |
| 585 checkUnnamed1710(core.List<core.String> o) { | 585 checkUnnamed2610(core.List<core.String> o) { |
| 586 unittest.expect(o, unittest.hasLength(2)); | 586 unittest.expect(o, unittest.hasLength(2)); |
| 587 unittest.expect(o[0], unittest.equals('foo')); | 587 unittest.expect(o[0], unittest.equals('foo')); |
| 588 unittest.expect(o[1], unittest.equals('foo')); | 588 unittest.expect(o[1], unittest.equals('foo')); |
| 589 } | 589 } |
| 590 | 590 |
| 591 core.int buildCounterImportContextCsvImportOptions = 0; | 591 core.int buildCounterImportContextCsvImportOptions = 0; |
| 592 buildImportContextCsvImportOptions() { | 592 buildImportContextCsvImportOptions() { |
| 593 var o = new api.ImportContextCsvImportOptions(); | 593 var o = new api.ImportContextCsvImportOptions(); |
| 594 buildCounterImportContextCsvImportOptions++; | 594 buildCounterImportContextCsvImportOptions++; |
| 595 if (buildCounterImportContextCsvImportOptions < 3) { | 595 if (buildCounterImportContextCsvImportOptions < 3) { |
| 596 o.columns = buildUnnamed1710(); | 596 o.columns = buildUnnamed2610(); |
| 597 o.table = "foo"; | 597 o.table = "foo"; |
| 598 } | 598 } |
| 599 buildCounterImportContextCsvImportOptions--; | 599 buildCounterImportContextCsvImportOptions--; |
| 600 return o; | 600 return o; |
| 601 } | 601 } |
| 602 | 602 |
| 603 checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { | 603 checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { |
| 604 buildCounterImportContextCsvImportOptions++; | 604 buildCounterImportContextCsvImportOptions++; |
| 605 if (buildCounterImportContextCsvImportOptions < 3) { | 605 if (buildCounterImportContextCsvImportOptions < 3) { |
| 606 checkUnnamed1710(o.columns); | 606 checkUnnamed2610(o.columns); |
| 607 unittest.expect(o.table, unittest.equals('foo')); | 607 unittest.expect(o.table, unittest.equals('foo')); |
| 608 } | 608 } |
| 609 buildCounterImportContextCsvImportOptions--; | 609 buildCounterImportContextCsvImportOptions--; |
| 610 } | 610 } |
| 611 | 611 |
| 612 core.int buildCounterImportContext = 0; | 612 core.int buildCounterImportContext = 0; |
| 613 buildImportContext() { | 613 buildImportContext() { |
| 614 var o = new api.ImportContext(); | 614 var o = new api.ImportContext(); |
| 615 buildCounterImportContext++; | 615 buildCounterImportContext++; |
| 616 if (buildCounterImportContext < 3) { | 616 if (buildCounterImportContext < 3) { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 } | 686 } |
| 687 | 687 |
| 688 checkInstancesImportRequest(api.InstancesImportRequest o) { | 688 checkInstancesImportRequest(api.InstancesImportRequest o) { |
| 689 buildCounterInstancesImportRequest++; | 689 buildCounterInstancesImportRequest++; |
| 690 if (buildCounterInstancesImportRequest < 3) { | 690 if (buildCounterInstancesImportRequest < 3) { |
| 691 checkImportContext(o.importContext); | 691 checkImportContext(o.importContext); |
| 692 } | 692 } |
| 693 buildCounterInstancesImportRequest--; | 693 buildCounterInstancesImportRequest--; |
| 694 } | 694 } |
| 695 | 695 |
| 696 buildUnnamed1711() { | 696 buildUnnamed2611() { |
| 697 var o = new core.List<api.DatabaseInstance>(); | 697 var o = new core.List<api.DatabaseInstance>(); |
| 698 o.add(buildDatabaseInstance()); | 698 o.add(buildDatabaseInstance()); |
| 699 o.add(buildDatabaseInstance()); | 699 o.add(buildDatabaseInstance()); |
| 700 return o; | 700 return o; |
| 701 } | 701 } |
| 702 | 702 |
| 703 checkUnnamed1711(core.List<api.DatabaseInstance> o) { | 703 checkUnnamed2611(core.List<api.DatabaseInstance> o) { |
| 704 unittest.expect(o, unittest.hasLength(2)); | 704 unittest.expect(o, unittest.hasLength(2)); |
| 705 checkDatabaseInstance(o[0]); | 705 checkDatabaseInstance(o[0]); |
| 706 checkDatabaseInstance(o[1]); | 706 checkDatabaseInstance(o[1]); |
| 707 } | 707 } |
| 708 | 708 |
| 709 core.int buildCounterInstancesListResponse = 0; | 709 core.int buildCounterInstancesListResponse = 0; |
| 710 buildInstancesListResponse() { | 710 buildInstancesListResponse() { |
| 711 var o = new api.InstancesListResponse(); | 711 var o = new api.InstancesListResponse(); |
| 712 buildCounterInstancesListResponse++; | 712 buildCounterInstancesListResponse++; |
| 713 if (buildCounterInstancesListResponse < 3) { | 713 if (buildCounterInstancesListResponse < 3) { |
| 714 o.items = buildUnnamed1711(); | 714 o.items = buildUnnamed2611(); |
| 715 o.kind = "foo"; | 715 o.kind = "foo"; |
| 716 o.nextPageToken = "foo"; | 716 o.nextPageToken = "foo"; |
| 717 } | 717 } |
| 718 buildCounterInstancesListResponse--; | 718 buildCounterInstancesListResponse--; |
| 719 return o; | 719 return o; |
| 720 } | 720 } |
| 721 | 721 |
| 722 checkInstancesListResponse(api.InstancesListResponse o) { | 722 checkInstancesListResponse(api.InstancesListResponse o) { |
| 723 buildCounterInstancesListResponse++; | 723 buildCounterInstancesListResponse++; |
| 724 if (buildCounterInstancesListResponse < 3) { | 724 if (buildCounterInstancesListResponse < 3) { |
| 725 checkUnnamed1711(o.items); | 725 checkUnnamed2611(o.items); |
| 726 unittest.expect(o.kind, unittest.equals('foo')); | 726 unittest.expect(o.kind, unittest.equals('foo')); |
| 727 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 727 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 728 } | 728 } |
| 729 buildCounterInstancesListResponse--; | 729 buildCounterInstancesListResponse--; |
| 730 } | 730 } |
| 731 | 731 |
| 732 core.int buildCounterInstancesRestoreBackupRequest = 0; | 732 core.int buildCounterInstancesRestoreBackupRequest = 0; |
| 733 buildInstancesRestoreBackupRequest() { | 733 buildInstancesRestoreBackupRequest() { |
| 734 var o = new api.InstancesRestoreBackupRequest(); | 734 var o = new api.InstancesRestoreBackupRequest(); |
| 735 buildCounterInstancesRestoreBackupRequest++; | 735 buildCounterInstancesRestoreBackupRequest++; |
| 736 if (buildCounterInstancesRestoreBackupRequest < 3) { | 736 if (buildCounterInstancesRestoreBackupRequest < 3) { |
| 737 o.restoreBackupContext = buildRestoreBackupContext(); | 737 o.restoreBackupContext = buildRestoreBackupContext(); |
| 738 } | 738 } |
| 739 buildCounterInstancesRestoreBackupRequest--; | 739 buildCounterInstancesRestoreBackupRequest--; |
| 740 return o; | 740 return o; |
| 741 } | 741 } |
| 742 | 742 |
| 743 checkInstancesRestoreBackupRequest(api.InstancesRestoreBackupRequest o) { | 743 checkInstancesRestoreBackupRequest(api.InstancesRestoreBackupRequest o) { |
| 744 buildCounterInstancesRestoreBackupRequest++; | 744 buildCounterInstancesRestoreBackupRequest++; |
| 745 if (buildCounterInstancesRestoreBackupRequest < 3) { | 745 if (buildCounterInstancesRestoreBackupRequest < 3) { |
| 746 checkRestoreBackupContext(o.restoreBackupContext); | 746 checkRestoreBackupContext(o.restoreBackupContext); |
| 747 } | 747 } |
| 748 buildCounterInstancesRestoreBackupRequest--; | 748 buildCounterInstancesRestoreBackupRequest--; |
| 749 } | 749 } |
| 750 | 750 |
| 751 buildUnnamed1712() { | 751 buildUnnamed2612() { |
| 752 var o = new core.List<api.AclEntry>(); | 752 var o = new core.List<api.AclEntry>(); |
| 753 o.add(buildAclEntry()); | 753 o.add(buildAclEntry()); |
| 754 o.add(buildAclEntry()); | 754 o.add(buildAclEntry()); |
| 755 return o; | 755 return o; |
| 756 } | 756 } |
| 757 | 757 |
| 758 checkUnnamed1712(core.List<api.AclEntry> o) { | 758 checkUnnamed2612(core.List<api.AclEntry> o) { |
| 759 unittest.expect(o, unittest.hasLength(2)); | 759 unittest.expect(o, unittest.hasLength(2)); |
| 760 checkAclEntry(o[0]); | 760 checkAclEntry(o[0]); |
| 761 checkAclEntry(o[1]); | 761 checkAclEntry(o[1]); |
| 762 } | 762 } |
| 763 | 763 |
| 764 core.int buildCounterIpConfiguration = 0; | 764 core.int buildCounterIpConfiguration = 0; |
| 765 buildIpConfiguration() { | 765 buildIpConfiguration() { |
| 766 var o = new api.IpConfiguration(); | 766 var o = new api.IpConfiguration(); |
| 767 buildCounterIpConfiguration++; | 767 buildCounterIpConfiguration++; |
| 768 if (buildCounterIpConfiguration < 3) { | 768 if (buildCounterIpConfiguration < 3) { |
| 769 o.authorizedNetworks = buildUnnamed1712(); | 769 o.authorizedNetworks = buildUnnamed2612(); |
| 770 o.ipv4Enabled = true; | 770 o.ipv4Enabled = true; |
| 771 o.requireSsl = true; | 771 o.requireSsl = true; |
| 772 } | 772 } |
| 773 buildCounterIpConfiguration--; | 773 buildCounterIpConfiguration--; |
| 774 return o; | 774 return o; |
| 775 } | 775 } |
| 776 | 776 |
| 777 checkIpConfiguration(api.IpConfiguration o) { | 777 checkIpConfiguration(api.IpConfiguration o) { |
| 778 buildCounterIpConfiguration++; | 778 buildCounterIpConfiguration++; |
| 779 if (buildCounterIpConfiguration < 3) { | 779 if (buildCounterIpConfiguration < 3) { |
| 780 checkUnnamed1712(o.authorizedNetworks); | 780 checkUnnamed2612(o.authorizedNetworks); |
| 781 unittest.expect(o.ipv4Enabled, unittest.isTrue); | 781 unittest.expect(o.ipv4Enabled, unittest.isTrue); |
| 782 unittest.expect(o.requireSsl, unittest.isTrue); | 782 unittest.expect(o.requireSsl, unittest.isTrue); |
| 783 } | 783 } |
| 784 buildCounterIpConfiguration--; | 784 buildCounterIpConfiguration--; |
| 785 } | 785 } |
| 786 | 786 |
| 787 core.int buildCounterIpMapping = 0; | 787 core.int buildCounterIpMapping = 0; |
| 788 buildIpMapping() { | 788 buildIpMapping() { |
| 789 var o = new api.IpMapping(); | 789 var o = new api.IpMapping(); |
| 790 buildCounterIpMapping++; | 790 buildCounterIpMapping++; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 checkOperationError(api.OperationError o) { | 951 checkOperationError(api.OperationError o) { |
| 952 buildCounterOperationError++; | 952 buildCounterOperationError++; |
| 953 if (buildCounterOperationError < 3) { | 953 if (buildCounterOperationError < 3) { |
| 954 unittest.expect(o.code, unittest.equals('foo')); | 954 unittest.expect(o.code, unittest.equals('foo')); |
| 955 unittest.expect(o.kind, unittest.equals('foo')); | 955 unittest.expect(o.kind, unittest.equals('foo')); |
| 956 unittest.expect(o.message, unittest.equals('foo')); | 956 unittest.expect(o.message, unittest.equals('foo')); |
| 957 } | 957 } |
| 958 buildCounterOperationError--; | 958 buildCounterOperationError--; |
| 959 } | 959 } |
| 960 | 960 |
| 961 buildUnnamed1713() { | 961 buildUnnamed2613() { |
| 962 var o = new core.List<api.OperationError>(); | 962 var o = new core.List<api.OperationError>(); |
| 963 o.add(buildOperationError()); | 963 o.add(buildOperationError()); |
| 964 o.add(buildOperationError()); | 964 o.add(buildOperationError()); |
| 965 return o; | 965 return o; |
| 966 } | 966 } |
| 967 | 967 |
| 968 checkUnnamed1713(core.List<api.OperationError> o) { | 968 checkUnnamed2613(core.List<api.OperationError> o) { |
| 969 unittest.expect(o, unittest.hasLength(2)); | 969 unittest.expect(o, unittest.hasLength(2)); |
| 970 checkOperationError(o[0]); | 970 checkOperationError(o[0]); |
| 971 checkOperationError(o[1]); | 971 checkOperationError(o[1]); |
| 972 } | 972 } |
| 973 | 973 |
| 974 core.int buildCounterOperationErrors = 0; | 974 core.int buildCounterOperationErrors = 0; |
| 975 buildOperationErrors() { | 975 buildOperationErrors() { |
| 976 var o = new api.OperationErrors(); | 976 var o = new api.OperationErrors(); |
| 977 buildCounterOperationErrors++; | 977 buildCounterOperationErrors++; |
| 978 if (buildCounterOperationErrors < 3) { | 978 if (buildCounterOperationErrors < 3) { |
| 979 o.errors = buildUnnamed1713(); | 979 o.errors = buildUnnamed2613(); |
| 980 o.kind = "foo"; | 980 o.kind = "foo"; |
| 981 } | 981 } |
| 982 buildCounterOperationErrors--; | 982 buildCounterOperationErrors--; |
| 983 return o; | 983 return o; |
| 984 } | 984 } |
| 985 | 985 |
| 986 checkOperationErrors(api.OperationErrors o) { | 986 checkOperationErrors(api.OperationErrors o) { |
| 987 buildCounterOperationErrors++; | 987 buildCounterOperationErrors++; |
| 988 if (buildCounterOperationErrors < 3) { | 988 if (buildCounterOperationErrors < 3) { |
| 989 checkUnnamed1713(o.errors); | 989 checkUnnamed2613(o.errors); |
| 990 unittest.expect(o.kind, unittest.equals('foo')); | 990 unittest.expect(o.kind, unittest.equals('foo')); |
| 991 } | 991 } |
| 992 buildCounterOperationErrors--; | 992 buildCounterOperationErrors--; |
| 993 } | 993 } |
| 994 | 994 |
| 995 buildUnnamed1714() { | 995 buildUnnamed2614() { |
| 996 var o = new core.List<api.Operation>(); | 996 var o = new core.List<api.Operation>(); |
| 997 o.add(buildOperation()); | 997 o.add(buildOperation()); |
| 998 o.add(buildOperation()); | 998 o.add(buildOperation()); |
| 999 return o; | 999 return o; |
| 1000 } | 1000 } |
| 1001 | 1001 |
| 1002 checkUnnamed1714(core.List<api.Operation> o) { | 1002 checkUnnamed2614(core.List<api.Operation> o) { |
| 1003 unittest.expect(o, unittest.hasLength(2)); | 1003 unittest.expect(o, unittest.hasLength(2)); |
| 1004 checkOperation(o[0]); | 1004 checkOperation(o[0]); |
| 1005 checkOperation(o[1]); | 1005 checkOperation(o[1]); |
| 1006 } | 1006 } |
| 1007 | 1007 |
| 1008 core.int buildCounterOperationsListResponse = 0; | 1008 core.int buildCounterOperationsListResponse = 0; |
| 1009 buildOperationsListResponse() { | 1009 buildOperationsListResponse() { |
| 1010 var o = new api.OperationsListResponse(); | 1010 var o = new api.OperationsListResponse(); |
| 1011 buildCounterOperationsListResponse++; | 1011 buildCounterOperationsListResponse++; |
| 1012 if (buildCounterOperationsListResponse < 3) { | 1012 if (buildCounterOperationsListResponse < 3) { |
| 1013 o.items = buildUnnamed1714(); | 1013 o.items = buildUnnamed2614(); |
| 1014 o.kind = "foo"; | 1014 o.kind = "foo"; |
| 1015 o.nextPageToken = "foo"; | 1015 o.nextPageToken = "foo"; |
| 1016 } | 1016 } |
| 1017 buildCounterOperationsListResponse--; | 1017 buildCounterOperationsListResponse--; |
| 1018 return o; | 1018 return o; |
| 1019 } | 1019 } |
| 1020 | 1020 |
| 1021 checkOperationsListResponse(api.OperationsListResponse o) { | 1021 checkOperationsListResponse(api.OperationsListResponse o) { |
| 1022 buildCounterOperationsListResponse++; | 1022 buildCounterOperationsListResponse++; |
| 1023 if (buildCounterOperationsListResponse < 3) { | 1023 if (buildCounterOperationsListResponse < 3) { |
| 1024 checkUnnamed1714(o.items); | 1024 checkUnnamed2614(o.items); |
| 1025 unittest.expect(o.kind, unittest.equals('foo')); | 1025 unittest.expect(o.kind, unittest.equals('foo')); |
| 1026 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1026 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1027 } | 1027 } |
| 1028 buildCounterOperationsListResponse--; | 1028 buildCounterOperationsListResponse--; |
| 1029 } | 1029 } |
| 1030 | 1030 |
| 1031 core.int buildCounterReplicaConfiguration = 0; | 1031 core.int buildCounterReplicaConfiguration = 0; |
| 1032 buildReplicaConfiguration() { | 1032 buildReplicaConfiguration() { |
| 1033 var o = new api.ReplicaConfiguration(); | 1033 var o = new api.ReplicaConfiguration(); |
| 1034 buildCounterReplicaConfiguration++; | 1034 buildCounterReplicaConfiguration++; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1065 checkRestoreBackupContext(api.RestoreBackupContext o) { | 1065 checkRestoreBackupContext(api.RestoreBackupContext o) { |
| 1066 buildCounterRestoreBackupContext++; | 1066 buildCounterRestoreBackupContext++; |
| 1067 if (buildCounterRestoreBackupContext < 3) { | 1067 if (buildCounterRestoreBackupContext < 3) { |
| 1068 unittest.expect(o.backupRunId, unittest.equals('foo')); | 1068 unittest.expect(o.backupRunId, unittest.equals('foo')); |
| 1069 unittest.expect(o.instanceId, unittest.equals('foo')); | 1069 unittest.expect(o.instanceId, unittest.equals('foo')); |
| 1070 unittest.expect(o.kind, unittest.equals('foo')); | 1070 unittest.expect(o.kind, unittest.equals('foo')); |
| 1071 } | 1071 } |
| 1072 buildCounterRestoreBackupContext--; | 1072 buildCounterRestoreBackupContext--; |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 buildUnnamed1715() { | 1075 buildUnnamed2615() { |
| 1076 var o = new core.List<core.String>(); | 1076 var o = new core.List<core.String>(); |
| 1077 o.add("foo"); | 1077 o.add("foo"); |
| 1078 o.add("foo"); | 1078 o.add("foo"); |
| 1079 return o; | 1079 return o; |
| 1080 } | 1080 } |
| 1081 | 1081 |
| 1082 checkUnnamed1715(core.List<core.String> o) { | 1082 checkUnnamed2615(core.List<core.String> o) { |
| 1083 unittest.expect(o, unittest.hasLength(2)); | 1083 unittest.expect(o, unittest.hasLength(2)); |
| 1084 unittest.expect(o[0], unittest.equals('foo')); | 1084 unittest.expect(o[0], unittest.equals('foo')); |
| 1085 unittest.expect(o[1], unittest.equals('foo')); | 1085 unittest.expect(o[1], unittest.equals('foo')); |
| 1086 } | 1086 } |
| 1087 | 1087 |
| 1088 buildUnnamed1716() { | 1088 buildUnnamed2616() { |
| 1089 var o = new core.List<api.DatabaseFlags>(); | 1089 var o = new core.List<api.DatabaseFlags>(); |
| 1090 o.add(buildDatabaseFlags()); | 1090 o.add(buildDatabaseFlags()); |
| 1091 o.add(buildDatabaseFlags()); | 1091 o.add(buildDatabaseFlags()); |
| 1092 return o; | 1092 return o; |
| 1093 } | 1093 } |
| 1094 | 1094 |
| 1095 checkUnnamed1716(core.List<api.DatabaseFlags> o) { | 1095 checkUnnamed2616(core.List<api.DatabaseFlags> o) { |
| 1096 unittest.expect(o, unittest.hasLength(2)); | 1096 unittest.expect(o, unittest.hasLength(2)); |
| 1097 checkDatabaseFlags(o[0]); | 1097 checkDatabaseFlags(o[0]); |
| 1098 checkDatabaseFlags(o[1]); | 1098 checkDatabaseFlags(o[1]); |
| 1099 } | 1099 } |
| 1100 | 1100 |
| 1101 core.int buildCounterSettings = 0; | 1101 core.int buildCounterSettings = 0; |
| 1102 buildSettings() { | 1102 buildSettings() { |
| 1103 var o = new api.Settings(); | 1103 var o = new api.Settings(); |
| 1104 buildCounterSettings++; | 1104 buildCounterSettings++; |
| 1105 if (buildCounterSettings < 3) { | 1105 if (buildCounterSettings < 3) { |
| 1106 o.activationPolicy = "foo"; | 1106 o.activationPolicy = "foo"; |
| 1107 o.authorizedGaeApplications = buildUnnamed1715(); | 1107 o.authorizedGaeApplications = buildUnnamed2615(); |
| 1108 o.backupConfiguration = buildBackupConfiguration(); | 1108 o.backupConfiguration = buildBackupConfiguration(); |
| 1109 o.crashSafeReplicationEnabled = true; | 1109 o.crashSafeReplicationEnabled = true; |
| 1110 o.databaseFlags = buildUnnamed1716(); | 1110 o.databaseFlags = buildUnnamed2616(); |
| 1111 o.databaseReplicationEnabled = true; | 1111 o.databaseReplicationEnabled = true; |
| 1112 o.ipConfiguration = buildIpConfiguration(); | 1112 o.ipConfiguration = buildIpConfiguration(); |
| 1113 o.kind = "foo"; | 1113 o.kind = "foo"; |
| 1114 o.locationPreference = buildLocationPreference(); | 1114 o.locationPreference = buildLocationPreference(); |
| 1115 o.pricingPlan = "foo"; | 1115 o.pricingPlan = "foo"; |
| 1116 o.replicationType = "foo"; | 1116 o.replicationType = "foo"; |
| 1117 o.settingsVersion = "foo"; | 1117 o.settingsVersion = "foo"; |
| 1118 o.tier = "foo"; | 1118 o.tier = "foo"; |
| 1119 } | 1119 } |
| 1120 buildCounterSettings--; | 1120 buildCounterSettings--; |
| 1121 return o; | 1121 return o; |
| 1122 } | 1122 } |
| 1123 | 1123 |
| 1124 checkSettings(api.Settings o) { | 1124 checkSettings(api.Settings o) { |
| 1125 buildCounterSettings++; | 1125 buildCounterSettings++; |
| 1126 if (buildCounterSettings < 3) { | 1126 if (buildCounterSettings < 3) { |
| 1127 unittest.expect(o.activationPolicy, unittest.equals('foo')); | 1127 unittest.expect(o.activationPolicy, unittest.equals('foo')); |
| 1128 checkUnnamed1715(o.authorizedGaeApplications); | 1128 checkUnnamed2615(o.authorizedGaeApplications); |
| 1129 checkBackupConfiguration(o.backupConfiguration); | 1129 checkBackupConfiguration(o.backupConfiguration); |
| 1130 unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); | 1130 unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); |
| 1131 checkUnnamed1716(o.databaseFlags); | 1131 checkUnnamed2616(o.databaseFlags); |
| 1132 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); | 1132 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); |
| 1133 checkIpConfiguration(o.ipConfiguration); | 1133 checkIpConfiguration(o.ipConfiguration); |
| 1134 unittest.expect(o.kind, unittest.equals('foo')); | 1134 unittest.expect(o.kind, unittest.equals('foo')); |
| 1135 checkLocationPreference(o.locationPreference); | 1135 checkLocationPreference(o.locationPreference); |
| 1136 unittest.expect(o.pricingPlan, unittest.equals('foo')); | 1136 unittest.expect(o.pricingPlan, unittest.equals('foo')); |
| 1137 unittest.expect(o.replicationType, unittest.equals('foo')); | 1137 unittest.expect(o.replicationType, unittest.equals('foo')); |
| 1138 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 1138 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
| 1139 unittest.expect(o.tier, unittest.equals('foo')); | 1139 unittest.expect(o.tier, unittest.equals('foo')); |
| 1140 } | 1140 } |
| 1141 buildCounterSettings--; | 1141 buildCounterSettings--; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1232 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { | 1232 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { |
| 1233 buildCounterSslCertsInsertResponse++; | 1233 buildCounterSslCertsInsertResponse++; |
| 1234 if (buildCounterSslCertsInsertResponse < 3) { | 1234 if (buildCounterSslCertsInsertResponse < 3) { |
| 1235 checkSslCertDetail(o.clientCert); | 1235 checkSslCertDetail(o.clientCert); |
| 1236 unittest.expect(o.kind, unittest.equals('foo')); | 1236 unittest.expect(o.kind, unittest.equals('foo')); |
| 1237 checkSslCert(o.serverCaCert); | 1237 checkSslCert(o.serverCaCert); |
| 1238 } | 1238 } |
| 1239 buildCounterSslCertsInsertResponse--; | 1239 buildCounterSslCertsInsertResponse--; |
| 1240 } | 1240 } |
| 1241 | 1241 |
| 1242 buildUnnamed1717() { | 1242 buildUnnamed2617() { |
| 1243 var o = new core.List<api.SslCert>(); | 1243 var o = new core.List<api.SslCert>(); |
| 1244 o.add(buildSslCert()); | 1244 o.add(buildSslCert()); |
| 1245 o.add(buildSslCert()); | 1245 o.add(buildSslCert()); |
| 1246 return o; | 1246 return o; |
| 1247 } | 1247 } |
| 1248 | 1248 |
| 1249 checkUnnamed1717(core.List<api.SslCert> o) { | 1249 checkUnnamed2617(core.List<api.SslCert> o) { |
| 1250 unittest.expect(o, unittest.hasLength(2)); | 1250 unittest.expect(o, unittest.hasLength(2)); |
| 1251 checkSslCert(o[0]); | 1251 checkSslCert(o[0]); |
| 1252 checkSslCert(o[1]); | 1252 checkSslCert(o[1]); |
| 1253 } | 1253 } |
| 1254 | 1254 |
| 1255 core.int buildCounterSslCertsListResponse = 0; | 1255 core.int buildCounterSslCertsListResponse = 0; |
| 1256 buildSslCertsListResponse() { | 1256 buildSslCertsListResponse() { |
| 1257 var o = new api.SslCertsListResponse(); | 1257 var o = new api.SslCertsListResponse(); |
| 1258 buildCounterSslCertsListResponse++; | 1258 buildCounterSslCertsListResponse++; |
| 1259 if (buildCounterSslCertsListResponse < 3) { | 1259 if (buildCounterSslCertsListResponse < 3) { |
| 1260 o.items = buildUnnamed1717(); | 1260 o.items = buildUnnamed2617(); |
| 1261 o.kind = "foo"; | 1261 o.kind = "foo"; |
| 1262 } | 1262 } |
| 1263 buildCounterSslCertsListResponse--; | 1263 buildCounterSslCertsListResponse--; |
| 1264 return o; | 1264 return o; |
| 1265 } | 1265 } |
| 1266 | 1266 |
| 1267 checkSslCertsListResponse(api.SslCertsListResponse o) { | 1267 checkSslCertsListResponse(api.SslCertsListResponse o) { |
| 1268 buildCounterSslCertsListResponse++; | 1268 buildCounterSslCertsListResponse++; |
| 1269 if (buildCounterSslCertsListResponse < 3) { | 1269 if (buildCounterSslCertsListResponse < 3) { |
| 1270 checkUnnamed1717(o.items); | 1270 checkUnnamed2617(o.items); |
| 1271 unittest.expect(o.kind, unittest.equals('foo')); | 1271 unittest.expect(o.kind, unittest.equals('foo')); |
| 1272 } | 1272 } |
| 1273 buildCounterSslCertsListResponse--; | 1273 buildCounterSslCertsListResponse--; |
| 1274 } | 1274 } |
| 1275 | 1275 |
| 1276 buildUnnamed1718() { | 1276 buildUnnamed2618() { |
| 1277 var o = new core.List<core.String>(); | 1277 var o = new core.List<core.String>(); |
| 1278 o.add("foo"); | 1278 o.add("foo"); |
| 1279 o.add("foo"); | 1279 o.add("foo"); |
| 1280 return o; | 1280 return o; |
| 1281 } | 1281 } |
| 1282 | 1282 |
| 1283 checkUnnamed1718(core.List<core.String> o) { | 1283 checkUnnamed2618(core.List<core.String> o) { |
| 1284 unittest.expect(o, unittest.hasLength(2)); | 1284 unittest.expect(o, unittest.hasLength(2)); |
| 1285 unittest.expect(o[0], unittest.equals('foo')); | 1285 unittest.expect(o[0], unittest.equals('foo')); |
| 1286 unittest.expect(o[1], unittest.equals('foo')); | 1286 unittest.expect(o[1], unittest.equals('foo')); |
| 1287 } | 1287 } |
| 1288 | 1288 |
| 1289 core.int buildCounterTier = 0; | 1289 core.int buildCounterTier = 0; |
| 1290 buildTier() { | 1290 buildTier() { |
| 1291 var o = new api.Tier(); | 1291 var o = new api.Tier(); |
| 1292 buildCounterTier++; | 1292 buildCounterTier++; |
| 1293 if (buildCounterTier < 3) { | 1293 if (buildCounterTier < 3) { |
| 1294 o.DiskQuota = "foo"; | 1294 o.DiskQuota = "foo"; |
| 1295 o.RAM = "foo"; | 1295 o.RAM = "foo"; |
| 1296 o.kind = "foo"; | 1296 o.kind = "foo"; |
| 1297 o.region = buildUnnamed1718(); | 1297 o.region = buildUnnamed2618(); |
| 1298 o.tier = "foo"; | 1298 o.tier = "foo"; |
| 1299 } | 1299 } |
| 1300 buildCounterTier--; | 1300 buildCounterTier--; |
| 1301 return o; | 1301 return o; |
| 1302 } | 1302 } |
| 1303 | 1303 |
| 1304 checkTier(api.Tier o) { | 1304 checkTier(api.Tier o) { |
| 1305 buildCounterTier++; | 1305 buildCounterTier++; |
| 1306 if (buildCounterTier < 3) { | 1306 if (buildCounterTier < 3) { |
| 1307 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1307 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
| 1308 unittest.expect(o.RAM, unittest.equals('foo')); | 1308 unittest.expect(o.RAM, unittest.equals('foo')); |
| 1309 unittest.expect(o.kind, unittest.equals('foo')); | 1309 unittest.expect(o.kind, unittest.equals('foo')); |
| 1310 checkUnnamed1718(o.region); | 1310 checkUnnamed2618(o.region); |
| 1311 unittest.expect(o.tier, unittest.equals('foo')); | 1311 unittest.expect(o.tier, unittest.equals('foo')); |
| 1312 } | 1312 } |
| 1313 buildCounterTier--; | 1313 buildCounterTier--; |
| 1314 } | 1314 } |
| 1315 | 1315 |
| 1316 buildUnnamed1719() { | 1316 buildUnnamed2619() { |
| 1317 var o = new core.List<api.Tier>(); | 1317 var o = new core.List<api.Tier>(); |
| 1318 o.add(buildTier()); | 1318 o.add(buildTier()); |
| 1319 o.add(buildTier()); | 1319 o.add(buildTier()); |
| 1320 return o; | 1320 return o; |
| 1321 } | 1321 } |
| 1322 | 1322 |
| 1323 checkUnnamed1719(core.List<api.Tier> o) { | 1323 checkUnnamed2619(core.List<api.Tier> o) { |
| 1324 unittest.expect(o, unittest.hasLength(2)); | 1324 unittest.expect(o, unittest.hasLength(2)); |
| 1325 checkTier(o[0]); | 1325 checkTier(o[0]); |
| 1326 checkTier(o[1]); | 1326 checkTier(o[1]); |
| 1327 } | 1327 } |
| 1328 | 1328 |
| 1329 core.int buildCounterTiersListResponse = 0; | 1329 core.int buildCounterTiersListResponse = 0; |
| 1330 buildTiersListResponse() { | 1330 buildTiersListResponse() { |
| 1331 var o = new api.TiersListResponse(); | 1331 var o = new api.TiersListResponse(); |
| 1332 buildCounterTiersListResponse++; | 1332 buildCounterTiersListResponse++; |
| 1333 if (buildCounterTiersListResponse < 3) { | 1333 if (buildCounterTiersListResponse < 3) { |
| 1334 o.items = buildUnnamed1719(); | 1334 o.items = buildUnnamed2619(); |
| 1335 o.kind = "foo"; | 1335 o.kind = "foo"; |
| 1336 } | 1336 } |
| 1337 buildCounterTiersListResponse--; | 1337 buildCounterTiersListResponse--; |
| 1338 return o; | 1338 return o; |
| 1339 } | 1339 } |
| 1340 | 1340 |
| 1341 checkTiersListResponse(api.TiersListResponse o) { | 1341 checkTiersListResponse(api.TiersListResponse o) { |
| 1342 buildCounterTiersListResponse++; | 1342 buildCounterTiersListResponse++; |
| 1343 if (buildCounterTiersListResponse < 3) { | 1343 if (buildCounterTiersListResponse < 3) { |
| 1344 checkUnnamed1719(o.items); | 1344 checkUnnamed2619(o.items); |
| 1345 unittest.expect(o.kind, unittest.equals('foo')); | 1345 unittest.expect(o.kind, unittest.equals('foo')); |
| 1346 } | 1346 } |
| 1347 buildCounterTiersListResponse--; | 1347 buildCounterTiersListResponse--; |
| 1348 } | 1348 } |
| 1349 | 1349 |
| 1350 core.int buildCounterUser = 0; | 1350 core.int buildCounterUser = 0; |
| 1351 buildUser() { | 1351 buildUser() { |
| 1352 var o = new api.User(); | 1352 var o = new api.User(); |
| 1353 buildCounterUser++; | 1353 buildCounterUser++; |
| 1354 if (buildCounterUser < 3) { | 1354 if (buildCounterUser < 3) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1371 unittest.expect(o.host, unittest.equals('foo')); | 1371 unittest.expect(o.host, unittest.equals('foo')); |
| 1372 unittest.expect(o.instance, unittest.equals('foo')); | 1372 unittest.expect(o.instance, unittest.equals('foo')); |
| 1373 unittest.expect(o.kind, unittest.equals('foo')); | 1373 unittest.expect(o.kind, unittest.equals('foo')); |
| 1374 unittest.expect(o.name, unittest.equals('foo')); | 1374 unittest.expect(o.name, unittest.equals('foo')); |
| 1375 unittest.expect(o.password, unittest.equals('foo')); | 1375 unittest.expect(o.password, unittest.equals('foo')); |
| 1376 unittest.expect(o.project, unittest.equals('foo')); | 1376 unittest.expect(o.project, unittest.equals('foo')); |
| 1377 } | 1377 } |
| 1378 buildCounterUser--; | 1378 buildCounterUser--; |
| 1379 } | 1379 } |
| 1380 | 1380 |
| 1381 buildUnnamed1720() { | 1381 buildUnnamed2620() { |
| 1382 var o = new core.List<api.User>(); | 1382 var o = new core.List<api.User>(); |
| 1383 o.add(buildUser()); | 1383 o.add(buildUser()); |
| 1384 o.add(buildUser()); | 1384 o.add(buildUser()); |
| 1385 return o; | 1385 return o; |
| 1386 } | 1386 } |
| 1387 | 1387 |
| 1388 checkUnnamed1720(core.List<api.User> o) { | 1388 checkUnnamed2620(core.List<api.User> o) { |
| 1389 unittest.expect(o, unittest.hasLength(2)); | 1389 unittest.expect(o, unittest.hasLength(2)); |
| 1390 checkUser(o[0]); | 1390 checkUser(o[0]); |
| 1391 checkUser(o[1]); | 1391 checkUser(o[1]); |
| 1392 } | 1392 } |
| 1393 | 1393 |
| 1394 core.int buildCounterUsersListResponse = 0; | 1394 core.int buildCounterUsersListResponse = 0; |
| 1395 buildUsersListResponse() { | 1395 buildUsersListResponse() { |
| 1396 var o = new api.UsersListResponse(); | 1396 var o = new api.UsersListResponse(); |
| 1397 buildCounterUsersListResponse++; | 1397 buildCounterUsersListResponse++; |
| 1398 if (buildCounterUsersListResponse < 3) { | 1398 if (buildCounterUsersListResponse < 3) { |
| 1399 o.items = buildUnnamed1720(); | 1399 o.items = buildUnnamed2620(); |
| 1400 o.kind = "foo"; | 1400 o.kind = "foo"; |
| 1401 o.nextPageToken = "foo"; | 1401 o.nextPageToken = "foo"; |
| 1402 } | 1402 } |
| 1403 buildCounterUsersListResponse--; | 1403 buildCounterUsersListResponse--; |
| 1404 return o; | 1404 return o; |
| 1405 } | 1405 } |
| 1406 | 1406 |
| 1407 checkUsersListResponse(api.UsersListResponse o) { | 1407 checkUsersListResponse(api.UsersListResponse o) { |
| 1408 buildCounterUsersListResponse++; | 1408 buildCounterUsersListResponse++; |
| 1409 if (buildCounterUsersListResponse < 3) { | 1409 if (buildCounterUsersListResponse < 3) { |
| 1410 checkUnnamed1720(o.items); | 1410 checkUnnamed2620(o.items); |
| 1411 unittest.expect(o.kind, unittest.equals('foo')); | 1411 unittest.expect(o.kind, unittest.equals('foo')); |
| 1412 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1412 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1413 } | 1413 } |
| 1414 buildCounterUsersListResponse--; | 1414 buildCounterUsersListResponse--; |
| 1415 } | 1415 } |
| 1416 | 1416 |
| 1417 | 1417 |
| 1418 main() { | 1418 main() { |
| 1419 unittest.group("obj-schema-AclEntry", () { | 1419 unittest.group("obj-schema-AclEntry", () { |
| 1420 unittest.test("to-json--from-json", () { | 1420 unittest.test("to-json--from-json", () { |
| (...skipping 2578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3999 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { | 3999 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { |
| 4000 checkOperation(response); | 4000 checkOperation(response); |
| 4001 }))); | 4001 }))); |
| 4002 }); | 4002 }); |
| 4003 | 4003 |
| 4004 }); | 4004 }); |
| 4005 | 4005 |
| 4006 | 4006 |
| 4007 } | 4007 } |
| 4008 | 4008 |
| OLD | NEW |