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 buildUnnamed1774() { | 81 buildUnnamed1841() { |
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 checkUnnamed1774(core.List<api.BackupRun> o) { | 88 checkUnnamed1841(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 = buildUnnamed1774(); | 99 o.items = buildUnnamed1841(); |
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 checkUnnamed1774(o.items); | 110 checkUnnamed1841(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 buildUnnamed1775() { | 186 buildUnnamed1842() { |
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 checkUnnamed1775(core.List<api.IpMapping> o) { | 193 checkUnnamed1842(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 buildUnnamed1776() { | 199 buildUnnamed1843() { |
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 checkUnnamed1776(core.List<core.String> o) { | 206 checkUnnamed1843(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 = buildUnnamed1775(); | 222 o.ipAddresses = buildUnnamed1842(); |
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 = buildUnnamed1776(); | 229 o.replicaNames = buildUnnamed1843(); |
230 o.serverCaCert = buildSslCert(); | 230 o.serverCaCert = buildSslCert(); |
231 o.serviceAccountEmailAddress = "foo"; | 231 o.serviceAccountEmailAddress = "foo"; |
232 o.settings = buildSettings(); | 232 o.settings = buildSettings(); |
233 o.state = "foo"; | 233 o.state = "foo"; |
234 } | 234 } |
235 buildCounterDatabaseInstance--; | 235 buildCounterDatabaseInstance--; |
236 return o; | 236 return o; |
237 } | 237 } |
238 | 238 |
239 checkDatabaseInstance(api.DatabaseInstance o) { | 239 checkDatabaseInstance(api.DatabaseInstance o) { |
240 buildCounterDatabaseInstance++; | 240 buildCounterDatabaseInstance++; |
241 if (buildCounterDatabaseInstance < 3) { | 241 if (buildCounterDatabaseInstance < 3) { |
242 unittest.expect(o.currentDiskSize, unittest.equals('foo')); | 242 unittest.expect(o.currentDiskSize, unittest.equals('foo')); |
243 unittest.expect(o.databaseVersion, unittest.equals('foo')); | 243 unittest.expect(o.databaseVersion, unittest.equals('foo')); |
244 unittest.expect(o.etag, unittest.equals('foo')); | 244 unittest.expect(o.etag, unittest.equals('foo')); |
245 unittest.expect(o.instance, unittest.equals('foo')); | 245 unittest.expect(o.instance, unittest.equals('foo')); |
246 unittest.expect(o.instanceType, unittest.equals('foo')); | 246 unittest.expect(o.instanceType, unittest.equals('foo')); |
247 checkUnnamed1775(o.ipAddresses); | 247 checkUnnamed1842(o.ipAddresses); |
248 unittest.expect(o.ipv6Address, unittest.equals('foo')); | 248 unittest.expect(o.ipv6Address, unittest.equals('foo')); |
249 unittest.expect(o.kind, unittest.equals('foo')); | 249 unittest.expect(o.kind, unittest.equals('foo')); |
250 unittest.expect(o.masterInstanceName, unittest.equals('foo')); | 250 unittest.expect(o.masterInstanceName, unittest.equals('foo')); |
251 unittest.expect(o.maxDiskSize, unittest.equals('foo')); | 251 unittest.expect(o.maxDiskSize, unittest.equals('foo')); |
252 unittest.expect(o.project, unittest.equals('foo')); | 252 unittest.expect(o.project, unittest.equals('foo')); |
253 unittest.expect(o.region, unittest.equals('foo')); | 253 unittest.expect(o.region, unittest.equals('foo')); |
254 checkUnnamed1776(o.replicaNames); | 254 checkUnnamed1843(o.replicaNames); |
255 checkSslCert(o.serverCaCert); | 255 checkSslCert(o.serverCaCert); |
256 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); | 256 unittest.expect(o.serviceAccountEmailAddress, unittest.equals('foo')); |
257 checkSettings(o.settings); | 257 checkSettings(o.settings); |
258 unittest.expect(o.state, unittest.equals('foo')); | 258 unittest.expect(o.state, unittest.equals('foo')); |
259 } | 259 } |
260 buildCounterDatabaseInstance--; | 260 buildCounterDatabaseInstance--; |
261 } | 261 } |
262 | 262 |
263 buildUnnamed1777() { | 263 buildUnnamed1844() { |
264 var o = new core.List<core.String>(); | 264 var o = new core.List<core.String>(); |
265 o.add("foo"); | 265 o.add("foo"); |
266 o.add("foo"); | 266 o.add("foo"); |
267 return o; | 267 return o; |
268 } | 268 } |
269 | 269 |
270 checkUnnamed1777(core.List<core.String> o) { | 270 checkUnnamed1844(core.List<core.String> o) { |
271 unittest.expect(o, unittest.hasLength(2)); | 271 unittest.expect(o, unittest.hasLength(2)); |
272 unittest.expect(o[0], unittest.equals('foo')); | 272 unittest.expect(o[0], unittest.equals('foo')); |
273 unittest.expect(o[1], unittest.equals('foo')); | 273 unittest.expect(o[1], unittest.equals('foo')); |
274 } | 274 } |
275 | 275 |
276 buildUnnamed1778() { | 276 buildUnnamed1845() { |
277 var o = new core.List<core.String>(); | 277 var o = new core.List<core.String>(); |
278 o.add("foo"); | 278 o.add("foo"); |
279 o.add("foo"); | 279 o.add("foo"); |
280 return o; | 280 return o; |
281 } | 281 } |
282 | 282 |
283 checkUnnamed1778(core.List<core.String> o) { | 283 checkUnnamed1845(core.List<core.String> o) { |
284 unittest.expect(o, unittest.hasLength(2)); | 284 unittest.expect(o, unittest.hasLength(2)); |
285 unittest.expect(o[0], unittest.equals('foo')); | 285 unittest.expect(o[0], unittest.equals('foo')); |
286 unittest.expect(o[1], unittest.equals('foo')); | 286 unittest.expect(o[1], unittest.equals('foo')); |
287 } | 287 } |
288 | 288 |
289 core.int buildCounterExportContext = 0; | 289 core.int buildCounterExportContext = 0; |
290 buildExportContext() { | 290 buildExportContext() { |
291 var o = new api.ExportContext(); | 291 var o = new api.ExportContext(); |
292 buildCounterExportContext++; | 292 buildCounterExportContext++; |
293 if (buildCounterExportContext < 3) { | 293 if (buildCounterExportContext < 3) { |
294 o.database = buildUnnamed1777(); | 294 o.database = buildUnnamed1844(); |
295 o.kind = "foo"; | 295 o.kind = "foo"; |
296 o.table = buildUnnamed1778(); | 296 o.table = buildUnnamed1845(); |
297 o.uri = "foo"; | 297 o.uri = "foo"; |
298 } | 298 } |
299 buildCounterExportContext--; | 299 buildCounterExportContext--; |
300 return o; | 300 return o; |
301 } | 301 } |
302 | 302 |
303 checkExportContext(api.ExportContext o) { | 303 checkExportContext(api.ExportContext o) { |
304 buildCounterExportContext++; | 304 buildCounterExportContext++; |
305 if (buildCounterExportContext < 3) { | 305 if (buildCounterExportContext < 3) { |
306 checkUnnamed1777(o.database); | 306 checkUnnamed1844(o.database); |
307 unittest.expect(o.kind, unittest.equals('foo')); | 307 unittest.expect(o.kind, unittest.equals('foo')); |
308 checkUnnamed1778(o.table); | 308 checkUnnamed1845(o.table); |
309 unittest.expect(o.uri, unittest.equals('foo')); | 309 unittest.expect(o.uri, unittest.equals('foo')); |
310 } | 310 } |
311 buildCounterExportContext--; | 311 buildCounterExportContext--; |
312 } | 312 } |
313 | 313 |
314 buildUnnamed1779() { | 314 buildUnnamed1846() { |
315 var o = new core.List<core.String>(); | 315 var o = new core.List<core.String>(); |
316 o.add("foo"); | 316 o.add("foo"); |
317 o.add("foo"); | 317 o.add("foo"); |
318 return o; | 318 return o; |
319 } | 319 } |
320 | 320 |
321 checkUnnamed1779(core.List<core.String> o) { | 321 checkUnnamed1846(core.List<core.String> o) { |
322 unittest.expect(o, unittest.hasLength(2)); | 322 unittest.expect(o, unittest.hasLength(2)); |
323 unittest.expect(o[0], unittest.equals('foo')); | 323 unittest.expect(o[0], unittest.equals('foo')); |
324 unittest.expect(o[1], unittest.equals('foo')); | 324 unittest.expect(o[1], unittest.equals('foo')); |
325 } | 325 } |
326 | 326 |
327 buildUnnamed1780() { | 327 buildUnnamed1847() { |
328 var o = new core.List<core.String>(); | 328 var o = new core.List<core.String>(); |
329 o.add("foo"); | 329 o.add("foo"); |
330 o.add("foo"); | 330 o.add("foo"); |
331 return o; | 331 return o; |
332 } | 332 } |
333 | 333 |
334 checkUnnamed1780(core.List<core.String> o) { | 334 checkUnnamed1847(core.List<core.String> o) { |
335 unittest.expect(o, unittest.hasLength(2)); | 335 unittest.expect(o, unittest.hasLength(2)); |
336 unittest.expect(o[0], unittest.equals('foo')); | 336 unittest.expect(o[0], unittest.equals('foo')); |
337 unittest.expect(o[1], unittest.equals('foo')); | 337 unittest.expect(o[1], unittest.equals('foo')); |
338 } | 338 } |
339 | 339 |
340 core.int buildCounterFlag = 0; | 340 core.int buildCounterFlag = 0; |
341 buildFlag() { | 341 buildFlag() { |
342 var o = new api.Flag(); | 342 var o = new api.Flag(); |
343 buildCounterFlag++; | 343 buildCounterFlag++; |
344 if (buildCounterFlag < 3) { | 344 if (buildCounterFlag < 3) { |
345 o.allowedStringValues = buildUnnamed1779(); | 345 o.allowedStringValues = buildUnnamed1846(); |
346 o.appliesTo = buildUnnamed1780(); | 346 o.appliesTo = buildUnnamed1847(); |
347 o.kind = "foo"; | 347 o.kind = "foo"; |
348 o.maxValue = "foo"; | 348 o.maxValue = "foo"; |
349 o.minValue = "foo"; | 349 o.minValue = "foo"; |
350 o.name = "foo"; | 350 o.name = "foo"; |
351 o.type = "foo"; | 351 o.type = "foo"; |
352 } | 352 } |
353 buildCounterFlag--; | 353 buildCounterFlag--; |
354 return o; | 354 return o; |
355 } | 355 } |
356 | 356 |
357 checkFlag(api.Flag o) { | 357 checkFlag(api.Flag o) { |
358 buildCounterFlag++; | 358 buildCounterFlag++; |
359 if (buildCounterFlag < 3) { | 359 if (buildCounterFlag < 3) { |
360 checkUnnamed1779(o.allowedStringValues); | 360 checkUnnamed1846(o.allowedStringValues); |
361 checkUnnamed1780(o.appliesTo); | 361 checkUnnamed1847(o.appliesTo); |
362 unittest.expect(o.kind, unittest.equals('foo')); | 362 unittest.expect(o.kind, unittest.equals('foo')); |
363 unittest.expect(o.maxValue, unittest.equals('foo')); | 363 unittest.expect(o.maxValue, unittest.equals('foo')); |
364 unittest.expect(o.minValue, unittest.equals('foo')); | 364 unittest.expect(o.minValue, unittest.equals('foo')); |
365 unittest.expect(o.name, unittest.equals('foo')); | 365 unittest.expect(o.name, unittest.equals('foo')); |
366 unittest.expect(o.type, unittest.equals('foo')); | 366 unittest.expect(o.type, unittest.equals('foo')); |
367 } | 367 } |
368 buildCounterFlag--; | 368 buildCounterFlag--; |
369 } | 369 } |
370 | 370 |
371 buildUnnamed1781() { | 371 buildUnnamed1848() { |
372 var o = new core.List<api.Flag>(); | 372 var o = new core.List<api.Flag>(); |
373 o.add(buildFlag()); | 373 o.add(buildFlag()); |
374 o.add(buildFlag()); | 374 o.add(buildFlag()); |
375 return o; | 375 return o; |
376 } | 376 } |
377 | 377 |
378 checkUnnamed1781(core.List<api.Flag> o) { | 378 checkUnnamed1848(core.List<api.Flag> o) { |
379 unittest.expect(o, unittest.hasLength(2)); | 379 unittest.expect(o, unittest.hasLength(2)); |
380 checkFlag(o[0]); | 380 checkFlag(o[0]); |
381 checkFlag(o[1]); | 381 checkFlag(o[1]); |
382 } | 382 } |
383 | 383 |
384 core.int buildCounterFlagsListResponse = 0; | 384 core.int buildCounterFlagsListResponse = 0; |
385 buildFlagsListResponse() { | 385 buildFlagsListResponse() { |
386 var o = new api.FlagsListResponse(); | 386 var o = new api.FlagsListResponse(); |
387 buildCounterFlagsListResponse++; | 387 buildCounterFlagsListResponse++; |
388 if (buildCounterFlagsListResponse < 3) { | 388 if (buildCounterFlagsListResponse < 3) { |
389 o.items = buildUnnamed1781(); | 389 o.items = buildUnnamed1848(); |
390 o.kind = "foo"; | 390 o.kind = "foo"; |
391 } | 391 } |
392 buildCounterFlagsListResponse--; | 392 buildCounterFlagsListResponse--; |
393 return o; | 393 return o; |
394 } | 394 } |
395 | 395 |
396 checkFlagsListResponse(api.FlagsListResponse o) { | 396 checkFlagsListResponse(api.FlagsListResponse o) { |
397 buildCounterFlagsListResponse++; | 397 buildCounterFlagsListResponse++; |
398 if (buildCounterFlagsListResponse < 3) { | 398 if (buildCounterFlagsListResponse < 3) { |
399 checkUnnamed1781(o.items); | 399 checkUnnamed1848(o.items); |
400 unittest.expect(o.kind, unittest.equals('foo')); | 400 unittest.expect(o.kind, unittest.equals('foo')); |
401 } | 401 } |
402 buildCounterFlagsListResponse--; | 402 buildCounterFlagsListResponse--; |
403 } | 403 } |
404 | 404 |
405 buildUnnamed1782() { | 405 buildUnnamed1849() { |
406 var o = new core.List<core.String>(); | 406 var o = new core.List<core.String>(); |
407 o.add("foo"); | 407 o.add("foo"); |
408 o.add("foo"); | 408 o.add("foo"); |
409 return o; | 409 return o; |
410 } | 410 } |
411 | 411 |
412 checkUnnamed1782(core.List<core.String> o) { | 412 checkUnnamed1849(core.List<core.String> o) { |
413 unittest.expect(o, unittest.hasLength(2)); | 413 unittest.expect(o, unittest.hasLength(2)); |
414 unittest.expect(o[0], unittest.equals('foo')); | 414 unittest.expect(o[0], unittest.equals('foo')); |
415 unittest.expect(o[1], unittest.equals('foo')); | 415 unittest.expect(o[1], unittest.equals('foo')); |
416 } | 416 } |
417 | 417 |
418 core.int buildCounterImportContext = 0; | 418 core.int buildCounterImportContext = 0; |
419 buildImportContext() { | 419 buildImportContext() { |
420 var o = new api.ImportContext(); | 420 var o = new api.ImportContext(); |
421 buildCounterImportContext++; | 421 buildCounterImportContext++; |
422 if (buildCounterImportContext < 3) { | 422 if (buildCounterImportContext < 3) { |
423 o.database = "foo"; | 423 o.database = "foo"; |
424 o.kind = "foo"; | 424 o.kind = "foo"; |
425 o.uri = buildUnnamed1782(); | 425 o.uri = buildUnnamed1849(); |
426 } | 426 } |
427 buildCounterImportContext--; | 427 buildCounterImportContext--; |
428 return o; | 428 return o; |
429 } | 429 } |
430 | 430 |
431 checkImportContext(api.ImportContext o) { | 431 checkImportContext(api.ImportContext o) { |
432 buildCounterImportContext++; | 432 buildCounterImportContext++; |
433 if (buildCounterImportContext < 3) { | 433 if (buildCounterImportContext < 3) { |
434 unittest.expect(o.database, unittest.equals('foo')); | 434 unittest.expect(o.database, unittest.equals('foo')); |
435 unittest.expect(o.kind, unittest.equals('foo')); | 435 unittest.expect(o.kind, unittest.equals('foo')); |
436 checkUnnamed1782(o.uri); | 436 checkUnnamed1849(o.uri); |
437 } | 437 } |
438 buildCounterImportContext--; | 438 buildCounterImportContext--; |
439 } | 439 } |
440 | 440 |
441 buildUnnamed1783() { | 441 buildUnnamed1850() { |
442 var o = new core.List<api.OperationError>(); | 442 var o = new core.List<api.OperationError>(); |
443 o.add(buildOperationError()); | 443 o.add(buildOperationError()); |
444 o.add(buildOperationError()); | 444 o.add(buildOperationError()); |
445 return o; | 445 return o; |
446 } | 446 } |
447 | 447 |
448 checkUnnamed1783(core.List<api.OperationError> o) { | 448 checkUnnamed1850(core.List<api.OperationError> o) { |
449 unittest.expect(o, unittest.hasLength(2)); | 449 unittest.expect(o, unittest.hasLength(2)); |
450 checkOperationError(o[0]); | 450 checkOperationError(o[0]); |
451 checkOperationError(o[1]); | 451 checkOperationError(o[1]); |
452 } | 452 } |
453 | 453 |
454 core.int buildCounterInstanceOperation = 0; | 454 core.int buildCounterInstanceOperation = 0; |
455 buildInstanceOperation() { | 455 buildInstanceOperation() { |
456 var o = new api.InstanceOperation(); | 456 var o = new api.InstanceOperation(); |
457 buildCounterInstanceOperation++; | 457 buildCounterInstanceOperation++; |
458 if (buildCounterInstanceOperation < 3) { | 458 if (buildCounterInstanceOperation < 3) { |
459 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); | 459 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); |
460 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 460 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
461 o.error = buildUnnamed1783(); | 461 o.error = buildUnnamed1850(); |
462 o.exportContext = buildExportContext(); | 462 o.exportContext = buildExportContext(); |
463 o.importContext = buildImportContext(); | 463 o.importContext = buildImportContext(); |
464 o.instance = "foo"; | 464 o.instance = "foo"; |
465 o.kind = "foo"; | 465 o.kind = "foo"; |
466 o.operation = "foo"; | 466 o.operation = "foo"; |
467 o.operationType = "foo"; | 467 o.operationType = "foo"; |
468 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); | 468 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); |
469 o.state = "foo"; | 469 o.state = "foo"; |
470 o.userEmailAddress = "foo"; | 470 o.userEmailAddress = "foo"; |
471 } | 471 } |
472 buildCounterInstanceOperation--; | 472 buildCounterInstanceOperation--; |
473 return o; | 473 return o; |
474 } | 474 } |
475 | 475 |
476 checkInstanceOperation(api.InstanceOperation o) { | 476 checkInstanceOperation(api.InstanceOperation o) { |
477 buildCounterInstanceOperation++; | 477 buildCounterInstanceOperation++; |
478 if (buildCounterInstanceOperation < 3) { | 478 if (buildCounterInstanceOperation < 3) { |
479 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"))); |
480 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"))); |
481 checkUnnamed1783(o.error); | 481 checkUnnamed1850(o.error); |
482 checkExportContext(o.exportContext); | 482 checkExportContext(o.exportContext); |
483 checkImportContext(o.importContext); | 483 checkImportContext(o.importContext); |
484 unittest.expect(o.instance, unittest.equals('foo')); | 484 unittest.expect(o.instance, unittest.equals('foo')); |
485 unittest.expect(o.kind, unittest.equals('foo')); | 485 unittest.expect(o.kind, unittest.equals('foo')); |
486 unittest.expect(o.operation, unittest.equals('foo')); | 486 unittest.expect(o.operation, unittest.equals('foo')); |
487 unittest.expect(o.operationType, unittest.equals('foo')); | 487 unittest.expect(o.operationType, unittest.equals('foo')); |
488 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"))); |
489 unittest.expect(o.state, unittest.equals('foo')); | 489 unittest.expect(o.state, unittest.equals('foo')); |
490 unittest.expect(o.userEmailAddress, unittest.equals('foo')); | 490 unittest.expect(o.userEmailAddress, unittest.equals('foo')); |
491 } | 491 } |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 | 666 |
667 checkInstancesInsertResponse(api.InstancesInsertResponse o) { | 667 checkInstancesInsertResponse(api.InstancesInsertResponse o) { |
668 buildCounterInstancesInsertResponse++; | 668 buildCounterInstancesInsertResponse++; |
669 if (buildCounterInstancesInsertResponse < 3) { | 669 if (buildCounterInstancesInsertResponse < 3) { |
670 unittest.expect(o.kind, unittest.equals('foo')); | 670 unittest.expect(o.kind, unittest.equals('foo')); |
671 unittest.expect(o.operation, unittest.equals('foo')); | 671 unittest.expect(o.operation, unittest.equals('foo')); |
672 } | 672 } |
673 buildCounterInstancesInsertResponse--; | 673 buildCounterInstancesInsertResponse--; |
674 } | 674 } |
675 | 675 |
676 buildUnnamed1784() { | 676 buildUnnamed1851() { |
677 var o = new core.List<api.DatabaseInstance>(); | 677 var o = new core.List<api.DatabaseInstance>(); |
678 o.add(buildDatabaseInstance()); | 678 o.add(buildDatabaseInstance()); |
679 o.add(buildDatabaseInstance()); | 679 o.add(buildDatabaseInstance()); |
680 return o; | 680 return o; |
681 } | 681 } |
682 | 682 |
683 checkUnnamed1784(core.List<api.DatabaseInstance> o) { | 683 checkUnnamed1851(core.List<api.DatabaseInstance> o) { |
684 unittest.expect(o, unittest.hasLength(2)); | 684 unittest.expect(o, unittest.hasLength(2)); |
685 checkDatabaseInstance(o[0]); | 685 checkDatabaseInstance(o[0]); |
686 checkDatabaseInstance(o[1]); | 686 checkDatabaseInstance(o[1]); |
687 } | 687 } |
688 | 688 |
689 core.int buildCounterInstancesListResponse = 0; | 689 core.int buildCounterInstancesListResponse = 0; |
690 buildInstancesListResponse() { | 690 buildInstancesListResponse() { |
691 var o = new api.InstancesListResponse(); | 691 var o = new api.InstancesListResponse(); |
692 buildCounterInstancesListResponse++; | 692 buildCounterInstancesListResponse++; |
693 if (buildCounterInstancesListResponse < 3) { | 693 if (buildCounterInstancesListResponse < 3) { |
694 o.items = buildUnnamed1784(); | 694 o.items = buildUnnamed1851(); |
695 o.kind = "foo"; | 695 o.kind = "foo"; |
696 o.nextPageToken = "foo"; | 696 o.nextPageToken = "foo"; |
697 } | 697 } |
698 buildCounterInstancesListResponse--; | 698 buildCounterInstancesListResponse--; |
699 return o; | 699 return o; |
700 } | 700 } |
701 | 701 |
702 checkInstancesListResponse(api.InstancesListResponse o) { | 702 checkInstancesListResponse(api.InstancesListResponse o) { |
703 buildCounterInstancesListResponse++; | 703 buildCounterInstancesListResponse++; |
704 if (buildCounterInstancesListResponse < 3) { | 704 if (buildCounterInstancesListResponse < 3) { |
705 checkUnnamed1784(o.items); | 705 checkUnnamed1851(o.items); |
706 unittest.expect(o.kind, unittest.equals('foo')); | 706 unittest.expect(o.kind, unittest.equals('foo')); |
707 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 707 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
708 } | 708 } |
709 buildCounterInstancesListResponse--; | 709 buildCounterInstancesListResponse--; |
710 } | 710 } |
711 | 711 |
712 core.int buildCounterInstancesPromoteReplicaResponse = 0; | 712 core.int buildCounterInstancesPromoteReplicaResponse = 0; |
713 buildInstancesPromoteReplicaResponse() { | 713 buildInstancesPromoteReplicaResponse() { |
714 var o = new api.InstancesPromoteReplicaResponse(); | 714 var o = new api.InstancesPromoteReplicaResponse(); |
715 buildCounterInstancesPromoteReplicaResponse++; | 715 buildCounterInstancesPromoteReplicaResponse++; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 | 828 |
829 checkInstancesUpdateResponse(api.InstancesUpdateResponse o) { | 829 checkInstancesUpdateResponse(api.InstancesUpdateResponse o) { |
830 buildCounterInstancesUpdateResponse++; | 830 buildCounterInstancesUpdateResponse++; |
831 if (buildCounterInstancesUpdateResponse < 3) { | 831 if (buildCounterInstancesUpdateResponse < 3) { |
832 unittest.expect(o.kind, unittest.equals('foo')); | 832 unittest.expect(o.kind, unittest.equals('foo')); |
833 unittest.expect(o.operation, unittest.equals('foo')); | 833 unittest.expect(o.operation, unittest.equals('foo')); |
834 } | 834 } |
835 buildCounterInstancesUpdateResponse--; | 835 buildCounterInstancesUpdateResponse--; |
836 } | 836 } |
837 | 837 |
838 buildUnnamed1785() { | 838 buildUnnamed1852() { |
839 var o = new core.List<core.String>(); | 839 var o = new core.List<core.String>(); |
840 o.add("foo"); | 840 o.add("foo"); |
841 o.add("foo"); | 841 o.add("foo"); |
842 return o; | 842 return o; |
843 } | 843 } |
844 | 844 |
845 checkUnnamed1785(core.List<core.String> o) { | 845 checkUnnamed1852(core.List<core.String> o) { |
846 unittest.expect(o, unittest.hasLength(2)); | 846 unittest.expect(o, unittest.hasLength(2)); |
847 unittest.expect(o[0], unittest.equals('foo')); | 847 unittest.expect(o[0], unittest.equals('foo')); |
848 unittest.expect(o[1], unittest.equals('foo')); | 848 unittest.expect(o[1], unittest.equals('foo')); |
849 } | 849 } |
850 | 850 |
851 core.int buildCounterIpConfiguration = 0; | 851 core.int buildCounterIpConfiguration = 0; |
852 buildIpConfiguration() { | 852 buildIpConfiguration() { |
853 var o = new api.IpConfiguration(); | 853 var o = new api.IpConfiguration(); |
854 buildCounterIpConfiguration++; | 854 buildCounterIpConfiguration++; |
855 if (buildCounterIpConfiguration < 3) { | 855 if (buildCounterIpConfiguration < 3) { |
856 o.authorizedNetworks = buildUnnamed1785(); | 856 o.authorizedNetworks = buildUnnamed1852(); |
857 o.enabled = true; | 857 o.enabled = true; |
858 o.kind = "foo"; | 858 o.kind = "foo"; |
859 o.requireSsl = true; | 859 o.requireSsl = true; |
860 } | 860 } |
861 buildCounterIpConfiguration--; | 861 buildCounterIpConfiguration--; |
862 return o; | 862 return o; |
863 } | 863 } |
864 | 864 |
865 checkIpConfiguration(api.IpConfiguration o) { | 865 checkIpConfiguration(api.IpConfiguration o) { |
866 buildCounterIpConfiguration++; | 866 buildCounterIpConfiguration++; |
867 if (buildCounterIpConfiguration < 3) { | 867 if (buildCounterIpConfiguration < 3) { |
868 checkUnnamed1785(o.authorizedNetworks); | 868 checkUnnamed1852(o.authorizedNetworks); |
869 unittest.expect(o.enabled, unittest.isTrue); | 869 unittest.expect(o.enabled, unittest.isTrue); |
870 unittest.expect(o.kind, unittest.equals('foo')); | 870 unittest.expect(o.kind, unittest.equals('foo')); |
871 unittest.expect(o.requireSsl, unittest.isTrue); | 871 unittest.expect(o.requireSsl, unittest.isTrue); |
872 } | 872 } |
873 buildCounterIpConfiguration--; | 873 buildCounterIpConfiguration--; |
874 } | 874 } |
875 | 875 |
876 core.int buildCounterIpMapping = 0; | 876 core.int buildCounterIpMapping = 0; |
877 buildIpMapping() { | 877 buildIpMapping() { |
878 var o = new api.IpMapping(); | 878 var o = new api.IpMapping(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 | 931 |
932 checkOperationError(api.OperationError o) { | 932 checkOperationError(api.OperationError o) { |
933 buildCounterOperationError++; | 933 buildCounterOperationError++; |
934 if (buildCounterOperationError < 3) { | 934 if (buildCounterOperationError < 3) { |
935 unittest.expect(o.code, unittest.equals('foo')); | 935 unittest.expect(o.code, unittest.equals('foo')); |
936 unittest.expect(o.kind, unittest.equals('foo')); | 936 unittest.expect(o.kind, unittest.equals('foo')); |
937 } | 937 } |
938 buildCounterOperationError--; | 938 buildCounterOperationError--; |
939 } | 939 } |
940 | 940 |
941 buildUnnamed1786() { | 941 buildUnnamed1853() { |
942 var o = new core.List<api.InstanceOperation>(); | 942 var o = new core.List<api.InstanceOperation>(); |
943 o.add(buildInstanceOperation()); | 943 o.add(buildInstanceOperation()); |
944 o.add(buildInstanceOperation()); | 944 o.add(buildInstanceOperation()); |
945 return o; | 945 return o; |
946 } | 946 } |
947 | 947 |
948 checkUnnamed1786(core.List<api.InstanceOperation> o) { | 948 checkUnnamed1853(core.List<api.InstanceOperation> o) { |
949 unittest.expect(o, unittest.hasLength(2)); | 949 unittest.expect(o, unittest.hasLength(2)); |
950 checkInstanceOperation(o[0]); | 950 checkInstanceOperation(o[0]); |
951 checkInstanceOperation(o[1]); | 951 checkInstanceOperation(o[1]); |
952 } | 952 } |
953 | 953 |
954 core.int buildCounterOperationsListResponse = 0; | 954 core.int buildCounterOperationsListResponse = 0; |
955 buildOperationsListResponse() { | 955 buildOperationsListResponse() { |
956 var o = new api.OperationsListResponse(); | 956 var o = new api.OperationsListResponse(); |
957 buildCounterOperationsListResponse++; | 957 buildCounterOperationsListResponse++; |
958 if (buildCounterOperationsListResponse < 3) { | 958 if (buildCounterOperationsListResponse < 3) { |
959 o.items = buildUnnamed1786(); | 959 o.items = buildUnnamed1853(); |
960 o.kind = "foo"; | 960 o.kind = "foo"; |
961 o.nextPageToken = "foo"; | 961 o.nextPageToken = "foo"; |
962 } | 962 } |
963 buildCounterOperationsListResponse--; | 963 buildCounterOperationsListResponse--; |
964 return o; | 964 return o; |
965 } | 965 } |
966 | 966 |
967 checkOperationsListResponse(api.OperationsListResponse o) { | 967 checkOperationsListResponse(api.OperationsListResponse o) { |
968 buildCounterOperationsListResponse++; | 968 buildCounterOperationsListResponse++; |
969 if (buildCounterOperationsListResponse < 3) { | 969 if (buildCounterOperationsListResponse < 3) { |
970 checkUnnamed1786(o.items); | 970 checkUnnamed1853(o.items); |
971 unittest.expect(o.kind, unittest.equals('foo')); | 971 unittest.expect(o.kind, unittest.equals('foo')); |
972 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 972 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
973 } | 973 } |
974 buildCounterOperationsListResponse--; | 974 buildCounterOperationsListResponse--; |
975 } | 975 } |
976 | 976 |
977 core.int buildCounterSetRootPasswordContext = 0; | 977 core.int buildCounterSetRootPasswordContext = 0; |
978 buildSetRootPasswordContext() { | 978 buildSetRootPasswordContext() { |
979 var o = new api.SetRootPasswordContext(); | 979 var o = new api.SetRootPasswordContext(); |
980 buildCounterSetRootPasswordContext++; | 980 buildCounterSetRootPasswordContext++; |
981 if (buildCounterSetRootPasswordContext < 3) { | 981 if (buildCounterSetRootPasswordContext < 3) { |
982 o.kind = "foo"; | 982 o.kind = "foo"; |
983 o.password = "foo"; | 983 o.password = "foo"; |
984 } | 984 } |
985 buildCounterSetRootPasswordContext--; | 985 buildCounterSetRootPasswordContext--; |
986 return o; | 986 return o; |
987 } | 987 } |
988 | 988 |
989 checkSetRootPasswordContext(api.SetRootPasswordContext o) { | 989 checkSetRootPasswordContext(api.SetRootPasswordContext o) { |
990 buildCounterSetRootPasswordContext++; | 990 buildCounterSetRootPasswordContext++; |
991 if (buildCounterSetRootPasswordContext < 3) { | 991 if (buildCounterSetRootPasswordContext < 3) { |
992 unittest.expect(o.kind, unittest.equals('foo')); | 992 unittest.expect(o.kind, unittest.equals('foo')); |
993 unittest.expect(o.password, unittest.equals('foo')); | 993 unittest.expect(o.password, unittest.equals('foo')); |
994 } | 994 } |
995 buildCounterSetRootPasswordContext--; | 995 buildCounterSetRootPasswordContext--; |
996 } | 996 } |
997 | 997 |
998 buildUnnamed1787() { | 998 buildUnnamed1854() { |
999 var o = new core.List<core.String>(); | 999 var o = new core.List<core.String>(); |
1000 o.add("foo"); | 1000 o.add("foo"); |
1001 o.add("foo"); | 1001 o.add("foo"); |
1002 return o; | 1002 return o; |
1003 } | 1003 } |
1004 | 1004 |
1005 checkUnnamed1787(core.List<core.String> o) { | 1005 checkUnnamed1854(core.List<core.String> o) { |
1006 unittest.expect(o, unittest.hasLength(2)); | 1006 unittest.expect(o, unittest.hasLength(2)); |
1007 unittest.expect(o[0], unittest.equals('foo')); | 1007 unittest.expect(o[0], unittest.equals('foo')); |
1008 unittest.expect(o[1], unittest.equals('foo')); | 1008 unittest.expect(o[1], unittest.equals('foo')); |
1009 } | 1009 } |
1010 | 1010 |
1011 buildUnnamed1788() { | 1011 buildUnnamed1855() { |
1012 var o = new core.List<api.BackupConfiguration>(); | 1012 var o = new core.List<api.BackupConfiguration>(); |
1013 o.add(buildBackupConfiguration()); | 1013 o.add(buildBackupConfiguration()); |
1014 o.add(buildBackupConfiguration()); | 1014 o.add(buildBackupConfiguration()); |
1015 return o; | 1015 return o; |
1016 } | 1016 } |
1017 | 1017 |
1018 checkUnnamed1788(core.List<api.BackupConfiguration> o) { | 1018 checkUnnamed1855(core.List<api.BackupConfiguration> o) { |
1019 unittest.expect(o, unittest.hasLength(2)); | 1019 unittest.expect(o, unittest.hasLength(2)); |
1020 checkBackupConfiguration(o[0]); | 1020 checkBackupConfiguration(o[0]); |
1021 checkBackupConfiguration(o[1]); | 1021 checkBackupConfiguration(o[1]); |
1022 } | 1022 } |
1023 | 1023 |
1024 buildUnnamed1789() { | 1024 buildUnnamed1856() { |
1025 var o = new core.List<api.DatabaseFlags>(); | 1025 var o = new core.List<api.DatabaseFlags>(); |
1026 o.add(buildDatabaseFlags()); | 1026 o.add(buildDatabaseFlags()); |
1027 o.add(buildDatabaseFlags()); | 1027 o.add(buildDatabaseFlags()); |
1028 return o; | 1028 return o; |
1029 } | 1029 } |
1030 | 1030 |
1031 checkUnnamed1789(core.List<api.DatabaseFlags> o) { | 1031 checkUnnamed1856(core.List<api.DatabaseFlags> o) { |
1032 unittest.expect(o, unittest.hasLength(2)); | 1032 unittest.expect(o, unittest.hasLength(2)); |
1033 checkDatabaseFlags(o[0]); | 1033 checkDatabaseFlags(o[0]); |
1034 checkDatabaseFlags(o[1]); | 1034 checkDatabaseFlags(o[1]); |
1035 } | 1035 } |
1036 | 1036 |
1037 core.int buildCounterSettings = 0; | 1037 core.int buildCounterSettings = 0; |
1038 buildSettings() { | 1038 buildSettings() { |
1039 var o = new api.Settings(); | 1039 var o = new api.Settings(); |
1040 buildCounterSettings++; | 1040 buildCounterSettings++; |
1041 if (buildCounterSettings < 3) { | 1041 if (buildCounterSettings < 3) { |
1042 o.activationPolicy = "foo"; | 1042 o.activationPolicy = "foo"; |
1043 o.authorizedGaeApplications = buildUnnamed1787(); | 1043 o.authorizedGaeApplications = buildUnnamed1854(); |
1044 o.backupConfiguration = buildUnnamed1788(); | 1044 o.backupConfiguration = buildUnnamed1855(); |
1045 o.databaseFlags = buildUnnamed1789(); | 1045 o.databaseFlags = buildUnnamed1856(); |
1046 o.databaseReplicationEnabled = true; | 1046 o.databaseReplicationEnabled = true; |
1047 o.ipConfiguration = buildIpConfiguration(); | 1047 o.ipConfiguration = buildIpConfiguration(); |
1048 o.kind = "foo"; | 1048 o.kind = "foo"; |
1049 o.locationPreference = buildLocationPreference(); | 1049 o.locationPreference = buildLocationPreference(); |
1050 o.pricingPlan = "foo"; | 1050 o.pricingPlan = "foo"; |
1051 o.replicationType = "foo"; | 1051 o.replicationType = "foo"; |
1052 o.settingsVersion = "foo"; | 1052 o.settingsVersion = "foo"; |
1053 o.tier = "foo"; | 1053 o.tier = "foo"; |
1054 } | 1054 } |
1055 buildCounterSettings--; | 1055 buildCounterSettings--; |
1056 return o; | 1056 return o; |
1057 } | 1057 } |
1058 | 1058 |
1059 checkSettings(api.Settings o) { | 1059 checkSettings(api.Settings o) { |
1060 buildCounterSettings++; | 1060 buildCounterSettings++; |
1061 if (buildCounterSettings < 3) { | 1061 if (buildCounterSettings < 3) { |
1062 unittest.expect(o.activationPolicy, unittest.equals('foo')); | 1062 unittest.expect(o.activationPolicy, unittest.equals('foo')); |
1063 checkUnnamed1787(o.authorizedGaeApplications); | 1063 checkUnnamed1854(o.authorizedGaeApplications); |
1064 checkUnnamed1788(o.backupConfiguration); | 1064 checkUnnamed1855(o.backupConfiguration); |
1065 checkUnnamed1789(o.databaseFlags); | 1065 checkUnnamed1856(o.databaseFlags); |
1066 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); | 1066 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); |
1067 checkIpConfiguration(o.ipConfiguration); | 1067 checkIpConfiguration(o.ipConfiguration); |
1068 unittest.expect(o.kind, unittest.equals('foo')); | 1068 unittest.expect(o.kind, unittest.equals('foo')); |
1069 checkLocationPreference(o.locationPreference); | 1069 checkLocationPreference(o.locationPreference); |
1070 unittest.expect(o.pricingPlan, unittest.equals('foo')); | 1070 unittest.expect(o.pricingPlan, unittest.equals('foo')); |
1071 unittest.expect(o.replicationType, unittest.equals('foo')); | 1071 unittest.expect(o.replicationType, unittest.equals('foo')); |
1072 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 1072 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
1073 unittest.expect(o.tier, unittest.equals('foo')); | 1073 unittest.expect(o.tier, unittest.equals('foo')); |
1074 } | 1074 } |
1075 buildCounterSettings--; | 1075 buildCounterSettings--; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1185 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { | 1185 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { |
1186 buildCounterSslCertsInsertResponse++; | 1186 buildCounterSslCertsInsertResponse++; |
1187 if (buildCounterSslCertsInsertResponse < 3) { | 1187 if (buildCounterSslCertsInsertResponse < 3) { |
1188 checkSslCertDetail(o.clientCert); | 1188 checkSslCertDetail(o.clientCert); |
1189 unittest.expect(o.kind, unittest.equals('foo')); | 1189 unittest.expect(o.kind, unittest.equals('foo')); |
1190 checkSslCert(o.serverCaCert); | 1190 checkSslCert(o.serverCaCert); |
1191 } | 1191 } |
1192 buildCounterSslCertsInsertResponse--; | 1192 buildCounterSslCertsInsertResponse--; |
1193 } | 1193 } |
1194 | 1194 |
1195 buildUnnamed1790() { | 1195 buildUnnamed1857() { |
1196 var o = new core.List<api.SslCert>(); | 1196 var o = new core.List<api.SslCert>(); |
1197 o.add(buildSslCert()); | 1197 o.add(buildSslCert()); |
1198 o.add(buildSslCert()); | 1198 o.add(buildSslCert()); |
1199 return o; | 1199 return o; |
1200 } | 1200 } |
1201 | 1201 |
1202 checkUnnamed1790(core.List<api.SslCert> o) { | 1202 checkUnnamed1857(core.List<api.SslCert> o) { |
1203 unittest.expect(o, unittest.hasLength(2)); | 1203 unittest.expect(o, unittest.hasLength(2)); |
1204 checkSslCert(o[0]); | 1204 checkSslCert(o[0]); |
1205 checkSslCert(o[1]); | 1205 checkSslCert(o[1]); |
1206 } | 1206 } |
1207 | 1207 |
1208 core.int buildCounterSslCertsListResponse = 0; | 1208 core.int buildCounterSslCertsListResponse = 0; |
1209 buildSslCertsListResponse() { | 1209 buildSslCertsListResponse() { |
1210 var o = new api.SslCertsListResponse(); | 1210 var o = new api.SslCertsListResponse(); |
1211 buildCounterSslCertsListResponse++; | 1211 buildCounterSslCertsListResponse++; |
1212 if (buildCounterSslCertsListResponse < 3) { | 1212 if (buildCounterSslCertsListResponse < 3) { |
1213 o.items = buildUnnamed1790(); | 1213 o.items = buildUnnamed1857(); |
1214 o.kind = "foo"; | 1214 o.kind = "foo"; |
1215 } | 1215 } |
1216 buildCounterSslCertsListResponse--; | 1216 buildCounterSslCertsListResponse--; |
1217 return o; | 1217 return o; |
1218 } | 1218 } |
1219 | 1219 |
1220 checkSslCertsListResponse(api.SslCertsListResponse o) { | 1220 checkSslCertsListResponse(api.SslCertsListResponse o) { |
1221 buildCounterSslCertsListResponse++; | 1221 buildCounterSslCertsListResponse++; |
1222 if (buildCounterSslCertsListResponse < 3) { | 1222 if (buildCounterSslCertsListResponse < 3) { |
1223 checkUnnamed1790(o.items); | 1223 checkUnnamed1857(o.items); |
1224 unittest.expect(o.kind, unittest.equals('foo')); | 1224 unittest.expect(o.kind, unittest.equals('foo')); |
1225 } | 1225 } |
1226 buildCounterSslCertsListResponse--; | 1226 buildCounterSslCertsListResponse--; |
1227 } | 1227 } |
1228 | 1228 |
1229 buildUnnamed1791() { | 1229 buildUnnamed1858() { |
1230 var o = new core.List<core.String>(); | 1230 var o = new core.List<core.String>(); |
1231 o.add("foo"); | 1231 o.add("foo"); |
1232 o.add("foo"); | 1232 o.add("foo"); |
1233 return o; | 1233 return o; |
1234 } | 1234 } |
1235 | 1235 |
1236 checkUnnamed1791(core.List<core.String> o) { | 1236 checkUnnamed1858(core.List<core.String> o) { |
1237 unittest.expect(o, unittest.hasLength(2)); | 1237 unittest.expect(o, unittest.hasLength(2)); |
1238 unittest.expect(o[0], unittest.equals('foo')); | 1238 unittest.expect(o[0], unittest.equals('foo')); |
1239 unittest.expect(o[1], unittest.equals('foo')); | 1239 unittest.expect(o[1], unittest.equals('foo')); |
1240 } | 1240 } |
1241 | 1241 |
1242 core.int buildCounterTier = 0; | 1242 core.int buildCounterTier = 0; |
1243 buildTier() { | 1243 buildTier() { |
1244 var o = new api.Tier(); | 1244 var o = new api.Tier(); |
1245 buildCounterTier++; | 1245 buildCounterTier++; |
1246 if (buildCounterTier < 3) { | 1246 if (buildCounterTier < 3) { |
1247 o.DiskQuota = "foo"; | 1247 o.DiskQuota = "foo"; |
1248 o.RAM = "foo"; | 1248 o.RAM = "foo"; |
1249 o.kind = "foo"; | 1249 o.kind = "foo"; |
1250 o.region = buildUnnamed1791(); | 1250 o.region = buildUnnamed1858(); |
1251 o.tier = "foo"; | 1251 o.tier = "foo"; |
1252 } | 1252 } |
1253 buildCounterTier--; | 1253 buildCounterTier--; |
1254 return o; | 1254 return o; |
1255 } | 1255 } |
1256 | 1256 |
1257 checkTier(api.Tier o) { | 1257 checkTier(api.Tier o) { |
1258 buildCounterTier++; | 1258 buildCounterTier++; |
1259 if (buildCounterTier < 3) { | 1259 if (buildCounterTier < 3) { |
1260 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1260 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
1261 unittest.expect(o.RAM, unittest.equals('foo')); | 1261 unittest.expect(o.RAM, unittest.equals('foo')); |
1262 unittest.expect(o.kind, unittest.equals('foo')); | 1262 unittest.expect(o.kind, unittest.equals('foo')); |
1263 checkUnnamed1791(o.region); | 1263 checkUnnamed1858(o.region); |
1264 unittest.expect(o.tier, unittest.equals('foo')); | 1264 unittest.expect(o.tier, unittest.equals('foo')); |
1265 } | 1265 } |
1266 buildCounterTier--; | 1266 buildCounterTier--; |
1267 } | 1267 } |
1268 | 1268 |
1269 buildUnnamed1792() { | 1269 buildUnnamed1859() { |
1270 var o = new core.List<api.Tier>(); | 1270 var o = new core.List<api.Tier>(); |
1271 o.add(buildTier()); | 1271 o.add(buildTier()); |
1272 o.add(buildTier()); | 1272 o.add(buildTier()); |
1273 return o; | 1273 return o; |
1274 } | 1274 } |
1275 | 1275 |
1276 checkUnnamed1792(core.List<api.Tier> o) { | 1276 checkUnnamed1859(core.List<api.Tier> o) { |
1277 unittest.expect(o, unittest.hasLength(2)); | 1277 unittest.expect(o, unittest.hasLength(2)); |
1278 checkTier(o[0]); | 1278 checkTier(o[0]); |
1279 checkTier(o[1]); | 1279 checkTier(o[1]); |
1280 } | 1280 } |
1281 | 1281 |
1282 core.int buildCounterTiersListResponse = 0; | 1282 core.int buildCounterTiersListResponse = 0; |
1283 buildTiersListResponse() { | 1283 buildTiersListResponse() { |
1284 var o = new api.TiersListResponse(); | 1284 var o = new api.TiersListResponse(); |
1285 buildCounterTiersListResponse++; | 1285 buildCounterTiersListResponse++; |
1286 if (buildCounterTiersListResponse < 3) { | 1286 if (buildCounterTiersListResponse < 3) { |
1287 o.items = buildUnnamed1792(); | 1287 o.items = buildUnnamed1859(); |
1288 o.kind = "foo"; | 1288 o.kind = "foo"; |
1289 } | 1289 } |
1290 buildCounterTiersListResponse--; | 1290 buildCounterTiersListResponse--; |
1291 return o; | 1291 return o; |
1292 } | 1292 } |
1293 | 1293 |
1294 checkTiersListResponse(api.TiersListResponse o) { | 1294 checkTiersListResponse(api.TiersListResponse o) { |
1295 buildCounterTiersListResponse++; | 1295 buildCounterTiersListResponse++; |
1296 if (buildCounterTiersListResponse < 3) { | 1296 if (buildCounterTiersListResponse < 3) { |
1297 checkUnnamed1792(o.items); | 1297 checkUnnamed1859(o.items); |
1298 unittest.expect(o.kind, unittest.equals('foo')); | 1298 unittest.expect(o.kind, unittest.equals('foo')); |
1299 } | 1299 } |
1300 buildCounterTiersListResponse--; | 1300 buildCounterTiersListResponse--; |
1301 } | 1301 } |
1302 | 1302 |
1303 | 1303 |
1304 main() { | 1304 main() { |
1305 unittest.group("obj-schema-BackupConfiguration", () { | 1305 unittest.group("obj-schema-BackupConfiguration", () { |
1306 unittest.test("to-json--from-json", () { | 1306 unittest.test("to-json--from-json", () { |
1307 var o = buildBackupConfiguration(); | 1307 var o = buildBackupConfiguration(); |
(...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3176 res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse re
sponse) { | 3176 res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse re
sponse) { |
3177 checkTiersListResponse(response); | 3177 checkTiersListResponse(response); |
3178 }))); | 3178 }))); |
3179 }); | 3179 }); |
3180 | 3180 |
3181 }); | 3181 }); |
3182 | 3182 |
3183 | 3183 |
3184 } | 3184 } |
3185 | 3185 |
OLD | NEW |