| 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 buildUnnamed1261() { | 81 buildUnnamed1109() { |
| 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 checkUnnamed1261(core.List<api.BackupRun> o) { | 88 checkUnnamed1109(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 = buildUnnamed1261(); | 99 o.items = buildUnnamed1109(); |
| 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 checkUnnamed1261(o.items); | 110 checkUnnamed1109(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 buildUnnamed1262() { | 186 buildUnnamed1110() { |
| 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 checkUnnamed1262(core.List<api.IpMapping> o) { | 193 checkUnnamed1110(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 buildUnnamed1263() { | 199 buildUnnamed1111() { |
| 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 checkUnnamed1263(core.List<core.String> o) { | 206 checkUnnamed1111(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 = buildUnnamed1262(); | 222 o.ipAddresses = buildUnnamed1110(); |
| 223 o.kind = "foo"; | 223 o.kind = "foo"; |
| 224 o.masterInstanceName = "foo"; | 224 o.masterInstanceName = "foo"; |
| 225 o.maxDiskSize = "foo"; | 225 o.maxDiskSize = "foo"; |
| 226 o.project = "foo"; | 226 o.project = "foo"; |
| 227 o.region = "foo"; | 227 o.region = "foo"; |
| 228 o.replicaNames = buildUnnamed1263(); | 228 o.replicaNames = buildUnnamed1111(); |
| 229 o.serverCaCert = buildSslCert(); | 229 o.serverCaCert = buildSslCert(); |
| 230 o.settings = buildSettings(); | 230 o.settings = buildSettings(); |
| 231 o.state = "foo"; | 231 o.state = "foo"; |
| 232 } | 232 } |
| 233 buildCounterDatabaseInstance--; | 233 buildCounterDatabaseInstance--; |
| 234 return o; | 234 return o; |
| 235 } | 235 } |
| 236 | 236 |
| 237 checkDatabaseInstance(api.DatabaseInstance o) { | 237 checkDatabaseInstance(api.DatabaseInstance o) { |
| 238 buildCounterDatabaseInstance++; | 238 buildCounterDatabaseInstance++; |
| 239 if (buildCounterDatabaseInstance < 3) { | 239 if (buildCounterDatabaseInstance < 3) { |
| 240 unittest.expect(o.currentDiskSize, unittest.equals('foo')); | 240 unittest.expect(o.currentDiskSize, unittest.equals('foo')); |
| 241 unittest.expect(o.databaseVersion, unittest.equals('foo')); | 241 unittest.expect(o.databaseVersion, unittest.equals('foo')); |
| 242 unittest.expect(o.etag, unittest.equals('foo')); | 242 unittest.expect(o.etag, unittest.equals('foo')); |
| 243 unittest.expect(o.instance, unittest.equals('foo')); | 243 unittest.expect(o.instance, unittest.equals('foo')); |
| 244 unittest.expect(o.instanceType, unittest.equals('foo')); | 244 unittest.expect(o.instanceType, unittest.equals('foo')); |
| 245 checkUnnamed1262(o.ipAddresses); | 245 checkUnnamed1110(o.ipAddresses); |
| 246 unittest.expect(o.kind, unittest.equals('foo')); | 246 unittest.expect(o.kind, unittest.equals('foo')); |
| 247 unittest.expect(o.masterInstanceName, unittest.equals('foo')); | 247 unittest.expect(o.masterInstanceName, unittest.equals('foo')); |
| 248 unittest.expect(o.maxDiskSize, unittest.equals('foo')); | 248 unittest.expect(o.maxDiskSize, unittest.equals('foo')); |
| 249 unittest.expect(o.project, unittest.equals('foo')); | 249 unittest.expect(o.project, unittest.equals('foo')); |
| 250 unittest.expect(o.region, unittest.equals('foo')); | 250 unittest.expect(o.region, unittest.equals('foo')); |
| 251 checkUnnamed1263(o.replicaNames); | 251 checkUnnamed1111(o.replicaNames); |
| 252 checkSslCert(o.serverCaCert); | 252 checkSslCert(o.serverCaCert); |
| 253 checkSettings(o.settings); | 253 checkSettings(o.settings); |
| 254 unittest.expect(o.state, unittest.equals('foo')); | 254 unittest.expect(o.state, unittest.equals('foo')); |
| 255 } | 255 } |
| 256 buildCounterDatabaseInstance--; | 256 buildCounterDatabaseInstance--; |
| 257 } | 257 } |
| 258 | 258 |
| 259 buildUnnamed1264() { | 259 buildUnnamed1112() { |
| 260 var o = new core.List<core.String>(); | 260 var o = new core.List<core.String>(); |
| 261 o.add("foo"); | 261 o.add("foo"); |
| 262 o.add("foo"); | 262 o.add("foo"); |
| 263 return o; | 263 return o; |
| 264 } | 264 } |
| 265 | 265 |
| 266 checkUnnamed1264(core.List<core.String> o) { | 266 checkUnnamed1112(core.List<core.String> o) { |
| 267 unittest.expect(o, unittest.hasLength(2)); | 267 unittest.expect(o, unittest.hasLength(2)); |
| 268 unittest.expect(o[0], unittest.equals('foo')); | 268 unittest.expect(o[0], unittest.equals('foo')); |
| 269 unittest.expect(o[1], unittest.equals('foo')); | 269 unittest.expect(o[1], unittest.equals('foo')); |
| 270 } | 270 } |
| 271 | 271 |
| 272 buildUnnamed1265() { | 272 buildUnnamed1113() { |
| 273 var o = new core.List<core.String>(); | 273 var o = new core.List<core.String>(); |
| 274 o.add("foo"); | 274 o.add("foo"); |
| 275 o.add("foo"); | 275 o.add("foo"); |
| 276 return o; | 276 return o; |
| 277 } | 277 } |
| 278 | 278 |
| 279 checkUnnamed1265(core.List<core.String> o) { | 279 checkUnnamed1113(core.List<core.String> o) { |
| 280 unittest.expect(o, unittest.hasLength(2)); | 280 unittest.expect(o, unittest.hasLength(2)); |
| 281 unittest.expect(o[0], unittest.equals('foo')); | 281 unittest.expect(o[0], unittest.equals('foo')); |
| 282 unittest.expect(o[1], unittest.equals('foo')); | 282 unittest.expect(o[1], unittest.equals('foo')); |
| 283 } | 283 } |
| 284 | 284 |
| 285 core.int buildCounterExportContext = 0; | 285 core.int buildCounterExportContext = 0; |
| 286 buildExportContext() { | 286 buildExportContext() { |
| 287 var o = new api.ExportContext(); | 287 var o = new api.ExportContext(); |
| 288 buildCounterExportContext++; | 288 buildCounterExportContext++; |
| 289 if (buildCounterExportContext < 3) { | 289 if (buildCounterExportContext < 3) { |
| 290 o.database = buildUnnamed1264(); | 290 o.database = buildUnnamed1112(); |
| 291 o.kind = "foo"; | 291 o.kind = "foo"; |
| 292 o.table = buildUnnamed1265(); | 292 o.table = buildUnnamed1113(); |
| 293 o.uri = "foo"; | 293 o.uri = "foo"; |
| 294 } | 294 } |
| 295 buildCounterExportContext--; | 295 buildCounterExportContext--; |
| 296 return o; | 296 return o; |
| 297 } | 297 } |
| 298 | 298 |
| 299 checkExportContext(api.ExportContext o) { | 299 checkExportContext(api.ExportContext o) { |
| 300 buildCounterExportContext++; | 300 buildCounterExportContext++; |
| 301 if (buildCounterExportContext < 3) { | 301 if (buildCounterExportContext < 3) { |
| 302 checkUnnamed1264(o.database); | 302 checkUnnamed1112(o.database); |
| 303 unittest.expect(o.kind, unittest.equals('foo')); | 303 unittest.expect(o.kind, unittest.equals('foo')); |
| 304 checkUnnamed1265(o.table); | 304 checkUnnamed1113(o.table); |
| 305 unittest.expect(o.uri, unittest.equals('foo')); | 305 unittest.expect(o.uri, unittest.equals('foo')); |
| 306 } | 306 } |
| 307 buildCounterExportContext--; | 307 buildCounterExportContext--; |
| 308 } | 308 } |
| 309 | 309 |
| 310 buildUnnamed1266() { | 310 buildUnnamed1114() { |
| 311 var o = new core.List<core.String>(); | 311 var o = new core.List<core.String>(); |
| 312 o.add("foo"); | 312 o.add("foo"); |
| 313 o.add("foo"); | 313 o.add("foo"); |
| 314 return o; | 314 return o; |
| 315 } | 315 } |
| 316 | 316 |
| 317 checkUnnamed1266(core.List<core.String> o) { | 317 checkUnnamed1114(core.List<core.String> o) { |
| 318 unittest.expect(o, unittest.hasLength(2)); | 318 unittest.expect(o, unittest.hasLength(2)); |
| 319 unittest.expect(o[0], unittest.equals('foo')); | 319 unittest.expect(o[0], unittest.equals('foo')); |
| 320 unittest.expect(o[1], unittest.equals('foo')); | 320 unittest.expect(o[1], unittest.equals('foo')); |
| 321 } | 321 } |
| 322 | 322 |
| 323 buildUnnamed1267() { | 323 buildUnnamed1115() { |
| 324 var o = new core.List<core.String>(); | 324 var o = new core.List<core.String>(); |
| 325 o.add("foo"); | 325 o.add("foo"); |
| 326 o.add("foo"); | 326 o.add("foo"); |
| 327 return o; | 327 return o; |
| 328 } | 328 } |
| 329 | 329 |
| 330 checkUnnamed1267(core.List<core.String> o) { | 330 checkUnnamed1115(core.List<core.String> o) { |
| 331 unittest.expect(o, unittest.hasLength(2)); | 331 unittest.expect(o, unittest.hasLength(2)); |
| 332 unittest.expect(o[0], unittest.equals('foo')); | 332 unittest.expect(o[0], unittest.equals('foo')); |
| 333 unittest.expect(o[1], unittest.equals('foo')); | 333 unittest.expect(o[1], unittest.equals('foo')); |
| 334 } | 334 } |
| 335 | 335 |
| 336 core.int buildCounterFlag = 0; | 336 core.int buildCounterFlag = 0; |
| 337 buildFlag() { | 337 buildFlag() { |
| 338 var o = new api.Flag(); | 338 var o = new api.Flag(); |
| 339 buildCounterFlag++; | 339 buildCounterFlag++; |
| 340 if (buildCounterFlag < 3) { | 340 if (buildCounterFlag < 3) { |
| 341 o.allowedStringValues = buildUnnamed1266(); | 341 o.allowedStringValues = buildUnnamed1114(); |
| 342 o.appliesTo = buildUnnamed1267(); | 342 o.appliesTo = buildUnnamed1115(); |
| 343 o.kind = "foo"; | 343 o.kind = "foo"; |
| 344 o.maxValue = "foo"; | 344 o.maxValue = "foo"; |
| 345 o.minValue = "foo"; | 345 o.minValue = "foo"; |
| 346 o.name = "foo"; | 346 o.name = "foo"; |
| 347 o.type = "foo"; | 347 o.type = "foo"; |
| 348 } | 348 } |
| 349 buildCounterFlag--; | 349 buildCounterFlag--; |
| 350 return o; | 350 return o; |
| 351 } | 351 } |
| 352 | 352 |
| 353 checkFlag(api.Flag o) { | 353 checkFlag(api.Flag o) { |
| 354 buildCounterFlag++; | 354 buildCounterFlag++; |
| 355 if (buildCounterFlag < 3) { | 355 if (buildCounterFlag < 3) { |
| 356 checkUnnamed1266(o.allowedStringValues); | 356 checkUnnamed1114(o.allowedStringValues); |
| 357 checkUnnamed1267(o.appliesTo); | 357 checkUnnamed1115(o.appliesTo); |
| 358 unittest.expect(o.kind, unittest.equals('foo')); | 358 unittest.expect(o.kind, unittest.equals('foo')); |
| 359 unittest.expect(o.maxValue, unittest.equals('foo')); | 359 unittest.expect(o.maxValue, unittest.equals('foo')); |
| 360 unittest.expect(o.minValue, unittest.equals('foo')); | 360 unittest.expect(o.minValue, unittest.equals('foo')); |
| 361 unittest.expect(o.name, unittest.equals('foo')); | 361 unittest.expect(o.name, unittest.equals('foo')); |
| 362 unittest.expect(o.type, unittest.equals('foo')); | 362 unittest.expect(o.type, unittest.equals('foo')); |
| 363 } | 363 } |
| 364 buildCounterFlag--; | 364 buildCounterFlag--; |
| 365 } | 365 } |
| 366 | 366 |
| 367 buildUnnamed1268() { | 367 buildUnnamed1116() { |
| 368 var o = new core.List<api.Flag>(); | 368 var o = new core.List<api.Flag>(); |
| 369 o.add(buildFlag()); | 369 o.add(buildFlag()); |
| 370 o.add(buildFlag()); | 370 o.add(buildFlag()); |
| 371 return o; | 371 return o; |
| 372 } | 372 } |
| 373 | 373 |
| 374 checkUnnamed1268(core.List<api.Flag> o) { | 374 checkUnnamed1116(core.List<api.Flag> o) { |
| 375 unittest.expect(o, unittest.hasLength(2)); | 375 unittest.expect(o, unittest.hasLength(2)); |
| 376 checkFlag(o[0]); | 376 checkFlag(o[0]); |
| 377 checkFlag(o[1]); | 377 checkFlag(o[1]); |
| 378 } | 378 } |
| 379 | 379 |
| 380 core.int buildCounterFlagsListResponse = 0; | 380 core.int buildCounterFlagsListResponse = 0; |
| 381 buildFlagsListResponse() { | 381 buildFlagsListResponse() { |
| 382 var o = new api.FlagsListResponse(); | 382 var o = new api.FlagsListResponse(); |
| 383 buildCounterFlagsListResponse++; | 383 buildCounterFlagsListResponse++; |
| 384 if (buildCounterFlagsListResponse < 3) { | 384 if (buildCounterFlagsListResponse < 3) { |
| 385 o.items = buildUnnamed1268(); | 385 o.items = buildUnnamed1116(); |
| 386 o.kind = "foo"; | 386 o.kind = "foo"; |
| 387 } | 387 } |
| 388 buildCounterFlagsListResponse--; | 388 buildCounterFlagsListResponse--; |
| 389 return o; | 389 return o; |
| 390 } | 390 } |
| 391 | 391 |
| 392 checkFlagsListResponse(api.FlagsListResponse o) { | 392 checkFlagsListResponse(api.FlagsListResponse o) { |
| 393 buildCounterFlagsListResponse++; | 393 buildCounterFlagsListResponse++; |
| 394 if (buildCounterFlagsListResponse < 3) { | 394 if (buildCounterFlagsListResponse < 3) { |
| 395 checkUnnamed1268(o.items); | 395 checkUnnamed1116(o.items); |
| 396 unittest.expect(o.kind, unittest.equals('foo')); | 396 unittest.expect(o.kind, unittest.equals('foo')); |
| 397 } | 397 } |
| 398 buildCounterFlagsListResponse--; | 398 buildCounterFlagsListResponse--; |
| 399 } | 399 } |
| 400 | 400 |
| 401 buildUnnamed1269() { | 401 buildUnnamed1117() { |
| 402 var o = new core.List<core.String>(); | 402 var o = new core.List<core.String>(); |
| 403 o.add("foo"); | 403 o.add("foo"); |
| 404 o.add("foo"); | 404 o.add("foo"); |
| 405 return o; | 405 return o; |
| 406 } | 406 } |
| 407 | 407 |
| 408 checkUnnamed1269(core.List<core.String> o) { | 408 checkUnnamed1117(core.List<core.String> o) { |
| 409 unittest.expect(o, unittest.hasLength(2)); | 409 unittest.expect(o, unittest.hasLength(2)); |
| 410 unittest.expect(o[0], unittest.equals('foo')); | 410 unittest.expect(o[0], unittest.equals('foo')); |
| 411 unittest.expect(o[1], unittest.equals('foo')); | 411 unittest.expect(o[1], unittest.equals('foo')); |
| 412 } | 412 } |
| 413 | 413 |
| 414 core.int buildCounterImportContext = 0; | 414 core.int buildCounterImportContext = 0; |
| 415 buildImportContext() { | 415 buildImportContext() { |
| 416 var o = new api.ImportContext(); | 416 var o = new api.ImportContext(); |
| 417 buildCounterImportContext++; | 417 buildCounterImportContext++; |
| 418 if (buildCounterImportContext < 3) { | 418 if (buildCounterImportContext < 3) { |
| 419 o.database = "foo"; | 419 o.database = "foo"; |
| 420 o.kind = "foo"; | 420 o.kind = "foo"; |
| 421 o.uri = buildUnnamed1269(); | 421 o.uri = buildUnnamed1117(); |
| 422 } | 422 } |
| 423 buildCounterImportContext--; | 423 buildCounterImportContext--; |
| 424 return o; | 424 return o; |
| 425 } | 425 } |
| 426 | 426 |
| 427 checkImportContext(api.ImportContext o) { | 427 checkImportContext(api.ImportContext o) { |
| 428 buildCounterImportContext++; | 428 buildCounterImportContext++; |
| 429 if (buildCounterImportContext < 3) { | 429 if (buildCounterImportContext < 3) { |
| 430 unittest.expect(o.database, unittest.equals('foo')); | 430 unittest.expect(o.database, unittest.equals('foo')); |
| 431 unittest.expect(o.kind, unittest.equals('foo')); | 431 unittest.expect(o.kind, unittest.equals('foo')); |
| 432 checkUnnamed1269(o.uri); | 432 checkUnnamed1117(o.uri); |
| 433 } | 433 } |
| 434 buildCounterImportContext--; | 434 buildCounterImportContext--; |
| 435 } | 435 } |
| 436 | 436 |
| 437 buildUnnamed1270() { | 437 buildUnnamed1118() { |
| 438 var o = new core.List<api.OperationError>(); | 438 var o = new core.List<api.OperationError>(); |
| 439 o.add(buildOperationError()); | 439 o.add(buildOperationError()); |
| 440 o.add(buildOperationError()); | 440 o.add(buildOperationError()); |
| 441 return o; | 441 return o; |
| 442 } | 442 } |
| 443 | 443 |
| 444 checkUnnamed1270(core.List<api.OperationError> o) { | 444 checkUnnamed1118(core.List<api.OperationError> o) { |
| 445 unittest.expect(o, unittest.hasLength(2)); | 445 unittest.expect(o, unittest.hasLength(2)); |
| 446 checkOperationError(o[0]); | 446 checkOperationError(o[0]); |
| 447 checkOperationError(o[1]); | 447 checkOperationError(o[1]); |
| 448 } | 448 } |
| 449 | 449 |
| 450 core.int buildCounterInstanceOperation = 0; | 450 core.int buildCounterInstanceOperation = 0; |
| 451 buildInstanceOperation() { | 451 buildInstanceOperation() { |
| 452 var o = new api.InstanceOperation(); | 452 var o = new api.InstanceOperation(); |
| 453 buildCounterInstanceOperation++; | 453 buildCounterInstanceOperation++; |
| 454 if (buildCounterInstanceOperation < 3) { | 454 if (buildCounterInstanceOperation < 3) { |
| 455 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); | 455 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 456 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 456 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 457 o.error = buildUnnamed1270(); | 457 o.error = buildUnnamed1118(); |
| 458 o.exportContext = buildExportContext(); | 458 o.exportContext = buildExportContext(); |
| 459 o.importContext = buildImportContext(); | 459 o.importContext = buildImportContext(); |
| 460 o.instance = "foo"; | 460 o.instance = "foo"; |
| 461 o.kind = "foo"; | 461 o.kind = "foo"; |
| 462 o.operation = "foo"; | 462 o.operation = "foo"; |
| 463 o.operationType = "foo"; | 463 o.operationType = "foo"; |
| 464 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); | 464 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); |
| 465 o.state = "foo"; | 465 o.state = "foo"; |
| 466 o.userEmailAddress = "foo"; | 466 o.userEmailAddress = "foo"; |
| 467 } | 467 } |
| 468 buildCounterInstanceOperation--; | 468 buildCounterInstanceOperation--; |
| 469 return o; | 469 return o; |
| 470 } | 470 } |
| 471 | 471 |
| 472 checkInstanceOperation(api.InstanceOperation o) { | 472 checkInstanceOperation(api.InstanceOperation o) { |
| 473 buildCounterInstanceOperation++; | 473 buildCounterInstanceOperation++; |
| 474 if (buildCounterInstanceOperation < 3) { | 474 if (buildCounterInstanceOperation < 3) { |
| 475 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 475 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 476 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 476 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
| 477 checkUnnamed1270(o.error); | 477 checkUnnamed1118(o.error); |
| 478 checkExportContext(o.exportContext); | 478 checkExportContext(o.exportContext); |
| 479 checkImportContext(o.importContext); | 479 checkImportContext(o.importContext); |
| 480 unittest.expect(o.instance, unittest.equals('foo')); | 480 unittest.expect(o.instance, unittest.equals('foo')); |
| 481 unittest.expect(o.kind, unittest.equals('foo')); | 481 unittest.expect(o.kind, unittest.equals('foo')); |
| 482 unittest.expect(o.operation, unittest.equals('foo')); | 482 unittest.expect(o.operation, unittest.equals('foo')); |
| 483 unittest.expect(o.operationType, unittest.equals('foo')); | 483 unittest.expect(o.operationType, unittest.equals('foo')); |
| 484 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 484 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
| 485 unittest.expect(o.state, unittest.equals('foo')); | 485 unittest.expect(o.state, unittest.equals('foo')); |
| 486 unittest.expect(o.userEmailAddress, unittest.equals('foo')); | 486 unittest.expect(o.userEmailAddress, unittest.equals('foo')); |
| 487 } | 487 } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 662 | 662 |
| 663 checkInstancesInsertResponse(api.InstancesInsertResponse o) { | 663 checkInstancesInsertResponse(api.InstancesInsertResponse o) { |
| 664 buildCounterInstancesInsertResponse++; | 664 buildCounterInstancesInsertResponse++; |
| 665 if (buildCounterInstancesInsertResponse < 3) { | 665 if (buildCounterInstancesInsertResponse < 3) { |
| 666 unittest.expect(o.kind, unittest.equals('foo')); | 666 unittest.expect(o.kind, unittest.equals('foo')); |
| 667 unittest.expect(o.operation, unittest.equals('foo')); | 667 unittest.expect(o.operation, unittest.equals('foo')); |
| 668 } | 668 } |
| 669 buildCounterInstancesInsertResponse--; | 669 buildCounterInstancesInsertResponse--; |
| 670 } | 670 } |
| 671 | 671 |
| 672 buildUnnamed1271() { | 672 buildUnnamed1119() { |
| 673 var o = new core.List<api.DatabaseInstance>(); | 673 var o = new core.List<api.DatabaseInstance>(); |
| 674 o.add(buildDatabaseInstance()); | 674 o.add(buildDatabaseInstance()); |
| 675 o.add(buildDatabaseInstance()); | 675 o.add(buildDatabaseInstance()); |
| 676 return o; | 676 return o; |
| 677 } | 677 } |
| 678 | 678 |
| 679 checkUnnamed1271(core.List<api.DatabaseInstance> o) { | 679 checkUnnamed1119(core.List<api.DatabaseInstance> o) { |
| 680 unittest.expect(o, unittest.hasLength(2)); | 680 unittest.expect(o, unittest.hasLength(2)); |
| 681 checkDatabaseInstance(o[0]); | 681 checkDatabaseInstance(o[0]); |
| 682 checkDatabaseInstance(o[1]); | 682 checkDatabaseInstance(o[1]); |
| 683 } | 683 } |
| 684 | 684 |
| 685 core.int buildCounterInstancesListResponse = 0; | 685 core.int buildCounterInstancesListResponse = 0; |
| 686 buildInstancesListResponse() { | 686 buildInstancesListResponse() { |
| 687 var o = new api.InstancesListResponse(); | 687 var o = new api.InstancesListResponse(); |
| 688 buildCounterInstancesListResponse++; | 688 buildCounterInstancesListResponse++; |
| 689 if (buildCounterInstancesListResponse < 3) { | 689 if (buildCounterInstancesListResponse < 3) { |
| 690 o.items = buildUnnamed1271(); | 690 o.items = buildUnnamed1119(); |
| 691 o.kind = "foo"; | 691 o.kind = "foo"; |
| 692 o.nextPageToken = "foo"; | 692 o.nextPageToken = "foo"; |
| 693 } | 693 } |
| 694 buildCounterInstancesListResponse--; | 694 buildCounterInstancesListResponse--; |
| 695 return o; | 695 return o; |
| 696 } | 696 } |
| 697 | 697 |
| 698 checkInstancesListResponse(api.InstancesListResponse o) { | 698 checkInstancesListResponse(api.InstancesListResponse o) { |
| 699 buildCounterInstancesListResponse++; | 699 buildCounterInstancesListResponse++; |
| 700 if (buildCounterInstancesListResponse < 3) { | 700 if (buildCounterInstancesListResponse < 3) { |
| 701 checkUnnamed1271(o.items); | 701 checkUnnamed1119(o.items); |
| 702 unittest.expect(o.kind, unittest.equals('foo')); | 702 unittest.expect(o.kind, unittest.equals('foo')); |
| 703 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 703 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 704 } | 704 } |
| 705 buildCounterInstancesListResponse--; | 705 buildCounterInstancesListResponse--; |
| 706 } | 706 } |
| 707 | 707 |
| 708 core.int buildCounterInstancesPromoteReplicaResponse = 0; | 708 core.int buildCounterInstancesPromoteReplicaResponse = 0; |
| 709 buildInstancesPromoteReplicaResponse() { | 709 buildInstancesPromoteReplicaResponse() { |
| 710 var o = new api.InstancesPromoteReplicaResponse(); | 710 var o = new api.InstancesPromoteReplicaResponse(); |
| 711 buildCounterInstancesPromoteReplicaResponse++; | 711 buildCounterInstancesPromoteReplicaResponse++; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 | 824 |
| 825 checkInstancesUpdateResponse(api.InstancesUpdateResponse o) { | 825 checkInstancesUpdateResponse(api.InstancesUpdateResponse o) { |
| 826 buildCounterInstancesUpdateResponse++; | 826 buildCounterInstancesUpdateResponse++; |
| 827 if (buildCounterInstancesUpdateResponse < 3) { | 827 if (buildCounterInstancesUpdateResponse < 3) { |
| 828 unittest.expect(o.kind, unittest.equals('foo')); | 828 unittest.expect(o.kind, unittest.equals('foo')); |
| 829 unittest.expect(o.operation, unittest.equals('foo')); | 829 unittest.expect(o.operation, unittest.equals('foo')); |
| 830 } | 830 } |
| 831 buildCounterInstancesUpdateResponse--; | 831 buildCounterInstancesUpdateResponse--; |
| 832 } | 832 } |
| 833 | 833 |
| 834 buildUnnamed1272() { | 834 buildUnnamed1120() { |
| 835 var o = new core.List<core.String>(); | 835 var o = new core.List<core.String>(); |
| 836 o.add("foo"); | 836 o.add("foo"); |
| 837 o.add("foo"); | 837 o.add("foo"); |
| 838 return o; | 838 return o; |
| 839 } | 839 } |
| 840 | 840 |
| 841 checkUnnamed1272(core.List<core.String> o) { | 841 checkUnnamed1120(core.List<core.String> o) { |
| 842 unittest.expect(o, unittest.hasLength(2)); | 842 unittest.expect(o, unittest.hasLength(2)); |
| 843 unittest.expect(o[0], unittest.equals('foo')); | 843 unittest.expect(o[0], unittest.equals('foo')); |
| 844 unittest.expect(o[1], unittest.equals('foo')); | 844 unittest.expect(o[1], unittest.equals('foo')); |
| 845 } | 845 } |
| 846 | 846 |
| 847 core.int buildCounterIpConfiguration = 0; | 847 core.int buildCounterIpConfiguration = 0; |
| 848 buildIpConfiguration() { | 848 buildIpConfiguration() { |
| 849 var o = new api.IpConfiguration(); | 849 var o = new api.IpConfiguration(); |
| 850 buildCounterIpConfiguration++; | 850 buildCounterIpConfiguration++; |
| 851 if (buildCounterIpConfiguration < 3) { | 851 if (buildCounterIpConfiguration < 3) { |
| 852 o.authorizedNetworks = buildUnnamed1272(); | 852 o.authorizedNetworks = buildUnnamed1120(); |
| 853 o.enabled = true; | 853 o.enabled = true; |
| 854 o.requireSsl = true; | 854 o.requireSsl = true; |
| 855 } | 855 } |
| 856 buildCounterIpConfiguration--; | 856 buildCounterIpConfiguration--; |
| 857 return o; | 857 return o; |
| 858 } | 858 } |
| 859 | 859 |
| 860 checkIpConfiguration(api.IpConfiguration o) { | 860 checkIpConfiguration(api.IpConfiguration o) { |
| 861 buildCounterIpConfiguration++; | 861 buildCounterIpConfiguration++; |
| 862 if (buildCounterIpConfiguration < 3) { | 862 if (buildCounterIpConfiguration < 3) { |
| 863 checkUnnamed1272(o.authorizedNetworks); | 863 checkUnnamed1120(o.authorizedNetworks); |
| 864 unittest.expect(o.enabled, unittest.isTrue); | 864 unittest.expect(o.enabled, unittest.isTrue); |
| 865 unittest.expect(o.requireSsl, unittest.isTrue); | 865 unittest.expect(o.requireSsl, unittest.isTrue); |
| 866 } | 866 } |
| 867 buildCounterIpConfiguration--; | 867 buildCounterIpConfiguration--; |
| 868 } | 868 } |
| 869 | 869 |
| 870 core.int buildCounterIpMapping = 0; | 870 core.int buildCounterIpMapping = 0; |
| 871 buildIpMapping() { | 871 buildIpMapping() { |
| 872 var o = new api.IpMapping(); | 872 var o = new api.IpMapping(); |
| 873 buildCounterIpMapping++; | 873 buildCounterIpMapping++; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 | 925 |
| 926 checkOperationError(api.OperationError o) { | 926 checkOperationError(api.OperationError o) { |
| 927 buildCounterOperationError++; | 927 buildCounterOperationError++; |
| 928 if (buildCounterOperationError < 3) { | 928 if (buildCounterOperationError < 3) { |
| 929 unittest.expect(o.code, unittest.equals('foo')); | 929 unittest.expect(o.code, unittest.equals('foo')); |
| 930 unittest.expect(o.kind, unittest.equals('foo')); | 930 unittest.expect(o.kind, unittest.equals('foo')); |
| 931 } | 931 } |
| 932 buildCounterOperationError--; | 932 buildCounterOperationError--; |
| 933 } | 933 } |
| 934 | 934 |
| 935 buildUnnamed1273() { | 935 buildUnnamed1121() { |
| 936 var o = new core.List<api.InstanceOperation>(); | 936 var o = new core.List<api.InstanceOperation>(); |
| 937 o.add(buildInstanceOperation()); | 937 o.add(buildInstanceOperation()); |
| 938 o.add(buildInstanceOperation()); | 938 o.add(buildInstanceOperation()); |
| 939 return o; | 939 return o; |
| 940 } | 940 } |
| 941 | 941 |
| 942 checkUnnamed1273(core.List<api.InstanceOperation> o) { | 942 checkUnnamed1121(core.List<api.InstanceOperation> o) { |
| 943 unittest.expect(o, unittest.hasLength(2)); | 943 unittest.expect(o, unittest.hasLength(2)); |
| 944 checkInstanceOperation(o[0]); | 944 checkInstanceOperation(o[0]); |
| 945 checkInstanceOperation(o[1]); | 945 checkInstanceOperation(o[1]); |
| 946 } | 946 } |
| 947 | 947 |
| 948 core.int buildCounterOperationsListResponse = 0; | 948 core.int buildCounterOperationsListResponse = 0; |
| 949 buildOperationsListResponse() { | 949 buildOperationsListResponse() { |
| 950 var o = new api.OperationsListResponse(); | 950 var o = new api.OperationsListResponse(); |
| 951 buildCounterOperationsListResponse++; | 951 buildCounterOperationsListResponse++; |
| 952 if (buildCounterOperationsListResponse < 3) { | 952 if (buildCounterOperationsListResponse < 3) { |
| 953 o.items = buildUnnamed1273(); | 953 o.items = buildUnnamed1121(); |
| 954 o.kind = "foo"; | 954 o.kind = "foo"; |
| 955 o.nextPageToken = "foo"; | 955 o.nextPageToken = "foo"; |
| 956 } | 956 } |
| 957 buildCounterOperationsListResponse--; | 957 buildCounterOperationsListResponse--; |
| 958 return o; | 958 return o; |
| 959 } | 959 } |
| 960 | 960 |
| 961 checkOperationsListResponse(api.OperationsListResponse o) { | 961 checkOperationsListResponse(api.OperationsListResponse o) { |
| 962 buildCounterOperationsListResponse++; | 962 buildCounterOperationsListResponse++; |
| 963 if (buildCounterOperationsListResponse < 3) { | 963 if (buildCounterOperationsListResponse < 3) { |
| 964 checkUnnamed1273(o.items); | 964 checkUnnamed1121(o.items); |
| 965 unittest.expect(o.kind, unittest.equals('foo')); | 965 unittest.expect(o.kind, unittest.equals('foo')); |
| 966 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 966 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 967 } | 967 } |
| 968 buildCounterOperationsListResponse--; | 968 buildCounterOperationsListResponse--; |
| 969 } | 969 } |
| 970 | 970 |
| 971 core.int buildCounterSetRootPasswordContext = 0; | 971 core.int buildCounterSetRootPasswordContext = 0; |
| 972 buildSetRootPasswordContext() { | 972 buildSetRootPasswordContext() { |
| 973 var o = new api.SetRootPasswordContext(); | 973 var o = new api.SetRootPasswordContext(); |
| 974 buildCounterSetRootPasswordContext++; | 974 buildCounterSetRootPasswordContext++; |
| 975 if (buildCounterSetRootPasswordContext < 3) { | 975 if (buildCounterSetRootPasswordContext < 3) { |
| 976 o.kind = "foo"; | 976 o.kind = "foo"; |
| 977 o.password = "foo"; | 977 o.password = "foo"; |
| 978 } | 978 } |
| 979 buildCounterSetRootPasswordContext--; | 979 buildCounterSetRootPasswordContext--; |
| 980 return o; | 980 return o; |
| 981 } | 981 } |
| 982 | 982 |
| 983 checkSetRootPasswordContext(api.SetRootPasswordContext o) { | 983 checkSetRootPasswordContext(api.SetRootPasswordContext o) { |
| 984 buildCounterSetRootPasswordContext++; | 984 buildCounterSetRootPasswordContext++; |
| 985 if (buildCounterSetRootPasswordContext < 3) { | 985 if (buildCounterSetRootPasswordContext < 3) { |
| 986 unittest.expect(o.kind, unittest.equals('foo')); | 986 unittest.expect(o.kind, unittest.equals('foo')); |
| 987 unittest.expect(o.password, unittest.equals('foo')); | 987 unittest.expect(o.password, unittest.equals('foo')); |
| 988 } | 988 } |
| 989 buildCounterSetRootPasswordContext--; | 989 buildCounterSetRootPasswordContext--; |
| 990 } | 990 } |
| 991 | 991 |
| 992 buildUnnamed1274() { | 992 buildUnnamed1122() { |
| 993 var o = new core.List<core.String>(); | 993 var o = new core.List<core.String>(); |
| 994 o.add("foo"); | 994 o.add("foo"); |
| 995 o.add("foo"); | 995 o.add("foo"); |
| 996 return o; | 996 return o; |
| 997 } | 997 } |
| 998 | 998 |
| 999 checkUnnamed1274(core.List<core.String> o) { | 999 checkUnnamed1122(core.List<core.String> o) { |
| 1000 unittest.expect(o, unittest.hasLength(2)); | 1000 unittest.expect(o, unittest.hasLength(2)); |
| 1001 unittest.expect(o[0], unittest.equals('foo')); | 1001 unittest.expect(o[0], unittest.equals('foo')); |
| 1002 unittest.expect(o[1], unittest.equals('foo')); | 1002 unittest.expect(o[1], unittest.equals('foo')); |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 buildUnnamed1275() { | 1005 buildUnnamed1123() { |
| 1006 var o = new core.List<api.BackupConfiguration>(); | 1006 var o = new core.List<api.BackupConfiguration>(); |
| 1007 o.add(buildBackupConfiguration()); | 1007 o.add(buildBackupConfiguration()); |
| 1008 o.add(buildBackupConfiguration()); | 1008 o.add(buildBackupConfiguration()); |
| 1009 return o; | 1009 return o; |
| 1010 } | 1010 } |
| 1011 | 1011 |
| 1012 checkUnnamed1275(core.List<api.BackupConfiguration> o) { | 1012 checkUnnamed1123(core.List<api.BackupConfiguration> o) { |
| 1013 unittest.expect(o, unittest.hasLength(2)); | 1013 unittest.expect(o, unittest.hasLength(2)); |
| 1014 checkBackupConfiguration(o[0]); | 1014 checkBackupConfiguration(o[0]); |
| 1015 checkBackupConfiguration(o[1]); | 1015 checkBackupConfiguration(o[1]); |
| 1016 } | 1016 } |
| 1017 | 1017 |
| 1018 buildUnnamed1276() { | 1018 buildUnnamed1124() { |
| 1019 var o = new core.List<api.DatabaseFlags>(); | 1019 var o = new core.List<api.DatabaseFlags>(); |
| 1020 o.add(buildDatabaseFlags()); | 1020 o.add(buildDatabaseFlags()); |
| 1021 o.add(buildDatabaseFlags()); | 1021 o.add(buildDatabaseFlags()); |
| 1022 return o; | 1022 return o; |
| 1023 } | 1023 } |
| 1024 | 1024 |
| 1025 checkUnnamed1276(core.List<api.DatabaseFlags> o) { | 1025 checkUnnamed1124(core.List<api.DatabaseFlags> o) { |
| 1026 unittest.expect(o, unittest.hasLength(2)); | 1026 unittest.expect(o, unittest.hasLength(2)); |
| 1027 checkDatabaseFlags(o[0]); | 1027 checkDatabaseFlags(o[0]); |
| 1028 checkDatabaseFlags(o[1]); | 1028 checkDatabaseFlags(o[1]); |
| 1029 } | 1029 } |
| 1030 | 1030 |
| 1031 core.int buildCounterSettings = 0; | 1031 core.int buildCounterSettings = 0; |
| 1032 buildSettings() { | 1032 buildSettings() { |
| 1033 var o = new api.Settings(); | 1033 var o = new api.Settings(); |
| 1034 buildCounterSettings++; | 1034 buildCounterSettings++; |
| 1035 if (buildCounterSettings < 3) { | 1035 if (buildCounterSettings < 3) { |
| 1036 o.activationPolicy = "foo"; | 1036 o.activationPolicy = "foo"; |
| 1037 o.authorizedGaeApplications = buildUnnamed1274(); | 1037 o.authorizedGaeApplications = buildUnnamed1122(); |
| 1038 o.backupConfiguration = buildUnnamed1275(); | 1038 o.backupConfiguration = buildUnnamed1123(); |
| 1039 o.databaseFlags = buildUnnamed1276(); | 1039 o.databaseFlags = buildUnnamed1124(); |
| 1040 o.databaseReplicationEnabled = true; | 1040 o.databaseReplicationEnabled = true; |
| 1041 o.ipConfiguration = buildIpConfiguration(); | 1041 o.ipConfiguration = buildIpConfiguration(); |
| 1042 o.kind = "foo"; | 1042 o.kind = "foo"; |
| 1043 o.locationPreference = buildLocationPreference(); | 1043 o.locationPreference = buildLocationPreference(); |
| 1044 o.pricingPlan = "foo"; | 1044 o.pricingPlan = "foo"; |
| 1045 o.replicationType = "foo"; | 1045 o.replicationType = "foo"; |
| 1046 o.settingsVersion = "foo"; | 1046 o.settingsVersion = "foo"; |
| 1047 o.tier = "foo"; | 1047 o.tier = "foo"; |
| 1048 } | 1048 } |
| 1049 buildCounterSettings--; | 1049 buildCounterSettings--; |
| 1050 return o; | 1050 return o; |
| 1051 } | 1051 } |
| 1052 | 1052 |
| 1053 checkSettings(api.Settings o) { | 1053 checkSettings(api.Settings o) { |
| 1054 buildCounterSettings++; | 1054 buildCounterSettings++; |
| 1055 if (buildCounterSettings < 3) { | 1055 if (buildCounterSettings < 3) { |
| 1056 unittest.expect(o.activationPolicy, unittest.equals('foo')); | 1056 unittest.expect(o.activationPolicy, unittest.equals('foo')); |
| 1057 checkUnnamed1274(o.authorizedGaeApplications); | 1057 checkUnnamed1122(o.authorizedGaeApplications); |
| 1058 checkUnnamed1275(o.backupConfiguration); | 1058 checkUnnamed1123(o.backupConfiguration); |
| 1059 checkUnnamed1276(o.databaseFlags); | 1059 checkUnnamed1124(o.databaseFlags); |
| 1060 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); | 1060 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); |
| 1061 checkIpConfiguration(o.ipConfiguration); | 1061 checkIpConfiguration(o.ipConfiguration); |
| 1062 unittest.expect(o.kind, unittest.equals('foo')); | 1062 unittest.expect(o.kind, unittest.equals('foo')); |
| 1063 checkLocationPreference(o.locationPreference); | 1063 checkLocationPreference(o.locationPreference); |
| 1064 unittest.expect(o.pricingPlan, unittest.equals('foo')); | 1064 unittest.expect(o.pricingPlan, unittest.equals('foo')); |
| 1065 unittest.expect(o.replicationType, unittest.equals('foo')); | 1065 unittest.expect(o.replicationType, unittest.equals('foo')); |
| 1066 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 1066 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
| 1067 unittest.expect(o.tier, unittest.equals('foo')); | 1067 unittest.expect(o.tier, unittest.equals('foo')); |
| 1068 } | 1068 } |
| 1069 buildCounterSettings--; | 1069 buildCounterSettings--; |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1179 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { | 1179 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { |
| 1180 buildCounterSslCertsInsertResponse++; | 1180 buildCounterSslCertsInsertResponse++; |
| 1181 if (buildCounterSslCertsInsertResponse < 3) { | 1181 if (buildCounterSslCertsInsertResponse < 3) { |
| 1182 checkSslCertDetail(o.clientCert); | 1182 checkSslCertDetail(o.clientCert); |
| 1183 unittest.expect(o.kind, unittest.equals('foo')); | 1183 unittest.expect(o.kind, unittest.equals('foo')); |
| 1184 checkSslCert(o.serverCaCert); | 1184 checkSslCert(o.serverCaCert); |
| 1185 } | 1185 } |
| 1186 buildCounterSslCertsInsertResponse--; | 1186 buildCounterSslCertsInsertResponse--; |
| 1187 } | 1187 } |
| 1188 | 1188 |
| 1189 buildUnnamed1277() { | 1189 buildUnnamed1125() { |
| 1190 var o = new core.List<api.SslCert>(); | 1190 var o = new core.List<api.SslCert>(); |
| 1191 o.add(buildSslCert()); | 1191 o.add(buildSslCert()); |
| 1192 o.add(buildSslCert()); | 1192 o.add(buildSslCert()); |
| 1193 return o; | 1193 return o; |
| 1194 } | 1194 } |
| 1195 | 1195 |
| 1196 checkUnnamed1277(core.List<api.SslCert> o) { | 1196 checkUnnamed1125(core.List<api.SslCert> o) { |
| 1197 unittest.expect(o, unittest.hasLength(2)); | 1197 unittest.expect(o, unittest.hasLength(2)); |
| 1198 checkSslCert(o[0]); | 1198 checkSslCert(o[0]); |
| 1199 checkSslCert(o[1]); | 1199 checkSslCert(o[1]); |
| 1200 } | 1200 } |
| 1201 | 1201 |
| 1202 core.int buildCounterSslCertsListResponse = 0; | 1202 core.int buildCounterSslCertsListResponse = 0; |
| 1203 buildSslCertsListResponse() { | 1203 buildSslCertsListResponse() { |
| 1204 var o = new api.SslCertsListResponse(); | 1204 var o = new api.SslCertsListResponse(); |
| 1205 buildCounterSslCertsListResponse++; | 1205 buildCounterSslCertsListResponse++; |
| 1206 if (buildCounterSslCertsListResponse < 3) { | 1206 if (buildCounterSslCertsListResponse < 3) { |
| 1207 o.items = buildUnnamed1277(); | 1207 o.items = buildUnnamed1125(); |
| 1208 o.kind = "foo"; | 1208 o.kind = "foo"; |
| 1209 } | 1209 } |
| 1210 buildCounterSslCertsListResponse--; | 1210 buildCounterSslCertsListResponse--; |
| 1211 return o; | 1211 return o; |
| 1212 } | 1212 } |
| 1213 | 1213 |
| 1214 checkSslCertsListResponse(api.SslCertsListResponse o) { | 1214 checkSslCertsListResponse(api.SslCertsListResponse o) { |
| 1215 buildCounterSslCertsListResponse++; | 1215 buildCounterSslCertsListResponse++; |
| 1216 if (buildCounterSslCertsListResponse < 3) { | 1216 if (buildCounterSslCertsListResponse < 3) { |
| 1217 checkUnnamed1277(o.items); | 1217 checkUnnamed1125(o.items); |
| 1218 unittest.expect(o.kind, unittest.equals('foo')); | 1218 unittest.expect(o.kind, unittest.equals('foo')); |
| 1219 } | 1219 } |
| 1220 buildCounterSslCertsListResponse--; | 1220 buildCounterSslCertsListResponse--; |
| 1221 } | 1221 } |
| 1222 | 1222 |
| 1223 buildUnnamed1278() { | 1223 buildUnnamed1126() { |
| 1224 var o = new core.List<core.String>(); | 1224 var o = new core.List<core.String>(); |
| 1225 o.add("foo"); | 1225 o.add("foo"); |
| 1226 o.add("foo"); | 1226 o.add("foo"); |
| 1227 return o; | 1227 return o; |
| 1228 } | 1228 } |
| 1229 | 1229 |
| 1230 checkUnnamed1278(core.List<core.String> o) { | 1230 checkUnnamed1126(core.List<core.String> o) { |
| 1231 unittest.expect(o, unittest.hasLength(2)); | 1231 unittest.expect(o, unittest.hasLength(2)); |
| 1232 unittest.expect(o[0], unittest.equals('foo')); | 1232 unittest.expect(o[0], unittest.equals('foo')); |
| 1233 unittest.expect(o[1], unittest.equals('foo')); | 1233 unittest.expect(o[1], unittest.equals('foo')); |
| 1234 } | 1234 } |
| 1235 | 1235 |
| 1236 core.int buildCounterTier = 0; | 1236 core.int buildCounterTier = 0; |
| 1237 buildTier() { | 1237 buildTier() { |
| 1238 var o = new api.Tier(); | 1238 var o = new api.Tier(); |
| 1239 buildCounterTier++; | 1239 buildCounterTier++; |
| 1240 if (buildCounterTier < 3) { | 1240 if (buildCounterTier < 3) { |
| 1241 o.DiskQuota = "foo"; | 1241 o.DiskQuota = "foo"; |
| 1242 o.RAM = "foo"; | 1242 o.RAM = "foo"; |
| 1243 o.kind = "foo"; | 1243 o.kind = "foo"; |
| 1244 o.region = buildUnnamed1278(); | 1244 o.region = buildUnnamed1126(); |
| 1245 o.tier = "foo"; | 1245 o.tier = "foo"; |
| 1246 } | 1246 } |
| 1247 buildCounterTier--; | 1247 buildCounterTier--; |
| 1248 return o; | 1248 return o; |
| 1249 } | 1249 } |
| 1250 | 1250 |
| 1251 checkTier(api.Tier o) { | 1251 checkTier(api.Tier o) { |
| 1252 buildCounterTier++; | 1252 buildCounterTier++; |
| 1253 if (buildCounterTier < 3) { | 1253 if (buildCounterTier < 3) { |
| 1254 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1254 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
| 1255 unittest.expect(o.RAM, unittest.equals('foo')); | 1255 unittest.expect(o.RAM, unittest.equals('foo')); |
| 1256 unittest.expect(o.kind, unittest.equals('foo')); | 1256 unittest.expect(o.kind, unittest.equals('foo')); |
| 1257 checkUnnamed1278(o.region); | 1257 checkUnnamed1126(o.region); |
| 1258 unittest.expect(o.tier, unittest.equals('foo')); | 1258 unittest.expect(o.tier, unittest.equals('foo')); |
| 1259 } | 1259 } |
| 1260 buildCounterTier--; | 1260 buildCounterTier--; |
| 1261 } | 1261 } |
| 1262 | 1262 |
| 1263 buildUnnamed1279() { | 1263 buildUnnamed1127() { |
| 1264 var o = new core.List<api.Tier>(); | 1264 var o = new core.List<api.Tier>(); |
| 1265 o.add(buildTier()); | 1265 o.add(buildTier()); |
| 1266 o.add(buildTier()); | 1266 o.add(buildTier()); |
| 1267 return o; | 1267 return o; |
| 1268 } | 1268 } |
| 1269 | 1269 |
| 1270 checkUnnamed1279(core.List<api.Tier> o) { | 1270 checkUnnamed1127(core.List<api.Tier> o) { |
| 1271 unittest.expect(o, unittest.hasLength(2)); | 1271 unittest.expect(o, unittest.hasLength(2)); |
| 1272 checkTier(o[0]); | 1272 checkTier(o[0]); |
| 1273 checkTier(o[1]); | 1273 checkTier(o[1]); |
| 1274 } | 1274 } |
| 1275 | 1275 |
| 1276 core.int buildCounterTiersListResponse = 0; | 1276 core.int buildCounterTiersListResponse = 0; |
| 1277 buildTiersListResponse() { | 1277 buildTiersListResponse() { |
| 1278 var o = new api.TiersListResponse(); | 1278 var o = new api.TiersListResponse(); |
| 1279 buildCounterTiersListResponse++; | 1279 buildCounterTiersListResponse++; |
| 1280 if (buildCounterTiersListResponse < 3) { | 1280 if (buildCounterTiersListResponse < 3) { |
| 1281 o.items = buildUnnamed1279(); | 1281 o.items = buildUnnamed1127(); |
| 1282 o.kind = "foo"; | 1282 o.kind = "foo"; |
| 1283 } | 1283 } |
| 1284 buildCounterTiersListResponse--; | 1284 buildCounterTiersListResponse--; |
| 1285 return o; | 1285 return o; |
| 1286 } | 1286 } |
| 1287 | 1287 |
| 1288 checkTiersListResponse(api.TiersListResponse o) { | 1288 checkTiersListResponse(api.TiersListResponse o) { |
| 1289 buildCounterTiersListResponse++; | 1289 buildCounterTiersListResponse++; |
| 1290 if (buildCounterTiersListResponse < 3) { | 1290 if (buildCounterTiersListResponse < 3) { |
| 1291 checkUnnamed1279(o.items); | 1291 checkUnnamed1127(o.items); |
| 1292 unittest.expect(o.kind, unittest.equals('foo')); | 1292 unittest.expect(o.kind, unittest.equals('foo')); |
| 1293 } | 1293 } |
| 1294 buildCounterTiersListResponse--; | 1294 buildCounterTiersListResponse--; |
| 1295 } | 1295 } |
| 1296 | 1296 |
| 1297 | 1297 |
| 1298 main() { | 1298 main() { |
| 1299 unittest.group("obj-schema-BackupConfiguration", () { | 1299 unittest.group("obj-schema-BackupConfiguration", () { |
| 1300 unittest.test("to-json--from-json", () { | 1300 unittest.test("to-json--from-json", () { |
| 1301 var o = buildBackupConfiguration(); | 1301 var o = buildBackupConfiguration(); |
| (...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3170 res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse re
sponse) { | 3170 res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse re
sponse) { |
| 3171 checkTiersListResponse(response); | 3171 checkTiersListResponse(response); |
| 3172 }))); | 3172 }))); |
| 3173 }); | 3173 }); |
| 3174 | 3174 |
| 3175 }); | 3175 }); |
| 3176 | 3176 |
| 3177 | 3177 |
| 3178 } | 3178 } |
| 3179 | 3179 |
| OLD | NEW |