| 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 buildUnnamed2601() { | 141 buildUnnamed2570() { |
| 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 checkUnnamed2601(core.List<api.BackupRun> o) { | 148 checkUnnamed2570(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 = buildUnnamed2601(); | 159 o.items = buildUnnamed2570(); |
| 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 checkUnnamed2601(o.items); | 170 checkUnnamed2570(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 buildUnnamed2602() { | 277 buildUnnamed2571() { |
| 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 checkUnnamed2602(core.List<api.IpMapping> o) { | 284 checkUnnamed2571(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 buildUnnamed2603() { | 290 buildUnnamed2572() { |
| 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 checkUnnamed2603(core.List<core.String> o) { | 297 checkUnnamed2572(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 = buildUnnamed2602(); | 312 o.ipAddresses = buildUnnamed2571(); |
| 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 = buildUnnamed2603(); | 322 o.replicaNames = buildUnnamed2572(); |
| 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 checkUnnamed2602(o.ipAddresses); | 340 checkUnnamed2571(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 checkUnnamed2603(o.replicaNames); | 350 checkUnnamed2572(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 buildUnnamed2604() { | 360 buildUnnamed2573() { |
| 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 checkUnnamed2604(core.List<api.Database> o) { | 367 checkUnnamed2573(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 = buildUnnamed2604(); | 378 o.items = buildUnnamed2573(); |
| 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 checkUnnamed2604(o.items); | 388 checkUnnamed2573(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 buildUnnamed2605() { | 413 buildUnnamed2574() { |
| 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 checkUnnamed2605(core.List<core.String> o) { | 420 checkUnnamed2574(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 buildUnnamed2606() { | 426 buildUnnamed2575() { |
| 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 checkUnnamed2606(core.List<core.String> o) { | 433 checkUnnamed2575(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 = buildUnnamed2606(); | 444 o.tables = buildUnnamed2575(); |
| 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 checkUnnamed2606(o.tables); | 453 checkUnnamed2575(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 = buildUnnamed2605(); | 464 o.databases = buildUnnamed2574(); |
| 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 checkUnnamed2605(o.databases); | 478 checkUnnamed2574(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 buildUnnamed2607() { | 487 buildUnnamed2576() { |
| 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 checkUnnamed2607(core.List<core.String> o) { | 494 checkUnnamed2576(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 buildUnnamed2608() { | 500 buildUnnamed2577() { |
| 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 checkUnnamed2608(core.List<core.String> o) { | 507 checkUnnamed2577(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 = buildUnnamed2607(); | 518 o.allowedStringValues = buildUnnamed2576(); |
| 519 o.appliesTo = buildUnnamed2608(); | 519 o.appliesTo = buildUnnamed2577(); |
| 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 checkUnnamed2607(o.allowedStringValues); | 533 checkUnnamed2576(o.allowedStringValues); |
| 534 checkUnnamed2608(o.appliesTo); | 534 checkUnnamed2577(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 buildUnnamed2609() { | 544 buildUnnamed2578() { |
| 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 checkUnnamed2609(core.List<api.Flag> o) { | 551 checkUnnamed2578(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 = buildUnnamed2609(); | 562 o.items = buildUnnamed2578(); |
| 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 checkUnnamed2609(o.items); | 572 checkUnnamed2578(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 buildUnnamed2610() { | 578 buildUnnamed2579() { |
| 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 checkUnnamed2610(core.List<core.String> o) { | 585 checkUnnamed2579(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 = buildUnnamed2610(); | 596 o.columns = buildUnnamed2579(); |
| 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 checkUnnamed2610(o.columns); | 606 checkUnnamed2579(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 buildUnnamed2611() { | 696 buildUnnamed2580() { |
| 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 checkUnnamed2611(core.List<api.DatabaseInstance> o) { | 703 checkUnnamed2580(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 = buildUnnamed2611(); | 714 o.items = buildUnnamed2580(); |
| 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 checkUnnamed2611(o.items); | 725 checkUnnamed2580(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 buildUnnamed2612() { | 751 buildUnnamed2581() { |
| 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 checkUnnamed2612(core.List<api.AclEntry> o) { | 758 checkUnnamed2581(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 = buildUnnamed2612(); | 769 o.authorizedNetworks = buildUnnamed2581(); |
| 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 checkUnnamed2612(o.authorizedNetworks); | 780 checkUnnamed2581(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 buildUnnamed2613() { | 961 buildUnnamed2582() { |
| 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 checkUnnamed2613(core.List<api.OperationError> o) { | 968 checkUnnamed2582(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 = buildUnnamed2613(); | 979 o.errors = buildUnnamed2582(); |
| 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 checkUnnamed2613(o.errors); | 989 checkUnnamed2582(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 buildUnnamed2614() { | 995 buildUnnamed2583() { |
| 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 checkUnnamed2614(core.List<api.Operation> o) { | 1002 checkUnnamed2583(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 = buildUnnamed2614(); | 1013 o.items = buildUnnamed2583(); |
| 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 checkUnnamed2614(o.items); | 1024 checkUnnamed2583(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 buildUnnamed2615() { | 1075 buildUnnamed2584() { |
| 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 checkUnnamed2615(core.List<core.String> o) { | 1082 checkUnnamed2584(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 buildUnnamed2616() { | 1088 buildUnnamed2585() { |
| 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 checkUnnamed2616(core.List<api.DatabaseFlags> o) { | 1095 checkUnnamed2585(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 = buildUnnamed2615(); | 1107 o.authorizedGaeApplications = buildUnnamed2584(); |
| 1108 o.backupConfiguration = buildBackupConfiguration(); | 1108 o.backupConfiguration = buildBackupConfiguration(); |
| 1109 o.crashSafeReplicationEnabled = true; | 1109 o.crashSafeReplicationEnabled = true; |
| 1110 o.databaseFlags = buildUnnamed2616(); | 1110 o.databaseFlags = buildUnnamed2585(); |
| 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 checkUnnamed2615(o.authorizedGaeApplications); | 1128 checkUnnamed2584(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 checkUnnamed2616(o.databaseFlags); | 1131 checkUnnamed2585(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 buildUnnamed2617() { | 1242 buildUnnamed2586() { |
| 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 checkUnnamed2617(core.List<api.SslCert> o) { | 1249 checkUnnamed2586(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 = buildUnnamed2617(); | 1260 o.items = buildUnnamed2586(); |
| 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 checkUnnamed2617(o.items); | 1270 checkUnnamed2586(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 buildUnnamed2618() { | 1276 core.int buildCounterSslCertsSignRequest = 0; |
| 1277 buildSslCertsSignRequest() { |
| 1278 var o = new api.SslCertsSignRequest(); |
| 1279 buildCounterSslCertsSignRequest++; |
| 1280 if (buildCounterSslCertsSignRequest < 3) { |
| 1281 o.publicKey = "foo"; |
| 1282 } |
| 1283 buildCounterSslCertsSignRequest--; |
| 1284 return o; |
| 1285 } |
| 1286 |
| 1287 checkSslCertsSignRequest(api.SslCertsSignRequest o) { |
| 1288 buildCounterSslCertsSignRequest++; |
| 1289 if (buildCounterSslCertsSignRequest < 3) { |
| 1290 unittest.expect(o.publicKey, unittest.equals('foo')); |
| 1291 } |
| 1292 buildCounterSslCertsSignRequest--; |
| 1293 } |
| 1294 |
| 1295 buildUnnamed2587() { |
| 1277 var o = new core.List<core.String>(); | 1296 var o = new core.List<core.String>(); |
| 1278 o.add("foo"); | 1297 o.add("foo"); |
| 1279 o.add("foo"); | 1298 o.add("foo"); |
| 1280 return o; | 1299 return o; |
| 1281 } | 1300 } |
| 1282 | 1301 |
| 1283 checkUnnamed2618(core.List<core.String> o) { | 1302 checkUnnamed2587(core.List<core.String> o) { |
| 1284 unittest.expect(o, unittest.hasLength(2)); | 1303 unittest.expect(o, unittest.hasLength(2)); |
| 1285 unittest.expect(o[0], unittest.equals('foo')); | 1304 unittest.expect(o[0], unittest.equals('foo')); |
| 1286 unittest.expect(o[1], unittest.equals('foo')); | 1305 unittest.expect(o[1], unittest.equals('foo')); |
| 1287 } | 1306 } |
| 1288 | 1307 |
| 1289 core.int buildCounterTier = 0; | 1308 core.int buildCounterTier = 0; |
| 1290 buildTier() { | 1309 buildTier() { |
| 1291 var o = new api.Tier(); | 1310 var o = new api.Tier(); |
| 1292 buildCounterTier++; | 1311 buildCounterTier++; |
| 1293 if (buildCounterTier < 3) { | 1312 if (buildCounterTier < 3) { |
| 1294 o.DiskQuota = "foo"; | 1313 o.DiskQuota = "foo"; |
| 1295 o.RAM = "foo"; | 1314 o.RAM = "foo"; |
| 1296 o.kind = "foo"; | 1315 o.kind = "foo"; |
| 1297 o.region = buildUnnamed2618(); | 1316 o.region = buildUnnamed2587(); |
| 1298 o.tier = "foo"; | 1317 o.tier = "foo"; |
| 1299 } | 1318 } |
| 1300 buildCounterTier--; | 1319 buildCounterTier--; |
| 1301 return o; | 1320 return o; |
| 1302 } | 1321 } |
| 1303 | 1322 |
| 1304 checkTier(api.Tier o) { | 1323 checkTier(api.Tier o) { |
| 1305 buildCounterTier++; | 1324 buildCounterTier++; |
| 1306 if (buildCounterTier < 3) { | 1325 if (buildCounterTier < 3) { |
| 1307 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1326 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
| 1308 unittest.expect(o.RAM, unittest.equals('foo')); | 1327 unittest.expect(o.RAM, unittest.equals('foo')); |
| 1309 unittest.expect(o.kind, unittest.equals('foo')); | 1328 unittest.expect(o.kind, unittest.equals('foo')); |
| 1310 checkUnnamed2618(o.region); | 1329 checkUnnamed2587(o.region); |
| 1311 unittest.expect(o.tier, unittest.equals('foo')); | 1330 unittest.expect(o.tier, unittest.equals('foo')); |
| 1312 } | 1331 } |
| 1313 buildCounterTier--; | 1332 buildCounterTier--; |
| 1314 } | 1333 } |
| 1315 | 1334 |
| 1316 buildUnnamed2619() { | 1335 buildUnnamed2588() { |
| 1317 var o = new core.List<api.Tier>(); | 1336 var o = new core.List<api.Tier>(); |
| 1318 o.add(buildTier()); | 1337 o.add(buildTier()); |
| 1319 o.add(buildTier()); | 1338 o.add(buildTier()); |
| 1320 return o; | 1339 return o; |
| 1321 } | 1340 } |
| 1322 | 1341 |
| 1323 checkUnnamed2619(core.List<api.Tier> o) { | 1342 checkUnnamed2588(core.List<api.Tier> o) { |
| 1324 unittest.expect(o, unittest.hasLength(2)); | 1343 unittest.expect(o, unittest.hasLength(2)); |
| 1325 checkTier(o[0]); | 1344 checkTier(o[0]); |
| 1326 checkTier(o[1]); | 1345 checkTier(o[1]); |
| 1327 } | 1346 } |
| 1328 | 1347 |
| 1329 core.int buildCounterTiersListResponse = 0; | 1348 core.int buildCounterTiersListResponse = 0; |
| 1330 buildTiersListResponse() { | 1349 buildTiersListResponse() { |
| 1331 var o = new api.TiersListResponse(); | 1350 var o = new api.TiersListResponse(); |
| 1332 buildCounterTiersListResponse++; | 1351 buildCounterTiersListResponse++; |
| 1333 if (buildCounterTiersListResponse < 3) { | 1352 if (buildCounterTiersListResponse < 3) { |
| 1334 o.items = buildUnnamed2619(); | 1353 o.items = buildUnnamed2588(); |
| 1335 o.kind = "foo"; | 1354 o.kind = "foo"; |
| 1336 } | 1355 } |
| 1337 buildCounterTiersListResponse--; | 1356 buildCounterTiersListResponse--; |
| 1338 return o; | 1357 return o; |
| 1339 } | 1358 } |
| 1340 | 1359 |
| 1341 checkTiersListResponse(api.TiersListResponse o) { | 1360 checkTiersListResponse(api.TiersListResponse o) { |
| 1342 buildCounterTiersListResponse++; | 1361 buildCounterTiersListResponse++; |
| 1343 if (buildCounterTiersListResponse < 3) { | 1362 if (buildCounterTiersListResponse < 3) { |
| 1344 checkUnnamed2619(o.items); | 1363 checkUnnamed2588(o.items); |
| 1345 unittest.expect(o.kind, unittest.equals('foo')); | 1364 unittest.expect(o.kind, unittest.equals('foo')); |
| 1346 } | 1365 } |
| 1347 buildCounterTiersListResponse--; | 1366 buildCounterTiersListResponse--; |
| 1348 } | 1367 } |
| 1349 | 1368 |
| 1350 core.int buildCounterUser = 0; | 1369 core.int buildCounterUser = 0; |
| 1351 buildUser() { | 1370 buildUser() { |
| 1352 var o = new api.User(); | 1371 var o = new api.User(); |
| 1353 buildCounterUser++; | 1372 buildCounterUser++; |
| 1354 if (buildCounterUser < 3) { | 1373 if (buildCounterUser < 3) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1371 unittest.expect(o.host, unittest.equals('foo')); | 1390 unittest.expect(o.host, unittest.equals('foo')); |
| 1372 unittest.expect(o.instance, unittest.equals('foo')); | 1391 unittest.expect(o.instance, unittest.equals('foo')); |
| 1373 unittest.expect(o.kind, unittest.equals('foo')); | 1392 unittest.expect(o.kind, unittest.equals('foo')); |
| 1374 unittest.expect(o.name, unittest.equals('foo')); | 1393 unittest.expect(o.name, unittest.equals('foo')); |
| 1375 unittest.expect(o.password, unittest.equals('foo')); | 1394 unittest.expect(o.password, unittest.equals('foo')); |
| 1376 unittest.expect(o.project, unittest.equals('foo')); | 1395 unittest.expect(o.project, unittest.equals('foo')); |
| 1377 } | 1396 } |
| 1378 buildCounterUser--; | 1397 buildCounterUser--; |
| 1379 } | 1398 } |
| 1380 | 1399 |
| 1381 buildUnnamed2620() { | 1400 buildUnnamed2589() { |
| 1382 var o = new core.List<api.User>(); | 1401 var o = new core.List<api.User>(); |
| 1383 o.add(buildUser()); | 1402 o.add(buildUser()); |
| 1384 o.add(buildUser()); | 1403 o.add(buildUser()); |
| 1385 return o; | 1404 return o; |
| 1386 } | 1405 } |
| 1387 | 1406 |
| 1388 checkUnnamed2620(core.List<api.User> o) { | 1407 checkUnnamed2589(core.List<api.User> o) { |
| 1389 unittest.expect(o, unittest.hasLength(2)); | 1408 unittest.expect(o, unittest.hasLength(2)); |
| 1390 checkUser(o[0]); | 1409 checkUser(o[0]); |
| 1391 checkUser(o[1]); | 1410 checkUser(o[1]); |
| 1392 } | 1411 } |
| 1393 | 1412 |
| 1394 core.int buildCounterUsersListResponse = 0; | 1413 core.int buildCounterUsersListResponse = 0; |
| 1395 buildUsersListResponse() { | 1414 buildUsersListResponse() { |
| 1396 var o = new api.UsersListResponse(); | 1415 var o = new api.UsersListResponse(); |
| 1397 buildCounterUsersListResponse++; | 1416 buildCounterUsersListResponse++; |
| 1398 if (buildCounterUsersListResponse < 3) { | 1417 if (buildCounterUsersListResponse < 3) { |
| 1399 o.items = buildUnnamed2620(); | 1418 o.items = buildUnnamed2589(); |
| 1400 o.kind = "foo"; | 1419 o.kind = "foo"; |
| 1401 o.nextPageToken = "foo"; | 1420 o.nextPageToken = "foo"; |
| 1402 } | 1421 } |
| 1403 buildCounterUsersListResponse--; | 1422 buildCounterUsersListResponse--; |
| 1404 return o; | 1423 return o; |
| 1405 } | 1424 } |
| 1406 | 1425 |
| 1407 checkUsersListResponse(api.UsersListResponse o) { | 1426 checkUsersListResponse(api.UsersListResponse o) { |
| 1408 buildCounterUsersListResponse++; | 1427 buildCounterUsersListResponse++; |
| 1409 if (buildCounterUsersListResponse < 3) { | 1428 if (buildCounterUsersListResponse < 3) { |
| 1410 checkUnnamed2620(o.items); | 1429 checkUnnamed2589(o.items); |
| 1411 unittest.expect(o.kind, unittest.equals('foo')); | 1430 unittest.expect(o.kind, unittest.equals('foo')); |
| 1412 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1431 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1413 } | 1432 } |
| 1414 buildCounterUsersListResponse--; | 1433 buildCounterUsersListResponse--; |
| 1415 } | 1434 } |
| 1416 | 1435 |
| 1417 | 1436 |
| 1418 main() { | 1437 main() { |
| 1419 unittest.group("obj-schema-AclEntry", () { | 1438 unittest.group("obj-schema-AclEntry", () { |
| 1420 unittest.test("to-json--from-json", () { | 1439 unittest.test("to-json--from-json", () { |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1760 | 1779 |
| 1761 unittest.group("obj-schema-SslCertsListResponse", () { | 1780 unittest.group("obj-schema-SslCertsListResponse", () { |
| 1762 unittest.test("to-json--from-json", () { | 1781 unittest.test("to-json--from-json", () { |
| 1763 var o = buildSslCertsListResponse(); | 1782 var o = buildSslCertsListResponse(); |
| 1764 var od = new api.SslCertsListResponse.fromJson(o.toJson()); | 1783 var od = new api.SslCertsListResponse.fromJson(o.toJson()); |
| 1765 checkSslCertsListResponse(od); | 1784 checkSslCertsListResponse(od); |
| 1766 }); | 1785 }); |
| 1767 }); | 1786 }); |
| 1768 | 1787 |
| 1769 | 1788 |
| 1789 unittest.group("obj-schema-SslCertsSignRequest", () { |
| 1790 unittest.test("to-json--from-json", () { |
| 1791 var o = buildSslCertsSignRequest(); |
| 1792 var od = new api.SslCertsSignRequest.fromJson(o.toJson()); |
| 1793 checkSslCertsSignRequest(od); |
| 1794 }); |
| 1795 }); |
| 1796 |
| 1797 |
| 1770 unittest.group("obj-schema-Tier", () { | 1798 unittest.group("obj-schema-Tier", () { |
| 1771 unittest.test("to-json--from-json", () { | 1799 unittest.test("to-json--from-json", () { |
| 1772 var o = buildTier(); | 1800 var o = buildTier(); |
| 1773 var od = new api.Tier.fromJson(o.toJson()); | 1801 var od = new api.Tier.fromJson(o.toJson()); |
| 1774 checkTier(od); | 1802 checkTier(od); |
| 1775 }); | 1803 }); |
| 1776 }); | 1804 }); |
| 1777 | 1805 |
| 1778 | 1806 |
| 1779 unittest.group("obj-schema-TiersListResponse", () { | 1807 unittest.group("obj-schema-TiersListResponse", () { |
| (...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3673 "content-type" : "application/json; charset=utf-8", | 3701 "content-type" : "application/json; charset=utf-8", |
| 3674 }; | 3702 }; |
| 3675 var resp = convert.JSON.encode(buildSslCertsListResponse()); | 3703 var resp = convert.JSON.encode(buildSslCertsListResponse()); |
| 3676 return new async.Future.value(stringResponse(200, h, resp)); | 3704 return new async.Future.value(stringResponse(200, h, resp)); |
| 3677 }), true); | 3705 }), true); |
| 3678 res.list(arg_project, arg_instance).then(unittest.expectAsync(((api.SslCer
tsListResponse response) { | 3706 res.list(arg_project, arg_instance).then(unittest.expectAsync(((api.SslCer
tsListResponse response) { |
| 3679 checkSslCertsListResponse(response); | 3707 checkSslCertsListResponse(response); |
| 3680 }))); | 3708 }))); |
| 3681 }); | 3709 }); |
| 3682 | 3710 |
| 3711 unittest.test("method--sign", () { |
| 3712 |
| 3713 var mock = new HttpServerMock(); |
| 3714 api.SslCertsResourceApi res = new api.SqladminApi(mock).sslCerts; |
| 3715 var arg_request = buildSslCertsSignRequest(); |
| 3716 var arg_project = "foo"; |
| 3717 var arg_instance = "foo"; |
| 3718 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3719 var obj = new api.SslCertsSignRequest.fromJson(json); |
| 3720 checkSslCertsSignRequest(obj); |
| 3721 |
| 3722 var path = (req.url).path; |
| 3723 var pathOffset = 0; |
| 3724 var index; |
| 3725 var subPart; |
| 3726 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3727 pathOffset += 1; |
| 3728 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta4/")); |
| 3729 pathOffset += 12; |
| 3730 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
| 3731 pathOffset += 9; |
| 3732 index = path.indexOf("/instances/", pathOffset); |
| 3733 unittest.expect(index >= 0, unittest.isTrue); |
| 3734 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3735 pathOffset = index; |
| 3736 unittest.expect(subPart, unittest.equals("$arg_project")); |
| 3737 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
| 3738 pathOffset += 11; |
| 3739 index = path.indexOf("/certSign", pathOffset); |
| 3740 unittest.expect(index >= 0, unittest.isTrue); |
| 3741 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3742 pathOffset = index; |
| 3743 unittest.expect(subPart, unittest.equals("$arg_instance")); |
| 3744 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/certSign")); |
| 3745 pathOffset += 9; |
| 3746 |
| 3747 var query = (req.url).query; |
| 3748 var queryOffset = 0; |
| 3749 var queryMap = {}; |
| 3750 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3751 parseBool(n) { |
| 3752 if (n == "true") return true; |
| 3753 if (n == "false") return false; |
| 3754 if (n == null) return null; |
| 3755 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3756 } |
| 3757 if (query.length > 0) { |
| 3758 for (var part in query.split("&")) { |
| 3759 var keyvalue = part.split("="); |
| 3760 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3761 } |
| 3762 } |
| 3763 |
| 3764 |
| 3765 var h = { |
| 3766 "content-type" : "application/json; charset=utf-8", |
| 3767 }; |
| 3768 var resp = convert.JSON.encode(buildSslCert()); |
| 3769 return new async.Future.value(stringResponse(200, h, resp)); |
| 3770 }), true); |
| 3771 res.sign(arg_request, arg_project, arg_instance).then(unittest.expectAsync
(((api.SslCert response) { |
| 3772 checkSslCert(response); |
| 3773 }))); |
| 3774 }); |
| 3775 |
| 3683 }); | 3776 }); |
| 3684 | 3777 |
| 3685 | 3778 |
| 3686 unittest.group("resource-TiersResourceApi", () { | 3779 unittest.group("resource-TiersResourceApi", () { |
| 3687 unittest.test("method--list", () { | 3780 unittest.test("method--list", () { |
| 3688 | 3781 |
| 3689 var mock = new HttpServerMock(); | 3782 var mock = new HttpServerMock(); |
| 3690 api.TiersResourceApi res = new api.SqladminApi(mock).tiers; | 3783 api.TiersResourceApi res = new api.SqladminApi(mock).tiers; |
| 3691 var arg_project = "foo"; | 3784 var arg_project = "foo"; |
| 3692 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3785 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| (...skipping 306 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) { | 4092 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { |
| 4000 checkOperation(response); | 4093 checkOperation(response); |
| 4001 }))); | 4094 }))); |
| 4002 }); | 4095 }); |
| 4003 | 4096 |
| 4004 }); | 4097 }); |
| 4005 | 4098 |
| 4006 | 4099 |
| 4007 } | 4100 } |
| 4008 | 4101 |
| OLD | NEW |