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 buildUnnamed1033() { | 81 buildUnnamed1061() { |
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 checkUnnamed1033(core.List<api.BackupRun> o) { | 88 checkUnnamed1061(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 = buildUnnamed1033(); | 99 o.items = buildUnnamed1061(); |
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 checkUnnamed1033(o.items); | 110 checkUnnamed1061(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 buildUnnamed1034() { | 186 buildUnnamed1062() { |
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 checkUnnamed1034(core.List<api.IpMapping> o) { | 193 checkUnnamed1062(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 buildUnnamed1035() { | 199 buildUnnamed1063() { |
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 checkUnnamed1035(core.List<core.String> o) { | 206 checkUnnamed1063(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 = buildUnnamed1034(); | 222 o.ipAddresses = buildUnnamed1062(); |
223 o.kind = "foo"; | 223 o.kind = "foo"; |
224 o.masterInstanceName = "foo"; | 224 o.masterInstanceName = "foo"; |
225 o.maxDiskSize = "foo"; | 225 o.maxDiskSize = "foo"; |
226 o.project = "foo"; | 226 o.project = "foo"; |
227 o.region = "foo"; | 227 o.region = "foo"; |
228 o.replicaNames = buildUnnamed1035(); | 228 o.replicaNames = buildUnnamed1063(); |
229 o.serverCaCert = buildSslCert(); | 229 o.serverCaCert = buildSslCert(); |
230 o.settings = buildSettings(); | 230 o.settings = buildSettings(); |
231 o.state = "foo"; | 231 o.state = "foo"; |
232 } | 232 } |
233 buildCounterDatabaseInstance--; | 233 buildCounterDatabaseInstance--; |
234 return o; | 234 return o; |
235 } | 235 } |
236 | 236 |
237 checkDatabaseInstance(api.DatabaseInstance o) { | 237 checkDatabaseInstance(api.DatabaseInstance o) { |
238 buildCounterDatabaseInstance++; | 238 buildCounterDatabaseInstance++; |
239 if (buildCounterDatabaseInstance < 3) { | 239 if (buildCounterDatabaseInstance < 3) { |
240 unittest.expect(o.currentDiskSize, unittest.equals('foo')); | 240 unittest.expect(o.currentDiskSize, unittest.equals('foo')); |
241 unittest.expect(o.databaseVersion, unittest.equals('foo')); | 241 unittest.expect(o.databaseVersion, unittest.equals('foo')); |
242 unittest.expect(o.etag, unittest.equals('foo')); | 242 unittest.expect(o.etag, unittest.equals('foo')); |
243 unittest.expect(o.instance, unittest.equals('foo')); | 243 unittest.expect(o.instance, unittest.equals('foo')); |
244 unittest.expect(o.instanceType, unittest.equals('foo')); | 244 unittest.expect(o.instanceType, unittest.equals('foo')); |
245 checkUnnamed1034(o.ipAddresses); | 245 checkUnnamed1062(o.ipAddresses); |
246 unittest.expect(o.kind, unittest.equals('foo')); | 246 unittest.expect(o.kind, unittest.equals('foo')); |
247 unittest.expect(o.masterInstanceName, unittest.equals('foo')); | 247 unittest.expect(o.masterInstanceName, unittest.equals('foo')); |
248 unittest.expect(o.maxDiskSize, unittest.equals('foo')); | 248 unittest.expect(o.maxDiskSize, unittest.equals('foo')); |
249 unittest.expect(o.project, unittest.equals('foo')); | 249 unittest.expect(o.project, unittest.equals('foo')); |
250 unittest.expect(o.region, unittest.equals('foo')); | 250 unittest.expect(o.region, unittest.equals('foo')); |
251 checkUnnamed1035(o.replicaNames); | 251 checkUnnamed1063(o.replicaNames); |
252 checkSslCert(o.serverCaCert); | 252 checkSslCert(o.serverCaCert); |
253 checkSettings(o.settings); | 253 checkSettings(o.settings); |
254 unittest.expect(o.state, unittest.equals('foo')); | 254 unittest.expect(o.state, unittest.equals('foo')); |
255 } | 255 } |
256 buildCounterDatabaseInstance--; | 256 buildCounterDatabaseInstance--; |
257 } | 257 } |
258 | 258 |
259 buildUnnamed1036() { | 259 buildUnnamed1064() { |
260 var o = new core.List<core.String>(); | 260 var o = new core.List<core.String>(); |
261 o.add("foo"); | 261 o.add("foo"); |
262 o.add("foo"); | 262 o.add("foo"); |
263 return o; | 263 return o; |
264 } | 264 } |
265 | 265 |
266 checkUnnamed1036(core.List<core.String> o) { | 266 checkUnnamed1064(core.List<core.String> o) { |
267 unittest.expect(o, unittest.hasLength(2)); | 267 unittest.expect(o, unittest.hasLength(2)); |
268 unittest.expect(o[0], unittest.equals('foo')); | 268 unittest.expect(o[0], unittest.equals('foo')); |
269 unittest.expect(o[1], unittest.equals('foo')); | 269 unittest.expect(o[1], unittest.equals('foo')); |
270 } | 270 } |
271 | 271 |
272 buildUnnamed1037() { | 272 buildUnnamed1065() { |
273 var o = new core.List<core.String>(); | 273 var o = new core.List<core.String>(); |
274 o.add("foo"); | 274 o.add("foo"); |
275 o.add("foo"); | 275 o.add("foo"); |
276 return o; | 276 return o; |
277 } | 277 } |
278 | 278 |
279 checkUnnamed1037(core.List<core.String> o) { | 279 checkUnnamed1065(core.List<core.String> o) { |
280 unittest.expect(o, unittest.hasLength(2)); | 280 unittest.expect(o, unittest.hasLength(2)); |
281 unittest.expect(o[0], unittest.equals('foo')); | 281 unittest.expect(o[0], unittest.equals('foo')); |
282 unittest.expect(o[1], unittest.equals('foo')); | 282 unittest.expect(o[1], unittest.equals('foo')); |
283 } | 283 } |
284 | 284 |
285 core.int buildCounterExportContext = 0; | 285 core.int buildCounterExportContext = 0; |
286 buildExportContext() { | 286 buildExportContext() { |
287 var o = new api.ExportContext(); | 287 var o = new api.ExportContext(); |
288 buildCounterExportContext++; | 288 buildCounterExportContext++; |
289 if (buildCounterExportContext < 3) { | 289 if (buildCounterExportContext < 3) { |
290 o.database = buildUnnamed1036(); | 290 o.database = buildUnnamed1064(); |
291 o.kind = "foo"; | 291 o.kind = "foo"; |
292 o.table = buildUnnamed1037(); | 292 o.table = buildUnnamed1065(); |
293 o.uri = "foo"; | 293 o.uri = "foo"; |
294 } | 294 } |
295 buildCounterExportContext--; | 295 buildCounterExportContext--; |
296 return o; | 296 return o; |
297 } | 297 } |
298 | 298 |
299 checkExportContext(api.ExportContext o) { | 299 checkExportContext(api.ExportContext o) { |
300 buildCounterExportContext++; | 300 buildCounterExportContext++; |
301 if (buildCounterExportContext < 3) { | 301 if (buildCounterExportContext < 3) { |
302 checkUnnamed1036(o.database); | 302 checkUnnamed1064(o.database); |
303 unittest.expect(o.kind, unittest.equals('foo')); | 303 unittest.expect(o.kind, unittest.equals('foo')); |
304 checkUnnamed1037(o.table); | 304 checkUnnamed1065(o.table); |
305 unittest.expect(o.uri, unittest.equals('foo')); | 305 unittest.expect(o.uri, unittest.equals('foo')); |
306 } | 306 } |
307 buildCounterExportContext--; | 307 buildCounterExportContext--; |
308 } | 308 } |
309 | 309 |
310 buildUnnamed1038() { | 310 buildUnnamed1066() { |
311 var o = new core.List<core.String>(); | 311 var o = new core.List<core.String>(); |
312 o.add("foo"); | 312 o.add("foo"); |
313 o.add("foo"); | 313 o.add("foo"); |
314 return o; | 314 return o; |
315 } | 315 } |
316 | 316 |
317 checkUnnamed1038(core.List<core.String> o) { | 317 checkUnnamed1066(core.List<core.String> o) { |
318 unittest.expect(o, unittest.hasLength(2)); | 318 unittest.expect(o, unittest.hasLength(2)); |
319 unittest.expect(o[0], unittest.equals('foo')); | 319 unittest.expect(o[0], unittest.equals('foo')); |
320 unittest.expect(o[1], unittest.equals('foo')); | 320 unittest.expect(o[1], unittest.equals('foo')); |
321 } | 321 } |
322 | 322 |
323 buildUnnamed1039() { | 323 buildUnnamed1067() { |
324 var o = new core.List<core.String>(); | 324 var o = new core.List<core.String>(); |
325 o.add("foo"); | 325 o.add("foo"); |
326 o.add("foo"); | 326 o.add("foo"); |
327 return o; | 327 return o; |
328 } | 328 } |
329 | 329 |
330 checkUnnamed1039(core.List<core.String> o) { | 330 checkUnnamed1067(core.List<core.String> o) { |
331 unittest.expect(o, unittest.hasLength(2)); | 331 unittest.expect(o, unittest.hasLength(2)); |
332 unittest.expect(o[0], unittest.equals('foo')); | 332 unittest.expect(o[0], unittest.equals('foo')); |
333 unittest.expect(o[1], unittest.equals('foo')); | 333 unittest.expect(o[1], unittest.equals('foo')); |
334 } | 334 } |
335 | 335 |
336 core.int buildCounterFlag = 0; | 336 core.int buildCounterFlag = 0; |
337 buildFlag() { | 337 buildFlag() { |
338 var o = new api.Flag(); | 338 var o = new api.Flag(); |
339 buildCounterFlag++; | 339 buildCounterFlag++; |
340 if (buildCounterFlag < 3) { | 340 if (buildCounterFlag < 3) { |
341 o.allowedStringValues = buildUnnamed1038(); | 341 o.allowedStringValues = buildUnnamed1066(); |
342 o.appliesTo = buildUnnamed1039(); | 342 o.appliesTo = buildUnnamed1067(); |
343 o.kind = "foo"; | 343 o.kind = "foo"; |
344 o.maxValue = "foo"; | 344 o.maxValue = "foo"; |
345 o.minValue = "foo"; | 345 o.minValue = "foo"; |
346 o.name = "foo"; | 346 o.name = "foo"; |
347 o.type = "foo"; | 347 o.type = "foo"; |
348 } | 348 } |
349 buildCounterFlag--; | 349 buildCounterFlag--; |
350 return o; | 350 return o; |
351 } | 351 } |
352 | 352 |
353 checkFlag(api.Flag o) { | 353 checkFlag(api.Flag o) { |
354 buildCounterFlag++; | 354 buildCounterFlag++; |
355 if (buildCounterFlag < 3) { | 355 if (buildCounterFlag < 3) { |
356 checkUnnamed1038(o.allowedStringValues); | 356 checkUnnamed1066(o.allowedStringValues); |
357 checkUnnamed1039(o.appliesTo); | 357 checkUnnamed1067(o.appliesTo); |
358 unittest.expect(o.kind, unittest.equals('foo')); | 358 unittest.expect(o.kind, unittest.equals('foo')); |
359 unittest.expect(o.maxValue, unittest.equals('foo')); | 359 unittest.expect(o.maxValue, unittest.equals('foo')); |
360 unittest.expect(o.minValue, unittest.equals('foo')); | 360 unittest.expect(o.minValue, unittest.equals('foo')); |
361 unittest.expect(o.name, unittest.equals('foo')); | 361 unittest.expect(o.name, unittest.equals('foo')); |
362 unittest.expect(o.type, unittest.equals('foo')); | 362 unittest.expect(o.type, unittest.equals('foo')); |
363 } | 363 } |
364 buildCounterFlag--; | 364 buildCounterFlag--; |
365 } | 365 } |
366 | 366 |
367 buildUnnamed1040() { | 367 buildUnnamed1068() { |
368 var o = new core.List<api.Flag>(); | 368 var o = new core.List<api.Flag>(); |
369 o.add(buildFlag()); | 369 o.add(buildFlag()); |
370 o.add(buildFlag()); | 370 o.add(buildFlag()); |
371 return o; | 371 return o; |
372 } | 372 } |
373 | 373 |
374 checkUnnamed1040(core.List<api.Flag> o) { | 374 checkUnnamed1068(core.List<api.Flag> o) { |
375 unittest.expect(o, unittest.hasLength(2)); | 375 unittest.expect(o, unittest.hasLength(2)); |
376 checkFlag(o[0]); | 376 checkFlag(o[0]); |
377 checkFlag(o[1]); | 377 checkFlag(o[1]); |
378 } | 378 } |
379 | 379 |
380 core.int buildCounterFlagsListResponse = 0; | 380 core.int buildCounterFlagsListResponse = 0; |
381 buildFlagsListResponse() { | 381 buildFlagsListResponse() { |
382 var o = new api.FlagsListResponse(); | 382 var o = new api.FlagsListResponse(); |
383 buildCounterFlagsListResponse++; | 383 buildCounterFlagsListResponse++; |
384 if (buildCounterFlagsListResponse < 3) { | 384 if (buildCounterFlagsListResponse < 3) { |
385 o.items = buildUnnamed1040(); | 385 o.items = buildUnnamed1068(); |
386 o.kind = "foo"; | 386 o.kind = "foo"; |
387 } | 387 } |
388 buildCounterFlagsListResponse--; | 388 buildCounterFlagsListResponse--; |
389 return o; | 389 return o; |
390 } | 390 } |
391 | 391 |
392 checkFlagsListResponse(api.FlagsListResponse o) { | 392 checkFlagsListResponse(api.FlagsListResponse o) { |
393 buildCounterFlagsListResponse++; | 393 buildCounterFlagsListResponse++; |
394 if (buildCounterFlagsListResponse < 3) { | 394 if (buildCounterFlagsListResponse < 3) { |
395 checkUnnamed1040(o.items); | 395 checkUnnamed1068(o.items); |
396 unittest.expect(o.kind, unittest.equals('foo')); | 396 unittest.expect(o.kind, unittest.equals('foo')); |
397 } | 397 } |
398 buildCounterFlagsListResponse--; | 398 buildCounterFlagsListResponse--; |
399 } | 399 } |
400 | 400 |
401 buildUnnamed1041() { | 401 buildUnnamed1069() { |
402 var o = new core.List<core.String>(); | 402 var o = new core.List<core.String>(); |
403 o.add("foo"); | 403 o.add("foo"); |
404 o.add("foo"); | 404 o.add("foo"); |
405 return o; | 405 return o; |
406 } | 406 } |
407 | 407 |
408 checkUnnamed1041(core.List<core.String> o) { | 408 checkUnnamed1069(core.List<core.String> o) { |
409 unittest.expect(o, unittest.hasLength(2)); | 409 unittest.expect(o, unittest.hasLength(2)); |
410 unittest.expect(o[0], unittest.equals('foo')); | 410 unittest.expect(o[0], unittest.equals('foo')); |
411 unittest.expect(o[1], unittest.equals('foo')); | 411 unittest.expect(o[1], unittest.equals('foo')); |
412 } | 412 } |
413 | 413 |
414 core.int buildCounterImportContext = 0; | 414 core.int buildCounterImportContext = 0; |
415 buildImportContext() { | 415 buildImportContext() { |
416 var o = new api.ImportContext(); | 416 var o = new api.ImportContext(); |
417 buildCounterImportContext++; | 417 buildCounterImportContext++; |
418 if (buildCounterImportContext < 3) { | 418 if (buildCounterImportContext < 3) { |
419 o.database = "foo"; | 419 o.database = "foo"; |
420 o.kind = "foo"; | 420 o.kind = "foo"; |
421 o.uri = buildUnnamed1041(); | 421 o.uri = buildUnnamed1069(); |
422 } | 422 } |
423 buildCounterImportContext--; | 423 buildCounterImportContext--; |
424 return o; | 424 return o; |
425 } | 425 } |
426 | 426 |
427 checkImportContext(api.ImportContext o) { | 427 checkImportContext(api.ImportContext o) { |
428 buildCounterImportContext++; | 428 buildCounterImportContext++; |
429 if (buildCounterImportContext < 3) { | 429 if (buildCounterImportContext < 3) { |
430 unittest.expect(o.database, unittest.equals('foo')); | 430 unittest.expect(o.database, unittest.equals('foo')); |
431 unittest.expect(o.kind, unittest.equals('foo')); | 431 unittest.expect(o.kind, unittest.equals('foo')); |
432 checkUnnamed1041(o.uri); | 432 checkUnnamed1069(o.uri); |
433 } | 433 } |
434 buildCounterImportContext--; | 434 buildCounterImportContext--; |
435 } | 435 } |
436 | 436 |
437 buildUnnamed1042() { | 437 buildUnnamed1070() { |
438 var o = new core.List<api.OperationError>(); | 438 var o = new core.List<api.OperationError>(); |
439 o.add(buildOperationError()); | 439 o.add(buildOperationError()); |
440 o.add(buildOperationError()); | 440 o.add(buildOperationError()); |
441 return o; | 441 return o; |
442 } | 442 } |
443 | 443 |
444 checkUnnamed1042(core.List<api.OperationError> o) { | 444 checkUnnamed1070(core.List<api.OperationError> o) { |
445 unittest.expect(o, unittest.hasLength(2)); | 445 unittest.expect(o, unittest.hasLength(2)); |
446 checkOperationError(o[0]); | 446 checkOperationError(o[0]); |
447 checkOperationError(o[1]); | 447 checkOperationError(o[1]); |
448 } | 448 } |
449 | 449 |
450 core.int buildCounterInstanceOperation = 0; | 450 core.int buildCounterInstanceOperation = 0; |
451 buildInstanceOperation() { | 451 buildInstanceOperation() { |
452 var o = new api.InstanceOperation(); | 452 var o = new api.InstanceOperation(); |
453 buildCounterInstanceOperation++; | 453 buildCounterInstanceOperation++; |
454 if (buildCounterInstanceOperation < 3) { | 454 if (buildCounterInstanceOperation < 3) { |
455 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); | 455 o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); |
456 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); | 456 o.enqueuedTime = core.DateTime.parse("2002-02-27T14:01:02"); |
457 o.error = buildUnnamed1042(); | 457 o.error = buildUnnamed1070(); |
458 o.exportContext = buildExportContext(); | 458 o.exportContext = buildExportContext(); |
459 o.importContext = buildImportContext(); | 459 o.importContext = buildImportContext(); |
460 o.instance = "foo"; | 460 o.instance = "foo"; |
461 o.kind = "foo"; | 461 o.kind = "foo"; |
462 o.operation = "foo"; | 462 o.operation = "foo"; |
463 o.operationType = "foo"; | 463 o.operationType = "foo"; |
464 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); | 464 o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); |
465 o.state = "foo"; | 465 o.state = "foo"; |
466 o.userEmailAddress = "foo"; | 466 o.userEmailAddress = "foo"; |
467 } | 467 } |
468 buildCounterInstanceOperation--; | 468 buildCounterInstanceOperation--; |
469 return o; | 469 return o; |
470 } | 470 } |
471 | 471 |
472 checkInstanceOperation(api.InstanceOperation o) { | 472 checkInstanceOperation(api.InstanceOperation o) { |
473 buildCounterInstanceOperation++; | 473 buildCounterInstanceOperation++; |
474 if (buildCounterInstanceOperation < 3) { | 474 if (buildCounterInstanceOperation < 3) { |
475 unittest.expect(o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 475 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"))); | 476 unittest.expect(o.enqueuedTime, unittest.equals(core.DateTime.parse("2002-02
-27T14:01:02"))); |
477 checkUnnamed1042(o.error); | 477 checkUnnamed1070(o.error); |
478 checkExportContext(o.exportContext); | 478 checkExportContext(o.exportContext); |
479 checkImportContext(o.importContext); | 479 checkImportContext(o.importContext); |
480 unittest.expect(o.instance, unittest.equals('foo')); | 480 unittest.expect(o.instance, unittest.equals('foo')); |
481 unittest.expect(o.kind, unittest.equals('foo')); | 481 unittest.expect(o.kind, unittest.equals('foo')); |
482 unittest.expect(o.operation, unittest.equals('foo')); | 482 unittest.expect(o.operation, unittest.equals('foo')); |
483 unittest.expect(o.operationType, unittest.equals('foo')); | 483 unittest.expect(o.operationType, unittest.equals('foo')); |
484 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 484 unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
485 unittest.expect(o.state, unittest.equals('foo')); | 485 unittest.expect(o.state, unittest.equals('foo')); |
486 unittest.expect(o.userEmailAddress, unittest.equals('foo')); | 486 unittest.expect(o.userEmailAddress, unittest.equals('foo')); |
487 } | 487 } |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 | 662 |
663 checkInstancesInsertResponse(api.InstancesInsertResponse o) { | 663 checkInstancesInsertResponse(api.InstancesInsertResponse o) { |
664 buildCounterInstancesInsertResponse++; | 664 buildCounterInstancesInsertResponse++; |
665 if (buildCounterInstancesInsertResponse < 3) { | 665 if (buildCounterInstancesInsertResponse < 3) { |
666 unittest.expect(o.kind, unittest.equals('foo')); | 666 unittest.expect(o.kind, unittest.equals('foo')); |
667 unittest.expect(o.operation, unittest.equals('foo')); | 667 unittest.expect(o.operation, unittest.equals('foo')); |
668 } | 668 } |
669 buildCounterInstancesInsertResponse--; | 669 buildCounterInstancesInsertResponse--; |
670 } | 670 } |
671 | 671 |
672 buildUnnamed1043() { | 672 buildUnnamed1071() { |
673 var o = new core.List<api.DatabaseInstance>(); | 673 var o = new core.List<api.DatabaseInstance>(); |
674 o.add(buildDatabaseInstance()); | 674 o.add(buildDatabaseInstance()); |
675 o.add(buildDatabaseInstance()); | 675 o.add(buildDatabaseInstance()); |
676 return o; | 676 return o; |
677 } | 677 } |
678 | 678 |
679 checkUnnamed1043(core.List<api.DatabaseInstance> o) { | 679 checkUnnamed1071(core.List<api.DatabaseInstance> o) { |
680 unittest.expect(o, unittest.hasLength(2)); | 680 unittest.expect(o, unittest.hasLength(2)); |
681 checkDatabaseInstance(o[0]); | 681 checkDatabaseInstance(o[0]); |
682 checkDatabaseInstance(o[1]); | 682 checkDatabaseInstance(o[1]); |
683 } | 683 } |
684 | 684 |
685 core.int buildCounterInstancesListResponse = 0; | 685 core.int buildCounterInstancesListResponse = 0; |
686 buildInstancesListResponse() { | 686 buildInstancesListResponse() { |
687 var o = new api.InstancesListResponse(); | 687 var o = new api.InstancesListResponse(); |
688 buildCounterInstancesListResponse++; | 688 buildCounterInstancesListResponse++; |
689 if (buildCounterInstancesListResponse < 3) { | 689 if (buildCounterInstancesListResponse < 3) { |
690 o.items = buildUnnamed1043(); | 690 o.items = buildUnnamed1071(); |
691 o.kind = "foo"; | 691 o.kind = "foo"; |
692 o.nextPageToken = "foo"; | 692 o.nextPageToken = "foo"; |
693 } | 693 } |
694 buildCounterInstancesListResponse--; | 694 buildCounterInstancesListResponse--; |
695 return o; | 695 return o; |
696 } | 696 } |
697 | 697 |
698 checkInstancesListResponse(api.InstancesListResponse o) { | 698 checkInstancesListResponse(api.InstancesListResponse o) { |
699 buildCounterInstancesListResponse++; | 699 buildCounterInstancesListResponse++; |
700 if (buildCounterInstancesListResponse < 3) { | 700 if (buildCounterInstancesListResponse < 3) { |
701 checkUnnamed1043(o.items); | 701 checkUnnamed1071(o.items); |
702 unittest.expect(o.kind, unittest.equals('foo')); | 702 unittest.expect(o.kind, unittest.equals('foo')); |
703 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 703 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
704 } | 704 } |
705 buildCounterInstancesListResponse--; | 705 buildCounterInstancesListResponse--; |
706 } | 706 } |
707 | 707 |
708 core.int buildCounterInstancesPromoteReplicaResponse = 0; | 708 core.int buildCounterInstancesPromoteReplicaResponse = 0; |
709 buildInstancesPromoteReplicaResponse() { | 709 buildInstancesPromoteReplicaResponse() { |
710 var o = new api.InstancesPromoteReplicaResponse(); | 710 var o = new api.InstancesPromoteReplicaResponse(); |
711 buildCounterInstancesPromoteReplicaResponse++; | 711 buildCounterInstancesPromoteReplicaResponse++; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 | 824 |
825 checkInstancesUpdateResponse(api.InstancesUpdateResponse o) { | 825 checkInstancesUpdateResponse(api.InstancesUpdateResponse o) { |
826 buildCounterInstancesUpdateResponse++; | 826 buildCounterInstancesUpdateResponse++; |
827 if (buildCounterInstancesUpdateResponse < 3) { | 827 if (buildCounterInstancesUpdateResponse < 3) { |
828 unittest.expect(o.kind, unittest.equals('foo')); | 828 unittest.expect(o.kind, unittest.equals('foo')); |
829 unittest.expect(o.operation, unittest.equals('foo')); | 829 unittest.expect(o.operation, unittest.equals('foo')); |
830 } | 830 } |
831 buildCounterInstancesUpdateResponse--; | 831 buildCounterInstancesUpdateResponse--; |
832 } | 832 } |
833 | 833 |
834 buildUnnamed1044() { | 834 buildUnnamed1072() { |
835 var o = new core.List<core.String>(); | 835 var o = new core.List<core.String>(); |
836 o.add("foo"); | 836 o.add("foo"); |
837 o.add("foo"); | 837 o.add("foo"); |
838 return o; | 838 return o; |
839 } | 839 } |
840 | 840 |
841 checkUnnamed1044(core.List<core.String> o) { | 841 checkUnnamed1072(core.List<core.String> o) { |
842 unittest.expect(o, unittest.hasLength(2)); | 842 unittest.expect(o, unittest.hasLength(2)); |
843 unittest.expect(o[0], unittest.equals('foo')); | 843 unittest.expect(o[0], unittest.equals('foo')); |
844 unittest.expect(o[1], unittest.equals('foo')); | 844 unittest.expect(o[1], unittest.equals('foo')); |
845 } | 845 } |
846 | 846 |
847 core.int buildCounterIpConfiguration = 0; | 847 core.int buildCounterIpConfiguration = 0; |
848 buildIpConfiguration() { | 848 buildIpConfiguration() { |
849 var o = new api.IpConfiguration(); | 849 var o = new api.IpConfiguration(); |
850 buildCounterIpConfiguration++; | 850 buildCounterIpConfiguration++; |
851 if (buildCounterIpConfiguration < 3) { | 851 if (buildCounterIpConfiguration < 3) { |
852 o.authorizedNetworks = buildUnnamed1044(); | 852 o.authorizedNetworks = buildUnnamed1072(); |
853 o.enabled = true; | 853 o.enabled = true; |
854 o.requireSsl = true; | 854 o.requireSsl = true; |
855 } | 855 } |
856 buildCounterIpConfiguration--; | 856 buildCounterIpConfiguration--; |
857 return o; | 857 return o; |
858 } | 858 } |
859 | 859 |
860 checkIpConfiguration(api.IpConfiguration o) { | 860 checkIpConfiguration(api.IpConfiguration o) { |
861 buildCounterIpConfiguration++; | 861 buildCounterIpConfiguration++; |
862 if (buildCounterIpConfiguration < 3) { | 862 if (buildCounterIpConfiguration < 3) { |
863 checkUnnamed1044(o.authorizedNetworks); | 863 checkUnnamed1072(o.authorizedNetworks); |
864 unittest.expect(o.enabled, unittest.isTrue); | 864 unittest.expect(o.enabled, unittest.isTrue); |
865 unittest.expect(o.requireSsl, unittest.isTrue); | 865 unittest.expect(o.requireSsl, unittest.isTrue); |
866 } | 866 } |
867 buildCounterIpConfiguration--; | 867 buildCounterIpConfiguration--; |
868 } | 868 } |
869 | 869 |
870 core.int buildCounterIpMapping = 0; | 870 core.int buildCounterIpMapping = 0; |
871 buildIpMapping() { | 871 buildIpMapping() { |
872 var o = new api.IpMapping(); | 872 var o = new api.IpMapping(); |
873 buildCounterIpMapping++; | 873 buildCounterIpMapping++; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 | 925 |
926 checkOperationError(api.OperationError o) { | 926 checkOperationError(api.OperationError o) { |
927 buildCounterOperationError++; | 927 buildCounterOperationError++; |
928 if (buildCounterOperationError < 3) { | 928 if (buildCounterOperationError < 3) { |
929 unittest.expect(o.code, unittest.equals('foo')); | 929 unittest.expect(o.code, unittest.equals('foo')); |
930 unittest.expect(o.kind, unittest.equals('foo')); | 930 unittest.expect(o.kind, unittest.equals('foo')); |
931 } | 931 } |
932 buildCounterOperationError--; | 932 buildCounterOperationError--; |
933 } | 933 } |
934 | 934 |
935 buildUnnamed1045() { | 935 buildUnnamed1073() { |
936 var o = new core.List<api.InstanceOperation>(); | 936 var o = new core.List<api.InstanceOperation>(); |
937 o.add(buildInstanceOperation()); | 937 o.add(buildInstanceOperation()); |
938 o.add(buildInstanceOperation()); | 938 o.add(buildInstanceOperation()); |
939 return o; | 939 return o; |
940 } | 940 } |
941 | 941 |
942 checkUnnamed1045(core.List<api.InstanceOperation> o) { | 942 checkUnnamed1073(core.List<api.InstanceOperation> o) { |
943 unittest.expect(o, unittest.hasLength(2)); | 943 unittest.expect(o, unittest.hasLength(2)); |
944 checkInstanceOperation(o[0]); | 944 checkInstanceOperation(o[0]); |
945 checkInstanceOperation(o[1]); | 945 checkInstanceOperation(o[1]); |
946 } | 946 } |
947 | 947 |
948 core.int buildCounterOperationsListResponse = 0; | 948 core.int buildCounterOperationsListResponse = 0; |
949 buildOperationsListResponse() { | 949 buildOperationsListResponse() { |
950 var o = new api.OperationsListResponse(); | 950 var o = new api.OperationsListResponse(); |
951 buildCounterOperationsListResponse++; | 951 buildCounterOperationsListResponse++; |
952 if (buildCounterOperationsListResponse < 3) { | 952 if (buildCounterOperationsListResponse < 3) { |
953 o.items = buildUnnamed1045(); | 953 o.items = buildUnnamed1073(); |
954 o.kind = "foo"; | 954 o.kind = "foo"; |
955 o.nextPageToken = "foo"; | 955 o.nextPageToken = "foo"; |
956 } | 956 } |
957 buildCounterOperationsListResponse--; | 957 buildCounterOperationsListResponse--; |
958 return o; | 958 return o; |
959 } | 959 } |
960 | 960 |
961 checkOperationsListResponse(api.OperationsListResponse o) { | 961 checkOperationsListResponse(api.OperationsListResponse o) { |
962 buildCounterOperationsListResponse++; | 962 buildCounterOperationsListResponse++; |
963 if (buildCounterOperationsListResponse < 3) { | 963 if (buildCounterOperationsListResponse < 3) { |
964 checkUnnamed1045(o.items); | 964 checkUnnamed1073(o.items); |
965 unittest.expect(o.kind, unittest.equals('foo')); | 965 unittest.expect(o.kind, unittest.equals('foo')); |
966 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 966 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
967 } | 967 } |
968 buildCounterOperationsListResponse--; | 968 buildCounterOperationsListResponse--; |
969 } | 969 } |
970 | 970 |
971 core.int buildCounterSetRootPasswordContext = 0; | 971 core.int buildCounterSetRootPasswordContext = 0; |
972 buildSetRootPasswordContext() { | 972 buildSetRootPasswordContext() { |
973 var o = new api.SetRootPasswordContext(); | 973 var o = new api.SetRootPasswordContext(); |
974 buildCounterSetRootPasswordContext++; | 974 buildCounterSetRootPasswordContext++; |
975 if (buildCounterSetRootPasswordContext < 3) { | 975 if (buildCounterSetRootPasswordContext < 3) { |
976 o.kind = "foo"; | 976 o.kind = "foo"; |
977 o.password = "foo"; | 977 o.password = "foo"; |
978 } | 978 } |
979 buildCounterSetRootPasswordContext--; | 979 buildCounterSetRootPasswordContext--; |
980 return o; | 980 return o; |
981 } | 981 } |
982 | 982 |
983 checkSetRootPasswordContext(api.SetRootPasswordContext o) { | 983 checkSetRootPasswordContext(api.SetRootPasswordContext o) { |
984 buildCounterSetRootPasswordContext++; | 984 buildCounterSetRootPasswordContext++; |
985 if (buildCounterSetRootPasswordContext < 3) { | 985 if (buildCounterSetRootPasswordContext < 3) { |
986 unittest.expect(o.kind, unittest.equals('foo')); | 986 unittest.expect(o.kind, unittest.equals('foo')); |
987 unittest.expect(o.password, unittest.equals('foo')); | 987 unittest.expect(o.password, unittest.equals('foo')); |
988 } | 988 } |
989 buildCounterSetRootPasswordContext--; | 989 buildCounterSetRootPasswordContext--; |
990 } | 990 } |
991 | 991 |
992 buildUnnamed1046() { | 992 buildUnnamed1074() { |
993 var o = new core.List<core.String>(); | 993 var o = new core.List<core.String>(); |
994 o.add("foo"); | 994 o.add("foo"); |
995 o.add("foo"); | 995 o.add("foo"); |
996 return o; | 996 return o; |
997 } | 997 } |
998 | 998 |
999 checkUnnamed1046(core.List<core.String> o) { | 999 checkUnnamed1074(core.List<core.String> o) { |
1000 unittest.expect(o, unittest.hasLength(2)); | 1000 unittest.expect(o, unittest.hasLength(2)); |
1001 unittest.expect(o[0], unittest.equals('foo')); | 1001 unittest.expect(o[0], unittest.equals('foo')); |
1002 unittest.expect(o[1], unittest.equals('foo')); | 1002 unittest.expect(o[1], unittest.equals('foo')); |
1003 } | 1003 } |
1004 | 1004 |
1005 buildUnnamed1047() { | 1005 buildUnnamed1075() { |
1006 var o = new core.List<api.BackupConfiguration>(); | 1006 var o = new core.List<api.BackupConfiguration>(); |
1007 o.add(buildBackupConfiguration()); | 1007 o.add(buildBackupConfiguration()); |
1008 o.add(buildBackupConfiguration()); | 1008 o.add(buildBackupConfiguration()); |
1009 return o; | 1009 return o; |
1010 } | 1010 } |
1011 | 1011 |
1012 checkUnnamed1047(core.List<api.BackupConfiguration> o) { | 1012 checkUnnamed1075(core.List<api.BackupConfiguration> o) { |
1013 unittest.expect(o, unittest.hasLength(2)); | 1013 unittest.expect(o, unittest.hasLength(2)); |
1014 checkBackupConfiguration(o[0]); | 1014 checkBackupConfiguration(o[0]); |
1015 checkBackupConfiguration(o[1]); | 1015 checkBackupConfiguration(o[1]); |
1016 } | 1016 } |
1017 | 1017 |
1018 buildUnnamed1048() { | 1018 buildUnnamed1076() { |
1019 var o = new core.List<api.DatabaseFlags>(); | 1019 var o = new core.List<api.DatabaseFlags>(); |
1020 o.add(buildDatabaseFlags()); | 1020 o.add(buildDatabaseFlags()); |
1021 o.add(buildDatabaseFlags()); | 1021 o.add(buildDatabaseFlags()); |
1022 return o; | 1022 return o; |
1023 } | 1023 } |
1024 | 1024 |
1025 checkUnnamed1048(core.List<api.DatabaseFlags> o) { | 1025 checkUnnamed1076(core.List<api.DatabaseFlags> o) { |
1026 unittest.expect(o, unittest.hasLength(2)); | 1026 unittest.expect(o, unittest.hasLength(2)); |
1027 checkDatabaseFlags(o[0]); | 1027 checkDatabaseFlags(o[0]); |
1028 checkDatabaseFlags(o[1]); | 1028 checkDatabaseFlags(o[1]); |
1029 } | 1029 } |
1030 | 1030 |
1031 core.int buildCounterSettings = 0; | 1031 core.int buildCounterSettings = 0; |
1032 buildSettings() { | 1032 buildSettings() { |
1033 var o = new api.Settings(); | 1033 var o = new api.Settings(); |
1034 buildCounterSettings++; | 1034 buildCounterSettings++; |
1035 if (buildCounterSettings < 3) { | 1035 if (buildCounterSettings < 3) { |
1036 o.activationPolicy = "foo"; | 1036 o.activationPolicy = "foo"; |
1037 o.authorizedGaeApplications = buildUnnamed1046(); | 1037 o.authorizedGaeApplications = buildUnnamed1074(); |
1038 o.backupConfiguration = buildUnnamed1047(); | 1038 o.backupConfiguration = buildUnnamed1075(); |
1039 o.databaseFlags = buildUnnamed1048(); | 1039 o.databaseFlags = buildUnnamed1076(); |
1040 o.databaseReplicationEnabled = true; | 1040 o.databaseReplicationEnabled = true; |
1041 o.ipConfiguration = buildIpConfiguration(); | 1041 o.ipConfiguration = buildIpConfiguration(); |
1042 o.kind = "foo"; | 1042 o.kind = "foo"; |
1043 o.locationPreference = buildLocationPreference(); | 1043 o.locationPreference = buildLocationPreference(); |
1044 o.pricingPlan = "foo"; | 1044 o.pricingPlan = "foo"; |
1045 o.replicationType = "foo"; | 1045 o.replicationType = "foo"; |
1046 o.settingsVersion = "foo"; | 1046 o.settingsVersion = "foo"; |
1047 o.tier = "foo"; | 1047 o.tier = "foo"; |
1048 } | 1048 } |
1049 buildCounterSettings--; | 1049 buildCounterSettings--; |
1050 return o; | 1050 return o; |
1051 } | 1051 } |
1052 | 1052 |
1053 checkSettings(api.Settings o) { | 1053 checkSettings(api.Settings o) { |
1054 buildCounterSettings++; | 1054 buildCounterSettings++; |
1055 if (buildCounterSettings < 3) { | 1055 if (buildCounterSettings < 3) { |
1056 unittest.expect(o.activationPolicy, unittest.equals('foo')); | 1056 unittest.expect(o.activationPolicy, unittest.equals('foo')); |
1057 checkUnnamed1046(o.authorizedGaeApplications); | 1057 checkUnnamed1074(o.authorizedGaeApplications); |
1058 checkUnnamed1047(o.backupConfiguration); | 1058 checkUnnamed1075(o.backupConfiguration); |
1059 checkUnnamed1048(o.databaseFlags); | 1059 checkUnnamed1076(o.databaseFlags); |
1060 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); | 1060 unittest.expect(o.databaseReplicationEnabled, unittest.isTrue); |
1061 checkIpConfiguration(o.ipConfiguration); | 1061 checkIpConfiguration(o.ipConfiguration); |
1062 unittest.expect(o.kind, unittest.equals('foo')); | 1062 unittest.expect(o.kind, unittest.equals('foo')); |
1063 checkLocationPreference(o.locationPreference); | 1063 checkLocationPreference(o.locationPreference); |
1064 unittest.expect(o.pricingPlan, unittest.equals('foo')); | 1064 unittest.expect(o.pricingPlan, unittest.equals('foo')); |
1065 unittest.expect(o.replicationType, unittest.equals('foo')); | 1065 unittest.expect(o.replicationType, unittest.equals('foo')); |
1066 unittest.expect(o.settingsVersion, unittest.equals('foo')); | 1066 unittest.expect(o.settingsVersion, unittest.equals('foo')); |
1067 unittest.expect(o.tier, unittest.equals('foo')); | 1067 unittest.expect(o.tier, unittest.equals('foo')); |
1068 } | 1068 } |
1069 buildCounterSettings--; | 1069 buildCounterSettings--; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1179 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { | 1179 checkSslCertsInsertResponse(api.SslCertsInsertResponse o) { |
1180 buildCounterSslCertsInsertResponse++; | 1180 buildCounterSslCertsInsertResponse++; |
1181 if (buildCounterSslCertsInsertResponse < 3) { | 1181 if (buildCounterSslCertsInsertResponse < 3) { |
1182 checkSslCertDetail(o.clientCert); | 1182 checkSslCertDetail(o.clientCert); |
1183 unittest.expect(o.kind, unittest.equals('foo')); | 1183 unittest.expect(o.kind, unittest.equals('foo')); |
1184 checkSslCert(o.serverCaCert); | 1184 checkSslCert(o.serverCaCert); |
1185 } | 1185 } |
1186 buildCounterSslCertsInsertResponse--; | 1186 buildCounterSslCertsInsertResponse--; |
1187 } | 1187 } |
1188 | 1188 |
1189 buildUnnamed1049() { | 1189 buildUnnamed1077() { |
1190 var o = new core.List<api.SslCert>(); | 1190 var o = new core.List<api.SslCert>(); |
1191 o.add(buildSslCert()); | 1191 o.add(buildSslCert()); |
1192 o.add(buildSslCert()); | 1192 o.add(buildSslCert()); |
1193 return o; | 1193 return o; |
1194 } | 1194 } |
1195 | 1195 |
1196 checkUnnamed1049(core.List<api.SslCert> o) { | 1196 checkUnnamed1077(core.List<api.SslCert> o) { |
1197 unittest.expect(o, unittest.hasLength(2)); | 1197 unittest.expect(o, unittest.hasLength(2)); |
1198 checkSslCert(o[0]); | 1198 checkSslCert(o[0]); |
1199 checkSslCert(o[1]); | 1199 checkSslCert(o[1]); |
1200 } | 1200 } |
1201 | 1201 |
1202 core.int buildCounterSslCertsListResponse = 0; | 1202 core.int buildCounterSslCertsListResponse = 0; |
1203 buildSslCertsListResponse() { | 1203 buildSslCertsListResponse() { |
1204 var o = new api.SslCertsListResponse(); | 1204 var o = new api.SslCertsListResponse(); |
1205 buildCounterSslCertsListResponse++; | 1205 buildCounterSslCertsListResponse++; |
1206 if (buildCounterSslCertsListResponse < 3) { | 1206 if (buildCounterSslCertsListResponse < 3) { |
1207 o.items = buildUnnamed1049(); | 1207 o.items = buildUnnamed1077(); |
1208 o.kind = "foo"; | 1208 o.kind = "foo"; |
1209 } | 1209 } |
1210 buildCounterSslCertsListResponse--; | 1210 buildCounterSslCertsListResponse--; |
1211 return o; | 1211 return o; |
1212 } | 1212 } |
1213 | 1213 |
1214 checkSslCertsListResponse(api.SslCertsListResponse o) { | 1214 checkSslCertsListResponse(api.SslCertsListResponse o) { |
1215 buildCounterSslCertsListResponse++; | 1215 buildCounterSslCertsListResponse++; |
1216 if (buildCounterSslCertsListResponse < 3) { | 1216 if (buildCounterSslCertsListResponse < 3) { |
1217 checkUnnamed1049(o.items); | 1217 checkUnnamed1077(o.items); |
1218 unittest.expect(o.kind, unittest.equals('foo')); | 1218 unittest.expect(o.kind, unittest.equals('foo')); |
1219 } | 1219 } |
1220 buildCounterSslCertsListResponse--; | 1220 buildCounterSslCertsListResponse--; |
1221 } | 1221 } |
1222 | 1222 |
1223 buildUnnamed1050() { | 1223 buildUnnamed1078() { |
1224 var o = new core.List<core.String>(); | 1224 var o = new core.List<core.String>(); |
1225 o.add("foo"); | 1225 o.add("foo"); |
1226 o.add("foo"); | 1226 o.add("foo"); |
1227 return o; | 1227 return o; |
1228 } | 1228 } |
1229 | 1229 |
1230 checkUnnamed1050(core.List<core.String> o) { | 1230 checkUnnamed1078(core.List<core.String> o) { |
1231 unittest.expect(o, unittest.hasLength(2)); | 1231 unittest.expect(o, unittest.hasLength(2)); |
1232 unittest.expect(o[0], unittest.equals('foo')); | 1232 unittest.expect(o[0], unittest.equals('foo')); |
1233 unittest.expect(o[1], unittest.equals('foo')); | 1233 unittest.expect(o[1], unittest.equals('foo')); |
1234 } | 1234 } |
1235 | 1235 |
1236 core.int buildCounterTier = 0; | 1236 core.int buildCounterTier = 0; |
1237 buildTier() { | 1237 buildTier() { |
1238 var o = new api.Tier(); | 1238 var o = new api.Tier(); |
1239 buildCounterTier++; | 1239 buildCounterTier++; |
1240 if (buildCounterTier < 3) { | 1240 if (buildCounterTier < 3) { |
1241 o.DiskQuota = "foo"; | 1241 o.DiskQuota = "foo"; |
1242 o.RAM = "foo"; | 1242 o.RAM = "foo"; |
1243 o.kind = "foo"; | 1243 o.kind = "foo"; |
1244 o.region = buildUnnamed1050(); | 1244 o.region = buildUnnamed1078(); |
1245 o.tier = "foo"; | 1245 o.tier = "foo"; |
1246 } | 1246 } |
1247 buildCounterTier--; | 1247 buildCounterTier--; |
1248 return o; | 1248 return o; |
1249 } | 1249 } |
1250 | 1250 |
1251 checkTier(api.Tier o) { | 1251 checkTier(api.Tier o) { |
1252 buildCounterTier++; | 1252 buildCounterTier++; |
1253 if (buildCounterTier < 3) { | 1253 if (buildCounterTier < 3) { |
1254 unittest.expect(o.DiskQuota, unittest.equals('foo')); | 1254 unittest.expect(o.DiskQuota, unittest.equals('foo')); |
1255 unittest.expect(o.RAM, unittest.equals('foo')); | 1255 unittest.expect(o.RAM, unittest.equals('foo')); |
1256 unittest.expect(o.kind, unittest.equals('foo')); | 1256 unittest.expect(o.kind, unittest.equals('foo')); |
1257 checkUnnamed1050(o.region); | 1257 checkUnnamed1078(o.region); |
1258 unittest.expect(o.tier, unittest.equals('foo')); | 1258 unittest.expect(o.tier, unittest.equals('foo')); |
1259 } | 1259 } |
1260 buildCounterTier--; | 1260 buildCounterTier--; |
1261 } | 1261 } |
1262 | 1262 |
1263 buildUnnamed1051() { | 1263 buildUnnamed1079() { |
1264 var o = new core.List<api.Tier>(); | 1264 var o = new core.List<api.Tier>(); |
1265 o.add(buildTier()); | 1265 o.add(buildTier()); |
1266 o.add(buildTier()); | 1266 o.add(buildTier()); |
1267 return o; | 1267 return o; |
1268 } | 1268 } |
1269 | 1269 |
1270 checkUnnamed1051(core.List<api.Tier> o) { | 1270 checkUnnamed1079(core.List<api.Tier> o) { |
1271 unittest.expect(o, unittest.hasLength(2)); | 1271 unittest.expect(o, unittest.hasLength(2)); |
1272 checkTier(o[0]); | 1272 checkTier(o[0]); |
1273 checkTier(o[1]); | 1273 checkTier(o[1]); |
1274 } | 1274 } |
1275 | 1275 |
1276 core.int buildCounterTiersListResponse = 0; | 1276 core.int buildCounterTiersListResponse = 0; |
1277 buildTiersListResponse() { | 1277 buildTiersListResponse() { |
1278 var o = new api.TiersListResponse(); | 1278 var o = new api.TiersListResponse(); |
1279 buildCounterTiersListResponse++; | 1279 buildCounterTiersListResponse++; |
1280 if (buildCounterTiersListResponse < 3) { | 1280 if (buildCounterTiersListResponse < 3) { |
1281 o.items = buildUnnamed1051(); | 1281 o.items = buildUnnamed1079(); |
1282 o.kind = "foo"; | 1282 o.kind = "foo"; |
1283 } | 1283 } |
1284 buildCounterTiersListResponse--; | 1284 buildCounterTiersListResponse--; |
1285 return o; | 1285 return o; |
1286 } | 1286 } |
1287 | 1287 |
1288 checkTiersListResponse(api.TiersListResponse o) { | 1288 checkTiersListResponse(api.TiersListResponse o) { |
1289 buildCounterTiersListResponse++; | 1289 buildCounterTiersListResponse++; |
1290 if (buildCounterTiersListResponse < 3) { | 1290 if (buildCounterTiersListResponse < 3) { |
1291 checkUnnamed1051(o.items); | 1291 checkUnnamed1079(o.items); |
1292 unittest.expect(o.kind, unittest.equals('foo')); | 1292 unittest.expect(o.kind, unittest.equals('foo')); |
1293 } | 1293 } |
1294 buildCounterTiersListResponse--; | 1294 buildCounterTiersListResponse--; |
1295 } | 1295 } |
1296 | 1296 |
1297 | 1297 |
1298 main() { | 1298 main() { |
1299 unittest.group("obj-schema-BackupConfiguration", () { | 1299 unittest.group("obj-schema-BackupConfiguration", () { |
1300 unittest.test("to-json--from-json", () { | 1300 unittest.test("to-json--from-json", () { |
1301 var o = buildBackupConfiguration(); | 1301 var o = buildBackupConfiguration(); |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 api.BackupRunsResourceApi res = new api.SqladminApi(mock).backupRuns; | 1690 api.BackupRunsResourceApi res = new api.SqladminApi(mock).backupRuns; |
1691 var arg_project = "foo"; | 1691 var arg_project = "foo"; |
1692 var arg_instance = "foo"; | 1692 var arg_instance = "foo"; |
1693 var arg_backupConfiguration = "foo"; | 1693 var arg_backupConfiguration = "foo"; |
1694 var arg_dueTime = "foo"; | 1694 var arg_dueTime = "foo"; |
1695 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1695 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1696 var path = (req.url).path; | 1696 var path = (req.url).path; |
1697 var pathOffset = 0; | 1697 var pathOffset = 0; |
1698 var index; | 1698 var index; |
1699 var subPart; | 1699 var subPart; |
1700 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 1700 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1701 pathOffset += 13; | 1701 pathOffset += 1; |
| 1702 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 1703 pathOffset += 12; |
1702 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 1704 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
1703 pathOffset += 9; | 1705 pathOffset += 9; |
1704 index = path.indexOf("/instances/", pathOffset); | 1706 index = path.indexOf("/instances/", pathOffset); |
1705 unittest.expect(index >= 0, unittest.isTrue); | 1707 unittest.expect(index >= 0, unittest.isTrue); |
1706 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1708 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
1707 pathOffset = index; | 1709 pathOffset = index; |
1708 unittest.expect(subPart, unittest.equals("$arg_project")); | 1710 unittest.expect(subPart, unittest.equals("$arg_project")); |
1709 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 1711 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
1710 pathOffset += 11; | 1712 pathOffset += 11; |
1711 index = path.indexOf("/backupRuns/", pathOffset); | 1713 index = path.indexOf("/backupRuns/", pathOffset); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1756 var arg_project = "foo"; | 1758 var arg_project = "foo"; |
1757 var arg_instance = "foo"; | 1759 var arg_instance = "foo"; |
1758 var arg_backupConfiguration = "foo"; | 1760 var arg_backupConfiguration = "foo"; |
1759 var arg_maxResults = 42; | 1761 var arg_maxResults = 42; |
1760 var arg_pageToken = "foo"; | 1762 var arg_pageToken = "foo"; |
1761 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1763 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1762 var path = (req.url).path; | 1764 var path = (req.url).path; |
1763 var pathOffset = 0; | 1765 var pathOffset = 0; |
1764 var index; | 1766 var index; |
1765 var subPart; | 1767 var subPart; |
1766 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 1768 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1767 pathOffset += 13; | 1769 pathOffset += 1; |
| 1770 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 1771 pathOffset += 12; |
1768 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 1772 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
1769 pathOffset += 9; | 1773 pathOffset += 9; |
1770 index = path.indexOf("/instances/", pathOffset); | 1774 index = path.indexOf("/instances/", pathOffset); |
1771 unittest.expect(index >= 0, unittest.isTrue); | 1775 unittest.expect(index >= 0, unittest.isTrue); |
1772 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1776 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
1773 pathOffset = index; | 1777 pathOffset = index; |
1774 unittest.expect(subPart, unittest.equals("$arg_project")); | 1778 unittest.expect(subPart, unittest.equals("$arg_project")); |
1775 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 1779 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
1776 pathOffset += 11; | 1780 pathOffset += 11; |
1777 index = path.indexOf("/backupRuns", pathOffset); | 1781 index = path.indexOf("/backupRuns", pathOffset); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1820 unittest.group("resource-FlagsResourceApi", () { | 1824 unittest.group("resource-FlagsResourceApi", () { |
1821 unittest.test("method--list", () { | 1825 unittest.test("method--list", () { |
1822 | 1826 |
1823 var mock = new common_test.HttpServerMock(); | 1827 var mock = new common_test.HttpServerMock(); |
1824 api.FlagsResourceApi res = new api.SqladminApi(mock).flags; | 1828 api.FlagsResourceApi res = new api.SqladminApi(mock).flags; |
1825 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1829 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1826 var path = (req.url).path; | 1830 var path = (req.url).path; |
1827 var pathOffset = 0; | 1831 var pathOffset = 0; |
1828 var index; | 1832 var index; |
1829 var subPart; | 1833 var subPart; |
1830 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 1834 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1831 pathOffset += 13; | 1835 pathOffset += 1; |
| 1836 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 1837 pathOffset += 12; |
1832 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("flags")); | 1838 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("flags")); |
1833 pathOffset += 5; | 1839 pathOffset += 5; |
1834 | 1840 |
1835 var query = (req.url).query; | 1841 var query = (req.url).query; |
1836 var queryOffset = 0; | 1842 var queryOffset = 0; |
1837 var queryMap = {}; | 1843 var queryMap = {}; |
1838 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1844 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1839 parseBool(n) { | 1845 parseBool(n) { |
1840 if (n == "true") return true; | 1846 if (n == "true") return true; |
1841 if (n == "false") return false; | 1847 if (n == "false") return false; |
(...skipping 30 matching lines...) Expand all Loading... |
1872 var arg_request = buildInstancesCloneRequest(); | 1878 var arg_request = buildInstancesCloneRequest(); |
1873 var arg_project = "foo"; | 1879 var arg_project = "foo"; |
1874 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1880 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1875 var obj = new api.InstancesCloneRequest.fromJson(json); | 1881 var obj = new api.InstancesCloneRequest.fromJson(json); |
1876 checkInstancesCloneRequest(obj); | 1882 checkInstancesCloneRequest(obj); |
1877 | 1883 |
1878 var path = (req.url).path; | 1884 var path = (req.url).path; |
1879 var pathOffset = 0; | 1885 var pathOffset = 0; |
1880 var index; | 1886 var index; |
1881 var subPart; | 1887 var subPart; |
1882 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 1888 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1883 pathOffset += 13; | 1889 pathOffset += 1; |
| 1890 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 1891 pathOffset += 12; |
1884 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 1892 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
1885 pathOffset += 9; | 1893 pathOffset += 9; |
1886 index = path.indexOf("/instances/clone", pathOffset); | 1894 index = path.indexOf("/instances/clone", pathOffset); |
1887 unittest.expect(index >= 0, unittest.isTrue); | 1895 unittest.expect(index >= 0, unittest.isTrue); |
1888 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1896 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
1889 pathOffset = index; | 1897 pathOffset = index; |
1890 unittest.expect(subPart, unittest.equals("$arg_project")); | 1898 unittest.expect(subPart, unittest.equals("$arg_project")); |
1891 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/instances/clone")); | 1899 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/instances/clone")); |
1892 pathOffset += 16; | 1900 pathOffset += 16; |
1893 | 1901 |
(...skipping 30 matching lines...) Expand all Loading... |
1924 | 1932 |
1925 var mock = new common_test.HttpServerMock(); | 1933 var mock = new common_test.HttpServerMock(); |
1926 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; | 1934 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; |
1927 var arg_project = "foo"; | 1935 var arg_project = "foo"; |
1928 var arg_instance = "foo"; | 1936 var arg_instance = "foo"; |
1929 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1937 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1930 var path = (req.url).path; | 1938 var path = (req.url).path; |
1931 var pathOffset = 0; | 1939 var pathOffset = 0; |
1932 var index; | 1940 var index; |
1933 var subPart; | 1941 var subPart; |
1934 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 1942 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1935 pathOffset += 13; | 1943 pathOffset += 1; |
| 1944 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 1945 pathOffset += 12; |
1936 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 1946 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
1937 pathOffset += 9; | 1947 pathOffset += 9; |
1938 index = path.indexOf("/instances/", pathOffset); | 1948 index = path.indexOf("/instances/", pathOffset); |
1939 unittest.expect(index >= 0, unittest.isTrue); | 1949 unittest.expect(index >= 0, unittest.isTrue); |
1940 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 1950 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
1941 pathOffset = index; | 1951 pathOffset = index; |
1942 unittest.expect(subPart, unittest.equals("$arg_project")); | 1952 unittest.expect(subPart, unittest.equals("$arg_project")); |
1943 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 1953 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
1944 pathOffset += 11; | 1954 pathOffset += 11; |
1945 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 1955 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1983 var arg_project = "foo"; | 1993 var arg_project = "foo"; |
1984 var arg_instance = "foo"; | 1994 var arg_instance = "foo"; |
1985 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1995 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1986 var obj = new api.InstancesExportRequest.fromJson(json); | 1996 var obj = new api.InstancesExportRequest.fromJson(json); |
1987 checkInstancesExportRequest(obj); | 1997 checkInstancesExportRequest(obj); |
1988 | 1998 |
1989 var path = (req.url).path; | 1999 var path = (req.url).path; |
1990 var pathOffset = 0; | 2000 var pathOffset = 0; |
1991 var index; | 2001 var index; |
1992 var subPart; | 2002 var subPart; |
1993 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2003 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1994 pathOffset += 13; | 2004 pathOffset += 1; |
| 2005 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2006 pathOffset += 12; |
1995 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2007 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
1996 pathOffset += 9; | 2008 pathOffset += 9; |
1997 index = path.indexOf("/instances/", pathOffset); | 2009 index = path.indexOf("/instances/", pathOffset); |
1998 unittest.expect(index >= 0, unittest.isTrue); | 2010 unittest.expect(index >= 0, unittest.isTrue); |
1999 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2011 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2000 pathOffset = index; | 2012 pathOffset = index; |
2001 unittest.expect(subPart, unittest.equals("$arg_project")); | 2013 unittest.expect(subPart, unittest.equals("$arg_project")); |
2002 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2014 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2003 pathOffset += 11; | 2015 pathOffset += 11; |
2004 index = path.indexOf("/export", pathOffset); | 2016 index = path.indexOf("/export", pathOffset); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2042 | 2054 |
2043 var mock = new common_test.HttpServerMock(); | 2055 var mock = new common_test.HttpServerMock(); |
2044 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; | 2056 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; |
2045 var arg_project = "foo"; | 2057 var arg_project = "foo"; |
2046 var arg_instance = "foo"; | 2058 var arg_instance = "foo"; |
2047 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2059 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2048 var path = (req.url).path; | 2060 var path = (req.url).path; |
2049 var pathOffset = 0; | 2061 var pathOffset = 0; |
2050 var index; | 2062 var index; |
2051 var subPart; | 2063 var subPart; |
2052 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2064 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2053 pathOffset += 13; | 2065 pathOffset += 1; |
| 2066 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2067 pathOffset += 12; |
2054 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2068 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2055 pathOffset += 9; | 2069 pathOffset += 9; |
2056 index = path.indexOf("/instances/", pathOffset); | 2070 index = path.indexOf("/instances/", pathOffset); |
2057 unittest.expect(index >= 0, unittest.isTrue); | 2071 unittest.expect(index >= 0, unittest.isTrue); |
2058 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2072 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2059 pathOffset = index; | 2073 pathOffset = index; |
2060 unittest.expect(subPart, unittest.equals("$arg_project")); | 2074 unittest.expect(subPart, unittest.equals("$arg_project")); |
2061 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2075 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2062 pathOffset += 11; | 2076 pathOffset += 11; |
2063 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2077 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2101 var arg_project = "foo"; | 2115 var arg_project = "foo"; |
2102 var arg_instance = "foo"; | 2116 var arg_instance = "foo"; |
2103 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2117 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2104 var obj = new api.InstancesImportRequest.fromJson(json); | 2118 var obj = new api.InstancesImportRequest.fromJson(json); |
2105 checkInstancesImportRequest(obj); | 2119 checkInstancesImportRequest(obj); |
2106 | 2120 |
2107 var path = (req.url).path; | 2121 var path = (req.url).path; |
2108 var pathOffset = 0; | 2122 var pathOffset = 0; |
2109 var index; | 2123 var index; |
2110 var subPart; | 2124 var subPart; |
2111 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2125 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2112 pathOffset += 13; | 2126 pathOffset += 1; |
| 2127 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2128 pathOffset += 12; |
2113 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2129 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2114 pathOffset += 9; | 2130 pathOffset += 9; |
2115 index = path.indexOf("/instances/", pathOffset); | 2131 index = path.indexOf("/instances/", pathOffset); |
2116 unittest.expect(index >= 0, unittest.isTrue); | 2132 unittest.expect(index >= 0, unittest.isTrue); |
2117 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2133 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2118 pathOffset = index; | 2134 pathOffset = index; |
2119 unittest.expect(subPart, unittest.equals("$arg_project")); | 2135 unittest.expect(subPart, unittest.equals("$arg_project")); |
2120 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2136 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2121 pathOffset += 11; | 2137 pathOffset += 11; |
2122 index = path.indexOf("/import", pathOffset); | 2138 index = path.indexOf("/import", pathOffset); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2163 var arg_request = buildDatabaseInstance(); | 2179 var arg_request = buildDatabaseInstance(); |
2164 var arg_project = "foo"; | 2180 var arg_project = "foo"; |
2165 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2181 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2166 var obj = new api.DatabaseInstance.fromJson(json); | 2182 var obj = new api.DatabaseInstance.fromJson(json); |
2167 checkDatabaseInstance(obj); | 2183 checkDatabaseInstance(obj); |
2168 | 2184 |
2169 var path = (req.url).path; | 2185 var path = (req.url).path; |
2170 var pathOffset = 0; | 2186 var pathOffset = 0; |
2171 var index; | 2187 var index; |
2172 var subPart; | 2188 var subPart; |
2173 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2189 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2174 pathOffset += 13; | 2190 pathOffset += 1; |
| 2191 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2192 pathOffset += 12; |
2175 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2193 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2176 pathOffset += 9; | 2194 pathOffset += 9; |
2177 index = path.indexOf("/instances", pathOffset); | 2195 index = path.indexOf("/instances", pathOffset); |
2178 unittest.expect(index >= 0, unittest.isTrue); | 2196 unittest.expect(index >= 0, unittest.isTrue); |
2179 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2197 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2180 pathOffset = index; | 2198 pathOffset = index; |
2181 unittest.expect(subPart, unittest.equals("$arg_project")); | 2199 unittest.expect(subPart, unittest.equals("$arg_project")); |
2182 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/instances")); | 2200 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/instances")); |
2183 pathOffset += 10; | 2201 pathOffset += 10; |
2184 | 2202 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2216 var mock = new common_test.HttpServerMock(); | 2234 var mock = new common_test.HttpServerMock(); |
2217 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; | 2235 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; |
2218 var arg_project = "foo"; | 2236 var arg_project = "foo"; |
2219 var arg_maxResults = 42; | 2237 var arg_maxResults = 42; |
2220 var arg_pageToken = "foo"; | 2238 var arg_pageToken = "foo"; |
2221 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2239 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2222 var path = (req.url).path; | 2240 var path = (req.url).path; |
2223 var pathOffset = 0; | 2241 var pathOffset = 0; |
2224 var index; | 2242 var index; |
2225 var subPart; | 2243 var subPart; |
2226 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2244 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2227 pathOffset += 13; | 2245 pathOffset += 1; |
| 2246 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2247 pathOffset += 12; |
2228 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2248 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2229 pathOffset += 9; | 2249 pathOffset += 9; |
2230 index = path.indexOf("/instances", pathOffset); | 2250 index = path.indexOf("/instances", pathOffset); |
2231 unittest.expect(index >= 0, unittest.isTrue); | 2251 unittest.expect(index >= 0, unittest.isTrue); |
2232 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2252 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2233 pathOffset = index; | 2253 pathOffset = index; |
2234 unittest.expect(subPart, unittest.equals("$arg_project")); | 2254 unittest.expect(subPart, unittest.equals("$arg_project")); |
2235 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/instances")); | 2255 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/instances")); |
2236 pathOffset += 10; | 2256 pathOffset += 10; |
2237 | 2257 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2274 var arg_project = "foo"; | 2294 var arg_project = "foo"; |
2275 var arg_instance = "foo"; | 2295 var arg_instance = "foo"; |
2276 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2296 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2277 var obj = new api.DatabaseInstance.fromJson(json); | 2297 var obj = new api.DatabaseInstance.fromJson(json); |
2278 checkDatabaseInstance(obj); | 2298 checkDatabaseInstance(obj); |
2279 | 2299 |
2280 var path = (req.url).path; | 2300 var path = (req.url).path; |
2281 var pathOffset = 0; | 2301 var pathOffset = 0; |
2282 var index; | 2302 var index; |
2283 var subPart; | 2303 var subPart; |
2284 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2304 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2285 pathOffset += 13; | 2305 pathOffset += 1; |
| 2306 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2307 pathOffset += 12; |
2286 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2308 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2287 pathOffset += 9; | 2309 pathOffset += 9; |
2288 index = path.indexOf("/instances/", pathOffset); | 2310 index = path.indexOf("/instances/", pathOffset); |
2289 unittest.expect(index >= 0, unittest.isTrue); | 2311 unittest.expect(index >= 0, unittest.isTrue); |
2290 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2312 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2291 pathOffset = index; | 2313 pathOffset = index; |
2292 unittest.expect(subPart, unittest.equals("$arg_project")); | 2314 unittest.expect(subPart, unittest.equals("$arg_project")); |
2293 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2315 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2294 pathOffset += 11; | 2316 pathOffset += 11; |
2295 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2317 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2329 | 2351 |
2330 var mock = new common_test.HttpServerMock(); | 2352 var mock = new common_test.HttpServerMock(); |
2331 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; | 2353 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; |
2332 var arg_project = "foo"; | 2354 var arg_project = "foo"; |
2333 var arg_instance = "foo"; | 2355 var arg_instance = "foo"; |
2334 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2356 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2335 var path = (req.url).path; | 2357 var path = (req.url).path; |
2336 var pathOffset = 0; | 2358 var pathOffset = 0; |
2337 var index; | 2359 var index; |
2338 var subPart; | 2360 var subPart; |
2339 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2361 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2340 pathOffset += 13; | 2362 pathOffset += 1; |
| 2363 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2364 pathOffset += 12; |
2341 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2365 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2342 pathOffset += 9; | 2366 pathOffset += 9; |
2343 index = path.indexOf("/instances/", pathOffset); | 2367 index = path.indexOf("/instances/", pathOffset); |
2344 unittest.expect(index >= 0, unittest.isTrue); | 2368 unittest.expect(index >= 0, unittest.isTrue); |
2345 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2369 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2346 pathOffset = index; | 2370 pathOffset = index; |
2347 unittest.expect(subPart, unittest.equals("$arg_project")); | 2371 unittest.expect(subPart, unittest.equals("$arg_project")); |
2348 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2372 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2349 pathOffset += 11; | 2373 pathOffset += 11; |
2350 index = path.indexOf("/promoteReplica", pathOffset); | 2374 index = path.indexOf("/promoteReplica", pathOffset); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2388 | 2412 |
2389 var mock = new common_test.HttpServerMock(); | 2413 var mock = new common_test.HttpServerMock(); |
2390 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; | 2414 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; |
2391 var arg_project = "foo"; | 2415 var arg_project = "foo"; |
2392 var arg_instance = "foo"; | 2416 var arg_instance = "foo"; |
2393 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2417 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2394 var path = (req.url).path; | 2418 var path = (req.url).path; |
2395 var pathOffset = 0; | 2419 var pathOffset = 0; |
2396 var index; | 2420 var index; |
2397 var subPart; | 2421 var subPart; |
2398 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2422 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2399 pathOffset += 13; | 2423 pathOffset += 1; |
| 2424 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2425 pathOffset += 12; |
2400 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2426 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2401 pathOffset += 9; | 2427 pathOffset += 9; |
2402 index = path.indexOf("/instances/", pathOffset); | 2428 index = path.indexOf("/instances/", pathOffset); |
2403 unittest.expect(index >= 0, unittest.isTrue); | 2429 unittest.expect(index >= 0, unittest.isTrue); |
2404 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2430 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2405 pathOffset = index; | 2431 pathOffset = index; |
2406 unittest.expect(subPart, unittest.equals("$arg_project")); | 2432 unittest.expect(subPart, unittest.equals("$arg_project")); |
2407 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2433 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2408 pathOffset += 11; | 2434 pathOffset += 11; |
2409 index = path.indexOf("/resetSslConfig", pathOffset); | 2435 index = path.indexOf("/resetSslConfig", pathOffset); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2447 | 2473 |
2448 var mock = new common_test.HttpServerMock(); | 2474 var mock = new common_test.HttpServerMock(); |
2449 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; | 2475 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; |
2450 var arg_project = "foo"; | 2476 var arg_project = "foo"; |
2451 var arg_instance = "foo"; | 2477 var arg_instance = "foo"; |
2452 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2478 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2453 var path = (req.url).path; | 2479 var path = (req.url).path; |
2454 var pathOffset = 0; | 2480 var pathOffset = 0; |
2455 var index; | 2481 var index; |
2456 var subPart; | 2482 var subPart; |
2457 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2483 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2458 pathOffset += 13; | 2484 pathOffset += 1; |
| 2485 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2486 pathOffset += 12; |
2459 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2487 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2460 pathOffset += 9; | 2488 pathOffset += 9; |
2461 index = path.indexOf("/instances/", pathOffset); | 2489 index = path.indexOf("/instances/", pathOffset); |
2462 unittest.expect(index >= 0, unittest.isTrue); | 2490 unittest.expect(index >= 0, unittest.isTrue); |
2463 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2491 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2464 pathOffset = index; | 2492 pathOffset = index; |
2465 unittest.expect(subPart, unittest.equals("$arg_project")); | 2493 unittest.expect(subPart, unittest.equals("$arg_project")); |
2466 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2494 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2467 pathOffset += 11; | 2495 pathOffset += 11; |
2468 index = path.indexOf("/restart", pathOffset); | 2496 index = path.indexOf("/restart", pathOffset); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2508 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; | 2536 api.InstancesResourceApi res = new api.SqladminApi(mock).instances; |
2509 var arg_project = "foo"; | 2537 var arg_project = "foo"; |
2510 var arg_instance = "foo"; | 2538 var arg_instance = "foo"; |
2511 var arg_backupConfiguration = "foo"; | 2539 var arg_backupConfiguration = "foo"; |
2512 var arg_dueTime = "foo"; | 2540 var arg_dueTime = "foo"; |
2513 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2541 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2514 var path = (req.url).path; | 2542 var path = (req.url).path; |
2515 var pathOffset = 0; | 2543 var pathOffset = 0; |
2516 var index; | 2544 var index; |
2517 var subPart; | 2545 var subPart; |
2518 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2546 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2519 pathOffset += 13; | 2547 pathOffset += 1; |
| 2548 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2549 pathOffset += 12; |
2520 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2550 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2521 pathOffset += 9; | 2551 pathOffset += 9; |
2522 index = path.indexOf("/instances/", pathOffset); | 2552 index = path.indexOf("/instances/", pathOffset); |
2523 unittest.expect(index >= 0, unittest.isTrue); | 2553 unittest.expect(index >= 0, unittest.isTrue); |
2524 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2554 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2525 pathOffset = index; | 2555 pathOffset = index; |
2526 unittest.expect(subPart, unittest.equals("$arg_project")); | 2556 unittest.expect(subPart, unittest.equals("$arg_project")); |
2527 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2557 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2528 pathOffset += 11; | 2558 pathOffset += 11; |
2529 index = path.indexOf("/restoreBackup", pathOffset); | 2559 index = path.indexOf("/restoreBackup", pathOffset); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2573 var arg_project = "foo"; | 2603 var arg_project = "foo"; |
2574 var arg_instance = "foo"; | 2604 var arg_instance = "foo"; |
2575 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2605 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2576 var obj = new api.InstanceSetRootPasswordRequest.fromJson(json); | 2606 var obj = new api.InstanceSetRootPasswordRequest.fromJson(json); |
2577 checkInstanceSetRootPasswordRequest(obj); | 2607 checkInstanceSetRootPasswordRequest(obj); |
2578 | 2608 |
2579 var path = (req.url).path; | 2609 var path = (req.url).path; |
2580 var pathOffset = 0; | 2610 var pathOffset = 0; |
2581 var index; | 2611 var index; |
2582 var subPart; | 2612 var subPart; |
2583 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2613 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2584 pathOffset += 13; | 2614 pathOffset += 1; |
| 2615 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2616 pathOffset += 12; |
2585 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2617 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2586 pathOffset += 9; | 2618 pathOffset += 9; |
2587 index = path.indexOf("/instances/", pathOffset); | 2619 index = path.indexOf("/instances/", pathOffset); |
2588 unittest.expect(index >= 0, unittest.isTrue); | 2620 unittest.expect(index >= 0, unittest.isTrue); |
2589 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2621 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2590 pathOffset = index; | 2622 pathOffset = index; |
2591 unittest.expect(subPart, unittest.equals("$arg_project")); | 2623 unittest.expect(subPart, unittest.equals("$arg_project")); |
2592 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2624 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2593 pathOffset += 11; | 2625 pathOffset += 11; |
2594 index = path.indexOf("/setRootPassword", pathOffset); | 2626 index = path.indexOf("/setRootPassword", pathOffset); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2636 var arg_project = "foo"; | 2668 var arg_project = "foo"; |
2637 var arg_instance = "foo"; | 2669 var arg_instance = "foo"; |
2638 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2670 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2639 var obj = new api.DatabaseInstance.fromJson(json); | 2671 var obj = new api.DatabaseInstance.fromJson(json); |
2640 checkDatabaseInstance(obj); | 2672 checkDatabaseInstance(obj); |
2641 | 2673 |
2642 var path = (req.url).path; | 2674 var path = (req.url).path; |
2643 var pathOffset = 0; | 2675 var pathOffset = 0; |
2644 var index; | 2676 var index; |
2645 var subPart; | 2677 var subPart; |
2646 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2678 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2647 pathOffset += 13; | 2679 pathOffset += 1; |
| 2680 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2681 pathOffset += 12; |
2648 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2682 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2649 pathOffset += 9; | 2683 pathOffset += 9; |
2650 index = path.indexOf("/instances/", pathOffset); | 2684 index = path.indexOf("/instances/", pathOffset); |
2651 unittest.expect(index >= 0, unittest.isTrue); | 2685 unittest.expect(index >= 0, unittest.isTrue); |
2652 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2686 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2653 pathOffset = index; | 2687 pathOffset = index; |
2654 unittest.expect(subPart, unittest.equals("$arg_project")); | 2688 unittest.expect(subPart, unittest.equals("$arg_project")); |
2655 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2689 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2656 pathOffset += 11; | 2690 pathOffset += 11; |
2657 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2691 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2696 var mock = new common_test.HttpServerMock(); | 2730 var mock = new common_test.HttpServerMock(); |
2697 api.OperationsResourceApi res = new api.SqladminApi(mock).operations; | 2731 api.OperationsResourceApi res = new api.SqladminApi(mock).operations; |
2698 var arg_project = "foo"; | 2732 var arg_project = "foo"; |
2699 var arg_instance = "foo"; | 2733 var arg_instance = "foo"; |
2700 var arg_operation = "foo"; | 2734 var arg_operation = "foo"; |
2701 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2735 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2702 var path = (req.url).path; | 2736 var path = (req.url).path; |
2703 var pathOffset = 0; | 2737 var pathOffset = 0; |
2704 var index; | 2738 var index; |
2705 var subPart; | 2739 var subPart; |
2706 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2740 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2707 pathOffset += 13; | 2741 pathOffset += 1; |
| 2742 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2743 pathOffset += 12; |
2708 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2744 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2709 pathOffset += 9; | 2745 pathOffset += 9; |
2710 index = path.indexOf("/instances/", pathOffset); | 2746 index = path.indexOf("/instances/", pathOffset); |
2711 unittest.expect(index >= 0, unittest.isTrue); | 2747 unittest.expect(index >= 0, unittest.isTrue); |
2712 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2748 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2713 pathOffset = index; | 2749 pathOffset = index; |
2714 unittest.expect(subPart, unittest.equals("$arg_project")); | 2750 unittest.expect(subPart, unittest.equals("$arg_project")); |
2715 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2751 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2716 pathOffset += 11; | 2752 pathOffset += 11; |
2717 index = path.indexOf("/operations/", pathOffset); | 2753 index = path.indexOf("/operations/", pathOffset); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2760 api.OperationsResourceApi res = new api.SqladminApi(mock).operations; | 2796 api.OperationsResourceApi res = new api.SqladminApi(mock).operations; |
2761 var arg_project = "foo"; | 2797 var arg_project = "foo"; |
2762 var arg_instance = "foo"; | 2798 var arg_instance = "foo"; |
2763 var arg_maxResults = 42; | 2799 var arg_maxResults = 42; |
2764 var arg_pageToken = "foo"; | 2800 var arg_pageToken = "foo"; |
2765 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2801 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2766 var path = (req.url).path; | 2802 var path = (req.url).path; |
2767 var pathOffset = 0; | 2803 var pathOffset = 0; |
2768 var index; | 2804 var index; |
2769 var subPart; | 2805 var subPart; |
2770 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2806 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2771 pathOffset += 13; | 2807 pathOffset += 1; |
| 2808 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2809 pathOffset += 12; |
2772 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2810 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2773 pathOffset += 9; | 2811 pathOffset += 9; |
2774 index = path.indexOf("/instances/", pathOffset); | 2812 index = path.indexOf("/instances/", pathOffset); |
2775 unittest.expect(index >= 0, unittest.isTrue); | 2813 unittest.expect(index >= 0, unittest.isTrue); |
2776 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2814 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2777 pathOffset = index; | 2815 pathOffset = index; |
2778 unittest.expect(subPart, unittest.equals("$arg_project")); | 2816 unittest.expect(subPart, unittest.equals("$arg_project")); |
2779 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2817 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2780 pathOffset += 11; | 2818 pathOffset += 11; |
2781 index = path.indexOf("/operations", pathOffset); | 2819 index = path.indexOf("/operations", pathOffset); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2826 var mock = new common_test.HttpServerMock(); | 2864 var mock = new common_test.HttpServerMock(); |
2827 api.SslCertsResourceApi res = new api.SqladminApi(mock).sslCerts; | 2865 api.SslCertsResourceApi res = new api.SqladminApi(mock).sslCerts; |
2828 var arg_project = "foo"; | 2866 var arg_project = "foo"; |
2829 var arg_instance = "foo"; | 2867 var arg_instance = "foo"; |
2830 var arg_sha1Fingerprint = "foo"; | 2868 var arg_sha1Fingerprint = "foo"; |
2831 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2869 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2832 var path = (req.url).path; | 2870 var path = (req.url).path; |
2833 var pathOffset = 0; | 2871 var pathOffset = 0; |
2834 var index; | 2872 var index; |
2835 var subPart; | 2873 var subPart; |
2836 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2874 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2837 pathOffset += 13; | 2875 pathOffset += 1; |
| 2876 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2877 pathOffset += 12; |
2838 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2878 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2839 pathOffset += 9; | 2879 pathOffset += 9; |
2840 index = path.indexOf("/instances/", pathOffset); | 2880 index = path.indexOf("/instances/", pathOffset); |
2841 unittest.expect(index >= 0, unittest.isTrue); | 2881 unittest.expect(index >= 0, unittest.isTrue); |
2842 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2882 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2843 pathOffset = index; | 2883 pathOffset = index; |
2844 unittest.expect(subPart, unittest.equals("$arg_project")); | 2884 unittest.expect(subPart, unittest.equals("$arg_project")); |
2845 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2885 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2846 pathOffset += 11; | 2886 pathOffset += 11; |
2847 index = path.indexOf("/sslCerts/", pathOffset); | 2887 index = path.indexOf("/sslCerts/", pathOffset); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2889 var mock = new common_test.HttpServerMock(); | 2929 var mock = new common_test.HttpServerMock(); |
2890 api.SslCertsResourceApi res = new api.SqladminApi(mock).sslCerts; | 2930 api.SslCertsResourceApi res = new api.SqladminApi(mock).sslCerts; |
2891 var arg_project = "foo"; | 2931 var arg_project = "foo"; |
2892 var arg_instance = "foo"; | 2932 var arg_instance = "foo"; |
2893 var arg_sha1Fingerprint = "foo"; | 2933 var arg_sha1Fingerprint = "foo"; |
2894 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2934 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2895 var path = (req.url).path; | 2935 var path = (req.url).path; |
2896 var pathOffset = 0; | 2936 var pathOffset = 0; |
2897 var index; | 2937 var index; |
2898 var subPart; | 2938 var subPart; |
2899 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 2939 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2900 pathOffset += 13; | 2940 pathOffset += 1; |
| 2941 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 2942 pathOffset += 12; |
2901 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2943 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2902 pathOffset += 9; | 2944 pathOffset += 9; |
2903 index = path.indexOf("/instances/", pathOffset); | 2945 index = path.indexOf("/instances/", pathOffset); |
2904 unittest.expect(index >= 0, unittest.isTrue); | 2946 unittest.expect(index >= 0, unittest.isTrue); |
2905 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 2947 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2906 pathOffset = index; | 2948 pathOffset = index; |
2907 unittest.expect(subPart, unittest.equals("$arg_project")); | 2949 unittest.expect(subPart, unittest.equals("$arg_project")); |
2908 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 2950 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2909 pathOffset += 11; | 2951 pathOffset += 11; |
2910 index = path.indexOf("/sslCerts/", pathOffset); | 2952 index = path.indexOf("/sslCerts/", pathOffset); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2955 var arg_project = "foo"; | 2997 var arg_project = "foo"; |
2956 var arg_instance = "foo"; | 2998 var arg_instance = "foo"; |
2957 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2999 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2958 var obj = new api.SslCertsInsertRequest.fromJson(json); | 3000 var obj = new api.SslCertsInsertRequest.fromJson(json); |
2959 checkSslCertsInsertRequest(obj); | 3001 checkSslCertsInsertRequest(obj); |
2960 | 3002 |
2961 var path = (req.url).path; | 3003 var path = (req.url).path; |
2962 var pathOffset = 0; | 3004 var pathOffset = 0; |
2963 var index; | 3005 var index; |
2964 var subPart; | 3006 var subPart; |
2965 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 3007 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2966 pathOffset += 13; | 3008 pathOffset += 1; |
| 3009 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 3010 pathOffset += 12; |
2967 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 3011 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
2968 pathOffset += 9; | 3012 pathOffset += 9; |
2969 index = path.indexOf("/instances/", pathOffset); | 3013 index = path.indexOf("/instances/", pathOffset); |
2970 unittest.expect(index >= 0, unittest.isTrue); | 3014 unittest.expect(index >= 0, unittest.isTrue); |
2971 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3015 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
2972 pathOffset = index; | 3016 pathOffset = index; |
2973 unittest.expect(subPart, unittest.equals("$arg_project")); | 3017 unittest.expect(subPart, unittest.equals("$arg_project")); |
2974 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 3018 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
2975 pathOffset += 11; | 3019 pathOffset += 11; |
2976 index = path.indexOf("/sslCerts", pathOffset); | 3020 index = path.indexOf("/sslCerts", pathOffset); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3014 | 3058 |
3015 var mock = new common_test.HttpServerMock(); | 3059 var mock = new common_test.HttpServerMock(); |
3016 api.SslCertsResourceApi res = new api.SqladminApi(mock).sslCerts; | 3060 api.SslCertsResourceApi res = new api.SqladminApi(mock).sslCerts; |
3017 var arg_project = "foo"; | 3061 var arg_project = "foo"; |
3018 var arg_instance = "foo"; | 3062 var arg_instance = "foo"; |
3019 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3063 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3020 var path = (req.url).path; | 3064 var path = (req.url).path; |
3021 var pathOffset = 0; | 3065 var pathOffset = 0; |
3022 var index; | 3066 var index; |
3023 var subPart; | 3067 var subPart; |
3024 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 3068 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3025 pathOffset += 13; | 3069 pathOffset += 1; |
| 3070 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 3071 pathOffset += 12; |
3026 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 3072 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
3027 pathOffset += 9; | 3073 pathOffset += 9; |
3028 index = path.indexOf("/instances/", pathOffset); | 3074 index = path.indexOf("/instances/", pathOffset); |
3029 unittest.expect(index >= 0, unittest.isTrue); | 3075 unittest.expect(index >= 0, unittest.isTrue); |
3030 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3076 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
3031 pathOffset = index; | 3077 pathOffset = index; |
3032 unittest.expect(subPart, unittest.equals("$arg_project")); | 3078 unittest.expect(subPart, unittest.equals("$arg_project")); |
3033 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); | 3079 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/instances/")); |
3034 pathOffset += 11; | 3080 pathOffset += 11; |
3035 index = path.indexOf("/sslCerts", pathOffset); | 3081 index = path.indexOf("/sslCerts", pathOffset); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3076 unittest.test("method--list", () { | 3122 unittest.test("method--list", () { |
3077 | 3123 |
3078 var mock = new common_test.HttpServerMock(); | 3124 var mock = new common_test.HttpServerMock(); |
3079 api.TiersResourceApi res = new api.SqladminApi(mock).tiers; | 3125 api.TiersResourceApi res = new api.SqladminApi(mock).tiers; |
3080 var arg_project = "foo"; | 3126 var arg_project = "foo"; |
3081 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3127 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3082 var path = (req.url).path; | 3128 var path = (req.url).path; |
3083 var pathOffset = 0; | 3129 var pathOffset = 0; |
3084 var index; | 3130 var index; |
3085 var subPart; | 3131 var subPart; |
3086 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/sql/v1beta3/")); | 3132 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3087 pathOffset += 13; | 3133 pathOffset += 1; |
| 3134 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("sql/v1beta3/")); |
| 3135 pathOffset += 12; |
3088 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 3136 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
3089 pathOffset += 9; | 3137 pathOffset += 9; |
3090 index = path.indexOf("/tiers", pathOffset); | 3138 index = path.indexOf("/tiers", pathOffset); |
3091 unittest.expect(index >= 0, unittest.isTrue); | 3139 unittest.expect(index >= 0, unittest.isTrue); |
3092 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3140 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
3093 pathOffset = index; | 3141 pathOffset = index; |
3094 unittest.expect(subPart, unittest.equals("$arg_project")); | 3142 unittest.expect(subPart, unittest.equals("$arg_project")); |
3095 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/tiers")); | 3143 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/tiers")); |
3096 pathOffset += 6; | 3144 pathOffset += 6; |
3097 | 3145 |
(...skipping 24 matching lines...) Expand all Loading... |
3122 res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse re
sponse) { | 3170 res.list(arg_project).then(unittest.expectAsync(((api.TiersListResponse re
sponse) { |
3123 checkTiersListResponse(response); | 3171 checkTiersListResponse(response); |
3124 }))); | 3172 }))); |
3125 }); | 3173 }); |
3126 | 3174 |
3127 }); | 3175 }); |
3128 | 3176 |
3129 | 3177 |
3130 } | 3178 } |
3131 | 3179 |
OLD | NEW |