OLD | NEW |
1 library googleapis_beta.sqladmin.v1beta4.test; | 1 library googleapis_beta.sqladmin.v1beta4.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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 unittest.expect(o.kind, unittest.equals('foo')); | 135 unittest.expect(o.kind, unittest.equals('foo')); |
136 unittest.expect(o.selfLink, unittest.equals('foo')); | 136 unittest.expect(o.selfLink, unittest.equals('foo')); |
137 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 137 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
138 unittest.expect(o.status, unittest.equals('foo')); | 138 unittest.expect(o.status, unittest.equals('foo')); |
139 unittest.expect(o.type, unittest.equals('foo')); | 139 unittest.expect(o.type, unittest.equals('foo')); |
140 unittest.expect(o.windowStartTime, unittest.equals(core.DateTime.parse("2002
-02-27T14:01:02"))); | 140 unittest.expect(o.windowStartTime, unittest.equals(core.DateTime.parse("2002
-02-27T14:01:02"))); |
141 } | 141 } |
142 buildCounterBackupRun--; | 142 buildCounterBackupRun--; |
143 } | 143 } |
144 | 144 |
145 buildUnnamed3682() { | 145 buildUnnamed3263() { |
146 var o = new core.List<api.BackupRun>(); | 146 var o = new core.List<api.BackupRun>(); |
147 o.add(buildBackupRun()); | 147 o.add(buildBackupRun()); |
148 o.add(buildBackupRun()); | 148 o.add(buildBackupRun()); |
149 return o; | 149 return o; |
150 } | 150 } |
151 | 151 |
152 checkUnnamed3682(core.List<api.BackupRun> o) { | 152 checkUnnamed3263(core.List<api.BackupRun> o) { |
153 unittest.expect(o, unittest.hasLength(2)); | 153 unittest.expect(o, unittest.hasLength(2)); |
154 checkBackupRun(o[0]); | 154 checkBackupRun(o[0]); |
155 checkBackupRun(o[1]); | 155 checkBackupRun(o[1]); |
156 } | 156 } |
157 | 157 |
158 core.int buildCounterBackupRunsListResponse = 0; | 158 core.int buildCounterBackupRunsListResponse = 0; |
159 buildBackupRunsListResponse() { | 159 buildBackupRunsListResponse() { |
160 var o = new api.BackupRunsListResponse(); | 160 var o = new api.BackupRunsListResponse(); |
161 buildCounterBackupRunsListResponse++; | 161 buildCounterBackupRunsListResponse++; |
162 if (buildCounterBackupRunsListResponse < 3) { | 162 if (buildCounterBackupRunsListResponse < 3) { |
163 o.items = buildUnnamed3682(); | 163 o.items = buildUnnamed3263(); |
164 o.kind = "foo"; | 164 o.kind = "foo"; |
165 o.nextPageToken = "foo"; | 165 o.nextPageToken = "foo"; |
166 } | 166 } |
167 buildCounterBackupRunsListResponse--; | 167 buildCounterBackupRunsListResponse--; |
168 return o; | 168 return o; |
169 } | 169 } |
170 | 170 |
171 checkBackupRunsListResponse(api.BackupRunsListResponse o) { | 171 checkBackupRunsListResponse(api.BackupRunsListResponse o) { |
172 buildCounterBackupRunsListResponse++; | 172 buildCounterBackupRunsListResponse++; |
173 if (buildCounterBackupRunsListResponse < 3) { | 173 if (buildCounterBackupRunsListResponse < 3) { |
174 checkUnnamed3682(o.items); | 174 checkUnnamed3263(o.items); |
175 unittest.expect(o.kind, unittest.equals('foo')); | 175 unittest.expect(o.kind, unittest.equals('foo')); |
176 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 176 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
177 } | 177 } |
178 buildCounterBackupRunsListResponse--; | 178 buildCounterBackupRunsListResponse--; |
179 } | 179 } |
180 | 180 |
181 core.int buildCounterBinLogCoordinates = 0; | 181 core.int buildCounterBinLogCoordinates = 0; |
182 buildBinLogCoordinates() { | 182 buildBinLogCoordinates() { |
183 var o = new api.BinLogCoordinates(); | 183 var o = new api.BinLogCoordinates(); |
184 buildCounterBinLogCoordinates++; | 184 buildCounterBinLogCoordinates++; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 292 |
293 checkDatabaseInstanceFailoverReplica(api.DatabaseInstanceFailoverReplica o) { | 293 checkDatabaseInstanceFailoverReplica(api.DatabaseInstanceFailoverReplica o) { |
294 buildCounterDatabaseInstanceFailoverReplica++; | 294 buildCounterDatabaseInstanceFailoverReplica++; |
295 if (buildCounterDatabaseInstanceFailoverReplica < 3) { | 295 if (buildCounterDatabaseInstanceFailoverReplica < 3) { |
296 unittest.expect(o.available, unittest.isTrue); | 296 unittest.expect(o.available, unittest.isTrue); |
297 unittest.expect(o.name, unittest.equals('foo')); | 297 unittest.expect(o.name, unittest.equals('foo')); |
298 } | 298 } |
299 buildCounterDatabaseInstanceFailoverReplica--; | 299 buildCounterDatabaseInstanceFailoverReplica--; |
300 } | 300 } |
301 | 301 |
302 buildUnnamed3683() { | 302 buildUnnamed3264() { |
303 var o = new core.List<api.IpMapping>(); | 303 var o = new core.List<api.IpMapping>(); |
304 o.add(buildIpMapping()); | 304 o.add(buildIpMapping()); |
305 o.add(buildIpMapping()); | 305 o.add(buildIpMapping()); |
306 return o; | 306 return o; |
307 } | 307 } |
308 | 308 |
309 checkUnnamed3683(core.List<api.IpMapping> o) { | 309 checkUnnamed3264(core.List<api.IpMapping> o) { |
310 unittest.expect(o, unittest.hasLength(2)); | 310 unittest.expect(o, unittest.hasLength(2)); |
311 checkIpMapping(o[0]); | 311 checkIpMapping(o[0]); |
312 checkIpMapping(o[1]); | 312 checkIpMapping(o[1]); |
313 } | 313 } |
314 | 314 |
315 buildUnnamed3684() { | 315 buildUnnamed3265() { |
316 var o = new core.List<core.String>(); | 316 var o = new core.List<core.String>(); |
317 o.add("foo"); | 317 o.add("foo"); |
318 o.add("foo"); | 318 o.add("foo"); |
319 return o; | 319 return o; |
320 } | 320 } |
321 | 321 |
322 checkUnnamed3684(core.List<core.String> o) { | 322 checkUnnamed3265(core.List<core.String> o) { |
323 unittest.expect(o, unittest.hasLength(2)); | 323 unittest.expect(o, unittest.hasLength(2)); |
324 unittest.expect(o[0], unittest.equals('foo')); | 324 unittest.expect(o[0], unittest.equals('foo')); |
325 unittest.expect(o[1], unittest.equals('foo')); | 325 unittest.expect(o[1], unittest.equals('foo')); |
326 } | 326 } |
327 | 327 |
328 buildUnnamed3685() { | 328 buildUnnamed3266() { |
329 var o = new core.List<core.String>(); | 329 var o = new core.List<core.String>(); |
330 o.add("foo"); | 330 o.add("foo"); |
331 o.add("foo"); | 331 o.add("foo"); |
332 return o; | 332 return o; |
333 } | 333 } |
334 | 334 |
335 checkUnnamed3685(core.List<core.String> o) { | 335 checkUnnamed3266(core.List<core.String> o) { |
336 unittest.expect(o, unittest.hasLength(2)); | 336 unittest.expect(o, unittest.hasLength(2)); |
337 unittest.expect(o[0], unittest.equals('foo')); | 337 unittest.expect(o[0], unittest.equals('foo')); |
338 unittest.expect(o[1], unittest.equals('foo')); | 338 unittest.expect(o[1], unittest.equals('foo')); |
339 } | 339 } |
340 | 340 |
341 core.int buildCounterDatabaseInstance = 0; | 341 core.int buildCounterDatabaseInstance = 0; |
342 buildDatabaseInstance() { | 342 buildDatabaseInstance() { |
343 var o = new api.DatabaseInstance(); | 343 var o = new api.DatabaseInstance(); |
344 buildCounterDatabaseInstance++; | 344 buildCounterDatabaseInstance++; |
345 if (buildCounterDatabaseInstance < 3) { | 345 if (buildCounterDatabaseInstance < 3) { |
346 o.backendType = "foo"; | 346 o.backendType = "foo"; |
347 o.connectionName = "foo"; | 347 o.connectionName = "foo"; |
348 o.currentDiskSize = "foo"; | 348 o.currentDiskSize = "foo"; |
349 o.databaseVersion = "foo"; | 349 o.databaseVersion = "foo"; |
350 o.etag = "foo"; | 350 o.etag = "foo"; |
351 o.failoverReplica = buildDatabaseInstanceFailoverReplica(); | 351 o.failoverReplica = buildDatabaseInstanceFailoverReplica(); |
352 o.instanceType = "foo"; | 352 o.instanceType = "foo"; |
353 o.ipAddresses = buildUnnamed3683(); | 353 o.ipAddresses = buildUnnamed3264(); |
354 o.ipv6Address = "foo"; | 354 o.ipv6Address = "foo"; |
355 o.kind = "foo"; | 355 o.kind = "foo"; |
356 o.masterInstanceName = "foo"; | 356 o.masterInstanceName = "foo"; |
357 o.maxDiskSize = "foo"; | 357 o.maxDiskSize = "foo"; |
358 o.name = "foo"; | 358 o.name = "foo"; |
359 o.onPremisesConfiguration = buildOnPremisesConfiguration(); | 359 o.onPremisesConfiguration = buildOnPremisesConfiguration(); |
360 o.project = "foo"; | 360 o.project = "foo"; |
361 o.region = "foo"; | 361 o.region = "foo"; |
362 o.replicaConfiguration = buildReplicaConfiguration(); | 362 o.replicaConfiguration = buildReplicaConfiguration(); |
363 o.replicaNames = buildUnnamed3684(); | 363 o.replicaNames = buildUnnamed3265(); |
364 o.selfLink = "foo"; | 364 o.selfLink = "foo"; |
365 o.serverCaCert = buildSslCert(); | 365 o.serverCaCert = buildSslCert(); |
366 o.serviceAccountEmailAddress = "foo"; | 366 o.serviceAccountEmailAddress = "foo"; |
367 o.settings = buildSettings(); | 367 o.settings = buildSettings(); |
368 o.state = "foo"; | 368 o.state = "foo"; |
369 o.suspensionReason = buildUnnamed3685(); | 369 o.suspensionReason = buildUnnamed3266(); |
370 } | 370 } |
371 buildCounterDatabaseInstance--; | 371 buildCounterDatabaseInstance--; |
372 return o; | 372 return o; |
373 } | 373 } |
374 | 374 |
375 checkDatabaseInstance(api.DatabaseInstance o) { | 375 checkDatabaseInstance(api.DatabaseInstance o) { |
376 buildCounterDatabaseInstance++; | 376 buildCounterDatabaseInstance++; |
377 if (buildCounterDatabaseInstance < 3) { | 377 if (buildCounterDatabaseInstance < 3) { |
378 unittest.expect(o.backendType, unittest.equals('foo')); | 378 unittest.expect(o.backendType, unittest.equals('foo')); |
379 unittest.expect(o.connectionName, unittest.equals('foo')); | 379 unittest.expect(o.connectionName, unittest.equals('foo')); |
380 unittest.expect(o.currentDiskSize, unittest.equals('foo')); | 380 unittest.expect(o.currentDiskSize, unittest.equals('foo')); |
381 unittest.expect(o.databaseVersion, unittest.equals('foo')); | 381 unittest.expect(o.databaseVersion, unittest.equals('foo')); |
382 unittest.expect(o.etag, unittest.equals('foo')); | 382 unittest.expect(o.etag, unittest.equals('foo')); |
383 checkDatabaseInstanceFailoverReplica(o.failoverReplica); | 383 checkDatabaseInstanceFailoverReplica(o.failoverReplica); |
384 unittest.expect(o.instanceType, unittest.equals('foo')); | 384 unittest.expect(o.instanceType, unittest.equals('foo')); |
385 checkUnnamed3683(o.ipAddresses); | 385 checkUnnamed3264(o.ipAddresses); |
386 unittest.expect(o.ipv6Address, unittest.equals('foo')); | 386 unittest.expect(o.ipv6Address, unittest.equals('foo')); |
387 unittest.expect(o.kind, unittest.equals('foo')); | 387 unittest.expect(o.kind, unittest.equals('foo')); |
388 unittest.expect(o.masterInstanceName, unittest.equals('foo')); | 388 unittest.expect(o.masterInstanceName, unittest.equals('foo')); |
389 unittest.expect(o.maxDiskSize, unittest.equals('foo')); | 389 unittest.expect(o.maxDiskSize, unittest.equals('foo')); |
390 unittest.expect(o.name, unittest.equals('foo')); | 390 unittest.expect(o.name, unittest.equals('foo')); |
391 checkOnPremisesConfiguration(o.onPremisesConfiguration); | 391 checkOnPremisesConfiguration(o.onPremisesConfiguration); |
392 unittest.expect(o.project, unittest.equals('foo')); | 392 unittest.expect(o.project, unittest.equals('foo')); |
393 unittest.expect(o.region, unittest.equals('foo')); | 393 unittest.expect(o.region, unittest.equals('foo')); |
394 checkReplicaConfiguration(o.replicaConfiguration); | 394 checkReplicaConfiguration(o.replicaConfiguration); |
395 checkUnnamed3684(o.replicaNames); | 395 checkUnnamed3265(o.replicaNames); |
396 unittest.expect(o.selfLink, unittest.equals('foo')); | 396 unittest.expect(o.selfLink, unittest.equals('foo')); |
397 checkSslCert(o.serverCaCert); | 397 checkSslCert(o.serverCaCert); |
398 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); | 398 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); |
399 checkSettings(o.settings); | 399 checkSettings(o.settings); |
400 unittest.expect(o.state, unittest.equals('foo')); | 400 unittest.expect(o.state, unittest.equals('foo')); |
401 checkUnnamed3685(o.suspensionReason); | 401 checkUnnamed3266(o.suspensionReason); |
402 } | 402 } |
403 buildCounterDatabaseInstance--; | 403 buildCounterDatabaseInstance--; |
404 } | 404 } |
405 | 405 |
406 buildUnnamed3686() { | 406 buildUnnamed3267() { |
407 var o = new core.List<api.Database>(); | 407 var o = new core.List<api.Database>(); |
408 o.add(buildDatabase()); | 408 o.add(buildDatabase()); |
409 o.add(buildDatabase()); | 409 o.add(buildDatabase()); |
410 return o; | 410 return o; |
411 } | 411 } |
412 | 412 |
413 checkUnnamed3686(core.List<api.Database> o) { | 413 checkUnnamed3267(core.List<api.Database> o) { |
414 unittest.expect(o, unittest.hasLength(2)); | 414 unittest.expect(o, unittest.hasLength(2)); |
415 checkDatabase(o[0]); | 415 checkDatabase(o[0]); |
416 checkDatabase(o[1]); | 416 checkDatabase(o[1]); |
417 } | 417 } |
418 | 418 |
419 core.int buildCounterDatabasesListResponse = 0; | 419 core.int buildCounterDatabasesListResponse = 0; |
420 buildDatabasesListResponse() { | 420 buildDatabasesListResponse() { |
421 var o = new api.DatabasesListResponse(); | 421 var o = new api.DatabasesListResponse(); |
422 buildCounterDatabasesListResponse++; | 422 buildCounterDatabasesListResponse++; |
423 if (buildCounterDatabasesListResponse < 3) { | 423 if (buildCounterDatabasesListResponse < 3) { |
424 o.items = buildUnnamed3686(); | 424 o.items = buildUnnamed3267(); |
425 o.kind = "foo"; | 425 o.kind = "foo"; |
426 } | 426 } |
427 buildCounterDatabasesListResponse--; | 427 buildCounterDatabasesListResponse--; |
428 return o; | 428 return o; |
429 } | 429 } |
430 | 430 |
431 checkDatabasesListResponse(api.DatabasesListResponse o) { | 431 checkDatabasesListResponse(api.DatabasesListResponse o) { |
432 buildCounterDatabasesListResponse++; | 432 buildCounterDatabasesListResponse++; |
433 if (buildCounterDatabasesListResponse < 3) { | 433 if (buildCounterDatabasesListResponse < 3) { |
434 checkUnnamed3686(o.items); | 434 checkUnnamed3267(o.items); |
435 unittest.expect(o.kind, unittest.equals('foo')); | 435 unittest.expect(o.kind, unittest.equals('foo')); |
436 } | 436 } |
437 buildCounterDatabasesListResponse--; | 437 buildCounterDatabasesListResponse--; |
438 } | 438 } |
439 | 439 |
440 core.int buildCounterExportContextCsvExportOptions = 0; | 440 core.int buildCounterExportContextCsvExportOptions = 0; |
441 buildExportContextCsvExportOptions() { | 441 buildExportContextCsvExportOptions() { |
442 var o = new api.ExportContextCsvExportOptions(); | 442 var o = new api.ExportContextCsvExportOptions(); |
443 buildCounterExportContextCsvExportOptions++; | 443 buildCounterExportContextCsvExportOptions++; |
444 if (buildCounterExportContextCsvExportOptions < 3) { | 444 if (buildCounterExportContextCsvExportOptions < 3) { |
445 o.selectQuery = "foo"; | 445 o.selectQuery = "foo"; |
446 } | 446 } |
447 buildCounterExportContextCsvExportOptions--; | 447 buildCounterExportContextCsvExportOptions--; |
448 return o; | 448 return o; |
449 } | 449 } |
450 | 450 |
451 checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { | 451 checkExportContextCsvExportOptions(api.ExportContextCsvExportOptions o) { |
452 buildCounterExportContextCsvExportOptions++; | 452 buildCounterExportContextCsvExportOptions++; |
453 if (buildCounterExportContextCsvExportOptions < 3) { | 453 if (buildCounterExportContextCsvExportOptions < 3) { |
454 unittest.expect(o.selectQuery, unittest.equals('foo')); | 454 unittest.expect(o.selectQuery, unittest.equals('foo')); |
455 } | 455 } |
456 buildCounterExportContextCsvExportOptions--; | 456 buildCounterExportContextCsvExportOptions--; |
457 } | 457 } |
458 | 458 |
459 buildUnnamed3687() { | 459 buildUnnamed3268() { |
460 var o = new core.List<core.String>(); | 460 var o = new core.List<core.String>(); |
461 o.add("foo"); | 461 o.add("foo"); |
462 o.add("foo"); | 462 o.add("foo"); |
463 return o; | 463 return o; |
464 } | 464 } |
465 | 465 |
466 checkUnnamed3687(core.List<core.String> o) { | 466 checkUnnamed3268(core.List<core.String> o) { |
467 unittest.expect(o, unittest.hasLength(2)); | 467 unittest.expect(o, unittest.hasLength(2)); |
468 unittest.expect(o[0], unittest.equals('foo')); | 468 unittest.expect(o[0], unittest.equals('foo')); |
469 unittest.expect(o[1], unittest.equals('foo')); | 469 unittest.expect(o[1], unittest.equals('foo')); |
470 } | 470 } |
471 | 471 |
472 buildUnnamed3688() { | 472 buildUnnamed3269() { |
473 var o = new core.List<core.String>(); | 473 var o = new core.List<core.String>(); |
474 o.add("foo"); | 474 o.add("foo"); |
475 o.add("foo"); | 475 o.add("foo"); |
476 return o; | 476 return o; |
477 } | 477 } |
478 | 478 |
479 checkUnnamed3688(core.List<core.String> o) { | 479 checkUnnamed3269(core.List<core.String> o) { |
480 unittest.expect(o, unittest.hasLength(2)); | 480 unittest.expect(o, unittest.hasLength(2)); |
481 unittest.expect(o[0], unittest.equals('foo')); | 481 unittest.expect(o[0], unittest.equals('foo')); |
482 unittest.expect(o[1], unittest.equals('foo')); | 482 unittest.expect(o[1], unittest.equals('foo')); |
483 } | 483 } |
484 | 484 |
485 core.int buildCounterExportContextSqlExportOptions = 0; | 485 core.int buildCounterExportContextSqlExportOptions = 0; |
486 buildExportContextSqlExportOptions() { | 486 buildExportContextSqlExportOptions() { |
487 var o = new api.ExportContextSqlExportOptions(); | 487 var o = new api.ExportContextSqlExportOptions(); |
488 buildCounterExportContextSqlExportOptions++; | 488 buildCounterExportContextSqlExportOptions++; |
489 if (buildCounterExportContextSqlExportOptions < 3) { | 489 if (buildCounterExportContextSqlExportOptions < 3) { |
490 o.schemaOnly = true; | 490 o.schemaOnly = true; |
491 o.tables = buildUnnamed3688(); | 491 o.tables = buildUnnamed3269(); |
492 } | 492 } |
493 buildCounterExportContextSqlExportOptions--; | 493 buildCounterExportContextSqlExportOptions--; |
494 return o; | 494 return o; |
495 } | 495 } |
496 | 496 |
497 checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) { | 497 checkExportContextSqlExportOptions(api.ExportContextSqlExportOptions o) { |
498 buildCounterExportContextSqlExportOptions++; | 498 buildCounterExportContextSqlExportOptions++; |
499 if (buildCounterExportContextSqlExportOptions < 3) { | 499 if (buildCounterExportContextSqlExportOptions < 3) { |
500 unittest.expect(o.schemaOnly, unittest.isTrue); | 500 unittest.expect(o.schemaOnly, unittest.isTrue); |
501 checkUnnamed3688(o.tables); | 501 checkUnnamed3269(o.tables); |
502 } | 502 } |
503 buildCounterExportContextSqlExportOptions--; | 503 buildCounterExportContextSqlExportOptions--; |
504 } | 504 } |
505 | 505 |
506 core.int buildCounterExportContext = 0; | 506 core.int buildCounterExportContext = 0; |
507 buildExportContext() { | 507 buildExportContext() { |
508 var o = new api.ExportContext(); | 508 var o = new api.ExportContext(); |
509 buildCounterExportContext++; | 509 buildCounterExportContext++; |
510 if (buildCounterExportContext < 3) { | 510 if (buildCounterExportContext < 3) { |
511 o.csvExportOptions = buildExportContextCsvExportOptions(); | 511 o.csvExportOptions = buildExportContextCsvExportOptions(); |
512 o.databases = buildUnnamed3687(); | 512 o.databases = buildUnnamed3268(); |
513 o.fileType = "foo"; | 513 o.fileType = "foo"; |
514 o.kind = "foo"; | 514 o.kind = "foo"; |
515 o.sqlExportOptions = buildExportContextSqlExportOptions(); | 515 o.sqlExportOptions = buildExportContextSqlExportOptions(); |
516 o.uri = "foo"; | 516 o.uri = "foo"; |
517 } | 517 } |
518 buildCounterExportContext--; | 518 buildCounterExportContext--; |
519 return o; | 519 return o; |
520 } | 520 } |
521 | 521 |
522 checkExportContext(api.ExportContext o) { | 522 checkExportContext(api.ExportContext o) { |
523 buildCounterExportContext++; | 523 buildCounterExportContext++; |
524 if (buildCounterExportContext < 3) { | 524 if (buildCounterExportContext < 3) { |
525 checkExportContextCsvExportOptions(o.csvExportOptions); | 525 checkExportContextCsvExportOptions(o.csvExportOptions); |
526 checkUnnamed3687(o.databases); | 526 checkUnnamed3268(o.databases); |
527 unittest.expect(o.fileType, unittest.equals('foo')); | 527 unittest.expect(o.fileType, unittest.equals('foo')); |
528 unittest.expect(o.kind, unittest.equals('foo')); | 528 unittest.expect(o.kind, unittest.equals('foo')); |
529 checkExportContextSqlExportOptions(o.sqlExportOptions); | 529 checkExportContextSqlExportOptions(o.sqlExportOptions); |
530 unittest.expect(o.uri, unittest.equals('foo')); | 530 unittest.expect(o.uri, unittest.equals('foo')); |
531 } | 531 } |
532 buildCounterExportContext--; | 532 buildCounterExportContext--; |
533 } | 533 } |
534 | 534 |
535 core.int buildCounterFailoverContext = 0; | 535 core.int buildCounterFailoverContext = 0; |
536 buildFailoverContext() { | 536 buildFailoverContext() { |
537 var o = new api.FailoverContext(); | 537 var o = new api.FailoverContext(); |
538 buildCounterFailoverContext++; | 538 buildCounterFailoverContext++; |
539 if (buildCounterFailoverContext < 3) { | 539 if (buildCounterFailoverContext < 3) { |
540 o.kind = "foo"; | 540 o.kind = "foo"; |
541 o.settingsVersion = "foo"; | 541 o.settingsVersion = "foo"; |
542 } | 542 } |
543 buildCounterFailoverContext--; | 543 buildCounterFailoverContext--; |
544 return o; | 544 return o; |
545 } | 545 } |
546 | 546 |
547 checkFailoverContext(api.FailoverContext o) { | 547 checkFailoverContext(api.FailoverContext o) { |
548 buildCounterFailoverContext++; | 548 buildCounterFailoverContext++; |
549 if (buildCounterFailoverContext < 3) { | 549 if (buildCounterFailoverContext < 3) { |
550 unittest.expect(o.kind, unittest.equals('foo')); | 550 unittest.expect(o.kind, unittest.equals('foo')); |
551 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 551 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
552 } | 552 } |
553 buildCounterFailoverContext--; | 553 buildCounterFailoverContext--; |
554 } | 554 } |
555 | 555 |
556 buildUnnamed3689() { | 556 buildUnnamed3270() { |
557 var o = new core.List<core.String>(); | 557 var o = new core.List<core.String>(); |
558 o.add("foo"); | 558 o.add("foo"); |
559 o.add("foo"); | 559 o.add("foo"); |
560 return o; | 560 return o; |
561 } | 561 } |
562 | 562 |
563 checkUnnamed3689(core.List<core.String> o) { | 563 checkUnnamed3270(core.List<core.String> o) { |
564 unittest.expect(o, unittest.hasLength(2)); | 564 unittest.expect(o, unittest.hasLength(2)); |
565 unittest.expect(o[0], unittest.equals('foo')); | 565 unittest.expect(o[0], unittest.equals('foo')); |
566 unittest.expect(o[1], unittest.equals('foo')); | 566 unittest.expect(o[1], unittest.equals('foo')); |
567 } | 567 } |
568 | 568 |
569 buildUnnamed3690() { | 569 buildUnnamed3271() { |
570 var o = new core.List<core.String>(); | 570 var o = new core.List<core.String>(); |
571 o.add("foo"); | 571 o.add("foo"); |
572 o.add("foo"); | 572 o.add("foo"); |
573 return o; | 573 return o; |
574 } | 574 } |
575 | 575 |
576 checkUnnamed3690(core.List<core.String> o) { | 576 checkUnnamed3271(core.List<core.String> o) { |
577 unittest.expect(o, unittest.hasLength(2)); | 577 unittest.expect(o, unittest.hasLength(2)); |
578 unittest.expect(o[0], unittest.equals('foo')); | 578 unittest.expect(o[0], unittest.equals('foo')); |
579 unittest.expect(o[1], unittest.equals('foo')); | 579 unittest.expect(o[1], unittest.equals('foo')); |
580 } | 580 } |
581 | 581 |
582 core.int buildCounterFlag = 0; | 582 core.int buildCounterFlag = 0; |
583 buildFlag() { | 583 buildFlag() { |
584 var o = new api.Flag(); | 584 var o = new api.Flag(); |
585 buildCounterFlag++; | 585 buildCounterFlag++; |
586 if (buildCounterFlag < 3) { | 586 if (buildCounterFlag < 3) { |
587 o.allowedStringValues = buildUnnamed3689(); | 587 o.allowedStringValues = buildUnnamed3270(); |
588 o.appliesTo = buildUnnamed3690(); | 588 o.appliesTo = buildUnnamed3271(); |
589 o.kind = "foo"; | 589 o.kind = "foo"; |
590 o.maxValue = "foo"; | 590 o.maxValue = "foo"; |
591 o.minValue = "foo"; | 591 o.minValue = "foo"; |
592 o.name = "foo"; | 592 o.name = "foo"; |
593 o.requiresRestart = true; | 593 o.requiresRestart = true; |
594 o.type = "foo"; | 594 o.type = "foo"; |
595 } | 595 } |
596 buildCounterFlag--; | 596 buildCounterFlag--; |
597 return o; | 597 return o; |
598 } | 598 } |
599 | 599 |
600 checkFlag(api.Flag o) { | 600 checkFlag(api.Flag o) { |
601 buildCounterFlag++; | 601 buildCounterFlag++; |
602 if (buildCounterFlag < 3) { | 602 if (buildCounterFlag < 3) { |
603 checkUnnamed3689(o.allowedStringValues); | 603 checkUnnamed3270(o.allowedStringValues); |
604 checkUnnamed3690(o.appliesTo); | 604 checkUnnamed3271(o.appliesTo); |
605 unittest.expect(o.kind, unittest.equals('foo')); | 605 unittest.expect(o.kind, unittest.equals('foo')); |
606 unittest.expect(o.maxValue, unittest.equals('foo')); | 606 unittest.expect(o.maxValue, unittest.equals('foo')); |
607 unittest.expect(o.minValue, unittest.equals('foo')); | 607 unittest.expect(o.minValue, unittest.equals('foo')); |
608 unittest.expect(o.name, unittest.equals('foo')); | 608 unittest.expect(o.name, unittest.equals('foo')); |
609 unittest.expect(o.requiresRestart, unittest.isTrue); | 609 unittest.expect(o.requiresRestart, unittest.isTrue); |
610 unittest.expect(o.type, unittest.equals('foo')); | 610 unittest.expect(o.type, unittest.equals('foo')); |
611 } | 611 } |
612 buildCounterFlag--; | 612 buildCounterFlag--; |
613 } | 613 } |
614 | 614 |
615 buildUnnamed3691() { | 615 buildUnnamed3272() { |
616 var o = new core.List<api.Flag>(); | 616 var o = new core.List<api.Flag>(); |
617 o.add(buildFlag()); | 617 o.add(buildFlag()); |
618 o.add(buildFlag()); | 618 o.add(buildFlag()); |
619 return o; | 619 return o; |
620 } | 620 } |
621 | 621 |
622 checkUnnamed3691(core.List<api.Flag> o) { | 622 checkUnnamed3272(core.List<api.Flag> o) { |
623 unittest.expect(o, unittest.hasLength(2)); | 623 unittest.expect(o, unittest.hasLength(2)); |
624 checkFlag(o[0]); | 624 checkFlag(o[0]); |
625 checkFlag(o[1]); | 625 checkFlag(o[1]); |
626 } | 626 } |
627 | 627 |
628 core.int buildCounterFlagsListResponse = 0; | 628 core.int buildCounterFlagsListResponse = 0; |
629 buildFlagsListResponse() { | 629 buildFlagsListResponse() { |
630 var o = new api.FlagsListResponse(); | 630 var o = new api.FlagsListResponse(); |
631 buildCounterFlagsListResponse++; | 631 buildCounterFlagsListResponse++; |
632 if (buildCounterFlagsListResponse < 3) { | 632 if (buildCounterFlagsListResponse < 3) { |
633 o.items = buildUnnamed3691(); | 633 o.items = buildUnnamed3272(); |
634 o.kind = "foo"; | 634 o.kind = "foo"; |
635 } | 635 } |
636 buildCounterFlagsListResponse--; | 636 buildCounterFlagsListResponse--; |
637 return o; | 637 return o; |
638 } | 638 } |
639 | 639 |
640 checkFlagsListResponse(api.FlagsListResponse o) { | 640 checkFlagsListResponse(api.FlagsListResponse o) { |
641 buildCounterFlagsListResponse++; | 641 buildCounterFlagsListResponse++; |
642 if (buildCounterFlagsListResponse < 3) { | 642 if (buildCounterFlagsListResponse < 3) { |
643 checkUnnamed3691(o.items); | 643 checkUnnamed3272(o.items); |
644 unittest.expect(o.kind, unittest.equals('foo')); | 644 unittest.expect(o.kind, unittest.equals('foo')); |
645 } | 645 } |
646 buildCounterFlagsListResponse--; | 646 buildCounterFlagsListResponse--; |
647 } | 647 } |
648 | 648 |
649 buildUnnamed3692() { | 649 buildUnnamed3273() { |
650 var o = new core.List<core.String>(); | 650 var o = new core.List<core.String>(); |
651 o.add("foo"); | 651 o.add("foo"); |
652 o.add("foo"); | 652 o.add("foo"); |
653 return o; | 653 return o; |
654 } | 654 } |
655 | 655 |
656 checkUnnamed3692(core.List<core.String> o) { | 656 checkUnnamed3273(core.List<core.String> o) { |
657 unittest.expect(o, unittest.hasLength(2)); | 657 unittest.expect(o, unittest.hasLength(2)); |
658 unittest.expect(o[0], unittest.equals('foo')); | 658 unittest.expect(o[0], unittest.equals('foo')); |
659 unittest.expect(o[1], unittest.equals('foo')); | 659 unittest.expect(o[1], unittest.equals('foo')); |
660 } | 660 } |
661 | 661 |
662 core.int buildCounterImportContextCsvImportOptions = 0; | 662 core.int buildCounterImportContextCsvImportOptions = 0; |
663 buildImportContextCsvImportOptions() { | 663 buildImportContextCsvImportOptions() { |
664 var o = new api.ImportContextCsvImportOptions(); | 664 var o = new api.ImportContextCsvImportOptions(); |
665 buildCounterImportContextCsvImportOptions++; | 665 buildCounterImportContextCsvImportOptions++; |
666 if (buildCounterImportContextCsvImportOptions < 3) { | 666 if (buildCounterImportContextCsvImportOptions < 3) { |
667 o.columns = buildUnnamed3692(); | 667 o.columns = buildUnnamed3273(); |
668 o.table = "foo"; | 668 o.table = "foo"; |
669 } | 669 } |
670 buildCounterImportContextCsvImportOptions--; | 670 buildCounterImportContextCsvImportOptions--; |
671 return o; | 671 return o; |
672 } | 672 } |
673 | 673 |
674 checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { | 674 checkImportContextCsvImportOptions(api.ImportContextCsvImportOptions o) { |
675 buildCounterImportContextCsvImportOptions++; | 675 buildCounterImportContextCsvImportOptions++; |
676 if (buildCounterImportContextCsvImportOptions < 3) { | 676 if (buildCounterImportContextCsvImportOptions < 3) { |
677 checkUnnamed3692(o.columns); | 677 checkUnnamed3273(o.columns); |
678 unittest.expect(o.table, unittest.equals('foo')); | 678 unittest.expect(o.table, unittest.equals('foo')); |
679 } | 679 } |
680 buildCounterImportContextCsvImportOptions--; | 680 buildCounterImportContextCsvImportOptions--; |
681 } | 681 } |
682 | 682 |
683 core.int buildCounterImportContext = 0; | 683 core.int buildCounterImportContext = 0; |
684 buildImportContext() { | 684 buildImportContext() { |
685 var o = new api.ImportContext(); | 685 var o = new api.ImportContext(); |
686 buildCounterImportContext++; | 686 buildCounterImportContext++; |
687 if (buildCounterImportContext < 3) { | 687 if (buildCounterImportContext < 3) { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 } | 776 } |
777 | 777 |
778 checkInstancesImportRequest(api.InstancesImportRequest o) { | 778 checkInstancesImportRequest(api.InstancesImportRequest o) { |
779 buildCounterInstancesImportRequest++; | 779 buildCounterInstancesImportRequest++; |
780 if (buildCounterInstancesImportRequest < 3) { | 780 if (buildCounterInstancesImportRequest < 3) { |
781 checkImportContext(o.importContext); | 781 checkImportContext(o.importContext); |
782 } | 782 } |
783 buildCounterInstancesImportRequest--; | 783 buildCounterInstancesImportRequest--; |
784 } | 784 } |
785 | 785 |
786 buildUnnamed3693() { | 786 buildUnnamed3274() { |
787 var o = new core.List<api.DatabaseInstance>(); | 787 var o = new core.List<api.DatabaseInstance>(); |
788 o.add(buildDatabaseInstance()); | 788 o.add(buildDatabaseInstance()); |
789 o.add(buildDatabaseInstance()); | 789 o.add(buildDatabaseInstance()); |
790 return o; | 790 return o; |
791 } | 791 } |
792 | 792 |
793 checkUnnamed3693(core.List<api.DatabaseInstance> o) { | 793 checkUnnamed3274(core.List<api.DatabaseInstance> o) { |
794 unittest.expect(o, unittest.hasLength(2)); | 794 unittest.expect(o, unittest.hasLength(2)); |
795 checkDatabaseInstance(o[0]); | 795 checkDatabaseInstance(o[0]); |
796 checkDatabaseInstance(o[1]); | 796 checkDatabaseInstance(o[1]); |
797 } | 797 } |
798 | 798 |
799 core.int buildCounterInstancesListResponse = 0; | 799 core.int buildCounterInstancesListResponse = 0; |
800 buildInstancesListResponse() { | 800 buildInstancesListResponse() { |
801 var o = new api.InstancesListResponse(); | 801 var o = new api.InstancesListResponse(); |
802 buildCounterInstancesListResponse++; | 802 buildCounterInstancesListResponse++; |
803 if (buildCounterInstancesListResponse < 3) { | 803 if (buildCounterInstancesListResponse < 3) { |
804 o.items = buildUnnamed3693(); | 804 o.items = buildUnnamed3274(); |
805 o.kind = "foo"; | 805 o.kind = "foo"; |
806 o.nextPageToken = "foo"; | 806 o.nextPageToken = "foo"; |
807 } | 807 } |
808 buildCounterInstancesListResponse--; | 808 buildCounterInstancesListResponse--; |
809 return o; | 809 return o; |
810 } | 810 } |
811 | 811 |
812 checkInstancesListResponse(api.InstancesListResponse o) { | 812 checkInstancesListResponse(api.InstancesListResponse o) { |
813 buildCounterInstancesListResponse++; | 813 buildCounterInstancesListResponse++; |
814 if (buildCounterInstancesListResponse < 3) { | 814 if (buildCounterInstancesListResponse < 3) { |
815 checkUnnamed3693(o.items); | 815 checkUnnamed3274(o.items); |
816 unittest.expect(o.kind, unittest.equals('foo')); | 816 unittest.expect(o.kind, unittest.equals('foo')); |
817 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 817 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
818 } | 818 } |
819 buildCounterInstancesListResponse--; | 819 buildCounterInstancesListResponse--; |
820 } | 820 } |
821 | 821 |
822 core.int buildCounterInstancesRestoreBackupRequest = 0; | 822 core.int buildCounterInstancesRestoreBackupRequest = 0; |
823 buildInstancesRestoreBackupRequest() { | 823 buildInstancesRestoreBackupRequest() { |
824 var o = new api.InstancesRestoreBackupRequest(); | 824 var o = new api.InstancesRestoreBackupRequest(); |
825 buildCounterInstancesRestoreBackupRequest++; | 825 buildCounterInstancesRestoreBackupRequest++; |
(...skipping 24 matching lines...) Expand all Loading... |
850 } | 850 } |
851 | 851 |
852 checkInstancesTruncateLogRequest(api.InstancesTruncateLogRequest o) { | 852 checkInstancesTruncateLogRequest(api.InstancesTruncateLogRequest o) { |
853 buildCounterInstancesTruncateLogRequest++; | 853 buildCounterInstancesTruncateLogRequest++; |
854 if (buildCounterInstancesTruncateLogRequest < 3) { | 854 if (buildCounterInstancesTruncateLogRequest < 3) { |
855 checkTruncateLogContext(o.truncateLogContext); | 855 checkTruncateLogContext(o.truncateLogContext); |
856 } | 856 } |
857 buildCounterInstancesTruncateLogRequest--; | 857 buildCounterInstancesTruncateLogRequest--; |
858 } | 858 } |
859 | 859 |
860 buildUnnamed3694() { | 860 buildUnnamed3275() { |
861 var o = new core.List<api.AclEntry>(); | 861 var o = new core.List<api.AclEntry>(); |
862 o.add(buildAclEntry()); | 862 o.add(buildAclEntry()); |
863 o.add(buildAclEntry()); | 863 o.add(buildAclEntry()); |
864 return o; | 864 return o; |
865 } | 865 } |
866 | 866 |
867 checkUnnamed3694(core.List<api.AclEntry> o) { | 867 checkUnnamed3275(core.List<api.AclEntry> o) { |
868 unittest.expect(o, unittest.hasLength(2)); | 868 unittest.expect(o, unittest.hasLength(2)); |
869 checkAclEntry(o[0]); | 869 checkAclEntry(o[0]); |
870 checkAclEntry(o[1]); | 870 checkAclEntry(o[1]); |
871 } | 871 } |
872 | 872 |
873 core.int buildCounterIpConfiguration = 0; | 873 core.int buildCounterIpConfiguration = 0; |
874 buildIpConfiguration() { | 874 buildIpConfiguration() { |
875 var o = new api.IpConfiguration(); | 875 var o = new api.IpConfiguration(); |
876 buildCounterIpConfiguration++; | 876 buildCounterIpConfiguration++; |
877 if (buildCounterIpConfiguration < 3) { | 877 if (buildCounterIpConfiguration < 3) { |
878 o.authorizedNetworks = buildUnnamed3694(); | 878 o.authorizedNetworks = buildUnnamed3275(); |
879 o.ipv4Enabled = true; | 879 o.ipv4Enabled = true; |
880 o.requireSsl = true; | 880 o.requireSsl = true; |
881 } | 881 } |
882 buildCounterIpConfiguration--; | 882 buildCounterIpConfiguration--; |
883 return o; | 883 return o; |
884 } | 884 } |
885 | 885 |
886 checkIpConfiguration(api.IpConfiguration o) { | 886 checkIpConfiguration(api.IpConfiguration o) { |
887 buildCounterIpConfiguration++; | 887 buildCounterIpConfiguration++; |
888 if (buildCounterIpConfiguration < 3) { | 888 if (buildCounterIpConfiguration < 3) { |
889 checkUnnamed3694(o.authorizedNetworks); | 889 checkUnnamed3275(o.authorizedNetworks); |
890 unittest.expect(o.ipv4Enabled, unittest.isTrue); | 890 unittest.expect(o.ipv4Enabled, unittest.isTrue); |
891 unittest.expect(o.requireSsl, unittest.isTrue); | 891 unittest.expect(o.requireSsl, unittest.isTrue); |
892 } | 892 } |
893 buildCounterIpConfiguration--; | 893 buildCounterIpConfiguration--; |
894 } | 894 } |
895 | 895 |
896 core.int buildCounterIpMapping = 0; | 896 core.int buildCounterIpMapping = 0; |
897 buildIpMapping() { | 897 buildIpMapping() { |
898 var o = new api.IpMapping(); | 898 var o = new api.IpMapping(); |
899 buildCounterIpMapping++; | 899 buildCounterIpMapping++; |
900 if (buildCounterIpMapping < 3) { | 900 if (buildCounterIpMapping < 3) { |
901 o.ipAddress = "foo"; | 901 o.ipAddress = "foo"; |
902 o.timeToRetire = core.DateTime.parse("2002-02-27T14:01:02"); | 902 o.timeToRetire = core.DateTime.parse("2002-02-27T14:01:02"); |
903 o.type = "foo"; | 903 o.type = "foo"; |
904 } | 904 } |
905 buildCounterIpMapping--; | 905 buildCounterIpMapping--; |
906 return o; | 906 return o; |
907 } | 907 } |
908 | 908 |
909 checkIpMapping(api.IpMapping o) { | 909 checkIpMapping(api.IpMapping o) { |
910 buildCounterIpMapping++; | 910 buildCounterIpMapping++; |
911 if (buildCounterIpMapping < 3) { | 911 if (buildCounterIpMapping < 3) { |
912 unittest.expect(o.ipAddress, unittest.equals('foo')); | 912 unittest.expect(o.ipAddress, unittest.equals('foo')); |
913 unittest.expect(o.timeToRetire, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); | 913 unittest.expect(o.timeToRetire, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
914 unittest.expect(o.type, unittest.equals('foo')); | 914 unittest.expect(o.type, unittest.equals('foo')); |
915 } | 915 } |
916 buildCounterIpMapping--; | 916 buildCounterIpMapping--; |
917 } | 917 } |
918 | 918 |
| 919 core.int buildCounterLabels = 0; |
| 920 buildLabels() { |
| 921 var o = new api.Labels(); |
| 922 buildCounterLabels++; |
| 923 if (buildCounterLabels < 3) { |
| 924 o.key = "foo"; |
| 925 o.value = "foo"; |
| 926 } |
| 927 buildCounterLabels--; |
| 928 return o; |
| 929 } |
| 930 |
| 931 checkLabels(api.Labels o) { |
| 932 buildCounterLabels++; |
| 933 if (buildCounterLabels < 3) { |
| 934 unittest.expect(o.key, unittest.equals('foo')); |
| 935 unittest.expect(o.value, unittest.equals('foo')); |
| 936 } |
| 937 buildCounterLabels--; |
| 938 } |
| 939 |
919 core.int buildCounterLocationPreference = 0; | 940 core.int buildCounterLocationPreference = 0; |
920 buildLocationPreference() { | 941 buildLocationPreference() { |
921 var o = new api.LocationPreference(); | 942 var o = new api.LocationPreference(); |
922 buildCounterLocationPreference++; | 943 buildCounterLocationPreference++; |
923 if (buildCounterLocationPreference < 3) { | 944 if (buildCounterLocationPreference < 3) { |
924 o.followGaeApplication = "foo"; | 945 o.followGaeApplication = "foo"; |
925 o.kind = "foo"; | 946 o.kind = "foo"; |
926 o.zone = "foo"; | 947 o.zone = "foo"; |
927 } | 948 } |
928 buildCounterLocationPreference--; | 949 buildCounterLocationPreference--; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 checkOperationError(api.OperationError o) { | 1108 checkOperationError(api.OperationError o) { |
1088 buildCounterOperationError++; | 1109 buildCounterOperationError++; |
1089 if (buildCounterOperationError < 3) { | 1110 if (buildCounterOperationError < 3) { |
1090 unittest.expect(o.code, unittest.equals('foo')); | 1111 unittest.expect(o.code, unittest.equals('foo')); |
1091 unittest.expect(o.kind, unittest.equals('foo')); | 1112 unittest.expect(o.kind, unittest.equals('foo')); |
1092 unittest.expect(o.message, unittest.equals('foo')); | 1113 unittest.expect(o.message, unittest.equals('foo')); |
1093 } | 1114 } |
1094 buildCounterOperationError--; | 1115 buildCounterOperationError--; |
1095 } | 1116 } |
1096 | 1117 |
1097 buildUnnamed3695() { | 1118 buildUnnamed3276() { |
1098 var o = new core.List<api.OperationError>(); | 1119 var o = new core.List<api.OperationError>(); |
1099 o.add(buildOperationError()); | 1120 o.add(buildOperationError()); |
1100 o.add(buildOperationError()); | 1121 o.add(buildOperationError()); |
1101 return o; | 1122 return o; |
1102 } | 1123 } |
1103 | 1124 |
1104 checkUnnamed3695(core.List<api.OperationError> o) { | 1125 checkUnnamed3276(core.List<api.OperationError> o) { |
1105 unittest.expect(o, unittest.hasLength(2)); | 1126 unittest.expect(o, unittest.hasLength(2)); |
1106 checkOperationError(o[0]); | 1127 checkOperationError(o[0]); |
1107 checkOperationError(o[1]); | 1128 checkOperationError(o[1]); |
1108 } | 1129 } |
1109 | 1130 |
1110 core.int buildCounterOperationErrors = 0; | 1131 core.int buildCounterOperationErrors = 0; |
1111 buildOperationErrors() { | 1132 buildOperationErrors() { |
1112 var o = new api.OperationErrors(); | 1133 var o = new api.OperationErrors(); |
1113 buildCounterOperationErrors++; | 1134 buildCounterOperationErrors++; |
1114 if (buildCounterOperationErrors < 3) { | 1135 if (buildCounterOperationErrors < 3) { |
1115 o.errors = buildUnnamed3695(); | 1136 o.errors = buildUnnamed3276(); |
1116 o.kind = "foo"; | 1137 o.kind = "foo"; |
1117 } | 1138 } |
1118 buildCounterOperationErrors--; | 1139 buildCounterOperationErrors--; |
1119 return o; | 1140 return o; |
1120 } | 1141 } |
1121 | 1142 |
1122 checkOperationErrors(api.OperationErrors o) { | 1143 checkOperationErrors(api.OperationErrors o) { |
1123 buildCounterOperationErrors++; | 1144 buildCounterOperationErrors++; |
1124 if (buildCounterOperationErrors < 3) { | 1145 if (buildCounterOperationErrors < 3) { |
1125 checkUnnamed3695(o.errors); | 1146 checkUnnamed3276(o.errors); |
1126 unittest.expect(o.kind, unittest.equals('foo')); | 1147 unittest.expect(o.kind, unittest.equals('foo')); |
1127 } | 1148 } |
1128 buildCounterOperationErrors--; | 1149 buildCounterOperationErrors--; |
1129 } | 1150 } |
1130 | 1151 |
1131 buildUnnamed3696() { | 1152 buildUnnamed3277() { |
1132 var o = new core.List<api.Operation>(); | 1153 var o = new core.List<api.Operation>(); |
1133 o.add(buildOperation()); | 1154 o.add(buildOperation()); |
1134 o.add(buildOperation()); | 1155 o.add(buildOperation()); |
1135 return o; | 1156 return o; |
1136 } | 1157 } |
1137 | 1158 |
1138 checkUnnamed3696(core.List<api.Operation> o) { | 1159 checkUnnamed3277(core.List<api.Operation> o) { |
1139 unittest.expect(o, unittest.hasLength(2)); | 1160 unittest.expect(o, unittest.hasLength(2)); |
1140 checkOperation(o[0]); | 1161 checkOperation(o[0]); |
1141 checkOperation(o[1]); | 1162 checkOperation(o[1]); |
1142 } | 1163 } |
1143 | 1164 |
1144 core.int buildCounterOperationsListResponse = 0; | 1165 core.int buildCounterOperationsListResponse = 0; |
1145 buildOperationsListResponse() { | 1166 buildOperationsListResponse() { |
1146 var o = new api.OperationsListResponse(); | 1167 var o = new api.OperationsListResponse(); |
1147 buildCounterOperationsListResponse++; | 1168 buildCounterOperationsListResponse++; |
1148 if (buildCounterOperationsListResponse < 3) { | 1169 if (buildCounterOperationsListResponse < 3) { |
1149 o.items = buildUnnamed3696(); | 1170 o.items = buildUnnamed3277(); |
1150 o.kind = "foo"; | 1171 o.kind = "foo"; |
1151 o.nextPageToken = "foo"; | 1172 o.nextPageToken = "foo"; |
1152 } | 1173 } |
1153 buildCounterOperationsListResponse--; | 1174 buildCounterOperationsListResponse--; |
1154 return o; | 1175 return o; |
1155 } | 1176 } |
1156 | 1177 |
1157 checkOperationsListResponse(api.OperationsListResponse o) { | 1178 checkOperationsListResponse(api.OperationsListResponse o) { |
1158 buildCounterOperationsListResponse++; | 1179 buildCounterOperationsListResponse++; |
1159 if (buildCounterOperationsListResponse < 3) { | 1180 if (buildCounterOperationsListResponse < 3) { |
1160 checkUnnamed3696(o.items); | 1181 checkUnnamed3277(o.items); |
1161 unittest.expect(o.kind, unittest.equals('foo')); | 1182 unittest.expect(o.kind, unittest.equals('foo')); |
1162 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1183 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1163 } | 1184 } |
1164 buildCounterOperationsListResponse--; | 1185 buildCounterOperationsListResponse--; |
1165 } | 1186 } |
1166 | 1187 |
1167 core.int buildCounterReplicaConfiguration = 0; | 1188 core.int buildCounterReplicaConfiguration = 0; |
1168 buildReplicaConfiguration() { | 1189 buildReplicaConfiguration() { |
1169 var o = new api.ReplicaConfiguration(); | 1190 var o = new api.ReplicaConfiguration(); |
1170 buildCounterReplicaConfiguration++; | 1191 buildCounterReplicaConfiguration++; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1203 checkRestoreBackupContext(api.RestoreBackupContext o) { | 1224 checkRestoreBackupContext(api.RestoreBackupContext o) { |
1204 buildCounterRestoreBackupContext++; | 1225 buildCounterRestoreBackupContext++; |
1205 if (buildCounterRestoreBackupContext < 3) { | 1226 if (buildCounterRestoreBackupContext < 3) { |
1206 unittest.expect(o.backupRunId, unittest.equals('foo')); | 1227 unittest.expect(o.backupRunId, unittest.equals('foo')); |
1207 unittest.expect(o.instanceId, unittest.equals('foo')); | 1228 unittest.expect(o.instanceId, unittest.equals('foo')); |
1208 unittest.expect(o.kind, unittest.equals('foo')); | 1229 unittest.expect(o.kind, unittest.equals('foo')); |
1209 } | 1230 } |
1210 buildCounterRestoreBackupContext--; | 1231 buildCounterRestoreBackupContext--; |
1211 } | 1232 } |
1212 | 1233 |
1213 buildUnnamed3697() { | 1234 buildUnnamed3278() { |
1214 var o = new core.List<core.String>(); | 1235 var o = new core.List<core.String>(); |
1215 o.add("foo"); | 1236 o.add("foo"); |
1216 o.add("foo"); | 1237 o.add("foo"); |
1217 return o; | 1238 return o; |
1218 } | 1239 } |
1219 | 1240 |
1220 checkUnnamed3697(core.List<core.String> o) { | 1241 checkUnnamed3278(core.List<core.String> o) { |
1221 unittest.expect(o, unittest.hasLength(2)); | 1242 unittest.expect(o, unittest.hasLength(2)); |
1222 unittest.expect(o[0], unittest.equals('foo')); | 1243 unittest.expect(o[0], unittest.equals('foo')); |
1223 unittest.expect(o[1], unittest.equals('foo')); | 1244 unittest.expect(o[1], unittest.equals('foo')); |
1224 } | 1245 } |
1225 | 1246 |
1226 buildUnnamed3698() { | 1247 buildUnnamed3279() { |
1227 var o = new core.List<api.DatabaseFlags>(); | 1248 var o = new core.List<api.DatabaseFlags>(); |
1228 o.add(buildDatabaseFlags()); | 1249 o.add(buildDatabaseFlags()); |
1229 o.add(buildDatabaseFlags()); | 1250 o.add(buildDatabaseFlags()); |
1230 return o; | 1251 return o; |
1231 } | 1252 } |
1232 | 1253 |
1233 checkUnnamed3698(core.List<api.DatabaseFlags> o) { | 1254 checkUnnamed3279(core.List<api.DatabaseFlags> o) { |
1234 unittest.expect(o, unittest.hasLength(2)); | 1255 unittest.expect(o, unittest.hasLength(2)); |
1235 checkDatabaseFlags(o[0]); | 1256 checkDatabaseFlags(o[0]); |
1236 checkDatabaseFlags(o[1]); | 1257 checkDatabaseFlags(o[1]); |
1237 } | 1258 } |
1238 | 1259 |
| 1260 buildUnnamed3280() { |
| 1261 var o = new core.List<api.Labels>(); |
| 1262 o.add(buildLabels()); |
| 1263 o.add(buildLabels()); |
| 1264 return o; |
| 1265 } |
| 1266 |
| 1267 checkUnnamed3280(core.List<api.Labels> o) { |
| 1268 unittest.expect(o, unittest.hasLength(2)); |
| 1269 checkLabels(o[0]); |
| 1270 checkLabels(o[1]); |
| 1271 } |
| 1272 |
1239 core.int buildCounterSettings = 0; | 1273 core.int buildCounterSettings = 0; |
1240 buildSettings() { | 1274 buildSettings() { |
1241 var o = new api.Settings(); | 1275 var o = new api.Settings(); |
1242 buildCounterSettings++; | 1276 buildCounterSettings++; |
1243 if (buildCounterSettings < 3) { | 1277 if (buildCounterSettings < 3) { |
1244 o.activationPolicy = "foo"; | 1278 o.activationPolicy = "foo"; |
1245 o.authorizedGaeApplications = buildUnnamed3697(); | 1279 o.authorizedGaeApplications = buildUnnamed3278(); |
1246 o.availabilityType = "foo"; | 1280 o.availabilityType = "foo"; |
1247 o.backupConfiguration = buildBackupConfiguration(); | 1281 o.backupConfiguration = buildBackupConfiguration(); |
1248 o.crashSafeReplicationEnabled = true; | 1282 o.crashSafeReplicationEnabled = true; |
1249 o.dataDiskSizeGb = "foo"; | 1283 o.dataDiskSizeGb = "foo"; |
1250 o.dataDiskType = "foo"; | 1284 o.dataDiskType = "foo"; |
1251 o.databaseFlags = buildUnnamed3698(); | 1285 o.databaseFlags = buildUnnamed3279(); |
1252 o.databaseReplicationEnabled = true; | 1286 o.databaseReplicationEnabled = true; |
1253 o.ipConfiguration = buildIpConfiguration(); | 1287 o.ipConfiguration = buildIpConfiguration(); |
1254 o.kind = "foo"; | 1288 o.kind = "foo"; |
| 1289 o.labels = buildUnnamed3280(); |
1255 o.locationPreference = buildLocationPreference(); | 1290 o.locationPreference = buildLocationPreference(); |
1256 o.maintenanceWindow = buildMaintenanceWindow(); | 1291 o.maintenanceWindow = buildMaintenanceWindow(); |
1257 o.pricingPlan = "foo"; | 1292 o.pricingPlan = "foo"; |
1258 o.replicationType = "foo"; | 1293 o.replicationType = "foo"; |
1259 o.settingsVersion = "foo"; | 1294 o.settingsVersion = "foo"; |
1260 o.storageAutoResize = true; | 1295 o.storageAutoResize = true; |
1261 o.storageAutoResizeLimit = "foo"; | 1296 o.storageAutoResizeLimit = "foo"; |
1262 o.tier = "foo"; | 1297 o.tier = "foo"; |
1263 } | 1298 } |
1264 buildCounterSettings--; | 1299 buildCounterSettings--; |
1265 return o; | 1300 return o; |
1266 } | 1301 } |
1267 | 1302 |
1268 checkSettings(api.Settings o) { | 1303 checkSettings(api.Settings o) { |
1269 buildCounterSettings++; | 1304 buildCounterSettings++; |
1270 if (buildCounterSettings < 3) { | 1305 if (buildCounterSettings < 3) { |
1271 unittest.expect(o.activationPolicy, unittest.equals('foo')); | 1306 unittest.expect(o.activationPolicy, unittest.equals('foo')); |
1272 checkUnnamed3697(o.authorizedGaeApplications); | 1307 checkUnnamed3278(o.authorizedGaeApplications); |
1273 unittest.expect(o.availabilityType, unittest.equals('foo')); | 1308 unittest.expect(o.availabilityType, unittest.equals('foo')); |
1274 checkBackupConfiguration(o.backupConfiguration); | 1309 checkBackupConfiguration(o.backupConfiguration); |
1275 unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); | 1310 unittest.expect(o.crashSafeReplicationEnabled, unittest.isTrue); |
1276 unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); | 1311 unittest.expect(o.dataDiskSizeGb, unittest.equals('foo')); |
1277 unittest.expect(o.dataDiskType, unittest.equals('foo')); | 1312 unittest.expect(o.dataDiskType, unittest.equals('foo')); |
1278 checkUnnamed3698(o.databaseFlags); | 1313 checkUnnamed3279(o.databaseFlags); |
1279 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); | 1314 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); |
1280 checkIpConfiguration(o.ipConfiguration); | 1315 checkIpConfiguration(o.ipConfiguration); |
1281 unittest.expect(o.kind, unittest.equals('foo')); | 1316 unittest.expect(o.kind, unittest.equals('foo')); |
| 1317 checkUnnamed3280(o.labels); |
1282 checkLocationPreference(o.locationPreference); | 1318 checkLocationPreference(o.locationPreference); |
1283 checkMaintenanceWindow(o.maintenanceWindow); | 1319 checkMaintenanceWindow(o.maintenanceWindow); |
1284 unittest.expect(o.pricingPlan, unittest.equals('foo')); | 1320 unittest.expect(o.pricingPlan, unittest.equals('foo')); |
1285 unittest.expect(o.replicationType, unittest.equals('foo')); | 1321 unittest.expect(o.replicationType, unittest.equals('foo')); |
1286 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 1322 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
1287 unittest.expect(o.storageAutoResize, unittest.isTrue); | 1323 unittest.expect(o.storageAutoResize, unittest.isTrue); |
1288 unittest.expect(o.storageAutoResizeLimit, unittest.equals('foo')); | 1324 unittest.expect(o.storageAutoResizeLimit, unittest.equals('foo')); |
1289 unittest.expect(o.tier, unittest.equals('foo')); | 1325 unittest.expect(o.tier, unittest.equals('foo')); |
1290 } | 1326 } |
1291 buildCounterSettings--; | 1327 buildCounterSettings--; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1403 buildCounterSslCertsInsertResponse++; | 1439 buildCounterSslCertsInsertResponse++; |
1404 if (buildCounterSslCertsInsertResponse < 3) { | 1440 if (buildCounterSslCertsInsertResponse < 3) { |
1405 checkSslCertDetail(o.clientCert); | 1441 checkSslCertDetail(o.clientCert); |
1406 unittest.expect(o.kind, unittest.equals('foo')); | 1442 unittest.expect(o.kind, unittest.equals('foo')); |
1407 checkOperation(o.operation); | 1443 checkOperation(o.operation); |
1408 checkSslCert(o.serverCaCert); | 1444 checkSslCert(o.serverCaCert); |
1409 } | 1445 } |
1410 buildCounterSslCertsInsertResponse--; | 1446 buildCounterSslCertsInsertResponse--; |
1411 } | 1447 } |
1412 | 1448 |
1413 buildUnnamed3699() { | 1449 buildUnnamed3281() { |
1414 var o = new core.List<api.SslCert>(); | 1450 var o = new core.List<api.SslCert>(); |
1415 o.add(buildSslCert()); | 1451 o.add(buildSslCert()); |
1416 o.add(buildSslCert()); | 1452 o.add(buildSslCert()); |
1417 return o; | 1453 return o; |
1418 } | 1454 } |
1419 | 1455 |
1420 checkUnnamed3699(core.List<api.SslCert> o) { | 1456 checkUnnamed3281(core.List<api.SslCert> o) { |
1421 unittest.expect(o, unittest.hasLength(2)); | 1457 unittest.expect(o, unittest.hasLength(2)); |
1422 checkSslCert(o[0]); | 1458 checkSslCert(o[0]); |
1423 checkSslCert(o[1]); | 1459 checkSslCert(o[1]); |
1424 } | 1460 } |
1425 | 1461 |
1426 core.int buildCounterSslCertsListResponse = 0; | 1462 core.int buildCounterSslCertsListResponse = 0; |
1427 buildSslCertsListResponse() { | 1463 buildSslCertsListResponse() { |
1428 var o = new api.SslCertsListResponse(); | 1464 var o = new api.SslCertsListResponse(); |
1429 buildCounterSslCertsListResponse++; | 1465 buildCounterSslCertsListResponse++; |
1430 if (buildCounterSslCertsListResponse < 3) { | 1466 if (buildCounterSslCertsListResponse < 3) { |
1431 o.items = buildUnnamed3699(); | 1467 o.items = buildUnnamed3281(); |
1432 o.kind = "foo"; | 1468 o.kind = "foo"; |
1433 } | 1469 } |
1434 buildCounterSslCertsListResponse--; | 1470 buildCounterSslCertsListResponse--; |
1435 return o; | 1471 return o; |
1436 } | 1472 } |
1437 | 1473 |
1438 checkSslCertsListResponse(api.SslCertsListResponse o) { | 1474 checkSslCertsListResponse(api.SslCertsListResponse o) { |
1439 buildCounterSslCertsListResponse++; | 1475 buildCounterSslCertsListResponse++; |
1440 if (buildCounterSslCertsListResponse < 3) { | 1476 if (buildCounterSslCertsListResponse < 3) { |
1441 checkUnnamed3699(o.items); | 1477 checkUnnamed3281(o.items); |
1442 unittest.expect(o.kind, unittest.equals('foo')); | 1478 unittest.expect(o.kind, unittest.equals('foo')); |
1443 } | 1479 } |
1444 buildCounterSslCertsListResponse--; | 1480 buildCounterSslCertsListResponse--; |
1445 } | 1481 } |
1446 | 1482 |
1447 buildUnnamed3700() { | 1483 buildUnnamed3282() { |
1448 var o = new core.List<core.String>(); | 1484 var o = new core.List<core.String>(); |
1449 o.add("foo"); | 1485 o.add("foo"); |
1450 o.add("foo"); | 1486 o.add("foo"); |
1451 return o; | 1487 return o; |
1452 } | 1488 } |
1453 | 1489 |
1454 checkUnnamed3700(core.List<core.String> o) { | 1490 checkUnnamed3282(core.List<core.String> o) { |
1455 unittest.expect(o, unittest.hasLength(2)); | 1491 unittest.expect(o, unittest.hasLength(2)); |
1456 unittest.expect(o[0], unittest.equals('foo')); | 1492 unittest.expect(o[0], unittest.equals('foo')); |
1457 unittest.expect(o[1], unittest.equals('foo')); | 1493 unittest.expect(o[1], unittest.equals('foo')); |
1458 } | 1494 } |
1459 | 1495 |
1460 core.int buildCounterTier = 0; | 1496 core.int buildCounterTier = 0; |
1461 buildTier() { | 1497 buildTier() { |
1462 var o = new api.Tier(); | 1498 var o = new api.Tier(); |
1463 buildCounterTier++; | 1499 buildCounterTier++; |
1464 if (buildCounterTier < 3) { | 1500 if (buildCounterTier < 3) { |
1465 o.DiskQuota = "foo"; | 1501 o.DiskQuota = "foo"; |
1466 o.RAM = "foo"; | 1502 o.RAM = "foo"; |
1467 o.kind = "foo"; | 1503 o.kind = "foo"; |
1468 o.region = buildUnnamed3700(); | 1504 o.region = buildUnnamed3282(); |
1469 o.tier = "foo"; | 1505 o.tier = "foo"; |
1470 } | 1506 } |
1471 buildCounterTier--; | 1507 buildCounterTier--; |
1472 return o; | 1508 return o; |
1473 } | 1509 } |
1474 | 1510 |
1475 checkTier(api.Tier o) { | 1511 checkTier(api.Tier o) { |
1476 buildCounterTier++; | 1512 buildCounterTier++; |
1477 if (buildCounterTier < 3) { | 1513 if (buildCounterTier < 3) { |
1478 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1514 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
1479 unittest.expect(o.RAM, unittest.equals('foo')); | 1515 unittest.expect(o.RAM, unittest.equals('foo')); |
1480 unittest.expect(o.kind, unittest.equals('foo')); | 1516 unittest.expect(o.kind, unittest.equals('foo')); |
1481 checkUnnamed3700(o.region); | 1517 checkUnnamed3282(o.region); |
1482 unittest.expect(o.tier, unittest.equals('foo')); | 1518 unittest.expect(o.tier, unittest.equals('foo')); |
1483 } | 1519 } |
1484 buildCounterTier--; | 1520 buildCounterTier--; |
1485 } | 1521 } |
1486 | 1522 |
1487 buildUnnamed3701() { | 1523 buildUnnamed3283() { |
1488 var o = new core.List<api.Tier>(); | 1524 var o = new core.List<api.Tier>(); |
1489 o.add(buildTier()); | 1525 o.add(buildTier()); |
1490 o.add(buildTier()); | 1526 o.add(buildTier()); |
1491 return o; | 1527 return o; |
1492 } | 1528 } |
1493 | 1529 |
1494 checkUnnamed3701(core.List<api.Tier> o) { | 1530 checkUnnamed3283(core.List<api.Tier> o) { |
1495 unittest.expect(o, unittest.hasLength(2)); | 1531 unittest.expect(o, unittest.hasLength(2)); |
1496 checkTier(o[0]); | 1532 checkTier(o[0]); |
1497 checkTier(o[1]); | 1533 checkTier(o[1]); |
1498 } | 1534 } |
1499 | 1535 |
1500 core.int buildCounterTiersListResponse = 0; | 1536 core.int buildCounterTiersListResponse = 0; |
1501 buildTiersListResponse() { | 1537 buildTiersListResponse() { |
1502 var o = new api.TiersListResponse(); | 1538 var o = new api.TiersListResponse(); |
1503 buildCounterTiersListResponse++; | 1539 buildCounterTiersListResponse++; |
1504 if (buildCounterTiersListResponse < 3) { | 1540 if (buildCounterTiersListResponse < 3) { |
1505 o.items = buildUnnamed3701(); | 1541 o.items = buildUnnamed3283(); |
1506 o.kind = "foo"; | 1542 o.kind = "foo"; |
1507 } | 1543 } |
1508 buildCounterTiersListResponse--; | 1544 buildCounterTiersListResponse--; |
1509 return o; | 1545 return o; |
1510 } | 1546 } |
1511 | 1547 |
1512 checkTiersListResponse(api.TiersListResponse o) { | 1548 checkTiersListResponse(api.TiersListResponse o) { |
1513 buildCounterTiersListResponse++; | 1549 buildCounterTiersListResponse++; |
1514 if (buildCounterTiersListResponse < 3) { | 1550 if (buildCounterTiersListResponse < 3) { |
1515 checkUnnamed3701(o.items); | 1551 checkUnnamed3283(o.items); |
1516 unittest.expect(o.kind, unittest.equals('foo')); | 1552 unittest.expect(o.kind, unittest.equals('foo')); |
1517 } | 1553 } |
1518 buildCounterTiersListResponse--; | 1554 buildCounterTiersListResponse--; |
1519 } | 1555 } |
1520 | 1556 |
1521 core.int buildCounterTruncateLogContext = 0; | 1557 core.int buildCounterTruncateLogContext = 0; |
1522 buildTruncateLogContext() { | 1558 buildTruncateLogContext() { |
1523 var o = new api.TruncateLogContext(); | 1559 var o = new api.TruncateLogContext(); |
1524 buildCounterTruncateLogContext++; | 1560 buildCounterTruncateLogContext++; |
1525 if (buildCounterTruncateLogContext < 3) { | 1561 if (buildCounterTruncateLogContext < 3) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1563 unittest.expect(o.host, unittest.equals('foo')); | 1599 unittest.expect(o.host, unittest.equals('foo')); |
1564 unittest.expect(o.instance, unittest.equals('foo')); | 1600 unittest.expect(o.instance, unittest.equals('foo')); |
1565 unittest.expect(o.kind, unittest.equals('foo')); | 1601 unittest.expect(o.kind, unittest.equals('foo')); |
1566 unittest.expect(o.name, unittest.equals('foo')); | 1602 unittest.expect(o.name, unittest.equals('foo')); |
1567 unittest.expect(o.password, unittest.equals('foo')); | 1603 unittest.expect(o.password, unittest.equals('foo')); |
1568 unittest.expect(o.project, unittest.equals('foo')); | 1604 unittest.expect(o.project, unittest.equals('foo')); |
1569 } | 1605 } |
1570 buildCounterUser--; | 1606 buildCounterUser--; |
1571 } | 1607 } |
1572 | 1608 |
1573 buildUnnamed3702() { | 1609 buildUnnamed3284() { |
1574 var o = new core.List<api.User>(); | 1610 var o = new core.List<api.User>(); |
1575 o.add(buildUser()); | 1611 o.add(buildUser()); |
1576 o.add(buildUser()); | 1612 o.add(buildUser()); |
1577 return o; | 1613 return o; |
1578 } | 1614 } |
1579 | 1615 |
1580 checkUnnamed3702(core.List<api.User> o) { | 1616 checkUnnamed3284(core.List<api.User> o) { |
1581 unittest.expect(o, unittest.hasLength(2)); | 1617 unittest.expect(o, unittest.hasLength(2)); |
1582 checkUser(o[0]); | 1618 checkUser(o[0]); |
1583 checkUser(o[1]); | 1619 checkUser(o[1]); |
1584 } | 1620 } |
1585 | 1621 |
1586 core.int buildCounterUsersListResponse = 0; | 1622 core.int buildCounterUsersListResponse = 0; |
1587 buildUsersListResponse() { | 1623 buildUsersListResponse() { |
1588 var o = new api.UsersListResponse(); | 1624 var o = new api.UsersListResponse(); |
1589 buildCounterUsersListResponse++; | 1625 buildCounterUsersListResponse++; |
1590 if (buildCounterUsersListResponse < 3) { | 1626 if (buildCounterUsersListResponse < 3) { |
1591 o.items = buildUnnamed3702(); | 1627 o.items = buildUnnamed3284(); |
1592 o.kind = "foo"; | 1628 o.kind = "foo"; |
1593 o.nextPageToken = "foo"; | 1629 o.nextPageToken = "foo"; |
1594 } | 1630 } |
1595 buildCounterUsersListResponse--; | 1631 buildCounterUsersListResponse--; |
1596 return o; | 1632 return o; |
1597 } | 1633 } |
1598 | 1634 |
1599 checkUsersListResponse(api.UsersListResponse o) { | 1635 checkUsersListResponse(api.UsersListResponse o) { |
1600 buildCounterUsersListResponse++; | 1636 buildCounterUsersListResponse++; |
1601 if (buildCounterUsersListResponse < 3) { | 1637 if (buildCounterUsersListResponse < 3) { |
1602 checkUnnamed3702(o.items); | 1638 checkUnnamed3284(o.items); |
1603 unittest.expect(o.kind, unittest.equals('foo')); | 1639 unittest.expect(o.kind, unittest.equals('foo')); |
1604 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1640 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1605 } | 1641 } |
1606 buildCounterUsersListResponse--; | 1642 buildCounterUsersListResponse--; |
1607 } | 1643 } |
1608 | 1644 |
1609 | 1645 |
1610 main() { | 1646 main() { |
1611 unittest.group("obj-schema-AclEntry", () { | 1647 unittest.group("obj-schema-AclEntry", () { |
1612 unittest.test("to-json--from-json", () { | 1648 unittest.test("to-json--from-json", () { |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1853 | 1889 |
1854 unittest.group("obj-schema-IpMapping", () { | 1890 unittest.group("obj-schema-IpMapping", () { |
1855 unittest.test("to-json--from-json", () { | 1891 unittest.test("to-json--from-json", () { |
1856 var o = buildIpMapping(); | 1892 var o = buildIpMapping(); |
1857 var od = new api.IpMapping.fromJson(o.toJson()); | 1893 var od = new api.IpMapping.fromJson(o.toJson()); |
1858 checkIpMapping(od); | 1894 checkIpMapping(od); |
1859 }); | 1895 }); |
1860 }); | 1896 }); |
1861 | 1897 |
1862 | 1898 |
| 1899 unittest.group("obj-schema-Labels", () { |
| 1900 unittest.test("to-json--from-json", () { |
| 1901 var o = buildLabels(); |
| 1902 var od = new api.Labels.fromJson(o.toJson()); |
| 1903 checkLabels(od); |
| 1904 }); |
| 1905 }); |
| 1906 |
| 1907 |
1863 unittest.group("obj-schema-LocationPreference", () { | 1908 unittest.group("obj-schema-LocationPreference", () { |
1864 unittest.test("to-json--from-json", () { | 1909 unittest.test("to-json--from-json", () { |
1865 var o = buildLocationPreference(); | 1910 var o = buildLocationPreference(); |
1866 var od = new api.LocationPreference.fromJson(o.toJson()); | 1911 var od = new api.LocationPreference.fromJson(o.toJson()); |
1867 checkLocationPreference(od); | 1912 checkLocationPreference(od); |
1868 }); | 1913 }); |
1869 }); | 1914 }); |
1870 | 1915 |
1871 | 1916 |
1872 unittest.group("obj-schema-MaintenanceWindow", () { | 1917 unittest.group("obj-schema-MaintenanceWindow", () { |
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2718 }); | 2763 }); |
2719 | 2764 |
2720 }); | 2765 }); |
2721 | 2766 |
2722 | 2767 |
2723 unittest.group("resource-FlagsResourceApi", () { | 2768 unittest.group("resource-FlagsResourceApi", () { |
2724 unittest.test("method--list", () { | 2769 unittest.test("method--list", () { |
2725 | 2770 |
2726 var mock = new HttpServerMock(); | 2771 var mock = new HttpServerMock(); |
2727 api.FlagsResourceApi res = new api.SqladminApi(mock).flags; | 2772 api.FlagsResourceApi res = new api.SqladminApi(mock).flags; |
| 2773 var arg_databaseVersion = "foo"; |
2728 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2774 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2729 var path = (req.url).path; | 2775 var path = (req.url).path; |
2730 var pathOffset = 0; | 2776 var pathOffset = 0; |
2731 var index; | 2777 var index; |
2732 var subPart; | 2778 var subPart; |
2733 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2779 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2734 pathOffset += 1; | 2780 pathOffset += 1; |
2735 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta4/")); | 2781 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta4/")); |
2736 pathOffset += 12; | 2782 pathOffset += 12; |
2737 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("flags")); | 2783 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("flags")); |
2738 pathOffset += 5; | 2784 pathOffset += 5; |
2739 | 2785 |
2740 var query = (req.url).query; | 2786 var query = (req.url).query; |
2741 var queryOffset = 0; | 2787 var queryOffset = 0; |
2742 var queryMap = {}; | 2788 var queryMap = {}; |
2743 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2789 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2744 parseBool(n) { | 2790 parseBool(n) { |
2745 if (n == "true") return true; | 2791 if (n == "true") return true; |
2746 if (n == "false") return false; | 2792 if (n == "false") return false; |
2747 if (n == null) return null; | 2793 if (n == null) return null; |
2748 throw new core.ArgumentError("Invalid boolean: $n"); | 2794 throw new core.ArgumentError("Invalid boolean: $n"); |
2749 } | 2795 } |
2750 if (query.length > 0) { | 2796 if (query.length > 0) { |
2751 for (var part in query.split("&")) { | 2797 for (var part in query.split("&")) { |
2752 var keyvalue = part.split("="); | 2798 var keyvalue = part.split("="); |
2753 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2799 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2754 } | 2800 } |
2755 } | 2801 } |
| 2802 unittest.expect(queryMap["databaseVersion"].first, unittest.equals(arg_d
atabaseVersion)); |
2756 | 2803 |
2757 | 2804 |
2758 var h = { | 2805 var h = { |
2759 "content-type" : "application/json; charset=utf-8", | 2806 "content-type" : "application/json; charset=utf-8", |
2760 }; | 2807 }; |
2761 var resp = convert.JSON.encode(buildFlagsListResponse()); | 2808 var resp = convert.JSON.encode(buildFlagsListResponse()); |
2762 return new async.Future.value(stringResponse(200, h, resp)); | 2809 return new async.Future.value(stringResponse(200, h, resp)); |
2763 }), true); | 2810 }), true); |
2764 res.list().then(unittest.expectAsync(((api.FlagsListResponse response) { | 2811 res.list(databaseVersion: arg_databaseVersion).then(unittest.expectAsync((
(api.FlagsListResponse response) { |
2765 checkFlagsListResponse(response); | 2812 checkFlagsListResponse(response); |
2766 }))); | 2813 }))); |
2767 }); | 2814 }); |
2768 | 2815 |
2769 }); | 2816 }); |
2770 | 2817 |
2771 | 2818 |
2772 unittest.group("resource-InstancesResourceApi", () { | 2819 unittest.group("resource-InstancesResourceApi", () { |
2773 unittest.test("method--clone", () { | 2820 unittest.test("method--clone", () { |
2774 | 2821 |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3199 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { | 3246 res.insert(arg_request, arg_project).then(unittest.expectAsync(((api.Opera
tion response) { |
3200 checkOperation(response); | 3247 checkOperation(response); |
3201 }))); | 3248 }))); |
3202 }); | 3249 }); |
3203 | 3250 |
3204 unittest.test("method--list", () { | 3251 unittest.test("method--list", () { |
3205 | 3252 |
3206 var mock = new HttpServerMock(); | 3253 var mock = new HttpServerMock(); |
3207 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; | 3254 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; |
3208 var arg_project = "foo"; | 3255 var arg_project = "foo"; |
| 3256 var arg_filter = "foo"; |
3209 var arg_maxResults = 42; | 3257 var arg_maxResults = 42; |
3210 var arg_pageToken = "foo"; | 3258 var arg_pageToken = "foo"; |
3211 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3259 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3212 var path = (req.url).path; | 3260 var path = (req.url).path; |
3213 var pathOffset = 0; | 3261 var pathOffset = 0; |
3214 var index; | 3262 var index; |
3215 var subPart; | 3263 var subPart; |
3216 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3264 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3217 pathOffset += 1; | 3265 pathOffset += 1; |
3218 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta4/")); | 3266 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta4/")); |
(...skipping 17 matching lines...) Expand all Loading... |
3236 if (n == "false") return false; | 3284 if (n == "false") return false; |
3237 if (n == null) return null; | 3285 if (n == null) return null; |
3238 throw new core.ArgumentError("Invalid boolean: $n"); | 3286 throw new core.ArgumentError("Invalid boolean: $n"); |
3239 } | 3287 } |
3240 if (query.length > 0) { | 3288 if (query.length > 0) { |
3241 for (var part in query.split("&")) { | 3289 for (var part in query.split("&")) { |
3242 var keyvalue = part.split("="); | 3290 var keyvalue = part.split("="); |
3243 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3291 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3244 } | 3292 } |
3245 } | 3293 } |
| 3294 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
3246 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 3295 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
3247 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3296 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
3248 | 3297 |
3249 | 3298 |
3250 var h = { | 3299 var h = { |
3251 "content-type" : "application/json; charset=utf-8", | 3300 "content-type" : "application/json; charset=utf-8", |
3252 }; | 3301 }; |
3253 var resp = convert.JSON.encode(buildInstancesListResponse()); | 3302 var resp = convert.JSON.encode(buildInstancesListResponse()); |
3254 return new async.Future.value(stringResponse(200, h, resp)); | 3303 return new async.Future.value(stringResponse(200, h, resp)); |
3255 }), true); | 3304 }), true); |
3256 res.list(arg_project, maxResults: arg_maxResults, pageToken: arg_pageToken
).then(unittest.expectAsync(((api.InstancesListResponse response) { | 3305 res.list(arg_project, filter: arg_filter, maxResults: arg_maxResults, page
Token: arg_pageToken).then(unittest.expectAsync(((api.InstancesListResponse resp
onse) { |
3257 checkInstancesListResponse(response); | 3306 checkInstancesListResponse(response); |
3258 }))); | 3307 }))); |
3259 }); | 3308 }); |
3260 | 3309 |
3261 unittest.test("method--patch", () { | 3310 unittest.test("method--patch", () { |
3262 | 3311 |
3263 var mock = new HttpServerMock(); | 3312 var mock = new HttpServerMock(); |
3264 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; | 3313 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; |
3265 var arg_request = buildDatabaseInstance(); | 3314 var arg_request = buildDatabaseInstance(); |
3266 var arg_project = "foo"; | 3315 var arg_project = "foo"; |
(...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4579 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { | 4628 res.update(arg_request, arg_project, arg_instance, arg_host, arg_name).the
n(unittest.expectAsync(((api.Operation response) { |
4580 checkOperation(response); | 4629 checkOperation(response); |
4581 }))); | 4630 }))); |
4582 }); | 4631 }); |
4583 | 4632 |
4584 }); | 4633 }); |
4585 | 4634 |
4586 | 4635 |
4587 } | 4636 } |
4588 | 4637 |
OLD | NEW |