Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: generated/googleapis_beta/test/sqladmin/v1beta3_test.dart

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

Powered by Google App Engine
This is Rietveld 408576698