| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 unittest.expect(o.startTime, unittest.equals('foo')); | 99 unittest.expect(o.startTime, unittest.equals('foo')); |
| 100 } | 100 } |
| 101 buildCounterBackupConfiguration--; | 101 buildCounterBackupConfiguration--; |
| 102 } | 102 } |
| 103 | 103 |
| 104 core.int buildCounterBackupRun = 0; | 104 core.int buildCounterBackupRun = 0; |
| 105 buildBackupRun() { | 105 buildBackupRun() { |
| 106 var o = new api.BackupRun(); | 106 var o = new api.BackupRun(); |
| 107 buildCounterBackupRun++; | 107 buildCounterBackupRun++; |
| 108 if (buildCounterBackupRun < 3) { | 108 if (buildCounterBackupRun < 3) { |
| 109 o.description = "foo"; |
| 109 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); | 110 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 110 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 111 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 111 o.error = buildOperationError(); | 112 o.error = buildOperationError(); |
| 112 o.id = "foo"; | 113 o.id = "foo"; |
| 113 o.instance = "foo"; | 114 o.instance = "foo"; |
| 114 o.kind = "foo"; | 115 o.kind = "foo"; |
| 115 o.selfLink = "foo"; | 116 o.selfLink = "foo"; |
| 116 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); | 117 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 117 o.status = "foo"; | 118 o.status = "foo"; |
| 119 o.type = "foo"; |
| 118 o.windowStartTime = core.DateTime.parse("2002-02-27T14:01:02"); | 120 o.windowStartTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 119 } | 121 } |
| 120 buildCounterBackupRun--; | 122 buildCounterBackupRun--; |
| 121 return o; | 123 return o; |
| 122 } | 124 } |
| 123 | 125 |
| 124 checkBackupRun(api.BackupRun o) { | 126 checkBackupRun(api.BackupRun o) { |
| 125 buildCounterBackupRun++; | 127 buildCounterBackupRun++; |
| 126 if (buildCounterBackupRun < 3) { | 128 if (buildCounterBackupRun < 3) { |
| 129 unittest.expect(o.description, unittest.equals('foo')); |
| 127 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 130 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 128 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 131 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 129 checkOperationError(o.error); | 132 checkOperationError(o.error); |
| 130 unittest.expect(o.id, unittest.equals('foo')); | 133 unittest.expect(o.id, unittest.equals('foo')); |
| 131 unittest.expect(o.instance, unittest.equals('foo')); | 134 unittest.expect(o.instance, unittest.equals('foo')); |
| 132 unittest.expect(o.kind, unittest.equals('foo')); | 135 unittest.expect(o.kind, unittest.equals('foo')); |
| 133 unittest.expect(o.selfLink, unittest.equals('foo')); | 136 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 134 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 137 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 135 unittest.expect(o.status, unittest.equals('foo')); | 138 unittest.expect(o.status, unittest.equals('foo')); |
| 139 unittest.expect(o.type, unittest.equals('foo')); |
| 136 unittest.expect(o.windowStartTime, unittest.equals(core.DateTime.parse("2002
-02-27T14:01:02"))); | 140 unittest.expect(o.windowStartTime, unittest.equals(core.DateTime.parse("2002
-02-27T14:01:02"))); |
| 137 } | 141 } |
| 138 buildCounterBackupRun--; | 142 buildCounterBackupRun--; |
| 139 } | 143 } |
| 140 | 144 |
| 141 buildUnnamed3725() { | 145 buildUnnamed3581() { |
| 142 var o = new core.List<api.BackupRun>(); | 146 var o = new core.List<api.BackupRun>(); |
| 143 o.add(buildBackupRun()); | 147 o.add(buildBackupRun()); |
| 144 o.add(buildBackupRun()); | 148 o.add(buildBackupRun()); |
| 145 return o; | 149 return o; |
| 146 } | 150 } |
| 147 | 151 |
| 148 checkUnnamed3725(core.List<api.BackupRun> o) { | 152 checkUnnamed3581(core.List<api.BackupRun> o) { |
| 149 unittest.expect(o, unittest.hasLength(2)); | 153 unittest.expect(o, unittest.hasLength(2)); |
| 150 checkBackupRun(o[0]); | 154 checkBackupRun(o[0]); |
| 151 checkBackupRun(o[1]); | 155 checkBackupRun(o[1]); |
| 152 } | 156 } |
| 153 | 157 |
| 154 core.int buildCounterBackupRunsListResponse = 0; | 158 core.int buildCounterBackupRunsListResponse = 0; |
| 155 buildBackupRunsListResponse() { | 159 buildBackupRunsListResponse() { |
| 156 var o = new api.BackupRunsListResponse(); | 160 var o = new api.BackupRunsListResponse(); |
| 157 buildCounterBackupRunsListResponse++; | 161 buildCounterBackupRunsListResponse++; |
| 158 if (buildCounterBackupRunsListResponse < 3) { | 162 if (buildCounterBackupRunsListResponse < 3) { |
| 159 o.items = buildUnnamed3725(); | 163 o.items = buildUnnamed3581(); |
| 160 o.kind = "foo"; | 164 o.kind = "foo"; |
| 161 o.nextPageToken = "foo"; | 165 o.nextPageToken = "foo"; |
| 162 } | 166 } |
| 163 buildCounterBackupRunsListResponse--; | 167 buildCounterBackupRunsListResponse--; |
| 164 return o; | 168 return o; |
| 165 } | 169 } |
| 166 | 170 |
| 167 checkBackupRunsListResponse(api.BackupRunsListResponse o) { | 171 checkBackupRunsListResponse(api.BackupRunsListResponse o) { |
| 168 buildCounterBackupRunsListResponse++; | 172 buildCounterBackupRunsListResponse++; |
| 169 if (buildCounterBackupRunsListResponse < 3) { | 173 if (buildCounterBackupRunsListResponse < 3) { |
| 170 checkUnnamed3725(o.items); | 174 checkUnnamed3581(o.items); |
| 171 unittest.expect(o.kind, unittest.equals('foo')); | 175 unittest.expect(o.kind, unittest.equals('foo')); |
| 172 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 176 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 173 } | 177 } |
| 174 buildCounterBackupRunsListResponse--; | 178 buildCounterBackupRunsListResponse--; |
| 175 } | 179 } |
| 176 | 180 |
| 177 core.int buildCounterBinLogCoordinates = 0; | 181 core.int buildCounterBinLogCoordinates = 0; |
| 178 buildBinLogCoordinates() { | 182 buildBinLogCoordinates() { |
| 179 var o = new api.BinLogCoordinates(); | 183 var o = new api.BinLogCoordinates(); |
| 180 buildCounterBinLogCoordinates++; | 184 buildCounterBinLogCoordinates++; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 292 |
| 289 checkDatabaseInstanceFailoverReplica(api.DatabaseInstanceFailoverReplica o) { | 293 checkDatabaseInstanceFailoverReplica(api.DatabaseInstanceFailoverReplica o) { |
| 290 buildCounterDatabaseInstanceFailoverReplica++; | 294 buildCounterDatabaseInstanceFailoverReplica++; |
| 291 if (buildCounterDatabaseInstanceFailoverReplica < 3) { | 295 if (buildCounterDatabaseInstanceFailoverReplica < 3) { |
| 292 unittest.expect(o.available, unittest.isTrue); | 296 unittest.expect(o.available, unittest.isTrue); |
| 293 unittest.expect(o.name, unittest.equals('foo')); | 297 unittest.expect(o.name, unittest.equals('foo')); |
| 294 } | 298 } |
| 295 buildCounterDatabaseInstanceFailoverReplica--; | 299 buildCounterDatabaseInstanceFailoverReplica--; |
| 296 } | 300 } |
| 297 | 301 |
| 298 buildUnnamed3726() { | 302 buildUnnamed3582() { |
| 299 var o = new core.List<api.IpMapping>(); | 303 var o = new core.List<api.IpMapping>(); |
| 300 o.add(buildIpMapping()); | 304 o.add(buildIpMapping()); |
| 301 o.add(buildIpMapping()); | 305 o.add(buildIpMapping()); |
| 302 return o; | 306 return o; |
| 303 } | 307 } |
| 304 | 308 |
| 305 checkUnnamed3726(core.List<api.IpMapping> o) { | 309 checkUnnamed3582(core.List<api.IpMapping> o) { |
| 306 unittest.expect(o, unittest.hasLength(2)); | 310 unittest.expect(o, unittest.hasLength(2)); |
| 307 checkIpMapping(o[0]); | 311 checkIpMapping(o[0]); |
| 308 checkIpMapping(o[1]); | 312 checkIpMapping(o[1]); |
| 309 } | 313 } |
| 310 | 314 |
| 311 buildUnnamed3727() { | 315 buildUnnamed3583() { |
| 312 var o = new core.List<core.String>(); | 316 var o = new core.List<core.String>(); |
| 313 o.add("foo"); | 317 o.add("foo"); |
| 314 o.add("foo"); | 318 o.add("foo"); |
| 315 return o; | 319 return o; |
| 316 } | 320 } |
| 317 | 321 |
| 318 checkUnnamed3727(core.List<core.String> o) { | 322 checkUnnamed3583(core.List<core.String> o) { |
| 319 unittest.expect(o, unittest.hasLength(2)); | 323 unittest.expect(o, unittest.hasLength(2)); |
| 320 unittest.expect(o[0], unittest.equals('foo')); | 324 unittest.expect(o[0], unittest.equals('foo')); |
| 321 unittest.expect(o[1], unittest.equals('foo')); | 325 unittest.expect(o[1], unittest.equals('foo')); |
| 322 } | 326 } |
| 323 | 327 |
| 324 buildUnnamed3728() { | 328 buildUnnamed3584() { |
| 325 var o = new core.List<core.String>(); | 329 var o = new core.List<core.String>(); |
| 326 o.add("foo"); | 330 o.add("foo"); |
| 327 o.add("foo"); | 331 o.add("foo"); |
| 328 return o; | 332 return o; |
| 329 } | 333 } |
| 330 | 334 |
| 331 checkUnnamed3728(core.List<core.String> o) { | 335 checkUnnamed3584(core.List<core.String> o) { |
| 332 unittest.expect(o, unittest.hasLength(2)); | 336 unittest.expect(o, unittest.hasLength(2)); |
| 333 unittest.expect(o[0], unittest.equals('foo')); | 337 unittest.expect(o[0], unittest.equals('foo')); |
| 334 unittest.expect(o[1], unittest.equals('foo')); | 338 unittest.expect(o[1], unittest.equals('foo')); |
| 335 } | 339 } |
| 336 | 340 |
| 337 core.int buildCounterDatabaseInstance = 0; | 341 core.int buildCounterDatabaseInstance = 0; |
| 338 buildDatabaseInstance() { | 342 buildDatabaseInstance() { |
| 339 var o = new api.DatabaseInstance(); | 343 var o = new api.DatabaseInstance(); |
| 340 buildCounterDatabaseInstance++; | 344 buildCounterDatabaseInstance++; |
| 341 if (buildCounterDatabaseInstance < 3) { | 345 if (buildCounterDatabaseInstance < 3) { |
| 342 o.backendType = "foo"; | 346 o.backendType = "foo"; |
| 343 o.currentDiskSize = "foo"; | 347 o.currentDiskSize = "foo"; |
| 344 o.databaseVersion = "foo"; | 348 o.databaseVersion = "foo"; |
| 345 o.etag = "foo"; | 349 o.etag = "foo"; |
| 346 o.failoverReplica = buildDatabaseInstanceFailoverReplica(); | 350 o.failoverReplica = buildDatabaseInstanceFailoverReplica(); |
| 347 o.instanceType = "foo"; | 351 o.instanceType = "foo"; |
| 348 o.ipAddresses = buildUnnamed3726(); | 352 o.ipAddresses = buildUnnamed3582(); |
| 349 o.ipv6Address = "foo"; | 353 o.ipv6Address = "foo"; |
| 350 o.kind = "foo"; | 354 o.kind = "foo"; |
| 351 o.masterInstanceName = "foo"; | 355 o.masterInstanceName = "foo"; |
| 352 o.maxDiskSize = "foo"; | 356 o.maxDiskSize = "foo"; |
| 353 o.name = "foo"; | 357 o.name = "foo"; |
| 354 o.onPremisesConfiguration = buildOnPremisesConfiguration(); | 358 o.onPremisesConfiguration = buildOnPremisesConfiguration(); |
| 355 o.project = "foo"; | 359 o.project = "foo"; |
| 356 o.region = "foo"; | 360 o.region = "foo"; |
| 357 o.replicaConfiguration = buildReplicaConfiguration(); | 361 o.replicaConfiguration = buildReplicaConfiguration(); |
| 358 o.replicaNames = buildUnnamed3727(); | 362 o.replicaNames = buildUnnamed3583(); |
| 359 o.selfLink = "foo"; | 363 o.selfLink = "foo"; |
| 360 o.serverCaCert = buildSslCert(); | 364 o.serverCaCert = buildSslCert(); |
| 361 o.serviceAccountEmailAddress = "foo"; | 365 o.serviceAccountEmailAddress = "foo"; |
| 362 o.settings = buildSettings(); | 366 o.settings = buildSettings(); |
| 363 o.state = "foo"; | 367 o.state = "foo"; |
| 364 o.suspensionReason = buildUnnamed3728(); | 368 o.suspensionReason = buildUnnamed3584(); |
| 365 } | 369 } |
| 366 buildCounterDatabaseInstance--; | 370 buildCounterDatabaseInstance--; |
| 367 return o; | 371 return o; |
| 368 } | 372 } |
| 369 | 373 |
| 370 checkDatabaseInstance(api.DatabaseInstance o) { | 374 checkDatabaseInstance(api.DatabaseInstance o) { |
| 371 buildCounterDatabaseInstance++; | 375 buildCounterDatabaseInstance++; |
| 372 if (buildCounterDatabaseInstance < 3) { | 376 if (buildCounterDatabaseInstance < 3) { |
| 373 unittest.expect(o.backendType, unittest.equals('foo')); | 377 unittest.expect(o.backendType, unittest.equals('foo')); |
| 374 unittest.expect(o.currentDiskSize, unittest.equals('foo')); | 378 unittest.expect(o.currentDiskSize, unittest.equals('foo')); |
| 375 unittest.expect(o.databaseVersion, unittest.equals('foo')); | 379 unittest.expect(o.databaseVersion, unittest.equals('foo')); |
| 376 unittest.expect(o.etag, unittest.equals('foo')); | 380 unittest.expect(o.etag, unittest.equals('foo')); |
| 377 checkDatabaseInstanceFailoverReplica(o.failoverReplica); | 381 checkDatabaseInstanceFailoverReplica(o.failoverReplica); |
| 378 unittest.expect(o.instanceType, unittest.equals('foo')); | 382 unittest.expect(o.instanceType, unittest.equals('foo')); |
| 379 checkUnnamed3726(o.ipAddresses); | 383 checkUnnamed3582(o.ipAddresses); |
| 380 unittest.expect(o.ipv6Address, unittest.equals('foo')); | 384 unittest.expect(o.ipv6Address, unittest.equals('foo')); |
| 381 unittest.expect(o.kind, unittest.equals('foo')); | 385 unittest.expect(o.kind, unittest.equals('foo')); |
| 382 unittest.expect(o.masterInstanceName, unittest.equals('foo')); | 386 unittest.expect(o.masterInstanceName, unittest.equals('foo')); |
| 383 unittest.expect(o.maxDiskSize, unittest.equals('foo')); | 387 unittest.expect(o.maxDiskSize, unittest.equals('foo')); |
| 384 unittest.expect(o.name, unittest.equals('foo')); | 388 unittest.expect(o.name, unittest.equals('foo')); |
| 385 checkOnPremisesConfiguration(o.onPremisesConfiguration); | 389 checkOnPremisesConfiguration(o.onPremisesConfiguration); |
| 386 unittest.expect(o.project, unittest.equals('foo')); | 390 unittest.expect(o.project, unittest.equals('foo')); |
| 387 unittest.expect(o.region, unittest.equals('foo')); | 391 unittest.expect(o.region, unittest.equals('foo')); |
| 388 checkReplicaConfiguration(o.replicaConfiguration); | 392 checkReplicaConfiguration(o.replicaConfiguration); |
| 389 checkUnnamed3727(o.replicaNames); | 393 checkUnnamed3583(o.replicaNames); |
| 390 unittest.expect(o.selfLink, unittest.equals('foo')); | 394 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 391 checkSslCert(o.serverCaCert); | 395 checkSslCert(o.serverCaCert); |
| 392 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); | 396 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); |
| 393 checkSettings(o.settings); | 397 checkSettings(o.settings); |
| 394 unittest.expect(o.state, unittest.equals('foo')); | 398 unittest.expect(o.state, unittest.equals('foo')); |
| 395 checkUnnamed3728(o.suspensionReason); | 399 checkUnnamed3584(o.suspensionReason); |
| 396 } | 400 } |
| 397 buildCounterDatabaseInstance--; | 401 buildCounterDatabaseInstance--; |
| 398 } | 402 } |
| 399 | 403 |
| 400 buildUnnamed3729() { | 404 buildUnnamed3585() { |
| 401 var o = new core.List<api.Database>(); | 405 var o = new core.List<api.Database>(); |
| 402 o.add(buildDatabase()); | 406 o.add(buildDatabase()); |
| 403 o.add(buildDatabase()); | 407 o.add(buildDatabase()); |
| 404 return o; | 408 return o; |
| 405 } | 409 } |
| 406 | 410 |
| 407 checkUnnamed3729(core.List<api.Database> o) { | 411 checkUnnamed3585(core.List<api.Database> o) { |
| 408 unittest.expect(o, unittest.hasLength(2)); | 412 unittest.expect(o, unittest.hasLength(2)); |
| 409 checkDatabase(o[0]); | 413 checkDatabase(o[0]); |
| 410 checkDatabase(o[1]); | 414 checkDatabase(o[1]); |
| 411 } | 415 } |
| 412 | 416 |
| 413 core.int buildCounterDatabasesListResponse = 0; | 417 core.int buildCounterDatabasesListResponse = 0; |
| 414 buildDatabasesListResponse() { | 418 buildDatabasesListResponse() { |
| 415 var o = new api.DatabasesListResponse(); | 419 var o = new api.DatabasesListResponse(); |
| 416 buildCounterDatabasesListResponse++; | 420 buildCounterDatabasesListResponse++; |
| 417 if (buildCounterDatabasesListResponse < 3) { | 421 if (buildCounterDatabasesListResponse < 3) { |
| 418 o.items = buildUnnamed3729(); | 422 o.items = buildUnnamed3585(); |
| 419 o.kind = "foo"; | 423 o.kind = "foo"; |
| 420 } | 424 } |
| 421 buildCounterDatabasesListResponse--; | 425 buildCounterDatabasesListResponse--; |
| 422 return o; | 426 return o; |
| 423 } | 427 } |
| 424 | 428 |
| 425 checkDatabasesListResponse(api.DatabasesListResponse o) { | 429 checkDatabasesListResponse(api.DatabasesListResponse o) { |
| 426 buildCounterDatabasesListResponse++; | 430 buildCounterDatabasesListResponse++; |
| 427 if (buildCounterDatabasesListResponse < 3) { | 431 if (buildCounterDatabasesListResponse < 3) { |
| 428 checkUnnamed3729(o.items); | 432 checkUnnamed3585(o.items); |
| 429 unittest.expect(o.kind, unittest.equals('foo')); | 433 unittest.expect(o.kind, unittest.equals('foo')); |
| 430 } | 434 } |
| 431 buildCounterDatabasesListResponse--; | 435 buildCounterDatabasesListResponse--; |
| 432 } | 436 } |
| 433 | 437 |
| 434 core.int buildCounterExportContextCsvExportOptions = 0; | 438 core.int buildCounterExportContextCsvExportOptions = 0; |
| 435 buildExportContextCsvExportOptions() { | 439 buildExportContextCsvExportOptions() { |
| 436 var o = new api.ExportContextCsvExportOptions(); | 440 var o = new api.ExportContextCsvExportOptions(); |
| 437 buildCounterExportContextCsvExportOptions++; | 441 buildCounterExportContextCsvExportOptions++; |
| 438 if (buildCounterExportContextCsvExportOptions < 3) { | 442 if (buildCounterExportContextCsvExportOptions < 3) { |
| 439 o.selectQuery = "foo"; | 443 o.selectQuery = "foo"; |
| 440 } | 444 } |
| 441 buildCounterExportContextCsvExportOptions--; | 445 buildCounterExportContextCsvExportOptions--; |
| 442 return o; | 446 return o; |
| 443 } | 447 } |
| 444 | 448 |
| 445 checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { | 449 checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { |
| 446 buildCounterExportContextCsvExportOptions++; | 450 buildCounterExportContextCsvExportOptions++; |
| 447 if (buildCounterExportContextCsvExportOptions < 3) { | 451 if (buildCounterExportContextCsvExportOptions < 3) { |
| 448 unittest.expect(o.selectQuery, unittest.equals('foo')); | 452 unittest.expect(o.selectQuery, unittest.equals('foo')); |
| 449 } | 453 } |
| 450 buildCounterExportContextCsvExportOptions--; | 454 buildCounterExportContextCsvExportOptions--; |
| 451 } | 455 } |
| 452 | 456 |
| 453 buildUnnamed3730() { | 457 buildUnnamed3586() { |
| 454 var o = new core.List<core.String>(); | 458 var o = new core.List<core.String>(); |
| 455 o.add("foo"); | 459 o.add("foo"); |
| 456 o.add("foo"); | 460 o.add("foo"); |
| 457 return o; | 461 return o; |
| 458 } | 462 } |
| 459 | 463 |
| 460 checkUnnamed3730(core.List<core.String> o) { | 464 checkUnnamed3586(core.List<core.String> o) { |
| 461 unittest.expect(o, unittest.hasLength(2)); | 465 unittest.expect(o, unittest.hasLength(2)); |
| 462 unittest.expect(o[0], unittest.equals('foo')); | 466 unittest.expect(o[0], unittest.equals('foo')); |
| 463 unittest.expect(o[1], unittest.equals('foo')); | 467 unittest.expect(o[1], unittest.equals('foo')); |
| 464 } | 468 } |
| 465 | 469 |
| 466 buildUnnamed3731() { | 470 buildUnnamed3587() { |
| 467 var o = new core.List<core.String>(); | 471 var o = new core.List<core.String>(); |
| 468 o.add("foo"); | 472 o.add("foo"); |
| 469 o.add("foo"); | 473 o.add("foo"); |
| 470 return o; | 474 return o; |
| 471 } | 475 } |
| 472 | 476 |
| 473 checkUnnamed3731(core.List<core.String> o) { | 477 checkUnnamed3587(core.List<core.String> o) { |
| 474 unittest.expect(o, unittest.hasLength(2)); | 478 unittest.expect(o, unittest.hasLength(2)); |
| 475 unittest.expect(o[0], unittest.equals('foo')); | 479 unittest.expect(o[0], unittest.equals('foo')); |
| 476 unittest.expect(o[1], unittest.equals('foo')); | 480 unittest.expect(o[1], unittest.equals('foo')); |
| 477 } | 481 } |
| 478 | 482 |
| 479 core.int buildCounterExportContextSqlExportOptions = 0; | 483 core.int buildCounterExportContextSqlExportOptions = 0; |
| 480 buildExportContextSqlExportOptions() { | 484 buildExportContextSqlExportOptions() { |
| 481 var o = new api.ExportContextSqlExportOptions(); | 485 var o = new api.ExportContextSqlExportOptions(); |
| 482 buildCounterExportContextSqlExportOptions++; | 486 buildCounterExportContextSqlExportOptions++; |
| 483 if (buildCounterExportContextSqlExportOptions < 3) { | 487 if (buildCounterExportContextSqlExportOptions < 3) { |
| 484 o.schemaOnly = true; | 488 o.schemaOnly = true; |
| 485 o.tables = buildUnnamed3731(); | 489 o.tables = buildUnnamed3587(); |
| 486 } | 490 } |
| 487 buildCounterExportContextSqlExportOptions--; | 491 buildCounterExportContextSqlExportOptions--; |
| 488 return o; | 492 return o; |
| 489 } | 493 } |
| 490 | 494 |
| 491 checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) { | 495 checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) { |
| 492 buildCounterExportContextSqlExportOptions++; | 496 buildCounterExportContextSqlExportOptions++; |
| 493 if (buildCounterExportContextSqlExportOptions < 3) { | 497 if (buildCounterExportContextSqlExportOptions < 3) { |
| 494 unittest.expect(o.schemaOnly, unittest.isTrue); | 498 unittest.expect(o.schemaOnly, unittest.isTrue); |
| 495 checkUnnamed3731(o.tables); | 499 checkUnnamed3587(o.tables); |
| 496 } | 500 } |
| 497 buildCounterExportContextSqlExportOptions--; | 501 buildCounterExportContextSqlExportOptions--; |
| 498 } | 502 } |
| 499 | 503 |
| 500 core.int buildCounterExportContext = 0; | 504 core.int buildCounterExportContext = 0; |
| 501 buildExportContext() { | 505 buildExportContext() { |
| 502 var o = new api.ExportContext(); | 506 var o = new api.ExportContext(); |
| 503 buildCounterExportContext++; | 507 buildCounterExportContext++; |
| 504 if (buildCounterExportContext < 3) { | 508 if (buildCounterExportContext < 3) { |
| 505 o.csvExportOptions = buildExportContextCsvExportOptions(); | 509 o.csvExportOptions = buildExportContextCsvExportOptions(); |
| 506 o.databases = buildUnnamed3730(); | 510 o.databases = buildUnnamed3586(); |
| 507 o.fileType = "foo"; | 511 o.fileType = "foo"; |
| 508 o.kind = "foo"; | 512 o.kind = "foo"; |
| 509 o.sqlExportOptions = buildExportContextSqlExportOptions(); | 513 o.sqlExportOptions = buildExportContextSqlExportOptions(); |
| 510 o.uri = "foo"; | 514 o.uri = "foo"; |
| 511 } | 515 } |
| 512 buildCounterExportContext--; | 516 buildCounterExportContext--; |
| 513 return o; | 517 return o; |
| 514 } | 518 } |
| 515 | 519 |
| 516 checkExportContext(api.ExportContext o) { | 520 checkExportContext(api.ExportContext o) { |
| 517 buildCounterExportContext++; | 521 buildCounterExportContext++; |
| 518 if (buildCounterExportContext < 3) { | 522 if (buildCounterExportContext < 3) { |
| 519 checkExportContextCsvExportOptions(o.csvExportOptions); | 523 checkExportContextCsvExportOptions(o.csvExportOptions); |
| 520 checkUnnamed3730(o.databases); | 524 checkUnnamed3586(o.databases); |
| 521 unittest.expect(o.fileType, unittest.equals('foo')); | 525 unittest.expect(o.fileType, unittest.equals('foo')); |
| 522 unittest.expect(o.kind, unittest.equals('foo')); | 526 unittest.expect(o.kind, unittest.equals('foo')); |
| 523 checkExportContextSqlExportOptions(o.sqlExportOptions); | 527 checkExportContextSqlExportOptions(o.sqlExportOptions); |
| 524 unittest.expect(o.uri, unittest.equals('foo')); | 528 unittest.expect(o.uri, unittest.equals('foo')); |
| 525 } | 529 } |
| 526 buildCounterExportContext--; | 530 buildCounterExportContext--; |
| 527 } | 531 } |
| 528 | 532 |
| 529 core.int buildCounterFailoverContext = 0; | 533 core.int buildCounterFailoverContext = 0; |
| 530 buildFailoverContext() { | 534 buildFailoverContext() { |
| 531 var o = new api.FailoverContext(); | 535 var o = new api.FailoverContext(); |
| 532 buildCounterFailoverContext++; | 536 buildCounterFailoverContext++; |
| 533 if (buildCounterFailoverContext < 3) { | 537 if (buildCounterFailoverContext < 3) { |
| 534 o.kind = "foo"; | 538 o.kind = "foo"; |
| 535 o.settingsVersion = "foo"; | 539 o.settingsVersion = "foo"; |
| 536 } | 540 } |
| 537 buildCounterFailoverContext--; | 541 buildCounterFailoverContext--; |
| 538 return o; | 542 return o; |
| 539 } | 543 } |
| 540 | 544 |
| 541 checkFailoverContext(api.FailoverContext o) { | 545 checkFailoverContext(api.FailoverContext o) { |
| 542 buildCounterFailoverContext++; | 546 buildCounterFailoverContext++; |
| 543 if (buildCounterFailoverContext < 3) { | 547 if (buildCounterFailoverContext < 3) { |
| 544 unittest.expect(o.kind, unittest.equals('foo')); | 548 unittest.expect(o.kind, unittest.equals('foo')); |
| 545 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 549 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
| 546 } | 550 } |
| 547 buildCounterFailoverContext--; | 551 buildCounterFailoverContext--; |
| 548 } | 552 } |
| 549 | 553 |
| 550 buildUnnamed3732() { | 554 buildUnnamed3588() { |
| 551 var o = new core.List<core.String>(); | 555 var o = new core.List<core.String>(); |
| 552 o.add("foo"); | 556 o.add("foo"); |
| 553 o.add("foo"); | 557 o.add("foo"); |
| 554 return o; | 558 return o; |
| 555 } | 559 } |
| 556 | 560 |
| 557 checkUnnamed3732(core.List<core.String> o) { | 561 checkUnnamed3588(core.List<core.String> o) { |
| 558 unittest.expect(o, unittest.hasLength(2)); | 562 unittest.expect(o, unittest.hasLength(2)); |
| 559 unittest.expect(o[0], unittest.equals('foo')); | 563 unittest.expect(o[0], unittest.equals('foo')); |
| 560 unittest.expect(o[1], unittest.equals('foo')); | 564 unittest.expect(o[1], unittest.equals('foo')); |
| 561 } | 565 } |
| 562 | 566 |
| 563 buildUnnamed3733() { | 567 buildUnnamed3589() { |
| 564 var o = new core.List<core.String>(); | 568 var o = new core.List<core.String>(); |
| 565 o.add("foo"); | 569 o.add("foo"); |
| 566 o.add("foo"); | 570 o.add("foo"); |
| 567 return o; | 571 return o; |
| 568 } | 572 } |
| 569 | 573 |
| 570 checkUnnamed3733(core.List<core.String> o) { | 574 checkUnnamed3589(core.List<core.String> o) { |
| 571 unittest.expect(o, unittest.hasLength(2)); | 575 unittest.expect(o, unittest.hasLength(2)); |
| 572 unittest.expect(o[0], unittest.equals('foo')); | 576 unittest.expect(o[0], unittest.equals('foo')); |
| 573 unittest.expect(o[1], unittest.equals('foo')); | 577 unittest.expect(o[1], unittest.equals('foo')); |
| 574 } | 578 } |
| 575 | 579 |
| 576 core.int buildCounterFlag = 0; | 580 core.int buildCounterFlag = 0; |
| 577 buildFlag() { | 581 buildFlag() { |
| 578 var o = new api.Flag(); | 582 var o = new api.Flag(); |
| 579 buildCounterFlag++; | 583 buildCounterFlag++; |
| 580 if (buildCounterFlag < 3) { | 584 if (buildCounterFlag < 3) { |
| 581 o.allowedStringValues = buildUnnamed3732(); | 585 o.allowedStringValues = buildUnnamed3588(); |
| 582 o.appliesTo = buildUnnamed3733(); | 586 o.appliesTo = buildUnnamed3589(); |
| 583 o.kind = "foo"; | 587 o.kind = "foo"; |
| 584 o.maxValue = "foo"; | 588 o.maxValue = "foo"; |
| 585 o.minValue = "foo"; | 589 o.minValue = "foo"; |
| 586 o.name = "foo"; | 590 o.name = "foo"; |
| 587 o.requiresRestart = true; | 591 o.requiresRestart = true; |
| 588 o.type = "foo"; | 592 o.type = "foo"; |
| 589 } | 593 } |
| 590 buildCounterFlag--; | 594 buildCounterFlag--; |
| 591 return o; | 595 return o; |
| 592 } | 596 } |
| 593 | 597 |
| 594 checkFlag(api.Flag o) { | 598 checkFlag(api.Flag o) { |
| 595 buildCounterFlag++; | 599 buildCounterFlag++; |
| 596 if (buildCounterFlag < 3) { | 600 if (buildCounterFlag < 3) { |
| 597 checkUnnamed3732(o.allowedStringValues); | 601 checkUnnamed3588(o.allowedStringValues); |
| 598 checkUnnamed3733(o.appliesTo); | 602 checkUnnamed3589(o.appliesTo); |
| 599 unittest.expect(o.kind, unittest.equals('foo')); | 603 unittest.expect(o.kind, unittest.equals('foo')); |
| 600 unittest.expect(o.maxValue, unittest.equals('foo')); | 604 unittest.expect(o.maxValue, unittest.equals('foo')); |
| 601 unittest.expect(o.minValue, unittest.equals('foo')); | 605 unittest.expect(o.minValue, unittest.equals('foo')); |
| 602 unittest.expect(o.name, unittest.equals('foo')); | 606 unittest.expect(o.name, unittest.equals('foo')); |
| 603 unittest.expect(o.requiresRestart, unittest.isTrue); | 607 unittest.expect(o.requiresRestart, unittest.isTrue); |
| 604 unittest.expect(o.type, unittest.equals('foo')); | 608 unittest.expect(o.type, unittest.equals('foo')); |
| 605 } | 609 } |
| 606 buildCounterFlag--; | 610 buildCounterFlag--; |
| 607 } | 611 } |
| 608 | 612 |
| 609 buildUnnamed3734() { | 613 buildUnnamed3590() { |
| 610 var o = new core.List<api.Flag>(); | 614 var o = new core.List<api.Flag>(); |
| 611 o.add(buildFlag()); | 615 o.add(buildFlag()); |
| 612 o.add(buildFlag()); | 616 o.add(buildFlag()); |
| 613 return o; | 617 return o; |
| 614 } | 618 } |
| 615 | 619 |
| 616 checkUnnamed3734(core.List<api.Flag> o) { | 620 checkUnnamed3590(core.List<api.Flag> o) { |
| 617 unittest.expect(o, unittest.hasLength(2)); | 621 unittest.expect(o, unittest.hasLength(2)); |
| 618 checkFlag(o[0]); | 622 checkFlag(o[0]); |
| 619 checkFlag(o[1]); | 623 checkFlag(o[1]); |
| 620 } | 624 } |
| 621 | 625 |
| 622 core.int buildCounterFlagsListResponse = 0; | 626 core.int buildCounterFlagsListResponse = 0; |
| 623 buildFlagsListResponse() { | 627 buildFlagsListResponse() { |
| 624 var o = new api.FlagsListResponse(); | 628 var o = new api.FlagsListResponse(); |
| 625 buildCounterFlagsListResponse++; | 629 buildCounterFlagsListResponse++; |
| 626 if (buildCounterFlagsListResponse < 3) { | 630 if (buildCounterFlagsListResponse < 3) { |
| 627 o.items = buildUnnamed3734(); | 631 o.items = buildUnnamed3590(); |
| 628 o.kind = "foo"; | 632 o.kind = "foo"; |
| 629 } | 633 } |
| 630 buildCounterFlagsListResponse--; | 634 buildCounterFlagsListResponse--; |
| 631 return o; | 635 return o; |
| 632 } | 636 } |
| 633 | 637 |
| 634 checkFlagsListResponse(api.FlagsListResponse o) { | 638 checkFlagsListResponse(api.FlagsListResponse o) { |
| 635 buildCounterFlagsListResponse++; | 639 buildCounterFlagsListResponse++; |
| 636 if (buildCounterFlagsListResponse < 3) { | 640 if (buildCounterFlagsListResponse < 3) { |
| 637 checkUnnamed3734(o.items); | 641 checkUnnamed3590(o.items); |
| 638 unittest.expect(o.kind, unittest.equals('foo')); | 642 unittest.expect(o.kind, unittest.equals('foo')); |
| 639 } | 643 } |
| 640 buildCounterFlagsListResponse--; | 644 buildCounterFlagsListResponse--; |
| 641 } | 645 } |
| 642 | 646 |
| 643 buildUnnamed3735() { | 647 buildUnnamed3591() { |
| 644 var o = new core.List<core.String>(); | 648 var o = new core.List<core.String>(); |
| 645 o.add("foo"); | 649 o.add("foo"); |
| 646 o.add("foo"); | 650 o.add("foo"); |
| 647 return o; | 651 return o; |
| 648 } | 652 } |
| 649 | 653 |
| 650 checkUnnamed3735(core.List<core.String> o) { | 654 checkUnnamed3591(core.List<core.String> o) { |
| 651 unittest.expect(o, unittest.hasLength(2)); | 655 unittest.expect(o, unittest.hasLength(2)); |
| 652 unittest.expect(o[0], unittest.equals('foo')); | 656 unittest.expect(o[0], unittest.equals('foo')); |
| 653 unittest.expect(o[1], unittest.equals('foo')); | 657 unittest.expect(o[1], unittest.equals('foo')); |
| 654 } | 658 } |
| 655 | 659 |
| 656 core.int buildCounterImportContextCsvImportOptions = 0; | 660 core.int buildCounterImportContextCsvImportOptions = 0; |
| 657 buildImportContextCsvImportOptions() { | 661 buildImportContextCsvImportOptions() { |
| 658 var o = new api.ImportContextCsvImportOptions(); | 662 var o = new api.ImportContextCsvImportOptions(); |
| 659 buildCounterImportContextCsvImportOptions++; | 663 buildCounterImportContextCsvImportOptions++; |
| 660 if (buildCounterImportContextCsvImportOptions < 3) { | 664 if (buildCounterImportContextCsvImportOptions < 3) { |
| 661 o.columns = buildUnnamed3735(); | 665 o.columns = buildUnnamed3591(); |
| 662 o.table = "foo"; | 666 o.table = "foo"; |
| 663 } | 667 } |
| 664 buildCounterImportContextCsvImportOptions--; | 668 buildCounterImportContextCsvImportOptions--; |
| 665 return o; | 669 return o; |
| 666 } | 670 } |
| 667 | 671 |
| 668 checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { | 672 checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { |
| 669 buildCounterImportContextCsvImportOptions++; | 673 buildCounterImportContextCsvImportOptions++; |
| 670 if (buildCounterImportContextCsvImportOptions < 3) { | 674 if (buildCounterImportContextCsvImportOptions < 3) { |
| 671 checkUnnamed3735(o.columns); | 675 checkUnnamed3591(o.columns); |
| 672 unittest.expect(o.table, unittest.equals('foo')); | 676 unittest.expect(o.table, unittest.equals('foo')); |
| 673 } | 677 } |
| 674 buildCounterImportContextCsvImportOptions--; | 678 buildCounterImportContextCsvImportOptions--; |
| 675 } | 679 } |
| 676 | 680 |
| 677 core.int buildCounterImportContext = 0; | 681 core.int buildCounterImportContext = 0; |
| 678 buildImportContext() { | 682 buildImportContext() { |
| 679 var o = new api.ImportContext(); | 683 var o = new api.ImportContext(); |
| 680 buildCounterImportContext++; | 684 buildCounterImportContext++; |
| 681 if (buildCounterImportContext < 3) { | 685 if (buildCounterImportContext < 3) { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 } | 774 } |
| 771 | 775 |
| 772 checkInstancesImportRequest(api.InstancesImportRequest o) { | 776 checkInstancesImportRequest(api.InstancesImportRequest o) { |
| 773 buildCounterInstancesImportRequest++; | 777 buildCounterInstancesImportRequest++; |
| 774 if (buildCounterInstancesImportRequest < 3) { | 778 if (buildCounterInstancesImportRequest < 3) { |
| 775 checkImportContext(o.importContext); | 779 checkImportContext(o.importContext); |
| 776 } | 780 } |
| 777 buildCounterInstancesImportRequest--; | 781 buildCounterInstancesImportRequest--; |
| 778 } | 782 } |
| 779 | 783 |
| 780 buildUnnamed3736() { | 784 buildUnnamed3592() { |
| 781 var o = new core.List<api.DatabaseInstance>(); | 785 var o = new core.List<api.DatabaseInstance>(); |
| 782 o.add(buildDatabaseInstance()); | 786 o.add(buildDatabaseInstance()); |
| 783 o.add(buildDatabaseInstance()); | 787 o.add(buildDatabaseInstance()); |
| 784 return o; | 788 return o; |
| 785 } | 789 } |
| 786 | 790 |
| 787 checkUnnamed3736(core.List<api.DatabaseInstance> o) { | 791 checkUnnamed3592(core.List<api.DatabaseInstance> o) { |
| 788 unittest.expect(o, unittest.hasLength(2)); | 792 unittest.expect(o, unittest.hasLength(2)); |
| 789 checkDatabaseInstance(o[0]); | 793 checkDatabaseInstance(o[0]); |
| 790 checkDatabaseInstance(o[1]); | 794 checkDatabaseInstance(o[1]); |
| 791 } | 795 } |
| 792 | 796 |
| 793 core.int buildCounterInstancesListResponse = 0; | 797 core.int buildCounterInstancesListResponse = 0; |
| 794 buildInstancesListResponse() { | 798 buildInstancesListResponse() { |
| 795 var o = new api.InstancesListResponse(); | 799 var o = new api.InstancesListResponse(); |
| 796 buildCounterInstancesListResponse++; | 800 buildCounterInstancesListResponse++; |
| 797 if (buildCounterInstancesListResponse < 3) { | 801 if (buildCounterInstancesListResponse < 3) { |
| 798 o.items = buildUnnamed3736(); | 802 o.items = buildUnnamed3592(); |
| 799 o.kind = "foo"; | 803 o.kind = "foo"; |
| 800 o.nextPageToken = "foo"; | 804 o.nextPageToken = "foo"; |
| 801 } | 805 } |
| 802 buildCounterInstancesListResponse--; | 806 buildCounterInstancesListResponse--; |
| 803 return o; | 807 return o; |
| 804 } | 808 } |
| 805 | 809 |
| 806 checkInstancesListResponse(api.InstancesListResponse o) { | 810 checkInstancesListResponse(api.InstancesListResponse o) { |
| 807 buildCounterInstancesListResponse++; | 811 buildCounterInstancesListResponse++; |
| 808 if (buildCounterInstancesListResponse < 3) { | 812 if (buildCounterInstancesListResponse < 3) { |
| 809 checkUnnamed3736(o.items); | 813 checkUnnamed3592(o.items); |
| 810 unittest.expect(o.kind, unittest.equals('foo')); | 814 unittest.expect(o.kind, unittest.equals('foo')); |
| 811 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 815 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 812 } | 816 } |
| 813 buildCounterInstancesListResponse--; | 817 buildCounterInstancesListResponse--; |
| 814 } | 818 } |
| 815 | 819 |
| 816 core.int buildCounterInstancesRestoreBackupRequest = 0; | 820 core.int buildCounterInstancesRestoreBackupRequest = 0; |
| 817 buildInstancesRestoreBackupRequest() { | 821 buildInstancesRestoreBackupRequest() { |
| 818 var o = new api.InstancesRestoreBackupRequest(); | 822 var o = new api.InstancesRestoreBackupRequest(); |
| 819 buildCounterInstancesRestoreBackupRequest++; | 823 buildCounterInstancesRestoreBackupRequest++; |
| 820 if (buildCounterInstancesRestoreBackupRequest < 3) { | 824 if (buildCounterInstancesRestoreBackupRequest < 3) { |
| 821 o.restoreBackupContext = buildRestoreBackupContext(); | 825 o.restoreBackupContext = buildRestoreBackupContext(); |
| 822 } | 826 } |
| 823 buildCounterInstancesRestoreBackupRequest--; | 827 buildCounterInstancesRestoreBackupRequest--; |
| 824 return o; | 828 return o; |
| 825 } | 829 } |
| 826 | 830 |
| 827 checkInstancesRestoreBackupRequest(api.InstancesRestoreBackupRequest o) { | 831 checkInstancesRestoreBackupRequest(api.InstancesRestoreBackupRequest o) { |
| 828 buildCounterInstancesRestoreBackupRequest++; | 832 buildCounterInstancesRestoreBackupRequest++; |
| 829 if (buildCounterInstancesRestoreBackupRequest < 3) { | 833 if (buildCounterInstancesRestoreBackupRequest < 3) { |
| 830 checkRestoreBackupContext(o.restoreBackupContext); | 834 checkRestoreBackupContext(o.restoreBackupContext); |
| 831 } | 835 } |
| 832 buildCounterInstancesRestoreBackupRequest--; | 836 buildCounterInstancesRestoreBackupRequest--; |
| 833 } | 837 } |
| 834 | 838 |
| 835 buildUnnamed3737() { | 839 buildUnnamed3593() { |
| 836 var o = new core.List<api.AclEntry>(); | 840 var o = new core.List<api.AclEntry>(); |
| 837 o.add(buildAclEntry()); | 841 o.add(buildAclEntry()); |
| 838 o.add(buildAclEntry()); | 842 o.add(buildAclEntry()); |
| 839 return o; | 843 return o; |
| 840 } | 844 } |
| 841 | 845 |
| 842 checkUnnamed3737(core.List<api.AclEntry> o) { | 846 checkUnnamed3593(core.List<api.AclEntry> o) { |
| 843 unittest.expect(o, unittest.hasLength(2)); | 847 unittest.expect(o, unittest.hasLength(2)); |
| 844 checkAclEntry(o[0]); | 848 checkAclEntry(o[0]); |
| 845 checkAclEntry(o[1]); | 849 checkAclEntry(o[1]); |
| 846 } | 850 } |
| 847 | 851 |
| 848 core.int buildCounterIpConfiguration = 0; | 852 core.int buildCounterIpConfiguration = 0; |
| 849 buildIpConfiguration() { | 853 buildIpConfiguration() { |
| 850 var o = new api.IpConfiguration(); | 854 var o = new api.IpConfiguration(); |
| 851 buildCounterIpConfiguration++; | 855 buildCounterIpConfiguration++; |
| 852 if (buildCounterIpConfiguration < 3) { | 856 if (buildCounterIpConfiguration < 3) { |
| 853 o.authorizedNetworks = buildUnnamed3737(); | 857 o.authorizedNetworks = buildUnnamed3593(); |
| 854 o.ipv4Enabled = true; | 858 o.ipv4Enabled = true; |
| 855 o.requireSsl = true; | 859 o.requireSsl = true; |
| 856 } | 860 } |
| 857 buildCounterIpConfiguration--; | 861 buildCounterIpConfiguration--; |
| 858 return o; | 862 return o; |
| 859 } | 863 } |
| 860 | 864 |
| 861 checkIpConfiguration(api.IpConfiguration o) { | 865 checkIpConfiguration(api.IpConfiguration o) { |
| 862 buildCounterIpConfiguration++; | 866 buildCounterIpConfiguration++; |
| 863 if (buildCounterIpConfiguration < 3) { | 867 if (buildCounterIpConfiguration < 3) { |
| 864 checkUnnamed3737(o.authorizedNetworks); | 868 checkUnnamed3593(o.authorizedNetworks); |
| 865 unittest.expect(o.ipv4Enabled, unittest.isTrue); | 869 unittest.expect(o.ipv4Enabled, unittest.isTrue); |
| 866 unittest.expect(o.requireSsl, unittest.isTrue); | 870 unittest.expect(o.requireSsl, unittest.isTrue); |
| 867 } | 871 } |
| 868 buildCounterIpConfiguration--; | 872 buildCounterIpConfiguration--; |
| 869 } | 873 } |
| 870 | 874 |
| 871 core.int buildCounterIpMapping = 0; | 875 core.int buildCounterIpMapping = 0; |
| 872 buildIpMapping() { | 876 buildIpMapping() { |
| 873 var o = new api.IpMapping(); | 877 var o = new api.IpMapping(); |
| 874 buildCounterIpMapping++; | 878 buildCounterIpMapping++; |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 checkOperationError(api.OperationError o) { | 1064 checkOperationError(api.OperationError o) { |
| 1061 buildCounterOperationError++; | 1065 buildCounterOperationError++; |
| 1062 if (buildCounterOperationError < 3) { | 1066 if (buildCounterOperationError < 3) { |
| 1063 unittest.expect(o.code, unittest.equals('foo')); | 1067 unittest.expect(o.code, unittest.equals('foo')); |
| 1064 unittest.expect(o.kind, unittest.equals('foo')); | 1068 unittest.expect(o.kind, unittest.equals('foo')); |
| 1065 unittest.expect(o.message, unittest.equals('foo')); | 1069 unittest.expect(o.message, unittest.equals('foo')); |
| 1066 } | 1070 } |
| 1067 buildCounterOperationError--; | 1071 buildCounterOperationError--; |
| 1068 } | 1072 } |
| 1069 | 1073 |
| 1070 buildUnnamed3738() { | 1074 buildUnnamed3594() { |
| 1071 var o = new core.List<api.OperationError>(); | 1075 var o = new core.List<api.OperationError>(); |
| 1072 o.add(buildOperationError()); | 1076 o.add(buildOperationError()); |
| 1073 o.add(buildOperationError()); | 1077 o.add(buildOperationError()); |
| 1074 return o; | 1078 return o; |
| 1075 } | 1079 } |
| 1076 | 1080 |
| 1077 checkUnnamed3738(core.List<api.OperationError> o) { | 1081 checkUnnamed3594(core.List<api.OperationError> o) { |
| 1078 unittest.expect(o, unittest.hasLength(2)); | 1082 unittest.expect(o, unittest.hasLength(2)); |
| 1079 checkOperationError(o[0]); | 1083 checkOperationError(o[0]); |
| 1080 checkOperationError(o[1]); | 1084 checkOperationError(o[1]); |
| 1081 } | 1085 } |
| 1082 | 1086 |
| 1083 core.int buildCounterOperationErrors = 0; | 1087 core.int buildCounterOperationErrors = 0; |
| 1084 buildOperationErrors() { | 1088 buildOperationErrors() { |
| 1085 var o = new api.OperationErrors(); | 1089 var o = new api.OperationErrors(); |
| 1086 buildCounterOperationErrors++; | 1090 buildCounterOperationErrors++; |
| 1087 if (buildCounterOperationErrors < 3) { | 1091 if (buildCounterOperationErrors < 3) { |
| 1088 o.errors = buildUnnamed3738(); | 1092 o.errors = buildUnnamed3594(); |
| 1089 o.kind = "foo"; | 1093 o.kind = "foo"; |
| 1090 } | 1094 } |
| 1091 buildCounterOperationErrors--; | 1095 buildCounterOperationErrors--; |
| 1092 return o; | 1096 return o; |
| 1093 } | 1097 } |
| 1094 | 1098 |
| 1095 checkOperationErrors(api.OperationErrors o) { | 1099 checkOperationErrors(api.OperationErrors o) { |
| 1096 buildCounterOperationErrors++; | 1100 buildCounterOperationErrors++; |
| 1097 if (buildCounterOperationErrors < 3) { | 1101 if (buildCounterOperationErrors < 3) { |
| 1098 checkUnnamed3738(o.errors); | 1102 checkUnnamed3594(o.errors); |
| 1099 unittest.expect(o.kind, unittest.equals('foo')); | 1103 unittest.expect(o.kind, unittest.equals('foo')); |
| 1100 } | 1104 } |
| 1101 buildCounterOperationErrors--; | 1105 buildCounterOperationErrors--; |
| 1102 } | 1106 } |
| 1103 | 1107 |
| 1104 buildUnnamed3739() { | 1108 buildUnnamed3595() { |
| 1105 var o = new core.List<api.Operation>(); | 1109 var o = new core.List<api.Operation>(); |
| 1106 o.add(buildOperation()); | 1110 o.add(buildOperation()); |
| 1107 o.add(buildOperation()); | 1111 o.add(buildOperation()); |
| 1108 return o; | 1112 return o; |
| 1109 } | 1113 } |
| 1110 | 1114 |
| 1111 checkUnnamed3739(core.List<api.Operation> o) { | 1115 checkUnnamed3595(core.List<api.Operation> o) { |
| 1112 unittest.expect(o, unittest.hasLength(2)); | 1116 unittest.expect(o, unittest.hasLength(2)); |
| 1113 checkOperation(o[0]); | 1117 checkOperation(o[0]); |
| 1114 checkOperation(o[1]); | 1118 checkOperation(o[1]); |
| 1115 } | 1119 } |
| 1116 | 1120 |
| 1117 core.int buildCounterOperationsListResponse = 0; | 1121 core.int buildCounterOperationsListResponse = 0; |
| 1118 buildOperationsListResponse() { | 1122 buildOperationsListResponse() { |
| 1119 var o = new api.OperationsListResponse(); | 1123 var o = new api.OperationsListResponse(); |
| 1120 buildCounterOperationsListResponse++; | 1124 buildCounterOperationsListResponse++; |
| 1121 if (buildCounterOperationsListResponse < 3) { | 1125 if (buildCounterOperationsListResponse < 3) { |
| 1122 o.items = buildUnnamed3739(); | 1126 o.items = buildUnnamed3595(); |
| 1123 o.kind = "foo"; | 1127 o.kind = "foo"; |
| 1124 o.nextPageToken = "foo"; | 1128 o.nextPageToken = "foo"; |
| 1125 } | 1129 } |
| 1126 buildCounterOperationsListResponse--; | 1130 buildCounterOperationsListResponse--; |
| 1127 return o; | 1131 return o; |
| 1128 } | 1132 } |
| 1129 | 1133 |
| 1130 checkOperationsListResponse(api.OperationsListResponse o) { | 1134 checkOperationsListResponse(api.OperationsListResponse o) { |
| 1131 buildCounterOperationsListResponse++; | 1135 buildCounterOperationsListResponse++; |
| 1132 if (buildCounterOperationsListResponse < 3) { | 1136 if (buildCounterOperationsListResponse < 3) { |
| 1133 checkUnnamed3739(o.items); | 1137 checkUnnamed3595(o.items); |
| 1134 unittest.expect(o.kind, unittest.equals('foo')); | 1138 unittest.expect(o.kind, unittest.equals('foo')); |
| 1135 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1139 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1136 } | 1140 } |
| 1137 buildCounterOperationsListResponse--; | 1141 buildCounterOperationsListResponse--; |
| 1138 } | 1142 } |
| 1139 | 1143 |
| 1140 core.int buildCounterReplicaConfiguration = 0; | 1144 core.int buildCounterReplicaConfiguration = 0; |
| 1141 buildReplicaConfiguration() { | 1145 buildReplicaConfiguration() { |
| 1142 var o = new api.ReplicaConfiguration(); | 1146 var o = new api.ReplicaConfiguration(); |
| 1143 buildCounterReplicaConfiguration++; | 1147 buildCounterReplicaConfiguration++; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 checkRestoreBackupContext(api.RestoreBackupContext o) { | 1180 checkRestoreBackupContext(api.RestoreBackupContext o) { |
| 1177 buildCounterRestoreBackupContext++; | 1181 buildCounterRestoreBackupContext++; |
| 1178 if (buildCounterRestoreBackupContext < 3) { | 1182 if (buildCounterRestoreBackupContext < 3) { |
| 1179 unittest.expect(o.backupRunId, unittest.equals('foo')); | 1183 unittest.expect(o.backupRunId, unittest.equals('foo')); |
| 1180 unittest.expect(o.instanceId, unittest.equals('foo')); | 1184 unittest.expect(o.instanceId, unittest.equals('foo')); |
| 1181 unittest.expect(o.kind, unittest.equals('foo')); | 1185 unittest.expect(o.kind, unittest.equals('foo')); |
| 1182 } | 1186 } |
| 1183 buildCounterRestoreBackupContext--; | 1187 buildCounterRestoreBackupContext--; |
| 1184 } | 1188 } |
| 1185 | 1189 |
| 1186 buildUnnamed3740() { | 1190 buildUnnamed3596() { |
| 1187 var o = new core.List<core.String>(); | 1191 var o = new core.List<core.String>(); |
| 1188 o.add("foo"); | 1192 o.add("foo"); |
| 1189 o.add("foo"); | 1193 o.add("foo"); |
| 1190 return o; | 1194 return o; |
| 1191 } | 1195 } |
| 1192 | 1196 |
| 1193 checkUnnamed3740(core.List<core.String> o) { | 1197 checkUnnamed3596(core.List<core.String> o) { |
| 1194 unittest.expect(o, unittest.hasLength(2)); | 1198 unittest.expect(o, unittest.hasLength(2)); |
| 1195 unittest.expect(o[0], unittest.equals('foo')); | 1199 unittest.expect(o[0], unittest.equals('foo')); |
| 1196 unittest.expect(o[1], unittest.equals('foo')); | 1200 unittest.expect(o[1], unittest.equals('foo')); |
| 1197 } | 1201 } |
| 1198 | 1202 |
| 1199 buildUnnamed3741() { | 1203 buildUnnamed3597() { |
| 1200 var o = new core.List<api.DatabaseFlags>(); | 1204 var o = new core.List<api.DatabaseFlags>(); |
| 1201 o.add(buildDatabaseFlags()); | 1205 o.add(buildDatabaseFlags()); |
| 1202 o.add(buildDatabaseFlags()); | 1206 o.add(buildDatabaseFlags()); |
| 1203 return o; | 1207 return o; |
| 1204 } | 1208 } |
| 1205 | 1209 |
| 1206 checkUnnamed3741(core.List<api.DatabaseFlags> o) { | 1210 checkUnnamed3597(core.List<api.DatabaseFlags> o) { |
| 1207 unittest.expect(o, unittest.hasLength(2)); | 1211 unittest.expect(o, unittest.hasLength(2)); |
| 1208 checkDatabaseFlags(o[0]); | 1212 checkDatabaseFlags(o[0]); |
| 1209 checkDatabaseFlags(o[1]); | 1213 checkDatabaseFlags(o[1]); |
| 1210 } | 1214 } |
| 1211 | 1215 |
| 1212 core.int buildCounterSettings = 0; | 1216 core.int buildCounterSettings = 0; |
| 1213 buildSettings() { | 1217 buildSettings() { |
| 1214 var o = new api.Settings(); | 1218 var o = new api.Settings(); |
| 1215 buildCounterSettings++; | 1219 buildCounterSettings++; |
| 1216 if (buildCounterSettings < 3) { | 1220 if (buildCounterSettings < 3) { |
| 1217 o.activationPolicy = "foo"; | 1221 o.activationPolicy = "foo"; |
| 1218 o.authorizedGaeApplications = buildUnnamed3740(); | 1222 o.authorizedGaeApplications = buildUnnamed3596(); |
| 1219 o.backupConfiguration = buildBackupConfiguration(); | 1223 o.backupConfiguration = buildBackupConfiguration(); |
| 1220 o.crashSafeReplicationEnabled = true; | 1224 o.crashSafeReplicationEnabled = true; |
| 1221 o.dataDiskSizeGb = "foo"; | 1225 o.dataDiskSizeGb = "foo"; |
| 1222 o.dataDiskType = "foo"; | 1226 o.dataDiskType = "foo"; |
| 1223 o.databaseFlags = buildUnnamed3741(); | 1227 o.databaseFlags = buildUnnamed3597(); |
| 1224 o.databaseReplicationEnabled = true; | 1228 o.databaseReplicationEnabled = true; |
| 1225 o.ipConfiguration = buildIpConfiguration(); | 1229 o.ipConfiguration = buildIpConfiguration(); |
| 1226 o.kind = "foo"; | 1230 o.kind = "foo"; |
| 1227 o.locationPreference = buildLocationPreference(); | 1231 o.locationPreference = buildLocationPreference(); |
| 1228 o.maintenanceWindow = buildMaintenanceWindow(); | 1232 o.maintenanceWindow = buildMaintenanceWindow(); |
| 1229 o.pricingPlan = "foo"; | 1233 o.pricingPlan = "foo"; |
| 1230 o.replicationType = "foo"; | 1234 o.replicationType = "foo"; |
| 1231 o.settingsVersion = "foo"; | 1235 o.settingsVersion = "foo"; |
| 1232 o.storageAutoResize = true; | 1236 o.storageAutoResize = true; |
| 1233 o.tier = "foo"; | 1237 o.tier = "foo"; |
| 1234 } | 1238 } |
| 1235 buildCounterSettings--; | 1239 buildCounterSettings--; |
| 1236 return o; | 1240 return o; |
| 1237 } | 1241 } |
| 1238 | 1242 |
| 1239 checkSettings(api.Settings o) { | 1243 checkSettings(api.Settings o) { |
| 1240 buildCounterSettings++; | 1244 buildCounterSettings++; |
| 1241 if (buildCounterSettings < 3) { | 1245 if (buildCounterSettings < 3) { |
| 1242 unittest.expect(o.activationPolicy, unittest.equals('foo')); | 1246 unittest.expect(o.activationPolicy, unittest.equals('foo')); |
| 1243 checkUnnamed3740(o.authorizedGaeApplications); | 1247 checkUnnamed3596(o.authorizedGaeApplications); |
| 1244 checkBackupConfiguration(o.backupConfiguration); | 1248 checkBackupConfiguration(o.backupConfiguration); |
| 1245 unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); | 1249 unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); |
| 1246 unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); | 1250 unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); |
| 1247 unittest.expect(o.dataDiskType, unittest.equals('foo')); | 1251 unittest.expect(o.dataDiskType, unittest.equals('foo')); |
| 1248 checkUnnamed3741(o.databaseFlags); | 1252 checkUnnamed3597(o.databaseFlags); |
| 1249 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); | 1253 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); |
| 1250 checkIpConfiguration(o.ipConfiguration); | 1254 checkIpConfiguration(o.ipConfiguration); |
| 1251 unittest.expect(o.kind, unittest.equals('foo')); | 1255 unittest.expect(o.kind, unittest.equals('foo')); |
| 1252 checkLocationPreference(o.locationPreference); | 1256 checkLocationPreference(o.locationPreference); |
| 1253 checkMaintenanceWindow(o.maintenanceWindow); | 1257 checkMaintenanceWindow(o.maintenanceWindow); |
| 1254 unittest.expect(o.pricingPlan, unittest.equals('foo')); | 1258 unittest.expect(o.pricingPlan, unittest.equals('foo')); |
| 1255 unittest.expect(o.replicationType, unittest.equals('foo')); | 1259 unittest.expect(o.replicationType, unittest.equals('foo')); |
| 1256 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 1260 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
| 1257 unittest.expect(o.storageAutoResize, unittest.isTrue); | 1261 unittest.expect(o.storageAutoResize, unittest.isTrue); |
| 1258 unittest.expect(o.tier, unittest.equals('foo')); | 1262 unittest.expect(o.tier, unittest.equals('foo')); |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1372 buildCounterSslCertsInsertResponse++; | 1376 buildCounterSslCertsInsertResponse++; |
| 1373 if (buildCounterSslCertsInsertResponse < 3) { | 1377 if (buildCounterSslCertsInsertResponse < 3) { |
| 1374 checkSslCertDetail(o.clientCert); | 1378 checkSslCertDetail(o.clientCert); |
| 1375 unittest.expect(o.kind, unittest.equals('foo')); | 1379 unittest.expect(o.kind, unittest.equals('foo')); |
| 1376 checkOperation(o.operation); | 1380 checkOperation(o.operation); |
| 1377 checkSslCert(o.serverCaCert); | 1381 checkSslCert(o.serverCaCert); |
| 1378 } | 1382 } |
| 1379 buildCounterSslCertsInsertResponse--; | 1383 buildCounterSslCertsInsertResponse--; |
| 1380 } | 1384 } |
| 1381 | 1385 |
| 1382 buildUnnamed3742() { | 1386 buildUnnamed3598() { |
| 1383 var o = new core.List<api.SslCert>(); | 1387 var o = new core.List<api.SslCert>(); |
| 1384 o.add(buildSslCert()); | 1388 o.add(buildSslCert()); |
| 1385 o.add(buildSslCert()); | 1389 o.add(buildSslCert()); |
| 1386 return o; | 1390 return o; |
| 1387 } | 1391 } |
| 1388 | 1392 |
| 1389 checkUnnamed3742(core.List<api.SslCert> o) { | 1393 checkUnnamed3598(core.List<api.SslCert> o) { |
| 1390 unittest.expect(o, unittest.hasLength(2)); | 1394 unittest.expect(o, unittest.hasLength(2)); |
| 1391 checkSslCert(o[0]); | 1395 checkSslCert(o[0]); |
| 1392 checkSslCert(o[1]); | 1396 checkSslCert(o[1]); |
| 1393 } | 1397 } |
| 1394 | 1398 |
| 1395 core.int buildCounterSslCertsListResponse = 0; | 1399 core.int buildCounterSslCertsListResponse = 0; |
| 1396 buildSslCertsListResponse() { | 1400 buildSslCertsListResponse() { |
| 1397 var o = new api.SslCertsListResponse(); | 1401 var o = new api.SslCertsListResponse(); |
| 1398 buildCounterSslCertsListResponse++; | 1402 buildCounterSslCertsListResponse++; |
| 1399 if (buildCounterSslCertsListResponse < 3) { | 1403 if (buildCounterSslCertsListResponse < 3) { |
| 1400 o.items = buildUnnamed3742(); | 1404 o.items = buildUnnamed3598(); |
| 1401 o.kind = "foo"; | 1405 o.kind = "foo"; |
| 1402 } | 1406 } |
| 1403 buildCounterSslCertsListResponse--; | 1407 buildCounterSslCertsListResponse--; |
| 1404 return o; | 1408 return o; |
| 1405 } | 1409 } |
| 1406 | 1410 |
| 1407 checkSslCertsListResponse(api.SslCertsListResponse o) { | 1411 checkSslCertsListResponse(api.SslCertsListResponse o) { |
| 1408 buildCounterSslCertsListResponse++; | 1412 buildCounterSslCertsListResponse++; |
| 1409 if (buildCounterSslCertsListResponse < 3) { | 1413 if (buildCounterSslCertsListResponse < 3) { |
| 1410 checkUnnamed3742(o.items); | 1414 checkUnnamed3598(o.items); |
| 1411 unittest.expect(o.kind, unittest.equals('foo')); | 1415 unittest.expect(o.kind, unittest.equals('foo')); |
| 1412 } | 1416 } |
| 1413 buildCounterSslCertsListResponse--; | 1417 buildCounterSslCertsListResponse--; |
| 1414 } | 1418 } |
| 1415 | 1419 |
| 1416 buildUnnamed3743() { | 1420 buildUnnamed3599() { |
| 1417 var o = new core.List<core.String>(); | 1421 var o = new core.List<core.String>(); |
| 1418 o.add("foo"); | 1422 o.add("foo"); |
| 1419 o.add("foo"); | 1423 o.add("foo"); |
| 1420 return o; | 1424 return o; |
| 1421 } | 1425 } |
| 1422 | 1426 |
| 1423 checkUnnamed3743(core.List<core.String> o) { | 1427 checkUnnamed3599(core.List<core.String> o) { |
| 1424 unittest.expect(o, unittest.hasLength(2)); | 1428 unittest.expect(o, unittest.hasLength(2)); |
| 1425 unittest.expect(o[0], unittest.equals('foo')); | 1429 unittest.expect(o[0], unittest.equals('foo')); |
| 1426 unittest.expect(o[1], unittest.equals('foo')); | 1430 unittest.expect(o[1], unittest.equals('foo')); |
| 1427 } | 1431 } |
| 1428 | 1432 |
| 1429 core.int buildCounterTier = 0; | 1433 core.int buildCounterTier = 0; |
| 1430 buildTier() { | 1434 buildTier() { |
| 1431 var o = new api.Tier(); | 1435 var o = new api.Tier(); |
| 1432 buildCounterTier++; | 1436 buildCounterTier++; |
| 1433 if (buildCounterTier < 3) { | 1437 if (buildCounterTier < 3) { |
| 1434 o.DiskQuota = "foo"; | 1438 o.DiskQuota = "foo"; |
| 1435 o.RAM = "foo"; | 1439 o.RAM = "foo"; |
| 1436 o.kind = "foo"; | 1440 o.kind = "foo"; |
| 1437 o.region = buildUnnamed3743(); | 1441 o.region = buildUnnamed3599(); |
| 1438 o.tier = "foo"; | 1442 o.tier = "foo"; |
| 1439 } | 1443 } |
| 1440 buildCounterTier--; | 1444 buildCounterTier--; |
| 1441 return o; | 1445 return o; |
| 1442 } | 1446 } |
| 1443 | 1447 |
| 1444 checkTier(api.Tier o) { | 1448 checkTier(api.Tier o) { |
| 1445 buildCounterTier++; | 1449 buildCounterTier++; |
| 1446 if (buildCounterTier < 3) { | 1450 if (buildCounterTier < 3) { |
| 1447 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1451 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
| 1448 unittest.expect(o.RAM, unittest.equals('foo')); | 1452 unittest.expect(o.RAM, unittest.equals('foo')); |
| 1449 unittest.expect(o.kind, unittest.equals('foo')); | 1453 unittest.expect(o.kind, unittest.equals('foo')); |
| 1450 checkUnnamed3743(o.region); | 1454 checkUnnamed3599(o.region); |
| 1451 unittest.expect(o.tier, unittest.equals('foo')); | 1455 unittest.expect(o.tier, unittest.equals('foo')); |
| 1452 } | 1456 } |
| 1453 buildCounterTier--; | 1457 buildCounterTier--; |
| 1454 } | 1458 } |
| 1455 | 1459 |
| 1456 buildUnnamed3744() { | 1460 buildUnnamed3600() { |
| 1457 var o = new core.List<api.Tier>(); | 1461 var o = new core.List<api.Tier>(); |
| 1458 o.add(buildTier()); | 1462 o.add(buildTier()); |
| 1459 o.add(buildTier()); | 1463 o.add(buildTier()); |
| 1460 return o; | 1464 return o; |
| 1461 } | 1465 } |
| 1462 | 1466 |
| 1463 checkUnnamed3744(core.List<api.Tier> o) { | 1467 checkUnnamed3600(core.List<api.Tier> o) { |
| 1464 unittest.expect(o, unittest.hasLength(2)); | 1468 unittest.expect(o, unittest.hasLength(2)); |
| 1465 checkTier(o[0]); | 1469 checkTier(o[0]); |
| 1466 checkTier(o[1]); | 1470 checkTier(o[1]); |
| 1467 } | 1471 } |
| 1468 | 1472 |
| 1469 core.int buildCounterTiersListResponse = 0; | 1473 core.int buildCounterTiersListResponse = 0; |
| 1470 buildTiersListResponse() { | 1474 buildTiersListResponse() { |
| 1471 var o = new api.TiersListResponse(); | 1475 var o = new api.TiersListResponse(); |
| 1472 buildCounterTiersListResponse++; | 1476 buildCounterTiersListResponse++; |
| 1473 if (buildCounterTiersListResponse < 3) { | 1477 if (buildCounterTiersListResponse < 3) { |
| 1474 o.items = buildUnnamed3744(); | 1478 o.items = buildUnnamed3600(); |
| 1475 o.kind = "foo"; | 1479 o.kind = "foo"; |
| 1476 } | 1480 } |
| 1477 buildCounterTiersListResponse--; | 1481 buildCounterTiersListResponse--; |
| 1478 return o; | 1482 return o; |
| 1479 } | 1483 } |
| 1480 | 1484 |
| 1481 checkTiersListResponse(api.TiersListResponse o) { | 1485 checkTiersListResponse(api.TiersListResponse o) { |
| 1482 buildCounterTiersListResponse++; | 1486 buildCounterTiersListResponse++; |
| 1483 if (buildCounterTiersListResponse < 3) { | 1487 if (buildCounterTiersListResponse < 3) { |
| 1484 checkUnnamed3744(o.items); | 1488 checkUnnamed3600(o.items); |
| 1485 unittest.expect(o.kind, unittest.equals('foo')); | 1489 unittest.expect(o.kind, unittest.equals('foo')); |
| 1486 } | 1490 } |
| 1487 buildCounterTiersListResponse--; | 1491 buildCounterTiersListResponse--; |
| 1488 } | 1492 } |
| 1489 | 1493 |
| 1490 core.int buildCounterUser = 0; | 1494 core.int buildCounterUser = 0; |
| 1491 buildUser() { | 1495 buildUser() { |
| 1492 var o = new api.User(); | 1496 var o = new api.User(); |
| 1493 buildCounterUser++; | 1497 buildCounterUser++; |
| 1494 if (buildCounterUser < 3) { | 1498 if (buildCounterUser < 3) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1511 unittest.expect(o.host, unittest.equals('foo')); | 1515 unittest.expect(o.host, unittest.equals('foo')); |
| 1512 unittest.expect(o.instance, unittest.equals('foo')); | 1516 unittest.expect(o.instance, unittest.equals('foo')); |
| 1513 unittest.expect(o.kind, unittest.equals('foo')); | 1517 unittest.expect(o.kind, unittest.equals('foo')); |
| 1514 unittest.expect(o.name, unittest.equals('foo')); | 1518 unittest.expect(o.name, unittest.equals('foo')); |
| 1515 unittest.expect(o.password, unittest.equals('foo')); | 1519 unittest.expect(o.password, unittest.equals('foo')); |
| 1516 unittest.expect(o.project, unittest.equals('foo')); | 1520 unittest.expect(o.project, unittest.equals('foo')); |
| 1517 } | 1521 } |
| 1518 buildCounterUser--; | 1522 buildCounterUser--; |
| 1519 } | 1523 } |
| 1520 | 1524 |
| 1521 buildUnnamed3745() { | 1525 buildUnnamed3601() { |
| 1522 var o = new core.List<api.User>(); | 1526 var o = new core.List<api.User>(); |
| 1523 o.add(buildUser()); | 1527 o.add(buildUser()); |
| 1524 o.add(buildUser()); | 1528 o.add(buildUser()); |
| 1525 return o; | 1529 return o; |
| 1526 } | 1530 } |
| 1527 | 1531 |
| 1528 checkUnnamed3745(core.List<api.User> o) { | 1532 checkUnnamed3601(core.List<api.User> o) { |
| 1529 unittest.expect(o, unittest.hasLength(2)); | 1533 unittest.expect(o, unittest.hasLength(2)); |
| 1530 checkUser(o[0]); | 1534 checkUser(o[0]); |
| 1531 checkUser(o[1]); | 1535 checkUser(o[1]); |
| 1532 } | 1536 } |
| 1533 | 1537 |
| 1534 core.int buildCounterUsersListResponse = 0; | 1538 core.int buildCounterUsersListResponse = 0; |
| 1535 buildUsersListResponse() { | 1539 buildUsersListResponse() { |
| 1536 var o = new api.UsersListResponse(); | 1540 var o = new api.UsersListResponse(); |
| 1537 buildCounterUsersListResponse++; | 1541 buildCounterUsersListResponse++; |
| 1538 if (buildCounterUsersListResponse < 3) { | 1542 if (buildCounterUsersListResponse < 3) { |
| 1539 o.items = buildUnnamed3745(); | 1543 o.items = buildUnnamed3601(); |
| 1540 o.kind = "foo"; | 1544 o.kind = "foo"; |
| 1541 o.nextPageToken = "foo"; | 1545 o.nextPageToken = "foo"; |
| 1542 } | 1546 } |
| 1543 buildCounterUsersListResponse--; | 1547 buildCounterUsersListResponse--; |
| 1544 return o; | 1548 return o; |
| 1545 } | 1549 } |
| 1546 | 1550 |
| 1547 checkUsersListResponse(api.UsersListResponse o) { | 1551 checkUsersListResponse(api.UsersListResponse o) { |
| 1548 buildCounterUsersListResponse++; | 1552 buildCounterUsersListResponse++; |
| 1549 if (buildCounterUsersListResponse < 3) { | 1553 if (buildCounterUsersListResponse < 3) { |
| 1550 checkUnnamed3745(o.items); | 1554 checkUnnamed3601(o.items); |
| 1551 unittest.expect(o.kind, unittest.equals('foo')); | 1555 unittest.expect(o.kind, unittest.equals('foo')); |
| 1552 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1556 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1553 } | 1557 } |
| 1554 buildCounterUsersListResponse--; | 1558 buildCounterUsersListResponse--; |
| 1555 } | 1559 } |
| 1556 | 1560 |
| 1557 | 1561 |
| 1558 main() { | 1562 main() { |
| 1559 unittest.group("obj-schema-AclEntry", () { | 1563 unittest.group("obj-schema-AclEntry", () { |
| 1560 unittest.test("to-json--from-json", () { | 1564 unittest.test("to-json--from-json", () { |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2112 "content-type" : "application/json; charset=utf-8", | 2116 "content-type" : "application/json; charset=utf-8", |
| 2113 }; | 2117 }; |
| 2114 var resp = convert.JSON.encode(buildBackupRun()); | 2118 var resp = convert.JSON.encode(buildBackupRun()); |
| 2115 return new async.Future.value(stringResponse(200, h, resp)); | 2119 return new async.Future.value(stringResponse(200, h, resp)); |
| 2116 }), true); | 2120 }), true); |
| 2117 res.get(arg_project, arg_instance, arg_id).then(unittest.expectAsync(((api
.BackupRun response) { | 2121 res.get(arg_project, arg_instance, arg_id).then(unittest.expectAsync(((api
.BackupRun response) { |
| 2118 checkBackupRun(response); | 2122 checkBackupRun(response); |
| 2119 }))); | 2123 }))); |
| 2120 }); | 2124 }); |
| 2121 | 2125 |
| 2126 unittest.test("method--insert", () { |
| 2127 |
| 2128 var mock = new HttpServerMock(); |
| 2129 api.BackupRunsResourceApi res = new api.SqladminApi(mock).backupRuns; |
| 2130 var arg_request = buildBackupRun(); |
| 2131 var arg_project = "foo"; |
| 2132 var arg_instance = "foo"; |
| 2133 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2134 var obj = new api.BackupRun.fromJson(json); |
| 2135 checkBackupRun(obj); |
| 2136 |
| 2137 var path = (req.url).path; |
| 2138 var pathOffset = 0; |
| 2139 var index; |
| 2140 var subPart; |
| 2141 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2142 pathOffset += 1; |
| 2143 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta4/")); |
| 2144 pathOffset += 12; |
| 2145 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
| 2146 pathOffset += 9; |
| 2147 index = path.indexOf("/instances/", pathOffset); |
| 2148 unittest.expect(index >= 0, unittest.isTrue); |
| 2149 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2150 pathOffset = index; |
| 2151 unittest.expect(subPart, unittest.equals("$arg_project")); |
| 2152 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
| 2153 pathOffset += 11; |
| 2154 index = path.indexOf("/backupRuns", pathOffset); |
| 2155 unittest.expect(index >= 0, unittest.isTrue); |
| 2156 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 2157 pathOffset = index; |
| 2158 unittest.expect(subPart, unittest.equals("$arg_instance")); |
| 2159 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/backupRuns")); |
| 2160 pathOffset += 11; |
| 2161 |
| 2162 var query = (req.url).query; |
| 2163 var queryOffset = 0; |
| 2164 var queryMap = {}; |
| 2165 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2166 parseBool(n) { |
| 2167 if (n == "true") return true; |
| 2168 if (n == "false") return false; |
| 2169 if (n == null) return null; |
| 2170 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2171 } |
| 2172 if (query.length > 0) { |
| 2173 for (var part in query.split("&")) { |
| 2174 var keyvalue = part.split("="); |
| 2175 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2176 } |
| 2177 } |
| 2178 |
| 2179 |
| 2180 var h = { |
| 2181 "content-type" : "application/json; charset=utf-8", |
| 2182 }; |
| 2183 var resp = convert.JSON.encode(buildOperation()); |
| 2184 return new async.Future.value(stringResponse(200, h, resp)); |
| 2185 }), true); |
| 2186 res.insert(arg_request, arg_project, arg_instance).then(unittest.expectAsy
nc(((api.Operation response) { |
| 2187 checkOperation(response); |
| 2188 }))); |
| 2189 }); |
| 2190 |
| 2122 unittest.test("method--list", () { | 2191 unittest.test("method--list", () { |
| 2123 | 2192 |
| 2124 var mock = new HttpServerMock(); | 2193 var mock = new HttpServerMock(); |
| 2125 api.BackupRunsResourceApi res = new api.SqladminApi(mock).backupRuns; | 2194 api.BackupRunsResourceApi res = new api.SqladminApi(mock).backupRuns; |
| 2126 var arg_project = "foo"; | 2195 var arg_project = "foo"; |
| 2127 var arg_instance = "foo"; | 2196 var arg_instance = "foo"; |
| 2128 var arg_maxResults = 42; | 2197 var arg_maxResults = 42; |
| 2129 var arg_pageToken = "foo"; | 2198 var arg_pageToken = "foo"; |
| 2130 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2199 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2131 var path = (req.url).path; | 2200 var path = (req.url).path; |
| (...skipping 2247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4379 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { | 4448 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { |
| 4380 checkOperation(response); | 4449 checkOperation(response); |
| 4381 }))); | 4450 }))); |
| 4382 }); | 4451 }); |
| 4383 | 4452 |
| 4384 }); | 4453 }); |
| 4385 | 4454 |
| 4386 | 4455 |
| 4387 } | 4456 } |
| 4388 | 4457 |
| OLD | NEW |