| OLD | NEW |
| 1 library googleapis_beta.sqladmin.v1beta3.test; | 1 library googleapis_beta.sqladmin.v1beta3.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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 106 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 107 checkOperationError(o.error); | 107 checkOperationError(o.error); |
| 108 unittest.expect(o.instance, unittest.equals('foo')); | 108 unittest.expect(o.instance, unittest.equals('foo')); |
| 109 unittest.expect(o.kind, unittest.equals('foo')); | 109 unittest.expect(o.kind, unittest.equals('foo')); |
| 110 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 110 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 111 unittest.expect(o.status, unittest.equals('foo')); | 111 unittest.expect(o.status, unittest.equals('foo')); |
| 112 } | 112 } |
| 113 buildCounterBackupRun--; | 113 buildCounterBackupRun--; |
| 114 } | 114 } |
| 115 | 115 |
| 116 buildUnnamed3150() { | 116 buildUnnamed3240() { |
| 117 var o = new core.List<api.BackupRun>(); | 117 var o = new core.List<api.BackupRun>(); |
| 118 o.add(buildBackupRun()); | 118 o.add(buildBackupRun()); |
| 119 o.add(buildBackupRun()); | 119 o.add(buildBackupRun()); |
| 120 return o; | 120 return o; |
| 121 } | 121 } |
| 122 | 122 |
| 123 checkUnnamed3150(core.List<api.BackupRun> o) { | 123 checkUnnamed3240(core.List<api.BackupRun> o) { |
| 124 unittest.expect(o, unittest.hasLength(2)); | 124 unittest.expect(o, unittest.hasLength(2)); |
| 125 checkBackupRun(o[0]); | 125 checkBackupRun(o[0]); |
| 126 checkBackupRun(o[1]); | 126 checkBackupRun(o[1]); |
| 127 } | 127 } |
| 128 | 128 |
| 129 core.int buildCounterBackupRunsListResponse = 0; | 129 core.int buildCounterBackupRunsListResponse = 0; |
| 130 buildBackupRunsListResponse() { | 130 buildBackupRunsListResponse() { |
| 131 var o = new api.BackupRunsListResponse(); | 131 var o = new api.BackupRunsListResponse(); |
| 132 buildCounterBackupRunsListResponse++; | 132 buildCounterBackupRunsListResponse++; |
| 133 if (buildCounterBackupRunsListResponse < 3) { | 133 if (buildCounterBackupRunsListResponse < 3) { |
| 134 o.items = buildUnnamed3150(); | 134 o.items = buildUnnamed3240(); |
| 135 o.kind = "foo"; | 135 o.kind = "foo"; |
| 136 o.nextPageToken = "foo"; | 136 o.nextPageToken = "foo"; |
| 137 } | 137 } |
| 138 buildCounterBackupRunsListResponse--; | 138 buildCounterBackupRunsListResponse--; |
| 139 return o; | 139 return o; |
| 140 } | 140 } |
| 141 | 141 |
| 142 checkBackupRunsListResponse(api.BackupRunsListResponse o) { | 142 checkBackupRunsListResponse(api.BackupRunsListResponse o) { |
| 143 buildCounterBackupRunsListResponse++; | 143 buildCounterBackupRunsListResponse++; |
| 144 if (buildCounterBackupRunsListResponse < 3) { | 144 if (buildCounterBackupRunsListResponse < 3) { |
| 145 checkUnnamed3150(o.items); | 145 checkUnnamed3240(o.items); |
| 146 unittest.expect(o.kind, unittest.equals('foo')); | 146 unittest.expect(o.kind, unittest.equals('foo')); |
| 147 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 147 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 148 } | 148 } |
| 149 buildCounterBackupRunsListResponse--; | 149 buildCounterBackupRunsListResponse--; |
| 150 } | 150 } |
| 151 | 151 |
| 152 core.int buildCounterBinLogCoordinates = 0; | 152 core.int buildCounterBinLogCoordinates = 0; |
| 153 buildBinLogCoordinates() { | 153 buildBinLogCoordinates() { |
| 154 var o = new api.BinLogCoordinates(); | 154 var o = new api.BinLogCoordinates(); |
| 155 buildCounterBinLogCoordinates++; | 155 buildCounterBinLogCoordinates++; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 211 |
| 212 checkDatabaseFlags(api.DatabaseFlags o) { | 212 checkDatabaseFlags(api.DatabaseFlags o) { |
| 213 buildCounterDatabaseFlags++; | 213 buildCounterDatabaseFlags++; |
| 214 if (buildCounterDatabaseFlags < 3) { | 214 if (buildCounterDatabaseFlags < 3) { |
| 215 unittest.expect(o.name, unittest.equals('foo')); | 215 unittest.expect(o.name, unittest.equals('foo')); |
| 216 unittest.expect(o.value, unittest.equals('foo')); | 216 unittest.expect(o.value, unittest.equals('foo')); |
| 217 } | 217 } |
| 218 buildCounterDatabaseFlags--; | 218 buildCounterDatabaseFlags--; |
| 219 } | 219 } |
| 220 | 220 |
| 221 buildUnnamed3151() { | 221 buildUnnamed3241() { |
| 222 var o = new core.List<api.IpMapping>(); | 222 var o = new core.List<api.IpMapping>(); |
| 223 o.add(buildIpMapping()); | 223 o.add(buildIpMapping()); |
| 224 o.add(buildIpMapping()); | 224 o.add(buildIpMapping()); |
| 225 return o; | 225 return o; |
| 226 } | 226 } |
| 227 | 227 |
| 228 checkUnnamed3151(core.List<api.IpMapping> o) { | 228 checkUnnamed3241(core.List<api.IpMapping> o) { |
| 229 unittest.expect(o, unittest.hasLength(2)); | 229 unittest.expect(o, unittest.hasLength(2)); |
| 230 checkIpMapping(o[0]); | 230 checkIpMapping(o[0]); |
| 231 checkIpMapping(o[1]); | 231 checkIpMapping(o[1]); |
| 232 } | 232 } |
| 233 | 233 |
| 234 buildUnnamed3152() { | 234 buildUnnamed3242() { |
| 235 var o = new core.List<core.String>(); | 235 var o = new core.List<core.String>(); |
| 236 o.add("foo"); | 236 o.add("foo"); |
| 237 o.add("foo"); | 237 o.add("foo"); |
| 238 return o; | 238 return o; |
| 239 } | 239 } |
| 240 | 240 |
| 241 checkUnnamed3152(core.List<core.String> o) { | 241 checkUnnamed3242(core.List<core.String> o) { |
| 242 unittest.expect(o, unittest.hasLength(2)); | 242 unittest.expect(o, unittest.hasLength(2)); |
| 243 unittest.expect(o[0], unittest.equals('foo')); | 243 unittest.expect(o[0], unittest.equals('foo')); |
| 244 unittest.expect(o[1], unittest.equals('foo')); | 244 unittest.expect(o[1], unittest.equals('foo')); |
| 245 } | 245 } |
| 246 | 246 |
| 247 core.int buildCounterDatabaseInstance = 0; | 247 core.int buildCounterDatabaseInstance = 0; |
| 248 buildDatabaseInstance() { | 248 buildDatabaseInstance() { |
| 249 var o = new api.DatabaseInstance(); | 249 var o = new api.DatabaseInstance(); |
| 250 buildCounterDatabaseInstance++; | 250 buildCounterDatabaseInstance++; |
| 251 if (buildCounterDatabaseInstance < 3) { | 251 if (buildCounterDatabaseInstance < 3) { |
| 252 o.connectionName = "foo"; | 252 o.connectionName = "foo"; |
| 253 o.currentDiskSize = "foo"; | 253 o.currentDiskSize = "foo"; |
| 254 o.databaseVersion = "foo"; | 254 o.databaseVersion = "foo"; |
| 255 o.etag = "foo"; | 255 o.etag = "foo"; |
| 256 o.instance = "foo"; | 256 o.instance = "foo"; |
| 257 o.instanceType = "foo"; | 257 o.instanceType = "foo"; |
| 258 o.ipAddresses = buildUnnamed3151(); | 258 o.ipAddresses = buildUnnamed3241(); |
| 259 o.ipv6Address = "foo"; | 259 o.ipv6Address = "foo"; |
| 260 o.kind = "foo"; | 260 o.kind = "foo"; |
| 261 o.masterInstanceName = "foo"; | 261 o.masterInstanceName = "foo"; |
| 262 o.maxDiskSize = "foo"; | 262 o.maxDiskSize = "foo"; |
| 263 o.project = "foo"; | 263 o.project = "foo"; |
| 264 o.region = "foo"; | 264 o.region = "foo"; |
| 265 o.replicaNames = buildUnnamed3152(); | 265 o.replicaNames = buildUnnamed3242(); |
| 266 o.serverCaCert = buildSslCert(); | 266 o.serverCaCert = buildSslCert(); |
| 267 o.serviceAccountEmailAddress = "foo"; | 267 o.serviceAccountEmailAddress = "foo"; |
| 268 o.settings = buildSettings(); | 268 o.settings = buildSettings(); |
| 269 o.state = "foo"; | 269 o.state = "foo"; |
| 270 } | 270 } |
| 271 buildCounterDatabaseInstance--; | 271 buildCounterDatabaseInstance--; |
| 272 return o; | 272 return o; |
| 273 } | 273 } |
| 274 | 274 |
| 275 checkDatabaseInstance(api.DatabaseInstance o) { | 275 checkDatabaseInstance(api.DatabaseInstance o) { |
| 276 buildCounterDatabaseInstance++; | 276 buildCounterDatabaseInstance++; |
| 277 if (buildCounterDatabaseInstance < 3) { | 277 if (buildCounterDatabaseInstance < 3) { |
| 278 unittest.expect(o.connectionName, unittest.equals('foo')); | 278 unittest.expect(o.connectionName, unittest.equals('foo')); |
| 279 unittest.expect(o.currentDiskSize, unittest.equals('foo')); | 279 unittest.expect(o.currentDiskSize, unittest.equals('foo')); |
| 280 unittest.expect(o.databaseVersion, unittest.equals('foo')); | 280 unittest.expect(o.databaseVersion, unittest.equals('foo')); |
| 281 unittest.expect(o.etag, unittest.equals('foo')); | 281 unittest.expect(o.etag, unittest.equals('foo')); |
| 282 unittest.expect(o.instance, unittest.equals('foo')); | 282 unittest.expect(o.instance, unittest.equals('foo')); |
| 283 unittest.expect(o.instanceType, unittest.equals('foo')); | 283 unittest.expect(o.instanceType, unittest.equals('foo')); |
| 284 checkUnnamed3151(o.ipAddresses); | 284 checkUnnamed3241(o.ipAddresses); |
| 285 unittest.expect(o.ipv6Address, unittest.equals('foo')); | 285 unittest.expect(o.ipv6Address, unittest.equals('foo')); |
| 286 unittest.expect(o.kind, unittest.equals('foo')); | 286 unittest.expect(o.kind, unittest.equals('foo')); |
| 287 unittest.expect(o.masterInstanceName, unittest.equals('foo')); | 287 unittest.expect(o.masterInstanceName, unittest.equals('foo')); |
| 288 unittest.expect(o.maxDiskSize, unittest.equals('foo')); | 288 unittest.expect(o.maxDiskSize, unittest.equals('foo')); |
| 289 unittest.expect(o.project, unittest.equals('foo')); | 289 unittest.expect(o.project, unittest.equals('foo')); |
| 290 unittest.expect(o.region, unittest.equals('foo')); | 290 unittest.expect(o.region, unittest.equals('foo')); |
| 291 checkUnnamed3152(o.replicaNames); | 291 checkUnnamed3242(o.replicaNames); |
| 292 checkSslCert(o.serverCaCert); | 292 checkSslCert(o.serverCaCert); |
| 293 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); | 293 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); |
| 294 checkSettings(o.settings); | 294 checkSettings(o.settings); |
| 295 unittest.expect(o.state, unittest.equals('foo')); | 295 unittest.expect(o.state, unittest.equals('foo')); |
| 296 } | 296 } |
| 297 buildCounterDatabaseInstance--; | 297 buildCounterDatabaseInstance--; |
| 298 } | 298 } |
| 299 | 299 |
| 300 buildUnnamed3153() { | 300 buildUnnamed3243() { |
| 301 var o = new core.List<core.String>(); | 301 var o = new core.List<core.String>(); |
| 302 o.add("foo"); | 302 o.add("foo"); |
| 303 o.add("foo"); | 303 o.add("foo"); |
| 304 return o; | 304 return o; |
| 305 } | 305 } |
| 306 | 306 |
| 307 checkUnnamed3153(core.List<core.String> o) { | 307 checkUnnamed3243(core.List<core.String> o) { |
| 308 unittest.expect(o, unittest.hasLength(2)); | 308 unittest.expect(o, unittest.hasLength(2)); |
| 309 unittest.expect(o[0], unittest.equals('foo')); | 309 unittest.expect(o[0], unittest.equals('foo')); |
| 310 unittest.expect(o[1], unittest.equals('foo')); | 310 unittest.expect(o[1], unittest.equals('foo')); |
| 311 } | 311 } |
| 312 | 312 |
| 313 buildUnnamed3154() { | 313 buildUnnamed3244() { |
| 314 var o = new core.List<core.String>(); | 314 var o = new core.List<core.String>(); |
| 315 o.add("foo"); | 315 o.add("foo"); |
| 316 o.add("foo"); | 316 o.add("foo"); |
| 317 return o; | 317 return o; |
| 318 } | 318 } |
| 319 | 319 |
| 320 checkUnnamed3154(core.List<core.String> o) { | 320 checkUnnamed3244(core.List<core.String> o) { |
| 321 unittest.expect(o, unittest.hasLength(2)); | 321 unittest.expect(o, unittest.hasLength(2)); |
| 322 unittest.expect(o[0], unittest.equals('foo')); | 322 unittest.expect(o[0], unittest.equals('foo')); |
| 323 unittest.expect(o[1], unittest.equals('foo')); | 323 unittest.expect(o[1], unittest.equals('foo')); |
| 324 } | 324 } |
| 325 | 325 |
| 326 core.int buildCounterExportContext = 0; | 326 core.int buildCounterExportContext = 0; |
| 327 buildExportContext() { | 327 buildExportContext() { |
| 328 var o = new api.ExportContext(); | 328 var o = new api.ExportContext(); |
| 329 buildCounterExportContext++; | 329 buildCounterExportContext++; |
| 330 if (buildCounterExportContext < 3) { | 330 if (buildCounterExportContext < 3) { |
| 331 o.database = buildUnnamed3153(); | 331 o.database = buildUnnamed3243(); |
| 332 o.kind = "foo"; | 332 o.kind = "foo"; |
| 333 o.table = buildUnnamed3154(); | 333 o.table = buildUnnamed3244(); |
| 334 o.uri = "foo"; | 334 o.uri = "foo"; |
| 335 } | 335 } |
| 336 buildCounterExportContext--; | 336 buildCounterExportContext--; |
| 337 return o; | 337 return o; |
| 338 } | 338 } |
| 339 | 339 |
| 340 checkExportContext(api.ExportContext o) { | 340 checkExportContext(api.ExportContext o) { |
| 341 buildCounterExportContext++; | 341 buildCounterExportContext++; |
| 342 if (buildCounterExportContext < 3) { | 342 if (buildCounterExportContext < 3) { |
| 343 checkUnnamed3153(o.database); | 343 checkUnnamed3243(o.database); |
| 344 unittest.expect(o.kind, unittest.equals('foo')); | 344 unittest.expect(o.kind, unittest.equals('foo')); |
| 345 checkUnnamed3154(o.table); | 345 checkUnnamed3244(o.table); |
| 346 unittest.expect(o.uri, unittest.equals('foo')); | 346 unittest.expect(o.uri, unittest.equals('foo')); |
| 347 } | 347 } |
| 348 buildCounterExportContext--; | 348 buildCounterExportContext--; |
| 349 } | 349 } |
| 350 | 350 |
| 351 buildUnnamed3155() { | 351 buildUnnamed3245() { |
| 352 var o = new core.List<core.String>(); | 352 var o = new core.List<core.String>(); |
| 353 o.add("foo"); | 353 o.add("foo"); |
| 354 o.add("foo"); | 354 o.add("foo"); |
| 355 return o; | 355 return o; |
| 356 } | 356 } |
| 357 | 357 |
| 358 checkUnnamed3155(core.List<core.String> o) { | 358 checkUnnamed3245(core.List<core.String> o) { |
| 359 unittest.expect(o, unittest.hasLength(2)); | 359 unittest.expect(o, unittest.hasLength(2)); |
| 360 unittest.expect(o[0], unittest.equals('foo')); | 360 unittest.expect(o[0], unittest.equals('foo')); |
| 361 unittest.expect(o[1], unittest.equals('foo')); | 361 unittest.expect(o[1], unittest.equals('foo')); |
| 362 } | 362 } |
| 363 | 363 |
| 364 buildUnnamed3156() { | 364 buildUnnamed3246() { |
| 365 var o = new core.List<core.String>(); | 365 var o = new core.List<core.String>(); |
| 366 o.add("foo"); | 366 o.add("foo"); |
| 367 o.add("foo"); | 367 o.add("foo"); |
| 368 return o; | 368 return o; |
| 369 } | 369 } |
| 370 | 370 |
| 371 checkUnnamed3156(core.List<core.String> o) { | 371 checkUnnamed3246(core.List<core.String> o) { |
| 372 unittest.expect(o, unittest.hasLength(2)); | 372 unittest.expect(o, unittest.hasLength(2)); |
| 373 unittest.expect(o[0], unittest.equals('foo')); | 373 unittest.expect(o[0], unittest.equals('foo')); |
| 374 unittest.expect(o[1], unittest.equals('foo')); | 374 unittest.expect(o[1], unittest.equals('foo')); |
| 375 } | 375 } |
| 376 | 376 |
| 377 core.int buildCounterFlag = 0; | 377 core.int buildCounterFlag = 0; |
| 378 buildFlag() { | 378 buildFlag() { |
| 379 var o = new api.Flag(); | 379 var o = new api.Flag(); |
| 380 buildCounterFlag++; | 380 buildCounterFlag++; |
| 381 if (buildCounterFlag < 3) { | 381 if (buildCounterFlag < 3) { |
| 382 o.allowedStringValues = buildUnnamed3155(); | 382 o.allowedStringValues = buildUnnamed3245(); |
| 383 o.appliesTo = buildUnnamed3156(); | 383 o.appliesTo = buildUnnamed3246(); |
| 384 o.kind = "foo"; | 384 o.kind = "foo"; |
| 385 o.maxValue = "foo"; | 385 o.maxValue = "foo"; |
| 386 o.minValue = "foo"; | 386 o.minValue = "foo"; |
| 387 o.name = "foo"; | 387 o.name = "foo"; |
| 388 o.type = "foo"; | 388 o.type = "foo"; |
| 389 } | 389 } |
| 390 buildCounterFlag--; | 390 buildCounterFlag--; |
| 391 return o; | 391 return o; |
| 392 } | 392 } |
| 393 | 393 |
| 394 checkFlag(api.Flag o) { | 394 checkFlag(api.Flag o) { |
| 395 buildCounterFlag++; | 395 buildCounterFlag++; |
| 396 if (buildCounterFlag < 3) { | 396 if (buildCounterFlag < 3) { |
| 397 checkUnnamed3155(o.allowedStringValues); | 397 checkUnnamed3245(o.allowedStringValues); |
| 398 checkUnnamed3156(o.appliesTo); | 398 checkUnnamed3246(o.appliesTo); |
| 399 unittest.expect(o.kind, unittest.equals('foo')); | 399 unittest.expect(o.kind, unittest.equals('foo')); |
| 400 unittest.expect(o.maxValue, unittest.equals('foo')); | 400 unittest.expect(o.maxValue, unittest.equals('foo')); |
| 401 unittest.expect(o.minValue, unittest.equals('foo')); | 401 unittest.expect(o.minValue, unittest.equals('foo')); |
| 402 unittest.expect(o.name, unittest.equals('foo')); | 402 unittest.expect(o.name, unittest.equals('foo')); |
| 403 unittest.expect(o.type, unittest.equals('foo')); | 403 unittest.expect(o.type, unittest.equals('foo')); |
| 404 } | 404 } |
| 405 buildCounterFlag--; | 405 buildCounterFlag--; |
| 406 } | 406 } |
| 407 | 407 |
| 408 buildUnnamed3157() { | 408 buildUnnamed3247() { |
| 409 var o = new core.List<api.Flag>(); | 409 var o = new core.List<api.Flag>(); |
| 410 o.add(buildFlag()); | 410 o.add(buildFlag()); |
| 411 o.add(buildFlag()); | 411 o.add(buildFlag()); |
| 412 return o; | 412 return o; |
| 413 } | 413 } |
| 414 | 414 |
| 415 checkUnnamed3157(core.List<api.Flag> o) { | 415 checkUnnamed3247(core.List<api.Flag> o) { |
| 416 unittest.expect(o, unittest.hasLength(2)); | 416 unittest.expect(o, unittest.hasLength(2)); |
| 417 checkFlag(o[0]); | 417 checkFlag(o[0]); |
| 418 checkFlag(o[1]); | 418 checkFlag(o[1]); |
| 419 } | 419 } |
| 420 | 420 |
| 421 core.int buildCounterFlagsListResponse = 0; | 421 core.int buildCounterFlagsListResponse = 0; |
| 422 buildFlagsListResponse() { | 422 buildFlagsListResponse() { |
| 423 var o = new api.FlagsListResponse(); | 423 var o = new api.FlagsListResponse(); |
| 424 buildCounterFlagsListResponse++; | 424 buildCounterFlagsListResponse++; |
| 425 if (buildCounterFlagsListResponse < 3) { | 425 if (buildCounterFlagsListResponse < 3) { |
| 426 o.items = buildUnnamed3157(); | 426 o.items = buildUnnamed3247(); |
| 427 o.kind = "foo"; | 427 o.kind = "foo"; |
| 428 } | 428 } |
| 429 buildCounterFlagsListResponse--; | 429 buildCounterFlagsListResponse--; |
| 430 return o; | 430 return o; |
| 431 } | 431 } |
| 432 | 432 |
| 433 checkFlagsListResponse(api.FlagsListResponse o) { | 433 checkFlagsListResponse(api.FlagsListResponse o) { |
| 434 buildCounterFlagsListResponse++; | 434 buildCounterFlagsListResponse++; |
| 435 if (buildCounterFlagsListResponse < 3) { | 435 if (buildCounterFlagsListResponse < 3) { |
| 436 checkUnnamed3157(o.items); | 436 checkUnnamed3247(o.items); |
| 437 unittest.expect(o.kind, unittest.equals('foo')); | 437 unittest.expect(o.kind, unittest.equals('foo')); |
| 438 } | 438 } |
| 439 buildCounterFlagsListResponse--; | 439 buildCounterFlagsListResponse--; |
| 440 } | 440 } |
| 441 | 441 |
| 442 buildUnnamed3158() { | 442 buildUnnamed3248() { |
| 443 var o = new core.List<core.String>(); | 443 var o = new core.List<core.String>(); |
| 444 o.add("foo"); | 444 o.add("foo"); |
| 445 o.add("foo"); | 445 o.add("foo"); |
| 446 return o; | 446 return o; |
| 447 } | 447 } |
| 448 | 448 |
| 449 checkUnnamed3158(core.List<core.String> o) { | 449 checkUnnamed3248(core.List<core.String> o) { |
| 450 unittest.expect(o, unittest.hasLength(2)); | 450 unittest.expect(o, unittest.hasLength(2)); |
| 451 unittest.expect(o[0], unittest.equals('foo')); | 451 unittest.expect(o[0], unittest.equals('foo')); |
| 452 unittest.expect(o[1], unittest.equals('foo')); | 452 unittest.expect(o[1], unittest.equals('foo')); |
| 453 } | 453 } |
| 454 | 454 |
| 455 core.int buildCounterImportContext = 0; | 455 core.int buildCounterImportContext = 0; |
| 456 buildImportContext() { | 456 buildImportContext() { |
| 457 var o = new api.ImportContext(); | 457 var o = new api.ImportContext(); |
| 458 buildCounterImportContext++; | 458 buildCounterImportContext++; |
| 459 if (buildCounterImportContext < 3) { | 459 if (buildCounterImportContext < 3) { |
| 460 o.database = "foo"; | 460 o.database = "foo"; |
| 461 o.kind = "foo"; | 461 o.kind = "foo"; |
| 462 o.uri = buildUnnamed3158(); | 462 o.uri = buildUnnamed3248(); |
| 463 } | 463 } |
| 464 buildCounterImportContext--; | 464 buildCounterImportContext--; |
| 465 return o; | 465 return o; |
| 466 } | 466 } |
| 467 | 467 |
| 468 checkImportContext(api.ImportContext o) { | 468 checkImportContext(api.ImportContext o) { |
| 469 buildCounterImportContext++; | 469 buildCounterImportContext++; |
| 470 if (buildCounterImportContext < 3) { | 470 if (buildCounterImportContext < 3) { |
| 471 unittest.expect(o.database, unittest.equals('foo')); | 471 unittest.expect(o.database, unittest.equals('foo')); |
| 472 unittest.expect(o.kind, unittest.equals('foo')); | 472 unittest.expect(o.kind, unittest.equals('foo')); |
| 473 checkUnnamed3158(o.uri); | 473 checkUnnamed3248(o.uri); |
| 474 } | 474 } |
| 475 buildCounterImportContext--; | 475 buildCounterImportContext--; |
| 476 } | 476 } |
| 477 | 477 |
| 478 buildUnnamed3159() { | 478 buildUnnamed3249() { |
| 479 var o = new core.List<api.OperationError>(); | 479 var o = new core.List<api.OperationError>(); |
| 480 o.add(buildOperationError()); | 480 o.add(buildOperationError()); |
| 481 o.add(buildOperationError()); | 481 o.add(buildOperationError()); |
| 482 return o; | 482 return o; |
| 483 } | 483 } |
| 484 | 484 |
| 485 checkUnnamed3159(core.List<api.OperationError> o) { | 485 checkUnnamed3249(core.List<api.OperationError> o) { |
| 486 unittest.expect(o, unittest.hasLength(2)); | 486 unittest.expect(o, unittest.hasLength(2)); |
| 487 checkOperationError(o[0]); | 487 checkOperationError(o[0]); |
| 488 checkOperationError(o[1]); | 488 checkOperationError(o[1]); |
| 489 } | 489 } |
| 490 | 490 |
| 491 core.int buildCounterInstanceOperation = 0; | 491 core.int buildCounterInstanceOperation = 0; |
| 492 buildInstanceOperation() { | 492 buildInstanceOperation() { |
| 493 var o = new api.InstanceOperation(); | 493 var o = new api.InstanceOperation(); |
| 494 buildCounterInstanceOperation++; | 494 buildCounterInstanceOperation++; |
| 495 if (buildCounterInstanceOperation < 3) { | 495 if (buildCounterInstanceOperation < 3) { |
| 496 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); | 496 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 497 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 497 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 498 o.error = buildUnnamed3159(); | 498 o.error = buildUnnamed3249(); |
| 499 o.exportContext = buildExportContext(); | 499 o.exportContext = buildExportContext(); |
| 500 o.importContext = buildImportContext(); | 500 o.importContext = buildImportContext(); |
| 501 o.instance = "foo"; | 501 o.instance = "foo"; |
| 502 o.kind = "foo"; | 502 o.kind = "foo"; |
| 503 o.operation = "foo"; | 503 o.operation = "foo"; |
| 504 o.operationType = "foo"; | 504 o.operationType = "foo"; |
| 505 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); | 505 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 506 o.state = "foo"; | 506 o.state = "foo"; |
| 507 o.userEmailAddress = "foo"; | 507 o.userEmailAddress = "foo"; |
| 508 } | 508 } |
| 509 buildCounterInstanceOperation--; | 509 buildCounterInstanceOperation--; |
| 510 return o; | 510 return o; |
| 511 } | 511 } |
| 512 | 512 |
| 513 checkInstanceOperation(api.InstanceOperation o) { | 513 checkInstanceOperation(api.InstanceOperation o) { |
| 514 buildCounterInstanceOperation++; | 514 buildCounterInstanceOperation++; |
| 515 if (buildCounterInstanceOperation < 3) { | 515 if (buildCounterInstanceOperation < 3) { |
| 516 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 516 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 517 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 517 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 518 checkUnnamed3159(o.error); | 518 checkUnnamed3249(o.error); |
| 519 checkExportContext(o.exportContext); | 519 checkExportContext(o.exportContext); |
| 520 checkImportContext(o.importContext); | 520 checkImportContext(o.importContext); |
| 521 unittest.expect(o.instance, unittest.equals('foo')); | 521 unittest.expect(o.instance, unittest.equals('foo')); |
| 522 unittest.expect(o.kind, unittest.equals('foo')); | 522 unittest.expect(o.kind, unittest.equals('foo')); |
| 523 unittest.expect(o.operation, unittest.equals('foo')); | 523 unittest.expect(o.operation, unittest.equals('foo')); |
| 524 unittest.expect(o.operationType, unittest.equals('foo')); | 524 unittest.expect(o.operationType, unittest.equals('foo')); |
| 525 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 525 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 526 unittest.expect(o.state, unittest.equals('foo')); | 526 unittest.expect(o.state, unittest.equals('foo')); |
| 527 unittest.expect(o.userEmailAddress, unittest.equals('foo')); | 527 unittest.expect(o.userEmailAddress, unittest.equals('foo')); |
| 528 } | 528 } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 | 703 |
| 704 checkInstancesInsertResponse(api.InstancesInsertResponse o) { | 704 checkInstancesInsertResponse(api.InstancesInsertResponse o) { |
| 705 buildCounterInstancesInsertResponse++; | 705 buildCounterInstancesInsertResponse++; |
| 706 if (buildCounterInstancesInsertResponse < 3) { | 706 if (buildCounterInstancesInsertResponse < 3) { |
| 707 unittest.expect(o.kind, unittest.equals('foo')); | 707 unittest.expect(o.kind, unittest.equals('foo')); |
| 708 unittest.expect(o.operation, unittest.equals('foo')); | 708 unittest.expect(o.operation, unittest.equals('foo')); |
| 709 } | 709 } |
| 710 buildCounterInstancesInsertResponse--; | 710 buildCounterInstancesInsertResponse--; |
| 711 } | 711 } |
| 712 | 712 |
| 713 buildUnnamed3160() { | 713 buildUnnamed3250() { |
| 714 var o = new core.List<api.DatabaseInstance>(); | 714 var o = new core.List<api.DatabaseInstance>(); |
| 715 o.add(buildDatabaseInstance()); | 715 o.add(buildDatabaseInstance()); |
| 716 o.add(buildDatabaseInstance()); | 716 o.add(buildDatabaseInstance()); |
| 717 return o; | 717 return o; |
| 718 } | 718 } |
| 719 | 719 |
| 720 checkUnnamed3160(core.List<api.DatabaseInstance> o) { | 720 checkUnnamed3250(core.List<api.DatabaseInstance> o) { |
| 721 unittest.expect(o, unittest.hasLength(2)); | 721 unittest.expect(o, unittest.hasLength(2)); |
| 722 checkDatabaseInstance(o[0]); | 722 checkDatabaseInstance(o[0]); |
| 723 checkDatabaseInstance(o[1]); | 723 checkDatabaseInstance(o[1]); |
| 724 } | 724 } |
| 725 | 725 |
| 726 core.int buildCounterInstancesListResponse = 0; | 726 core.int buildCounterInstancesListResponse = 0; |
| 727 buildInstancesListResponse() { | 727 buildInstancesListResponse() { |
| 728 var o = new api.InstancesListResponse(); | 728 var o = new api.InstancesListResponse(); |
| 729 buildCounterInstancesListResponse++; | 729 buildCounterInstancesListResponse++; |
| 730 if (buildCounterInstancesListResponse < 3) { | 730 if (buildCounterInstancesListResponse < 3) { |
| 731 o.items = buildUnnamed3160(); | 731 o.items = buildUnnamed3250(); |
| 732 o.kind = "foo"; | 732 o.kind = "foo"; |
| 733 o.nextPageToken = "foo"; | 733 o.nextPageToken = "foo"; |
| 734 } | 734 } |
| 735 buildCounterInstancesListResponse--; | 735 buildCounterInstancesListResponse--; |
| 736 return o; | 736 return o; |
| 737 } | 737 } |
| 738 | 738 |
| 739 checkInstancesListResponse(api.InstancesListResponse o) { | 739 checkInstancesListResponse(api.InstancesListResponse o) { |
| 740 buildCounterInstancesListResponse++; | 740 buildCounterInstancesListResponse++; |
| 741 if (buildCounterInstancesListResponse < 3) { | 741 if (buildCounterInstancesListResponse < 3) { |
| 742 checkUnnamed3160(o.items); | 742 checkUnnamed3250(o.items); |
| 743 unittest.expect(o.kind, unittest.equals('foo')); | 743 unittest.expect(o.kind, unittest.equals('foo')); |
| 744 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 744 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 745 } | 745 } |
| 746 buildCounterInstancesListResponse--; | 746 buildCounterInstancesListResponse--; |
| 747 } | 747 } |
| 748 | 748 |
| 749 core.int buildCounterInstancesPromoteReplicaResponse = 0; | 749 core.int buildCounterInstancesPromoteReplicaResponse = 0; |
| 750 buildInstancesPromoteReplicaResponse() { | 750 buildInstancesPromoteReplicaResponse() { |
| 751 var o = new api.InstancesPromoteReplicaResponse(); | 751 var o = new api.InstancesPromoteReplicaResponse(); |
| 752 buildCounterInstancesPromoteReplicaResponse++; | 752 buildCounterInstancesPromoteReplicaResponse++; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 | 865 |
| 866 checkInstancesUpdateResponse(api.InstancesUpdateResponse o) { | 866 checkInstancesUpdateResponse(api.InstancesUpdateResponse o) { |
| 867 buildCounterInstancesUpdateResponse++; | 867 buildCounterInstancesUpdateResponse++; |
| 868 if (buildCounterInstancesUpdateResponse < 3) { | 868 if (buildCounterInstancesUpdateResponse < 3) { |
| 869 unittest.expect(o.kind, unittest.equals('foo')); | 869 unittest.expect(o.kind, unittest.equals('foo')); |
| 870 unittest.expect(o.operation, unittest.equals('foo')); | 870 unittest.expect(o.operation, unittest.equals('foo')); |
| 871 } | 871 } |
| 872 buildCounterInstancesUpdateResponse--; | 872 buildCounterInstancesUpdateResponse--; |
| 873 } | 873 } |
| 874 | 874 |
| 875 buildUnnamed3161() { | 875 buildUnnamed3251() { |
| 876 var o = new core.List<core.String>(); | 876 var o = new core.List<core.String>(); |
| 877 o.add("foo"); | 877 o.add("foo"); |
| 878 o.add("foo"); | 878 o.add("foo"); |
| 879 return o; | 879 return o; |
| 880 } | 880 } |
| 881 | 881 |
| 882 checkUnnamed3161(core.List<core.String> o) { | 882 checkUnnamed3251(core.List<core.String> o) { |
| 883 unittest.expect(o, unittest.hasLength(2)); | 883 unittest.expect(o, unittest.hasLength(2)); |
| 884 unittest.expect(o[0], unittest.equals('foo')); | 884 unittest.expect(o[0], unittest.equals('foo')); |
| 885 unittest.expect(o[1], unittest.equals('foo')); | 885 unittest.expect(o[1], unittest.equals('foo')); |
| 886 } | 886 } |
| 887 | 887 |
| 888 core.int buildCounterIpConfiguration = 0; | 888 core.int buildCounterIpConfiguration = 0; |
| 889 buildIpConfiguration() { | 889 buildIpConfiguration() { |
| 890 var o = new api.IpConfiguration(); | 890 var o = new api.IpConfiguration(); |
| 891 buildCounterIpConfiguration++; | 891 buildCounterIpConfiguration++; |
| 892 if (buildCounterIpConfiguration < 3) { | 892 if (buildCounterIpConfiguration < 3) { |
| 893 o.authorizedNetworks = buildUnnamed3161(); | 893 o.authorizedNetworks = buildUnnamed3251(); |
| 894 o.enabled = true; | 894 o.enabled = true; |
| 895 o.kind = "foo"; | 895 o.kind = "foo"; |
| 896 o.requireSsl = true; | 896 o.requireSsl = true; |
| 897 } | 897 } |
| 898 buildCounterIpConfiguration--; | 898 buildCounterIpConfiguration--; |
| 899 return o; | 899 return o; |
| 900 } | 900 } |
| 901 | 901 |
| 902 checkIpConfiguration(api.IpConfiguration o) { | 902 checkIpConfiguration(api.IpConfiguration o) { |
| 903 buildCounterIpConfiguration++; | 903 buildCounterIpConfiguration++; |
| 904 if (buildCounterIpConfiguration < 3) { | 904 if (buildCounterIpConfiguration < 3) { |
| 905 checkUnnamed3161(o.authorizedNetworks); | 905 checkUnnamed3251(o.authorizedNetworks); |
| 906 unittest.expect(o.enabled, unittest.isTrue); | 906 unittest.expect(o.enabled, unittest.isTrue); |
| 907 unittest.expect(o.kind, unittest.equals('foo')); | 907 unittest.expect(o.kind, unittest.equals('foo')); |
| 908 unittest.expect(o.requireSsl, unittest.isTrue); | 908 unittest.expect(o.requireSsl, unittest.isTrue); |
| 909 } | 909 } |
| 910 buildCounterIpConfiguration--; | 910 buildCounterIpConfiguration--; |
| 911 } | 911 } |
| 912 | 912 |
| 913 core.int buildCounterIpMapping = 0; | 913 core.int buildCounterIpMapping = 0; |
| 914 buildIpMapping() { | 914 buildIpMapping() { |
| 915 var o = new api.IpMapping(); | 915 var o = new api.IpMapping(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 | 968 |
| 969 checkOperationError(api.OperationError o) { | 969 checkOperationError(api.OperationError o) { |
| 970 buildCounterOperationError++; | 970 buildCounterOperationError++; |
| 971 if (buildCounterOperationError < 3) { | 971 if (buildCounterOperationError < 3) { |
| 972 unittest.expect(o.code, unittest.equals('foo')); | 972 unittest.expect(o.code, unittest.equals('foo')); |
| 973 unittest.expect(o.kind, unittest.equals('foo')); | 973 unittest.expect(o.kind, unittest.equals('foo')); |
| 974 } | 974 } |
| 975 buildCounterOperationError--; | 975 buildCounterOperationError--; |
| 976 } | 976 } |
| 977 | 977 |
| 978 buildUnnamed3162() { | 978 buildUnnamed3252() { |
| 979 var o = new core.List<api.InstanceOperation>(); | 979 var o = new core.List<api.InstanceOperation>(); |
| 980 o.add(buildInstanceOperation()); | 980 o.add(buildInstanceOperation()); |
| 981 o.add(buildInstanceOperation()); | 981 o.add(buildInstanceOperation()); |
| 982 return o; | 982 return o; |
| 983 } | 983 } |
| 984 | 984 |
| 985 checkUnnamed3162(core.List<api.InstanceOperation> o) { | 985 checkUnnamed3252(core.List<api.InstanceOperation> o) { |
| 986 unittest.expect(o, unittest.hasLength(2)); | 986 unittest.expect(o, unittest.hasLength(2)); |
| 987 checkInstanceOperation(o[0]); | 987 checkInstanceOperation(o[0]); |
| 988 checkInstanceOperation(o[1]); | 988 checkInstanceOperation(o[1]); |
| 989 } | 989 } |
| 990 | 990 |
| 991 core.int buildCounterOperationsListResponse = 0; | 991 core.int buildCounterOperationsListResponse = 0; |
| 992 buildOperationsListResponse() { | 992 buildOperationsListResponse() { |
| 993 var o = new api.OperationsListResponse(); | 993 var o = new api.OperationsListResponse(); |
| 994 buildCounterOperationsListResponse++; | 994 buildCounterOperationsListResponse++; |
| 995 if (buildCounterOperationsListResponse < 3) { | 995 if (buildCounterOperationsListResponse < 3) { |
| 996 o.items = buildUnnamed3162(); | 996 o.items = buildUnnamed3252(); |
| 997 o.kind = "foo"; | 997 o.kind = "foo"; |
| 998 o.nextPageToken = "foo"; | 998 o.nextPageToken = "foo"; |
| 999 } | 999 } |
| 1000 buildCounterOperationsListResponse--; | 1000 buildCounterOperationsListResponse--; |
| 1001 return o; | 1001 return o; |
| 1002 } | 1002 } |
| 1003 | 1003 |
| 1004 checkOperationsListResponse(api.OperationsListResponse o) { | 1004 checkOperationsListResponse(api.OperationsListResponse o) { |
| 1005 buildCounterOperationsListResponse++; | 1005 buildCounterOperationsListResponse++; |
| 1006 if (buildCounterOperationsListResponse < 3) { | 1006 if (buildCounterOperationsListResponse < 3) { |
| 1007 checkUnnamed3162(o.items); | 1007 checkUnnamed3252(o.items); |
| 1008 unittest.expect(o.kind, unittest.equals('foo')); | 1008 unittest.expect(o.kind, unittest.equals('foo')); |
| 1009 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1009 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1010 } | 1010 } |
| 1011 buildCounterOperationsListResponse--; | 1011 buildCounterOperationsListResponse--; |
| 1012 } | 1012 } |
| 1013 | 1013 |
| 1014 core.int buildCounterSetRootPasswordContext = 0; | 1014 core.int buildCounterSetRootPasswordContext = 0; |
| 1015 buildSetRootPasswordContext() { | 1015 buildSetRootPasswordContext() { |
| 1016 var o = new api.SetRootPasswordContext(); | 1016 var o = new api.SetRootPasswordContext(); |
| 1017 buildCounterSetRootPasswordContext++; | 1017 buildCounterSetRootPasswordContext++; |
| 1018 if (buildCounterSetRootPasswordContext < 3) { | 1018 if (buildCounterSetRootPasswordContext < 3) { |
| 1019 o.kind = "foo"; | 1019 o.kind = "foo"; |
| 1020 o.password = "foo"; | 1020 o.password = "foo"; |
| 1021 } | 1021 } |
| 1022 buildCounterSetRootPasswordContext--; | 1022 buildCounterSetRootPasswordContext--; |
| 1023 return o; | 1023 return o; |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 checkSetRootPasswordContext(api.SetRootPasswordContext o) { | 1026 checkSetRootPasswordContext(api.SetRootPasswordContext o) { |
| 1027 buildCounterSetRootPasswordContext++; | 1027 buildCounterSetRootPasswordContext++; |
| 1028 if (buildCounterSetRootPasswordContext < 3) { | 1028 if (buildCounterSetRootPasswordContext < 3) { |
| 1029 unittest.expect(o.kind, unittest.equals('foo')); | 1029 unittest.expect(o.kind, unittest.equals('foo')); |
| 1030 unittest.expect(o.password, unittest.equals('foo')); | 1030 unittest.expect(o.password, unittest.equals('foo')); |
| 1031 } | 1031 } |
| 1032 buildCounterSetRootPasswordContext--; | 1032 buildCounterSetRootPasswordContext--; |
| 1033 } | 1033 } |
| 1034 | 1034 |
| 1035 buildUnnamed3163() { | 1035 buildUnnamed3253() { |
| 1036 var o = new core.List<core.String>(); | 1036 var o = new core.List<core.String>(); |
| 1037 o.add("foo"); | 1037 o.add("foo"); |
| 1038 o.add("foo"); | 1038 o.add("foo"); |
| 1039 return o; | 1039 return o; |
| 1040 } | 1040 } |
| 1041 | 1041 |
| 1042 checkUnnamed3163(core.List<core.String> o) { | 1042 checkUnnamed3253(core.List<core.String> o) { |
| 1043 unittest.expect(o, unittest.hasLength(2)); | 1043 unittest.expect(o, unittest.hasLength(2)); |
| 1044 unittest.expect(o[0], unittest.equals('foo')); | 1044 unittest.expect(o[0], unittest.equals('foo')); |
| 1045 unittest.expect(o[1], unittest.equals('foo')); | 1045 unittest.expect(o[1], unittest.equals('foo')); |
| 1046 } | 1046 } |
| 1047 | 1047 |
| 1048 buildUnnamed3164() { | 1048 buildUnnamed3254() { |
| 1049 var o = new core.List<api.BackupConfiguration>(); | 1049 var o = new core.List<api.BackupConfiguration>(); |
| 1050 o.add(buildBackupConfiguration()); | 1050 o.add(buildBackupConfiguration()); |
| 1051 o.add(buildBackupConfiguration()); | 1051 o.add(buildBackupConfiguration()); |
| 1052 return o; | 1052 return o; |
| 1053 } | 1053 } |
| 1054 | 1054 |
| 1055 checkUnnamed3164(core.List<api.BackupConfiguration> o) { | 1055 checkUnnamed3254(core.List<api.BackupConfiguration> o) { |
| 1056 unittest.expect(o, unittest.hasLength(2)); | 1056 unittest.expect(o, unittest.hasLength(2)); |
| 1057 checkBackupConfiguration(o[0]); | 1057 checkBackupConfiguration(o[0]); |
| 1058 checkBackupConfiguration(o[1]); | 1058 checkBackupConfiguration(o[1]); |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 buildUnnamed3165() { | 1061 buildUnnamed3255() { |
| 1062 var o = new core.List<api.DatabaseFlags>(); | 1062 var o = new core.List<api.DatabaseFlags>(); |
| 1063 o.add(buildDatabaseFlags()); | 1063 o.add(buildDatabaseFlags()); |
| 1064 o.add(buildDatabaseFlags()); | 1064 o.add(buildDatabaseFlags()); |
| 1065 return o; | 1065 return o; |
| 1066 } | 1066 } |
| 1067 | 1067 |
| 1068 checkUnnamed3165(core.List<api.DatabaseFlags> o) { | 1068 checkUnnamed3255(core.List<api.DatabaseFlags> o) { |
| 1069 unittest.expect(o, unittest.hasLength(2)); | 1069 unittest.expect(o, unittest.hasLength(2)); |
| 1070 checkDatabaseFlags(o[0]); | 1070 checkDatabaseFlags(o[0]); |
| 1071 checkDatabaseFlags(o[1]); | 1071 checkDatabaseFlags(o[1]); |
| 1072 } | 1072 } |
| 1073 | 1073 |
| 1074 core.int buildCounterSettings = 0; | 1074 core.int buildCounterSettings = 0; |
| 1075 buildSettings() { | 1075 buildSettings() { |
| 1076 var o = new api.Settings(); | 1076 var o = new api.Settings(); |
| 1077 buildCounterSettings++; | 1077 buildCounterSettings++; |
| 1078 if (buildCounterSettings < 3) { | 1078 if (buildCounterSettings < 3) { |
| 1079 o.activationPolicy = "foo"; | 1079 o.activationPolicy = "foo"; |
| 1080 o.authorizedGaeApplications = buildUnnamed3163(); | 1080 o.authorizedGaeApplications = buildUnnamed3253(); |
| 1081 o.backupConfiguration = buildUnnamed3164(); | 1081 o.backupConfiguration = buildUnnamed3254(); |
| 1082 o.databaseFlags = buildUnnamed3165(); | 1082 o.databaseFlags = buildUnnamed3255(); |
| 1083 o.databaseReplicationEnabled = true; | 1083 o.databaseReplicationEnabled = true; |
| 1084 o.ipConfiguration = buildIpConfiguration(); | 1084 o.ipConfiguration = buildIpConfiguration(); |
| 1085 o.kind = "foo"; | 1085 o.kind = "foo"; |
| 1086 o.locationPreference = buildLocationPreference(); | 1086 o.locationPreference = buildLocationPreference(); |
| 1087 o.pricingPlan = "foo"; | 1087 o.pricingPlan = "foo"; |
| 1088 o.replicationType = "foo"; | 1088 o.replicationType = "foo"; |
| 1089 o.settingsVersion = "foo"; | 1089 o.settingsVersion = "foo"; |
| 1090 o.tier = "foo"; | 1090 o.tier = "foo"; |
| 1091 } | 1091 } |
| 1092 buildCounterSettings--; | 1092 buildCounterSettings--; |
| 1093 return o; | 1093 return o; |
| 1094 } | 1094 } |
| 1095 | 1095 |
| 1096 checkSettings(api.Settings o) { | 1096 checkSettings(api.Settings o) { |
| 1097 buildCounterSettings++; | 1097 buildCounterSettings++; |
| 1098 if (buildCounterSettings < 3) { | 1098 if (buildCounterSettings < 3) { |
| 1099 unittest.expect(o.activationPolicy, unittest.equals('foo')); | 1099 unittest.expect(o.activationPolicy, unittest.equals('foo')); |
| 1100 checkUnnamed3163(o.authorizedGaeApplications); | 1100 checkUnnamed3253(o.authorizedGaeApplications); |
| 1101 checkUnnamed3164(o.backupConfiguration); | 1101 checkUnnamed3254(o.backupConfiguration); |
| 1102 checkUnnamed3165(o.databaseFlags); | 1102 checkUnnamed3255(o.databaseFlags); |
| 1103 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); | 1103 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); |
| 1104 checkIpConfiguration(o.ipConfiguration); | 1104 checkIpConfiguration(o.ipConfiguration); |
| 1105 unittest.expect(o.kind, unittest.equals('foo')); | 1105 unittest.expect(o.kind, unittest.equals('foo')); |
| 1106 checkLocationPreference(o.locationPreference); | 1106 checkLocationPreference(o.locationPreference); |
| 1107 unittest.expect(o.pricingPlan, unittest.equals('foo')); | 1107 unittest.expect(o.pricingPlan, unittest.equals('foo')); |
| 1108 unittest.expect(o.replicationType, unittest.equals('foo')); | 1108 unittest.expect(o.replicationType, unittest.equals('foo')); |
| 1109 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 1109 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
| 1110 unittest.expect(o.tier, unittest.equals('foo')); | 1110 unittest.expect(o.tier, unittest.equals('foo')); |
| 1111 } | 1111 } |
| 1112 buildCounterSettings--; | 1112 buildCounterSettings--; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1222 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { | 1222 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { |
| 1223 buildCounterSslCertsInsertResponse++; | 1223 buildCounterSslCertsInsertResponse++; |
| 1224 if (buildCounterSslCertsInsertResponse < 3) { | 1224 if (buildCounterSslCertsInsertResponse < 3) { |
| 1225 checkSslCertDetail(o.clientCert); | 1225 checkSslCertDetail(o.clientCert); |
| 1226 unittest.expect(o.kind, unittest.equals('foo')); | 1226 unittest.expect(o.kind, unittest.equals('foo')); |
| 1227 checkSslCert(o.serverCaCert); | 1227 checkSslCert(o.serverCaCert); |
| 1228 } | 1228 } |
| 1229 buildCounterSslCertsInsertResponse--; | 1229 buildCounterSslCertsInsertResponse--; |
| 1230 } | 1230 } |
| 1231 | 1231 |
| 1232 buildUnnamed3166() { | 1232 buildUnnamed3256() { |
| 1233 var o = new core.List<api.SslCert>(); | 1233 var o = new core.List<api.SslCert>(); |
| 1234 o.add(buildSslCert()); | 1234 o.add(buildSslCert()); |
| 1235 o.add(buildSslCert()); | 1235 o.add(buildSslCert()); |
| 1236 return o; | 1236 return o; |
| 1237 } | 1237 } |
| 1238 | 1238 |
| 1239 checkUnnamed3166(core.List<api.SslCert> o) { | 1239 checkUnnamed3256(core.List<api.SslCert> o) { |
| 1240 unittest.expect(o, unittest.hasLength(2)); | 1240 unittest.expect(o, unittest.hasLength(2)); |
| 1241 checkSslCert(o[0]); | 1241 checkSslCert(o[0]); |
| 1242 checkSslCert(o[1]); | 1242 checkSslCert(o[1]); |
| 1243 } | 1243 } |
| 1244 | 1244 |
| 1245 core.int buildCounterSslCertsListResponse = 0; | 1245 core.int buildCounterSslCertsListResponse = 0; |
| 1246 buildSslCertsListResponse() { | 1246 buildSslCertsListResponse() { |
| 1247 var o = new api.SslCertsListResponse(); | 1247 var o = new api.SslCertsListResponse(); |
| 1248 buildCounterSslCertsListResponse++; | 1248 buildCounterSslCertsListResponse++; |
| 1249 if (buildCounterSslCertsListResponse < 3) { | 1249 if (buildCounterSslCertsListResponse < 3) { |
| 1250 o.items = buildUnnamed3166(); | 1250 o.items = buildUnnamed3256(); |
| 1251 o.kind = "foo"; | 1251 o.kind = "foo"; |
| 1252 } | 1252 } |
| 1253 buildCounterSslCertsListResponse--; | 1253 buildCounterSslCertsListResponse--; |
| 1254 return o; | 1254 return o; |
| 1255 } | 1255 } |
| 1256 | 1256 |
| 1257 checkSslCertsListResponse(api.SslCertsListResponse o) { | 1257 checkSslCertsListResponse(api.SslCertsListResponse o) { |
| 1258 buildCounterSslCertsListResponse++; | 1258 buildCounterSslCertsListResponse++; |
| 1259 if (buildCounterSslCertsListResponse < 3) { | 1259 if (buildCounterSslCertsListResponse < 3) { |
| 1260 checkUnnamed3166(o.items); | 1260 checkUnnamed3256(o.items); |
| 1261 unittest.expect(o.kind, unittest.equals('foo')); | 1261 unittest.expect(o.kind, unittest.equals('foo')); |
| 1262 } | 1262 } |
| 1263 buildCounterSslCertsListResponse--; | 1263 buildCounterSslCertsListResponse--; |
| 1264 } | 1264 } |
| 1265 | 1265 |
| 1266 buildUnnamed3167() { | 1266 buildUnnamed3257() { |
| 1267 var o = new core.List<core.String>(); | 1267 var o = new core.List<core.String>(); |
| 1268 o.add("foo"); | 1268 o.add("foo"); |
| 1269 o.add("foo"); | 1269 o.add("foo"); |
| 1270 return o; | 1270 return o; |
| 1271 } | 1271 } |
| 1272 | 1272 |
| 1273 checkUnnamed3167(core.List<core.String> o) { | 1273 checkUnnamed3257(core.List<core.String> o) { |
| 1274 unittest.expect(o, unittest.hasLength(2)); | 1274 unittest.expect(o, unittest.hasLength(2)); |
| 1275 unittest.expect(o[0], unittest.equals('foo')); | 1275 unittest.expect(o[0], unittest.equals('foo')); |
| 1276 unittest.expect(o[1], unittest.equals('foo')); | 1276 unittest.expect(o[1], unittest.equals('foo')); |
| 1277 } | 1277 } |
| 1278 | 1278 |
| 1279 core.int buildCounterTier = 0; | 1279 core.int buildCounterTier = 0; |
| 1280 buildTier() { | 1280 buildTier() { |
| 1281 var o = new api.Tier(); | 1281 var o = new api.Tier(); |
| 1282 buildCounterTier++; | 1282 buildCounterTier++; |
| 1283 if (buildCounterTier < 3) { | 1283 if (buildCounterTier < 3) { |
| 1284 o.DiskQuota = "foo"; | 1284 o.DiskQuota = "foo"; |
| 1285 o.RAM = "foo"; | 1285 o.RAM = "foo"; |
| 1286 o.kind = "foo"; | 1286 o.kind = "foo"; |
| 1287 o.region = buildUnnamed3167(); | 1287 o.region = buildUnnamed3257(); |
| 1288 o.tier = "foo"; | 1288 o.tier = "foo"; |
| 1289 } | 1289 } |
| 1290 buildCounterTier--; | 1290 buildCounterTier--; |
| 1291 return o; | 1291 return o; |
| 1292 } | 1292 } |
| 1293 | 1293 |
| 1294 checkTier(api.Tier o) { | 1294 checkTier(api.Tier o) { |
| 1295 buildCounterTier++; | 1295 buildCounterTier++; |
| 1296 if (buildCounterTier < 3) { | 1296 if (buildCounterTier < 3) { |
| 1297 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1297 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
| 1298 unittest.expect(o.RAM, unittest.equals('foo')); | 1298 unittest.expect(o.RAM, unittest.equals('foo')); |
| 1299 unittest.expect(o.kind, unittest.equals('foo')); | 1299 unittest.expect(o.kind, unittest.equals('foo')); |
| 1300 checkUnnamed3167(o.region); | 1300 checkUnnamed3257(o.region); |
| 1301 unittest.expect(o.tier, unittest.equals('foo')); | 1301 unittest.expect(o.tier, unittest.equals('foo')); |
| 1302 } | 1302 } |
| 1303 buildCounterTier--; | 1303 buildCounterTier--; |
| 1304 } | 1304 } |
| 1305 | 1305 |
| 1306 buildUnnamed3168() { | 1306 buildUnnamed3258() { |
| 1307 var o = new core.List<api.Tier>(); | 1307 var o = new core.List<api.Tier>(); |
| 1308 o.add(buildTier()); | 1308 o.add(buildTier()); |
| 1309 o.add(buildTier()); | 1309 o.add(buildTier()); |
| 1310 return o; | 1310 return o; |
| 1311 } | 1311 } |
| 1312 | 1312 |
| 1313 checkUnnamed3168(core.List<api.Tier> o) { | 1313 checkUnnamed3258(core.List<api.Tier> o) { |
| 1314 unittest.expect(o, unittest.hasLength(2)); | 1314 unittest.expect(o, unittest.hasLength(2)); |
| 1315 checkTier(o[0]); | 1315 checkTier(o[0]); |
| 1316 checkTier(o[1]); | 1316 checkTier(o[1]); |
| 1317 } | 1317 } |
| 1318 | 1318 |
| 1319 core.int buildCounterTiersListResponse = 0; | 1319 core.int buildCounterTiersListResponse = 0; |
| 1320 buildTiersListResponse() { | 1320 buildTiersListResponse() { |
| 1321 var o = new api.TiersListResponse(); | 1321 var o = new api.TiersListResponse(); |
| 1322 buildCounterTiersListResponse++; | 1322 buildCounterTiersListResponse++; |
| 1323 if (buildCounterTiersListResponse < 3) { | 1323 if (buildCounterTiersListResponse < 3) { |
| 1324 o.items = buildUnnamed3168(); | 1324 o.items = buildUnnamed3258(); |
| 1325 o.kind = "foo"; | 1325 o.kind = "foo"; |
| 1326 } | 1326 } |
| 1327 buildCounterTiersListResponse--; | 1327 buildCounterTiersListResponse--; |
| 1328 return o; | 1328 return o; |
| 1329 } | 1329 } |
| 1330 | 1330 |
| 1331 checkTiersListResponse(api.TiersListResponse o) { | 1331 checkTiersListResponse(api.TiersListResponse o) { |
| 1332 buildCounterTiersListResponse++; | 1332 buildCounterTiersListResponse++; |
| 1333 if (buildCounterTiersListResponse < 3) { | 1333 if (buildCounterTiersListResponse < 3) { |
| 1334 checkUnnamed3168(o.items); | 1334 checkUnnamed3258(o.items); |
| 1335 unittest.expect(o.kind, unittest.equals('foo')); | 1335 unittest.expect(o.kind, unittest.equals('foo')); |
| 1336 } | 1336 } |
| 1337 buildCounterTiersListResponse--; | 1337 buildCounterTiersListResponse--; |
| 1338 } | 1338 } |
| 1339 | 1339 |
| 1340 | 1340 |
| 1341 main() { | 1341 main() { |
| 1342 unittest.group("obj-schema-BackupConfiguration", () { | 1342 unittest.group("obj-schema-BackupConfiguration", () { |
| 1343 unittest.test("to-json--from-json", () { | 1343 unittest.test("to-json--from-json", () { |
| 1344 var o = buildBackupConfiguration(); | 1344 var o = buildBackupConfiguration(); |
| (...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3213 res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse re
sponse) { | 3213 res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse re
sponse) { |
| 3214 checkTiersListResponse(response); | 3214 checkTiersListResponse(response); |
| 3215 }))); | 3215 }))); |
| 3216 }); | 3216 }); |
| 3217 | 3217 |
| 3218 }); | 3218 }); |
| 3219 | 3219 |
| 3220 | 3220 |
| 3221 } | 3221 } |
| 3222 | 3222 |
| OLD | NEW |