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