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