| 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 buildUnnamed1608() { | 116 buildUnnamed2582() { |
| 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 checkUnnamed1608(core.List<api.BackupRun> o) { | 123 checkUnnamed2582(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 = buildUnnamed1608(); | 134 o.items = buildUnnamed2582(); |
| 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 checkUnnamed1608(o.items); | 145 checkUnnamed2582(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 buildUnnamed1609() { | 221 buildUnnamed2583() { |
| 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 checkUnnamed1609(core.List<api.IpMapping> o) { | 228 checkUnnamed2583(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 buildUnnamed1610() { | 234 buildUnnamed2584() { |
| 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 checkUnnamed1610(core.List<core.String> o) { | 241 checkUnnamed2584(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.currentDiskSize = "foo"; | 252 o.currentDiskSize = "foo"; |
| 253 o.databaseVersion = "foo"; | 253 o.databaseVersion = "foo"; |
| 254 o.etag = "foo"; | 254 o.etag = "foo"; |
| 255 o.instance = "foo"; | 255 o.instance = "foo"; |
| 256 o.instanceType = "foo"; | 256 o.instanceType = "foo"; |
| 257 o.ipAddresses = buildUnnamed1609(); | 257 o.ipAddresses = buildUnnamed2583(); |
| 258 o.ipv6Address = "foo"; | 258 o.ipv6Address = "foo"; |
| 259 o.kind = "foo"; | 259 o.kind = "foo"; |
| 260 o.masterInstanceName = "foo"; | 260 o.masterInstanceName = "foo"; |
| 261 o.maxDiskSize = "foo"; | 261 o.maxDiskSize = "foo"; |
| 262 o.project = "foo"; | 262 o.project = "foo"; |
| 263 o.region = "foo"; | 263 o.region = "foo"; |
| 264 o.replicaNames = buildUnnamed1610(); | 264 o.replicaNames = buildUnnamed2584(); |
| 265 o.serverCaCert = buildSslCert(); | 265 o.serverCaCert = buildSslCert(); |
| 266 o.serviceAccountEmailAddress = "foo"; | 266 o.serviceAccountEmailAddress = "foo"; |
| 267 o.settings = buildSettings(); | 267 o.settings = buildSettings(); |
| 268 o.state = "foo"; | 268 o.state = "foo"; |
| 269 } | 269 } |
| 270 buildCounterDatabaseInstance--; | 270 buildCounterDatabaseInstance--; |
| 271 return o; | 271 return o; |
| 272 } | 272 } |
| 273 | 273 |
| 274 checkDatabaseInstance(api.DatabaseInstance o) { | 274 checkDatabaseInstance(api.DatabaseInstance o) { |
| 275 buildCounterDatabaseInstance++; | 275 buildCounterDatabaseInstance++; |
| 276 if (buildCounterDatabaseInstance < 3) { | 276 if (buildCounterDatabaseInstance < 3) { |
| 277 unittest.expect(o.currentDiskSize, unittest.equals('foo')); | 277 unittest.expect(o.currentDiskSize, unittest.equals('foo')); |
| 278 unittest.expect(o.databaseVersion, unittest.equals('foo')); | 278 unittest.expect(o.databaseVersion, unittest.equals('foo')); |
| 279 unittest.expect(o.etag, unittest.equals('foo')); | 279 unittest.expect(o.etag, unittest.equals('foo')); |
| 280 unittest.expect(o.instance, unittest.equals('foo')); | 280 unittest.expect(o.instance, unittest.equals('foo')); |
| 281 unittest.expect(o.instanceType, unittest.equals('foo')); | 281 unittest.expect(o.instanceType, unittest.equals('foo')); |
| 282 checkUnnamed1609(o.ipAddresses); | 282 checkUnnamed2583(o.ipAddresses); |
| 283 unittest.expect(o.ipv6Address, unittest.equals('foo')); | 283 unittest.expect(o.ipv6Address, unittest.equals('foo')); |
| 284 unittest.expect(o.kind, unittest.equals('foo')); | 284 unittest.expect(o.kind, unittest.equals('foo')); |
| 285 unittest.expect(o.masterInstanceName, unittest.equals('foo')); | 285 unittest.expect(o.masterInstanceName, unittest.equals('foo')); |
| 286 unittest.expect(o.maxDiskSize, unittest.equals('foo')); | 286 unittest.expect(o.maxDiskSize, unittest.equals('foo')); |
| 287 unittest.expect(o.project, unittest.equals('foo')); | 287 unittest.expect(o.project, unittest.equals('foo')); |
| 288 unittest.expect(o.region, unittest.equals('foo')); | 288 unittest.expect(o.region, unittest.equals('foo')); |
| 289 checkUnnamed1610(o.replicaNames); | 289 checkUnnamed2584(o.replicaNames); |
| 290 checkSslCert(o.serverCaCert); | 290 checkSslCert(o.serverCaCert); |
| 291 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); | 291 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); |
| 292 checkSettings(o.settings); | 292 checkSettings(o.settings); |
| 293 unittest.expect(o.state, unittest.equals('foo')); | 293 unittest.expect(o.state, unittest.equals('foo')); |
| 294 } | 294 } |
| 295 buildCounterDatabaseInstance--; | 295 buildCounterDatabaseInstance--; |
| 296 } | 296 } |
| 297 | 297 |
| 298 buildUnnamed1611() { | 298 buildUnnamed2585() { |
| 299 var o = new core.List<core.String>(); | 299 var o = new core.List<core.String>(); |
| 300 o.add("foo"); | 300 o.add("foo"); |
| 301 o.add("foo"); | 301 o.add("foo"); |
| 302 return o; | 302 return o; |
| 303 } | 303 } |
| 304 | 304 |
| 305 checkUnnamed1611(core.List<core.String> o) { | 305 checkUnnamed2585(core.List<core.String> o) { |
| 306 unittest.expect(o, unittest.hasLength(2)); | 306 unittest.expect(o, unittest.hasLength(2)); |
| 307 unittest.expect(o[0], unittest.equals('foo')); | 307 unittest.expect(o[0], unittest.equals('foo')); |
| 308 unittest.expect(o[1], unittest.equals('foo')); | 308 unittest.expect(o[1], unittest.equals('foo')); |
| 309 } | 309 } |
| 310 | 310 |
| 311 buildUnnamed1612() { | 311 buildUnnamed2586() { |
| 312 var o = new core.List<core.String>(); | 312 var o = new core.List<core.String>(); |
| 313 o.add("foo"); | 313 o.add("foo"); |
| 314 o.add("foo"); | 314 o.add("foo"); |
| 315 return o; | 315 return o; |
| 316 } | 316 } |
| 317 | 317 |
| 318 checkUnnamed1612(core.List<core.String> o) { | 318 checkUnnamed2586(core.List<core.String> o) { |
| 319 unittest.expect(o, unittest.hasLength(2)); | 319 unittest.expect(o, unittest.hasLength(2)); |
| 320 unittest.expect(o[0], unittest.equals('foo')); | 320 unittest.expect(o[0], unittest.equals('foo')); |
| 321 unittest.expect(o[1], unittest.equals('foo')); | 321 unittest.expect(o[1], unittest.equals('foo')); |
| 322 } | 322 } |
| 323 | 323 |
| 324 core.int buildCounterExportContext = 0; | 324 core.int buildCounterExportContext = 0; |
| 325 buildExportContext() { | 325 buildExportContext() { |
| 326 var o = new api.ExportContext(); | 326 var o = new api.ExportContext(); |
| 327 buildCounterExportContext++; | 327 buildCounterExportContext++; |
| 328 if (buildCounterExportContext < 3) { | 328 if (buildCounterExportContext < 3) { |
| 329 o.database = buildUnnamed1611(); | 329 o.database = buildUnnamed2585(); |
| 330 o.kind = "foo"; | 330 o.kind = "foo"; |
| 331 o.table = buildUnnamed1612(); | 331 o.table = buildUnnamed2586(); |
| 332 o.uri = "foo"; | 332 o.uri = "foo"; |
| 333 } | 333 } |
| 334 buildCounterExportContext--; | 334 buildCounterExportContext--; |
| 335 return o; | 335 return o; |
| 336 } | 336 } |
| 337 | 337 |
| 338 checkExportContext(api.ExportContext o) { | 338 checkExportContext(api.ExportContext o) { |
| 339 buildCounterExportContext++; | 339 buildCounterExportContext++; |
| 340 if (buildCounterExportContext < 3) { | 340 if (buildCounterExportContext < 3) { |
| 341 checkUnnamed1611(o.database); | 341 checkUnnamed2585(o.database); |
| 342 unittest.expect(o.kind, unittest.equals('foo')); | 342 unittest.expect(o.kind, unittest.equals('foo')); |
| 343 checkUnnamed1612(o.table); | 343 checkUnnamed2586(o.table); |
| 344 unittest.expect(o.uri, unittest.equals('foo')); | 344 unittest.expect(o.uri, unittest.equals('foo')); |
| 345 } | 345 } |
| 346 buildCounterExportContext--; | 346 buildCounterExportContext--; |
| 347 } | 347 } |
| 348 | 348 |
| 349 buildUnnamed1613() { | 349 buildUnnamed2587() { |
| 350 var o = new core.List<core.String>(); | 350 var o = new core.List<core.String>(); |
| 351 o.add("foo"); | 351 o.add("foo"); |
| 352 o.add("foo"); | 352 o.add("foo"); |
| 353 return o; | 353 return o; |
| 354 } | 354 } |
| 355 | 355 |
| 356 checkUnnamed1613(core.List<core.String> o) { | 356 checkUnnamed2587(core.List<core.String> o) { |
| 357 unittest.expect(o, unittest.hasLength(2)); | 357 unittest.expect(o, unittest.hasLength(2)); |
| 358 unittest.expect(o[0], unittest.equals('foo')); | 358 unittest.expect(o[0], unittest.equals('foo')); |
| 359 unittest.expect(o[1], unittest.equals('foo')); | 359 unittest.expect(o[1], unittest.equals('foo')); |
| 360 } | 360 } |
| 361 | 361 |
| 362 buildUnnamed1614() { | 362 buildUnnamed2588() { |
| 363 var o = new core.List<core.String>(); | 363 var o = new core.List<core.String>(); |
| 364 o.add("foo"); | 364 o.add("foo"); |
| 365 o.add("foo"); | 365 o.add("foo"); |
| 366 return o; | 366 return o; |
| 367 } | 367 } |
| 368 | 368 |
| 369 checkUnnamed1614(core.List<core.String> o) { | 369 checkUnnamed2588(core.List<core.String> o) { |
| 370 unittest.expect(o, unittest.hasLength(2)); | 370 unittest.expect(o, unittest.hasLength(2)); |
| 371 unittest.expect(o[0], unittest.equals('foo')); | 371 unittest.expect(o[0], unittest.equals('foo')); |
| 372 unittest.expect(o[1], unittest.equals('foo')); | 372 unittest.expect(o[1], unittest.equals('foo')); |
| 373 } | 373 } |
| 374 | 374 |
| 375 core.int buildCounterFlag = 0; | 375 core.int buildCounterFlag = 0; |
| 376 buildFlag() { | 376 buildFlag() { |
| 377 var o = new api.Flag(); | 377 var o = new api.Flag(); |
| 378 buildCounterFlag++; | 378 buildCounterFlag++; |
| 379 if (buildCounterFlag < 3) { | 379 if (buildCounterFlag < 3) { |
| 380 o.allowedStringValues = buildUnnamed1613(); | 380 o.allowedStringValues = buildUnnamed2587(); |
| 381 o.appliesTo = buildUnnamed1614(); | 381 o.appliesTo = buildUnnamed2588(); |
| 382 o.kind = "foo"; | 382 o.kind = "foo"; |
| 383 o.maxValue = "foo"; | 383 o.maxValue = "foo"; |
| 384 o.minValue = "foo"; | 384 o.minValue = "foo"; |
| 385 o.name = "foo"; | 385 o.name = "foo"; |
| 386 o.type = "foo"; | 386 o.type = "foo"; |
| 387 } | 387 } |
| 388 buildCounterFlag--; | 388 buildCounterFlag--; |
| 389 return o; | 389 return o; |
| 390 } | 390 } |
| 391 | 391 |
| 392 checkFlag(api.Flag o) { | 392 checkFlag(api.Flag o) { |
| 393 buildCounterFlag++; | 393 buildCounterFlag++; |
| 394 if (buildCounterFlag < 3) { | 394 if (buildCounterFlag < 3) { |
| 395 checkUnnamed1613(o.allowedStringValues); | 395 checkUnnamed2587(o.allowedStringValues); |
| 396 checkUnnamed1614(o.appliesTo); | 396 checkUnnamed2588(o.appliesTo); |
| 397 unittest.expect(o.kind, unittest.equals('foo')); | 397 unittest.expect(o.kind, unittest.equals('foo')); |
| 398 unittest.expect(o.maxValue, unittest.equals('foo')); | 398 unittest.expect(o.maxValue, unittest.equals('foo')); |
| 399 unittest.expect(o.minValue, unittest.equals('foo')); | 399 unittest.expect(o.minValue, unittest.equals('foo')); |
| 400 unittest.expect(o.name, unittest.equals('foo')); | 400 unittest.expect(o.name, unittest.equals('foo')); |
| 401 unittest.expect(o.type, unittest.equals('foo')); | 401 unittest.expect(o.type, unittest.equals('foo')); |
| 402 } | 402 } |
| 403 buildCounterFlag--; | 403 buildCounterFlag--; |
| 404 } | 404 } |
| 405 | 405 |
| 406 buildUnnamed1615() { | 406 buildUnnamed2589() { |
| 407 var o = new core.List<api.Flag>(); | 407 var o = new core.List<api.Flag>(); |
| 408 o.add(buildFlag()); | 408 o.add(buildFlag()); |
| 409 o.add(buildFlag()); | 409 o.add(buildFlag()); |
| 410 return o; | 410 return o; |
| 411 } | 411 } |
| 412 | 412 |
| 413 checkUnnamed1615(core.List<api.Flag> o) { | 413 checkUnnamed2589(core.List<api.Flag> o) { |
| 414 unittest.expect(o, unittest.hasLength(2)); | 414 unittest.expect(o, unittest.hasLength(2)); |
| 415 checkFlag(o[0]); | 415 checkFlag(o[0]); |
| 416 checkFlag(o[1]); | 416 checkFlag(o[1]); |
| 417 } | 417 } |
| 418 | 418 |
| 419 core.int buildCounterFlagsListResponse = 0; | 419 core.int buildCounterFlagsListResponse = 0; |
| 420 buildFlagsListResponse() { | 420 buildFlagsListResponse() { |
| 421 var o = new api.FlagsListResponse(); | 421 var o = new api.FlagsListResponse(); |
| 422 buildCounterFlagsListResponse++; | 422 buildCounterFlagsListResponse++; |
| 423 if (buildCounterFlagsListResponse < 3) { | 423 if (buildCounterFlagsListResponse < 3) { |
| 424 o.items = buildUnnamed1615(); | 424 o.items = buildUnnamed2589(); |
| 425 o.kind = "foo"; | 425 o.kind = "foo"; |
| 426 } | 426 } |
| 427 buildCounterFlagsListResponse--; | 427 buildCounterFlagsListResponse--; |
| 428 return o; | 428 return o; |
| 429 } | 429 } |
| 430 | 430 |
| 431 checkFlagsListResponse(api.FlagsListResponse o) { | 431 checkFlagsListResponse(api.FlagsListResponse o) { |
| 432 buildCounterFlagsListResponse++; | 432 buildCounterFlagsListResponse++; |
| 433 if (buildCounterFlagsListResponse < 3) { | 433 if (buildCounterFlagsListResponse < 3) { |
| 434 checkUnnamed1615(o.items); | 434 checkUnnamed2589(o.items); |
| 435 unittest.expect(o.kind, unittest.equals('foo')); | 435 unittest.expect(o.kind, unittest.equals('foo')); |
| 436 } | 436 } |
| 437 buildCounterFlagsListResponse--; | 437 buildCounterFlagsListResponse--; |
| 438 } | 438 } |
| 439 | 439 |
| 440 buildUnnamed1616() { | 440 buildUnnamed2590() { |
| 441 var o = new core.List<core.String>(); | 441 var o = new core.List<core.String>(); |
| 442 o.add("foo"); | 442 o.add("foo"); |
| 443 o.add("foo"); | 443 o.add("foo"); |
| 444 return o; | 444 return o; |
| 445 } | 445 } |
| 446 | 446 |
| 447 checkUnnamed1616(core.List<core.String> o) { | 447 checkUnnamed2590(core.List<core.String> o) { |
| 448 unittest.expect(o, unittest.hasLength(2)); | 448 unittest.expect(o, unittest.hasLength(2)); |
| 449 unittest.expect(o[0], unittest.equals('foo')); | 449 unittest.expect(o[0], unittest.equals('foo')); |
| 450 unittest.expect(o[1], unittest.equals('foo')); | 450 unittest.expect(o[1], unittest.equals('foo')); |
| 451 } | 451 } |
| 452 | 452 |
| 453 core.int buildCounterImportContext = 0; | 453 core.int buildCounterImportContext = 0; |
| 454 buildImportContext() { | 454 buildImportContext() { |
| 455 var o = new api.ImportContext(); | 455 var o = new api.ImportContext(); |
| 456 buildCounterImportContext++; | 456 buildCounterImportContext++; |
| 457 if (buildCounterImportContext < 3) { | 457 if (buildCounterImportContext < 3) { |
| 458 o.database = "foo"; | 458 o.database = "foo"; |
| 459 o.kind = "foo"; | 459 o.kind = "foo"; |
| 460 o.uri = buildUnnamed1616(); | 460 o.uri = buildUnnamed2590(); |
| 461 } | 461 } |
| 462 buildCounterImportContext--; | 462 buildCounterImportContext--; |
| 463 return o; | 463 return o; |
| 464 } | 464 } |
| 465 | 465 |
| 466 checkImportContext(api.ImportContext o) { | 466 checkImportContext(api.ImportContext o) { |
| 467 buildCounterImportContext++; | 467 buildCounterImportContext++; |
| 468 if (buildCounterImportContext < 3) { | 468 if (buildCounterImportContext < 3) { |
| 469 unittest.expect(o.database, unittest.equals('foo')); | 469 unittest.expect(o.database, unittest.equals('foo')); |
| 470 unittest.expect(o.kind, unittest.equals('foo')); | 470 unittest.expect(o.kind, unittest.equals('foo')); |
| 471 checkUnnamed1616(o.uri); | 471 checkUnnamed2590(o.uri); |
| 472 } | 472 } |
| 473 buildCounterImportContext--; | 473 buildCounterImportContext--; |
| 474 } | 474 } |
| 475 | 475 |
| 476 buildUnnamed1617() { | 476 buildUnnamed2591() { |
| 477 var o = new core.List<api.OperationError>(); | 477 var o = new core.List<api.OperationError>(); |
| 478 o.add(buildOperationError()); | 478 o.add(buildOperationError()); |
| 479 o.add(buildOperationError()); | 479 o.add(buildOperationError()); |
| 480 return o; | 480 return o; |
| 481 } | 481 } |
| 482 | 482 |
| 483 checkUnnamed1617(core.List<api.OperationError> o) { | 483 checkUnnamed2591(core.List<api.OperationError> o) { |
| 484 unittest.expect(o, unittest.hasLength(2)); | 484 unittest.expect(o, unittest.hasLength(2)); |
| 485 checkOperationError(o[0]); | 485 checkOperationError(o[0]); |
| 486 checkOperationError(o[1]); | 486 checkOperationError(o[1]); |
| 487 } | 487 } |
| 488 | 488 |
| 489 core.int buildCounterInstanceOperation = 0; | 489 core.int buildCounterInstanceOperation = 0; |
| 490 buildInstanceOperation() { | 490 buildInstanceOperation() { |
| 491 var o = new api.InstanceOperation(); | 491 var o = new api.InstanceOperation(); |
| 492 buildCounterInstanceOperation++; | 492 buildCounterInstanceOperation++; |
| 493 if (buildCounterInstanceOperation < 3) { | 493 if (buildCounterInstanceOperation < 3) { |
| 494 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); | 494 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 495 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 495 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 496 o.error = buildUnnamed1617(); | 496 o.error = buildUnnamed2591(); |
| 497 o.exportContext = buildExportContext(); | 497 o.exportContext = buildExportContext(); |
| 498 o.importContext = buildImportContext(); | 498 o.importContext = buildImportContext(); |
| 499 o.instance = "foo"; | 499 o.instance = "foo"; |
| 500 o.kind = "foo"; | 500 o.kind = "foo"; |
| 501 o.operation = "foo"; | 501 o.operation = "foo"; |
| 502 o.operationType = "foo"; | 502 o.operationType = "foo"; |
| 503 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); | 503 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 504 o.state = "foo"; | 504 o.state = "foo"; |
| 505 o.userEmailAddress = "foo"; | 505 o.userEmailAddress = "foo"; |
| 506 } | 506 } |
| 507 buildCounterInstanceOperation--; | 507 buildCounterInstanceOperation--; |
| 508 return o; | 508 return o; |
| 509 } | 509 } |
| 510 | 510 |
| 511 checkInstanceOperation(api.InstanceOperation o) { | 511 checkInstanceOperation(api.InstanceOperation o) { |
| 512 buildCounterInstanceOperation++; | 512 buildCounterInstanceOperation++; |
| 513 if (buildCounterInstanceOperation < 3) { | 513 if (buildCounterInstanceOperation < 3) { |
| 514 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 514 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 515 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 515 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 516 checkUnnamed1617(o.error); | 516 checkUnnamed2591(o.error); |
| 517 checkExportContext(o.exportContext); | 517 checkExportContext(o.exportContext); |
| 518 checkImportContext(o.importContext); | 518 checkImportContext(o.importContext); |
| 519 unittest.expect(o.instance, unittest.equals('foo')); | 519 unittest.expect(o.instance, unittest.equals('foo')); |
| 520 unittest.expect(o.kind, unittest.equals('foo')); | 520 unittest.expect(o.kind, unittest.equals('foo')); |
| 521 unittest.expect(o.operation, unittest.equals('foo')); | 521 unittest.expect(o.operation, unittest.equals('foo')); |
| 522 unittest.expect(o.operationType, unittest.equals('foo')); | 522 unittest.expect(o.operationType, unittest.equals('foo')); |
| 523 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 523 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 524 unittest.expect(o.state, unittest.equals('foo')); | 524 unittest.expect(o.state, unittest.equals('foo')); |
| 525 unittest.expect(o.userEmailAddress, unittest.equals('foo')); | 525 unittest.expect(o.userEmailAddress, unittest.equals('foo')); |
| 526 } | 526 } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 | 701 |
| 702 checkInstancesInsertResponse(api.InstancesInsertResponse o) { | 702 checkInstancesInsertResponse(api.InstancesInsertResponse o) { |
| 703 buildCounterInstancesInsertResponse++; | 703 buildCounterInstancesInsertResponse++; |
| 704 if (buildCounterInstancesInsertResponse < 3) { | 704 if (buildCounterInstancesInsertResponse < 3) { |
| 705 unittest.expect(o.kind, unittest.equals('foo')); | 705 unittest.expect(o.kind, unittest.equals('foo')); |
| 706 unittest.expect(o.operation, unittest.equals('foo')); | 706 unittest.expect(o.operation, unittest.equals('foo')); |
| 707 } | 707 } |
| 708 buildCounterInstancesInsertResponse--; | 708 buildCounterInstancesInsertResponse--; |
| 709 } | 709 } |
| 710 | 710 |
| 711 buildUnnamed1618() { | 711 buildUnnamed2592() { |
| 712 var o = new core.List<api.DatabaseInstance>(); | 712 var o = new core.List<api.DatabaseInstance>(); |
| 713 o.add(buildDatabaseInstance()); | 713 o.add(buildDatabaseInstance()); |
| 714 o.add(buildDatabaseInstance()); | 714 o.add(buildDatabaseInstance()); |
| 715 return o; | 715 return o; |
| 716 } | 716 } |
| 717 | 717 |
| 718 checkUnnamed1618(core.List<api.DatabaseInstance> o) { | 718 checkUnnamed2592(core.List<api.DatabaseInstance> o) { |
| 719 unittest.expect(o, unittest.hasLength(2)); | 719 unittest.expect(o, unittest.hasLength(2)); |
| 720 checkDatabaseInstance(o[0]); | 720 checkDatabaseInstance(o[0]); |
| 721 checkDatabaseInstance(o[1]); | 721 checkDatabaseInstance(o[1]); |
| 722 } | 722 } |
| 723 | 723 |
| 724 core.int buildCounterInstancesListResponse = 0; | 724 core.int buildCounterInstancesListResponse = 0; |
| 725 buildInstancesListResponse() { | 725 buildInstancesListResponse() { |
| 726 var o = new api.InstancesListResponse(); | 726 var o = new api.InstancesListResponse(); |
| 727 buildCounterInstancesListResponse++; | 727 buildCounterInstancesListResponse++; |
| 728 if (buildCounterInstancesListResponse < 3) { | 728 if (buildCounterInstancesListResponse < 3) { |
| 729 o.items = buildUnnamed1618(); | 729 o.items = buildUnnamed2592(); |
| 730 o.kind = "foo"; | 730 o.kind = "foo"; |
| 731 o.nextPageToken = "foo"; | 731 o.nextPageToken = "foo"; |
| 732 } | 732 } |
| 733 buildCounterInstancesListResponse--; | 733 buildCounterInstancesListResponse--; |
| 734 return o; | 734 return o; |
| 735 } | 735 } |
| 736 | 736 |
| 737 checkInstancesListResponse(api.InstancesListResponse o) { | 737 checkInstancesListResponse(api.InstancesListResponse o) { |
| 738 buildCounterInstancesListResponse++; | 738 buildCounterInstancesListResponse++; |
| 739 if (buildCounterInstancesListResponse < 3) { | 739 if (buildCounterInstancesListResponse < 3) { |
| 740 checkUnnamed1618(o.items); | 740 checkUnnamed2592(o.items); |
| 741 unittest.expect(o.kind, unittest.equals('foo')); | 741 unittest.expect(o.kind, unittest.equals('foo')); |
| 742 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 742 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 743 } | 743 } |
| 744 buildCounterInstancesListResponse--; | 744 buildCounterInstancesListResponse--; |
| 745 } | 745 } |
| 746 | 746 |
| 747 core.int buildCounterInstancesPromoteReplicaResponse = 0; | 747 core.int buildCounterInstancesPromoteReplicaResponse = 0; |
| 748 buildInstancesPromoteReplicaResponse() { | 748 buildInstancesPromoteReplicaResponse() { |
| 749 var o = new api.InstancesPromoteReplicaResponse(); | 749 var o = new api.InstancesPromoteReplicaResponse(); |
| 750 buildCounterInstancesPromoteReplicaResponse++; | 750 buildCounterInstancesPromoteReplicaResponse++; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 | 863 |
| 864 checkInstancesUpdateResponse(api.InstancesUpdateResponse o) { | 864 checkInstancesUpdateResponse(api.InstancesUpdateResponse o) { |
| 865 buildCounterInstancesUpdateResponse++; | 865 buildCounterInstancesUpdateResponse++; |
| 866 if (buildCounterInstancesUpdateResponse < 3) { | 866 if (buildCounterInstancesUpdateResponse < 3) { |
| 867 unittest.expect(o.kind, unittest.equals('foo')); | 867 unittest.expect(o.kind, unittest.equals('foo')); |
| 868 unittest.expect(o.operation, unittest.equals('foo')); | 868 unittest.expect(o.operation, unittest.equals('foo')); |
| 869 } | 869 } |
| 870 buildCounterInstancesUpdateResponse--; | 870 buildCounterInstancesUpdateResponse--; |
| 871 } | 871 } |
| 872 | 872 |
| 873 buildUnnamed1619() { | 873 buildUnnamed2593() { |
| 874 var o = new core.List<core.String>(); | 874 var o = new core.List<core.String>(); |
| 875 o.add("foo"); | 875 o.add("foo"); |
| 876 o.add("foo"); | 876 o.add("foo"); |
| 877 return o; | 877 return o; |
| 878 } | 878 } |
| 879 | 879 |
| 880 checkUnnamed1619(core.List<core.String> o) { | 880 checkUnnamed2593(core.List<core.String> o) { |
| 881 unittest.expect(o, unittest.hasLength(2)); | 881 unittest.expect(o, unittest.hasLength(2)); |
| 882 unittest.expect(o[0], unittest.equals('foo')); | 882 unittest.expect(o[0], unittest.equals('foo')); |
| 883 unittest.expect(o[1], unittest.equals('foo')); | 883 unittest.expect(o[1], unittest.equals('foo')); |
| 884 } | 884 } |
| 885 | 885 |
| 886 core.int buildCounterIpConfiguration = 0; | 886 core.int buildCounterIpConfiguration = 0; |
| 887 buildIpConfiguration() { | 887 buildIpConfiguration() { |
| 888 var o = new api.IpConfiguration(); | 888 var o = new api.IpConfiguration(); |
| 889 buildCounterIpConfiguration++; | 889 buildCounterIpConfiguration++; |
| 890 if (buildCounterIpConfiguration < 3) { | 890 if (buildCounterIpConfiguration < 3) { |
| 891 o.authorizedNetworks = buildUnnamed1619(); | 891 o.authorizedNetworks = buildUnnamed2593(); |
| 892 o.enabled = true; | 892 o.enabled = true; |
| 893 o.kind = "foo"; | 893 o.kind = "foo"; |
| 894 o.requireSsl = true; | 894 o.requireSsl = true; |
| 895 } | 895 } |
| 896 buildCounterIpConfiguration--; | 896 buildCounterIpConfiguration--; |
| 897 return o; | 897 return o; |
| 898 } | 898 } |
| 899 | 899 |
| 900 checkIpConfiguration(api.IpConfiguration o) { | 900 checkIpConfiguration(api.IpConfiguration o) { |
| 901 buildCounterIpConfiguration++; | 901 buildCounterIpConfiguration++; |
| 902 if (buildCounterIpConfiguration < 3) { | 902 if (buildCounterIpConfiguration < 3) { |
| 903 checkUnnamed1619(o.authorizedNetworks); | 903 checkUnnamed2593(o.authorizedNetworks); |
| 904 unittest.expect(o.enabled, unittest.isTrue); | 904 unittest.expect(o.enabled, unittest.isTrue); |
| 905 unittest.expect(o.kind, unittest.equals('foo')); | 905 unittest.expect(o.kind, unittest.equals('foo')); |
| 906 unittest.expect(o.requireSsl, unittest.isTrue); | 906 unittest.expect(o.requireSsl, unittest.isTrue); |
| 907 } | 907 } |
| 908 buildCounterIpConfiguration--; | 908 buildCounterIpConfiguration--; |
| 909 } | 909 } |
| 910 | 910 |
| 911 core.int buildCounterIpMapping = 0; | 911 core.int buildCounterIpMapping = 0; |
| 912 buildIpMapping() { | 912 buildIpMapping() { |
| 913 var o = new api.IpMapping(); | 913 var o = new api.IpMapping(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 966 | 966 |
| 967 checkOperationError(api.OperationError o) { | 967 checkOperationError(api.OperationError o) { |
| 968 buildCounterOperationError++; | 968 buildCounterOperationError++; |
| 969 if (buildCounterOperationError < 3) { | 969 if (buildCounterOperationError < 3) { |
| 970 unittest.expect(o.code, unittest.equals('foo')); | 970 unittest.expect(o.code, unittest.equals('foo')); |
| 971 unittest.expect(o.kind, unittest.equals('foo')); | 971 unittest.expect(o.kind, unittest.equals('foo')); |
| 972 } | 972 } |
| 973 buildCounterOperationError--; | 973 buildCounterOperationError--; |
| 974 } | 974 } |
| 975 | 975 |
| 976 buildUnnamed1620() { | 976 buildUnnamed2594() { |
| 977 var o = new core.List<api.InstanceOperation>(); | 977 var o = new core.List<api.InstanceOperation>(); |
| 978 o.add(buildInstanceOperation()); | 978 o.add(buildInstanceOperation()); |
| 979 o.add(buildInstanceOperation()); | 979 o.add(buildInstanceOperation()); |
| 980 return o; | 980 return o; |
| 981 } | 981 } |
| 982 | 982 |
| 983 checkUnnamed1620(core.List<api.InstanceOperation> o) { | 983 checkUnnamed2594(core.List<api.InstanceOperation> o) { |
| 984 unittest.expect(o, unittest.hasLength(2)); | 984 unittest.expect(o, unittest.hasLength(2)); |
| 985 checkInstanceOperation(o[0]); | 985 checkInstanceOperation(o[0]); |
| 986 checkInstanceOperation(o[1]); | 986 checkInstanceOperation(o[1]); |
| 987 } | 987 } |
| 988 | 988 |
| 989 core.int buildCounterOperationsListResponse = 0; | 989 core.int buildCounterOperationsListResponse = 0; |
| 990 buildOperationsListResponse() { | 990 buildOperationsListResponse() { |
| 991 var o = new api.OperationsListResponse(); | 991 var o = new api.OperationsListResponse(); |
| 992 buildCounterOperationsListResponse++; | 992 buildCounterOperationsListResponse++; |
| 993 if (buildCounterOperationsListResponse < 3) { | 993 if (buildCounterOperationsListResponse < 3) { |
| 994 o.items = buildUnnamed1620(); | 994 o.items = buildUnnamed2594(); |
| 995 o.kind = "foo"; | 995 o.kind = "foo"; |
| 996 o.nextPageToken = "foo"; | 996 o.nextPageToken = "foo"; |
| 997 } | 997 } |
| 998 buildCounterOperationsListResponse--; | 998 buildCounterOperationsListResponse--; |
| 999 return o; | 999 return o; |
| 1000 } | 1000 } |
| 1001 | 1001 |
| 1002 checkOperationsListResponse(api.OperationsListResponse o) { | 1002 checkOperationsListResponse(api.OperationsListResponse o) { |
| 1003 buildCounterOperationsListResponse++; | 1003 buildCounterOperationsListResponse++; |
| 1004 if (buildCounterOperationsListResponse < 3) { | 1004 if (buildCounterOperationsListResponse < 3) { |
| 1005 checkUnnamed1620(o.items); | 1005 checkUnnamed2594(o.items); |
| 1006 unittest.expect(o.kind, unittest.equals('foo')); | 1006 unittest.expect(o.kind, unittest.equals('foo')); |
| 1007 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1007 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1008 } | 1008 } |
| 1009 buildCounterOperationsListResponse--; | 1009 buildCounterOperationsListResponse--; |
| 1010 } | 1010 } |
| 1011 | 1011 |
| 1012 core.int buildCounterSetRootPasswordContext = 0; | 1012 core.int buildCounterSetRootPasswordContext = 0; |
| 1013 buildSetRootPasswordContext() { | 1013 buildSetRootPasswordContext() { |
| 1014 var o = new api.SetRootPasswordContext(); | 1014 var o = new api.SetRootPasswordContext(); |
| 1015 buildCounterSetRootPasswordContext++; | 1015 buildCounterSetRootPasswordContext++; |
| 1016 if (buildCounterSetRootPasswordContext < 3) { | 1016 if (buildCounterSetRootPasswordContext < 3) { |
| 1017 o.kind = "foo"; | 1017 o.kind = "foo"; |
| 1018 o.password = "foo"; | 1018 o.password = "foo"; |
| 1019 } | 1019 } |
| 1020 buildCounterSetRootPasswordContext--; | 1020 buildCounterSetRootPasswordContext--; |
| 1021 return o; | 1021 return o; |
| 1022 } | 1022 } |
| 1023 | 1023 |
| 1024 checkSetRootPasswordContext(api.SetRootPasswordContext o) { | 1024 checkSetRootPasswordContext(api.SetRootPasswordContext o) { |
| 1025 buildCounterSetRootPasswordContext++; | 1025 buildCounterSetRootPasswordContext++; |
| 1026 if (buildCounterSetRootPasswordContext < 3) { | 1026 if (buildCounterSetRootPasswordContext < 3) { |
| 1027 unittest.expect(o.kind, unittest.equals('foo')); | 1027 unittest.expect(o.kind, unittest.equals('foo')); |
| 1028 unittest.expect(o.password, unittest.equals('foo')); | 1028 unittest.expect(o.password, unittest.equals('foo')); |
| 1029 } | 1029 } |
| 1030 buildCounterSetRootPasswordContext--; | 1030 buildCounterSetRootPasswordContext--; |
| 1031 } | 1031 } |
| 1032 | 1032 |
| 1033 buildUnnamed1621() { | 1033 buildUnnamed2595() { |
| 1034 var o = new core.List<core.String>(); | 1034 var o = new core.List<core.String>(); |
| 1035 o.add("foo"); | 1035 o.add("foo"); |
| 1036 o.add("foo"); | 1036 o.add("foo"); |
| 1037 return o; | 1037 return o; |
| 1038 } | 1038 } |
| 1039 | 1039 |
| 1040 checkUnnamed1621(core.List<core.String> o) { | 1040 checkUnnamed2595(core.List<core.String> o) { |
| 1041 unittest.expect(o, unittest.hasLength(2)); | 1041 unittest.expect(o, unittest.hasLength(2)); |
| 1042 unittest.expect(o[0], unittest.equals('foo')); | 1042 unittest.expect(o[0], unittest.equals('foo')); |
| 1043 unittest.expect(o[1], unittest.equals('foo')); | 1043 unittest.expect(o[1], unittest.equals('foo')); |
| 1044 } | 1044 } |
| 1045 | 1045 |
| 1046 buildUnnamed1622() { | 1046 buildUnnamed2596() { |
| 1047 var o = new core.List<api.BackupConfiguration>(); | 1047 var o = new core.List<api.BackupConfiguration>(); |
| 1048 o.add(buildBackupConfiguration()); | 1048 o.add(buildBackupConfiguration()); |
| 1049 o.add(buildBackupConfiguration()); | 1049 o.add(buildBackupConfiguration()); |
| 1050 return o; | 1050 return o; |
| 1051 } | 1051 } |
| 1052 | 1052 |
| 1053 checkUnnamed1622(core.List<api.BackupConfiguration> o) { | 1053 checkUnnamed2596(core.List<api.BackupConfiguration> o) { |
| 1054 unittest.expect(o, unittest.hasLength(2)); | 1054 unittest.expect(o, unittest.hasLength(2)); |
| 1055 checkBackupConfiguration(o[0]); | 1055 checkBackupConfiguration(o[0]); |
| 1056 checkBackupConfiguration(o[1]); | 1056 checkBackupConfiguration(o[1]); |
| 1057 } | 1057 } |
| 1058 | 1058 |
| 1059 buildUnnamed1623() { | 1059 buildUnnamed2597() { |
| 1060 var o = new core.List<api.DatabaseFlags>(); | 1060 var o = new core.List<api.DatabaseFlags>(); |
| 1061 o.add(buildDatabaseFlags()); | 1061 o.add(buildDatabaseFlags()); |
| 1062 o.add(buildDatabaseFlags()); | 1062 o.add(buildDatabaseFlags()); |
| 1063 return o; | 1063 return o; |
| 1064 } | 1064 } |
| 1065 | 1065 |
| 1066 checkUnnamed1623(core.List<api.DatabaseFlags> o) { | 1066 checkUnnamed2597(core.List<api.DatabaseFlags> o) { |
| 1067 unittest.expect(o, unittest.hasLength(2)); | 1067 unittest.expect(o, unittest.hasLength(2)); |
| 1068 checkDatabaseFlags(o[0]); | 1068 checkDatabaseFlags(o[0]); |
| 1069 checkDatabaseFlags(o[1]); | 1069 checkDatabaseFlags(o[1]); |
| 1070 } | 1070 } |
| 1071 | 1071 |
| 1072 core.int buildCounterSettings = 0; | 1072 core.int buildCounterSettings = 0; |
| 1073 buildSettings() { | 1073 buildSettings() { |
| 1074 var o = new api.Settings(); | 1074 var o = new api.Settings(); |
| 1075 buildCounterSettings++; | 1075 buildCounterSettings++; |
| 1076 if (buildCounterSettings < 3) { | 1076 if (buildCounterSettings < 3) { |
| 1077 o.activationPolicy = "foo"; | 1077 o.activationPolicy = "foo"; |
| 1078 o.authorizedGaeApplications = buildUnnamed1621(); | 1078 o.authorizedGaeApplications = buildUnnamed2595(); |
| 1079 o.backupConfiguration = buildUnnamed1622(); | 1079 o.backupConfiguration = buildUnnamed2596(); |
| 1080 o.databaseFlags = buildUnnamed1623(); | 1080 o.databaseFlags = buildUnnamed2597(); |
| 1081 o.databaseReplicationEnabled = true; | 1081 o.databaseReplicationEnabled = true; |
| 1082 o.ipConfiguration = buildIpConfiguration(); | 1082 o.ipConfiguration = buildIpConfiguration(); |
| 1083 o.kind = "foo"; | 1083 o.kind = "foo"; |
| 1084 o.locationPreference = buildLocationPreference(); | 1084 o.locationPreference = buildLocationPreference(); |
| 1085 o.pricingPlan = "foo"; | 1085 o.pricingPlan = "foo"; |
| 1086 o.replicationType = "foo"; | 1086 o.replicationType = "foo"; |
| 1087 o.settingsVersion = "foo"; | 1087 o.settingsVersion = "foo"; |
| 1088 o.tier = "foo"; | 1088 o.tier = "foo"; |
| 1089 } | 1089 } |
| 1090 buildCounterSettings--; | 1090 buildCounterSettings--; |
| 1091 return o; | 1091 return o; |
| 1092 } | 1092 } |
| 1093 | 1093 |
| 1094 checkSettings(api.Settings o) { | 1094 checkSettings(api.Settings o) { |
| 1095 buildCounterSettings++; | 1095 buildCounterSettings++; |
| 1096 if (buildCounterSettings < 3) { | 1096 if (buildCounterSettings < 3) { |
| 1097 unittest.expect(o.activationPolicy, unittest.equals('foo')); | 1097 unittest.expect(o.activationPolicy, unittest.equals('foo')); |
| 1098 checkUnnamed1621(o.authorizedGaeApplications); | 1098 checkUnnamed2595(o.authorizedGaeApplications); |
| 1099 checkUnnamed1622(o.backupConfiguration); | 1099 checkUnnamed2596(o.backupConfiguration); |
| 1100 checkUnnamed1623(o.databaseFlags); | 1100 checkUnnamed2597(o.databaseFlags); |
| 1101 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); | 1101 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); |
| 1102 checkIpConfiguration(o.ipConfiguration); | 1102 checkIpConfiguration(o.ipConfiguration); |
| 1103 unittest.expect(o.kind, unittest.equals('foo')); | 1103 unittest.expect(o.kind, unittest.equals('foo')); |
| 1104 checkLocationPreference(o.locationPreference); | 1104 checkLocationPreference(o.locationPreference); |
| 1105 unittest.expect(o.pricingPlan, unittest.equals('foo')); | 1105 unittest.expect(o.pricingPlan, unittest.equals('foo')); |
| 1106 unittest.expect(o.replicationType, unittest.equals('foo')); | 1106 unittest.expect(o.replicationType, unittest.equals('foo')); |
| 1107 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 1107 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
| 1108 unittest.expect(o.tier, unittest.equals('foo')); | 1108 unittest.expect(o.tier, unittest.equals('foo')); |
| 1109 } | 1109 } |
| 1110 buildCounterSettings--; | 1110 buildCounterSettings--; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1220 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { | 1220 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { |
| 1221 buildCounterSslCertsInsertResponse++; | 1221 buildCounterSslCertsInsertResponse++; |
| 1222 if (buildCounterSslCertsInsertResponse < 3) { | 1222 if (buildCounterSslCertsInsertResponse < 3) { |
| 1223 checkSslCertDetail(o.clientCert); | 1223 checkSslCertDetail(o.clientCert); |
| 1224 unittest.expect(o.kind, unittest.equals('foo')); | 1224 unittest.expect(o.kind, unittest.equals('foo')); |
| 1225 checkSslCert(o.serverCaCert); | 1225 checkSslCert(o.serverCaCert); |
| 1226 } | 1226 } |
| 1227 buildCounterSslCertsInsertResponse--; | 1227 buildCounterSslCertsInsertResponse--; |
| 1228 } | 1228 } |
| 1229 | 1229 |
| 1230 buildUnnamed1624() { | 1230 buildUnnamed2598() { |
| 1231 var o = new core.List<api.SslCert>(); | 1231 var o = new core.List<api.SslCert>(); |
| 1232 o.add(buildSslCert()); | 1232 o.add(buildSslCert()); |
| 1233 o.add(buildSslCert()); | 1233 o.add(buildSslCert()); |
| 1234 return o; | 1234 return o; |
| 1235 } | 1235 } |
| 1236 | 1236 |
| 1237 checkUnnamed1624(core.List<api.SslCert> o) { | 1237 checkUnnamed2598(core.List<api.SslCert> o) { |
| 1238 unittest.expect(o, unittest.hasLength(2)); | 1238 unittest.expect(o, unittest.hasLength(2)); |
| 1239 checkSslCert(o[0]); | 1239 checkSslCert(o[0]); |
| 1240 checkSslCert(o[1]); | 1240 checkSslCert(o[1]); |
| 1241 } | 1241 } |
| 1242 | 1242 |
| 1243 core.int buildCounterSslCertsListResponse = 0; | 1243 core.int buildCounterSslCertsListResponse = 0; |
| 1244 buildSslCertsListResponse() { | 1244 buildSslCertsListResponse() { |
| 1245 var o = new api.SslCertsListResponse(); | 1245 var o = new api.SslCertsListResponse(); |
| 1246 buildCounterSslCertsListResponse++; | 1246 buildCounterSslCertsListResponse++; |
| 1247 if (buildCounterSslCertsListResponse < 3) { | 1247 if (buildCounterSslCertsListResponse < 3) { |
| 1248 o.items = buildUnnamed1624(); | 1248 o.items = buildUnnamed2598(); |
| 1249 o.kind = "foo"; | 1249 o.kind = "foo"; |
| 1250 } | 1250 } |
| 1251 buildCounterSslCertsListResponse--; | 1251 buildCounterSslCertsListResponse--; |
| 1252 return o; | 1252 return o; |
| 1253 } | 1253 } |
| 1254 | 1254 |
| 1255 checkSslCertsListResponse(api.SslCertsListResponse o) { | 1255 checkSslCertsListResponse(api.SslCertsListResponse o) { |
| 1256 buildCounterSslCertsListResponse++; | 1256 buildCounterSslCertsListResponse++; |
| 1257 if (buildCounterSslCertsListResponse < 3) { | 1257 if (buildCounterSslCertsListResponse < 3) { |
| 1258 checkUnnamed1624(o.items); | 1258 checkUnnamed2598(o.items); |
| 1259 unittest.expect(o.kind, unittest.equals('foo')); | 1259 unittest.expect(o.kind, unittest.equals('foo')); |
| 1260 } | 1260 } |
| 1261 buildCounterSslCertsListResponse--; | 1261 buildCounterSslCertsListResponse--; |
| 1262 } | 1262 } |
| 1263 | 1263 |
| 1264 buildUnnamed1625() { | 1264 buildUnnamed2599() { |
| 1265 var o = new core.List<core.String>(); | 1265 var o = new core.List<core.String>(); |
| 1266 o.add("foo"); | 1266 o.add("foo"); |
| 1267 o.add("foo"); | 1267 o.add("foo"); |
| 1268 return o; | 1268 return o; |
| 1269 } | 1269 } |
| 1270 | 1270 |
| 1271 checkUnnamed1625(core.List<core.String> o) { | 1271 checkUnnamed2599(core.List<core.String> o) { |
| 1272 unittest.expect(o, unittest.hasLength(2)); | 1272 unittest.expect(o, unittest.hasLength(2)); |
| 1273 unittest.expect(o[0], unittest.equals('foo')); | 1273 unittest.expect(o[0], unittest.equals('foo')); |
| 1274 unittest.expect(o[1], unittest.equals('foo')); | 1274 unittest.expect(o[1], unittest.equals('foo')); |
| 1275 } | 1275 } |
| 1276 | 1276 |
| 1277 core.int buildCounterTier = 0; | 1277 core.int buildCounterTier = 0; |
| 1278 buildTier() { | 1278 buildTier() { |
| 1279 var o = new api.Tier(); | 1279 var o = new api.Tier(); |
| 1280 buildCounterTier++; | 1280 buildCounterTier++; |
| 1281 if (buildCounterTier < 3) { | 1281 if (buildCounterTier < 3) { |
| 1282 o.DiskQuota = "foo"; | 1282 o.DiskQuota = "foo"; |
| 1283 o.RAM = "foo"; | 1283 o.RAM = "foo"; |
| 1284 o.kind = "foo"; | 1284 o.kind = "foo"; |
| 1285 o.region = buildUnnamed1625(); | 1285 o.region = buildUnnamed2599(); |
| 1286 o.tier = "foo"; | 1286 o.tier = "foo"; |
| 1287 } | 1287 } |
| 1288 buildCounterTier--; | 1288 buildCounterTier--; |
| 1289 return o; | 1289 return o; |
| 1290 } | 1290 } |
| 1291 | 1291 |
| 1292 checkTier(api.Tier o) { | 1292 checkTier(api.Tier o) { |
| 1293 buildCounterTier++; | 1293 buildCounterTier++; |
| 1294 if (buildCounterTier < 3) { | 1294 if (buildCounterTier < 3) { |
| 1295 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1295 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
| 1296 unittest.expect(o.RAM, unittest.equals('foo')); | 1296 unittest.expect(o.RAM, unittest.equals('foo')); |
| 1297 unittest.expect(o.kind, unittest.equals('foo')); | 1297 unittest.expect(o.kind, unittest.equals('foo')); |
| 1298 checkUnnamed1625(o.region); | 1298 checkUnnamed2599(o.region); |
| 1299 unittest.expect(o.tier, unittest.equals('foo')); | 1299 unittest.expect(o.tier, unittest.equals('foo')); |
| 1300 } | 1300 } |
| 1301 buildCounterTier--; | 1301 buildCounterTier--; |
| 1302 } | 1302 } |
| 1303 | 1303 |
| 1304 buildUnnamed1626() { | 1304 buildUnnamed2600() { |
| 1305 var o = new core.List<api.Tier>(); | 1305 var o = new core.List<api.Tier>(); |
| 1306 o.add(buildTier()); | 1306 o.add(buildTier()); |
| 1307 o.add(buildTier()); | 1307 o.add(buildTier()); |
| 1308 return o; | 1308 return o; |
| 1309 } | 1309 } |
| 1310 | 1310 |
| 1311 checkUnnamed1626(core.List<api.Tier> o) { | 1311 checkUnnamed2600(core.List<api.Tier> o) { |
| 1312 unittest.expect(o, unittest.hasLength(2)); | 1312 unittest.expect(o, unittest.hasLength(2)); |
| 1313 checkTier(o[0]); | 1313 checkTier(o[0]); |
| 1314 checkTier(o[1]); | 1314 checkTier(o[1]); |
| 1315 } | 1315 } |
| 1316 | 1316 |
| 1317 core.int buildCounterTiersListResponse = 0; | 1317 core.int buildCounterTiersListResponse = 0; |
| 1318 buildTiersListResponse() { | 1318 buildTiersListResponse() { |
| 1319 var o = new api.TiersListResponse(); | 1319 var o = new api.TiersListResponse(); |
| 1320 buildCounterTiersListResponse++; | 1320 buildCounterTiersListResponse++; |
| 1321 if (buildCounterTiersListResponse < 3) { | 1321 if (buildCounterTiersListResponse < 3) { |
| 1322 o.items = buildUnnamed1626(); | 1322 o.items = buildUnnamed2600(); |
| 1323 o.kind = "foo"; | 1323 o.kind = "foo"; |
| 1324 } | 1324 } |
| 1325 buildCounterTiersListResponse--; | 1325 buildCounterTiersListResponse--; |
| 1326 return o; | 1326 return o; |
| 1327 } | 1327 } |
| 1328 | 1328 |
| 1329 checkTiersListResponse(api.TiersListResponse o) { | 1329 checkTiersListResponse(api.TiersListResponse o) { |
| 1330 buildCounterTiersListResponse++; | 1330 buildCounterTiersListResponse++; |
| 1331 if (buildCounterTiersListResponse < 3) { | 1331 if (buildCounterTiersListResponse < 3) { |
| 1332 checkUnnamed1626(o.items); | 1332 checkUnnamed2600(o.items); |
| 1333 unittest.expect(o.kind, unittest.equals('foo')); | 1333 unittest.expect(o.kind, unittest.equals('foo')); |
| 1334 } | 1334 } |
| 1335 buildCounterTiersListResponse--; | 1335 buildCounterTiersListResponse--; |
| 1336 } | 1336 } |
| 1337 | 1337 |
| 1338 | 1338 |
| 1339 main() { | 1339 main() { |
| 1340 unittest.group("obj-schema-BackupConfiguration", () { | 1340 unittest.group("obj-schema-BackupConfiguration", () { |
| 1341 unittest.test("to-json--from-json", () { | 1341 unittest.test("to-json--from-json", () { |
| 1342 var o = buildBackupConfiguration(); | 1342 var o = buildBackupConfiguration(); |
| (...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3211 res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse re
sponse) { | 3211 res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse re
sponse) { |
| 3212 checkTiersListResponse(response); | 3212 checkTiersListResponse(response); |
| 3213 }))); | 3213 }))); |
| 3214 }); | 3214 }); |
| 3215 | 3215 |
| 3216 }); | 3216 }); |
| 3217 | 3217 |
| 3218 | 3218 |
| 3219 } | 3219 } |
| 3220 | 3220 |
| OLD | NEW |