| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 71 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 72 checkOperationError(o.error); | 72 checkOperationError(o.error); |
| 73 unittest.expect(o.instance, unittest.equals('foo')); | 73 unittest.expect(o.instance, unittest.equals('foo')); |
| 74 unittest.expect(o.kind, unittest.equals('foo')); | 74 unittest.expect(o.kind, unittest.equals('foo')); |
| 75 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 75 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 76 unittest.expect(o.status, unittest.equals('foo')); | 76 unittest.expect(o.status, unittest.equals('foo')); |
| 77 } | 77 } |
| 78 buildCounterBackupRun--; | 78 buildCounterBackupRun--; |
| 79 } | 79 } |
| 80 | 80 |
| 81 buildUnnamed1237() { | 81 buildUnnamed1429() { |
| 82 var o = new core.List<api.BackupRun>(); | 82 var o = new core.List<api.BackupRun>(); |
| 83 o.add(buildBackupRun()); | 83 o.add(buildBackupRun()); |
| 84 o.add(buildBackupRun()); | 84 o.add(buildBackupRun()); |
| 85 return o; | 85 return o; |
| 86 } | 86 } |
| 87 | 87 |
| 88 checkUnnamed1237(core.List<api.BackupRun> o) { | 88 checkUnnamed1429(core.List<api.BackupRun> o) { |
| 89 unittest.expect(o, unittest.hasLength(2)); | 89 unittest.expect(o, unittest.hasLength(2)); |
| 90 checkBackupRun(o[0]); | 90 checkBackupRun(o[0]); |
| 91 checkBackupRun(o[1]); | 91 checkBackupRun(o[1]); |
| 92 } | 92 } |
| 93 | 93 |
| 94 core.int buildCounterBackupRunsListResponse = 0; | 94 core.int buildCounterBackupRunsListResponse = 0; |
| 95 buildBackupRunsListResponse() { | 95 buildBackupRunsListResponse() { |
| 96 var o = new api.BackupRunsListResponse(); | 96 var o = new api.BackupRunsListResponse(); |
| 97 buildCounterBackupRunsListResponse++; | 97 buildCounterBackupRunsListResponse++; |
| 98 if (buildCounterBackupRunsListResponse < 3) { | 98 if (buildCounterBackupRunsListResponse < 3) { |
| 99 o.items = buildUnnamed1237(); | 99 o.items = buildUnnamed1429(); |
| 100 o.kind = "foo"; | 100 o.kind = "foo"; |
| 101 o.nextPageToken = "foo"; | 101 o.nextPageToken = "foo"; |
| 102 } | 102 } |
| 103 buildCounterBackupRunsListResponse--; | 103 buildCounterBackupRunsListResponse--; |
| 104 return o; | 104 return o; |
| 105 } | 105 } |
| 106 | 106 |
| 107 checkBackupRunsListResponse(api.BackupRunsListResponse o) { | 107 checkBackupRunsListResponse(api.BackupRunsListResponse o) { |
| 108 buildCounterBackupRunsListResponse++; | 108 buildCounterBackupRunsListResponse++; |
| 109 if (buildCounterBackupRunsListResponse < 3) { | 109 if (buildCounterBackupRunsListResponse < 3) { |
| 110 checkUnnamed1237(o.items); | 110 checkUnnamed1429(o.items); |
| 111 unittest.expect(o.kind, unittest.equals('foo')); | 111 unittest.expect(o.kind, unittest.equals('foo')); |
| 112 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 112 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 113 } | 113 } |
| 114 buildCounterBackupRunsListResponse--; | 114 buildCounterBackupRunsListResponse--; |
| 115 } | 115 } |
| 116 | 116 |
| 117 core.int buildCounterBinLogCoordinates = 0; | 117 core.int buildCounterBinLogCoordinates = 0; |
| 118 buildBinLogCoordinates() { | 118 buildBinLogCoordinates() { |
| 119 var o = new api.BinLogCoordinates(); | 119 var o = new api.BinLogCoordinates(); |
| 120 buildCounterBinLogCoordinates++; | 120 buildCounterBinLogCoordinates++; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 checkDatabaseFlags(api.DatabaseFlags o) { | 177 checkDatabaseFlags(api.DatabaseFlags o) { |
| 178 buildCounterDatabaseFlags++; | 178 buildCounterDatabaseFlags++; |
| 179 if (buildCounterDatabaseFlags < 3) { | 179 if (buildCounterDatabaseFlags < 3) { |
| 180 unittest.expect(o.name, unittest.equals('foo')); | 180 unittest.expect(o.name, unittest.equals('foo')); |
| 181 unittest.expect(o.value, unittest.equals('foo')); | 181 unittest.expect(o.value, unittest.equals('foo')); |
| 182 } | 182 } |
| 183 buildCounterDatabaseFlags--; | 183 buildCounterDatabaseFlags--; |
| 184 } | 184 } |
| 185 | 185 |
| 186 buildUnnamed1238() { | 186 buildUnnamed1430() { |
| 187 var o = new core.List<api.IpMapping>(); | 187 var o = new core.List<api.IpMapping>(); |
| 188 o.add(buildIpMapping()); | 188 o.add(buildIpMapping()); |
| 189 o.add(buildIpMapping()); | 189 o.add(buildIpMapping()); |
| 190 return o; | 190 return o; |
| 191 } | 191 } |
| 192 | 192 |
| 193 checkUnnamed1238(core.List<api.IpMapping> o) { | 193 checkUnnamed1430(core.List<api.IpMapping> o) { |
| 194 unittest.expect(o, unittest.hasLength(2)); | 194 unittest.expect(o, unittest.hasLength(2)); |
| 195 checkIpMapping(o[0]); | 195 checkIpMapping(o[0]); |
| 196 checkIpMapping(o[1]); | 196 checkIpMapping(o[1]); |
| 197 } | 197 } |
| 198 | 198 |
| 199 buildUnnamed1239() { | 199 buildUnnamed1431() { |
| 200 var o = new core.List<core.String>(); | 200 var o = new core.List<core.String>(); |
| 201 o.add("foo"); | 201 o.add("foo"); |
| 202 o.add("foo"); | 202 o.add("foo"); |
| 203 return o; | 203 return o; |
| 204 } | 204 } |
| 205 | 205 |
| 206 checkUnnamed1239(core.List<core.String> o) { | 206 checkUnnamed1431(core.List<core.String> o) { |
| 207 unittest.expect(o, unittest.hasLength(2)); | 207 unittest.expect(o, unittest.hasLength(2)); |
| 208 unittest.expect(o[0], unittest.equals('foo')); | 208 unittest.expect(o[0], unittest.equals('foo')); |
| 209 unittest.expect(o[1], unittest.equals('foo')); | 209 unittest.expect(o[1], unittest.equals('foo')); |
| 210 } | 210 } |
| 211 | 211 |
| 212 core.int buildCounterDatabaseInstance = 0; | 212 core.int buildCounterDatabaseInstance = 0; |
| 213 buildDatabaseInstance() { | 213 buildDatabaseInstance() { |
| 214 var o = new api.DatabaseInstance(); | 214 var o = new api.DatabaseInstance(); |
| 215 buildCounterDatabaseInstance++; | 215 buildCounterDatabaseInstance++; |
| 216 if (buildCounterDatabaseInstance < 3) { | 216 if (buildCounterDatabaseInstance < 3) { |
| 217 o.currentDiskSize = "foo"; | 217 o.currentDiskSize = "foo"; |
| 218 o.databaseVersion = "foo"; | 218 o.databaseVersion = "foo"; |
| 219 o.etag = "foo"; | 219 o.etag = "foo"; |
| 220 o.instance = "foo"; | 220 o.instance = "foo"; |
| 221 o.instanceType = "foo"; | 221 o.instanceType = "foo"; |
| 222 o.ipAddresses = buildUnnamed1238(); | 222 o.ipAddresses = buildUnnamed1430(); |
| 223 o.ipv6Address = "foo"; | 223 o.ipv6Address = "foo"; |
| 224 o.kind = "foo"; | 224 o.kind = "foo"; |
| 225 o.masterInstanceName = "foo"; | 225 o.masterInstanceName = "foo"; |
| 226 o.maxDiskSize = "foo"; | 226 o.maxDiskSize = "foo"; |
| 227 o.project = "foo"; | 227 o.project = "foo"; |
| 228 o.region = "foo"; | 228 o.region = "foo"; |
| 229 o.replicaNames = buildUnnamed1239(); | 229 o.replicaNames = buildUnnamed1431(); |
| 230 o.serverCaCert = buildSslCert(); | 230 o.serverCaCert = buildSslCert(); |
| 231 o.settings = buildSettings(); | 231 o.settings = buildSettings(); |
| 232 o.state = "foo"; | 232 o.state = "foo"; |
| 233 } | 233 } |
| 234 buildCounterDatabaseInstance--; | 234 buildCounterDatabaseInstance--; |
| 235 return o; | 235 return o; |
| 236 } | 236 } |
| 237 | 237 |
| 238 checkDatabaseInstance(api.DatabaseInstance o) { | 238 checkDatabaseInstance(api.DatabaseInstance o) { |
| 239 buildCounterDatabaseInstance++; | 239 buildCounterDatabaseInstance++; |
| 240 if (buildCounterDatabaseInstance < 3) { | 240 if (buildCounterDatabaseInstance < 3) { |
| 241 unittest.expect(o.currentDiskSize, unittest.equals('foo')); | 241 unittest.expect(o.currentDiskSize, unittest.equals('foo')); |
| 242 unittest.expect(o.databaseVersion, unittest.equals('foo')); | 242 unittest.expect(o.databaseVersion, unittest.equals('foo')); |
| 243 unittest.expect(o.etag, unittest.equals('foo')); | 243 unittest.expect(o.etag, unittest.equals('foo')); |
| 244 unittest.expect(o.instance, unittest.equals('foo')); | 244 unittest.expect(o.instance, unittest.equals('foo')); |
| 245 unittest.expect(o.instanceType, unittest.equals('foo')); | 245 unittest.expect(o.instanceType, unittest.equals('foo')); |
| 246 checkUnnamed1238(o.ipAddresses); | 246 checkUnnamed1430(o.ipAddresses); |
| 247 unittest.expect(o.ipv6Address, unittest.equals('foo')); | 247 unittest.expect(o.ipv6Address, unittest.equals('foo')); |
| 248 unittest.expect(o.kind, unittest.equals('foo')); | 248 unittest.expect(o.kind, unittest.equals('foo')); |
| 249 unittest.expect(o.masterInstanceName, unittest.equals('foo')); | 249 unittest.expect(o.masterInstanceName, unittest.equals('foo')); |
| 250 unittest.expect(o.maxDiskSize, unittest.equals('foo')); | 250 unittest.expect(o.maxDiskSize, unittest.equals('foo')); |
| 251 unittest.expect(o.project, unittest.equals('foo')); | 251 unittest.expect(o.project, unittest.equals('foo')); |
| 252 unittest.expect(o.region, unittest.equals('foo')); | 252 unittest.expect(o.region, unittest.equals('foo')); |
| 253 checkUnnamed1239(o.replicaNames); | 253 checkUnnamed1431(o.replicaNames); |
| 254 checkSslCert(o.serverCaCert); | 254 checkSslCert(o.serverCaCert); |
| 255 checkSettings(o.settings); | 255 checkSettings(o.settings); |
| 256 unittest.expect(o.state, unittest.equals('foo')); | 256 unittest.expect(o.state, unittest.equals('foo')); |
| 257 } | 257 } |
| 258 buildCounterDatabaseInstance--; | 258 buildCounterDatabaseInstance--; |
| 259 } | 259 } |
| 260 | 260 |
| 261 buildUnnamed1240() { | 261 buildUnnamed1432() { |
| 262 var o = new core.List<core.String>(); | 262 var o = new core.List<core.String>(); |
| 263 o.add("foo"); | 263 o.add("foo"); |
| 264 o.add("foo"); | 264 o.add("foo"); |
| 265 return o; | 265 return o; |
| 266 } | 266 } |
| 267 | 267 |
| 268 checkUnnamed1240(core.List<core.String> o) { | 268 checkUnnamed1432(core.List<core.String> o) { |
| 269 unittest.expect(o, unittest.hasLength(2)); | 269 unittest.expect(o, unittest.hasLength(2)); |
| 270 unittest.expect(o[0], unittest.equals('foo')); | 270 unittest.expect(o[0], unittest.equals('foo')); |
| 271 unittest.expect(o[1], unittest.equals('foo')); | 271 unittest.expect(o[1], unittest.equals('foo')); |
| 272 } | 272 } |
| 273 | 273 |
| 274 buildUnnamed1241() { | 274 buildUnnamed1433() { |
| 275 var o = new core.List<core.String>(); | 275 var o = new core.List<core.String>(); |
| 276 o.add("foo"); | 276 o.add("foo"); |
| 277 o.add("foo"); | 277 o.add("foo"); |
| 278 return o; | 278 return o; |
| 279 } | 279 } |
| 280 | 280 |
| 281 checkUnnamed1241(core.List<core.String> o) { | 281 checkUnnamed1433(core.List<core.String> o) { |
| 282 unittest.expect(o, unittest.hasLength(2)); | 282 unittest.expect(o, unittest.hasLength(2)); |
| 283 unittest.expect(o[0], unittest.equals('foo')); | 283 unittest.expect(o[0], unittest.equals('foo')); |
| 284 unittest.expect(o[1], unittest.equals('foo')); | 284 unittest.expect(o[1], unittest.equals('foo')); |
| 285 } | 285 } |
| 286 | 286 |
| 287 core.int buildCounterExportContext = 0; | 287 core.int buildCounterExportContext = 0; |
| 288 buildExportContext() { | 288 buildExportContext() { |
| 289 var o = new api.ExportContext(); | 289 var o = new api.ExportContext(); |
| 290 buildCounterExportContext++; | 290 buildCounterExportContext++; |
| 291 if (buildCounterExportContext < 3) { | 291 if (buildCounterExportContext < 3) { |
| 292 o.database = buildUnnamed1240(); | 292 o.database = buildUnnamed1432(); |
| 293 o.kind = "foo"; | 293 o.kind = "foo"; |
| 294 o.table = buildUnnamed1241(); | 294 o.table = buildUnnamed1433(); |
| 295 o.uri = "foo"; | 295 o.uri = "foo"; |
| 296 } | 296 } |
| 297 buildCounterExportContext--; | 297 buildCounterExportContext--; |
| 298 return o; | 298 return o; |
| 299 } | 299 } |
| 300 | 300 |
| 301 checkExportContext(api.ExportContext o) { | 301 checkExportContext(api.ExportContext o) { |
| 302 buildCounterExportContext++; | 302 buildCounterExportContext++; |
| 303 if (buildCounterExportContext < 3) { | 303 if (buildCounterExportContext < 3) { |
| 304 checkUnnamed1240(o.database); | 304 checkUnnamed1432(o.database); |
| 305 unittest.expect(o.kind, unittest.equals('foo')); | 305 unittest.expect(o.kind, unittest.equals('foo')); |
| 306 checkUnnamed1241(o.table); | 306 checkUnnamed1433(o.table); |
| 307 unittest.expect(o.uri, unittest.equals('foo')); | 307 unittest.expect(o.uri, unittest.equals('foo')); |
| 308 } | 308 } |
| 309 buildCounterExportContext--; | 309 buildCounterExportContext--; |
| 310 } | 310 } |
| 311 | 311 |
| 312 buildUnnamed1242() { | 312 buildUnnamed1434() { |
| 313 var o = new core.List<core.String>(); | 313 var o = new core.List<core.String>(); |
| 314 o.add("foo"); | 314 o.add("foo"); |
| 315 o.add("foo"); | 315 o.add("foo"); |
| 316 return o; | 316 return o; |
| 317 } | 317 } |
| 318 | 318 |
| 319 checkUnnamed1242(core.List<core.String> o) { | 319 checkUnnamed1434(core.List<core.String> o) { |
| 320 unittest.expect(o, unittest.hasLength(2)); | 320 unittest.expect(o, unittest.hasLength(2)); |
| 321 unittest.expect(o[0], unittest.equals('foo')); | 321 unittest.expect(o[0], unittest.equals('foo')); |
| 322 unittest.expect(o[1], unittest.equals('foo')); | 322 unittest.expect(o[1], unittest.equals('foo')); |
| 323 } | 323 } |
| 324 | 324 |
| 325 buildUnnamed1243() { | 325 buildUnnamed1435() { |
| 326 var o = new core.List<core.String>(); | 326 var o = new core.List<core.String>(); |
| 327 o.add("foo"); | 327 o.add("foo"); |
| 328 o.add("foo"); | 328 o.add("foo"); |
| 329 return o; | 329 return o; |
| 330 } | 330 } |
| 331 | 331 |
| 332 checkUnnamed1243(core.List<core.String> o) { | 332 checkUnnamed1435(core.List<core.String> o) { |
| 333 unittest.expect(o, unittest.hasLength(2)); | 333 unittest.expect(o, unittest.hasLength(2)); |
| 334 unittest.expect(o[0], unittest.equals('foo')); | 334 unittest.expect(o[0], unittest.equals('foo')); |
| 335 unittest.expect(o[1], unittest.equals('foo')); | 335 unittest.expect(o[1], unittest.equals('foo')); |
| 336 } | 336 } |
| 337 | 337 |
| 338 core.int buildCounterFlag = 0; | 338 core.int buildCounterFlag = 0; |
| 339 buildFlag() { | 339 buildFlag() { |
| 340 var o = new api.Flag(); | 340 var o = new api.Flag(); |
| 341 buildCounterFlag++; | 341 buildCounterFlag++; |
| 342 if (buildCounterFlag < 3) { | 342 if (buildCounterFlag < 3) { |
| 343 o.allowedStringValues = buildUnnamed1242(); | 343 o.allowedStringValues = buildUnnamed1434(); |
| 344 o.appliesTo = buildUnnamed1243(); | 344 o.appliesTo = buildUnnamed1435(); |
| 345 o.kind = "foo"; | 345 o.kind = "foo"; |
| 346 o.maxValue = "foo"; | 346 o.maxValue = "foo"; |
| 347 o.minValue = "foo"; | 347 o.minValue = "foo"; |
| 348 o.name = "foo"; | 348 o.name = "foo"; |
| 349 o.type = "foo"; | 349 o.type = "foo"; |
| 350 } | 350 } |
| 351 buildCounterFlag--; | 351 buildCounterFlag--; |
| 352 return o; | 352 return o; |
| 353 } | 353 } |
| 354 | 354 |
| 355 checkFlag(api.Flag o) { | 355 checkFlag(api.Flag o) { |
| 356 buildCounterFlag++; | 356 buildCounterFlag++; |
| 357 if (buildCounterFlag < 3) { | 357 if (buildCounterFlag < 3) { |
| 358 checkUnnamed1242(o.allowedStringValues); | 358 checkUnnamed1434(o.allowedStringValues); |
| 359 checkUnnamed1243(o.appliesTo); | 359 checkUnnamed1435(o.appliesTo); |
| 360 unittest.expect(o.kind, unittest.equals('foo')); | 360 unittest.expect(o.kind, unittest.equals('foo')); |
| 361 unittest.expect(o.maxValue, unittest.equals('foo')); | 361 unittest.expect(o.maxValue, unittest.equals('foo')); |
| 362 unittest.expect(o.minValue, unittest.equals('foo')); | 362 unittest.expect(o.minValue, unittest.equals('foo')); |
| 363 unittest.expect(o.name, unittest.equals('foo')); | 363 unittest.expect(o.name, unittest.equals('foo')); |
| 364 unittest.expect(o.type, unittest.equals('foo')); | 364 unittest.expect(o.type, unittest.equals('foo')); |
| 365 } | 365 } |
| 366 buildCounterFlag--; | 366 buildCounterFlag--; |
| 367 } | 367 } |
| 368 | 368 |
| 369 buildUnnamed1244() { | 369 buildUnnamed1436() { |
| 370 var o = new core.List<api.Flag>(); | 370 var o = new core.List<api.Flag>(); |
| 371 o.add(buildFlag()); | 371 o.add(buildFlag()); |
| 372 o.add(buildFlag()); | 372 o.add(buildFlag()); |
| 373 return o; | 373 return o; |
| 374 } | 374 } |
| 375 | 375 |
| 376 checkUnnamed1244(core.List<api.Flag> o) { | 376 checkUnnamed1436(core.List<api.Flag> o) { |
| 377 unittest.expect(o, unittest.hasLength(2)); | 377 unittest.expect(o, unittest.hasLength(2)); |
| 378 checkFlag(o[0]); | 378 checkFlag(o[0]); |
| 379 checkFlag(o[1]); | 379 checkFlag(o[1]); |
| 380 } | 380 } |
| 381 | 381 |
| 382 core.int buildCounterFlagsListResponse = 0; | 382 core.int buildCounterFlagsListResponse = 0; |
| 383 buildFlagsListResponse() { | 383 buildFlagsListResponse() { |
| 384 var o = new api.FlagsListResponse(); | 384 var o = new api.FlagsListResponse(); |
| 385 buildCounterFlagsListResponse++; | 385 buildCounterFlagsListResponse++; |
| 386 if (buildCounterFlagsListResponse < 3) { | 386 if (buildCounterFlagsListResponse < 3) { |
| 387 o.items = buildUnnamed1244(); | 387 o.items = buildUnnamed1436(); |
| 388 o.kind = "foo"; | 388 o.kind = "foo"; |
| 389 } | 389 } |
| 390 buildCounterFlagsListResponse--; | 390 buildCounterFlagsListResponse--; |
| 391 return o; | 391 return o; |
| 392 } | 392 } |
| 393 | 393 |
| 394 checkFlagsListResponse(api.FlagsListResponse o) { | 394 checkFlagsListResponse(api.FlagsListResponse o) { |
| 395 buildCounterFlagsListResponse++; | 395 buildCounterFlagsListResponse++; |
| 396 if (buildCounterFlagsListResponse < 3) { | 396 if (buildCounterFlagsListResponse < 3) { |
| 397 checkUnnamed1244(o.items); | 397 checkUnnamed1436(o.items); |
| 398 unittest.expect(o.kind, unittest.equals('foo')); | 398 unittest.expect(o.kind, unittest.equals('foo')); |
| 399 } | 399 } |
| 400 buildCounterFlagsListResponse--; | 400 buildCounterFlagsListResponse--; |
| 401 } | 401 } |
| 402 | 402 |
| 403 buildUnnamed1245() { | 403 buildUnnamed1437() { |
| 404 var o = new core.List<core.String>(); | 404 var o = new core.List<core.String>(); |
| 405 o.add("foo"); | 405 o.add("foo"); |
| 406 o.add("foo"); | 406 o.add("foo"); |
| 407 return o; | 407 return o; |
| 408 } | 408 } |
| 409 | 409 |
| 410 checkUnnamed1245(core.List<core.String> o) { | 410 checkUnnamed1437(core.List<core.String> o) { |
| 411 unittest.expect(o, unittest.hasLength(2)); | 411 unittest.expect(o, unittest.hasLength(2)); |
| 412 unittest.expect(o[0], unittest.equals('foo')); | 412 unittest.expect(o[0], unittest.equals('foo')); |
| 413 unittest.expect(o[1], unittest.equals('foo')); | 413 unittest.expect(o[1], unittest.equals('foo')); |
| 414 } | 414 } |
| 415 | 415 |
| 416 core.int buildCounterImportContext = 0; | 416 core.int buildCounterImportContext = 0; |
| 417 buildImportContext() { | 417 buildImportContext() { |
| 418 var o = new api.ImportContext(); | 418 var o = new api.ImportContext(); |
| 419 buildCounterImportContext++; | 419 buildCounterImportContext++; |
| 420 if (buildCounterImportContext < 3) { | 420 if (buildCounterImportContext < 3) { |
| 421 o.database = "foo"; | 421 o.database = "foo"; |
| 422 o.kind = "foo"; | 422 o.kind = "foo"; |
| 423 o.uri = buildUnnamed1245(); | 423 o.uri = buildUnnamed1437(); |
| 424 } | 424 } |
| 425 buildCounterImportContext--; | 425 buildCounterImportContext--; |
| 426 return o; | 426 return o; |
| 427 } | 427 } |
| 428 | 428 |
| 429 checkImportContext(api.ImportContext o) { | 429 checkImportContext(api.ImportContext o) { |
| 430 buildCounterImportContext++; | 430 buildCounterImportContext++; |
| 431 if (buildCounterImportContext < 3) { | 431 if (buildCounterImportContext < 3) { |
| 432 unittest.expect(o.database, unittest.equals('foo')); | 432 unittest.expect(o.database, unittest.equals('foo')); |
| 433 unittest.expect(o.kind, unittest.equals('foo')); | 433 unittest.expect(o.kind, unittest.equals('foo')); |
| 434 checkUnnamed1245(o.uri); | 434 checkUnnamed1437(o.uri); |
| 435 } | 435 } |
| 436 buildCounterImportContext--; | 436 buildCounterImportContext--; |
| 437 } | 437 } |
| 438 | 438 |
| 439 buildUnnamed1246() { | 439 buildUnnamed1438() { |
| 440 var o = new core.List<api.OperationError>(); | 440 var o = new core.List<api.OperationError>(); |
| 441 o.add(buildOperationError()); | 441 o.add(buildOperationError()); |
| 442 o.add(buildOperationError()); | 442 o.add(buildOperationError()); |
| 443 return o; | 443 return o; |
| 444 } | 444 } |
| 445 | 445 |
| 446 checkUnnamed1246(core.List<api.OperationError> o) { | 446 checkUnnamed1438(core.List<api.OperationError> o) { |
| 447 unittest.expect(o, unittest.hasLength(2)); | 447 unittest.expect(o, unittest.hasLength(2)); |
| 448 checkOperationError(o[0]); | 448 checkOperationError(o[0]); |
| 449 checkOperationError(o[1]); | 449 checkOperationError(o[1]); |
| 450 } | 450 } |
| 451 | 451 |
| 452 core.int buildCounterInstanceOperation = 0; | 452 core.int buildCounterInstanceOperation = 0; |
| 453 buildInstanceOperation() { | 453 buildInstanceOperation() { |
| 454 var o = new api.InstanceOperation(); | 454 var o = new api.InstanceOperation(); |
| 455 buildCounterInstanceOperation++; | 455 buildCounterInstanceOperation++; |
| 456 if (buildCounterInstanceOperation < 3) { | 456 if (buildCounterInstanceOperation < 3) { |
| 457 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); | 457 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 458 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 458 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 459 o.error = buildUnnamed1246(); | 459 o.error = buildUnnamed1438(); |
| 460 o.exportContext = buildExportContext(); | 460 o.exportContext = buildExportContext(); |
| 461 o.importContext = buildImportContext(); | 461 o.importContext = buildImportContext(); |
| 462 o.instance = "foo"; | 462 o.instance = "foo"; |
| 463 o.kind = "foo"; | 463 o.kind = "foo"; |
| 464 o.operation = "foo"; | 464 o.operation = "foo"; |
| 465 o.operationType = "foo"; | 465 o.operationType = "foo"; |
| 466 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); | 466 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 467 o.state = "foo"; | 467 o.state = "foo"; |
| 468 o.userEmailAddress = "foo"; | 468 o.userEmailAddress = "foo"; |
| 469 } | 469 } |
| 470 buildCounterInstanceOperation--; | 470 buildCounterInstanceOperation--; |
| 471 return o; | 471 return o; |
| 472 } | 472 } |
| 473 | 473 |
| 474 checkInstanceOperation(api.InstanceOperation o) { | 474 checkInstanceOperation(api.InstanceOperation o) { |
| 475 buildCounterInstanceOperation++; | 475 buildCounterInstanceOperation++; |
| 476 if (buildCounterInstanceOperation < 3) { | 476 if (buildCounterInstanceOperation < 3) { |
| 477 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 477 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 478 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 478 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 479 checkUnnamed1246(o.error); | 479 checkUnnamed1438(o.error); |
| 480 checkExportContext(o.exportContext); | 480 checkExportContext(o.exportContext); |
| 481 checkImportContext(o.importContext); | 481 checkImportContext(o.importContext); |
| 482 unittest.expect(o.instance, unittest.equals('foo')); | 482 unittest.expect(o.instance, unittest.equals('foo')); |
| 483 unittest.expect(o.kind, unittest.equals('foo')); | 483 unittest.expect(o.kind, unittest.equals('foo')); |
| 484 unittest.expect(o.operation, unittest.equals('foo')); | 484 unittest.expect(o.operation, unittest.equals('foo')); |
| 485 unittest.expect(o.operationType, unittest.equals('foo')); | 485 unittest.expect(o.operationType, unittest.equals('foo')); |
| 486 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 486 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 487 unittest.expect(o.state, unittest.equals('foo')); | 487 unittest.expect(o.state, unittest.equals('foo')); |
| 488 unittest.expect(o.userEmailAddress, unittest.equals('foo')); | 488 unittest.expect(o.userEmailAddress, unittest.equals('foo')); |
| 489 } | 489 } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 | 664 |
| 665 checkInstancesInsertResponse(api.InstancesInsertResponse o) { | 665 checkInstancesInsertResponse(api.InstancesInsertResponse o) { |
| 666 buildCounterInstancesInsertResponse++; | 666 buildCounterInstancesInsertResponse++; |
| 667 if (buildCounterInstancesInsertResponse < 3) { | 667 if (buildCounterInstancesInsertResponse < 3) { |
| 668 unittest.expect(o.kind, unittest.equals('foo')); | 668 unittest.expect(o.kind, unittest.equals('foo')); |
| 669 unittest.expect(o.operation, unittest.equals('foo')); | 669 unittest.expect(o.operation, unittest.equals('foo')); |
| 670 } | 670 } |
| 671 buildCounterInstancesInsertResponse--; | 671 buildCounterInstancesInsertResponse--; |
| 672 } | 672 } |
| 673 | 673 |
| 674 buildUnnamed1247() { | 674 buildUnnamed1439() { |
| 675 var o = new core.List<api.DatabaseInstance>(); | 675 var o = new core.List<api.DatabaseInstance>(); |
| 676 o.add(buildDatabaseInstance()); | 676 o.add(buildDatabaseInstance()); |
| 677 o.add(buildDatabaseInstance()); | 677 o.add(buildDatabaseInstance()); |
| 678 return o; | 678 return o; |
| 679 } | 679 } |
| 680 | 680 |
| 681 checkUnnamed1247(core.List<api.DatabaseInstance> o) { | 681 checkUnnamed1439(core.List<api.DatabaseInstance> o) { |
| 682 unittest.expect(o, unittest.hasLength(2)); | 682 unittest.expect(o, unittest.hasLength(2)); |
| 683 checkDatabaseInstance(o[0]); | 683 checkDatabaseInstance(o[0]); |
| 684 checkDatabaseInstance(o[1]); | 684 checkDatabaseInstance(o[1]); |
| 685 } | 685 } |
| 686 | 686 |
| 687 core.int buildCounterInstancesListResponse = 0; | 687 core.int buildCounterInstancesListResponse = 0; |
| 688 buildInstancesListResponse() { | 688 buildInstancesListResponse() { |
| 689 var o = new api.InstancesListResponse(); | 689 var o = new api.InstancesListResponse(); |
| 690 buildCounterInstancesListResponse++; | 690 buildCounterInstancesListResponse++; |
| 691 if (buildCounterInstancesListResponse < 3) { | 691 if (buildCounterInstancesListResponse < 3) { |
| 692 o.items = buildUnnamed1247(); | 692 o.items = buildUnnamed1439(); |
| 693 o.kind = "foo"; | 693 o.kind = "foo"; |
| 694 o.nextPageToken = "foo"; | 694 o.nextPageToken = "foo"; |
| 695 } | 695 } |
| 696 buildCounterInstancesListResponse--; | 696 buildCounterInstancesListResponse--; |
| 697 return o; | 697 return o; |
| 698 } | 698 } |
| 699 | 699 |
| 700 checkInstancesListResponse(api.InstancesListResponse o) { | 700 checkInstancesListResponse(api.InstancesListResponse o) { |
| 701 buildCounterInstancesListResponse++; | 701 buildCounterInstancesListResponse++; |
| 702 if (buildCounterInstancesListResponse < 3) { | 702 if (buildCounterInstancesListResponse < 3) { |
| 703 checkUnnamed1247(o.items); | 703 checkUnnamed1439(o.items); |
| 704 unittest.expect(o.kind, unittest.equals('foo')); | 704 unittest.expect(o.kind, unittest.equals('foo')); |
| 705 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 705 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 706 } | 706 } |
| 707 buildCounterInstancesListResponse--; | 707 buildCounterInstancesListResponse--; |
| 708 } | 708 } |
| 709 | 709 |
| 710 core.int buildCounterInstancesPromoteReplicaResponse = 0; | 710 core.int buildCounterInstancesPromoteReplicaResponse = 0; |
| 711 buildInstancesPromoteReplicaResponse() { | 711 buildInstancesPromoteReplicaResponse() { |
| 712 var o = new api.InstancesPromoteReplicaResponse(); | 712 var o = new api.InstancesPromoteReplicaResponse(); |
| 713 buildCounterInstancesPromoteReplicaResponse++; | 713 buildCounterInstancesPromoteReplicaResponse++; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 | 826 |
| 827 checkInstancesUpdateResponse(api.InstancesUpdateResponse o) { | 827 checkInstancesUpdateResponse(api.InstancesUpdateResponse o) { |
| 828 buildCounterInstancesUpdateResponse++; | 828 buildCounterInstancesUpdateResponse++; |
| 829 if (buildCounterInstancesUpdateResponse < 3) { | 829 if (buildCounterInstancesUpdateResponse < 3) { |
| 830 unittest.expect(o.kind, unittest.equals('foo')); | 830 unittest.expect(o.kind, unittest.equals('foo')); |
| 831 unittest.expect(o.operation, unittest.equals('foo')); | 831 unittest.expect(o.operation, unittest.equals('foo')); |
| 832 } | 832 } |
| 833 buildCounterInstancesUpdateResponse--; | 833 buildCounterInstancesUpdateResponse--; |
| 834 } | 834 } |
| 835 | 835 |
| 836 buildUnnamed1248() { | 836 buildUnnamed1440() { |
| 837 var o = new core.List<core.String>(); | 837 var o = new core.List<core.String>(); |
| 838 o.add("foo"); | 838 o.add("foo"); |
| 839 o.add("foo"); | 839 o.add("foo"); |
| 840 return o; | 840 return o; |
| 841 } | 841 } |
| 842 | 842 |
| 843 checkUnnamed1248(core.List<core.String> o) { | 843 checkUnnamed1440(core.List<core.String> o) { |
| 844 unittest.expect(o, unittest.hasLength(2)); | 844 unittest.expect(o, unittest.hasLength(2)); |
| 845 unittest.expect(o[0], unittest.equals('foo')); | 845 unittest.expect(o[0], unittest.equals('foo')); |
| 846 unittest.expect(o[1], unittest.equals('foo')); | 846 unittest.expect(o[1], unittest.equals('foo')); |
| 847 } | 847 } |
| 848 | 848 |
| 849 core.int buildCounterIpConfiguration = 0; | 849 core.int buildCounterIpConfiguration = 0; |
| 850 buildIpConfiguration() { | 850 buildIpConfiguration() { |
| 851 var o = new api.IpConfiguration(); | 851 var o = new api.IpConfiguration(); |
| 852 buildCounterIpConfiguration++; | 852 buildCounterIpConfiguration++; |
| 853 if (buildCounterIpConfiguration < 3) { | 853 if (buildCounterIpConfiguration < 3) { |
| 854 o.authorizedNetworks = buildUnnamed1248(); | 854 o.authorizedNetworks = buildUnnamed1440(); |
| 855 o.enabled = true; | 855 o.enabled = true; |
| 856 o.kind = "foo"; | 856 o.kind = "foo"; |
| 857 o.requireSsl = true; | 857 o.requireSsl = true; |
| 858 } | 858 } |
| 859 buildCounterIpConfiguration--; | 859 buildCounterIpConfiguration--; |
| 860 return o; | 860 return o; |
| 861 } | 861 } |
| 862 | 862 |
| 863 checkIpConfiguration(api.IpConfiguration o) { | 863 checkIpConfiguration(api.IpConfiguration o) { |
| 864 buildCounterIpConfiguration++; | 864 buildCounterIpConfiguration++; |
| 865 if (buildCounterIpConfiguration < 3) { | 865 if (buildCounterIpConfiguration < 3) { |
| 866 checkUnnamed1248(o.authorizedNetworks); | 866 checkUnnamed1440(o.authorizedNetworks); |
| 867 unittest.expect(o.enabled, unittest.isTrue); | 867 unittest.expect(o.enabled, unittest.isTrue); |
| 868 unittest.expect(o.kind, unittest.equals('foo')); | 868 unittest.expect(o.kind, unittest.equals('foo')); |
| 869 unittest.expect(o.requireSsl, unittest.isTrue); | 869 unittest.expect(o.requireSsl, unittest.isTrue); |
| 870 } | 870 } |
| 871 buildCounterIpConfiguration--; | 871 buildCounterIpConfiguration--; |
| 872 } | 872 } |
| 873 | 873 |
| 874 core.int buildCounterIpMapping = 0; | 874 core.int buildCounterIpMapping = 0; |
| 875 buildIpMapping() { | 875 buildIpMapping() { |
| 876 var o = new api.IpMapping(); | 876 var o = new api.IpMapping(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 929 | 929 |
| 930 checkOperationError(api.OperationError o) { | 930 checkOperationError(api.OperationError o) { |
| 931 buildCounterOperationError++; | 931 buildCounterOperationError++; |
| 932 if (buildCounterOperationError < 3) { | 932 if (buildCounterOperationError < 3) { |
| 933 unittest.expect(o.code, unittest.equals('foo')); | 933 unittest.expect(o.code, unittest.equals('foo')); |
| 934 unittest.expect(o.kind, unittest.equals('foo')); | 934 unittest.expect(o.kind, unittest.equals('foo')); |
| 935 } | 935 } |
| 936 buildCounterOperationError--; | 936 buildCounterOperationError--; |
| 937 } | 937 } |
| 938 | 938 |
| 939 buildUnnamed1249() { | 939 buildUnnamed1441() { |
| 940 var o = new core.List<api.InstanceOperation>(); | 940 var o = new core.List<api.InstanceOperation>(); |
| 941 o.add(buildInstanceOperation()); | 941 o.add(buildInstanceOperation()); |
| 942 o.add(buildInstanceOperation()); | 942 o.add(buildInstanceOperation()); |
| 943 return o; | 943 return o; |
| 944 } | 944 } |
| 945 | 945 |
| 946 checkUnnamed1249(core.List<api.InstanceOperation> o) { | 946 checkUnnamed1441(core.List<api.InstanceOperation> o) { |
| 947 unittest.expect(o, unittest.hasLength(2)); | 947 unittest.expect(o, unittest.hasLength(2)); |
| 948 checkInstanceOperation(o[0]); | 948 checkInstanceOperation(o[0]); |
| 949 checkInstanceOperation(o[1]); | 949 checkInstanceOperation(o[1]); |
| 950 } | 950 } |
| 951 | 951 |
| 952 core.int buildCounterOperationsListResponse = 0; | 952 core.int buildCounterOperationsListResponse = 0; |
| 953 buildOperationsListResponse() { | 953 buildOperationsListResponse() { |
| 954 var o = new api.OperationsListResponse(); | 954 var o = new api.OperationsListResponse(); |
| 955 buildCounterOperationsListResponse++; | 955 buildCounterOperationsListResponse++; |
| 956 if (buildCounterOperationsListResponse < 3) { | 956 if (buildCounterOperationsListResponse < 3) { |
| 957 o.items = buildUnnamed1249(); | 957 o.items = buildUnnamed1441(); |
| 958 o.kind = "foo"; | 958 o.kind = "foo"; |
| 959 o.nextPageToken = "foo"; | 959 o.nextPageToken = "foo"; |
| 960 } | 960 } |
| 961 buildCounterOperationsListResponse--; | 961 buildCounterOperationsListResponse--; |
| 962 return o; | 962 return o; |
| 963 } | 963 } |
| 964 | 964 |
| 965 checkOperationsListResponse(api.OperationsListResponse o) { | 965 checkOperationsListResponse(api.OperationsListResponse o) { |
| 966 buildCounterOperationsListResponse++; | 966 buildCounterOperationsListResponse++; |
| 967 if (buildCounterOperationsListResponse < 3) { | 967 if (buildCounterOperationsListResponse < 3) { |
| 968 checkUnnamed1249(o.items); | 968 checkUnnamed1441(o.items); |
| 969 unittest.expect(o.kind, unittest.equals('foo')); | 969 unittest.expect(o.kind, unittest.equals('foo')); |
| 970 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 970 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 971 } | 971 } |
| 972 buildCounterOperationsListResponse--; | 972 buildCounterOperationsListResponse--; |
| 973 } | 973 } |
| 974 | 974 |
| 975 core.int buildCounterSetRootPasswordContext = 0; | 975 core.int buildCounterSetRootPasswordContext = 0; |
| 976 buildSetRootPasswordContext() { | 976 buildSetRootPasswordContext() { |
| 977 var o = new api.SetRootPasswordContext(); | 977 var o = new api.SetRootPasswordContext(); |
| 978 buildCounterSetRootPasswordContext++; | 978 buildCounterSetRootPasswordContext++; |
| 979 if (buildCounterSetRootPasswordContext < 3) { | 979 if (buildCounterSetRootPasswordContext < 3) { |
| 980 o.kind = "foo"; | 980 o.kind = "foo"; |
| 981 o.password = "foo"; | 981 o.password = "foo"; |
| 982 } | 982 } |
| 983 buildCounterSetRootPasswordContext--; | 983 buildCounterSetRootPasswordContext--; |
| 984 return o; | 984 return o; |
| 985 } | 985 } |
| 986 | 986 |
| 987 checkSetRootPasswordContext(api.SetRootPasswordContext o) { | 987 checkSetRootPasswordContext(api.SetRootPasswordContext o) { |
| 988 buildCounterSetRootPasswordContext++; | 988 buildCounterSetRootPasswordContext++; |
| 989 if (buildCounterSetRootPasswordContext < 3) { | 989 if (buildCounterSetRootPasswordContext < 3) { |
| 990 unittest.expect(o.kind, unittest.equals('foo')); | 990 unittest.expect(o.kind, unittest.equals('foo')); |
| 991 unittest.expect(o.password, unittest.equals('foo')); | 991 unittest.expect(o.password, unittest.equals('foo')); |
| 992 } | 992 } |
| 993 buildCounterSetRootPasswordContext--; | 993 buildCounterSetRootPasswordContext--; |
| 994 } | 994 } |
| 995 | 995 |
| 996 buildUnnamed1250() { | 996 buildUnnamed1442() { |
| 997 var o = new core.List<core.String>(); | 997 var o = new core.List<core.String>(); |
| 998 o.add("foo"); | 998 o.add("foo"); |
| 999 o.add("foo"); | 999 o.add("foo"); |
| 1000 return o; | 1000 return o; |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 checkUnnamed1250(core.List<core.String> o) { | 1003 checkUnnamed1442(core.List<core.String> o) { |
| 1004 unittest.expect(o, unittest.hasLength(2)); | 1004 unittest.expect(o, unittest.hasLength(2)); |
| 1005 unittest.expect(o[0], unittest.equals('foo')); | 1005 unittest.expect(o[0], unittest.equals('foo')); |
| 1006 unittest.expect(o[1], unittest.equals('foo')); | 1006 unittest.expect(o[1], unittest.equals('foo')); |
| 1007 } | 1007 } |
| 1008 | 1008 |
| 1009 buildUnnamed1251() { | 1009 buildUnnamed1443() { |
| 1010 var o = new core.List<api.BackupConfiguration>(); | 1010 var o = new core.List<api.BackupConfiguration>(); |
| 1011 o.add(buildBackupConfiguration()); | 1011 o.add(buildBackupConfiguration()); |
| 1012 o.add(buildBackupConfiguration()); | 1012 o.add(buildBackupConfiguration()); |
| 1013 return o; | 1013 return o; |
| 1014 } | 1014 } |
| 1015 | 1015 |
| 1016 checkUnnamed1251(core.List<api.BackupConfiguration> o) { | 1016 checkUnnamed1443(core.List<api.BackupConfiguration> o) { |
| 1017 unittest.expect(o, unittest.hasLength(2)); | 1017 unittest.expect(o, unittest.hasLength(2)); |
| 1018 checkBackupConfiguration(o[0]); | 1018 checkBackupConfiguration(o[0]); |
| 1019 checkBackupConfiguration(o[1]); | 1019 checkBackupConfiguration(o[1]); |
| 1020 } | 1020 } |
| 1021 | 1021 |
| 1022 buildUnnamed1252() { | 1022 buildUnnamed1444() { |
| 1023 var o = new core.List<api.DatabaseFlags>(); | 1023 var o = new core.List<api.DatabaseFlags>(); |
| 1024 o.add(buildDatabaseFlags()); | 1024 o.add(buildDatabaseFlags()); |
| 1025 o.add(buildDatabaseFlags()); | 1025 o.add(buildDatabaseFlags()); |
| 1026 return o; | 1026 return o; |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 checkUnnamed1252(core.List<api.DatabaseFlags> o) { | 1029 checkUnnamed1444(core.List<api.DatabaseFlags> o) { |
| 1030 unittest.expect(o, unittest.hasLength(2)); | 1030 unittest.expect(o, unittest.hasLength(2)); |
| 1031 checkDatabaseFlags(o[0]); | 1031 checkDatabaseFlags(o[0]); |
| 1032 checkDatabaseFlags(o[1]); | 1032 checkDatabaseFlags(o[1]); |
| 1033 } | 1033 } |
| 1034 | 1034 |
| 1035 core.int buildCounterSettings = 0; | 1035 core.int buildCounterSettings = 0; |
| 1036 buildSettings() { | 1036 buildSettings() { |
| 1037 var o = new api.Settings(); | 1037 var o = new api.Settings(); |
| 1038 buildCounterSettings++; | 1038 buildCounterSettings++; |
| 1039 if (buildCounterSettings < 3) { | 1039 if (buildCounterSettings < 3) { |
| 1040 o.activationPolicy = "foo"; | 1040 o.activationPolicy = "foo"; |
| 1041 o.authorizedGaeApplications = buildUnnamed1250(); | 1041 o.authorizedGaeApplications = buildUnnamed1442(); |
| 1042 o.backupConfiguration = buildUnnamed1251(); | 1042 o.backupConfiguration = buildUnnamed1443(); |
| 1043 o.databaseFlags = buildUnnamed1252(); | 1043 o.databaseFlags = buildUnnamed1444(); |
| 1044 o.databaseReplicationEnabled = true; | 1044 o.databaseReplicationEnabled = true; |
| 1045 o.ipConfiguration = buildIpConfiguration(); | 1045 o.ipConfiguration = buildIpConfiguration(); |
| 1046 o.kind = "foo"; | 1046 o.kind = "foo"; |
| 1047 o.locationPreference = buildLocationPreference(); | 1047 o.locationPreference = buildLocationPreference(); |
| 1048 o.pricingPlan = "foo"; | 1048 o.pricingPlan = "foo"; |
| 1049 o.replicationType = "foo"; | 1049 o.replicationType = "foo"; |
| 1050 o.settingsVersion = "foo"; | 1050 o.settingsVersion = "foo"; |
| 1051 o.tier = "foo"; | 1051 o.tier = "foo"; |
| 1052 } | 1052 } |
| 1053 buildCounterSettings--; | 1053 buildCounterSettings--; |
| 1054 return o; | 1054 return o; |
| 1055 } | 1055 } |
| 1056 | 1056 |
| 1057 checkSettings(api.Settings o) { | 1057 checkSettings(api.Settings o) { |
| 1058 buildCounterSettings++; | 1058 buildCounterSettings++; |
| 1059 if (buildCounterSettings < 3) { | 1059 if (buildCounterSettings < 3) { |
| 1060 unittest.expect(o.activationPolicy, unittest.equals('foo')); | 1060 unittest.expect(o.activationPolicy, unittest.equals('foo')); |
| 1061 checkUnnamed1250(o.authorizedGaeApplications); | 1061 checkUnnamed1442(o.authorizedGaeApplications); |
| 1062 checkUnnamed1251(o.backupConfiguration); | 1062 checkUnnamed1443(o.backupConfiguration); |
| 1063 checkUnnamed1252(o.databaseFlags); | 1063 checkUnnamed1444(o.databaseFlags); |
| 1064 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); | 1064 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); |
| 1065 checkIpConfiguration(o.ipConfiguration); | 1065 checkIpConfiguration(o.ipConfiguration); |
| 1066 unittest.expect(o.kind, unittest.equals('foo')); | 1066 unittest.expect(o.kind, unittest.equals('foo')); |
| 1067 checkLocationPreference(o.locationPreference); | 1067 checkLocationPreference(o.locationPreference); |
| 1068 unittest.expect(o.pricingPlan, unittest.equals('foo')); | 1068 unittest.expect(o.pricingPlan, unittest.equals('foo')); |
| 1069 unittest.expect(o.replicationType, unittest.equals('foo')); | 1069 unittest.expect(o.replicationType, unittest.equals('foo')); |
| 1070 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 1070 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
| 1071 unittest.expect(o.tier, unittest.equals('foo')); | 1071 unittest.expect(o.tier, unittest.equals('foo')); |
| 1072 } | 1072 } |
| 1073 buildCounterSettings--; | 1073 buildCounterSettings--; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1183 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { | 1183 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { |
| 1184 buildCounterSslCertsInsertResponse++; | 1184 buildCounterSslCertsInsertResponse++; |
| 1185 if (buildCounterSslCertsInsertResponse < 3) { | 1185 if (buildCounterSslCertsInsertResponse < 3) { |
| 1186 checkSslCertDetail(o.clientCert); | 1186 checkSslCertDetail(o.clientCert); |
| 1187 unittest.expect(o.kind, unittest.equals('foo')); | 1187 unittest.expect(o.kind, unittest.equals('foo')); |
| 1188 checkSslCert(o.serverCaCert); | 1188 checkSslCert(o.serverCaCert); |
| 1189 } | 1189 } |
| 1190 buildCounterSslCertsInsertResponse--; | 1190 buildCounterSslCertsInsertResponse--; |
| 1191 } | 1191 } |
| 1192 | 1192 |
| 1193 buildUnnamed1253() { | 1193 buildUnnamed1445() { |
| 1194 var o = new core.List<api.SslCert>(); | 1194 var o = new core.List<api.SslCert>(); |
| 1195 o.add(buildSslCert()); | 1195 o.add(buildSslCert()); |
| 1196 o.add(buildSslCert()); | 1196 o.add(buildSslCert()); |
| 1197 return o; | 1197 return o; |
| 1198 } | 1198 } |
| 1199 | 1199 |
| 1200 checkUnnamed1253(core.List<api.SslCert> o) { | 1200 checkUnnamed1445(core.List<api.SslCert> o) { |
| 1201 unittest.expect(o, unittest.hasLength(2)); | 1201 unittest.expect(o, unittest.hasLength(2)); |
| 1202 checkSslCert(o[0]); | 1202 checkSslCert(o[0]); |
| 1203 checkSslCert(o[1]); | 1203 checkSslCert(o[1]); |
| 1204 } | 1204 } |
| 1205 | 1205 |
| 1206 core.int buildCounterSslCertsListResponse = 0; | 1206 core.int buildCounterSslCertsListResponse = 0; |
| 1207 buildSslCertsListResponse() { | 1207 buildSslCertsListResponse() { |
| 1208 var o = new api.SslCertsListResponse(); | 1208 var o = new api.SslCertsListResponse(); |
| 1209 buildCounterSslCertsListResponse++; | 1209 buildCounterSslCertsListResponse++; |
| 1210 if (buildCounterSslCertsListResponse < 3) { | 1210 if (buildCounterSslCertsListResponse < 3) { |
| 1211 o.items = buildUnnamed1253(); | 1211 o.items = buildUnnamed1445(); |
| 1212 o.kind = "foo"; | 1212 o.kind = "foo"; |
| 1213 } | 1213 } |
| 1214 buildCounterSslCertsListResponse--; | 1214 buildCounterSslCertsListResponse--; |
| 1215 return o; | 1215 return o; |
| 1216 } | 1216 } |
| 1217 | 1217 |
| 1218 checkSslCertsListResponse(api.SslCertsListResponse o) { | 1218 checkSslCertsListResponse(api.SslCertsListResponse o) { |
| 1219 buildCounterSslCertsListResponse++; | 1219 buildCounterSslCertsListResponse++; |
| 1220 if (buildCounterSslCertsListResponse < 3) { | 1220 if (buildCounterSslCertsListResponse < 3) { |
| 1221 checkUnnamed1253(o.items); | 1221 checkUnnamed1445(o.items); |
| 1222 unittest.expect(o.kind, unittest.equals('foo')); | 1222 unittest.expect(o.kind, unittest.equals('foo')); |
| 1223 } | 1223 } |
| 1224 buildCounterSslCertsListResponse--; | 1224 buildCounterSslCertsListResponse--; |
| 1225 } | 1225 } |
| 1226 | 1226 |
| 1227 buildUnnamed1254() { | 1227 buildUnnamed1446() { |
| 1228 var o = new core.List<core.String>(); | 1228 var o = new core.List<core.String>(); |
| 1229 o.add("foo"); | 1229 o.add("foo"); |
| 1230 o.add("foo"); | 1230 o.add("foo"); |
| 1231 return o; | 1231 return o; |
| 1232 } | 1232 } |
| 1233 | 1233 |
| 1234 checkUnnamed1254(core.List<core.String> o) { | 1234 checkUnnamed1446(core.List<core.String> o) { |
| 1235 unittest.expect(o, unittest.hasLength(2)); | 1235 unittest.expect(o, unittest.hasLength(2)); |
| 1236 unittest.expect(o[0], unittest.equals('foo')); | 1236 unittest.expect(o[0], unittest.equals('foo')); |
| 1237 unittest.expect(o[1], unittest.equals('foo')); | 1237 unittest.expect(o[1], unittest.equals('foo')); |
| 1238 } | 1238 } |
| 1239 | 1239 |
| 1240 core.int buildCounterTier = 0; | 1240 core.int buildCounterTier = 0; |
| 1241 buildTier() { | 1241 buildTier() { |
| 1242 var o = new api.Tier(); | 1242 var o = new api.Tier(); |
| 1243 buildCounterTier++; | 1243 buildCounterTier++; |
| 1244 if (buildCounterTier < 3) { | 1244 if (buildCounterTier < 3) { |
| 1245 o.DiskQuota = "foo"; | 1245 o.DiskQuota = "foo"; |
| 1246 o.RAM = "foo"; | 1246 o.RAM = "foo"; |
| 1247 o.kind = "foo"; | 1247 o.kind = "foo"; |
| 1248 o.region = buildUnnamed1254(); | 1248 o.region = buildUnnamed1446(); |
| 1249 o.tier = "foo"; | 1249 o.tier = "foo"; |
| 1250 } | 1250 } |
| 1251 buildCounterTier--; | 1251 buildCounterTier--; |
| 1252 return o; | 1252 return o; |
| 1253 } | 1253 } |
| 1254 | 1254 |
| 1255 checkTier(api.Tier o) { | 1255 checkTier(api.Tier o) { |
| 1256 buildCounterTier++; | 1256 buildCounterTier++; |
| 1257 if (buildCounterTier < 3) { | 1257 if (buildCounterTier < 3) { |
| 1258 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1258 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
| 1259 unittest.expect(o.RAM, unittest.equals('foo')); | 1259 unittest.expect(o.RAM, unittest.equals('foo')); |
| 1260 unittest.expect(o.kind, unittest.equals('foo')); | 1260 unittest.expect(o.kind, unittest.equals('foo')); |
| 1261 checkUnnamed1254(o.region); | 1261 checkUnnamed1446(o.region); |
| 1262 unittest.expect(o.tier, unittest.equals('foo')); | 1262 unittest.expect(o.tier, unittest.equals('foo')); |
| 1263 } | 1263 } |
| 1264 buildCounterTier--; | 1264 buildCounterTier--; |
| 1265 } | 1265 } |
| 1266 | 1266 |
| 1267 buildUnnamed1255() { | 1267 buildUnnamed1447() { |
| 1268 var o = new core.List<api.Tier>(); | 1268 var o = new core.List<api.Tier>(); |
| 1269 o.add(buildTier()); | 1269 o.add(buildTier()); |
| 1270 o.add(buildTier()); | 1270 o.add(buildTier()); |
| 1271 return o; | 1271 return o; |
| 1272 } | 1272 } |
| 1273 | 1273 |
| 1274 checkUnnamed1255(core.List<api.Tier> o) { | 1274 checkUnnamed1447(core.List<api.Tier> o) { |
| 1275 unittest.expect(o, unittest.hasLength(2)); | 1275 unittest.expect(o, unittest.hasLength(2)); |
| 1276 checkTier(o[0]); | 1276 checkTier(o[0]); |
| 1277 checkTier(o[1]); | 1277 checkTier(o[1]); |
| 1278 } | 1278 } |
| 1279 | 1279 |
| 1280 core.int buildCounterTiersListResponse = 0; | 1280 core.int buildCounterTiersListResponse = 0; |
| 1281 buildTiersListResponse() { | 1281 buildTiersListResponse() { |
| 1282 var o = new api.TiersListResponse(); | 1282 var o = new api.TiersListResponse(); |
| 1283 buildCounterTiersListResponse++; | 1283 buildCounterTiersListResponse++; |
| 1284 if (buildCounterTiersListResponse < 3) { | 1284 if (buildCounterTiersListResponse < 3) { |
| 1285 o.items = buildUnnamed1255(); | 1285 o.items = buildUnnamed1447(); |
| 1286 o.kind = "foo"; | 1286 o.kind = "foo"; |
| 1287 } | 1287 } |
| 1288 buildCounterTiersListResponse--; | 1288 buildCounterTiersListResponse--; |
| 1289 return o; | 1289 return o; |
| 1290 } | 1290 } |
| 1291 | 1291 |
| 1292 checkTiersListResponse(api.TiersListResponse o) { | 1292 checkTiersListResponse(api.TiersListResponse o) { |
| 1293 buildCounterTiersListResponse++; | 1293 buildCounterTiersListResponse++; |
| 1294 if (buildCounterTiersListResponse < 3) { | 1294 if (buildCounterTiersListResponse < 3) { |
| 1295 checkUnnamed1255(o.items); | 1295 checkUnnamed1447(o.items); |
| 1296 unittest.expect(o.kind, unittest.equals('foo')); | 1296 unittest.expect(o.kind, unittest.equals('foo')); |
| 1297 } | 1297 } |
| 1298 buildCounterTiersListResponse--; | 1298 buildCounterTiersListResponse--; |
| 1299 } | 1299 } |
| 1300 | 1300 |
| 1301 | 1301 |
| 1302 main() { | 1302 main() { |
| 1303 unittest.group("obj-schema-BackupConfiguration", () { | 1303 unittest.group("obj-schema-BackupConfiguration", () { |
| 1304 unittest.test("to-json--from-json", () { | 1304 unittest.test("to-json--from-json", () { |
| 1305 var o = buildBackupConfiguration(); | 1305 var o = buildBackupConfiguration(); |
| (...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3174 res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse re
sponse) { | 3174 res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse re
sponse) { |
| 3175 checkTiersListResponse(response); | 3175 checkTiersListResponse(response); |
| 3176 }))); | 3176 }))); |
| 3177 }); | 3177 }); |
| 3178 | 3178 |
| 3179 }); | 3179 }); |
| 3180 | 3180 |
| 3181 | 3181 |
| 3182 } | 3182 } |
| 3183 | 3183 |
| OLD | NEW |